@tryvitris/website-harness 0.0.0-stage → 0.1.0-beta.5

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 (1303) hide show
  1. package/CONTRIBUTING.md +7 -0
  2. package/LICENSE +21 -0
  3. package/NOTICE +17 -0
  4. package/README.md +139 -2
  5. package/agent/EVALUATION.md +23 -0
  6. package/agent/PROMPT.md +13 -0
  7. package/agent/STATE.json +109 -0
  8. package/agent/WORKFLOW.md +108 -0
  9. package/agent/evals/preview.md +5 -0
  10. package/agent/graph.yaml +752 -0
  11. package/agent/guardrails.md +10 -0
  12. package/agent/refs/accessibility.md +9 -0
  13. package/agent/refs/art-direction.md +15 -0
  14. package/agent/refs/brand.md +3 -0
  15. package/agent/refs/browser.md +15 -0
  16. package/agent/refs/business.md +9 -0
  17. package/agent/refs/components.md +42 -0
  18. package/agent/refs/compose.md +10 -0
  19. package/agent/refs/contracts.md +32 -0
  20. package/agent/refs/copy.md +14 -0
  21. package/agent/refs/counterpoint.md +3 -0
  22. package/agent/refs/critic.md +29 -0
  23. package/agent/refs/design-calibration.md +31 -0
  24. package/agent/refs/design-feedback.md +13 -0
  25. package/agent/refs/design-quality.md +33 -0
  26. package/agent/refs/design-synthesis.md +9 -0
  27. package/agent/refs/direction.md +29 -0
  28. package/agent/refs/feedback-fulfillment.md +7 -0
  29. package/agent/refs/geo.md +7 -0
  30. package/agent/refs/harvest.md +7 -0
  31. package/agent/refs/icons.md +102 -0
  32. package/agent/refs/images.md +3 -0
  33. package/agent/refs/implement.md +24 -0
  34. package/agent/refs/industry-reference-shortlist.md +64 -0
  35. package/agent/refs/inspiration.md +17 -0
  36. package/agent/refs/interpret.md +3 -0
  37. package/agent/refs/jev.md +166 -0
  38. package/agent/refs/launch.md +11 -0
  39. package/agent/refs/layout.md +7 -0
  40. package/agent/refs/media.md +35 -0
  41. package/agent/refs/motif.md +3 -0
  42. package/agent/refs/motion-count.md +13 -0
  43. package/agent/refs/motion-image.md +12 -0
  44. package/agent/refs/motion-numeric.md +14 -0
  45. package/agent/refs/motion-page.md +23 -0
  46. package/agent/refs/motion-process.md +12 -0
  47. package/agent/refs/motion-sequence.md +7 -0
  48. package/agent/refs/motion-text.md +12 -0
  49. package/agent/refs/motion.md +11 -0
  50. package/agent/refs/narrative.md +9 -0
  51. package/agent/refs/performance.md +36 -0
  52. package/agent/refs/preview.md +3 -0
  53. package/agent/refs/production-quality.md +33 -0
  54. package/agent/refs/psychology.md +3 -0
  55. package/agent/refs/refine.md +14 -0
  56. package/agent/refs/research.md +7 -0
  57. package/agent/refs/sections.md +6 -0
  58. package/agent/refs/seo.md +9 -0
  59. package/agent/refs/storyboard.md +27 -0
  60. package/agent/refs/template-adaptation.md +42 -0
  61. package/agent/refs/template-from-url.md +91 -0
  62. package/agent/refs/template-library.md +32 -0
  63. package/agent/refs/template-motion.md +44 -0
  64. package/agent/refs/theme-selection.md +13 -0
  65. package/agent/refs/ui-ux.md +7 -0
  66. package/agent/refs/usability.md +5 -0
  67. package/agent/refs/variant-directions.md +20 -0
  68. package/agent/refs/write.md +6 -0
  69. package/agent/request.json +11 -0
  70. package/agent/workflow.json +4 -0
  71. package/bin/api/agent/artifacts.js +38 -0
  72. package/bin/api/agent/evaluate.js +55 -0
  73. package/bin/api/agent/grade.js +51 -0
  74. package/bin/api/agent/graph.js +16 -0
  75. package/bin/api/cli/api.js +104 -0
  76. package/bin/api/cli.js +48 -0
  77. package/bin/api/contracts.js +22 -0
  78. package/bin/api/engine.js +53 -0
  79. package/bin/api/hosting.js +40 -0
  80. package/bin/api/icons.js +57 -0
  81. package/bin/api/index.js +20 -0
  82. package/bin/api/references.js +45 -0
  83. package/bin/api/render.js +61 -0
  84. package/bin/api/schema.js +68 -0
  85. package/bin/api/theme.js +9 -0
  86. package/bin/api/types.js +8 -0
  87. package/bin/chunks/chunk-2NW7KSPA.js +17 -0
  88. package/bin/chunks/chunk-34H54KEY.js +45 -0
  89. package/bin/chunks/chunk-3CTBXY5K.js +22313 -0
  90. package/bin/chunks/chunk-42IXFXUD.js +1141 -0
  91. package/bin/chunks/chunk-4DM5TTLG.js +219 -0
  92. package/bin/chunks/chunk-4GZCAWWK.js +327 -0
  93. package/bin/chunks/chunk-54JC5L35.js +493 -0
  94. package/bin/chunks/chunk-5OOPJNGN.js +511 -0
  95. package/bin/chunks/chunk-6A3VWYMF.js +28 -0
  96. package/bin/chunks/chunk-6H3T46F5.js +25 -0
  97. package/bin/chunks/chunk-7FS67SRF.js +12 -0
  98. package/bin/chunks/chunk-7VLBEAFW.js +56 -0
  99. package/bin/chunks/chunk-ANMJRJQ5.js +31 -0
  100. package/bin/chunks/chunk-AUO5I56E.js +118774 -0
  101. package/bin/chunks/chunk-B5I45LFD.js +619 -0
  102. package/bin/chunks/chunk-BBV7PMFC.js +185 -0
  103. package/bin/chunks/chunk-BIEDSEL2.js +8 -0
  104. package/bin/chunks/chunk-CBEJZO4L.js +67 -0
  105. package/bin/chunks/chunk-DRJQ4OOU.js +514 -0
  106. package/bin/chunks/chunk-DSS2U2OM.js +115 -0
  107. package/bin/chunks/chunk-E5Y46VBX.js +678 -0
  108. package/bin/chunks/chunk-FOXUQXTV.js +278 -0
  109. package/bin/chunks/chunk-FYN4T4SV.js +4900 -0
  110. package/bin/chunks/chunk-G7MNMULR.js +192 -0
  111. package/bin/chunks/chunk-GVNIL34R.js +78 -0
  112. package/bin/chunks/chunk-GZDLXYZV.js +3425 -0
  113. package/bin/chunks/chunk-HNORQ74T.js +40 -0
  114. package/bin/chunks/chunk-IKNMBGGD.js +217 -0
  115. package/bin/chunks/chunk-JCRGE6AL.js +14 -0
  116. package/bin/chunks/chunk-LKN75JGA.js +63 -0
  117. package/bin/chunks/chunk-M2ETYSVJ.js +176 -0
  118. package/bin/chunks/chunk-M4LNHYYR.js +177 -0
  119. package/bin/chunks/chunk-PRLL7B63.js +113 -0
  120. package/bin/chunks/chunk-R7YELY3C.js +923 -0
  121. package/bin/chunks/chunk-T6PE4KN4.js +277 -0
  122. package/bin/chunks/chunk-T7DGRVTP.js +458 -0
  123. package/bin/chunks/chunk-TY33XMHW.js +239 -0
  124. package/bin/chunks/chunk-VH7PM7KJ.js +179 -0
  125. package/bin/chunks/chunk-WEFDVXFX.js +65 -0
  126. package/bin/chunks/chunk-XGTHGWPW.js +90 -0
  127. package/bin/chunks/chunk-XL2DRAYI.js +39 -0
  128. package/bin/chunks/chunk-YCVGD2CG.js +2751 -0
  129. package/bin/chunks/chunk-YQYHROLZ.js +1023 -0
  130. package/bin/chunks/chunk-YYPYYOEV.js +34 -0
  131. package/bin/chunks/chunk-Z2UNY47A.js +2418 -0
  132. package/bin/chunks/design-context-store-IAT2P2OC.js +39 -0
  133. package/bin/chunks/packets-VBMY4SQJ.js +53 -0
  134. package/bin/chunks/policy-2I37JUU3.js +18 -0
  135. package/bin/chunks/preparation-S4MG3RPL.js +93 -0
  136. package/bin/chunks/questions-HKELBDFL.js +120 -0
  137. package/bin/chunks/state-GDL6CCJI.js +20 -0
  138. package/bin/chunks/template-gallery-ET76ERZQ.js +140 -0
  139. package/bin/cloudflare/backend.js +24421 -0
  140. package/bin/cloudflare/blake3.wasm +0 -0
  141. package/bin/cloudflare/forms-test.js +429 -0
  142. package/bin/cloudflare/templates.js +100 -0
  143. package/bin/types/scripts/lib/r2.d.ts +7 -0
  144. package/bin/types/scripts/onboard/browser.d.ts +9 -0
  145. package/bin/types/scripts/onboard/crawl.d.ts +35 -0
  146. package/bin/types/scripts/onboard/images.d.ts +19 -0
  147. package/bin/types/scripts/onboard/prompt.d.ts +10 -0
  148. package/bin/types/scripts/onboard/run.d.ts +47 -0
  149. package/bin/types/src/agent/adaptation-checkpoint.d.ts +70 -0
  150. package/bin/types/src/agent/added-media.d.ts +31 -0
  151. package/bin/types/src/agent/api-contracts.d.ts +2 -0
  152. package/bin/types/src/agent/art-direction-policy.d.ts +9 -0
  153. package/bin/types/src/agent/art-direction.d.ts +253 -0
  154. package/bin/types/src/agent/artifacts.d.ts +602 -0
  155. package/bin/types/src/agent/browser-motion-journey.d.ts +59 -0
  156. package/bin/types/src/agent/browser-motion.d.ts +40 -0
  157. package/bin/types/src/agent/browser-timeout.d.ts +4 -0
  158. package/bin/types/src/agent/composition-authoring.d.ts +12 -0
  159. package/bin/types/src/agent/composition-context.d.ts +63 -0
  160. package/bin/types/src/agent/composition-contract.d.ts +4 -0
  161. package/bin/types/src/agent/composition-decisions.d.ts +43 -0
  162. package/bin/types/src/agent/composition-preflight.d.ts +16 -0
  163. package/bin/types/src/agent/creative-change-context.d.ts +21 -0
  164. package/bin/types/src/agent/creative-context.d.ts +56 -0
  165. package/bin/types/src/agent/creative-contract.d.ts +123 -0
  166. package/bin/types/src/agent/creative-efficiency.d.ts +18 -0
  167. package/bin/types/src/agent/creative-evidence.d.ts +57 -0
  168. package/bin/types/src/agent/creative-objective.d.ts +33 -0
  169. package/bin/types/src/agent/creative-profile.d.ts +81 -0
  170. package/bin/types/src/agent/creative-prompts.d.ts +7 -0
  171. package/bin/types/src/agent/creative-render-bindings.d.ts +13 -0
  172. package/bin/types/src/agent/creative-revision.d.ts +33 -0
  173. package/bin/types/src/agent/creative-skills.d.ts +25 -0
  174. package/bin/types/src/agent/cursor-hook.d.ts +182 -0
  175. package/bin/types/src/agent/design-bundle.d.ts +24 -0
  176. package/bin/types/src/agent/design-calibration.d.ts +43 -0
  177. package/bin/types/src/agent/design-cli.d.ts +5 -0
  178. package/bin/types/src/agent/design-comparison.d.ts +63 -0
  179. package/bin/types/src/agent/design-context-packet.d.ts +82 -0
  180. package/bin/types/src/agent/design-context-store.d.ts +14 -0
  181. package/bin/types/src/agent/design-context.d.ts +85 -0
  182. package/bin/types/src/agent/design-contracts.d.ts +35 -0
  183. package/bin/types/src/agent/design-copy.d.ts +29 -0
  184. package/bin/types/src/agent/design-feedback.d.ts +91 -0
  185. package/bin/types/src/agent/design-knowledge.d.ts +124 -0
  186. package/bin/types/src/agent/design-quality.d.ts +143 -0
  187. package/bin/types/src/agent/design-review-server.d.ts +13 -0
  188. package/bin/types/src/agent/design-run.d.ts +174 -0
  189. package/bin/types/src/agent/design-synthesis.d.ts +76 -0
  190. package/bin/types/src/agent/design-usage.d.ts +38 -0
  191. package/bin/types/src/agent/editorial.d.ts +11 -0
  192. package/bin/types/src/agent/evaluate.d.ts +28 -0
  193. package/bin/types/src/agent/grade.d.ts +16 -0
  194. package/bin/types/src/agent/graph.d.ts +82 -0
  195. package/bin/types/src/agent/industry/document.d.ts +10 -0
  196. package/bin/types/src/agent/industry/interactions.d.ts +2 -0
  197. package/bin/types/src/agent/industry/markup.d.ts +14 -0
  198. package/bin/types/src/agent/industry/registry.d.ts +2 -0
  199. package/bin/types/src/agent/industry/render-style.d.ts +3 -0
  200. package/bin/types/src/agent/industry/ridgeline/browse.d.ts +2 -0
  201. package/bin/types/src/agent/industry/ridgeline/diagrams.d.ts +9 -0
  202. package/bin/types/src/agent/industry/ridgeline/facts.d.ts +61 -0
  203. package/bin/types/src/agent/industry/ridgeline/pages/company.d.ts +5 -0
  204. package/bin/types/src/agent/industry/ridgeline/pages/home.d.ts +1 -0
  205. package/bin/types/src/agent/industry/ridgeline/pages/journal.d.ts +24 -0
  206. package/bin/types/src/agent/industry/ridgeline/pages/services.d.ts +6 -0
  207. package/bin/types/src/agent/industry/ridgeline/photo.d.ts +18 -0
  208. package/bin/types/src/agent/industry/ridgeline/script.d.ts +1 -0
  209. package/bin/types/src/agent/industry/ridgeline/site.d.ts +2 -0
  210. package/bin/types/src/agent/industry/ridgeline/style.d.ts +1 -0
  211. package/bin/types/src/agent/industry/ridgeline/theme.d.ts +4 -0
  212. package/bin/types/src/agent/industry/seven/barber-club.d.ts +2 -0
  213. package/bin/types/src/agent/industry/seven/barber-corner.d.ts +2 -0
  214. package/bin/types/src/agent/industry/seven/barber-form.d.ts +2 -0
  215. package/bin/types/src/agent/industry/seven/browse.d.ts +4 -0
  216. package/bin/types/src/agent/industry/seven/construction-built.d.ts +2 -0
  217. package/bin/types/src/agent/industry/seven/construction-craft.d.ts +2 -0
  218. package/bin/types/src/agent/industry/seven/construction-siteworks.d.ts +3 -0
  219. package/bin/types/src/agent/industry/seven/electrical-circuit.d.ts +2 -0
  220. package/bin/types/src/agent/industry/seven/electrical-light.d.ts +3 -0
  221. package/bin/types/src/agent/industry/seven/electrical-power.d.ts +3 -0
  222. package/bin/types/src/agent/industry/seven/hvac-climate.d.ts +3 -0
  223. package/bin/types/src/agent/industry/seven/hvac-dispatch.d.ts +2 -0
  224. package/bin/types/src/agent/industry/seven/hvac-seasonal.d.ts +2 -0
  225. package/bin/types/src/agent/industry/seven/interactions.d.ts +2 -0
  226. package/bin/types/src/agent/industry/seven/landscape-atlas.d.ts +4 -0
  227. package/bin/types/src/agent/industry/seven/landscape-courtyard.d.ts +3 -0
  228. package/bin/types/src/agent/industry/seven/landscape-seasons.d.ts +3 -0
  229. package/bin/types/src/agent/industry/seven/legal-casework.d.ts +2 -0
  230. package/bin/types/src/agent/industry/seven/legal-counsel.d.ts +2 -0
  231. package/bin/types/src/agent/industry/seven/legal-table.d.ts +2 -0
  232. package/bin/types/src/agent/industry/seven/medical-continuum.d.ts +2 -0
  233. package/bin/types/src/agent/industry/seven/medical-movement.d.ts +2 -0
  234. package/bin/types/src/agent/industry/seven/medical-neighborhood.d.ts +2 -0
  235. package/bin/types/src/agent/industry/seven/primitives.d.ts +31 -0
  236. package/bin/types/src/agent/industry/seven/registry.d.ts +4 -0
  237. package/bin/types/src/agent/industry/seven/theme.d.ts +3 -0
  238. package/bin/types/src/agent/industry/sites/common-ground.d.ts +2 -0
  239. package/bin/types/src/agent/industry/sites/coordination.d.ts +2 -0
  240. package/bin/types/src/agent/industry/sites/everyday.d.ts +2 -0
  241. package/bin/types/src/agent/industry/sites/independent.d.ts +2 -0
  242. package/bin/types/src/agent/industry/sites/mainstage.d.ts +2 -0
  243. package/bin/types/src/agent/industry/sites/neighborhood.d.ts +2 -0
  244. package/bin/types/src/agent/industry/sites/next-chapter.d.ts +2 -0
  245. package/bin/types/src/agent/industry/sites/practice-notes.d.ts +2 -0
  246. package/bin/types/src/agent/industry/sites/property-desk.d.ts +2 -0
  247. package/bin/types/src/agent/industry/sites/residence.d.ts +2 -0
  248. package/bin/types/src/agent/industry/sites/risk-office.d.ts +2 -0
  249. package/bin/types/src/agent/industry/sites/workshop.d.ts +2 -0
  250. package/bin/types/src/agent/industry/types.d.ts +48 -0
  251. package/bin/types/src/agent/invocation-budget.d.ts +32 -0
  252. package/bin/types/src/agent/jev/agent-usage.d.ts +165 -0
  253. package/bin/types/src/agent/jev/batching.d.ts +101 -0
  254. package/bin/types/src/agent/jev/block-catalog.d.ts +95 -0
  255. package/bin/types/src/agent/jev/bounds.d.ts +30 -0
  256. package/bin/types/src/agent/jev/budget.d.ts +76 -0
  257. package/bin/types/src/agent/jev/business-draft.d.ts +103 -0
  258. package/bin/types/src/agent/jev/calibration.d.ts +131 -0
  259. package/bin/types/src/agent/jev/client.d.ts +52 -0
  260. package/bin/types/src/agent/jev/component-select.d.ts +102 -0
  261. package/bin/types/src/agent/jev/config.d.ts +52 -0
  262. package/bin/types/src/agent/jev/consistency.d.ts +105 -0
  263. package/bin/types/src/agent/jev/content-checks.d.ts +121 -0
  264. package/bin/types/src/agent/jev/creative.d.ts +81 -0
  265. package/bin/types/src/agent/jev/critic-report.d.ts +132 -0
  266. package/bin/types/src/agent/jev/extraction.d.ts +84 -0
  267. package/bin/types/src/agent/jev/goals.d.ts +43 -0
  268. package/bin/types/src/agent/jev/html-tree.d.ts +28 -0
  269. package/bin/types/src/agent/jev/indexing.d.ts +51 -0
  270. package/bin/types/src/agent/jev/ledger.d.ts +154 -0
  271. package/bin/types/src/agent/jev/media.d.ts +62 -0
  272. package/bin/types/src/agent/jev/observations.d.ts +26 -0
  273. package/bin/types/src/agent/jev/ownership.d.ts +74 -0
  274. package/bin/types/src/agent/jev/packets.d.ts +124 -0
  275. package/bin/types/src/agent/jev/policy.d.ts +83 -0
  276. package/bin/types/src/agent/jev/questions.d.ts +244 -0
  277. package/bin/types/src/agent/jev/ranking.d.ts +129 -0
  278. package/bin/types/src/agent/jev/repair.d.ts +73 -0
  279. package/bin/types/src/agent/jev/review.d.ts +37 -0
  280. package/bin/types/src/agent/jev/security.d.ts +28 -0
  281. package/bin/types/src/agent/jev/semantic-lifecycle.d.ts +19 -0
  282. package/bin/types/src/agent/jev/semantic-tasks.d.ts +89 -0
  283. package/bin/types/src/agent/jev/service-registry.d.ts +98 -0
  284. package/bin/types/src/agent/jev/state.d.ts +104 -0
  285. package/bin/types/src/agent/jev/types.d.ts +190 -0
  286. package/bin/types/src/agent/jev/visible-assertions.d.ts +84 -0
  287. package/bin/types/src/agent/kernel-commands.d.ts +2 -0
  288. package/bin/types/src/agent/kit-runtime.d.ts +12 -0
  289. package/bin/types/src/agent/legacy-definitions/theme-art.d.ts +5 -0
  290. package/bin/types/src/agent/legacy-definitions/theme-commissions.d.ts +1 -0
  291. package/bin/types/src/agent/legacy-definitions/theme-compositions-extremes.d.ts +7 -0
  292. package/bin/types/src/agent/legacy-definitions/theme-compositions-graphic.d.ts +2 -0
  293. package/bin/types/src/agent/legacy-definitions/theme-compositions-reading.d.ts +2 -0
  294. package/bin/types/src/agent/legacy-definitions/theme-compositions-service-extremes.d.ts +2 -0
  295. package/bin/types/src/agent/legacy-definitions/theme-compositions-service-people.d.ts +2 -0
  296. package/bin/types/src/agent/legacy-definitions/theme-compositions-service-programme.d.ts +3 -0
  297. package/bin/types/src/agent/legacy-definitions/theme-compositions-service-project.d.ts +2 -0
  298. package/bin/types/src/agent/legacy-definitions/theme-compositions-service-season.d.ts +2 -0
  299. package/bin/types/src/agent/legacy-definitions/theme-compositions-tactile.d.ts +2 -0
  300. package/bin/types/src/agent/legacy-definitions/theme-compositions.d.ts +2 -0
  301. package/bin/types/src/agent/legacy-definitions/theme-legacy-specimens.d.ts +8 -0
  302. package/bin/types/src/agent/legacy-definitions/theme-library-legacy.d.ts +20 -0
  303. package/bin/types/src/agent/legacy-definitions/theme-library-release2.d.ts +3 -0
  304. package/bin/types/src/agent/legacy-definitions/theme-service-art.d.ts +7 -0
  305. package/bin/types/src/agent/legacy-definitions/theme-service-commissions.d.ts +1 -0
  306. package/bin/types/src/agent/legacy-definitions/theme-specimen-base.d.ts +1 -0
  307. package/bin/types/src/agent/legacy-definitions/theme-specimens.d.ts +2 -0
  308. package/bin/types/src/agent/legacy-definitions/theme-suite-data.d.ts +25 -0
  309. package/bin/types/src/agent/legacy-definitions/theme-suite-style.d.ts +1 -0
  310. package/bin/types/src/agent/legacy-definitions/theme-suites-checkpoint.d.ts +14 -0
  311. package/bin/types/src/agent/legacy-definitions/theme-suites-graphic.d.ts +2 -0
  312. package/bin/types/src/agent/legacy-definitions/theme-suites-information.d.ts +2 -0
  313. package/bin/types/src/agent/legacy-definitions/theme-suites-local.d.ts +2 -0
  314. package/bin/types/src/agent/legacy-definitions/theme-suites-material.d.ts +2 -0
  315. package/bin/types/src/agent/legacy-definitions/theme-suites-practice.d.ts +2 -0
  316. package/bin/types/src/agent/legacy-definitions/theme-suites-spatial.d.ts +2 -0
  317. package/bin/types/src/agent/legacy-definitions/theme-suites.d.ts +3 -0
  318. package/bin/types/src/agent/lifecycle.d.ts +136 -0
  319. package/bin/types/src/agent/lighthouse-browser.d.ts +5 -0
  320. package/bin/types/src/agent/media-format.d.ts +5 -0
  321. package/bin/types/src/agent/migration-links.d.ts +4 -0
  322. package/bin/types/src/agent/motion-composition.d.ts +22 -0
  323. package/bin/types/src/agent/motion-knowledge.d.ts +3 -0
  324. package/bin/types/src/agent/motion-plan.d.ts +6 -0
  325. package/bin/types/src/agent/performance.d.ts +52 -0
  326. package/bin/types/src/agent/playwright-runtime.d.ts +8 -0
  327. package/bin/types/src/agent/preparation.d.ts +193 -0
  328. package/bin/types/src/agent/preview.d.ts +1 -0
  329. package/bin/types/src/agent/production-quality.d.ts +72 -0
  330. package/bin/types/src/agent/reference-contract.d.ts +3 -0
  331. package/bin/types/src/agent/reference-fit.d.ts +50 -0
  332. package/bin/types/src/agent/reference-library.d.ts +313 -0
  333. package/bin/types/src/agent/reference-studies.d.ts +110 -0
  334. package/bin/types/src/agent/refine.d.ts +348 -0
  335. package/bin/types/src/agent/result-manifest.d.ts +38 -0
  336. package/bin/types/src/agent/runner.d.ts +10 -0
  337. package/bin/types/src/agent/site-inputs.d.ts +26 -0
  338. package/bin/types/src/agent/source-manifest.d.ts +9 -0
  339. package/bin/types/src/agent/state-transition.d.ts +16 -0
  340. package/bin/types/src/agent/storyboard-media.d.ts +11 -0
  341. package/bin/types/src/agent/study-render.d.ts +27 -0
  342. package/bin/types/src/agent/template-adaptation.d.ts +69 -0
  343. package/bin/types/src/agent/template-motion.d.ts +59 -0
  344. package/bin/types/src/agent/theme-art-direction.d.ts +2 -0
  345. package/bin/types/src/agent/theme-art.d.ts +1 -0
  346. package/bin/types/src/agent/theme-assets.d.ts +36 -0
  347. package/bin/types/src/agent/theme-browse.d.ts +67 -0
  348. package/bin/types/src/agent/theme-cloud-resources.d.ts +7 -0
  349. package/bin/types/src/agent/theme-cloud.d.ts +41 -0
  350. package/bin/types/src/agent/theme-commissions.d.ts +1 -0
  351. package/bin/types/src/agent/theme-compositions-extremes.d.ts +1 -0
  352. package/bin/types/src/agent/theme-compositions.d.ts +1 -0
  353. package/bin/types/src/agent/theme-identity.d.ts +23 -0
  354. package/bin/types/src/agent/theme-layout-roles.d.ts +7 -0
  355. package/bin/types/src/agent/theme-legacy-specimens.d.ts +1 -0
  356. package/bin/types/src/agent/theme-library-legacy.d.ts +1 -0
  357. package/bin/types/src/agent/theme-library-release2.d.ts +1 -0
  358. package/bin/types/src/agent/theme-library.d.ts +60 -0
  359. package/bin/types/src/agent/theme-page-manifest.d.ts +26 -0
  360. package/bin/types/src/agent/theme-picker-model.d.ts +51 -0
  361. package/bin/types/src/agent/theme-picker-runtime.d.ts +1 -0
  362. package/bin/types/src/agent/theme-picker-selection-runtime.d.ts +1 -0
  363. package/bin/types/src/agent/theme-picker-shell.d.ts +7 -0
  364. package/bin/types/src/agent/theme-picker-styles.d.ts +1 -0
  365. package/bin/types/src/agent/theme-picker.d.ts +20 -0
  366. package/bin/types/src/agent/theme-preview.d.ts +26 -0
  367. package/bin/types/src/agent/theme-release2/assets.d.ts +22 -0
  368. package/bin/types/src/agent/theme-release2/specimens.d.ts +2 -0
  369. package/bin/types/src/agent/theme-release2/theme-art.d.ts +5 -0
  370. package/bin/types/src/agent/theme-release2/theme-compositions-extremes.d.ts +7 -0
  371. package/bin/types/src/agent/theme-release2/theme-compositions-graphic.d.ts +2 -0
  372. package/bin/types/src/agent/theme-release2/theme-compositions-reading.d.ts +2 -0
  373. package/bin/types/src/agent/theme-release2/theme-compositions-tactile.d.ts +2 -0
  374. package/bin/types/src/agent/theme-release2/theme-compositions.d.ts +3 -0
  375. package/bin/types/src/agent/theme-release2/theme-specimen-base.d.ts +1 -0
  376. package/bin/types/src/agent/theme-release3/theme-art-direction.d.ts +2 -0
  377. package/bin/types/src/agent/theme-release3/theme-art.d.ts +5 -0
  378. package/bin/types/src/agent/theme-release3/theme-assets.d.ts +121 -0
  379. package/bin/types/src/agent/theme-release3/theme-compositions-extremes.d.ts +7 -0
  380. package/bin/types/src/agent/theme-release3/theme-compositions-graphic.d.ts +2 -0
  381. package/bin/types/src/agent/theme-release3/theme-compositions-reading.d.ts +2 -0
  382. package/bin/types/src/agent/theme-release3/theme-compositions-service-extremes.d.ts +2 -0
  383. package/bin/types/src/agent/theme-release3/theme-compositions-service-people.d.ts +2 -0
  384. package/bin/types/src/agent/theme-release3/theme-compositions-service-programme.d.ts +2 -0
  385. package/bin/types/src/agent/theme-release3/theme-compositions-service-project.d.ts +2 -0
  386. package/bin/types/src/agent/theme-release3/theme-compositions-service-season.d.ts +2 -0
  387. package/bin/types/src/agent/theme-release3/theme-compositions-tactile.d.ts +2 -0
  388. package/bin/types/src/agent/theme-release3/theme-compositions.d.ts +2 -0
  389. package/bin/types/src/agent/theme-release3/theme-identity.d.ts +23 -0
  390. package/bin/types/src/agent/theme-release3/theme-library.d.ts +4 -0
  391. package/bin/types/src/agent/theme-release3/theme-service-art.d.ts +7 -0
  392. package/bin/types/src/agent/theme-release3/theme-specimen-base.d.ts +1 -0
  393. package/bin/types/src/agent/theme-release3/theme-specimens.d.ts +2 -0
  394. package/bin/types/src/agent/theme-selection.d.ts +75 -0
  395. package/bin/types/src/agent/theme-service-art.d.ts +1 -0
  396. package/bin/types/src/agent/theme-specimen-base.d.ts +1 -0
  397. package/bin/types/src/agent/theme-specimens.d.ts +1 -0
  398. package/bin/types/src/agent/theme-suite-data.d.ts +1 -0
  399. package/bin/types/src/agent/theme-suite-identity.d.ts +42 -0
  400. package/bin/types/src/agent/theme-suite-primitives.d.ts +14 -0
  401. package/bin/types/src/agent/theme-suite-renderer.d.ts +8 -0
  402. package/bin/types/src/agent/theme-suite-style.d.ts +1 -0
  403. package/bin/types/src/agent/theme-suites.d.ts +1 -0
  404. package/bin/types/src/agent/theme-thumbnails.d.ts +8 -0
  405. package/bin/types/src/agent/trace.d.ts +337 -0
  406. package/bin/types/src/agent/workflow-config.d.ts +25 -0
  407. package/bin/types/src/agent/workflow.d.ts +104 -0
  408. package/bin/types/src/blocks/library-profile.d.ts +9 -0
  409. package/bin/types/src/blocks/metadata.d.ts +65 -0
  410. package/bin/types/src/build/index.d.ts +29 -0
  411. package/bin/types/src/build/responsive-media.d.ts +19 -0
  412. package/bin/types/src/build/serve.d.ts +4 -0
  413. package/bin/types/src/build/static-output.d.ts +2 -0
  414. package/bin/types/src/build/verified.d.ts +1 -0
  415. package/bin/types/src/cli/api.d.ts +17 -0
  416. package/bin/types/src/cli/deploy.d.ts +21 -0
  417. package/bin/types/src/cli/doctor.d.ts +16 -0
  418. package/bin/types/src/cli/events.d.ts +16 -0
  419. package/bin/types/src/cli/feedback.d.ts +21 -0
  420. package/bin/types/src/cli/forms.d.ts +16 -0
  421. package/bin/types/src/cli/index.d.ts +1 -0
  422. package/bin/types/src/cli/lifecycle.d.ts +18 -0
  423. package/bin/types/src/cli/preserve.d.ts +8 -0
  424. package/bin/types/src/cli/preview.d.ts +14 -0
  425. package/bin/types/src/cli/refine.d.ts +41 -0
  426. package/bin/types/src/cli/root.d.ts +3 -0
  427. package/bin/types/src/cli/run.d.ts +30 -0
  428. package/bin/types/src/cli/share.d.ts +17 -0
  429. package/bin/types/src/cli/site-create.d.ts +24 -0
  430. package/bin/types/src/cli/site-migrate.d.ts +11 -0
  431. package/bin/types/src/cli/status.d.ts +8 -0
  432. package/bin/types/src/cli/types.d.ts +34 -0
  433. package/bin/types/src/cli/upgrade.d.ts +11 -0
  434. package/bin/types/src/cli/verify.d.ts +17 -0
  435. package/bin/types/src/cli/workflow-argv.d.ts +2 -0
  436. package/bin/types/src/compile/flatten.d.ts +23 -0
  437. package/bin/types/src/compile/frontmatter.d.ts +10 -0
  438. package/bin/types/src/compile/icons.d.ts +2 -0
  439. package/bin/types/src/compile/paths.d.ts +4 -0
  440. package/bin/types/src/compile/primitives.d.ts +2 -0
  441. package/bin/types/src/compile/scroll-motion.d.ts +14 -0
  442. package/bin/types/src/compile/site.d.ts +40 -0
  443. package/bin/types/src/editing/identity.d.ts +7 -0
  444. package/bin/types/src/editing/manifest.d.ts +38 -0
  445. package/bin/types/src/engine/checks.d.ts +2 -0
  446. package/bin/types/src/engine/contracts.d.ts +104 -0
  447. package/bin/types/src/engine/impact.d.ts +3 -0
  448. package/bin/types/src/engine/index.d.ts +70 -0
  449. package/bin/types/src/engine/revision.d.ts +5 -0
  450. package/bin/types/src/forms/cloudflare.d.ts +24 -0
  451. package/bin/types/src/forms/config.d.ts +34 -0
  452. package/bin/types/src/forms/frontend.d.ts +9 -0
  453. package/bin/types/src/html.d.ts +3 -0
  454. package/bin/types/src/icons/catalog.d.ts +28 -0
  455. package/bin/types/src/icons/coverage.d.ts +12 -0
  456. package/bin/types/src/icons/drawing.d.ts +7 -0
  457. package/bin/types/src/icons/duotone.d.ts +4 -0
  458. package/bin/types/src/icons/index.d.ts +37 -0
  459. package/bin/types/src/icons/industry-refinements-v4.d.ts +4 -0
  460. package/bin/types/src/icons/industry-review.d.ts +11 -0
  461. package/bin/types/src/icons/industry.d.ts +2 -0
  462. package/bin/types/src/icons/refinements.d.ts +5 -0
  463. package/bin/types/src/icons/studio-industry-review.d.ts +9 -0
  464. package/bin/types/src/icons/studio-industry.d.ts +5 -0
  465. package/bin/types/src/icons/studio.d.ts +34 -0
  466. package/bin/types/src/integrations/cloudflare-pages.d.ts +10 -0
  467. package/bin/types/src/integrations/deployment-smoke.d.ts +11 -0
  468. package/bin/types/src/integrations/hosting.d.ts +33 -0
  469. package/bin/types/src/integrations/wrangler-command.d.ts +5 -0
  470. package/bin/types/src/knowledge/artifact-order.d.ts +1 -0
  471. package/bin/types/src/knowledge/artifact.d.ts +11 -0
  472. package/bin/types/src/knowledge/composition.d.ts +54 -0
  473. package/bin/types/src/knowledge/contracts.d.ts +111 -0
  474. package/bin/types/src/knowledge/explain.d.ts +6 -0
  475. package/bin/types/src/knowledge/pack.d.ts +32 -0
  476. package/bin/types/src/knowledge/selection.d.ts +18 -0
  477. package/bin/types/src/knowledge/site-widgets.d.ts +6 -0
  478. package/bin/types/src/onboard/brief.d.ts +182 -0
  479. package/bin/types/src/onboard/classify.d.ts +31 -0
  480. package/bin/types/src/onboard/crawl-order.d.ts +7 -0
  481. package/bin/types/src/onboard/extract.d.ts +102 -0
  482. package/bin/types/src/onboard/harvest-inventory.d.ts +84 -0
  483. package/bin/types/src/onboard/outline.d.ts +13 -0
  484. package/bin/types/src/onboard/quality.d.ts +6 -0
  485. package/bin/types/src/onboard/shortlist.d.ts +11 -0
  486. package/bin/types/src/onboard/social.d.ts +15 -0
  487. package/bin/types/src/onboard/visual-hints.d.ts +12 -0
  488. package/bin/types/src/preserve/build.d.ts +1 -0
  489. package/bin/types/src/preserve/capture.d.ts +21 -0
  490. package/bin/types/src/preserve/components.d.ts +10 -0
  491. package/bin/types/src/preserve/config.d.ts +53 -0
  492. package/bin/types/src/preserve/embeds.d.ts +15 -0
  493. package/bin/types/src/preserve/hovers.d.ts +10 -0
  494. package/bin/types/src/preserve/react-capabilities.d.ts +2 -0
  495. package/bin/types/src/preserve/runtime.d.ts +2 -0
  496. package/bin/types/src/preserve/source-defects.d.ts +4 -0
  497. package/bin/types/src/preserve/supplement.d.ts +3 -0
  498. package/bin/types/src/preserve/verify.d.ts +29 -0
  499. package/bin/types/src/render.d.ts +10 -0
  500. package/bin/types/src/runtime/beacon.d.ts +2 -0
  501. package/bin/types/src/runtime/before-after.d.ts +2 -0
  502. package/bin/types/src/runtime/carousel.d.ts +2 -0
  503. package/bin/types/src/runtime/cookie-compliance.d.ts +14 -0
  504. package/bin/types/src/runtime/experience.d.ts +4 -0
  505. package/bin/types/src/runtime/header.d.ts +2 -0
  506. package/bin/types/src/runtime/leads.d.ts +2 -0
  507. package/bin/types/src/runtime/lightbox.d.ts +2 -0
  508. package/bin/types/src/runtime/scroll-motion.generated.d.ts +4 -0
  509. package/bin/types/src/runtime/tabs.d.ts +2 -0
  510. package/bin/types/src/schema.d.ts +27 -0
  511. package/bin/types/src/stock/library.d.ts +14 -0
  512. package/bin/types/src/stock/search.d.ts +30 -0
  513. package/bin/types/src/stock/selection.d.ts +30 -0
  514. package/bin/types/src/stock/types.d.ts +54 -0
  515. package/bin/types/src/theme.d.ts +3 -0
  516. package/bin/types/src/types.d.ts +115 -0
  517. package/bin/types/src/upgrade/kit.d.ts +48 -0
  518. package/bin/vitris-art.js +192 -0
  519. package/bin/vitris-blocks.js +238 -0
  520. package/bin/vitris-build.js +24 -0
  521. package/bin/vitris-catalog.js +49 -0
  522. package/bin/vitris-content-coverage.js +21 -0
  523. package/bin/vitris-create-site.js +86 -0
  524. package/bin/vitris-cursor-hook.js +61 -0
  525. package/bin/vitris-eval.js +76 -0
  526. package/bin/vitris-go.js +99 -0
  527. package/bin/vitris-harvest.js +184 -0
  528. package/bin/vitris-icons.js +168 -0
  529. package/bin/vitris-knowledge.js +43 -0
  530. package/bin/vitris-launch-preflight.js +964 -0
  531. package/bin/vitris-media-serve.js +50 -0
  532. package/bin/vitris-migrate-site.js +20 -0
  533. package/bin/vitris-motion-view.js +80 -0
  534. package/bin/vitris-prepare-media.js +64 -0
  535. package/bin/vitris-preview.js +36 -0
  536. package/bin/vitris-references.js +173 -0
  537. package/bin/vitris-refresh.js +50 -0
  538. package/bin/vitris-sign-publish-bundle.js +64 -0
  539. package/bin/vitris-stock.js +161 -0
  540. package/bin/vitris-templates.js +261 -0
  541. package/bin/vitris-themes.js +321 -0
  542. package/bin/vitris-upgrade.js +50 -0
  543. package/bin/vitris-verify-browser.js +662 -0
  544. package/bin/vitris-verify-performance.js +44 -0
  545. package/bin/vitris.js +50 -0
  546. package/blocks/CONVENTIONS.md +121 -0
  547. package/blocks/INDEX.md +130 -0
  548. package/blocks/about/about-awards/README.md +36 -0
  549. package/blocks/about/about-awards/styles.css +13 -0
  550. package/blocks/about/about-awards/template.html +1 -0
  551. package/blocks/about/about-credentials/README.md +33 -0
  552. package/blocks/about/about-credentials/block.meta.json +85 -0
  553. package/blocks/about/about-credentials/styles.css +4 -0
  554. package/blocks/about/about-credentials/template.html +1 -0
  555. package/blocks/about/about-founder/README.md +35 -0
  556. package/blocks/about/about-founder/styles.css +9 -0
  557. package/blocks/about/about-founder/template.html +1 -0
  558. package/blocks/about/about-mission/README.md +31 -0
  559. package/blocks/about/about-mission/styles.css +5 -0
  560. package/blocks/about/about-mission/template.html +1 -0
  561. package/blocks/about/about-statement/README.md +28 -0
  562. package/blocks/about/about-statement/styles.css +7 -0
  563. package/blocks/about/about-statement/template.html +1 -0
  564. package/blocks/about/about-story/README.md +35 -0
  565. package/blocks/about/about-story/styles.css +5 -0
  566. package/blocks/about/about-story/template.html +1 -0
  567. package/blocks/about/about-timeline/README.md +33 -0
  568. package/blocks/about/about-timeline/styles.css +8 -0
  569. package/blocks/about/about-timeline/template.html +1 -0
  570. package/blocks/about/about-values/README.md +31 -0
  571. package/blocks/about/about-values/styles.css +3 -0
  572. package/blocks/about/about-values/template.html +1 -0
  573. package/blocks/blog/blog-featured/README.md +39 -0
  574. package/blocks/blog/blog-featured/styles.css +12 -0
  575. package/blocks/blog/blog-featured/template.html +1 -0
  576. package/blocks/blog/blog-index/README.md +34 -0
  577. package/blocks/blog/blog-index/styles.css +6 -0
  578. package/blocks/blog/blog-index/template.html +1 -0
  579. package/blocks/blog/blog-post-header/README.md +31 -0
  580. package/blocks/blog/blog-post-header/styles.css +8 -0
  581. package/blocks/blog/blog-post-header/template.html +1 -0
  582. package/blocks/contact/contact-cards/README.md +32 -0
  583. package/blocks/contact/contact-cards/styles.css +7 -0
  584. package/blocks/contact/contact-cards/template.html +1 -0
  585. package/blocks/contact/contact-chips/README.md +41 -0
  586. package/blocks/contact/contact-chips/styles.css +13 -0
  587. package/blocks/contact/contact-chips/template.html +1 -0
  588. package/blocks/contact/contact-hours/README.md +41 -0
  589. package/blocks/contact/contact-hours/block.meta.json +87 -0
  590. package/blocks/contact/contact-hours/styles.css +8 -0
  591. package/blocks/contact/contact-hours/template.html +1 -0
  592. package/blocks/contact/contact-map/README.md +39 -0
  593. package/blocks/contact/contact-map/styles.css +10 -0
  594. package/blocks/contact/contact-map/template.html +1 -0
  595. package/blocks/contact/contact-offices/README.md +32 -0
  596. package/blocks/contact/contact-offices/styles.css +8 -0
  597. package/blocks/contact/contact-offices/template.html +1 -0
  598. package/blocks/contact/contact-phone-first/README.md +33 -0
  599. package/blocks/contact/contact-phone-first/block.meta.json +86 -0
  600. package/blocks/contact/contact-phone-first/styles.css +11 -0
  601. package/blocks/contact/contact-phone-first/template.html +1 -0
  602. package/blocks/contact/contact-split/README.md +43 -0
  603. package/blocks/contact/contact-split/styles.css +12 -0
  604. package/blocks/contact/contact-split/template.html +1 -0
  605. package/blocks/contact/contact-visit/README.md +36 -0
  606. package/blocks/contact/contact-visit/block.meta.json +88 -0
  607. package/blocks/contact/contact-visit/styles.css +13 -0
  608. package/blocks/contact/contact-visit/template.html +1 -0
  609. package/blocks/contact/service-areas/README.md +32 -0
  610. package/blocks/contact/service-areas/styles.css +9 -0
  611. package/blocks/contact/service-areas/template.html +1 -0
  612. package/blocks/content/glossary/README.md +35 -0
  613. package/blocks/content/glossary/styles.css +6 -0
  614. package/blocks/content/glossary/template.html +1 -0
  615. package/blocks/content/list-split/README.md +33 -0
  616. package/blocks/content/list-split/styles.css +13 -0
  617. package/blocks/content/list-split/template.html +1 -0
  618. package/blocks/content/prose-split/README.md +32 -0
  619. package/blocks/content/prose-split/styles.css +12 -0
  620. package/blocks/content/prose-split/template.html +1 -0
  621. package/blocks/content/specification-ledger/README.md +32 -0
  622. package/blocks/content/specification-ledger/block.meta.json +85 -0
  623. package/blocks/content/specification-ledger/styles.css +10 -0
  624. package/blocks/content/specification-ledger/template.html +1 -0
  625. package/blocks/cta/cta-band/README.md +33 -0
  626. package/blocks/cta/cta-band/styles.css +11 -0
  627. package/blocks/cta/cta-band/template.html +1 -0
  628. package/blocks/cta/cta-card/README.md +35 -0
  629. package/blocks/cta/cta-card/styles.css +8 -0
  630. package/blocks/cta/cta-card/template.html +1 -0
  631. package/blocks/cta/cta-floating-bar/README.md +28 -0
  632. package/blocks/cta/cta-floating-bar/styles.css +8 -0
  633. package/blocks/cta/cta-floating-bar/template.html +1 -0
  634. package/blocks/cta/cta-inline/README.md +30 -0
  635. package/blocks/cta/cta-inline/styles.css +9 -0
  636. package/blocks/cta/cta-inline/template.html +1 -0
  637. package/blocks/cta/cta-newsletter/README.md +34 -0
  638. package/blocks/cta/cta-newsletter/styles.css +8 -0
  639. package/blocks/cta/cta-newsletter/template.html +1 -0
  640. package/blocks/cta/cta-photo-fan/README.md +36 -0
  641. package/blocks/cta/cta-photo-fan/styles.css +14 -0
  642. package/blocks/cta/cta-photo-fan/template.html +1 -0
  643. package/blocks/cta/cta-split/README.md +38 -0
  644. package/blocks/cta/cta-split/styles.css +10 -0
  645. package/blocks/cta/cta-split/template.html +1 -0
  646. package/blocks/faq/faq-accordion/README.md +36 -0
  647. package/blocks/faq/faq-accordion/styles.css +6 -0
  648. package/blocks/faq/faq-accordion/template.html +1 -0
  649. package/blocks/faq/faq-grouped/README.md +40 -0
  650. package/blocks/faq/faq-grouped/styles.css +20 -0
  651. package/blocks/faq/faq-grouped/template.html +1 -0
  652. package/blocks/faq/faq-split/README.md +37 -0
  653. package/blocks/faq/faq-split/styles.css +5 -0
  654. package/blocks/faq/faq-split/template.html +1 -0
  655. package/blocks/faq/faq-tabs/README.md +36 -0
  656. package/blocks/faq/faq-tabs/styles.css +3 -0
  657. package/blocks/faq/faq-tabs/template.html +1 -0
  658. package/blocks/feature/feature-bento/README.md +33 -0
  659. package/blocks/feature/feature-bento/styles.css +7 -0
  660. package/blocks/feature/feature-bento/template.html +1 -0
  661. package/blocks/feature/feature-compare-table/README.md +44 -0
  662. package/blocks/feature/feature-compare-table/styles.css +15 -0
  663. package/blocks/feature/feature-compare-table/template.html +1 -0
  664. package/blocks/feature/feature-comparison/README.md +34 -0
  665. package/blocks/feature/feature-comparison/styles.css +6 -0
  666. package/blocks/feature/feature-comparison/template.html +1 -0
  667. package/blocks/feature/feature-grid-3/README.md +34 -0
  668. package/blocks/feature/feature-grid-3/styles.css +8 -0
  669. package/blocks/feature/feature-grid-3/template.html +1 -0
  670. package/blocks/feature/feature-icon-list/README.md +39 -0
  671. package/blocks/feature/feature-icon-list/styles.css +9 -0
  672. package/blocks/feature/feature-icon-list/template.html +1 -0
  673. package/blocks/feature/feature-spotlight/README.md +39 -0
  674. package/blocks/feature/feature-spotlight/styles.css +5 -0
  675. package/blocks/feature/feature-spotlight/template.html +1 -0
  676. package/blocks/feature/feature-stats-band/README.md +33 -0
  677. package/blocks/feature/feature-stats-band/styles.css +8 -0
  678. package/blocks/feature/feature-stats-band/template.html +1 -0
  679. package/blocks/feature/feature-tabs/README.md +38 -0
  680. package/blocks/feature/feature-tabs/styles.css +7 -0
  681. package/blocks/feature/feature-tabs/template.html +1 -0
  682. package/blocks/feature/feature-thumb-list/README.md +38 -0
  683. package/blocks/feature/feature-thumb-list/styles.css +13 -0
  684. package/blocks/feature/feature-thumb-list/template.html +1 -0
  685. package/blocks/feature/feature-zigzag/README.md +31 -0
  686. package/blocks/feature/feature-zigzag/styles.css +6 -0
  687. package/blocks/feature/feature-zigzag/template.html +1 -0
  688. package/blocks/footer/footer-columns/README.md +39 -0
  689. package/blocks/footer/footer-columns/styles.css +16 -0
  690. package/blocks/footer/footer-columns/template.html +1 -0
  691. package/blocks/footer/footer-compact/README.md +33 -0
  692. package/blocks/footer/footer-compact/styles.css +12 -0
  693. package/blocks/footer/footer-compact/template.html +1 -0
  694. package/blocks/footer/footer-cta/README.md +37 -0
  695. package/blocks/footer/footer-cta/styles.css +18 -0
  696. package/blocks/footer/footer-cta/template.html +1 -0
  697. package/blocks/footer/footer-social/README.md +37 -0
  698. package/blocks/footer/footer-social/styles.css +17 -0
  699. package/blocks/footer/footer-social/template.html +1 -0
  700. package/blocks/footer/footer-wordmark/README.md +40 -0
  701. package/blocks/footer/footer-wordmark/styles.css +19 -0
  702. package/blocks/footer/footer-wordmark/template.html +1 -0
  703. package/blocks/gallery/gallery-before-after/README.md +31 -0
  704. package/blocks/gallery/gallery-before-after/styles.css +6 -0
  705. package/blocks/gallery/gallery-before-after/template.html +1 -0
  706. package/blocks/gallery/gallery-carousel/README.md +32 -0
  707. package/blocks/gallery/gallery-carousel/styles.css +7 -0
  708. package/blocks/gallery/gallery-carousel/template.html +1 -0
  709. package/blocks/gallery/gallery-grid/README.md +39 -0
  710. package/blocks/gallery/gallery-grid/styles.css +13 -0
  711. package/blocks/gallery/gallery-grid/template.html +1 -0
  712. package/blocks/gallery/gallery-masonry/README.md +33 -0
  713. package/blocks/gallery/gallery-masonry/styles.css +4 -0
  714. package/blocks/gallery/gallery-masonry/template.html +1 -0
  715. package/blocks/gallery/gallery-mosaic-split/README.md +40 -0
  716. package/blocks/gallery/gallery-mosaic-split/styles.css +15 -0
  717. package/blocks/gallery/gallery-mosaic-split/template.html +1 -0
  718. package/blocks/hero/hero-asymmetric/README.md +34 -0
  719. package/blocks/hero/hero-asymmetric/styles.css +13 -0
  720. package/blocks/hero/hero-asymmetric/template.html +10 -0
  721. package/blocks/hero/hero-before-after/README.md +38 -0
  722. package/blocks/hero/hero-before-after/styles.css +8 -0
  723. package/blocks/hero/hero-before-after/template.html +19 -0
  724. package/blocks/hero/hero-editorial/README.md +34 -0
  725. package/blocks/hero/hero-editorial/block.meta.json +85 -0
  726. package/blocks/hero/hero-editorial/styles.css +6 -0
  727. package/blocks/hero/hero-editorial/template.html +10 -0
  728. package/blocks/hero/hero-evidence/README.md +32 -0
  729. package/blocks/hero/hero-evidence/block.meta.json +85 -0
  730. package/blocks/hero/hero-evidence/styles.css +13 -0
  731. package/blocks/hero/hero-evidence/template.html +1 -0
  732. package/blocks/hero/hero-form/README.md +46 -0
  733. package/blocks/hero/hero-form/styles.css +11 -0
  734. package/blocks/hero/hero-form/template.html +15 -0
  735. package/blocks/hero/hero-menu/README.md +36 -0
  736. package/blocks/hero/hero-menu/styles.css +7 -0
  737. package/blocks/hero/hero-menu/template.html +10 -0
  738. package/blocks/hero/hero-overlay/README.md +35 -0
  739. package/blocks/hero/hero-overlay/styles.css +14 -0
  740. package/blocks/hero/hero-overlay/template.html +10 -0
  741. package/blocks/hero/hero-page/README.md +35 -0
  742. package/blocks/hero/hero-page/styles.css +19 -0
  743. package/blocks/hero/hero-page/template.html +1 -0
  744. package/blocks/hero/hero-product/README.md +41 -0
  745. package/blocks/hero/hero-product/styles.css +11 -0
  746. package/blocks/hero/hero-product/template.html +14 -0
  747. package/blocks/hero/hero-service/README.md +37 -0
  748. package/blocks/hero/hero-service/block.meta.json +85 -0
  749. package/blocks/hero/hero-service/styles.css +17 -0
  750. package/blocks/hero/hero-service/template.html +1 -0
  751. package/blocks/hero/hero-split/README.md +36 -0
  752. package/blocks/hero/hero-split/styles.css +7 -0
  753. package/blocks/hero/hero-split/template.html +11 -0
  754. package/blocks/hero/hero-statement/README.md +33 -0
  755. package/blocks/hero/hero-statement/styles.css +8 -0
  756. package/blocks/hero/hero-statement/template.html +1 -0
  757. package/blocks/hero/hero-stats/README.md +37 -0
  758. package/blocks/hero/hero-stats/styles.css +10 -0
  759. package/blocks/hero/hero-stats/template.html +10 -0
  760. package/blocks/hero/hero-video-still/README.md +36 -0
  761. package/blocks/hero/hero-video-still/styles.css +9 -0
  762. package/blocks/hero/hero-video-still/template.html +13 -0
  763. package/blocks/icons.md +44 -0
  764. package/blocks/incentives/incentive-banner/README.md +28 -0
  765. package/blocks/incentives/incentive-banner/styles.css +7 -0
  766. package/blocks/incentives/incentive-banner/template.html +1 -0
  767. package/blocks/incentives/incentive-cards/README.md +31 -0
  768. package/blocks/incentives/incentive-cards/styles.css +4 -0
  769. package/blocks/incentives/incentive-cards/template.html +1 -0
  770. package/blocks/navbar/nav-announcement/README.md +35 -0
  771. package/blocks/navbar/nav-announcement/styles.css +10 -0
  772. package/blocks/navbar/nav-announcement/template.html +14 -0
  773. package/blocks/navbar/nav-centered/README.md +35 -0
  774. package/blocks/navbar/nav-centered/styles.css +11 -0
  775. package/blocks/navbar/nav-centered/template.html +12 -0
  776. package/blocks/navbar/nav-minimal/README.md +29 -0
  777. package/blocks/navbar/nav-minimal/styles.css +5 -0
  778. package/blocks/navbar/nav-minimal/template.html +6 -0
  779. package/blocks/navbar/nav-split/README.md +34 -0
  780. package/blocks/navbar/nav-split/styles.css +11 -0
  781. package/blocks/navbar/nav-split/template.html +11 -0
  782. package/blocks/navbar/nav-utility/README.md +37 -0
  783. package/blocks/navbar/nav-utility/styles.css +17 -0
  784. package/blocks/navbar/nav-utility/template.html +12 -0
  785. package/blocks/pricing/menu-featured/README.md +34 -0
  786. package/blocks/pricing/menu-featured/styles.css +4 -0
  787. package/blocks/pricing/menu-featured/template.html +1 -0
  788. package/blocks/pricing/menu-sections/README.md +33 -0
  789. package/blocks/pricing/menu-sections/styles.css +9 -0
  790. package/blocks/pricing/menu-sections/template.html +1 -0
  791. package/blocks/pricing/pricing-table/README.md +40 -0
  792. package/blocks/pricing/pricing-table/styles.css +9 -0
  793. package/blocks/pricing/pricing-table/template.html +1 -0
  794. package/blocks/pricing/pricing-tiers/README.md +34 -0
  795. package/blocks/pricing/pricing-tiers/styles.css +7 -0
  796. package/blocks/pricing/pricing-tiers/template.html +1 -0
  797. package/blocks/pricing/pricing-toggle/README.md +34 -0
  798. package/blocks/pricing/pricing-toggle/styles.css +10 -0
  799. package/blocks/pricing/pricing-toggle/template.html +1 -0
  800. package/blocks/process/process-carousel/README.md +33 -0
  801. package/blocks/process/process-carousel/styles.css +5 -0
  802. package/blocks/process/process-carousel/template.html +1 -0
  803. package/blocks/process/process-split/README.md +35 -0
  804. package/blocks/process/process-split/styles.css +6 -0
  805. package/blocks/process/process-split/template.html +1 -0
  806. package/blocks/process/process-stepper/README.md +40 -0
  807. package/blocks/process/process-stepper/styles.css +11 -0
  808. package/blocks/process/process-stepper/template.html +1 -0
  809. package/blocks/process/process-steps/README.md +35 -0
  810. package/blocks/process/process-steps/styles.css +6 -0
  811. package/blocks/process/process-steps/template.html +1 -0
  812. package/blocks/process/process-sticky/README.md +38 -0
  813. package/blocks/process/process-sticky/styles.css +12 -0
  814. package/blocks/process/process-sticky/template.html +1 -0
  815. package/blocks/process/process-timeline/README.md +35 -0
  816. package/blocks/process/process-timeline/styles.css +10 -0
  817. package/blocks/process/process-timeline/template.html +1 -0
  818. package/blocks/services/services-cards/README.md +34 -0
  819. package/blocks/services/services-cards/styles.css +3 -0
  820. package/blocks/services/services-cards/template.html +1 -0
  821. package/blocks/services/services-carousel/README.md +34 -0
  822. package/blocks/services/services-carousel/styles.css +6 -0
  823. package/blocks/services/services-carousel/template.html +1 -0
  824. package/blocks/services/services-list/README.md +32 -0
  825. package/blocks/services/services-list/block.meta.json +85 -0
  826. package/blocks/services/services-list/styles.css +10 -0
  827. package/blocks/services/services-list/template.html +1 -0
  828. package/blocks/services/services-menu/README.md +39 -0
  829. package/blocks/services/services-menu/styles.css +6 -0
  830. package/blocks/services/services-menu/template.html +1 -0
  831. package/blocks/services/services-packages/README.md +34 -0
  832. package/blocks/services/services-packages/styles.css +6 -0
  833. package/blocks/services/services-packages/template.html +1 -0
  834. package/blocks/services/services-panels/README.md +36 -0
  835. package/blocks/services/services-panels/styles.css +15 -0
  836. package/blocks/services/services-panels/template.html +1 -0
  837. package/blocks/services/services-photo-grid/README.md +39 -0
  838. package/blocks/services/services-photo-grid/styles.css +10 -0
  839. package/blocks/services/services-photo-grid/template.html +1 -0
  840. package/blocks/services/services-priority/README.md +33 -0
  841. package/blocks/services/services-priority/block.meta.json +86 -0
  842. package/blocks/services/services-priority/styles.css +16 -0
  843. package/blocks/services/services-priority/template.html +1 -0
  844. package/blocks/stats/stats-cards/README.md +31 -0
  845. package/blocks/stats/stats-cards/styles.css +4 -0
  846. package/blocks/stats/stats-cards/template.html +1 -0
  847. package/blocks/stats/stats-mosaic/README.md +27 -0
  848. package/blocks/stats/stats-mosaic/styles.css +9 -0
  849. package/blocks/stats/stats-mosaic/template.html +1 -0
  850. package/blocks/stats/stats-row/README.md +29 -0
  851. package/blocks/stats/stats-row/styles.css +8 -0
  852. package/blocks/stats/stats-row/template.html +1 -0
  853. package/blocks/stats/stats-split/README.md +35 -0
  854. package/blocks/stats/stats-split/styles.css +3 -0
  855. package/blocks/stats/stats-split/template.html +1 -0
  856. package/blocks/team/team-featured/README.md +42 -0
  857. package/blocks/team/team-featured/styles.css +9 -0
  858. package/blocks/team/team-featured/template.html +1 -0
  859. package/blocks/team/team-grid/README.md +35 -0
  860. package/blocks/team/team-grid/styles.css +8 -0
  861. package/blocks/team/team-grid/template.html +1 -0
  862. package/blocks/team/team-list/README.md +32 -0
  863. package/blocks/team/team-list/styles.css +7 -0
  864. package/blocks/team/team-list/template.html +1 -0
  865. package/blocks/testimonial/testimonial-carousel/README.md +32 -0
  866. package/blocks/testimonial/testimonial-carousel/styles.css +7 -0
  867. package/blocks/testimonial/testimonial-carousel/template.html +1 -0
  868. package/blocks/testimonial/testimonial-grid/README.md +32 -0
  869. package/blocks/testimonial/testimonial-grid/styles.css +5 -0
  870. package/blocks/testimonial/testimonial-grid/template.html +1 -0
  871. package/blocks/testimonial/testimonial-mosaic/README.md +38 -0
  872. package/blocks/testimonial/testimonial-mosaic/styles.css +14 -0
  873. package/blocks/testimonial/testimonial-mosaic/template.html +1 -0
  874. package/blocks/testimonial/testimonial-platform/README.md +34 -0
  875. package/blocks/testimonial/testimonial-platform/styles.css +17 -0
  876. package/blocks/testimonial/testimonial-platform/template.html +1 -0
  877. package/blocks/testimonial/testimonial-rating/README.md +28 -0
  878. package/blocks/testimonial/testimonial-rating/styles.css +6 -0
  879. package/blocks/testimonial/testimonial-rating/template.html +1 -0
  880. package/blocks/testimonial/testimonial-spotlight/README.md +31 -0
  881. package/blocks/testimonial/testimonial-spotlight/styles.css +9 -0
  882. package/blocks/testimonial/testimonial-spotlight/template.html +1 -0
  883. package/blocks/testimonial/testimonial-switcher/README.md +39 -0
  884. package/blocks/testimonial/testimonial-switcher/styles.css +23 -0
  885. package/blocks/testimonial/testimonial-switcher/template.html +1 -0
  886. package/blocks/testimonial/testimonial-wall/README.md +34 -0
  887. package/blocks/testimonial/testimonial-wall/styles.css +7 -0
  888. package/blocks/testimonial/testimonial-wall/template.html +1 -0
  889. package/blocks/trust-strip/trust-badges/README.md +30 -0
  890. package/blocks/trust-strip/trust-badges/styles.css +5 -0
  891. package/blocks/trust-strip/trust-badges/template.html +1 -0
  892. package/blocks/trust-strip/trust-certs/README.md +31 -0
  893. package/blocks/trust-strip/trust-certs/styles.css +12 -0
  894. package/blocks/trust-strip/trust-certs/template.html +1 -0
  895. package/blocks/trust-strip/trust-logos/README.md +32 -0
  896. package/blocks/trust-strip/trust-logos/styles.css +5 -0
  897. package/blocks/trust-strip/trust-logos/template.html +1 -0
  898. package/blocks/trust-strip/trust-quote/README.md +29 -0
  899. package/blocks/trust-strip/trust-quote/styles.css +5 -0
  900. package/blocks/trust-strip/trust-quote/template.html +1 -0
  901. package/blocks/trust-strip/trust-reviews/README.md +35 -0
  902. package/blocks/trust-strip/trust-reviews/styles.css +9 -0
  903. package/blocks/trust-strip/trust-reviews/template.html +1 -0
  904. package/blocks/work/case-alternating/README.md +34 -0
  905. package/blocks/work/case-alternating/block.meta.json +86 -0
  906. package/blocks/work/case-alternating/styles.css +7 -0
  907. package/blocks/work/case-alternating/template.html +1 -0
  908. package/blocks/work/case-carousel/README.md +26 -0
  909. package/blocks/work/case-carousel/styles.css +7 -0
  910. package/blocks/work/case-carousel/template.html +1 -0
  911. package/blocks/work/case-header/README.md +38 -0
  912. package/blocks/work/case-header/styles.css +18 -0
  913. package/blocks/work/case-header/template.html +1 -0
  914. package/blocks/work/project-evidence/README.md +35 -0
  915. package/blocks/work/project-evidence/block.meta.json +87 -0
  916. package/blocks/work/project-evidence/styles.css +12 -0
  917. package/blocks/work/project-evidence/template.html +1 -0
  918. package/blocks/work/project-grid/README.md +38 -0
  919. package/blocks/work/project-grid/styles.css +9 -0
  920. package/blocks/work/project-grid/template.html +1 -0
  921. package/cloudflare/wrangler.forms-test.jsonc +19 -0
  922. package/cloudflare/wrangler.jsonc +14 -0
  923. package/cloudflare/wrangler.templates.jsonc +6 -0
  924. package/design-system/MASTER.md +76 -0
  925. package/design-system/calibration/v2/accuracy.html +1 -0
  926. package/design-system/calibration/v2/accuracy.png +0 -0
  927. package/design-system/calibration/v2/manifest.json +88 -0
  928. package/design-system/calibration/v2/probe.png +0 -0
  929. package/design-system/calibration/v2/vitris-northline-counsel-home-1280-viewport.png +0 -0
  930. package/design-system/calibration/v2/vitris-northline-counsel-home-375-viewport.png +0 -0
  931. package/design-system/calibration/v2/vitris-northline-counsel-planning-1280-viewport.png +0 -0
  932. package/design-system/calibration/v2/vitris-northline-counsel-planning-375-viewport.png +0 -0
  933. package/design-system/calibration/v2/vitris-tide-and-slate-home-1280-viewport.png +0 -0
  934. package/design-system/calibration/v2/vitris-tide-and-slate-home-375-viewport.png +0 -0
  935. package/design-system/calibration/v2/vitris-tide-and-slate-project-1280-viewport.png +0 -0
  936. package/design-system/calibration/v2/vitris-tide-and-slate-project-375-viewport.png +0 -0
  937. package/design-system/compositions/v1/README.md +13 -0
  938. package/design-system/compositions/v1/northline-counsel/components/contact-phone-first/styles.css +11 -0
  939. package/design-system/compositions/v1/northline-counsel/components/contact-phone-first/template.html +1 -0
  940. package/design-system/compositions/v1/northline-counsel/components/contact-visit/styles.css +13 -0
  941. package/design-system/compositions/v1/northline-counsel/components/contact-visit/template.html +1 -0
  942. package/design-system/compositions/v1/northline-counsel/components/footer-compact/styles.css +12 -0
  943. package/design-system/compositions/v1/northline-counsel/components/footer-compact/template.html +1 -0
  944. package/design-system/compositions/v1/northline-counsel/components/hero-evidence/styles.css +13 -0
  945. package/design-system/compositions/v1/northline-counsel/components/hero-evidence/template.html +1 -0
  946. package/design-system/compositions/v1/northline-counsel/components/hero-page/styles.css +19 -0
  947. package/design-system/compositions/v1/northline-counsel/components/hero-page/template.html +1 -0
  948. package/design-system/compositions/v1/northline-counsel/components/nav-split/styles.css +11 -0
  949. package/design-system/compositions/v1/northline-counsel/components/nav-split/template.html +11 -0
  950. package/design-system/compositions/v1/northline-counsel/components/services-priority/styles.css +16 -0
  951. package/design-system/compositions/v1/northline-counsel/components/services-priority/template.html +1 -0
  952. package/design-system/compositions/v1/northline-counsel/components/specification-ledger/styles.css +10 -0
  953. package/design-system/compositions/v1/northline-counsel/components/specification-ledger/template.html +1 -0
  954. package/design-system/compositions/v1/northline-counsel/direction.md +5 -0
  955. package/design-system/compositions/v1/northline-counsel/fixture-brief.json +10 -0
  956. package/design-system/compositions/v1/northline-counsel/media-inventory.json +1 -0
  957. package/design-system/compositions/v1/northline-counsel/pages/index.html +11 -0
  958. package/design-system/compositions/v1/northline-counsel/pages/planning.html +11 -0
  959. package/design-system/compositions/v1/northline-counsel/selection-receipt.json +36 -0
  960. package/design-system/compositions/v1/northline-counsel/site.json +1 -0
  961. package/design-system/compositions/v1/northline-counsel/storyboard.md +12 -0
  962. package/design-system/compositions/v1/northline-counsel/theme/defaults.json +1 -0
  963. package/design-system/compositions/v1/source-ledger.json +18 -0
  964. package/design-system/compositions/v1/tide-and-slate/components/contact-phone-first/styles.css +11 -0
  965. package/design-system/compositions/v1/tide-and-slate/components/contact-phone-first/template.html +1 -0
  966. package/design-system/compositions/v1/tide-and-slate/components/footer-compact/styles.css +12 -0
  967. package/design-system/compositions/v1/tide-and-slate/components/footer-compact/template.html +1 -0
  968. package/design-system/compositions/v1/tide-and-slate/components/hero-page/styles.css +19 -0
  969. package/design-system/compositions/v1/tide-and-slate/components/hero-page/template.html +1 -0
  970. package/design-system/compositions/v1/tide-and-slate/components/hero-split/styles.css +7 -0
  971. package/design-system/compositions/v1/tide-and-slate/components/hero-split/template.html +11 -0
  972. package/design-system/compositions/v1/tide-and-slate/components/nav-split/styles.css +11 -0
  973. package/design-system/compositions/v1/tide-and-slate/components/nav-split/template.html +11 -0
  974. package/design-system/compositions/v1/tide-and-slate/components/project-evidence/styles.css +12 -0
  975. package/design-system/compositions/v1/tide-and-slate/components/project-evidence/template.html +1 -0
  976. package/design-system/compositions/v1/tide-and-slate/components/services-priority/styles.css +16 -0
  977. package/design-system/compositions/v1/tide-and-slate/components/services-priority/template.html +1 -0
  978. package/design-system/compositions/v1/tide-and-slate/components/specification-ledger/styles.css +10 -0
  979. package/design-system/compositions/v1/tide-and-slate/components/specification-ledger/template.html +1 -0
  980. package/design-system/compositions/v1/tide-and-slate/direction.md +5 -0
  981. package/design-system/compositions/v1/tide-and-slate/fixture-brief.json +10 -0
  982. package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-finished.webp +0 -0
  983. package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-finished.webp.provenance.json +9 -0
  984. package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-work.webp +0 -0
  985. package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-work.webp.provenance.json +9 -0
  986. package/design-system/compositions/v1/tide-and-slate/media-inventory.json +7 -0
  987. package/design-system/compositions/v1/tide-and-slate/pages/index.html +10 -0
  988. package/design-system/compositions/v1/tide-and-slate/pages/project.html +10 -0
  989. package/design-system/compositions/v1/tide-and-slate/site.json +1 -0
  990. package/design-system/compositions/v1/tide-and-slate/storyboard.md +12 -0
  991. package/design-system/compositions/v1/tide-and-slate/theme/defaults.json +1 -0
  992. package/design-system/compositions/v2/catalog.json +4018 -0
  993. package/design-system/compositions/v2/clearwell-directory/components/study-clearwell-directory/styles.css +3 -0
  994. package/design-system/compositions/v2/clearwell-directory/components/study-clearwell-directory/template.html +1 -0
  995. package/design-system/compositions/v2/clearwell-directory/pages/detail/index.html +5 -0
  996. package/design-system/compositions/v2/clearwell-directory/pages/index.html +5 -0
  997. package/design-system/compositions/v2/clearwell-directory/site.json +7 -0
  998. package/design-system/compositions/v2/clearwell-directory/study.json +244 -0
  999. package/design-system/compositions/v2/clearwell-directory/theme/defaults.json +16 -0
  1000. package/design-system/compositions/v2/clearwell-letter/components/study-clearwell-letter/styles.css +2 -0
  1001. package/design-system/compositions/v2/clearwell-letter/components/study-clearwell-letter/template.html +1 -0
  1002. package/design-system/compositions/v2/clearwell-letter/pages/detail/index.html +5 -0
  1003. package/design-system/compositions/v2/clearwell-letter/pages/index.html +5 -0
  1004. package/design-system/compositions/v2/clearwell-letter/site.json +7 -0
  1005. package/design-system/compositions/v2/clearwell-letter/study.json +236 -0
  1006. package/design-system/compositions/v2/clearwell-letter/theme/defaults.json +16 -0
  1007. package/design-system/compositions/v2/dock-radio/components/study-dock-radio/styles.css +2 -0
  1008. package/design-system/compositions/v2/dock-radio/components/study-dock-radio/template.html +1 -0
  1009. package/design-system/compositions/v2/dock-radio/media/teaching/original-tone-study.wav +0 -0
  1010. package/design-system/compositions/v2/dock-radio/media/teaching/original-tone-study.wav.provenance.json +6 -0
  1011. package/design-system/compositions/v2/dock-radio/pages/detail/index.html +5 -0
  1012. package/design-system/compositions/v2/dock-radio/pages/index.html +5 -0
  1013. package/design-system/compositions/v2/dock-radio/site.json +7 -0
  1014. package/design-system/compositions/v2/dock-radio/study.json +288 -0
  1015. package/design-system/compositions/v2/dock-radio/theme/defaults.json +16 -0
  1016. package/design-system/compositions/v2/fen-repair/components/study-fen-repair/styles.css +2 -0
  1017. package/design-system/compositions/v2/fen-repair/components/study-fen-repair/template.html +1 -0
  1018. package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-finished.webp +0 -0
  1019. package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-finished.webp.provenance.json +9 -0
  1020. package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-work.webp +0 -0
  1021. package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-work.webp.provenance.json +9 -0
  1022. package/design-system/compositions/v2/fen-repair/pages/detail/index.html +5 -0
  1023. package/design-system/compositions/v2/fen-repair/pages/index.html +5 -0
  1024. package/design-system/compositions/v2/fen-repair/site.json +7 -0
  1025. package/design-system/compositions/v2/fen-repair/study.json +236 -0
  1026. package/design-system/compositions/v2/fen-repair/theme/defaults.json +16 -0
  1027. package/design-system/compositions/v2/hearth-plane/components/study-hearth-plane/styles.css +2 -0
  1028. package/design-system/compositions/v2/hearth-plane/components/study-hearth-plane/template.html +1 -0
  1029. package/design-system/compositions/v2/hearth-plane/pages/detail/index.html +5 -0
  1030. package/design-system/compositions/v2/hearth-plane/pages/index.html +5 -0
  1031. package/design-system/compositions/v2/hearth-plane/site.json +7 -0
  1032. package/design-system/compositions/v2/hearth-plane/study.json +238 -0
  1033. package/design-system/compositions/v2/hearth-plane/theme/defaults.json +16 -0
  1034. package/design-system/compositions/v2/lacuna-objects/components/study-lacuna-objects/styles.css +2 -0
  1035. package/design-system/compositions/v2/lacuna-objects/components/study-lacuna-objects/template.html +1 -0
  1036. package/design-system/compositions/v2/lacuna-objects/pages/detail/index.html +5 -0
  1037. package/design-system/compositions/v2/lacuna-objects/pages/index.html +5 -0
  1038. package/design-system/compositions/v2/lacuna-objects/site.json +7 -0
  1039. package/design-system/compositions/v2/lacuna-objects/study.json +242 -0
  1040. package/design-system/compositions/v2/lacuna-objects/theme/defaults.json +16 -0
  1041. package/design-system/compositions/v2/loop-room/components/study-loop-room/styles.css +2 -0
  1042. package/design-system/compositions/v2/loop-room/components/study-loop-room/template.html +1 -0
  1043. package/design-system/compositions/v2/loop-room/pages/detail/index.html +5 -0
  1044. package/design-system/compositions/v2/loop-room/pages/index.html +5 -0
  1045. package/design-system/compositions/v2/loop-room/site.json +7 -0
  1046. package/design-system/compositions/v2/loop-room/study.json +253 -0
  1047. package/design-system/compositions/v2/loop-room/theme/defaults.json +16 -0
  1048. package/design-system/compositions/v2/manifest.json +740 -0
  1049. package/design-system/compositions/v2/mara-reading-room/components/study-mara-reading-room/styles.css +2 -0
  1050. package/design-system/compositions/v2/mara-reading-room/components/study-mara-reading-room/template.html +1 -0
  1051. package/design-system/compositions/v2/mara-reading-room/pages/detail/index.html +5 -0
  1052. package/design-system/compositions/v2/mara-reading-room/pages/index.html +5 -0
  1053. package/design-system/compositions/v2/mara-reading-room/site.json +7 -0
  1054. package/design-system/compositions/v2/mara-reading-room/study.json +246 -0
  1055. package/design-system/compositions/v2/mara-reading-room/theme/defaults.json +16 -0
  1056. package/design-system/compositions/v2/mara-specimen/components/study-mara-specimen/styles.css +3 -0
  1057. package/design-system/compositions/v2/mara-specimen/components/study-mara-specimen/template.html +1 -0
  1058. package/design-system/compositions/v2/mara-specimen/pages/detail/index.html +5 -0
  1059. package/design-system/compositions/v2/mara-specimen/pages/index.html +5 -0
  1060. package/design-system/compositions/v2/mara-specimen/site.json +7 -0
  1061. package/design-system/compositions/v2/mara-specimen/study.json +244 -0
  1062. package/design-system/compositions/v2/mara-specimen/theme/defaults.json +16 -0
  1063. package/design-system/compositions/v2/margin-journal/components/study-margin-journal/styles.css +2 -0
  1064. package/design-system/compositions/v2/margin-journal/components/study-margin-journal/template.html +1 -0
  1065. package/design-system/compositions/v2/margin-journal/pages/detail/index.html +5 -0
  1066. package/design-system/compositions/v2/margin-journal/pages/index.html +5 -0
  1067. package/design-system/compositions/v2/margin-journal/site.json +7 -0
  1068. package/design-system/compositions/v2/margin-journal/study.json +242 -0
  1069. package/design-system/compositions/v2/margin-journal/theme/defaults.json +16 -0
  1070. package/design-system/compositions/v2/night-orchard/components/study-night-orchard/styles.css +2 -0
  1071. package/design-system/compositions/v2/night-orchard/components/study-night-orchard/template.html +1 -0
  1072. package/design-system/compositions/v2/night-orchard/pages/detail/index.html +5 -0
  1073. package/design-system/compositions/v2/night-orchard/pages/index.html +5 -0
  1074. package/design-system/compositions/v2/night-orchard/site.json +7 -0
  1075. package/design-system/compositions/v2/night-orchard/study.json +247 -0
  1076. package/design-system/compositions/v2/night-orchard/theme/defaults.json +16 -0
  1077. package/design-system/compositions/v2/previews/clearwell-directory-home-1440.png +0 -0
  1078. package/design-system/compositions/v2/previews/clearwell-directory-home-390.png +0 -0
  1079. package/design-system/compositions/v2/previews/clearwell-directory-interior-1440.png +0 -0
  1080. package/design-system/compositions/v2/previews/clearwell-directory-interior-390.png +0 -0
  1081. package/design-system/compositions/v2/previews/clearwell-letter-home-1440.png +0 -0
  1082. package/design-system/compositions/v2/previews/clearwell-letter-home-390.png +0 -0
  1083. package/design-system/compositions/v2/previews/clearwell-letter-interior-1440.png +0 -0
  1084. package/design-system/compositions/v2/previews/clearwell-letter-interior-390.png +0 -0
  1085. package/design-system/compositions/v2/previews/dock-radio-home-1440.png +0 -0
  1086. package/design-system/compositions/v2/previews/dock-radio-home-390.png +0 -0
  1087. package/design-system/compositions/v2/previews/dock-radio-interior-1440.png +0 -0
  1088. package/design-system/compositions/v2/previews/dock-radio-interior-390.png +0 -0
  1089. package/design-system/compositions/v2/previews/fen-repair-home-1440.png +0 -0
  1090. package/design-system/compositions/v2/previews/fen-repair-home-390.png +0 -0
  1091. package/design-system/compositions/v2/previews/fen-repair-interior-1440.png +0 -0
  1092. package/design-system/compositions/v2/previews/fen-repair-interior-390.png +0 -0
  1093. package/design-system/compositions/v2/previews/hearth-plane-home-1440.png +0 -0
  1094. package/design-system/compositions/v2/previews/hearth-plane-home-390.png +0 -0
  1095. package/design-system/compositions/v2/previews/hearth-plane-interior-1440.png +0 -0
  1096. package/design-system/compositions/v2/previews/hearth-plane-interior-390.png +0 -0
  1097. package/design-system/compositions/v2/previews/lacuna-objects-home-1440.png +0 -0
  1098. package/design-system/compositions/v2/previews/lacuna-objects-home-390.png +0 -0
  1099. package/design-system/compositions/v2/previews/lacuna-objects-interior-1440.png +0 -0
  1100. package/design-system/compositions/v2/previews/lacuna-objects-interior-390.png +0 -0
  1101. package/design-system/compositions/v2/previews/loop-room-home-1440.png +0 -0
  1102. package/design-system/compositions/v2/previews/loop-room-home-390.png +0 -0
  1103. package/design-system/compositions/v2/previews/loop-room-interior-1440.png +0 -0
  1104. package/design-system/compositions/v2/previews/loop-room-interior-390.png +0 -0
  1105. package/design-system/compositions/v2/previews/mara-reading-room-home-1440.png +0 -0
  1106. package/design-system/compositions/v2/previews/mara-reading-room-home-390.png +0 -0
  1107. package/design-system/compositions/v2/previews/mara-reading-room-interior-1440.png +0 -0
  1108. package/design-system/compositions/v2/previews/mara-reading-room-interior-390.png +0 -0
  1109. package/design-system/compositions/v2/previews/mara-specimen-home-1440.png +0 -0
  1110. package/design-system/compositions/v2/previews/mara-specimen-home-390.png +0 -0
  1111. package/design-system/compositions/v2/previews/mara-specimen-interior-1440.png +0 -0
  1112. package/design-system/compositions/v2/previews/mara-specimen-interior-390.png +0 -0
  1113. package/design-system/compositions/v2/previews/margin-journal-home-1440.png +0 -0
  1114. package/design-system/compositions/v2/previews/margin-journal-home-390.png +0 -0
  1115. package/design-system/compositions/v2/previews/margin-journal-interior-1440.png +0 -0
  1116. package/design-system/compositions/v2/previews/margin-journal-interior-390.png +0 -0
  1117. package/design-system/compositions/v2/previews/night-orchard-home-1440.png +0 -0
  1118. package/design-system/compositions/v2/previews/night-orchard-home-390.png +0 -0
  1119. package/design-system/compositions/v2/previews/night-orchard-interior-1440.png +0 -0
  1120. package/design-system/compositions/v2/previews/night-orchard-interior-390.png +0 -0
  1121. package/design-system/compositions/v2/previews/relay-workflow-home-1440.png +0 -0
  1122. package/design-system/compositions/v2/previews/relay-workflow-home-390.png +0 -0
  1123. package/design-system/compositions/v2/previews/relay-workflow-interior-1440.png +0 -0
  1124. package/design-system/compositions/v2/previews/relay-workflow-interior-390.png +0 -0
  1125. package/design-system/compositions/v2/previews/rivet-components-home-1440.png +0 -0
  1126. package/design-system/compositions/v2/previews/rivet-components-home-390.png +0 -0
  1127. package/design-system/compositions/v2/previews/rivet-components-interior-1440.png +0 -0
  1128. package/design-system/compositions/v2/previews/rivet-components-interior-390.png +0 -0
  1129. package/design-system/compositions/v2/previews/signal-fair-home-1440.png +0 -0
  1130. package/design-system/compositions/v2/previews/signal-fair-home-390.png +0 -0
  1131. package/design-system/compositions/v2/previews/signal-fair-interior-1440.png +0 -0
  1132. package/design-system/compositions/v2/previews/signal-fair-interior-390.png +0 -0
  1133. package/design-system/compositions/v2/previews/sundial-goods-home-1440.png +0 -0
  1134. package/design-system/compositions/v2/previews/sundial-goods-home-390.png +0 -0
  1135. package/design-system/compositions/v2/previews/sundial-goods-interior-1440.png +0 -0
  1136. package/design-system/compositions/v2/previews/sundial-goods-interior-390.png +0 -0
  1137. package/design-system/compositions/v2/previews/thread-mender-home-1440.png +0 -0
  1138. package/design-system/compositions/v2/previews/thread-mender-home-390.png +0 -0
  1139. package/design-system/compositions/v2/previews/thread-mender-interior-1440.png +0 -0
  1140. package/design-system/compositions/v2/previews/thread-mender-interior-390.png +0 -0
  1141. package/design-system/compositions/v2/relay-workflow/components/study-relay-workflow/styles.css +2 -0
  1142. package/design-system/compositions/v2/relay-workflow/components/study-relay-workflow/template.html +1 -0
  1143. package/design-system/compositions/v2/relay-workflow/pages/detail/index.html +5 -0
  1144. package/design-system/compositions/v2/relay-workflow/pages/index.html +5 -0
  1145. package/design-system/compositions/v2/relay-workflow/site.json +7 -0
  1146. package/design-system/compositions/v2/relay-workflow/study.json +283 -0
  1147. package/design-system/compositions/v2/relay-workflow/theme/defaults.json +16 -0
  1148. package/design-system/compositions/v2/rivet-components/components/study-rivet-components/styles.css +2 -0
  1149. package/design-system/compositions/v2/rivet-components/components/study-rivet-components/template.html +1 -0
  1150. package/design-system/compositions/v2/rivet-components/pages/detail/index.html +5 -0
  1151. package/design-system/compositions/v2/rivet-components/pages/index.html +5 -0
  1152. package/design-system/compositions/v2/rivet-components/site.json +7 -0
  1153. package/design-system/compositions/v2/rivet-components/study.json +241 -0
  1154. package/design-system/compositions/v2/rivet-components/theme/defaults.json +16 -0
  1155. package/design-system/compositions/v2/signal-fair/components/study-signal-fair/styles.css +2 -0
  1156. package/design-system/compositions/v2/signal-fair/components/study-signal-fair/template.html +1 -0
  1157. package/design-system/compositions/v2/signal-fair/pages/detail/index.html +5 -0
  1158. package/design-system/compositions/v2/signal-fair/pages/index.html +5 -0
  1159. package/design-system/compositions/v2/signal-fair/site.json +7 -0
  1160. package/design-system/compositions/v2/signal-fair/study.json +271 -0
  1161. package/design-system/compositions/v2/signal-fair/theme/defaults.json +16 -0
  1162. package/design-system/compositions/v2/sundial-goods/components/study-sundial-goods/styles.css +2 -0
  1163. package/design-system/compositions/v2/sundial-goods/components/study-sundial-goods/template.html +1 -0
  1164. package/design-system/compositions/v2/sundial-goods/pages/detail/index.html +5 -0
  1165. package/design-system/compositions/v2/sundial-goods/pages/index.html +5 -0
  1166. package/design-system/compositions/v2/sundial-goods/site.json +7 -0
  1167. package/design-system/compositions/v2/sundial-goods/study.json +247 -0
  1168. package/design-system/compositions/v2/sundial-goods/theme/defaults.json +16 -0
  1169. package/design-system/compositions/v2/thread-mender/components/study-thread-mender/styles.css +2 -0
  1170. package/design-system/compositions/v2/thread-mender/components/study-thread-mender/template.html +1 -0
  1171. package/design-system/compositions/v2/thread-mender/pages/detail/index.html +5 -0
  1172. package/design-system/compositions/v2/thread-mender/pages/index.html +5 -0
  1173. package/design-system/compositions/v2/thread-mender/site.json +7 -0
  1174. package/design-system/compositions/v2/thread-mender/study.json +253 -0
  1175. package/design-system/compositions/v2/thread-mender/theme/defaults.json +16 -0
  1176. package/design-system/knowledge/v1/README.md +8 -0
  1177. package/design-system/knowledge/v1/catalog.json +479 -0
  1178. package/design-system/knowledge/v1/demonstrations/assets/teaching-slate-slope.png +0 -0
  1179. package/design-system/knowledge/v1/demonstrations/assets/teaching-slate-slope.provenance.json +12 -0
  1180. package/design-system/knowledge/v1/demonstrations/mobile-strong.html +50 -0
  1181. package/design-system/knowledge/v1/demonstrations/mobile-weak.html +50 -0
  1182. package/design-system/knowledge/v1/demonstrations/project-strong.html +50 -0
  1183. package/design-system/knowledge/v1/demonstrations/project-weak.html +50 -0
  1184. package/design-system/knowledge/v1/demonstrations/repeat-strong.html +50 -0
  1185. package/design-system/knowledge/v1/demonstrations/repeat-weak.html +50 -0
  1186. package/design-system/knowledge/v1/demonstrations/services-strong.html +50 -0
  1187. package/design-system/knowledge/v1/demonstrations/services-weak.html +50 -0
  1188. package/design-system/knowledge/v1/demonstrations/sparse-strong.html +50 -0
  1189. package/design-system/knowledge/v1/demonstrations/sparse-weak.html +50 -0
  1190. package/design-system/knowledge/v1/demonstrations/type-strong.html +50 -0
  1191. package/design-system/knowledge/v1/demonstrations/type-weak.html +50 -0
  1192. package/design-system/knowledge/v1/manifest.json +88 -0
  1193. package/design-system/knowledge/v1/observations/mobile-strong-1080.png +0 -0
  1194. package/design-system/knowledge/v1/observations/mobile-strong-375.png +0 -0
  1195. package/design-system/knowledge/v1/observations/mobile-weak-1080.png +0 -0
  1196. package/design-system/knowledge/v1/observations/mobile-weak-375.png +0 -0
  1197. package/design-system/knowledge/v1/observations/project-strong-1080.png +0 -0
  1198. package/design-system/knowledge/v1/observations/project-strong-375.png +0 -0
  1199. package/design-system/knowledge/v1/observations/project-weak-1080.png +0 -0
  1200. package/design-system/knowledge/v1/observations/project-weak-375.png +0 -0
  1201. package/design-system/knowledge/v1/observations/type-strong-1080.png +0 -0
  1202. package/design-system/knowledge/v1/observations/type-strong-375.png +0 -0
  1203. package/design-system/knowledge/v1/observations/type-weak-1080.png +0 -0
  1204. package/design-system/knowledge/v1/observations/type-weak-375.png +0 -0
  1205. package/design-system/knowledge/v2/added-lessons.json +30 -0
  1206. package/design-system/knowledge/v2/assets.json +14 -0
  1207. package/design-system/knowledge/v2/fixtures/contact-alternate.html +17 -0
  1208. package/design-system/knowledge/v2/fixtures/contact-broken.html +15 -0
  1209. package/design-system/knowledge/v2/fixtures/contact-valid.html +20 -0
  1210. package/design-system/knowledge/v2/fixtures/contrast-cases.html +10 -0
  1211. package/design-system/knowledge/v2/island-audit.json +12 -0
  1212. package/design-system/knowledge/v2/lesson-extensions.json +158 -0
  1213. package/design-system/knowledge/v2/manifest.json +52 -0
  1214. package/design-system/knowledge/v2/replacements.json +14 -0
  1215. package/design-system/knowledge/v2/requirements.json +345 -0
  1216. package/design-system/knowledge/v2/sources.json +182 -0
  1217. package/design-system/knowledge/v3/catalog.json +1232 -0
  1218. package/design-system/knowledge/v3/examples/catalog.json +799 -0
  1219. package/design-system/knowledge/v3/lessons/cmp-collection-structure.md +17 -0
  1220. package/design-system/knowledge/v3/lessons/cmp-comparison.md +17 -0
  1221. package/design-system/knowledge/v3/lessons/cmp-contextual-action.md +17 -0
  1222. package/design-system/knowledge/v3/lessons/cmp-contrastive-critique.md +17 -0
  1223. package/design-system/knowledge/v3/lessons/cmp-disclosure.md +17 -0
  1224. package/design-system/knowledge/v3/lessons/cmp-evidence-form.md +17 -0
  1225. package/design-system/knowledge/v3/lessons/cmp-image-art-direction.md +17 -0
  1226. package/design-system/knowledge/v3/lessons/cmp-image-sequence.md +17 -0
  1227. package/design-system/knowledge/v3/lessons/cmp-interactive-explanation.md +17 -0
  1228. package/design-system/knowledge/v3/lessons/cmp-local-information.md +17 -0
  1229. package/design-system/knowledge/v3/lessons/cmp-motion-continuity.md +17 -0
  1230. package/design-system/knowledge/v3/lessons/cmp-narrative-continuity.md +17 -0
  1231. package/design-system/knowledge/v3/lessons/cmp-navigation.md +17 -0
  1232. package/design-system/knowledge/v3/lessons/cmp-page-rhythm.md +17 -0
  1233. package/design-system/knowledge/v3/lessons/cmp-process.md +17 -0
  1234. package/design-system/knowledge/v3/lessons/cmp-proof-adjacency.md +17 -0
  1235. package/design-system/knowledge/v3/lessons/cmp-responsive-recomposition.md +17 -0
  1236. package/design-system/knowledge/v3/lessons/cmp-semantic-grouping.md +17 -0
  1237. package/design-system/knowledge/v3/lessons/cmp-shared-alignment.md +17 -0
  1238. package/design-system/knowledge/v3/lessons/cmp-sparse-media.md +17 -0
  1239. package/design-system/knowledge/v3/lessons/cmp-surfaces-motifs.md +17 -0
  1240. package/design-system/knowledge/v3/lessons/cmp-text-shape.md +17 -0
  1241. package/design-system/knowledge/v3/lessons/cmp-type-roles.md +17 -0
  1242. package/design-system/knowledge/v3/lessons/cmp-unequal-emphasis.md +17 -0
  1243. package/design-system/knowledge/v3/manifest.json +117 -0
  1244. package/design-system/knowledge/v3/sources.json +425 -0
  1245. package/design-system/references/v1/README.md +27 -0
  1246. package/design-system/references/v1/catalog.json +20035 -0
  1247. package/design-system/references/v1/manifest.json +10 -0
  1248. package/design-system/references/v2/README.md +27 -0
  1249. package/design-system/references/v2/catalog.json +27382 -0
  1250. package/design-system/references/v2/manifest.json +11 -0
  1251. package/design-system/references/v3/README.md +27 -0
  1252. package/design-system/references/v3/catalog.json +27628 -0
  1253. package/design-system/references/v3/manifest.json +11 -0
  1254. package/docs/CLI.md +299 -0
  1255. package/docs/CLOUDFLARE.md +53 -0
  1256. package/docs/CONTACT-FORMS.md +161 -0
  1257. package/docs/DISTRIBUTION.md +70 -0
  1258. package/docs/ENGINE.md +28 -0
  1259. package/docs/PRESERVE.md +59 -0
  1260. package/docs/SECURITY.md +23 -0
  1261. package/docs/STOCK-MEDIA.md +66 -0
  1262. package/licenses/blake3-wasm-LICENSE +21 -0
  1263. package/licenses/entities-LICENSE +11 -0
  1264. package/licenses/parse5-LICENSE +19 -0
  1265. package/migrations/0001_init.sql +90 -0
  1266. package/migrations/0002_analytics.sql +50 -0
  1267. package/migrations/0003_site_updates.sql +29 -0
  1268. package/migrations/0004_contact_forms.sql +75 -0
  1269. package/migrations/0005_auth.sql +20 -0
  1270. package/package.json +229 -6
  1271. package/src/runtime/beacon.ts +329 -0
  1272. package/src/runtime/before-after.ts +48 -0
  1273. package/src/runtime/carousel.ts +20 -0
  1274. package/src/runtime/cookie-compliance.ts +50 -0
  1275. package/src/runtime/counter.ts +2 -0
  1276. package/src/runtime/editor.ts +72 -0
  1277. package/src/runtime/experience.ts +57 -0
  1278. package/src/runtime/header.ts +46 -0
  1279. package/src/runtime/leads.ts +102 -0
  1280. package/src/runtime/lightbox.ts +26 -0
  1281. package/src/runtime/reveal.ts +2 -0
  1282. package/src/runtime/scroll-motion.controller.js +100 -0
  1283. package/src/runtime/scroll-motion.count.js +21 -0
  1284. package/src/runtime/scroll-motion.generated.ts +5 -0
  1285. package/src/runtime/scroll-motion.vanilla.js +45 -0
  1286. package/src/runtime/tabs.ts +40 -0
  1287. package/src/stock/catalog.json +5445 -0
  1288. package/src/stock/coverage.json +18 -0
  1289. package/src/stock/picker.css +118 -0
  1290. package/src/stock/picker.js +191 -0
  1291. package/templates/site/.env.example +6 -0
  1292. package/templates/site/.github/workflows/deploy.yml +59 -0
  1293. package/templates/site/AGENTS.md +35 -0
  1294. package/templates/site/CLAUDE.md +5 -0
  1295. package/templates/site/GEMINI.md +5 -0
  1296. package/templates/site/README.md +55 -0
  1297. package/templates/site/components/README.md +18 -0
  1298. package/templates/site/gitignore +10 -0
  1299. package/templates/site/launch.json +14 -0
  1300. package/templates/site/package.json +36 -0
  1301. package/templates/site/pages/README.md +31 -0
  1302. package/templates/site/site.json +10 -0
  1303. package/templates/site/theme/defaults.json +17 -0
@@ -0,0 +1,2751 @@
1
+ import {
2
+ iconCss,
3
+ renderIcon
4
+ } from "./chunk-GZDLXYZV.js";
5
+ import {
6
+ escapeHtml
7
+ } from "./chunk-7FS67SRF.js";
8
+
9
+ // src/compile/paths.ts
10
+ function fileToPath(relFile) {
11
+ const normalized = relFile.replace(/\\/g, "/").replace(/^\.\//, "");
12
+ if (normalized === "index.html") return "/";
13
+ if (normalized.endsWith("/index.html")) {
14
+ return `/${normalized.slice(0, -"/index.html".length)}`;
15
+ }
16
+ if (normalized.endsWith(".html")) {
17
+ return `/${normalized.slice(0, -".html".length)}`;
18
+ }
19
+ return `/${normalized}`;
20
+ }
21
+ function defaultTitleFromPath(path) {
22
+ if (path === "/") return "Home";
23
+ const last = path.replace(/\/$/, "").split("/").pop() || "Page";
24
+ return last.split("-").filter(Boolean).map((part) => part[0].toUpperCase() + part.slice(1)).join(" ");
25
+ }
26
+
27
+ // src/runtime/beacon.ts
28
+ var beaconJs = `(() => {
29
+ const kernel = document.documentElement.getAttribute("data-backend") || document.documentElement.getAttribute("data-kernel");
30
+ if (!kernel) return;
31
+
32
+ const endpoint = kernel.replace(/\\/$/, "") + "/api/t";
33
+ const gpc = navigator.globalPrivacyControl === true
34
+ || navigator.doNotTrack === "1"
35
+ || window.doNotTrack === "1";
36
+ const preview = location.pathname.match(/^\\/preview\\/([^/]+)/);
37
+ const src = preview ? "preview" : "live";
38
+ const path = location.pathname || "/";
39
+ const params = new URLSearchParams(location.search);
40
+ const started = Date.now();
41
+ let maxScroll = 0;
42
+ let engageCount = 0;
43
+ let left = false;
44
+ let pingTimer = 0;
45
+
46
+ const uuid = () => (crypto.randomUUID ? crypto.randomUUID() : "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
47
+ const r = (Math.random() * 16) | 0;
48
+ return (c === "x" ? r : (r & 0x3) | 0x8).toString(16);
49
+ }));
50
+
51
+ const readCookie = (name) => {
52
+ const parts = document.cookie.split("; ");
53
+ for (const part of parts) {
54
+ const i = part.indexOf("=");
55
+ if (i === -1) continue;
56
+ if (part.slice(0, i) === name) return decodeURIComponent(part.slice(i + 1));
57
+ }
58
+ return "";
59
+ };
60
+
61
+ const writeCookie = (name, value, days) => {
62
+ const maxAge = Math.floor(days * 86400);
63
+ const secure = location.protocol === "https:" ? "; Secure" : "";
64
+ document.cookie = name + "=" + encodeURIComponent(value)
65
+ + "; Path=/; Max-Age=" + maxAge + "; SameSite=Lax" + secure;
66
+ };
67
+
68
+ const clearCookie = (name) => {
69
+ const secure = location.protocol === "https:" ? "; Secure" : "";
70
+ document.cookie = name + "=; Path=/; Max-Age=0; SameSite=Lax" + secure;
71
+ };
72
+
73
+ const privacyHref = () => {
74
+ if (preview) return "/preview/" + preview[1] + "/cookie-compliance";
75
+ return "/cookie-compliance";
76
+ };
77
+
78
+ let consent = gpc ? "0" : (readCookie("vitris_cc") || "");
79
+ let allowCookie = !gpc && consent !== "0";
80
+
81
+ const uuidRe = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
82
+ let vid = "";
83
+
84
+ const ensureVid = () => {
85
+ if (!allowCookie) {
86
+ vid = "";
87
+ return;
88
+ }
89
+ vid = readCookie("vitris_vid");
90
+ if (!uuidRe.test(vid)) vid = uuid();
91
+ writeCookie("vitris_vid", vid, 395);
92
+ };
93
+ ensureVid();
94
+
95
+ const sidKey = "vitris_sid";
96
+ const sidAtKey = "vitris_sid_at";
97
+ let sid = "";
98
+ try {
99
+ const last = Number(sessionStorage.getItem(sidAtKey) || "0");
100
+ sid = sessionStorage.getItem(sidKey) || "";
101
+ if (!sid || !last || Date.now() - last > 30 * 60 * 1000) sid = uuid();
102
+ sessionStorage.setItem(sidKey, sid);
103
+ sessionStorage.setItem(sidAtKey, String(Date.now()));
104
+ } catch {
105
+ sid = uuid();
106
+ }
107
+
108
+ const touchSid = () => {
109
+ try { sessionStorage.setItem(sidAtKey, String(Date.now())); } catch (_) {}
110
+ };
111
+
112
+ const syncVidFields = () => {
113
+ document.querySelectorAll('form[data-lead-form] input[name="vid"]').forEach((el) => {
114
+ el.value = vid || "";
115
+ });
116
+ };
117
+ syncVidFields();
118
+
119
+ const send = (payload) => {
120
+ const body = new URLSearchParams();
121
+ for (const [k, v] of Object.entries(payload)) {
122
+ if (v == null || v === "") continue;
123
+ body.set(k, String(v));
124
+ }
125
+ if (preview) body.set("slug", preview[1]);
126
+ if (vid) body.set("vid", vid);
127
+ body.set("sid", sid);
128
+ body.set("src", src);
129
+ body.set("path", path);
130
+ if (navigator.sendBeacon && navigator.sendBeacon(endpoint, body)) return;
131
+ try {
132
+ fetch(endpoint, { method: "POST", body, keepalive: true, credentials: "omit", mode: "cors" }).catch(() => {});
133
+ } catch (_) {}
134
+ };
135
+
136
+ let referrerHost = "";
137
+ try {
138
+ if (document.referrer) referrerHost = new URL(document.referrer).hostname.replace(/^www\\./, "");
139
+ } catch (_) {}
140
+
141
+ send({
142
+ kind: "pageview",
143
+ referrer: referrerHost,
144
+ utm_medium: params.get("utm_medium") || "",
145
+ utm_source: params.get("utm_source") || "",
146
+ hour: String(new Date().getHours()),
147
+ });
148
+
149
+ const measureScroll = () => {
150
+ const doc = document.documentElement;
151
+ const bodyEl = document.body;
152
+ const height = Math.max(doc.scrollHeight, bodyEl ? bodyEl.scrollHeight : 0, 1);
153
+ const view = window.innerHeight || doc.clientHeight || 0;
154
+ const top = window.scrollY || doc.scrollTop || 0;
155
+ const pct = Math.min(100, Math.round(((top + view) / height) * 100));
156
+ if (pct > maxScroll) maxScroll = pct;
157
+ };
158
+ measureScroll();
159
+ let scrollRaf = 0;
160
+ window.addEventListener("scroll", () => {
161
+ if (scrollRaf) return;
162
+ scrollRaf = requestAnimationFrame(() => {
163
+ scrollRaf = 0;
164
+ measureScroll();
165
+ touchSid();
166
+ });
167
+ }, { passive: true });
168
+
169
+ const leave = () => {
170
+ if (left) return;
171
+ left = true;
172
+ measureScroll();
173
+ const duration = Math.min(30 * 60 * 1000, Math.max(0, Date.now() - started));
174
+ send({ kind: "leave", duration_ms: String(duration), scroll_pct: String(maxScroll) });
175
+ stopPing();
176
+ };
177
+
178
+ document.addEventListener("visibilitychange", () => {
179
+ if (document.visibilityState === "hidden") leave();
180
+ else if (allowCookie) {
181
+ startPing();
182
+ sendPing();
183
+ }
184
+ });
185
+ window.addEventListener("pagehide", leave);
186
+
187
+ const isMaps = (href) => {
188
+ const h = (href || "").toLowerCase();
189
+ return h.includes("google.com/maps") || h.includes("maps.google.")
190
+ || h.includes("maps.apple.com") || h.includes("bing.com/maps") || h.includes("goo.gl/maps");
191
+ };
192
+
193
+ const labelOf = (el) => {
194
+ if (!el) return "";
195
+ const raw = (el.getAttribute("aria-label") || el.getAttribute("alt") || el.textContent || "")
196
+ .replace(/\\s+/g, " ").trim();
197
+ return raw.slice(0, 40);
198
+ };
199
+
200
+ const hrefPath = (href) => {
201
+ try { return new URL(href, location.href).pathname.slice(0, 200); }
202
+ catch (_) { return ""; }
203
+ };
204
+
205
+ document.addEventListener("click", (event) => {
206
+ const t = event.target;
207
+ if (!(t instanceof Element)) return;
208
+
209
+ if (t.closest("[data-cookie-accept]")) {
210
+ event.preventDefault();
211
+ acceptCookies();
212
+ return;
213
+ }
214
+ if (t.closest("[data-cookie-reject]")) {
215
+ event.preventDefault();
216
+ rejectCookies();
217
+ return;
218
+ }
219
+
220
+ touchSid();
221
+
222
+ const a = t.closest("a[href]");
223
+ if (a) {
224
+ const href = a.getAttribute("href") || "";
225
+ const low = href.toLowerCase();
226
+ if (low.startsWith("tel:")) {
227
+ send({ kind: "convert", goal: "tel", label: labelOf(a) });
228
+ return;
229
+ }
230
+ if (low.startsWith("mailto:")) {
231
+ send({ kind: "convert", goal: "mailto", label: labelOf(a) });
232
+ return;
233
+ }
234
+ if (isMaps(href)) {
235
+ send({ kind: "convert", goal: "maps", label: labelOf(a), href: hrefPath(href) });
236
+ return;
237
+ }
238
+ }
239
+
240
+ if (engageCount >= 25) return;
241
+
242
+ const carousel = t.closest("[data-quotes-prev], [data-quotes-next], [data-stage-prev], [data-stage-next]");
243
+ if (carousel) {
244
+ engageCount += 1;
245
+ send({ kind: "engage", action: "carousel", label: labelOf(carousel) });
246
+ return;
247
+ }
248
+
249
+ const navA = t.closest("[data-nav] a, .c-header__nav a, nav[aria-label='Primary'] a");
250
+ if (navA) {
251
+ engageCount += 1;
252
+ send({ kind: "engage", action: "nav", label: labelOf(navA), href: hrefPath(navA.getAttribute("href") || "") });
253
+ return;
254
+ }
255
+
256
+ const btn = t.closest("a.btn, button.btn, .btn-outline, .btn-arrow, .c-header__cta");
257
+ if (btn) {
258
+ if (btn.closest("form[data-lead-form]") && (btn.matches("button, [type='submit']"))) return;
259
+ engageCount += 1;
260
+ send({ kind: "engage", action: "btn", label: labelOf(btn), href: hrefPath(btn.getAttribute("href") || "") });
261
+ return;
262
+ }
263
+
264
+ if (t.closest("img") || (a && a.querySelector("img"))) {
265
+ const img = t.closest("img") || (a && a.querySelector("img"));
266
+ const link = (img && img.closest("a")) || a;
267
+ engageCount += 1;
268
+ send({
269
+ kind: "engage",
270
+ action: "img",
271
+ label: labelOf(img || link),
272
+ href: hrefPath(link && link.getAttribute ? link.getAttribute("href") || "" : ""),
273
+ });
274
+ }
275
+ }, true);
276
+
277
+ const sendPing = () => {
278
+ if (!allowCookie || document.visibilityState !== "visible") return;
279
+ send({ kind: "ping" });
280
+ };
281
+ const startPing = () => {
282
+ if (!allowCookie || pingTimer) return;
283
+ pingTimer = window.setInterval(sendPing, 15000);
284
+ };
285
+ const stopPing = () => {
286
+ if (!pingTimer) return;
287
+ clearInterval(pingTimer);
288
+ pingTimer = 0;
289
+ };
290
+ if (allowCookie) {
291
+ sendPing();
292
+ startPing();
293
+ }
294
+
295
+ const removeBanner = () => {
296
+ const el = document.getElementById("vitris-cookie-banner");
297
+ if (el) el.remove();
298
+ };
299
+
300
+ const acceptCookies = () => {
301
+ if (gpc) return;
302
+ consent = "1";
303
+ writeCookie("vitris_cc", "1", 395);
304
+ allowCookie = true;
305
+ ensureVid();
306
+ syncVidFields();
307
+ removeBanner();
308
+ if (document.visibilityState === "visible") {
309
+ startPing();
310
+ sendPing();
311
+ }
312
+ };
313
+
314
+ const rejectCookies = () => {
315
+ consent = "0";
316
+ writeCookie("vitris_cc", "0", 395);
317
+ clearCookie("vitris_vid");
318
+ vid = "";
319
+ allowCookie = false;
320
+ syncVidFields();
321
+ stopPing();
322
+ removeBanner();
323
+ };
324
+
325
+ if (!gpc && !consent) {
326
+ const banner = document.createElement("div");
327
+ banner.id = "vitris-cookie-banner";
328
+ banner.className = "c-cookie-banner";
329
+ banner.setAttribute("role", "dialog");
330
+ banner.setAttribute("aria-modal", "false");
331
+ banner.setAttribute("aria-labelledby", "vitris-cookie-title");
332
+ banner.setAttribute("aria-describedby", "vitris-cookie-desc");
333
+ banner.innerHTML = '<div class="c-cookie-banner__inner wrap">'
334
+ + '<div class="c-cookie-banner__copy">'
335
+ + '<p id="vitris-cookie-title" class="c-cookie-banner__title">Cookies on this site</p>'
336
+ + '<p id="vitris-cookie-desc" class="c-cookie-banner__text">'
337
+ + "We use a first-party cookie to understand visits and improve this website. "
338
+ + "You can accept or reject analytics cookies."
339
+ + "</p>"
340
+ + "</div>"
341
+ + '<div class="c-cookie-banner__actions">'
342
+ + '<button type="button" class="btn" data-cookie-accept>Accept</button>'
343
+ + '<button type="button" class="btn btn-ghost" data-cookie-reject>Reject</button>'
344
+ + '<a class="c-cookie-banner__more" href="' + privacyHref() + '">Learn more</a>'
345
+ + "</div>"
346
+ + "</div>";
347
+ const mount = () => {
348
+ if (!document.body || document.getElementById("vitris-cookie-banner")) return;
349
+ document.body.prepend(banner);
350
+ };
351
+ if (document.body) mount();
352
+ else document.addEventListener("DOMContentLoaded", mount);
353
+ }
354
+ })();
355
+ `;
356
+
357
+ // src/runtime/cookie-compliance.ts
358
+ var COOKIE_COMPLIANCE_PATH = "/cookie-compliance";
359
+ var BODY = [
360
+ "This website is powered by Vitris. Analytics run on the site\u2019s own domain \u2014 there are no third-party ad or analytics tags.",
361
+ "If you allow analytics cookies, we set a first-party cookie named vitris_vid (about 13 months). It is a random visitor id so return visits can be counted without knowing who you are. We also keep a short-lived session id in session storage while you browse.",
362
+ "With that id we record page views, time on page, scroll depth, clicks on navigation and buttons, live presence while the tab is open, and core conversions such as form submits, phone, email, and map links. Form submissions may include the visitor id when present.",
363
+ "We do not sell this data. Site owners see aggregated reports in their Vitris dashboard so they can improve the site.",
364
+ "If your browser sends Global Privacy Control or Do Not Track, we do not set the analytics cookie and we do not send live presence pings. That hit may still be counted in a cookieless way for that day only.",
365
+ "Essential site cookies (for example an owner login session on the Vitris app) are separate from this public-site analytics cookie and are not controlled by the banner on this page."
366
+ ];
367
+ function cookieComplianceHtml(siteName) {
368
+ const paras = BODY.map((p) => `<p>${p}</p>`).join("\n");
369
+ return `<main id="main" tabindex="-1" class="c-cookie-page">
370
+ <div class="wrap">
371
+ <h1>Cookie compliance</h1>
372
+ <p>First-party analytics on ${escapeText(siteName)}, and how to control them.</p>
373
+ <h2>What we store</h2>
374
+ ${paras}
375
+ <h2>Change your preference</h2>
376
+ <p>Use Accept to allow the analytics cookie, or Reject to clear it and stop future analytics cookies and live pings in this browser. Your choice is saved in a first-party preference cookie named vitris_cc. You can return here anytime to change it.</p>
377
+ <div class="c-cookie-page__actions">
378
+ <button type="button" class="btn" data-vitris-cc="accept" data-cookie-accept>Accept analytics cookies</button>
379
+ <button type="button" class="btn-ghost" data-vitris-cc="reject" data-cookie-reject>Reject analytics cookies</button>
380
+ </div>
381
+ </div>
382
+ </main>`;
383
+ }
384
+ function escapeText(value) {
385
+ return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
386
+ }
387
+
388
+ // src/runtime/scroll-motion.generated.ts
389
+ var motionAssetHref = "/motion-465c0e1b6d85.js";
390
+ var motionJs = '(()=>{function W(a){window.VitrisMotion?.dispose();let n=()=>{},r=new Map,p=!1,u=matchMedia("(prefers-reduced-motion: reduce)"),c=matchMedia("(max-width: 599px)"),l=new WeakSet,b=["count","text","sequence","draw"],m=["entrance","stagger",...b],h=(o,s,w)=>Number(o.getAttribute("data-motion-"+s)??w),v=()=>{p||(u.addEventListener("change",v),p=!0);for(let[i,g]of r)if(b.includes(g.effect)&&g.phase==="playing"){let A=document.getElementById(i);A&&l.add(A)}n(),r=new Map;let o=[],s=[],w=new Map,I=!1,M=(i,g,A,$)=>{i.addEventListener(g,A,$),s.push(()=>i.removeEventListener(g,A,$))},L=i=>{w.get(i)?.(),w.delete(i),i.classList.add("is-in");let g=r.get(i.id);g&&(g.phase="complete")};if(n=()=>{I=!0;for(let i of o)i();for(let i of w.values())i();w.clear();for(let i of s)i()},!(document.documentElement.dataset.motionPolicy==="off"||u.matches||!window.IntersectionObserver||!Element.prototype.animate))try{let i=document.documentElement.dataset.motionPolicy==="enabled",g=i?\'[data-motion],[data-reveal],[data-island="counter"] [data-count-to]\':\'[data-reveal],[data-island="counter"] [data-count-to]\',A=[...document.querySelectorAll(g)],$=(e,t)=>{t.run=a.enter(t.children,t.options,()=>{I||(t.phase="complete",l.add(e),e.classList.add("is-in"))},!0),w.set(e,t.run.cancel)},O=new IntersectionObserver(e=>{try{for(let t of e){let x=t.target,d=r.get(x.id);!d||d.static||(t.isIntersecting&&(d.effect!=="count"||t.intersectionRatio>=.35)&&d.phase==="pending"?(d.phase="playing",d.run||$(x,d),d.run.play(),d.repeat||O.unobserve(x)):!t.isIntersecting&&d.phase==="playing"&&b.includes(d.effect)?(l.add(x),L(x)):!t.isIntersecting&&d.repeat&&d.phase==="complete"&&(L(x),d.phase="pending",d.run=null,$(x,d)))}}catch(t){n(),r.clear(),console.warn("Motion playback failed; static content restored",t)}},{threshold:[0,.35],rootMargin:"0px 0px -10% 0px"});o.push(()=>O.disconnect());for(let e of A){e.id||(e.id=`motion-runtime-${A.indexOf(e)}`);let t=i&&e.getAttribute("data-motion")||(e.hasAttribute("data-count-to")?"count":e.hasAttribute("data-reveal-stagger")?"stagger":"entrance"),x=e.getBoundingClientRect(),d=getComputedStyle(e),K=e.parentElement?.closest(g),R=t==="story"||!!K||["MAIN","HEADER","FOOTER","BODY","HTML"].includes(e.tagName)||/(?:^|\\s)c-(?:site-)?(?:hero|header|footer)(?:\\s|$)/.test(e.className)||x.height>innerHeight*2||d.position==="sticky"||d.position==="fixed"||c.matches&&(e.getAttribute("data-motion-mobile")==="static"||t==="drift"&&!e.hasAttribute("data-motion-mobile")),Q=t==="text"?"[data-motion-word]":t==="draw"?"[data-motion-path]":i?"[data-motion-child],[data-reveal-child]":"[data-reveal-child]",V=["stagger","text","sequence","draw"].includes(t)?[...e.querySelectorAll(Q)].filter(S=>S.closest(g)===e&&(t!=="stagger"||!S.hasAttribute("data-motion-child")||S.parentElement===e)):[],Z=V.length?V:[e],B={effect:t,treatment:e.getAttribute("data-motion-treatment")||"phrase",duration:h(e,"duration",t==="count"?900:Number.parseFloat(d.getPropertyValue("--reveal-dur"))||550),delay:h(e,"delay",0),distance:h(e,"distance",t==="text"?4:Number.parseFloat(d.getPropertyValue("--reveal-dist"))||16),stagger:h(e,"stagger",70),from:e.getAttribute("data-motion-from")||e.getAttribute("data-reveal-from")||"up",ease:e.getAttribute("data-motion-ease")||"editorial"},C={effect:t,static:R,phase:"pending",children:Z,options:B,repeat:e.getAttribute("data-motion-replay")==="repeat",progress:null};if(r.set(e.id,C),R||b.includes(t)&&l.has(e)||m.includes(t)&&(x.bottom<=0||location.hash.slice(1)===e.id||e.contains(document.activeElement))||["entrance","stagger","text","sequence"].includes(t)&&x.top<innerHeight){C.static=!0,L(e);continue}if(m.includes(t))O.observe(e);else{let S=document.getElementById(e.getAttribute("data-motion-trigger"));if(!S){C.static=!0;continue}C.phase="linked";let T=h(e,"range-start",0),H=h(e,"range-end",1);C.progress=()=>{let U=S.getBoundingClientRect();return Math.max(0,Math.min(1,((innerHeight-U.top)/(innerHeight+U.height)-T)/(H-T)))};let Y=a.link(e,S,t,{...B,start:T,end:H},C.progress);w.set(e,Y.cancel),o.push(Y.cancel)}}for(let e of A){let t=r.get(e.id);t&&!t.static&&m.includes(t.effect)&&$(e,t)}let D=e=>{for(let t of A)(t===e.target||t.contains(e.target))&&L(t)},P=()=>{let e=document.getElementById(decodeURIComponent(location.hash.slice(1)));e&&D({target:e})};M(document,"focusin",D),M(window,"hashchange",P),P(),M(window,"pageshow",e=>{e.persisted&&v()}),M(c,"change",v),M(window,"resize",()=>{for(let e of A){let t=r.get(e.id);t&&["text","sequence"].includes(t.effect)&&(l.add(e),L(e))}}),M(document.fonts,"loadingdone",()=>{for(let e of A){let t=r.get(e.id);t&&t.phase!=="pending"&&["text","sequence"].includes(t.effect)&&(l.add(e),L(e))}})}catch(i){n(),r.clear(),console.warn("Motion initialization left static content readable",i)}},f=!1,y=0,E=()=>{let o=!1,s=()=>{o||f||(o=!0,clearTimeout(y),v())};y=setTimeout(s,1500),(document.fonts?.status==="loading"?document.fonts.ready:Promise.resolve()).then(s,s)};window.VitrisMotion={version:1,engine:a.name,init:v,dispose(){f=!0,clearTimeout(y),document.removeEventListener("DOMContentLoaded",E),n(),r=new Map,u.removeEventListener("change",v),p=!1},inspect(o){let s=r.get(o);return s?{effect:s.effect,static:s.static,phase:s.phase,progress:typeof s.progress=="function"?s.progress():null}:{static:!0,phase:"static",progress:null}}},window.VitrisCounters={dispose(){window.VitrisMotion.dispose()}},document.readyState==="complete"||performance.getEntriesByType("navigation")[0]?.domContentLoadedEventStart>0?E():document.addEventListener("DOMContentLoaded",E,{once:!0})}var q=new Set,z=0;function X(a){z=0;for(let n of[...q])n.update(a);q.size&&(z=requestAnimationFrame(X))}function j(a,n,r){let p=a.textContent,u=!a.hasAttribute("data-motion"),c=Number(a.getAttribute(u?"data-count-to":"data-motion-value")),l=p.match(/[-+]?\\d[\\d,]*(?:\\.\\d+)?/);if(!Number.isFinite(c)||!l||a.children.length)return{play(){r()},cancel(){}};let b=u?p.slice(0,l.index):a.getAttribute("data-motion-prefix")||"",m=u?p.slice(l.index+l[0].length):a.getAttribute("data-motion-suffix")||"",h=u?l[0].split(".")[1]?.length||0:Number(a.getAttribute("data-motion-decimals")||0),v=u?l[0].includes(","):a.getAttribute("data-motion-group")!=="false",f=u?l[0].startsWith("+"):a.getAttribute("data-motion-sign")==="always",y=i=>b+(f&&i>=0?"+":"")+i.toLocaleString("en-US",{minimumFractionDigits:h,maximumFractionDigits:h,useGrouping:v})+m;if(!u&&y(c)!==p)return{play(){r()},cancel(){}};let E=null,o=null,s=null,w=!1,I=a.getAttribute("style"),M=()=>{q.delete(L),q.size||(cancelAnimationFrame(z),z=0),o&&(a.replaceChildren(...o.childNodes),o=null,s=null,I===null?a.removeAttribute("style"):a.setAttribute("style",I))},L={update(i){E===null&&(E=i);let g=Math.min(1,(i-E)/n.duration);if(g>=1){M(),w=!0,r();return}s.textContent=y(c*(1-Math.pow(1-g,3)))}};return{play(){w||o||(o=document.createElement("span"),o.style.opacity="0",o.append(...a.childNodes),s=document.createElement("span"),s.setAttribute("aria-hidden","true"),s.setAttribute("data-motion-visual",""),s.style.cssText="position:absolute;inset:0;user-select:none;pointer-events:none;white-space:inherit",s.textContent=y(0),a.style.position="relative",a.style.display="inline-block",a.append(o,s),q.add(L),z||(z=requestAnimationFrame(X)))},cancel(){w=!0,M()}}}var _={editorial:"cubic-bezier(.22,1,.36,1)",gentle:"cubic-bezier(.25,.1,.25,1)",linear:"linear"},G=a=>{let n=getComputedStyle(a).transform;return n==="none"?"":n},F=new Set,N=0,ee=()=>{N=0;let a=[...F].filter(n=>n.active||n.dirty).map(n=>[n,n.progress()]);for(let[n,r]of a)n.write(r),n.dirty=!1},k=()=>{N||(N=requestAnimationFrame(ee))},J={name:"vanilla",enter(a,n,r,p=!1){if(n.effect==="count")return j(a[0],n,r);let u=a.map((c,l)=>{let b=G(c),m=getComputedStyle(c).opacity,h=["left","right"].includes(n.from)?"X":"Y",v=["down","left"].includes(n.from)?-1:1,f={opacity:0,transform:`${b} translate${h}(${v*n.distance}px)`},y={opacity:m,transform:b||"none"};if(n.effect==="text"&&n.treatment==="mask"&&(f.clipPath="inset(0 0 100% 0)",y.clipPath="inset(0 0 0% 0)"),n.effect==="sequence"&&c.getAttribute("data-motion-role")==="image"&&(f={opacity:m,transform:`${b} scale(1.015)`},y={opacity:m,transform:b||"none"}),n.effect==="draw"){let o=c.getTotalLength?.()||1;f={strokeDasharray:`${o} ${o}`,strokeDashoffset:o},y={strokeDasharray:`${o} ${o}`,strokeDashoffset:0}}let E=c.animate([f,y],{duration:n.duration,delay:Math.min(300,n.delay+l*n.stagger),easing:_[n.ease],fill:"both"});return p&&E.pause(),E});return Promise.all(u.map(c=>c.finished)).then(()=>{for(let c of u)c.cancel();r()}).catch(()=>{}),{play(){for(let c of u)c.play()},cancel(){for(let c of u)c.cancel()}}},link(a,n,r,p,u){let c=G(a),l=f=>r==="drift"?`${c} translateY(${p.distance*(2*f-1)}px)`:`${c} scaleX(${f})`;try{if(window.ViewTimeline){let f=new ViewTimeline({subject:n,axis:"block",inset:"0px"}),y=a.animate([{transform:l(0)},{transform:l(1)}],{timeline:f,rangeStart:`cover ${p.start*100}%`,rangeEnd:`cover ${p.end*100}%`,easing:"linear",fill:"both"});return{cancel(){y.cancel()}}}}catch{}let b=a.style.transform,m={active:!0,dirty:!0,progress:u,write:f=>{a.style.transform=l(f)}};F.size||(addEventListener("scroll",k,{passive:!0}),addEventListener("resize",k)),F.add(m);let h=new IntersectionObserver(f=>{m.active=f[0].isIntersecting,m.dirty=!0,k()});h.observe(n);let v=window.ResizeObserver?new ResizeObserver(()=>{m.dirty=!0,k()}):null;return v?.observe(n),document.fonts?.ready.then(()=>{F.has(m)&&(m.dirty=!0,k())}),k(),{cancel(){F.delete(m),F.size||(cancelAnimationFrame(N),N=0,removeEventListener("scroll",k),removeEventListener("resize",k)),h.disconnect(),v?.disconnect(),a.style.transform=b}}}};W(J);})();\n';
391
+
392
+ // src/compile/flatten.ts
393
+ var MOTION_STRENGTHS = /* @__PURE__ */ new Set(["off", "whisper", "editorial", "noticeable"]);
394
+ var REVEAL_FROM = /* @__PURE__ */ new Set(["up", "down", "left", "right"]);
395
+ var DEFAULT_OFF = /* @__PURE__ */ new Set(["header", "footer", "hero", "site-header", "site-footer"]);
396
+ function normalizeStrength(value) {
397
+ if (typeof value !== "string") return void 0;
398
+ return MOTION_STRENGTHS.has(value) ? value : void 0;
399
+ }
400
+ function normalizeFrom(value) {
401
+ if (typeof value === "string" && REVEAL_FROM.has(value)) {
402
+ return value;
403
+ }
404
+ return "up";
405
+ }
406
+ function resolveInstanceMotion(site, component, attrs) {
407
+ if (site.scrollMotion?.policy === "off") return { strength: "off", stagger: false, from: "up" };
408
+ if (DEFAULT_OFF.has(component) && !attrs.motion) {
409
+ return { strength: "off", stagger: false, from: "up" };
410
+ }
411
+ const siteStrength = normalizeStrength(site.motion?.strength) ?? "editorial";
412
+ const siteStagger = site.motion?.stagger === true;
413
+ const attrStrength = normalizeStrength(attrs.motion);
414
+ const strength = attrStrength ?? (DEFAULT_OFF.has(component) ? "off" : siteStrength);
415
+ const staggerAttr = attrs["motion-stagger"] ?? attrs.stagger;
416
+ const stagger = staggerAttr !== void 0 ? staggerAttr === "true" || staggerAttr === "" : siteStagger;
417
+ const from = normalizeFrom(attrs["motion-from"] ?? attrs.from ?? site.motion?.from);
418
+ return { strength, stagger: strength !== "off" && stagger, from };
419
+ }
420
+ function wrapReveal(html, motion) {
421
+ if (motion.strength === "off") return html;
422
+ const stagger = motion.stagger ? " data-reveal-stagger" : "";
423
+ return `<div data-reveal data-reveal-strength="${motion.strength}" data-reveal-from="${motion.from}"${stagger}>
424
+ ${html}
425
+ </div>`;
426
+ }
427
+ function applyRootAttrs(html, component, attrs) {
428
+ const trimmed = html.trim();
429
+ const m = trimmed.match(/^<([a-zA-Z][\w.-]*)(\s[^>]*)?>/);
430
+ if (!m) return html;
431
+ const tag = m[1];
432
+ const existing = m[2] || "";
433
+ const openEnd = m[0].length;
434
+ const existingAttrs = parseAttrs(existing);
435
+ const classes = new Set((existingAttrs.class || "").split(/\s+/).filter(Boolean));
436
+ classes.add(`c-${component}`);
437
+ const variant = (attrs.variant || "").trim();
438
+ if (variant) {
439
+ for (const token of variant.split(/\s+/).filter(Boolean)) {
440
+ classes.add(`c-${component}--${token}`);
441
+ }
442
+ }
443
+ const next = { ...existingAttrs, class: [...classes].join(" ") };
444
+ if (attrs.id && !next.id) next.id = attrs.id;
445
+ if (next.id && !next["data-section"]) next["data-section"] = next.id;
446
+ if (!next["data-component"]) next["data-component"] = component;
447
+ const semantic = attrs["semantic-role"] || attrs["data-semantic-role"];
448
+ if (semantic && !next["data-semantic-role"]) next["data-semantic-role"] = semantic;
449
+ for (const key of ["data-fact-ids", "data-asset-ids", "data-action"]) {
450
+ if (attrs[key] && !next[key]) next[key] = attrs[key];
451
+ }
452
+ for (const [key, value] of Object.entries(attrs)) if (key === "data-motion" || key.startsWith("data-motion-")) next[key] = value;
453
+ const attrStr = Object.entries(next).map(([k, v]) => v === "" ? k : `${k}="${v.replace(/"/g, "&quot;")}"`).join(" ");
454
+ return `<${tag} ${attrStr}>${trimmed.slice(openEnd)}`;
455
+ }
456
+ function parseAttrs(raw) {
457
+ const attrs = {};
458
+ const re = /([:@\w.-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;
459
+ let m;
460
+ while (m = re.exec(raw)) {
461
+ const key = m[1];
462
+ attrs[key] = m[2] ?? m[3] ?? m[4] ?? "";
463
+ }
464
+ return attrs;
465
+ }
466
+ function splitSlots(innerHtml) {
467
+ const named = {};
468
+ const defaults = [];
469
+ let i = 0;
470
+ const html = innerHtml.trim();
471
+ while (i < html.length) {
472
+ while (i < html.length && /\s/.test(html[i])) i += 1;
473
+ if (i >= html.length) break;
474
+ if (html[i] !== "<") {
475
+ const next = html.indexOf("<", i);
476
+ const text = html.slice(i, next === -1 ? html.length : next).trim();
477
+ if (text) defaults.push(text);
478
+ i = next === -1 ? html.length : next;
479
+ continue;
480
+ }
481
+ if (html.startsWith("<!--", i)) {
482
+ const end = html.indexOf("-->", i);
483
+ i = end === -1 ? html.length : end + 3;
484
+ continue;
485
+ }
486
+ const tagMatch = html.slice(i).match(/^<\/?([a-zA-Z][\w.-]*)/);
487
+ if (!tagMatch) {
488
+ defaults.push(html[i]);
489
+ i += 1;
490
+ continue;
491
+ }
492
+ if (html[i + 1] === "/") {
493
+ const closeEnd = html.indexOf(">", i);
494
+ i = closeEnd === -1 ? html.length : closeEnd + 1;
495
+ continue;
496
+ }
497
+ const name = tagMatch[1];
498
+ const openEnd = findTagEnd(html, i);
499
+ if (openEnd === -1) break;
500
+ const openTag = html.slice(i, openEnd + 1);
501
+ const attrs = parseAttrs(openTag.slice(1 + name.length, openTag.endsWith("/>") ? -2 : -1));
502
+ const selfClosing = /\/>$/.test(openTag) || isVoidElement(name);
503
+ let elementHtml;
504
+ if (selfClosing) {
505
+ elementHtml = openTag;
506
+ i = openEnd + 1;
507
+ } else {
508
+ const close = findMatchingClose(html, name, openEnd + 1);
509
+ if (!close) {
510
+ elementHtml = openTag;
511
+ i = openEnd + 1;
512
+ } else {
513
+ elementHtml = html.slice(i, close.end);
514
+ i = close.end;
515
+ }
516
+ }
517
+ const slotName = attrs.slot;
518
+ if (slotName) {
519
+ (named[slotName] ??= []).push(stripSlotAttr(elementHtml));
520
+ } else {
521
+ defaults.push(elementHtml);
522
+ }
523
+ }
524
+ return { named, default: defaults };
525
+ }
526
+ function stripSlotAttr(html) {
527
+ return html.replace(/\s+slot\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/i, "");
528
+ }
529
+ function isVoidElement(name) {
530
+ return /^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/i.test(name);
531
+ }
532
+ function findTagEnd(html, start) {
533
+ let quote = null;
534
+ for (let i = start; i < html.length; i++) {
535
+ const ch = html[i];
536
+ if (quote) {
537
+ if (ch === quote) quote = null;
538
+ continue;
539
+ }
540
+ if (ch === '"' || ch === "'") {
541
+ quote = ch;
542
+ continue;
543
+ }
544
+ if (ch === ">") return i;
545
+ }
546
+ return -1;
547
+ }
548
+ function findMatchingClose(html, name, from) {
549
+ let depth = 1;
550
+ let i = from;
551
+ const openRe = new RegExp(`<${name}(\\s|>|/>)`, "i");
552
+ const closeRe = new RegExp(`</${name}\\s*>`, "i");
553
+ while (i < html.length) {
554
+ if (html.startsWith("<!--", i)) {
555
+ const end = html.indexOf("-->", i);
556
+ i = end === -1 ? html.length : end + 3;
557
+ continue;
558
+ }
559
+ if (html[i] === "<") {
560
+ const slice = html.slice(i);
561
+ const close = slice.match(closeRe);
562
+ if (close && close.index === 0) {
563
+ depth -= 1;
564
+ if (depth === 0) {
565
+ return { inner: html.slice(from, i), end: i + close[0].length };
566
+ }
567
+ i += close[0].length;
568
+ continue;
569
+ }
570
+ const open = slice.match(openRe);
571
+ if (open && open.index === 0) {
572
+ const tagEnd = findTagEnd(html, i);
573
+ if (tagEnd === -1) return null;
574
+ const tag = html.slice(i, tagEnd + 1);
575
+ if (!/\/>$/.test(tag) && !isVoidElement(name)) depth += 1;
576
+ i = tagEnd + 1;
577
+ continue;
578
+ }
579
+ }
580
+ i += 1;
581
+ }
582
+ return null;
583
+ }
584
+ function fillSlots(template, slots) {
585
+ let out = template.replace(/<slot(\s[^>]*)?\/>/gi, (full, attrRaw = "") => {
586
+ const attrs = parseAttrs(attrRaw);
587
+ const name = attrs.name;
588
+ if (name) return (slots.named[name] || []).join("\n");
589
+ return slots.default.join("\n");
590
+ });
591
+ out = out.replace(/<slot(\s[^>]*)?>[\s\S]*?<\/slot>/gi, (full, attrRaw = "") => {
592
+ const attrs = parseAttrs(typeof attrRaw === "string" ? attrRaw : "");
593
+ const name = attrs.name;
594
+ if (name) {
595
+ const parts = slots.named[name];
596
+ return parts && parts.length ? parts.join("\n") : "";
597
+ }
598
+ return slots.default.length ? slots.default.join("\n") : "";
599
+ });
600
+ return out;
601
+ }
602
+ function escapeRegExp(s) {
603
+ return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
604
+ }
605
+ function flattenBody(body, catalog, site, depth = 0) {
606
+ if (depth > 8) {
607
+ return { html: body, used: [], usesMotion: false, usesLeadForm: /data-lead-form/i.test(body) };
608
+ }
609
+ const names = Object.keys(catalog).sort((a, b) => b.length - a.length);
610
+ if (!names.length) {
611
+ return {
612
+ html: body,
613
+ used: [],
614
+ usesMotion: false,
615
+ usesLeadForm: /data-lead-form/i.test(body)
616
+ };
617
+ }
618
+ const used = /* @__PURE__ */ new Set();
619
+ let usesMotion = false;
620
+ let html = body;
621
+ let guard = 0;
622
+ while (guard++ < 200) {
623
+ let matched = false;
624
+ for (const name of names) {
625
+ const openRe = new RegExp(`<${escapeRegExp(name)}(\\s[^>]*)?>`, "gi");
626
+ let m;
627
+ while (m = openRe.exec(html)) {
628
+ const start = m.index;
629
+ const openTag = m[0];
630
+ const attrRaw = m[1] || "";
631
+ const attrs = parseAttrs(attrRaw);
632
+ const cls = attrs.class || "";
633
+ if (new RegExp(`(?:^|\\s)c-${escapeRegExp(name)}(?:\\s|$)`).test(cls)) {
634
+ continue;
635
+ }
636
+ const openEnd = start + openTag.length;
637
+ const selfClosing = /\/>$/.test(openTag);
638
+ let inner = "";
639
+ let end = openEnd;
640
+ if (!selfClosing) {
641
+ const close = findMatchingClose(html, name, openEnd);
642
+ if (!close) continue;
643
+ inner = close.inner;
644
+ end = close.end;
645
+ }
646
+ const entry = catalog[name];
647
+ used.add(name);
648
+ const slots = splitSlots(inner);
649
+ let expanded = fillSlots(entry.html, slots);
650
+ expanded = applyRootAttrs(expanded, name, attrs);
651
+ const nested = flattenBody(expanded, catalog, site, depth + 1);
652
+ expanded = nested.html;
653
+ for (const u of nested.used) used.add(u);
654
+ if (nested.usesMotion) usesMotion = true;
655
+ const motion = resolveInstanceMotion(site, name, attrs);
656
+ if (motion.strength !== "off") usesMotion = true;
657
+ if (!(site.scrollMotion?.policy === "enabled" && /\bdata-motion\s*=/.test(expanded))) expanded = wrapReveal(expanded, motion);
658
+ html = html.slice(0, start) + expanded + html.slice(end);
659
+ matched = true;
660
+ break;
661
+ }
662
+ if (matched) break;
663
+ }
664
+ if (!matched) break;
665
+ }
666
+ const usesLeadForm = /data-lead-form/i.test(html);
667
+ return { html, used: [...used], usesMotion, usesLeadForm };
668
+ }
669
+ function wrapMain(flattened, catalog) {
670
+ const source = flattened.trim();
671
+ const existingMain = [...source.matchAll(/<main\b[^>]*>/gi)];
672
+ if (existingMain.length > 1) throw new Error("Page must have exactly one main landmark for the skip link");
673
+ if (existingMain.length === 1) {
674
+ const tag = existingMain[0][0];
675
+ if (!/\bid\s*=\s*["']main["']/i.test(tag) && /\bid\s*=/i.test(tag)) throw new Error('Existing main landmark must use id="main" for the skip link');
676
+ const next = tag.slice(0, -1) + (/\bid\s*=\s*["']main["']/i.test(tag) ? "" : ' id="main"') + (/\btabindex\s*=/i.test(tag) ? "" : ' tabindex="-1"') + ">";
677
+ return source.replace(tag, next);
678
+ }
679
+ const shell = source.match(/^<(div|section)\b[^>]*>/i);
680
+ if (shell) {
681
+ const close = findMatchingClose(source, shell[1], shell[0].length);
682
+ if (close && close.end === source.length) {
683
+ const inner = close.inner;
684
+ if (/<(?:header|footer)\b|class=["'][^"']*\bc-(?:site-)?(?:header|footer)\b/i.test(inner)) {
685
+ return shell[0] + wrapMain(inner, catalog) + source.slice(shell[0].length + inner.length);
686
+ }
687
+ }
688
+ }
689
+ const chrome = new Set(
690
+ ["header", "footer", "site-header", "site-footer"].filter((n) => catalog[n])
691
+ );
692
+ const parts = [];
693
+ let i = 0;
694
+ const html = flattened.trim();
695
+ while (i < html.length) {
696
+ while (i < html.length && /\s/.test(html[i])) i += 1;
697
+ if (i >= html.length) break;
698
+ if (!html.startsWith("<", i)) {
699
+ const next = html.indexOf("<", i);
700
+ parts.push({ html: html.slice(i, next === -1 ? html.length : next), kind: "other" });
701
+ i = next === -1 ? html.length : next;
702
+ continue;
703
+ }
704
+ if (html.startsWith("<!--", i)) {
705
+ const end = html.indexOf("-->", i);
706
+ const block2 = html.slice(i, end === -1 ? html.length : end + 3);
707
+ parts.push({ html: block2, kind: "other" });
708
+ i = end === -1 ? html.length : end + 3;
709
+ continue;
710
+ }
711
+ const tagMatch = html.slice(i).match(/^<([a-zA-Z][\w.-]*)/);
712
+ if (!tagMatch) {
713
+ parts.push({ html: html[i], kind: "other" });
714
+ i += 1;
715
+ continue;
716
+ }
717
+ const tag = tagMatch[1];
718
+ const tagEnd = findTagEnd(html, i);
719
+ if (tagEnd === -1) {
720
+ parts.push({ html: html.slice(i), kind: "other" });
721
+ break;
722
+ }
723
+ const openTag = html.slice(i, tagEnd + 1);
724
+ let block;
725
+ if (/\/>$/.test(openTag) || isVoidElement(tag)) {
726
+ block = openTag;
727
+ i = tagEnd + 1;
728
+ } else {
729
+ const close = findMatchingClose(html, tag, tagEnd + 1);
730
+ if (!close) {
731
+ block = openTag;
732
+ i = tagEnd + 1;
733
+ } else {
734
+ block = html.slice(i, close.end);
735
+ i = close.end;
736
+ }
737
+ }
738
+ const kind = /class="[^"]*\bc-(?:site-)?header\b/.test(openTag) || tag === "header" ? "header" : /class="[^"]*\bc-(?:site-)?footer\b/.test(openTag) || tag === "footer" ? "footer" : "other";
739
+ const classKind = /class="[^"]*\bc-(?:site-)?header\b/.test(openTag) ? "header" : /class="[^"]*\bc-(?:site-)?footer\b/.test(openTag) ? "footer" : "other";
740
+ void chrome;
741
+ parts.push({ html: block, kind: classKind !== "other" ? classKind : kind === "header" || kind === "footer" ? kind : "other" });
742
+ }
743
+ const out = [];
744
+ let mainOpen = false;
745
+ let mainClosed = false;
746
+ for (const part of parts) {
747
+ if (part.kind === "header") {
748
+ out.push(part.html);
749
+ } else if (part.kind === "footer") {
750
+ if (mainOpen && !mainClosed) {
751
+ out.push("</main>");
752
+ mainClosed = true;
753
+ }
754
+ out.push(part.html);
755
+ } else {
756
+ if (!mainOpen) {
757
+ out.push('<main id="main" tabindex="-1">');
758
+ mainOpen = true;
759
+ }
760
+ out.push(part.html);
761
+ }
762
+ }
763
+ if (mainOpen && !mainClosed) out.push("</main>");
764
+ return out.join("\n");
765
+ }
766
+ function rewriteLeadForms(html, kernelOrigin, pagePath) {
767
+ const action = kernelOrigin ? `${kernelOrigin.replace(/\/$/, "")}/api/leads` : "#";
768
+ return html.replace(/<form\b([^>]*)>([\s\S]*?)<\/form>/gi, (full, attrs, inner) => {
769
+ if (!/data-lead-form/i.test(attrs)) return full;
770
+ let next = attrs;
771
+ if (/\baction\s*=/i.test(next)) {
772
+ next = next.replace(/\baction\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/i, `action="${action}"`);
773
+ } else {
774
+ next += ` action="${action}"`;
775
+ }
776
+ next = next.replace(/\bmethod\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/i, 'method="post"');
777
+ if (!/\bmethod\s*=/i.test(next)) next += ` method="post"`;
778
+ if (!/\bdata-lead-custom\b|\bdata-no-enhance\b/i.test(next) && !/\bdata-vitris-enhanced\b/i.test(next)) next += ` data-vitris-enhanced`;
779
+ let body = inner;
780
+ if (!/name=["']page_path["']/.test(body)) {
781
+ body = `
782
+ <input type="hidden" name="page_path" value="${pagePath.replace(/&/g, "&amp;").replace(/"/g, "&quot;")}">` + body;
783
+ }
784
+ if (!/name=["']vid["']/.test(body)) {
785
+ body = `
786
+ <input type="hidden" name="vid" value="">` + body;
787
+ }
788
+ return `<form${next}>${body}</form>`;
789
+ });
790
+ }
791
+ var INSTRUMENT_TAGS = /^(section|header|footer|article|div)$/i;
792
+ function instrumentSections(html, site) {
793
+ const candidate = site.designRun?.candidateId?.trim();
794
+ return html.replace(/<([a-zA-Z][\w.-]*)(\s[^>]*?)>/g, (open, tag, attrs) => {
795
+ if (!INSTRUMENT_TAGS.test(tag)) return open;
796
+ const id = attrs.match(/\bid=(["'])([^"']+)\1/);
797
+ if (!id) return open;
798
+ let extra = "";
799
+ if (!/\bdata-section=/.test(attrs)) extra += ` data-section="${id[2]}"`;
800
+ if (candidate && !/\bdata-candidate-id=/.test(attrs)) extra += ` data-candidate-id="${candidate.replace(/"/g, "")}"`;
801
+ return extra ? `<${tag}${attrs}${extra}>` : open;
802
+ });
803
+ }
804
+
805
+ // src/compile/primitives.ts
806
+ var primitivesCss = `
807
+ /* \u2014\u2014 Layout \u2014\u2014 */
808
+ .section {
809
+ padding-block: var(--section-y);
810
+ }
811
+ .section--tight { padding-block: var(--space-6); }
812
+ .section--roomy { padding-block: calc(var(--section-y) + var(--space-5)); }
813
+ .section--surface { background: var(--color-surface); }
814
+ .section--muted { background: var(--color-surface-2); }
815
+ .section--dark,
816
+ [data-scheme="dark"] {
817
+ --color-bg: #141210;
818
+ --color-text: #F7F4EF;
819
+ --color-muted: #B8B0A4;
820
+ --color-surface: #1E1B18;
821
+ --color-surface-2: #2A2622;
822
+ --color-border: #3A342E;
823
+ background: var(--color-bg);
824
+ color: var(--color-text);
825
+ }
826
+ .section__head {
827
+ display: grid;
828
+ gap: var(--space-3);
829
+ margin-bottom: var(--space-7);
830
+ max-width: 42rem;
831
+ }
832
+ .section__head--center {
833
+ margin-inline: auto;
834
+ text-align: center;
835
+ justify-items: center;
836
+ }
837
+ .section__head--row {
838
+ max-width: none;
839
+ grid-template-columns: minmax(0, 42rem);
840
+ align-items: end;
841
+ justify-content: space-between;
842
+ }
843
+ @media (min-width: 720px) {
844
+ .section__head--row { grid-template-columns: minmax(0, 42rem) auto; }
845
+ }
846
+ .section__head--row > .btn-group { justify-self: end; }
847
+ /* Editorial split head: short label column, heading + lede column. */
848
+ .section__head--split { max-width: none; }
849
+ @media (min-width: 720px) {
850
+ .section__head--split {
851
+ grid-template-columns: minmax(0, 14rem) minmax(0, 42rem);
852
+ gap: var(--space-5) var(--space-7);
853
+ align-items: start;
854
+ }
855
+ .section__head--split > .eyebrow { padding-top: 0.45em; }
856
+ .section__head--split > :not(.eyebrow) { grid-column: 2; }
857
+ }
858
+ .sticky-col { align-self: start; }
859
+ @media (min-width: 1080px) {
860
+ .sticky-col { position: sticky; top: calc(var(--header-h, 4rem) + var(--space-5)); }
861
+ }
862
+ .section__head .lede,
863
+ .lede {
864
+ margin: 0;
865
+ color: var(--color-muted);
866
+ font-size: var(--step-1);
867
+ line-height: 1.55;
868
+ max-width: 38rem;
869
+ }
870
+ .lede--lg { font-size: var(--step-2); line-height: 1.45; }
871
+ .eyebrow {
872
+ margin: 0;
873
+ font-size: var(--step-0);
874
+ font-weight: 600;
875
+ letter-spacing: 0.08em;
876
+ text-transform: uppercase;
877
+ color: var(--color-muted);
878
+ }
879
+ .eyebrow--accent { color: var(--color-accent); }
880
+ .grid {
881
+ display: grid;
882
+ gap: var(--gap, var(--space-5));
883
+ }
884
+ .grid--2 { grid-template-columns: 1fr; }
885
+ .grid--3 { grid-template-columns: 1fr; }
886
+ .grid--4 { grid-template-columns: 1fr; }
887
+ @media (min-width: 720px) {
888
+ .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
889
+ .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
890
+ .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
891
+ }
892
+ @media (min-width: 1080px) {
893
+ .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
894
+ }
895
+ .split {
896
+ display: grid;
897
+ gap: var(--space-6);
898
+ align-items: center;
899
+ }
900
+ .split--top { align-items: start; }
901
+ @media (min-width: 720px) {
902
+ .split { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
903
+ .split--reverse > :first-child { order: 2; }
904
+ }
905
+ @media (min-width: 1080px) {
906
+ .split { gap: var(--space-8); }
907
+ }
908
+ .bento {
909
+ display: grid;
910
+ gap: var(--space-3);
911
+ grid-template-columns: repeat(2, minmax(0, 1fr));
912
+ }
913
+ .bento__wide, .bento__full { grid-column: span 2; }
914
+ @media (min-width: 720px) {
915
+ .bento {
916
+ gap: var(--space-4);
917
+ grid-template-columns: repeat(6, minmax(0, 1fr));
918
+ grid-auto-rows: minmax(9rem, auto);
919
+ grid-auto-flow: dense;
920
+ }
921
+ .bento > * { grid-column: span 3; }
922
+ .bento__wide { grid-column: span 4; }
923
+ .bento__tall { grid-row: span 2; }
924
+ .bento__full { grid-column: span 6; }
925
+ .bento__narrow { grid-column: span 2; }
926
+ }
927
+ .stack { display: grid; gap: var(--space-4); }
928
+ .stack--tight { gap: var(--space-2); }
929
+ .stack--loose { gap: var(--space-6); }
930
+ .row {
931
+ display: flex;
932
+ flex-wrap: wrap;
933
+ align-items: center;
934
+ gap: var(--space-3);
935
+ }
936
+ .row--between { justify-content: space-between; }
937
+
938
+ /* \u2014\u2014 Surfaces \u2014\u2014 */
939
+ .card {
940
+ position: relative;
941
+ display: flex;
942
+ flex-direction: column;
943
+ background: var(--color-surface);
944
+ border: 1px solid var(--color-border);
945
+ border-radius: var(--radius-lg);
946
+ overflow: hidden;
947
+ }
948
+ .card--bordered { box-shadow: none; }
949
+ .card--elevated { box-shadow: var(--shadow-2); border-color: transparent; }
950
+ .card--flat {
951
+ box-shadow: none;
952
+ border-color: transparent;
953
+ background: var(--color-surface-2);
954
+ }
955
+ .card--accent { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent); }
956
+ .card--interactive {
957
+ transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
958
+ }
959
+ .card--interactive:hover {
960
+ transform: translateY(-2px);
961
+ box-shadow: var(--shadow-2);
962
+ }
963
+ .card__media {
964
+ position: relative;
965
+ overflow: hidden;
966
+ background: var(--color-surface-2);
967
+ border-radius: 0;
968
+ }
969
+ .card__media img,
970
+ .card__media video {
971
+ width: 100%;
972
+ height: 100%;
973
+ object-fit: cover;
974
+ transition: transform 400ms ease;
975
+ }
976
+ .card--interactive:hover .card__media img { transform: scale(1.03); }
977
+ .card__body {
978
+ display: grid;
979
+ gap: var(--space-2);
980
+ padding: var(--space-5);
981
+ flex: 1;
982
+ align-content: start;
983
+ }
984
+ .card__body > h3,
985
+ .card__body > h4 {
986
+ font-size: var(--step-2);
987
+ line-height: 1.25;
988
+ }
989
+ .card__body > p { margin: 0; color: var(--color-muted); font-size: var(--step-1); }
990
+ .card__body > .btn-group,
991
+ .card__body > .btn,
992
+ .card__body > .btn-outline,
993
+ .card__body > .btn-arrow {
994
+ margin-top: var(--space-2);
995
+ justify-self: start;
996
+ }
997
+ .card__body > .btn-arrow { align-self: end; margin-top: auto; padding-top: var(--space-3); }
998
+ /* Photo tile with a bottom scrim and light text (services tiles, project grids, step panels). */
999
+ .photo-card {
1000
+ position: relative;
1001
+ isolation: isolate;
1002
+ display: flex;
1003
+ flex-direction: column;
1004
+ justify-content: flex-end;
1005
+ overflow: hidden;
1006
+ border-radius: var(--radius-lg);
1007
+ background: var(--color-surface-2);
1008
+ color: #fff;
1009
+ text-decoration: none;
1010
+ }
1011
+ .photo-card > img {
1012
+ position: absolute;
1013
+ inset: 0;
1014
+ z-index: -2;
1015
+ width: 100%;
1016
+ height: 100%;
1017
+ object-fit: cover;
1018
+ transition: transform 500ms ease;
1019
+ }
1020
+ .photo-card::before {
1021
+ content: "";
1022
+ position: absolute;
1023
+ inset: 0;
1024
+ z-index: -1;
1025
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.72) 100%);
1026
+ }
1027
+ .photo-card__body {
1028
+ display: grid;
1029
+ gap: var(--space-1);
1030
+ padding: var(--space-5);
1031
+ }
1032
+ .photo-card__body h2,
1033
+ .photo-card__body h3,
1034
+ .photo-card__body strong { color: #fff; }
1035
+ .photo-card__body p { margin: 0; color: rgba(255, 255, 255, 0.82); }
1036
+ .photo-card__body .eyebrow { color: rgba(255, 255, 255, 0.72); }
1037
+ a.photo-card:hover > img,
1038
+ a.photo-card:focus-visible > img { transform: scale(1.04); }
1039
+ a.photo-card:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
1040
+ .card__footer {
1041
+ margin-top: auto;
1042
+ padding: var(--space-4) var(--space-5);
1043
+ border-top: 1px solid var(--color-border);
1044
+ display: flex;
1045
+ align-items: center;
1046
+ justify-content: space-between;
1047
+ gap: var(--space-3);
1048
+ }
1049
+ .hairline {
1050
+ border: 0;
1051
+ border-top: 1px solid var(--color-border);
1052
+ margin: var(--space-6) 0;
1053
+ }
1054
+ .frame {
1055
+ overflow: hidden;
1056
+ border-radius: var(--radius-lg);
1057
+ background: var(--color-surface-2);
1058
+ box-shadow: var(--shadow-2);
1059
+ }
1060
+ .frame > img,
1061
+ .frame > video { width: 100%; height: 100%; object-fit: cover; }
1062
+ .ratio-16x9,
1063
+ .ratio-4x3,
1064
+ .ratio-3x2,
1065
+ .ratio-1x1,
1066
+ .ratio-3x4,
1067
+ .ratio-21x9 {
1068
+ position: relative;
1069
+ overflow: hidden;
1070
+ border-radius: var(--radius-lg);
1071
+ background: var(--color-surface-2);
1072
+ }
1073
+ .ratio-16x9 { aspect-ratio: 16 / 9; }
1074
+ .ratio-4x3 { aspect-ratio: 4 / 3; }
1075
+ .ratio-3x2 { aspect-ratio: 3 / 2; }
1076
+ .ratio-1x1 { aspect-ratio: 1 / 1; }
1077
+ .ratio-3x4 { aspect-ratio: 3 / 4; }
1078
+ .ratio-21x9 { aspect-ratio: 21 / 9; }
1079
+ .card__media[class*="ratio-"] { border-radius: 0; }
1080
+ .ratio-16x9 > img,
1081
+ .ratio-4x3 > img,
1082
+ .ratio-3x2 > img,
1083
+ .ratio-1x1 > img,
1084
+ .ratio-3x4 > img,
1085
+ .ratio-21x9 > img {
1086
+ position: absolute;
1087
+ inset: 0;
1088
+ width: 100%;
1089
+ height: 100%;
1090
+ object-fit: cover;
1091
+ }
1092
+ .icon-tile {
1093
+ display: inline-flex;
1094
+ align-items: center;
1095
+ justify-content: center;
1096
+ width: 2.75rem;
1097
+ height: 2.75rem;
1098
+ border-radius: var(--radius);
1099
+ background: color-mix(in srgb, var(--color-accent) 12%, transparent);
1100
+ color: var(--color-accent);
1101
+ flex-shrink: 0;
1102
+ }
1103
+ .icon-tile .icon { width: 1.35rem; height: 1.35rem; }
1104
+ .icon-tile--round { border-radius: var(--radius-pill); }
1105
+ .icon-tile--muted { background: var(--color-surface-2); color: var(--color-text); }
1106
+
1107
+ /* \u2014\u2014 Marks \u2014\u2014 */
1108
+ .badge {
1109
+ display: inline-flex;
1110
+ align-items: center;
1111
+ gap: 0.4rem;
1112
+ min-height: 1.85rem;
1113
+ padding: 0.25rem 0.75rem;
1114
+ border-radius: var(--radius-pill);
1115
+ font-size: var(--step-0);
1116
+ font-weight: 600;
1117
+ line-height: 1.2;
1118
+ background: var(--color-surface-2);
1119
+ color: var(--color-text);
1120
+ border: 1px solid transparent;
1121
+ white-space: nowrap;
1122
+ }
1123
+ .badge .icon { width: 1rem; height: 1rem; }
1124
+ .badge--accent {
1125
+ background: color-mix(in srgb, var(--color-accent) 14%, transparent);
1126
+ color: var(--color-accent);
1127
+ }
1128
+ .badge--muted { color: var(--color-muted); }
1129
+ .badge--outline {
1130
+ background: transparent;
1131
+ border-color: var(--color-border);
1132
+ }
1133
+ .stat { display: grid; gap: var(--space-1); align-content: start; }
1134
+ .stat__value {
1135
+ margin: 0;
1136
+ font-family: var(--font-display);
1137
+ font-size: var(--step-4);
1138
+ font-weight: 600;
1139
+ letter-spacing: -0.03em;
1140
+ font-variant-numeric: tabular-nums;
1141
+ line-height: 1.05;
1142
+ }
1143
+ .stat__label {
1144
+ margin: 0;
1145
+ color: var(--color-muted);
1146
+ font-size: var(--step-0);
1147
+ }
1148
+ .stat--sm .stat__value { font-size: var(--step-3); }
1149
+ .rating {
1150
+ display: inline-flex;
1151
+ align-items: center;
1152
+ gap: 0.15rem;
1153
+ color: var(--color-accent);
1154
+ letter-spacing: 0.05em;
1155
+ line-height: 1;
1156
+ }
1157
+ .rating .icon { width: 1.05rem; height: 1.05rem; fill: currentColor; stroke: none; }
1158
+ .price {
1159
+ display: flex;
1160
+ align-items: baseline;
1161
+ gap: 0.3rem;
1162
+ margin: 0;
1163
+ }
1164
+ .price__amount {
1165
+ font-family: var(--font-display);
1166
+ font-size: var(--step-4);
1167
+ font-weight: 600;
1168
+ letter-spacing: -0.03em;
1169
+ line-height: 1;
1170
+ font-variant-numeric: tabular-nums;
1171
+ }
1172
+ .price__period { color: var(--color-muted); font-size: var(--step-0); }
1173
+ .prose {
1174
+ max-width: 65ch;
1175
+ }
1176
+ .prose > * + * { margin-top: var(--space-4); }
1177
+ .list-check,
1178
+ .list-plain {
1179
+ list-style: none;
1180
+ margin: 0;
1181
+ padding: 0;
1182
+ display: grid;
1183
+ gap: var(--space-3);
1184
+ }
1185
+ .list-check li {
1186
+ display: flex;
1187
+ align-items: flex-start;
1188
+ gap: 0.65rem;
1189
+ line-height: 1.5;
1190
+ }
1191
+ .list-check li > .icon {
1192
+ margin-top: 0.2em;
1193
+ color: var(--color-accent);
1194
+ }
1195
+ .table-wrap { overflow-x: auto; }
1196
+ .table {
1197
+ width: 100%;
1198
+ border-collapse: collapse;
1199
+ font-variant-numeric: tabular-nums;
1200
+ }
1201
+ .table th,
1202
+ .table td {
1203
+ padding: var(--space-3) var(--space-4);
1204
+ text-align: left;
1205
+ border-bottom: 1px solid var(--color-border);
1206
+ vertical-align: top;
1207
+ }
1208
+ .table th {
1209
+ font-size: var(--step-0);
1210
+ font-weight: 600;
1211
+ letter-spacing: 0.06em;
1212
+ text-transform: uppercase;
1213
+ color: var(--color-muted);
1214
+ }
1215
+ .table td:not(:first-child),
1216
+ .table th:not(:first-child) { text-align: right; }
1217
+ .table--plain th,
1218
+ .table--plain td { padding-inline: 0; }
1219
+
1220
+ /* \u2014\u2014 People / proof \u2014\u2014 */
1221
+ .avatar {
1222
+ width: 2.75rem;
1223
+ height: 2.75rem;
1224
+ border-radius: var(--radius-pill);
1225
+ object-fit: cover;
1226
+ background: var(--color-surface-2);
1227
+ border: 2px solid var(--color-surface);
1228
+ flex-shrink: 0;
1229
+ }
1230
+ .avatar--sm { width: 2rem; height: 2rem; }
1231
+ .avatar--lg { width: 4rem; height: 4rem; }
1232
+ .avatar-group {
1233
+ display: inline-flex;
1234
+ align-items: center;
1235
+ }
1236
+ .avatar-group .avatar { margin-inline-start: -0.55rem; box-shadow: 0 0 0 2px var(--color-bg); }
1237
+ .avatar-group .avatar:first-child { margin-inline-start: 0; }
1238
+ /* \u2014\u2014 Chips (radio / checkbox pills) \u2014\u2014 */
1239
+ .chips {
1240
+ display: flex;
1241
+ flex-wrap: wrap;
1242
+ gap: var(--space-2);
1243
+ margin: 0;
1244
+ padding: 0;
1245
+ border: 0;
1246
+ }
1247
+ .chips > legend,
1248
+ .chips__label {
1249
+ display: block;
1250
+ width: 100%;
1251
+ margin-bottom: var(--space-2);
1252
+ font-size: var(--step-0);
1253
+ font-weight: 600;
1254
+ color: var(--color-text);
1255
+ }
1256
+ .chips label { position: relative; display: inline-flex; }
1257
+ .chips input {
1258
+ position: absolute;
1259
+ inset: 0;
1260
+ margin: 0;
1261
+ opacity: 0;
1262
+ cursor: pointer;
1263
+ }
1264
+ .chips span {
1265
+ display: inline-flex;
1266
+ align-items: center;
1267
+ min-height: 2.25rem;
1268
+ padding: 0.35rem 0.9rem;
1269
+ border: 1px solid var(--color-border);
1270
+ border-radius: var(--radius-pill);
1271
+ font-size: var(--step-0);
1272
+ font-weight: 500;
1273
+ color: var(--color-text);
1274
+ background: var(--color-surface);
1275
+ transition: background 0.15s ease, border-color 0.15s ease;
1276
+ }
1277
+ .chips label:hover span { border-color: var(--color-text); }
1278
+ .chips input:checked + span {
1279
+ background: var(--color-text);
1280
+ border-color: var(--color-text);
1281
+ color: var(--color-bg);
1282
+ }
1283
+ .chips input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
1284
+ .byline {
1285
+ display: flex;
1286
+ align-items: center;
1287
+ gap: var(--space-3);
1288
+ font-size: var(--step-0);
1289
+ }
1290
+ .byline strong { display: block; font-weight: 600; color: var(--color-text); }
1291
+ .byline span { color: var(--color-muted); }
1292
+ .logo-row {
1293
+ display: flex;
1294
+ flex-wrap: wrap;
1295
+ align-items: center;
1296
+ justify-content: center;
1297
+ gap: var(--space-5) var(--space-7);
1298
+ opacity: 0.65;
1299
+ }
1300
+ .logo-row img {
1301
+ max-height: 1.75rem;
1302
+ width: auto;
1303
+ filter: grayscale(1);
1304
+ }
1305
+ .quote {
1306
+ margin: 0;
1307
+ font-family: var(--font-display);
1308
+ font-size: var(--step-2);
1309
+ line-height: 1.4;
1310
+ letter-spacing: -0.015em;
1311
+ text-wrap: pretty;
1312
+ }
1313
+ .quote--lg { font-size: var(--step-3); line-height: 1.3; letter-spacing: -0.02em; }
1314
+ .quote cite,
1315
+ .quote footer {
1316
+ display: block;
1317
+ margin-top: var(--space-4);
1318
+ font-style: normal;
1319
+ font-family: var(--font-body);
1320
+ font-size: var(--step-0);
1321
+ letter-spacing: 0;
1322
+ color: var(--color-muted);
1323
+ }
1324
+ .quote--card {
1325
+ font-family: var(--font-body);
1326
+ font-size: var(--step-1);
1327
+ line-height: 1.6;
1328
+ letter-spacing: 0;
1329
+ }
1330
+
1331
+ /* \u2014\u2014 Controls \u2014\u2014 */
1332
+ .btn-lg { padding: 0.9rem 1.75rem; min-height: 3rem; font-size: var(--step-1); }
1333
+ .btn-sm { padding: 0.45rem 1rem; min-height: 2.25rem; font-size: var(--step-0); }
1334
+ .btn-icon {
1335
+ width: var(--tap-min);
1336
+ height: var(--tap-min);
1337
+ padding: 0;
1338
+ border-radius: var(--radius-pill);
1339
+ }
1340
+ .btn-group {
1341
+ display: flex;
1342
+ flex-wrap: wrap;
1343
+ gap: var(--space-3);
1344
+ align-items: center;
1345
+ }
1346
+ .field {
1347
+ display: grid;
1348
+ gap: var(--space-2);
1349
+ }
1350
+ .field label {
1351
+ font-weight: 600;
1352
+ font-size: var(--step-0);
1353
+ }
1354
+ .field + .field { margin-top: var(--space-4); }
1355
+ .form-grid {
1356
+ display: grid;
1357
+ gap: var(--space-4);
1358
+ }
1359
+ .form-grid .field + .field { margin-top: 0; }
1360
+ @media (min-width: 720px) {
1361
+ .form-grid--2 { grid-template-columns: 1fr 1fr; }
1362
+ .form-grid .field--full { grid-column: 1 / -1; }
1363
+ }
1364
+ .input,
1365
+ .textarea,
1366
+ .select {
1367
+ width: 100%;
1368
+ min-height: var(--tap-min);
1369
+ padding: 0.65rem 0.9rem;
1370
+ border: 1px solid var(--color-border);
1371
+ border-radius: var(--radius);
1372
+ background: var(--color-surface);
1373
+ color: var(--color-text);
1374
+ font: inherit;
1375
+ line-height: 1.4;
1376
+ }
1377
+ .textarea { min-height: 7rem; resize: vertical; }
1378
+ .input:focus-visible,
1379
+ .textarea:focus-visible,
1380
+ .select:focus-visible {
1381
+ outline: none;
1382
+ box-shadow: var(--ring);
1383
+ border-color: var(--color-focus);
1384
+ }
1385
+ .input-row {
1386
+ display: flex;
1387
+ flex-wrap: wrap;
1388
+ gap: var(--space-2);
1389
+ }
1390
+ .input-row .input { flex: 1 1 14rem; }
1391
+ .checkbox {
1392
+ width: 1.15rem;
1393
+ height: 1.15rem;
1394
+ accent-color: var(--color-accent);
1395
+ }
1396
+ .accordion {
1397
+ border-top: 1px solid var(--color-border);
1398
+ }
1399
+ .accordion details {
1400
+ border-bottom: 1px solid var(--color-border);
1401
+ }
1402
+ .accordion summary {
1403
+ list-style: none;
1404
+ cursor: pointer;
1405
+ min-height: var(--tap-min);
1406
+ display: flex;
1407
+ align-items: center;
1408
+ justify-content: space-between;
1409
+ gap: var(--space-4);
1410
+ padding: var(--space-4) 0;
1411
+ font-weight: 600;
1412
+ font-size: var(--step-1);
1413
+ }
1414
+ .accordion summary::-webkit-details-marker { display: none; }
1415
+ .accordion summary::after {
1416
+ content: "+";
1417
+ flex-shrink: 0;
1418
+ width: 1.75rem;
1419
+ height: 1.75rem;
1420
+ display: inline-grid;
1421
+ place-items: center;
1422
+ border-radius: var(--radius-pill);
1423
+ background: var(--color-surface-2);
1424
+ font-weight: 500;
1425
+ color: var(--color-muted);
1426
+ transition: transform 180ms ease;
1427
+ }
1428
+ .accordion details[open] summary::after { content: "\u2013"; }
1429
+ .accordion details > *:not(summary) {
1430
+ margin: 0;
1431
+ padding-bottom: var(--space-4);
1432
+ max-width: 60ch;
1433
+ color: var(--color-muted);
1434
+ }
1435
+ .tabs {
1436
+ display: grid;
1437
+ gap: var(--space-5);
1438
+ }
1439
+ .tabs__list {
1440
+ display: flex;
1441
+ flex-wrap: wrap;
1442
+ gap: var(--space-2);
1443
+ border-bottom: 1px solid var(--color-border);
1444
+ }
1445
+ .tabs__list--pill {
1446
+ border-bottom: 0;
1447
+ gap: var(--space-1);
1448
+ padding: var(--space-1);
1449
+ background: var(--color-surface-2);
1450
+ border-radius: var(--radius-pill);
1451
+ width: fit-content;
1452
+ }
1453
+ .tabs__tab {
1454
+ appearance: none;
1455
+ background: transparent;
1456
+ border: 0;
1457
+ border-bottom: 2px solid transparent;
1458
+ margin-bottom: -1px;
1459
+ padding: var(--space-3) var(--space-4);
1460
+ min-height: var(--tap-min);
1461
+ font: inherit;
1462
+ font-weight: 600;
1463
+ color: var(--color-muted);
1464
+ cursor: pointer;
1465
+ transition: color 160ms ease;
1466
+ }
1467
+ .tabs__tab:hover { color: var(--color-text); }
1468
+ .tabs__tab[aria-selected="true"] {
1469
+ color: var(--color-text);
1470
+ border-bottom-color: var(--color-accent);
1471
+ }
1472
+ .tabs__list--pill .tabs__tab {
1473
+ border: 0;
1474
+ margin: 0;
1475
+ min-height: 2.5rem;
1476
+ padding: var(--space-2) var(--space-4);
1477
+ border-radius: var(--radius-pill);
1478
+ }
1479
+ .tabs__list--pill .tabs__tab[aria-selected="true"] {
1480
+ background: var(--color-surface);
1481
+ box-shadow: var(--shadow-1);
1482
+ }
1483
+ .tabs__panel[hidden] { display: none; }
1484
+ .announcement {
1485
+ display: flex;
1486
+ flex-wrap: wrap;
1487
+ align-items: center;
1488
+ justify-content: center;
1489
+ gap: var(--space-2) var(--space-4);
1490
+ padding: var(--space-3) var(--space-4);
1491
+ background: var(--color-surface-2);
1492
+ border-bottom: 1px solid var(--color-border);
1493
+ font-size: var(--step-0);
1494
+ text-align: center;
1495
+ }
1496
+ .announcement a { font-weight: 600; color: inherit; }
1497
+
1498
+ /* \u2014\u2014 Chrome \u2014\u2014 */
1499
+ .header--sticky {
1500
+ position: sticky;
1501
+ top: 0;
1502
+ z-index: 50;
1503
+ background: color-mix(in srgb, var(--color-bg) 86%, transparent);
1504
+ backdrop-filter: blur(var(--blur-header));
1505
+ -webkit-backdrop-filter: blur(var(--blur-header));
1506
+ border-bottom: 1px solid transparent;
1507
+ transition: border-color 180ms ease, background-color 180ms ease;
1508
+ }
1509
+ .header--sticky.is-scrolled {
1510
+ border-bottom-color: var(--color-border);
1511
+ background: color-mix(in srgb, var(--color-bg) 92%, transparent);
1512
+ }
1513
+ .nav-links {
1514
+ display: flex;
1515
+ align-items: center;
1516
+ gap: var(--space-1);
1517
+ }
1518
+ .nav-links a {
1519
+ display: inline-flex;
1520
+ align-items: center;
1521
+ min-height: 2.5rem;
1522
+ padding: 0 var(--space-3);
1523
+ border-radius: var(--radius-pill);
1524
+ font-size: var(--step-0);
1525
+ font-weight: 500;
1526
+ color: var(--color-muted);
1527
+ text-decoration: none;
1528
+ transition: color 160ms ease, background-color 160ms ease;
1529
+ }
1530
+ .nav-links a:hover,
1531
+ .nav-links a[aria-current="page"] {
1532
+ color: var(--color-text);
1533
+ background: color-mix(in srgb, var(--color-text) 5%, transparent);
1534
+ }
1535
+ .brand {
1536
+ display: inline-flex;
1537
+ align-items: center;
1538
+ gap: var(--space-2);
1539
+ font-family: var(--font-display);
1540
+ font-weight: 700;
1541
+ font-size: var(--step-2);
1542
+ letter-spacing: -0.02em;
1543
+ color: var(--color-text);
1544
+ text-decoration: none;
1545
+ white-space: nowrap;
1546
+ }
1547
+ .brand img { height: 2rem; width: auto; }
1548
+ .nav-drawer {
1549
+ position: fixed;
1550
+ inset: 0;
1551
+ z-index: 60;
1552
+ background: color-mix(in srgb, var(--color-text) 40%, transparent);
1553
+ opacity: 0;
1554
+ visibility: hidden;
1555
+ pointer-events: none;
1556
+ transition: opacity 180ms ease, visibility 180ms ease;
1557
+ }
1558
+ .nav-drawer.is-open {
1559
+ opacity: 1;
1560
+ visibility: visible;
1561
+ pointer-events: auto;
1562
+ }
1563
+ .nav-drawer__panel {
1564
+ position: absolute;
1565
+ inset-block: 0;
1566
+ inset-inline-end: 0;
1567
+ width: min(20rem, 88vw);
1568
+ background: var(--color-surface);
1569
+ color: var(--color-text);
1570
+ padding: calc(var(--header-h) + var(--space-2)) var(--space-5) var(--space-5);
1571
+ box-shadow: var(--shadow-3);
1572
+ transform: translateX(100%);
1573
+ transition: transform 200ms ease;
1574
+ display: grid;
1575
+ align-content: start;
1576
+ gap: var(--space-5);
1577
+ }
1578
+ .nav-drawer.is-open .nav-drawer__panel { transform: none; }
1579
+ .nav-drawer__panel nav {
1580
+ display: grid;
1581
+ }
1582
+ .nav-drawer__panel nav a {
1583
+ display: block;
1584
+ padding: var(--space-3) 0;
1585
+ border-bottom: 1px solid var(--color-border);
1586
+ font-weight: 600;
1587
+ text-decoration: none;
1588
+ color: var(--color-text);
1589
+ }
1590
+ .nav-drawer__panel .btn-group > * { flex: 1; }
1591
+
1592
+ /* \u2014\u2014 Island widgets \u2014\u2014 */
1593
+ .carousel {
1594
+ display: grid;
1595
+ gap: var(--space-5);
1596
+ }
1597
+ .carousel__track {
1598
+ display: flex;
1599
+ gap: var(--space-4);
1600
+ overflow-x: auto;
1601
+ scroll-snap-type: x mandatory;
1602
+ scroll-behavior: smooth;
1603
+ padding-bottom: var(--space-2);
1604
+ scrollbar-width: none;
1605
+ }
1606
+ .carousel__track::-webkit-scrollbar { display: none; }
1607
+ .carousel__track > * {
1608
+ flex: 0 0 min(100%, 22rem);
1609
+ scroll-snap-align: start;
1610
+ }
1611
+ .carousel__nav {
1612
+ display: flex;
1613
+ gap: var(--space-2);
1614
+ }
1615
+ .carousel__nav > button {
1616
+ display: inline-grid;
1617
+ place-items: center;
1618
+ width: 2.75rem;
1619
+ height: 2.75rem;
1620
+ min-height: 0;
1621
+ padding: 0;
1622
+ border-radius: var(--radius-pill);
1623
+ border: 1px solid var(--color-border);
1624
+ background: var(--color-surface);
1625
+ color: var(--color-text);
1626
+ font: inherit;
1627
+ font-size: 1.1rem;
1628
+ line-height: 1;
1629
+ cursor: pointer;
1630
+ transition: border-color 160ms ease, background-color 160ms ease;
1631
+ }
1632
+ .carousel__nav > button:hover { border-color: var(--color-text); }
1633
+ .carousel__nav > button:disabled { opacity: 0.4; cursor: default; }
1634
+ .before-after {
1635
+ position: relative;
1636
+ overflow: hidden;
1637
+ border-radius: var(--radius-lg);
1638
+ background: var(--color-surface-2);
1639
+ user-select: none;
1640
+ touch-action: none;
1641
+ }
1642
+ .before-after__before,
1643
+ .before-after__after {
1644
+ display: block;
1645
+ width: 100%;
1646
+ aspect-ratio: 16 / 10;
1647
+ object-fit: cover;
1648
+ }
1649
+ .before-after__after {
1650
+ position: absolute;
1651
+ inset: 0;
1652
+ clip-path: inset(0 0 0 50%);
1653
+ }
1654
+ .before-after__handle {
1655
+ position: absolute;
1656
+ inset-block: 0;
1657
+ left: 50%;
1658
+ width: 2px;
1659
+ background: var(--color-surface);
1660
+ transform: translateX(-50%);
1661
+ cursor: ew-resize;
1662
+ }
1663
+ .before-after__handle::after {
1664
+ content: "";
1665
+ position: absolute;
1666
+ top: 50%;
1667
+ left: 50%;
1668
+ width: 2.5rem;
1669
+ height: 2.5rem;
1670
+ border-radius: var(--radius-pill);
1671
+ border: 2px solid var(--color-surface);
1672
+ background: color-mix(in srgb, var(--color-text) 70%, transparent);
1673
+ box-shadow: var(--shadow-2);
1674
+ transform: translate(-50%, -50%);
1675
+ }
1676
+ .before-after__label {
1677
+ position: absolute;
1678
+ top: var(--space-3);
1679
+ padding: 0.2rem 0.6rem;
1680
+ border-radius: var(--radius-pill);
1681
+ font-size: var(--step-0);
1682
+ font-weight: 600;
1683
+ background: color-mix(in srgb, var(--color-bg) 80%, transparent);
1684
+ color: var(--color-text);
1685
+ pointer-events: none;
1686
+ }
1687
+ .before-after__label--before { left: var(--space-3); }
1688
+ .before-after__label--after { right: var(--space-3); }
1689
+ .icon {
1690
+ width: 1.25rem;
1691
+ height: 1.25rem;
1692
+ stroke: currentColor;
1693
+ fill: none;
1694
+ stroke-width: 1.75;
1695
+ stroke-linecap: round;
1696
+ stroke-linejoin: round;
1697
+ flex-shrink: 0;
1698
+ }
1699
+ .icon--lg { width: 1.75rem; height: 1.75rem; }
1700
+ .icon--sm { width: 1rem; height: 1rem; }
1701
+ `;
1702
+
1703
+ // src/runtime/before-after.ts
1704
+ var beforeAfterJs = `(() => {
1705
+ const roots = [...document.querySelectorAll("[data-island=\\"before-after\\"]")];
1706
+ for (const root of roots) {
1707
+ if (!(root instanceof HTMLElement)) continue;
1708
+ const after = root.querySelector(".before-after__after");
1709
+ const handle = root.querySelector(".before-after__handle");
1710
+ if (!(after instanceof HTMLElement) || !(handle instanceof HTMLElement)) continue;
1711
+
1712
+ let dragging = false;
1713
+ const setPos = (clientX) => {
1714
+ const rect = root.getBoundingClientRect();
1715
+ const pct = Math.min(100, Math.max(0, ((clientX - rect.left) / rect.width) * 100));
1716
+ after.style.clipPath = \`inset(0 0 0 \${pct}%)\`;
1717
+ handle.style.left = \`\${pct}%\`;
1718
+ root.setAttribute("aria-valuenow", String(Math.round(pct)));
1719
+ };
1720
+
1721
+ const onMove = (e) => {
1722
+ if (!dragging) return;
1723
+ const x = "touches" in e ? e.touches[0].clientX : e.clientX;
1724
+ setPos(x);
1725
+ };
1726
+ const stop = () => { dragging = false; };
1727
+
1728
+ root.addEventListener("pointerdown", (e) => {
1729
+ dragging = true;
1730
+ root.setPointerCapture?.(e.pointerId);
1731
+ setPos(e.clientX);
1732
+ });
1733
+ root.addEventListener("pointermove", onMove);
1734
+ root.addEventListener("pointerup", stop);
1735
+ root.addEventListener("pointercancel", stop);
1736
+ root.addEventListener("keydown", (e) => {
1737
+ if (!(e instanceof KeyboardEvent)) return;
1738
+ const now = Number(root.getAttribute("aria-valuenow") || "50");
1739
+ if (e.key === "ArrowLeft") setPos(root.getBoundingClientRect().left + ((now - 5) / 100) * root.clientWidth);
1740
+ if (e.key === "ArrowRight") setPos(root.getBoundingClientRect().left + ((now + 5) / 100) * root.clientWidth);
1741
+ });
1742
+ root.setAttribute("role", "slider");
1743
+ root.setAttribute("aria-valuemin", "0");
1744
+ root.setAttribute("aria-valuemax", "100");
1745
+ root.setAttribute("aria-valuenow", "50");
1746
+ root.tabIndex = 0;
1747
+ }
1748
+ })();
1749
+ `;
1750
+
1751
+ // src/runtime/carousel.ts
1752
+ var carouselJs = `(() => {
1753
+ const roots = [...document.querySelectorAll("[data-island=\\"carousel\\"]")];
1754
+ for (const root of roots) {
1755
+ const track = root.querySelector(".carousel__track");
1756
+ const prev = root.querySelector("[data-carousel-prev]");
1757
+ const next = root.querySelector("[data-carousel-next]");
1758
+ if (!(track instanceof HTMLElement)) continue;
1759
+ const step = () => Math.max(track.clientWidth * 0.85, 240);
1760
+ prev?.addEventListener("click", () => track.scrollBy({ left: -step(), behavior: "smooth" }));
1761
+ next?.addEventListener("click", () => track.scrollBy({ left: step(), behavior: "smooth" }));
1762
+ root.addEventListener("keydown", (e) => {
1763
+ if (!(e instanceof KeyboardEvent)) return;
1764
+ if (e.key === "ArrowLeft") track.scrollBy({ left: -step(), behavior: "smooth" });
1765
+ if (e.key === "ArrowRight") track.scrollBy({ left: step(), behavior: "smooth" });
1766
+ });
1767
+ }
1768
+ })();
1769
+ `;
1770
+
1771
+ // src/runtime/header.ts
1772
+ var headerJs = `(() => {
1773
+ const headers = [...document.querySelectorAll("[data-island=\\"header\\"]")];
1774
+ if (!headers.length) return;
1775
+
1776
+ const onScroll = () => {
1777
+ const scrolled = window.scrollY > 8;
1778
+ for (const el of headers) el.classList.toggle("is-scrolled", scrolled);
1779
+ };
1780
+ onScroll();
1781
+ window.addEventListener("scroll", onScroll, { passive: true });
1782
+
1783
+ for (const root of headers) {
1784
+ const toggle = root.querySelector("[data-nav-toggle]");
1785
+ const drawer = root.querySelector(".nav-drawer");
1786
+ const panel = root.querySelector(".nav-drawer__panel");
1787
+ if (!toggle || !drawer || !panel) continue;
1788
+
1789
+ const close = () => {
1790
+ drawer.classList.remove("is-open");
1791
+ toggle.setAttribute("aria-expanded", "false");
1792
+ document.body.style.overflow = "";
1793
+ };
1794
+ const open = () => {
1795
+ drawer.classList.add("is-open");
1796
+ toggle.setAttribute("aria-expanded", "true");
1797
+ document.body.style.overflow = "hidden";
1798
+ const focusable = panel.querySelector("a,button,[tabindex]:not([tabindex='-1'])");
1799
+ if (focusable instanceof HTMLElement) focusable.focus();
1800
+ };
1801
+
1802
+ toggle.addEventListener("click", () => {
1803
+ if (drawer.classList.contains("is-open")) close();
1804
+ else open();
1805
+ });
1806
+ drawer.addEventListener("click", (e) => {
1807
+ if (e.target === drawer) close();
1808
+ });
1809
+ document.addEventListener("keydown", (e) => {
1810
+ if (e.key === "Escape") close();
1811
+ });
1812
+ panel.querySelectorAll("a").forEach((a) => a.addEventListener("click", close));
1813
+ }
1814
+ })();
1815
+ `;
1816
+
1817
+ // src/runtime/experience.ts
1818
+ function experienceArrivalBootstrap(pauseKey = "vitris-experience-paused") {
1819
+ return `(()=>{try{if(matchMedia('(prefers-reduced-motion:reduce)').matches||document.documentElement.dataset.motionPolicy==='off'||localStorage.getItem(${JSON.stringify(pauseKey)})==='true')return;const key='vitris-experience-handoff',raw=sessionStorage.getItem(key);sessionStorage.removeItem(key);const handoff=raw?JSON.parse(raw):null;const route=handoff&&handoff.path===location.pathname&&Date.now()-handoff.at<15000;const initial=!sessionStorage.getItem('vitris-experience-arrived');if(!route&&!initial)return;document.documentElement.dataset.experienceArrival=route?'route':'initial';window.VitrisExperienceArrival={mode:route?'route':'initial',title:route?handoff.title:null,timer:setTimeout(()=>{delete document.documentElement.dataset.experienceArrival;delete window.VitrisExperienceArrival;},3500)};}catch{}})();`;
1820
+ }
1821
+ var experienceJs = String.raw`(()=>{
1822
+ if(window.VitrisExperience)return;
1823
+ let cleanup=()=>{};
1824
+ const reduce=matchMedia('(prefers-reduced-motion:reduce)'),fine=matchMedia('(hover:hover) and (pointer:fine)');
1825
+ const allowed=()=>!reduce.matches&&document.documentElement.dataset.motionPolicy!=='off'&&!document.hidden;
1826
+ const clamp=(n,min,max)=>Math.max(min,Math.min(max,n));
1827
+ function init(){
1828
+ cleanup();const abort=new AbortController(),cancels=[];let raf=0;
1829
+ const on=(el,event,fn,options={})=>el?.addEventListener(event,fn,{...options,signal:abort.signal});
1830
+ const preview=document.querySelector('[data-experience-preview]'),cursor=document.querySelector('[data-experience-cursor]');
1831
+ let active=null,mode='',last=0,target={x:0,y:0},position={x:0,y:0},cursorPosition={x:0,y:0};
1832
+ const stop=()=>{active=null;cancelAnimationFrame(raf);raf=0;preview?.setAttribute('data-visible','false');cursor?.setAttribute('data-visible','false');};
1833
+ function bounds(x,y){const w=preview?.offsetWidth||310,h=preview?.offsetHeight||230;return {x:clamp(x,w/2+12,innerWidth-w/2-12),y:clamp(y,h/2+12,innerHeight-h/2-12)};}
1834
+ function paint(){if(preview)preview.style.transform='translate3d('+(position.x-(preview.offsetWidth/2))+'px,'+(position.y-(preview.offsetHeight/2))+'px,0)';if(cursor)cursor.style.transform='translate3d('+(cursorPosition.x-(cursor.offsetWidth/2))+'px,'+(cursorPosition.y-(cursor.offsetHeight/2))+'px,0)';}
1835
+ function follow(t){if(!active||!allowed()){stop();return;}const dt=Math.min(48,t-last||16);last=t;const approach=(v,to,ms)=>v+(to-v)*(1-Math.exp(-dt/ms));position={x:approach(position.x,target.x,190),y:approach(position.y,target.y,190)};cursorPosition={x:approach(cursorPosition.x,target.x,110),y:approach(cursorPosition.y,target.y,110)};paint();if(Math.abs(position.x-target.x)+Math.abs(position.y-target.y)>.15){raf=requestAnimationFrame(follow);}else raf=0;}
1836
+ const focusPosition=el=>{const r=el.getBoundingClientRect();return bounds(innerWidth*.72,r.top+r.height/2);};
1837
+ function show(el,x,y,input){if(!preview||!fine.matches||!allowed()||innerWidth<=Number(preview.dataset.experienceMinWidth||1024)||el.closest('[data-view="grid"]'))return;active=el;mode=input;target=position=cursorPosition=bounds(x,y);last=0;const image=preview.querySelector('img');if(image){image.src=el.dataset.experienceImage;image.alt='';}const label=cursor?.querySelector('[data-experience-label]')||preview.querySelector('[data-experience-label]');if(label)label.textContent='View '+(el.dataset.experienceName||el.textContent.trim());paint();preview.dataset.visible='true';if(cursor)cursor.dataset.visible='true';}
1838
+ document.querySelectorAll('[data-experience-image]').forEach(el=>{
1839
+ on(el,'pointerenter',e=>show(el,e.clientX,e.clientY,'pointer'));
1840
+ on(el,'pointermove',e=>{if(active!==el)return;target=bounds(e.clientX,e.clientY);if(!raf)raf=requestAnimationFrame(follow);});
1841
+ on(el,'pointerleave',()=>{if(document.activeElement!==el)stop();});
1842
+ on(el,'focus',()=>{const p=focusPosition(el);show(el,p.x,p.y,'keyboard');});on(el,'blur',stop);on(el,'click',stop);
1843
+ });
1844
+ on(window,'scroll',()=>{if(active&&mode==='keyboard'){target=position=cursorPosition=focusPosition(active);paint();}else stop();},{passive:true});on(window,'resize',stop);on(document,'visibilitychange',stop);on(reduce,'change',stop);on(fine,'change',stop);
1845
+ const magnets=[...document.querySelectorAll('[data-experience-magnetic]')];
1846
+ magnets.forEach(el=>{let x=0,y=0;const reset=()=>{x=y=0;el.style.transition=allowed()?'transform 1.2s cubic-bezier(.2,1.5,.5,1)':'none';el.style.transform='';};on(el,'pointermove',e=>{if(!allowed()||!fine.matches)return;const r=el.getBoundingClientRect();x=clamp((e.clientX-r.left-r.width/2+x)*.1,-8,8);y=clamp((e.clientY-r.top-r.height/2+y)*.1,-8,8);el.style.transition='transform .4s';el.style.transform='translate3d('+x+'px,'+y+'px,0)';});on(el,'pointerleave',reset);cancels.push(reset);});
1847
+ const drifts=[...document.querySelectorAll('[data-experience-drift]')],tracks=[...document.querySelectorAll('[data-experience-marquee-speed]')];let previousY=scrollY,scrollRaf=0;
1848
+ const settleDrift=()=>drifts.forEach(el=>{const trigger=document.getElementById(el.dataset.experienceTrigger)||el.parentElement;const r=trigger.getBoundingClientRect(),factor=Number(el.dataset.experienceDrift||.13),max=Number(el.dataset.experienceDriftMax||40);const value=allowed()&&r.bottom>0&&r.top<innerHeight?(el.dataset.experienceDriftMode==='center'?clamp((r.top-innerHeight*.5)*factor,-max,0):clamp(-r.top*factor,0,max)):0;el.style.transform=value?'translate3d(0,'+value+'px,0)':'';});
1849
+ function sizeTracks(){tracks.forEach(el=>{const copy=el.firstElementChild;if(copy)el.style.animationDuration=(copy.getBoundingClientRect().width/Number(el.dataset.experienceMarqueeSpeed||73))+'s';});}
1850
+ function scroll(){settleDrift();const delta=scrollY-previousY;if(Math.abs(delta)>2&&allowed())tracks.forEach(el=>{const animation=el.getAnimations()[0];if(!animation)return;const duration=Number(animation.effect.getTiming().duration);if(Number(animation.currentTime)<duration*2)animation.currentTime=Number(animation.currentTime)+duration*100;animation.updatePlaybackRate(delta>=0?1:-1);});previousY=scrollY;scrollRaf=0;}
1851
+ on(window,'scroll',()=>{if(!scrollRaf)scrollRaf=requestAnimationFrame(scroll);},{passive:true});on(window,'resize',()=>{sizeTracks();settleDrift();});sizeTracks();document.fonts?.ready.then(()=>{if(!abort.signal.aborted)sizeTracks();});settleDrift();
1852
+ const observer=new IntersectionObserver(entries=>entries.forEach(e=>{if(e.isIntersecting){e.target.classList.add('experience-seen');if(e.target.hasAttribute('data-experience-intro')&&allowed())e.target.querySelectorAll('[data-experience-line]').forEach((el,i)=>{const animation=el.animate([{transform:'translateY(24px)',opacity:.75},{transform:'none',opacity:1}],{duration:650,delay:Math.min(i*90,270),easing:'cubic-bezier(.2,1,.3,1)'});cancels.push(()=>animation.cancel());});observer.unobserve(e.target);}}),{threshold:.15});document.querySelectorAll('[data-experience-seam],[data-experience-intro]').forEach(el=>observer.observe(el));
1853
+ const curtain=document.querySelector('[data-experience-transition]');let navigating=false;
1854
+ const opening=()=>{if(allowed())document.querySelectorAll('[data-experience-opening]').forEach((el,i)=>{const a=el.animate([{transform:'translateY(32px)'},{transform:'translateY(0)'}],{duration:1000,delay:Math.min(i*60,180),easing:'cubic-bezier(.15,1,.2,1)',fill:'backwards'});cancels.push(()=>a.cancel());});};
1855
+ const arrival=window.VitrisExperienceArrival;
1856
+ if(arrival&&curtain){clearTimeout(arrival.timer);delete window.VitrisExperienceArrival;try{sessionStorage.setItem('vitris-experience-arrived','seen');}catch{}
1857
+ if(allowed()){
1858
+ const title=document.createElement('span');title.textContent=arrival.title||curtain.dataset.experienceArrival||document.title;curtain.replaceChildren(title);curtain.dataset.state='arrival-hold';curtain.style.visibility='visible';curtain.style.transform='translateY(0)';curtain.style.borderRadius='0';curtain.style.pointerEvents='auto';
1859
+ const reveal=()=>{if(abort.signal.aborted)return;if(!allowed()){delete document.documentElement.dataset.experienceArrival;curtain.style.visibility='';curtain.style.transform='';curtain.style.borderRadius='';curtain.style.pointerEvents='';return;}opening();curtain.dataset.state='revealing';const a=curtain.animate([{transform:'translateY(0)',borderRadius:'0'},{transform:'translateY(-115%)',borderRadius:'0 0 50% 50% / 0 0 12% 12%'}],{duration:800,easing:'cubic-bezier(.65,0,.2,1)',fill:'forwards'});cancels.push(()=>a.cancel());a.finished.catch(()=>{}).finally(()=>{delete document.documentElement.dataset.experienceArrival;curtain.style.visibility='';curtain.style.transform='';curtain.style.borderRadius='';curtain.style.pointerEvents='';curtain.dataset.state='idle';a.cancel();});};
1860
+ const timer=setTimeout(reveal,arrival.mode==='initial'?420:0);cancels.push(()=>clearTimeout(timer));
1861
+ }else delete document.documentElement.dataset.experienceArrival;
1862
+ }else opening();
1863
+ const arrivalSettled=()=>new Promise(resolve=>{if(!document.documentElement.dataset.experienceArrival){resolve();return;}let timer;const done=()=>{observer.disconnect();clearTimeout(timer);abort.signal.removeEventListener('abort',done);resolve();};const observer=new MutationObserver(()=>{if(!document.documentElement.dataset.experienceArrival)done();});observer.observe(document.documentElement,{attributes:true,attributeFilter:['data-experience-arrival']});timer=setTimeout(done,3500);abort.signal.addEventListener('abort',done,{once:true});});
1864
+ on(document,'click',async e=>{const a=e.target.closest('a[href]');if(!curtain||!a||e.defaultPrevented||e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||a.hasAttribute('download')||a.target&&a.target!=='_self'||!allowed())return;const url=new URL(a.href,location.href);if(url.origin!==location.origin||url.pathname===location.pathname||url.hash||!/^https?:$/.test(url.protocol))return;e.preventDefault();if(navigating)return;navigating=true;await arrivalSettled();if(abort.signal.aborted)return;if(!allowed()){location.assign(url.href);return;}document.dispatchEvent(new Event('vitris:before-navigate'));const label=document.createElement('span');label.textContent=a.dataset.experienceTitle||a.dataset.chapterName||a.textContent.trim().split('\n')[0];label.style.opacity='0';curtain.replaceChildren(label);curtain.dataset.state='covering';curtain.style.visibility='visible';curtain.style.pointerEvents='auto';try{const cover=curtain.animate([{transform:'translateY(115%)',borderRadius:'50% 50% 0 0 / 12% 12% 0 0'},{transform:'translateY(0)',borderRadius:'0'}],{duration:500,easing:'cubic-bezier(.7,0,.9,.4)',fill:'forwards'});cancels.push(()=>cover.cancel());await cover.finished;const title=label.animate([{opacity:0,transform:'translateY(20px)'},{opacity:1,transform:'none'}],{duration:650,fill:'forwards'});cancels.push(()=>title.cancel());await new Promise(resolve=>setTimeout(resolve,430));if(curtain.hasAttribute('data-experience-arrival')&&allowed())try{sessionStorage.setItem('vitris-experience-handoff',JSON.stringify({path:url.pathname,title:label.textContent,at:Date.now()}));}catch{}}catch{}finally{location.assign(url.href);}});
1865
+ const settlePolicy=()=>{if(!allowed()){stop();magnets.forEach(el=>{el.style.transition='none';el.style.transform='';});document.querySelectorAll('[data-experience-opening],[data-experience-line]').forEach(el=>el.getAnimations().forEach(a=>a.cancel()));if(curtain){curtain.getAnimations().forEach(a=>a.cancel());delete document.documentElement.dataset.experienceArrival;curtain.style.visibility='';curtain.style.transform='';curtain.style.borderRadius='';curtain.style.pointerEvents='';}}settleDrift();};
1866
+ const policy=new MutationObserver(settlePolicy);policy.observe(document.documentElement,{attributes:true,attributeFilter:['data-motion-policy']});on(reduce,'change',settlePolicy);on(fine,'change',()=>{magnets.forEach(el=>{el.style.transition='none';el.style.transform='';});});on(document,'visibilitychange',settlePolicy);
1867
+ cleanup=()=>{stop();cancelAnimationFrame(scrollRaf);abort.abort();observer.disconnect();policy.disconnect();cancels.forEach(fn=>fn());drifts.forEach(el=>el.style.transform='');delete document.documentElement.dataset.experienceArrival;if(curtain){curtain.style.visibility='';curtain.style.pointerEvents='';curtain.style.transform='';curtain.style.borderRadius='';}};
1868
+ }
1869
+ window.VitrisExperience={init,dispose:()=>cleanup()};init();
1870
+ addEventListener('pagehide',()=>cleanup());addEventListener('pageshow',e=>{if(e.persisted)init();});
1871
+ })();`;
1872
+
1873
+ // src/runtime/leads.ts
1874
+ var leadsJs = `(() => {
1875
+ let challengeScript;
1876
+ const loadChallenge = () => {
1877
+ if (window.turnstile) return Promise.resolve(window.turnstile);
1878
+ if (!challengeScript) challengeScript = new Promise((resolve, reject) => {
1879
+ const script = document.createElement('script');
1880
+ script.src = 'https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit';
1881
+ script.onload = () => window.turnstile ? resolve(window.turnstile) : reject(new Error('challenge_unavailable'));
1882
+ script.onerror = () => { script.remove(); challengeScript = null; reject(new Error('challenge_unavailable')); };
1883
+ document.head.append(script);
1884
+ });
1885
+ return challengeScript;
1886
+ };
1887
+ document.querySelectorAll('form[data-lead-form][data-vitris-enhanced]').forEach(form => {
1888
+ // Named controls can shadow native form properties and methods.
1889
+ const data = Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'dataset').get.call(form);
1890
+ const setAttribute = Element.prototype.setAttribute.bind(form);
1891
+ const removeAttribute = Element.prototype.removeAttribute.bind(form);
1892
+ const querySelectorAll = Element.prototype.querySelectorAll.bind(form);
1893
+ if (data.vitrisInitialized) return;
1894
+ data.vitrisInitialized = '1';
1895
+ let submitting = false, key, signature, widget, token = '', challengeResolve, challengeReject, completedSignature;
1896
+ const note = document.createElement('p'); note.className = 'c-lead-status';
1897
+ note.setAttribute('role', 'status'); note.setAttribute('aria-live', 'polite'); note.tabIndex = -1;
1898
+ note.style.display = 'none'; Element.prototype.after.call(form, note);
1899
+ const say = (message, error = false) => {
1900
+ note.style.display = ''; note.setAttribute('role', error ? 'alert' : 'status'); note.textContent = message;
1901
+ if (error) note.focus();
1902
+ };
1903
+ let challengeBox;
1904
+ const challenge = async () => {
1905
+ const api = await loadChallenge();
1906
+ if (challengeBox) challengeBox.style.display = '';
1907
+ if (token) return token;
1908
+ if (!challengeBox) { challengeBox = document.createElement('div'); challengeBox.className = 'vitris-challenge'; challengeBox.setAttribute('aria-label', 'Security verification'); Element.prototype.append.call(form, challengeBox); }
1909
+ return new Promise((resolve, reject) => {
1910
+ challengeResolve = resolve; challengeReject = reject;
1911
+ if (widget !== undefined) api.reset(widget);
1912
+ else widget = api.render(challengeBox, {
1913
+ sitekey: data.vitrisSitekey, action: data.vitrisAction,
1914
+ callback: value => { token = value; challengeResolve?.(value); },
1915
+ 'expired-callback': () => { token = ''; if (submitting) say('Security check expired. Please submit again.', true); challengeReject?.(new Error('challenge_expired')); },
1916
+ 'timeout-callback': () => { token = ''; challengeReject?.(new Error('challenge_expired')); },
1917
+ 'error-callback': () => { token = ''; challengeReject?.(new Error('challenge_unavailable')); }
1918
+ });
1919
+ });
1920
+ };
1921
+ EventTarget.prototype.addEventListener.call(form, 'submit', async event => {
1922
+ if (event.defaultPrevented) return;
1923
+ event.preventDefault(); if (submitting) return;
1924
+ if (!HTMLFormElement.prototype.reportValidity.call(form)) return;
1925
+ const values = new URLSearchParams(new FormData(form));
1926
+ values.delete('cf-turnstile-response'); values.delete('idempotency_key');
1927
+ const current = values.toString();
1928
+ if (current === completedSignature) { say('Your message was already accepted.'); return; }
1929
+ if (!data.vitrisForm || !data.vitrisSitekey) { say('This preview does not send messages. Please use the listed contact details.', true); return; }
1930
+ if (current !== signature) { key = crypto.randomUUID(); signature = current; }
1931
+ submitting = true;
1932
+ const controls = [...querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], [data-vitrisid="emailSendButton"]')];
1933
+ const prior = controls.map(c => c.disabled);
1934
+ controls.forEach(c => { c.disabled = true; c.setAttribute('aria-disabled', 'true'); }); setAttribute('aria-busy', 'true');
1935
+ let timeout;
1936
+ try {
1937
+ say('Please complete the security check.');
1938
+ const challengeTimeout = new Promise((_, reject) => { timeout = setTimeout(() => reject(new Error('challenge_unavailable')), 120000); });
1939
+ const verified = await Promise.race([challenge(), challengeTimeout]);
1940
+ clearTimeout(timeout);
1941
+ values.set('cf-turnstile-response', verified); values.set('idempotency_key', key);
1942
+ say('Sending your inquiry\u2026');
1943
+ const controller = new AbortController();
1944
+ timeout = setTimeout(() => controller.abort(), Math.max(100, Math.min(30000, Number(data.leadTimeoutMs) || 10000)));
1945
+ const response = await fetch(Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, 'action').get.call(form), { method:'POST', body:values, headers:{accept:'application/json'}, signal:controller.signal, credentials:'omit' });
1946
+ const result = response.headers.get('content-type')?.includes('application/json') ? await response.json() : null;
1947
+ if (!response.ok || result?.ok !== true) throw new Error(result?.error || 'backend_unavailable');
1948
+ say(result.mode === 'test' ? 'Test message accepted. No customer email will be sent.' : 'Message accepted. Your inquiry has been saved.');
1949
+ completedSignature = current;
1950
+ if (challengeBox) challengeBox.style.display = 'none';
1951
+ } catch (error) {
1952
+ const messages = {
1953
+ challenge_required:'Please complete the security check and try again.',
1954
+ challenge_invalid:'Security check expired or was invalid. Please try again.',
1955
+ challenge_replayed:'Security check was already used. Please try again.',
1956
+ challenge_expired:'Security check expired. Please try again.',
1957
+ challenge_unavailable:'Security check is unavailable. Please try again or use the listed contact details.',
1958
+ rate_limited:'Too many attempts. Please wait ten minutes and try again.',
1959
+ validation_error:'Please check your form fields and try again.',
1960
+ form_disabled:'This form is currently unavailable. Please use the listed contact details.',
1961
+ configuration_unavailable:'This form is currently unavailable. Please use the listed contact details.',
1962
+ idempotency_conflict:'This request changed during a retry. Please edit your message and try again.'
1963
+ };
1964
+ say(error?.name === 'AbortError' ? 'The request timed out. Your message is still here; please try again.' : (messages[error?.message] || 'Acceptance could not be confirmed. Your details are still here; please try again or use the listed contact options.'), true);
1965
+ if (challengeBox) challengeBox.style.display = '';
1966
+ } finally {
1967
+ clearTimeout(timeout); token = ''; challengeResolve = null; challengeReject = null;
1968
+ if (window.turnstile && widget !== undefined) window.turnstile.reset(widget);
1969
+ controls.forEach((c, i) => { c.disabled = prior[i]; c.removeAttribute('aria-disabled'); });
1970
+ removeAttribute('aria-busy'); submitting = false;
1971
+ }
1972
+ });
1973
+ });
1974
+ })();`;
1975
+
1976
+ // src/runtime/lightbox.ts
1977
+ var lightboxJs = `(() => {
1978
+ const roots = [...document.querySelectorAll("[data-island=\\"lightbox\\"]")];
1979
+ for (const root of roots) {
1980
+ const dialog = root.querySelector("dialog");
1981
+ const img = dialog?.querySelector("img");
1982
+ if (!(dialog instanceof HTMLDialogElement) || !(img instanceof HTMLImageElement)) continue;
1983
+
1984
+ root.querySelectorAll("[data-lightbox-src]").forEach((btn) => {
1985
+ btn.addEventListener("click", () => {
1986
+ const src = btn.getAttribute("data-lightbox-src");
1987
+ const alt = btn.getAttribute("data-lightbox-alt") || "";
1988
+ if (!src) return;
1989
+ img.src = src;
1990
+ img.alt = alt;
1991
+ dialog.showModal();
1992
+ });
1993
+ });
1994
+ dialog.addEventListener("click", (e) => {
1995
+ if (e.target === dialog) dialog.close();
1996
+ });
1997
+ dialog.querySelector("[data-lightbox-close]")?.addEventListener("click", () => dialog.close());
1998
+ }
1999
+ })();
2000
+ `;
2001
+
2002
+ // src/runtime/tabs.ts
2003
+ var tabsJs = `(() => {
2004
+ const roots = [...document.querySelectorAll("[data-island=\\"tabs\\"]")];
2005
+ for (const root of roots) {
2006
+ const tabs = [...root.querySelectorAll("[role=\\"tab\\"]")];
2007
+ const panels = [...root.querySelectorAll("[role=\\"tabpanel\\"]")];
2008
+ if (!tabs.length) continue;
2009
+
2010
+ const select = (tab) => {
2011
+ for (const t of tabs) {
2012
+ const on = t === tab;
2013
+ t.setAttribute("aria-selected", on ? "true" : "false");
2014
+ t.tabIndex = on ? 0 : -1;
2015
+ }
2016
+ const id = tab.getAttribute("aria-controls");
2017
+ for (const p of panels) {
2018
+ p.hidden = p.id !== id;
2019
+ }
2020
+ };
2021
+
2022
+ tabs.forEach((tab, i) => {
2023
+ tab.addEventListener("click", () => select(tab));
2024
+ tab.addEventListener("keydown", (e) => {
2025
+ if (!(e instanceof KeyboardEvent)) return;
2026
+ let next = i;
2027
+ if (e.key === "ArrowRight") next = (i + 1) % tabs.length;
2028
+ if (e.key === "ArrowLeft") next = (i - 1 + tabs.length) % tabs.length;
2029
+ if (next !== i) {
2030
+ e.preventDefault();
2031
+ tabs[next].focus();
2032
+ select(tabs[next]);
2033
+ }
2034
+ });
2035
+ });
2036
+ const initial = tabs.find((t) => t.getAttribute("aria-selected") === "true") || tabs[0];
2037
+ select(initial);
2038
+ }
2039
+ })();
2040
+ `;
2041
+
2042
+ // src/compile/scroll-motion.ts
2043
+ import { parseFragment, serialize } from "parse5";
2044
+ var MOTION_EFFECTS = ["entrance", "stagger", "drift", "progress", "story", "count", "text", "sequence", "draw"];
2045
+ var bounds = {
2046
+ duration: [120, 1200, 550],
2047
+ delay: [0, 300, 0],
2048
+ distance: [0, 32, 16],
2049
+ stagger: [0, 120, 70],
2050
+ "range-start": [0, 0.95, 0],
2051
+ "range-end": [0.05, 1, 1]
2052
+ };
2053
+ function prepareMotion(html, site) {
2054
+ if (site.scrollMotion && (site.scrollMotion.version !== 1 || !["enabled", "off"].includes(site.scrollMotion.policy))) throw new Error("Unsupported scrollMotion version or policy");
2055
+ const disabled = site.scrollMotion?.policy === "off";
2056
+ const enabled = site.scrollMotion?.version === 1 && site.scrollMotion.policy === "enabled";
2057
+ if (!/\bdata-motion\s*=|\bdata-reveal\b|\bdata-count-to\b/i.test(html)) return { html, targets: [], usesMotion: false };
2058
+ const fragment = parseFragment(html);
2059
+ const targets = [], ids = /* @__PURE__ */ new Map();
2060
+ const elements = [];
2061
+ const walk = (node) => {
2062
+ if (node.attrs) {
2063
+ elements.push(node);
2064
+ const id = node.attrs.find((a) => a.name === "id")?.value;
2065
+ if (id) ids.set(id, (ids.get(id) || 0) + 1);
2066
+ }
2067
+ for (const child of node.childNodes || []) walk(child);
2068
+ };
2069
+ walk(fragment);
2070
+ let legacy = false;
2071
+ for (const node of elements) {
2072
+ const get = (key) => node.attrs.find((a) => a.name === key)?.value;
2073
+ const set = (key, value) => {
2074
+ const old = node.attrs.find((a) => a.name === key);
2075
+ if (old) old.value = value;
2076
+ else node.attrs.push({ name: key, value });
2077
+ };
2078
+ if (get("data-motion") === "count" || get("data-count-to") !== void 0) set("style", (get("style") || "") + ";display:inline-block;position:relative");
2079
+ if (disabled) {
2080
+ node.attrs = node.attrs.filter((a) => !a.name.startsWith("data-motion") && !a.name.startsWith("data-reveal") && !a.name.startsWith("data-count-"));
2081
+ continue;
2082
+ }
2083
+ if (!enabled) node.attrs = node.attrs.filter((a) => !a.name.startsWith("data-motion"));
2084
+ if (get("data-count-to") !== void 0 && !get("data-motion")) {
2085
+ let ancestor = node.parentNode;
2086
+ while (ancestor && !ancestor.attrs?.some((a) => a.name === "data-island" && a.value === "counter")) ancestor = ancestor.parentNode;
2087
+ if (ancestor) {
2088
+ let id2 = get("id") || `motion-counter-${elements.indexOf(node)}`;
2089
+ while (!get("id") && ids.has(id2)) id2 += "-auto";
2090
+ if (get("id") && ids.get(id2) !== 1) throw new Error("Legacy counter needs a unique ID");
2091
+ if (!get("id")) {
2092
+ set("id", id2);
2093
+ ids.set(id2, 1);
2094
+ }
2095
+ set("data-motion-target", id2);
2096
+ targets.push({ id: id2, effect: "count", trigger: id2 });
2097
+ }
2098
+ }
2099
+ if (get("data-reveal") !== void 0 && !(enabled && get("data-motion"))) {
2100
+ legacy = true;
2101
+ const existing = get("id");
2102
+ let id2 = existing || `motion-legacy-${elements.indexOf(node)}`;
2103
+ if (!existing) while (ids.has(id2)) id2 += "-auto";
2104
+ if (existing && ids.get(existing) !== 1) throw new Error("Legacy motion targets require unique IDs for temporal evidence");
2105
+ if (!existing) {
2106
+ set("id", id2);
2107
+ ids.set(id2, 1);
2108
+ }
2109
+ set("data-motion-target", id2);
2110
+ targets.push({ id: id2, effect: get("data-reveal-stagger") !== void 0 ? "stagger" : "entrance", trigger: id2 });
2111
+ }
2112
+ const effect = get("data-motion");
2113
+ if (!effect || !enabled) continue;
2114
+ if (effect === "stagger" && !(node.childNodes || []).some((child) => child.attrs?.some((a) => a.name === "data-motion-child"))) throw new Error("New stagger targets need direct data-motion-child elements");
2115
+ if (!MOTION_EFFECTS.includes(effect)) throw new Error(`Unknown motion effect: ${effect}`);
2116
+ const id = get("id");
2117
+ if (!id || !/^[A-Za-z][\w-]*$/.test(id) || ids.get(id) !== 1) throw new Error("Motion targets require a unique stable id");
2118
+ if (["html", "body", "main", "header", "footer"].includes(node.tagName) || /(?:^|\s)c-(?:site-)?(?:header|footer|hero)(?:\s|$)/.test(get("class") || "")) throw new Error(`Motion target ${id} must be a content element, not a page shell or primary hero`);
2119
+ const descendants = [];
2120
+ const collect = (n) => {
2121
+ for (const c of n.childNodes || []) {
2122
+ if (c.attrs) descendants.push(c);
2123
+ collect(c);
2124
+ }
2125
+ };
2126
+ collect(node);
2127
+ const marked = (key) => descendants.filter((n) => n.attrs.some((a) => a.name === key));
2128
+ if (["count", "text"].includes(effect) && node.tagName === "h1") throw new Error(`Motion ${id}: primary heading must stay immediately readable`);
2129
+ if (effect === "count") {
2130
+ const value = Number(get("data-motion-value")), decimals = Number(get("data-motion-decimals") || 0);
2131
+ if (get("data-motion-value") === void 0 || !Number.isFinite(value) || Math.abs(value) > 1e12 || !Number.isInteger(decimals) || decimals < 0 || decimals > 3 || !get("data-motion-fact")?.trim() || get("data-motion-kind") !== "statistic" || descendants.length) throw new Error(`Motion ${id}: count needs a supplied statistic fact, finite value, 0\u20133 decimals and plain canonical text`);
2132
+ const final = (get("data-motion-prefix") || "") + (get("data-motion-sign") === "always" && value >= 0 ? "+" : "") + value.toLocaleString("en-US", { minimumFractionDigits: decimals, maximumFractionDigits: decimals, useGrouping: get("data-motion-group") !== "false" }) + (get("data-motion-suffix") || "");
2133
+ if ((node.childNodes || []).map((n) => n.value || "").join("") !== final) throw new Error(`Motion ${id}: formatted value must exactly match canonical author text (${final})`);
2134
+ let ancestor = node;
2135
+ while (ancestor) {
2136
+ if (ancestor.tagName === "a" && ancestor.attrs.some((a) => a.name === "href" && /^(tel:|mailto:)/.test(a.value))) throw new Error(`Motion ${id}: contact details cannot count`);
2137
+ ancestor = ancestor.parentNode;
2138
+ }
2139
+ }
2140
+ if (effect === "text" && (!marked("data-motion-word").length || marked("data-motion-word").length > 8)) throw new Error(`Motion ${id}: text needs 1\u20138 authored semantic data-motion-word spans`);
2141
+ if (effect === "sequence" && (!marked("data-motion-child").length || marked("data-motion-child").length > 8)) throw new Error(`Motion ${id}: sequence needs 1\u20138 authored data-motion-child elements, including forwarded component slots`);
2142
+ if (effect === "draw" && (!marked("data-motion-path").length || get("aria-hidden") !== "true" || node.tagName !== "svg")) throw new Error(`Motion ${id}: draw needs a decorative aria-hidden SVG with data-motion-path paths`);
2143
+ if (["count", "text", "sequence", "draw"].includes(effect) && get("data-motion-replay") === "repeat") throw new Error(`Motion ${id}: expressive content plays once per visit`);
2144
+ const trigger = get("data-motion-trigger") || id;
2145
+ if (ids.get(trigger) !== 1) throw new Error(`Motion trigger ${trigger} must exist uniquely`);
2146
+ if (["drift", "progress"].includes(effect) && trigger === id) throw new Error(`Progress target ${id} needs a separate stable trigger container`);
2147
+ for (const [key, [min, max, fallback]] of Object.entries(bounds)) {
2148
+ const raw = get(`data-motion-${key}`);
2149
+ if (raw === void 0) continue;
2150
+ const value = Number(raw);
2151
+ if (!Number.isFinite(value)) throw new Error(`Motion ${id}: ${key} must be a number`);
2152
+ set(`data-motion-${key}`, String(Math.max(min, Math.min(max, value || (value === 0 ? 0 : fallback)))));
2153
+ }
2154
+ if (Number(get("data-motion-range-start") || 0) >= Number(get("data-motion-range-end") || 1)) throw new Error(`Motion ${id}: range end must follow start`);
2155
+ for (const [key, allowed2] of Object.entries({ ease: ["editorial", "linear", "gentle"], replay: ["once", "repeat"], mobile: ["same", "static"], reduced: ["static"], from: ["up", "down", "left", "right"], treatment: ["phrase", "mask"], group: ["true", "false"], sign: ["always", "auto"] })) {
2156
+ const value = get(`data-motion-${key}`);
2157
+ if (value !== void 0 && !allowed2.includes(value)) throw new Error(`Motion ${id}: invalid ${key}`);
2158
+ }
2159
+ node.attrs = node.attrs.filter((a) => !a.name.startsWith("data-reveal"));
2160
+ targets.push({ id, effect, trigger });
2161
+ set("data-motion-target", id);
2162
+ }
2163
+ return { html: serialize(fragment), targets, usesMotion: legacy || targets.some((t) => t.effect !== "story") };
2164
+ }
2165
+
2166
+ // src/compile/icons.ts
2167
+ import { parseFragment as parseFragment2 } from "parse5";
2168
+ var allowed = /* @__PURE__ */ new Set(["name", "variant", "class", "id", "width", "height", "aria-label", "aria-labelledby", "aria-describedby", "aria-hidden"]);
2169
+ function compileIcons(html, route = "/") {
2170
+ if (!/<vitris-icon[\s/>]/i.test(html)) return html;
2171
+ const edits = [];
2172
+ function walk(node) {
2173
+ if ("tagName" in node && node.tagName === "vitris-icon") {
2174
+ try {
2175
+ const loc = node.sourceCodeLocation;
2176
+ if (!loc?.startTag || !loc.endTag) throw new Error('Use paired <vitris-icon name="\u2026"></vitris-icon> tags; self-closing and unclosed tags are not supported in HTML.');
2177
+ if (node.childNodes.some((child) => !("nodeName" in child && child.nodeName === "#text" && "value" in child && !child.value.trim()))) throw new Error("Vitris icon tags must be empty. Put text labels outside the icon.");
2178
+ const attrs = Object.fromEntries(node.attrs.map((attr) => [attr.name, attr.value]));
2179
+ for (const attr of node.attrs) if (attr.namespace || !allowed.has(attr.name) && !/^data-[a-z][a-z0-9-]*$/.test(attr.name)) throw new Error(`Unsupported Vitris icon attribute: ${attr.name}`);
2180
+ if (!attrs.name) throw new Error("Vitris icon requires a name.");
2181
+ if (attrs["aria-hidden"] !== void 0 && attrs["aria-hidden"] !== "true") throw new Error("Use aria-label or aria-labelledby for meaningful icons; aria-hidden can only be true.");
2182
+ if (attrs["aria-hidden"] && (attrs["aria-label"] || attrs["aria-labelledby"])) throw new Error("A hidden Vitris icon cannot also have an accessible name.");
2183
+ if (attrs["aria-describedby"] && !(attrs["aria-label"] || attrs["aria-labelledby"])) throw new Error("A described Vitris icon needs an accessible name.");
2184
+ for (const key of ["aria-label", "aria-labelledby"]) if (attrs[key] !== void 0 && !attrs[key].trim()) throw new Error(`Vitris icon ${key} must not be empty.`);
2185
+ edits.push({ start: loc.startOffset, end: loc.endOffset, svg: renderIcon(attrs.name, {
2186
+ variant: attrs.variant,
2187
+ className: attrs.class,
2188
+ id: attrs.id,
2189
+ width: attrs.width,
2190
+ height: attrs.height,
2191
+ label: attrs["aria-label"],
2192
+ labelledby: attrs["aria-labelledby"],
2193
+ describedby: attrs["aria-describedby"],
2194
+ data: Object.fromEntries(Object.entries(attrs).filter(([key]) => key.startsWith("data-")))
2195
+ }) });
2196
+ } catch (error) {
2197
+ throw new Error(`Icon error on ${route}: ${error instanceof Error ? error.message : String(error)}`);
2198
+ }
2199
+ return;
2200
+ }
2201
+ if ("childNodes" in node) for (const child of node.childNodes) walk(child);
2202
+ if ("tagName" in node && node.tagName === "template" && "content" in node) walk(node.content);
2203
+ }
2204
+ walk(parseFragment2(html, { sourceCodeLocationInfo: true }));
2205
+ for (const edit of edits.sort((a, b) => b.start - a.start)) html = html.slice(0, edit.start) + edit.svg + html.slice(edit.end);
2206
+ return html;
2207
+ }
2208
+
2209
+ // src/compile/site.ts
2210
+ var baseCss = `*, *::before, *::after { box-sizing: border-box; }
2211
+ html {
2212
+ -webkit-text-size-adjust: 100%;
2213
+ scroll-padding-top: calc(var(--header-h) + var(--space-3));
2214
+ }
2215
+ body {
2216
+ margin: 0;
2217
+ font-family: var(--font-body);
2218
+ font-size: var(--step-1);
2219
+ background: var(--color-bg);
2220
+ color: var(--color-text);
2221
+ line-height: 1.6;
2222
+ }
2223
+ h1, h2, h3, h4 {
2224
+ font-family: var(--font-display);
2225
+ font-weight: 600;
2226
+ margin: 0;
2227
+ text-wrap: balance;
2228
+ overflow-wrap: anywhere;
2229
+ }
2230
+ h1 { font-size: var(--step-5); line-height: 1.05; letter-spacing: -0.03em; }
2231
+ h2 { font-size: var(--step-3); line-height: 1.15; letter-spacing: -0.025em; }
2232
+ h3 { font-size: var(--step-2); line-height: 1.25; letter-spacing: -0.015em; }
2233
+ h4 { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em; }
2234
+ p { margin: 0 0 var(--space-4); text-wrap: pretty; }
2235
+ p:last-child { margin-bottom: 0; }
2236
+ a { color: inherit; }
2237
+ a:hover { text-decoration-color: var(--color-accent); }
2238
+ img { max-width: 100%; height: auto; display: block; }
2239
+ svg { display: inline-block; vertical-align: middle; }
2240
+ ul, ol { margin: 0 0 var(--space-4); padding-inline-start: 1.25rem; }
2241
+ ul:last-child, ol:last-child { margin-bottom: 0; }
2242
+ small { font-size: var(--step-0); }
2243
+ :focus-visible {
2244
+ outline: 2px solid var(--color-focus);
2245
+ outline-offset: 3px;
2246
+ }
2247
+ .skip-link {
2248
+ position: absolute;
2249
+ left: var(--space-4);
2250
+ top: var(--space-4);
2251
+ z-index: 100;
2252
+ padding: var(--space-3) var(--space-4);
2253
+ background: var(--color-surface);
2254
+ color: var(--color-text);
2255
+ border: 1px solid var(--color-border);
2256
+ border-radius: var(--radius);
2257
+ text-decoration: none;
2258
+ font-weight: 600;
2259
+ transform: translateY(-160%);
2260
+ transition: transform 160ms ease;
2261
+ }
2262
+ .skip-link:focus {
2263
+ transform: translateY(0);
2264
+ }
2265
+ .visually-hidden {
2266
+ position: absolute !important;
2267
+ width: 1px;
2268
+ height: 1px;
2269
+ padding: 0;
2270
+ margin: -1px;
2271
+ overflow: hidden;
2272
+ clip: rect(0, 0, 0, 0);
2273
+ white-space: nowrap;
2274
+ border: 0;
2275
+ }
2276
+ .wrap {
2277
+ width: min(var(--max-width), calc(100% - 2rem));
2278
+ margin-inline: auto;
2279
+ }
2280
+ @media (min-width: 720px) {
2281
+ .wrap { width: min(var(--max-width), calc(100% - 2.5rem)); }
2282
+ }
2283
+ .btn {
2284
+ display: inline-flex;
2285
+ align-items: center;
2286
+ justify-content: center;
2287
+ gap: 0.5rem;
2288
+ min-height: var(--tap-min);
2289
+ padding: 0.75rem 1.5rem;
2290
+ line-height: 1.2;
2291
+ white-space: nowrap;
2292
+ background: var(--color-accent);
2293
+ color: var(--color-accent-text);
2294
+ text-decoration: none;
2295
+ border: 1px solid transparent;
2296
+ border-radius: var(--radius-pill);
2297
+ font: inherit;
2298
+ font-weight: 600;
2299
+ cursor: pointer;
2300
+ transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
2301
+ }
2302
+ .btn:hover {
2303
+ background: color-mix(in srgb, var(--color-accent) 88%, var(--color-text));
2304
+ }
2305
+ .btn-outline {
2306
+ display: inline-flex;
2307
+ align-items: center;
2308
+ justify-content: center;
2309
+ gap: 0.5rem;
2310
+ min-height: var(--tap-min);
2311
+ padding: 0.75rem 1.5rem;
2312
+ line-height: 1.2;
2313
+ white-space: nowrap;
2314
+ background: transparent;
2315
+ color: var(--color-text);
2316
+ text-decoration: none;
2317
+ border: 1px solid var(--color-border);
2318
+ border-radius: var(--radius-pill);
2319
+ font: inherit;
2320
+ font-weight: 600;
2321
+ cursor: pointer;
2322
+ transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
2323
+ }
2324
+ .btn-outline:hover {
2325
+ border-color: var(--color-text);
2326
+ background: color-mix(in srgb, var(--color-text) 6%, transparent);
2327
+ }
2328
+ .btn-arrow {
2329
+ display: inline-flex;
2330
+ align-items: center;
2331
+ gap: 0.4rem;
2332
+ min-height: var(--tap-min);
2333
+ white-space: nowrap;
2334
+ font-weight: 600;
2335
+ text-decoration: none;
2336
+ color: var(--color-text);
2337
+ transition: color 180ms ease;
2338
+ }
2339
+ .btn-arrow::after {
2340
+ content: "\u2192";
2341
+ transition: transform 180ms ease;
2342
+ }
2343
+ .btn-arrow:hover {
2344
+ color: var(--color-accent);
2345
+ }
2346
+ .btn-arrow:hover::after { transform: translateX(3px); }
2347
+ .btn-ghost {
2348
+ display: inline-flex;
2349
+ align-items: center;
2350
+ justify-content: center;
2351
+ gap: 0.5rem;
2352
+ min-height: var(--tap-min);
2353
+ padding: 0.75rem 1.5rem;
2354
+ line-height: 1.2;
2355
+ white-space: nowrap;
2356
+ background: transparent;
2357
+ color: var(--color-text);
2358
+ text-decoration: none;
2359
+ border: 1px solid transparent;
2360
+ border-radius: var(--radius-pill);
2361
+ font: inherit;
2362
+ font-weight: 600;
2363
+ cursor: pointer;
2364
+ transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
2365
+ }
2366
+ .btn-ghost:hover {
2367
+ background: color-mix(in srgb, var(--color-text) 6%, transparent);
2368
+ }
2369
+ .c-cookie-banner {
2370
+ position: fixed;
2371
+ inset-inline: 0;
2372
+ bottom: 0;
2373
+ z-index: 200;
2374
+ padding: var(--space-4) 0 calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
2375
+ background: var(--color-surface);
2376
+ color: var(--color-text);
2377
+ border-top: 1px solid var(--color-border);
2378
+ box-shadow: 0 -8px 24px color-mix(in srgb, var(--color-text) 8%, transparent);
2379
+ }
2380
+ .c-cookie-banner__inner {
2381
+ display: flex;
2382
+ flex-direction: column;
2383
+ gap: var(--space-4);
2384
+ }
2385
+ .c-cookie-banner__title {
2386
+ margin: 0 0 var(--space-2);
2387
+ font-family: var(--font-display);
2388
+ font-size: var(--step-1);
2389
+ font-weight: 600;
2390
+ letter-spacing: -0.02em;
2391
+ line-height: 1.25;
2392
+ }
2393
+ .c-cookie-banner__text {
2394
+ margin: 0;
2395
+ font-size: var(--step-0);
2396
+ color: var(--color-muted);
2397
+ max-width: 42rem;
2398
+ }
2399
+ .c-cookie-banner__actions {
2400
+ display: flex;
2401
+ flex-wrap: wrap;
2402
+ align-items: center;
2403
+ gap: var(--space-3);
2404
+ }
2405
+ .c-cookie-banner__more {
2406
+ min-height: var(--tap-min);
2407
+ display: inline-flex;
2408
+ align-items: center;
2409
+ font-weight: 600;
2410
+ font-size: var(--step-0);
2411
+ color: var(--color-text);
2412
+ text-decoration: underline;
2413
+ text-underline-offset: 0.15em;
2414
+ cursor: pointer;
2415
+ }
2416
+ .c-cookie-banner__more:hover { color: var(--color-accent); }
2417
+ @media (max-width: 719px) {
2418
+ .c-cookie-banner {
2419
+ /* A delayed first-visit beacon must not insert a banner into document flow. */
2420
+ max-height: 50dvh;
2421
+ overflow-y: auto;
2422
+ overscroll-behavior: contain;
2423
+ }
2424
+ }
2425
+ @media (min-width: 720px) {
2426
+ .c-cookie-banner__inner {
2427
+ flex-direction: row;
2428
+ align-items: center;
2429
+ justify-content: space-between;
2430
+ gap: var(--space-5);
2431
+ }
2432
+ .c-cookie-banner__actions { flex-shrink: 0; }
2433
+ }
2434
+ .c-lead-ok {
2435
+ background: var(--color-surface);
2436
+ border: 1px solid var(--color-border);
2437
+ border-radius: var(--radius);
2438
+ padding: var(--space-3) var(--space-4);
2439
+ margin: 0 0 var(--space-4);
2440
+ color: var(--color-text);
2441
+ }
2442
+ .c-lead-hp {
2443
+ position: absolute;
2444
+ left: -9999px;
2445
+ width: 1px;
2446
+ height: 1px;
2447
+ overflow: hidden;
2448
+ }
2449
+ .c-cookie-page {
2450
+ padding: var(--space-7) 0 var(--space-8);
2451
+ }
2452
+ .c-cookie-page h1 {
2453
+ margin-bottom: var(--space-3);
2454
+ }
2455
+ .c-cookie-page h2 {
2456
+ margin: var(--space-6) 0 var(--space-3);
2457
+ }
2458
+ .c-cookie-page .wrap { max-width: 42rem; }
2459
+ .c-cookie-page p { color: var(--color-muted); }
2460
+ .c-cookie-page__actions {
2461
+ display: flex;
2462
+ flex-wrap: wrap;
2463
+ gap: var(--space-3);
2464
+ margin-top: var(--space-5);
2465
+ }
2466
+
2467
+ /* Scroll reveal \u2014 armed only after islands mark above-fold .is-in */
2468
+ [data-reveal] {
2469
+ --reveal-x: 0;
2470
+ --reveal-y: var(--reveal-dist, 16px);
2471
+ }
2472
+ [data-reveal-strength="whisper"] {
2473
+ --reveal-dist: 8px;
2474
+ --reveal-dur: 400ms;
2475
+ --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
2476
+ }
2477
+ [data-reveal-strength="editorial"] {
2478
+ --reveal-dist: 16px;
2479
+ --reveal-dur: 550ms;
2480
+ --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
2481
+ }
2482
+ [data-reveal-strength="noticeable"] {
2483
+ --reveal-dist: 24px;
2484
+ --reveal-dur: 650ms;
2485
+ --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
2486
+ }
2487
+ [data-reveal-from="up"] { --reveal-x: 0; --reveal-y: var(--reveal-dist, 16px); }
2488
+ [data-reveal-from="down"] { --reveal-x: 0; --reveal-y: calc(var(--reveal-dist, 16px) * -1); }
2489
+ [data-reveal-from="left"] { --reveal-x: calc(var(--reveal-dist, 16px) * -1); --reveal-y: 0; }
2490
+ [data-reveal-from="right"] { --reveal-x: var(--reveal-dist, 16px); --reveal-y: 0; }
2491
+ [data-reveal-child][data-reveal-from="up"] {
2492
+ --reveal-child-x: 0;
2493
+ --reveal-child-y: var(--reveal-dist, 16px);
2494
+ }
2495
+ [data-reveal-child][data-reveal-from="down"] {
2496
+ --reveal-child-x: 0;
2497
+ --reveal-child-y: calc(var(--reveal-dist, 16px) * -1);
2498
+ }
2499
+ [data-reveal-child][data-reveal-from="left"] {
2500
+ --reveal-child-x: calc(var(--reveal-dist, 16px) * -1);
2501
+ --reveal-child-y: 0;
2502
+ }
2503
+ [data-reveal-child][data-reveal-from="right"] {
2504
+ --reveal-child-x: var(--reveal-dist, 16px);
2505
+ --reveal-child-y: 0;
2506
+ }
2507
+ @media (prefers-reduced-motion: reduce) {
2508
+ *, *::before, *::after { animation: none !important; transition: none !important; }
2509
+ }
2510
+ `;
2511
+ function applySiteVars(html, site) {
2512
+ return html.replaceAll("{{siteName}}", escapeHtml(site.name)).replaceAll("{{slug}}", escapeHtml(site.slug || ""));
2513
+ }
2514
+ function compilePage(page, catalog, site, kernelOrigin) {
2515
+ const withVars = applySiteVars(page.body, site);
2516
+ const flat = flattenBody(withVars, catalog, site);
2517
+ let body = applySiteVars(wrapMain(flat.html, catalog), site);
2518
+ body = compileIcons(body, page.path);
2519
+ body = instrumentSections(body, site);
2520
+ body = rewriteLeadForms(body, kernelOrigin, page.path);
2521
+ const motion = prepareMotion(body, site);
2522
+ body = motion.html;
2523
+ const origin = kernelOrigin.replace(/\/$/, "");
2524
+ body = body.replace(
2525
+ /\b(src|href)="(\/stock\/[^"]+)"/g,
2526
+ (_m, attr, path) => `${attr}="${origin}${path}"`
2527
+ );
2528
+ return {
2529
+ path: page.path,
2530
+ title: page.title || defaultTitleFromPath(page.path),
2531
+ description: page.description,
2532
+ indexing: page.indexing,
2533
+ lang: page.lang,
2534
+ bodyHtml: body,
2535
+ used: flat.used,
2536
+ usesMotion: motion.usesMotion,
2537
+ motionTargets: motion.targets,
2538
+ usesLeadForm: flat.usesLeadForm || /data-lead-form/i.test(body)
2539
+ };
2540
+ }
2541
+ function usedComponents(pages) {
2542
+ const names = /* @__PURE__ */ new Set();
2543
+ for (const page of pages) {
2544
+ for (const name of page.used) names.add(name);
2545
+ }
2546
+ return [...names];
2547
+ }
2548
+ function siteCss(pages, catalog) {
2549
+ const chunks = [baseCss, primitivesCss];
2550
+ if (pages.some((page) => page.bodyHtml.includes("data-vitris-icon="))) chunks.push(iconCss);
2551
+ for (const name of usedComponents(pages)) {
2552
+ const css = catalog[name]?.css;
2553
+ if (css) chunks.push(css);
2554
+ }
2555
+ return chunks.join("\n");
2556
+ }
2557
+ var KERNEL_ISLANDS = {
2558
+ experience: experienceJs,
2559
+ header: headerJs,
2560
+ carousel: carouselJs,
2561
+ tabs: tabsJs,
2562
+ "before-after": beforeAfterJs,
2563
+ lightbox: lightboxJs
2564
+ };
2565
+ function detectKernelIslands(html) {
2566
+ const found = /* @__PURE__ */ new Set();
2567
+ const re = /data-island=["']([a-z0-9-]+)["']/gi;
2568
+ let m;
2569
+ while (m = re.exec(html)) found.add(m[1]);
2570
+ return [...found];
2571
+ }
2572
+ function siteIslands(pages, catalog) {
2573
+ const chunks = [];
2574
+ const used = usedComponents(pages);
2575
+ for (const name of used) {
2576
+ const island = catalog[name]?.island;
2577
+ if (island) chunks.push(island);
2578
+ }
2579
+ if (pages.some((p) => p.usesLeadForm)) chunks.push(leadsJs);
2580
+ const needed = /* @__PURE__ */ new Set();
2581
+ for (const page of pages) {
2582
+ for (const id of detectKernelIslands(page.bodyHtml)) needed.add(id);
2583
+ }
2584
+ for (const id of needed) {
2585
+ const js = KERNEL_ISLANDS[id];
2586
+ if (js) chunks.push(js);
2587
+ }
2588
+ return chunks.join("\n");
2589
+ }
2590
+ function buildEntityJsonLd(site) {
2591
+ if (!site.telephone && !site.email && !site.address && !site.businessType) return null;
2592
+ const type = site.businessType || (site.address ? "LocalBusiness" : "Organization");
2593
+ const data = {
2594
+ "@context": "https://schema.org",
2595
+ "@type": type,
2596
+ name: site.name
2597
+ };
2598
+ if (site.telephone) data.telephone = site.telephone;
2599
+ if (site.email) data.email = site.email;
2600
+ if (site.address) data.address = { "@type": "PostalAddress", streetAddress: site.address };
2601
+ return JSON.stringify(data).replace(/</g, "\\u003c");
2602
+ }
2603
+ function renderDocument(opts) {
2604
+ const { site, page, kernelOrigin, themeHref } = opts;
2605
+ const prefix = opts.assetsPrefix ?? "";
2606
+ let body = page.bodyHtml;
2607
+ if (prefix) body = body.replace(/href="\//g, `href="${prefix}/`);
2608
+ const islands = opts.islandsHref;
2609
+ const islandTag = islands ? `<script type="module" src="${prefix}${islands}"></script>` : "";
2610
+ const motionTag = page.usesMotion ? `<script src="${prefix}${motionAssetHref}" defer></script>` : "";
2611
+ const arrivalOptIn = body.match(/data-experience-arrival=["']([^"']+)["']/);
2612
+ const pauseKey = body.match(/data-experience-pause-key=["']([^"']+)["']/)?.[1];
2613
+ const arrivalTag = islands && arrivalOptIn && detectKernelIslands(body).includes("experience") ? `<script>${experienceArrivalBootstrap(pauseKey).replace(/<\/script/gi, "<\\/script")}</script>` : "";
2614
+ const authoredTitle = page.title.trim(), brandTitle = site.name.trim();
2615
+ const normalizedTitle = authoredTitle.toLocaleLowerCase(), normalizedBrand = brandTitle.toLocaleLowerCase();
2616
+ const title = normalizedTitle === normalizedBrand || normalizedTitle.endsWith(" " + normalizedBrand) ? authoredTitle : `${authoredTitle} \u2014 ${brandTitle}`;
2617
+ const description = page.description || site.name;
2618
+ const canonicalPath = page.path === "/" ? "/" : page.path.replace(/\/$/, "");
2619
+ const canonical = opts.publicOrigin ? `<link rel="canonical" href="${escapeHtml(opts.publicOrigin.replace(/\/$/, "") + canonicalPath)}">` : "";
2620
+ const jsonLd = buildEntityJsonLd(site);
2621
+ const jsonLdTag = jsonLd ? `<script type="application/ld+json">${jsonLd}</script>` : "";
2622
+ const noindex = site.environment === "preview" || page.indexing === "noindex" || site.indexing === "noindex";
2623
+ const robots = noindex ? `
2624
+ <meta name="robots" content="noindex">` : "";
2625
+ const lang = page.lang || "en";
2626
+ if (opts.webAnalyticsToken && !/^[a-f0-9]{32}$/i.test(opts.webAnalyticsToken)) throw new Error("webAnalyticsToken must be a Cloudflare public 32-character hexadecimal token");
2627
+ const webAnalytics = opts.webAnalyticsToken && site.environment !== "preview" ? `<script defer src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='${JSON.stringify({ token: opts.webAnalyticsToken })}'></script>` : "";
2628
+ return `<!DOCTYPE html>
2629
+ <html lang="${escapeHtml(lang)}"${site.scrollMotion?.policy ? ` data-motion-policy="${site.scrollMotion.policy}"` : ""}${kernelOrigin ? ` data-backend="${escapeHtml(kernelOrigin)}" data-kernel="${escapeHtml(kernelOrigin)}"` : ""}>
2630
+ <head>
2631
+ <meta charset="utf-8">
2632
+ <meta name="viewport" content="width=device-width, initial-scale=1">${robots}
2633
+ ${arrivalTag}
2634
+ <title>${escapeHtml(title)}</title>
2635
+ <meta name="description" content="${escapeHtml(description)}">
2636
+ <meta property="og:title" content="${escapeHtml(title)}">
2637
+ <meta property="og:description" content="${escapeHtml(description)}">
2638
+ <meta property="og:type" content="website">
2639
+ ${canonical}
2640
+ <link rel="stylesheet" href="${prefix}${opts.styleHref || "/site.css"}">
2641
+ <link rel="stylesheet" href="${themeHref}">
2642
+ ${jsonLdTag}
2643
+ </head>
2644
+ <body>
2645
+ <a class="skip-link" href="#main">Skip to content</a>
2646
+ ${body}
2647
+ ${islandTag}
2648
+ ${kernelOrigin ? `<script src="${prefix}/beacon.js" defer></script>` : ""}
2649
+ ${motionTag}
2650
+ ${webAnalytics}
2651
+ </body>
2652
+ </html>
2653
+ `;
2654
+ }
2655
+ function robotsTxt(publicOrigin) {
2656
+ return `User-agent: *
2657
+ Allow: /
2658
+
2659
+ ${publicOrigin ? `Sitemap: ${publicOrigin.replace(/\/$/, "")}/sitemap.xml
2660
+ ` : ""}
2661
+ `;
2662
+ }
2663
+ function sitemapXml(paths, publicOrigin, exclude = [], includeCookie = true) {
2664
+ const omitted = new Set([...exclude, "/404", "/404.html"].map((path) => path === "/" ? "/" : path.replace(/\/$/, "")));
2665
+ const all = (includeCookie && !paths.includes(COOKIE_COMPLIANCE_PATH) ? [...paths, COOKIE_COMPLIANCE_PATH] : paths).filter((path) => !omitted.has(path === "/" ? "/" : path.replace(/\/$/, "")));
2666
+ const origin = (publicOrigin || "").replace(/\/$/, "");
2667
+ const urls = all.map((path) => {
2668
+ const p = path === "/" ? "/" : path.replace(/\/$/, "");
2669
+ const loc = origin ? `${origin}${p}` : p;
2670
+ return ` <url><loc>${escapeHtml(loc)}</loc></url>`;
2671
+ }).join("\n");
2672
+ return `<?xml version="1.0" encoding="UTF-8"?>
2673
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
2674
+ ${urls}
2675
+ </urlset>
2676
+ `;
2677
+ }
2678
+ function compileSite(opts) {
2679
+ const compiled = opts.pages.map(
2680
+ (page) => compilePage(page, opts.catalog, opts.site, opts.kernelOrigin)
2681
+ );
2682
+ const islands = siteIslands(compiled, opts.catalog);
2683
+ const islandsHref = islands ? "/islands.js" : null;
2684
+ const files = compiled.map((page) => ({
2685
+ path: page.path,
2686
+ html: renderDocument({
2687
+ site: opts.site,
2688
+ page,
2689
+ kernelOrigin: opts.kernelOrigin,
2690
+ themeHref: opts.themeHref,
2691
+ assetsPrefix: opts.assetsPrefix,
2692
+ publicOrigin: opts.publicOrigin,
2693
+ islandsHref: opts.pageAssets?.[page.path]?.js ?? (opts.pageAssets ? null : islandsHref),
2694
+ styleHref: opts.pageAssets?.[page.path]?.css,
2695
+ webAnalyticsToken: opts.webAnalyticsToken
2696
+ })
2697
+ }));
2698
+ const cookiePage = {
2699
+ path: COOKIE_COMPLIANCE_PATH,
2700
+ indexing: "noindex",
2701
+ title: "Cookie compliance",
2702
+ description: "How this site uses first-party analytics cookies, and how to change your preference.",
2703
+ bodyHtml: cookieComplianceHtml(opts.site.name),
2704
+ used: [],
2705
+ usesMotion: false,
2706
+ usesLeadForm: false
2707
+ };
2708
+ if (opts.kernelOrigin) files.push({
2709
+ path: COOKIE_COMPLIANCE_PATH,
2710
+ html: renderDocument({
2711
+ site: opts.site,
2712
+ page: cookiePage,
2713
+ kernelOrigin: opts.kernelOrigin,
2714
+ themeHref: opts.themeHref,
2715
+ assetsPrefix: opts.assetsPrefix,
2716
+ publicOrigin: opts.publicOrigin,
2717
+ islandsHref
2718
+ })
2719
+ });
2720
+ return files;
2721
+ }
2722
+ function compileAllPages(site, pages, catalog, kernelOrigin) {
2723
+ return pages.map((page) => compilePage(page, catalog, site, kernelOrigin));
2724
+ }
2725
+
2726
+ export {
2727
+ fileToPath,
2728
+ defaultTitleFromPath,
2729
+ beaconJs,
2730
+ COOKIE_COMPLIANCE_PATH,
2731
+ leadsJs,
2732
+ motionAssetHref,
2733
+ motionJs,
2734
+ resolveInstanceMotion,
2735
+ applyRootAttrs,
2736
+ flattenBody,
2737
+ wrapMain,
2738
+ rewriteLeadForms,
2739
+ primitivesCss,
2740
+ MOTION_EFFECTS,
2741
+ baseCss,
2742
+ compilePage,
2743
+ usedComponents,
2744
+ siteCss,
2745
+ siteIslands,
2746
+ renderDocument,
2747
+ robotsTxt,
2748
+ sitemapXml,
2749
+ compileSite,
2750
+ compileAllPages
2751
+ };