@layer addon {
  /* The public site wears the active Core theme: its paper, ink, lines and accent are the theme's tokens, so the
     site follows the theme and the Color scheme setting, light or dark. Secondary text is drawn a step toward the
     ink so long site copy keeps body-text contrast. Type, spacing and the header are the site's own.
     The site serves its own faces, all under the SIL Open Font License (media/fonts/*-ofl.txt): Instrument Sans
     for Latin text, Instrument Serif italic for the accent words, JetBrains Mono for labels and Vazirmatn for
     Persian. Persian has no italic or serif voice, so its accent words keep Vazirmatn upright. */
  @font-face { font-family: "Instrument Sans"; src: url("/media/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
  @font-face { font-family: "Instrument Serif"; src: url("/media/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
  @font-face { font-family: "JetBrains Mono"; src: url("/media/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
  @font-face { font-family: "Vazirmatn"; src: url("/media/fonts/vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

  body:has(> .as-site) { margin: 0; background: var(--as-paper); }

  /* The one token set of every site page, the Platform story included. Small accent text uses --as-accent-ink;
     accent buttons with white labels use --as-accent-strong, the accent toward black, so both keep text contrast. */
  :root {
    --as-paper: var(--hb-bg); --as-ink: var(--hb-fg); --as-line: var(--hb-border);
    --as-muted: color-mix(in oklch, var(--hb-muted) 65%, var(--hb-fg));
    --as-accent: var(--hb-accent); --as-accent-ink: var(--hb-accent-text);
    --as-accent-strong: color-mix(in oklch, var(--hb-accent) 80%, #000);
    --as-accent-strong-hover: color-mix(in oklch, var(--hb-accent) 65%, #000);
    --as-tint: color-mix(in srgb, var(--as-ink) 4%, var(--as-paper));
    --as-latin: "Instrument Sans", Arial, Helvetica, sans-serif;
    --as-serif: "Instrument Serif", Georgia, 'Times New Roman', serif;
    --as-sans: var(--as-latin);
    --as-code: "JetBrains Mono", ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --as-mono: var(--as-code);
  }

  .as-site {
    background: var(--as-paper); color: var(--as-ink); font-family: var(--as-sans);
    min-block-size: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
    font-kerning: normal; text-rendering: optimizeLegibility;
  }
  /* Persian labels are set in Vazirmatn too: a mono face has no Persian, and its wide spaces would gap the words.
     Code and Latin runs marked dir="ltr" keep the mono face. */
  html[dir="rtl"] .as-site, .as-site [dir="rtl"] { --as-sans: "Vazirmatn", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; --as-mono: var(--as-sans); font-family: var(--as-sans); }
  .as-site [dir="ltr"] { --as-sans: var(--as-latin); --as-mono: var(--as-code); font-family: var(--as-sans); }
  .as-site :is(code, pre, kbd, samp) { --as-mono: var(--as-code); }
  /* Persian is cursive: tracking breaks its joins and uppercase means nothing, so Persian text keeps the face's own
     spacing, and its accent words stay upright in Vazirmatn instead of a synthesized slant of a fallback face. The
     wordmark and Latin runs marked dir="ltr" keep their own tracking. */
  html[dir="rtl"] .as-site :not(.as-brand, [dir="ltr"], [dir="ltr"] *),
  html[dir="rtl"] .as-site :not(.as-brand, [dir="ltr"], [dir="ltr"] *)::before { letter-spacing: 0; text-transform: none; }
  html[dir="rtl"] .as-site em, .as-site [dir="rtl"] em { font-family: var(--as-sans); font-style: normal; }
  .as-site [dir="ltr"] em { font-family: var(--as-serif); font-style: italic; }
  /* A heading's one accent phrase (headline() in lib/site-layout.ts) speaks in Instrument Serif italic and the accent.
     Persian has no italic, so its accent phrase is set lighter than the heading; Persian prose stresses with weight. */
  .as-site :is(h1, h2) em { font-family: var(--as-serif); font-style: italic; font-weight: 400; color: var(--as-accent); }
  html[dir="rtl"] .as-site :is(h1, h2) em, .as-site [dir="rtl"] :is(h1, h2) em { font-family: var(--as-sans); font-style: normal; font-weight: 300; }
  html[dir="rtl"] .as-site .as-prose em { font-weight: 600; }
  /* Persian letterforms need a step more size than Latin capitals to read as clearly in a small label. */
  html[dir="rtl"] .as-site :is(.as-eyebrow, .as-crumbs ol, .as-band-head a, .as-feature .as-feature-shapes) { font-size: 12.5px; }
  /* Links take the surrounding ink without outranking any class that colors them, such as a button. */
  :where(.as-site a) { color: inherit; }
  .as-site a:focus-visible { outline: 2px solid var(--as-accent); outline-offset: 4px; }
  .as-site ::selection { background: var(--hb-accent); color: var(--hb-accent-fg); }
  .as-wrap { inline-size: min(1180px, calc(100% - 48px)); margin-inline: auto; }

  .as-skip { position: fixed; inset-inline-start: 20px; inset-block-start: 10px; padding: 14px; background: var(--as-ink); color: var(--as-paper); opacity: 0; pointer-events: none; z-index: 20; }
  .as-skip:focus { opacity: 1; pointer-events: auto; }

  /* A slim row above the header for the languages, so the header keeps the brand, the pages and the account. */
  .as-topbar { display: flex; justify-content: flex-end; padding-block: 12px 0; }
  .as-header-shell { position: sticky; inset-block-start: var(--hb-toolbar-block-size); z-index: 30; background: var(--as-paper); border-block-end: 1px solid var(--as-line); }
  .as-header { min-block-size: 88px; display: flex; align-items: center; gap: 32px; }
  .as-brand { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 29px; font-weight: 800; letter-spacing: -1.3px; text-decoration: none; font-family: Arial, Helvetica, sans-serif; }
  .as-brand svg { display: block; color: var(--as-accent); }
  [data-site-menu] { display: none; }
  .as-nav { position: static; display: flex; gap: 28px; inline-size: auto; block-size: auto; margin: 0 0 0 auto; padding: 0; overflow: visible; border: 0; background: transparent; color: inherit; font-size: 14px; }
  [dir="rtl"] .as-nav { margin: 0 auto 0 0; }
  .as-nav a { text-decoration: none; padding-block: 4px; border-block-end: 1px solid transparent; }
  .as-nav a:hover, .as-nav a[aria-current="page"] { border-block-end-color: currentColor; }
  .as-languages { display: flex; gap: 10px; margin: 0; font-family: var(--as-mono); font-size: 11px; letter-spacing: .04em; color: var(--as-muted); }
  .as-languages a { text-decoration: none; }
  .as-languages a:hover { color: var(--as-accent-ink); }
  .as-languages [aria-current] { color: var(--as-ink); }
  .as-languages [lang="fa-ir"] { font-family: "Vazirmatn", Tahoma, sans-serif; letter-spacing: 0; }

  main.as-wrap { flex: 1; padding-block: 24px 64px; }
  .as-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; font-family: var(--as-mono); font-size: 11px; color: var(--as-muted); }
  .as-crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--as-line); }
  .as-crumbs a { text-decoration: none; }
  .as-crumbs a:hover { color: var(--as-accent-ink); }

  .as-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--as-mono); font-size: 11px; font-weight: 400; letter-spacing: .065em; text-transform: uppercase; color: var(--as-muted); }
  .as-dot { inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--as-accent); flex-shrink: 0; }
  .as-intro { max-inline-size: 820px; margin-block-end: 36px; }
  .as-site h1 { margin: 16px 0 0; font-size: clamp(36px, 4.4vw, 60px); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
  .as-lead { margin: 18px 0 0; font-size: 17px; line-height: 1.7; color: var(--as-muted); }
  .as-deployment-facts { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.6; color: var(--as-muted); }
  .as-deployment-facts li { display: flex; align-items: center; gap: 9px; }
  .as-deployment-facts .hb-icon { flex: none; inline-size: 19px; block-size: 19px; }

  .as-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--as-line); border: 1px solid var(--as-line); }
  .as-cards a { display: block; block-size: 100%; padding: 28px; background: var(--as-paper); text-decoration: none; transition: background .2s; }
  .as-cards a:hover { background: var(--as-tint); }
  .as-cards h2 { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
  .as-cards p { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: var(--as-muted); }
  .as-cards-wide { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
  .as-cards h3 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
  .as-cards .as-meta { margin-block-start: 18px; font-family: var(--as-mono); font-size: 11px; letter-spacing: .04em; color: var(--as-accent-ink); }
  .as-section-title { margin: 48px 0 20px; font-size: 28px; font-weight: 400; letter-spacing: -.02em; }
  .as-more { margin: 40px 0 0; }
  .as-more a { color: var(--as-accent-ink); text-underline-offset: 3px; }
  .as-visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  .as-compare { margin-block-start: 48px; }
  .as-compare h2 { margin: 0 0 24px; font-size: 30px; font-weight: 400; letter-spacing: -.02em; }
  .as-table { position: relative; overflow-x: auto; border: 1px solid var(--as-line); }
  .as-table table { border-collapse: collapse; inline-size: 100%; font-size: 14px; }
  .as-table th, .as-table td { padding: 14px 18px; border-block-end: 1px solid var(--as-line); text-align: center; white-space: nowrap; }
  .as-table thead th { font-weight: 400; font-size: 16px; }
  .as-table thead th:first-child, .as-table tbody th { text-align: start; }
  .as-table tbody th { font-weight: 400; }
  .as-table tr:last-child > * { border-block-end: 0; }
  .as-table a { text-decoration: none; }
  .as-table a:hover { color: var(--as-accent-ink); }
  .as-included { color: var(--as-accent); }
  .as-included-mark { display: inline-flex; vertical-align: middle; }
  .as-included-mark .hb-icon { inline-size: 22px; block-size: 22px; }
  /* The comparison's header row stays in view under the site header while its rows scroll by. A phone, where the
     table scrolls sideways in its own frame, keeps the plain frame instead. */
  @media (min-width: 761px) {
    .as-compare .as-table { overflow: visible; }
    .as-compare thead th { position: sticky; inset-block-start: calc(var(--hb-toolbar-block-size, 0px) + 89px); z-index: 2; background: var(--as-paper); box-shadow: inset 0 -1px 0 var(--as-line); }
  }
  .as-optional { font-family: var(--as-mono); font-size: 11px; color: var(--as-muted); }
  .as-excluded { color: var(--as-line); }

  .as-prose { max-inline-size: 760px; font-size: 16px; line-height: 1.8; }
  .as-prose h1 { margin-block-start: 0; font-size: clamp(36px, 4.4vw, 56px); }
  .as-prose h2 { margin: 48px 0 0; font-size: 30px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
  .as-prose h3 { margin: 32px 0 0; font-size: 20px; font-weight: 600; }
  .as-prose p, .as-prose ul, .as-prose ol, .as-prose figure, .as-prose .hb-help-table, .as-prose .hb-help-code, .as-prose .hb-alert { margin: 16px 0 0; }
  .as-prose a { color: var(--as-accent-ink); text-underline-offset: 3px; }
  .as-prose code { font-family: var(--as-mono); font-size: .88em; padding: 1px 5px; background: var(--as-tint); }
  .as-prose pre { margin: 0; padding: 18px; overflow-x: auto; background: var(--as-ink); color: var(--as-paper); font-size: 13px; line-height: 1.6; }
  .as-prose pre code { padding: 0; background: none; }
  .as-prose img { display: block; max-inline-size: 100%; block-size: auto; border: 1px solid var(--as-line); }
  .as-prose table { border-collapse: collapse; inline-size: 100%; font-size: 14px; }
  .as-prose th, .as-prose td { padding: 10px 12px; border-block-end: 1px solid var(--as-line); text-align: start; vertical-align: top; }
  .as-prose [data-align="center"] { text-align: center; }
  .as-prose [data-align="end"] { text-align: end; }
  .as-prose .hb-help-table { overflow-x: auto; }
  .as-untranslated { margin: 0 0 24px; padding: 10px 14px; border: 1px dashed var(--as-line); font-size: 13px; color: var(--as-muted); }

  .as-contents { max-inline-size: 760px; margin-block-start: 72px; padding-block-start: 32px; border-block-start: 1px solid var(--as-line); }
  .as-contents h2 { margin: 0; font-size: 30px; font-weight: 400; letter-spacing: -.02em; }
  .as-contents-title { display: flex; align-items: center; gap: 12px; }
  /* The guide is not an app: its mark is a bare icon, never the framed mark apps wear. */
  .as-contents-icon { display: inline-flex; color: var(--as-accent-ink); }
  .as-contents-icon .hb-icon { inline-size: 26px; block-size: 26px; stroke-width: 1.75; }
  /* A link to a section of a page lands below the sticky header. */
  .as-site :is(section, h2)[id] { scroll-margin-block-start: 120px; }
  .as-contents ol { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: as-page; }
  .as-contents li { counter-increment: as-page; padding: 18px 0; border-block-end: 1px solid var(--as-line); }
  .as-contents li a { font-size: 19px; text-decoration: none; }
  .as-contents li a::before { content: counter(as-page, decimal-leading-zero); margin-inline-end: 14px; font-family: var(--as-mono); font-size: 11px; color: var(--as-accent-ink); }
  .as-contents li a:hover { color: var(--as-accent-ink); }
  .as-contents li p { margin: 6px 0 0; font-size: 14px; line-height: 1.7; color: var(--as-muted); }

  .as-app-summary { max-inline-size: 760px; margin: 40px 0 0; font-size: 19px; line-height: 1.75; }
  .as-audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 32px; margin: 0; padding: 0; list-style: none; }
  .as-audiences li { padding-block: 14px; padding-inline-start: 22px; border-block-start: 1px solid var(--as-line); position: relative; font-size: 16px; line-height: 1.65; }
  .as-audiences li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 24px; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--as-accent); }
  .as-faq { max-inline-size: 760px; border-block-start: 1px solid var(--as-line); }
  .as-faq details { border-block-end: 1px solid var(--as-line); }
  .as-faq summary { padding: 16px 0; font-size: 17px; cursor: pointer; }
  .as-faq summary:hover { color: var(--as-accent-ink); }
  .as-faq details p { margin: 0 0 22px; font-size: 16px; line-height: 1.75; color: var(--as-muted); }

  .as-doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
  .as-toc { position: sticky; inset-block-start: 24px; font-size: 14px; }
  .as-toc .as-eyebrow a { text-decoration: none; }
  .as-toc ol { margin: 16px 0 0; padding: 0; list-style: none; }
  .as-toc li { border-inline-start: 1px solid var(--as-line); }
  .as-toc a { display: block; padding: 6px 14px; text-decoration: none; color: var(--as-muted); }
  .as-toc .as-toc-depth-2 a { padding-inline-start: 28px; }
  .as-toc .as-toc-depth-3 a { padding-inline-start: 42px; }
  .as-toc a:hover { color: var(--as-ink); }
  .as-toc a[aria-current="page"] { color: var(--as-ink); box-shadow: inset 2px 0 0 var(--as-accent); }
  [dir="rtl"] .as-toc a[aria-current="page"] { box-shadow: inset -2px 0 0 var(--as-accent); }

  .as-pager { display: flex; justify-content: space-between; gap: 24px; margin-block-start: 72px; padding-block-start: 24px; border-block-start: 1px solid var(--as-line); }
  .as-pager a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; font-size: 18px; }
  .as-pager a[rel="next"] { margin-inline-start: auto; text-align: end; }
  .as-pager a[rel="next"] .as-eyebrow { justify-content: flex-end; }
  .as-pager a:hover { color: var(--as-accent-ink); }

  .as-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; max-inline-size: 1180px; margin-block: 40px; padding: 24px 28px; border: 1px solid var(--as-line); }
  .as-cta p { margin: 0; max-inline-size: 640px; font-size: 16px; line-height: 1.7; }
  .as-intro + .as-cta { margin-block-start: 0; }

  /* An index with nothing published yet still says what is coming and offers the way to talk to us. */
  .as-empty-state { display: grid; justify-items: start; gap: 14px; max-inline-size: 820px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--as-line); background: var(--as-tint); }
  .as-empty-state h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
  .as-empty-state p { margin: 0 0 10px; max-inline-size: 640px; font-size: 16px; line-height: 1.7; color: var(--as-muted); }
  /* Contact: the ways to reach us beside what happens once someone does. */
  .as-contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
  .as-contact h2.as-eyebrow { margin-block-end: 18px; }
  .as-steps-stacked { grid-template-columns: 1fr; gap: 24px; }
  .as-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; max-inline-size: none; margin: 0; padding: 0; list-style: none; background: var(--as-line); border: 1px solid var(--as-line); }
  .as-channels a { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--as-paper); text-decoration: none; transition: background .2s; }
  .as-channels a:hover { background: var(--as-tint); }
  /* A long address breaks inside its card rather than running past it. */
  .as-channel { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; font-family: var(--as-latin); overflow-wrap: anywhere; }
  [dir="rtl"] .as-channel { text-align: end; }

  /* Home introduces the Platform idea with the same living mark used by the full story.
     The first screen is chrome plus this hero through the CTAs: the lattice (diamonds) starts
     at or below the fold so it never shares the viewport with the living mark. Chrome is the
     language topbar, the sticky header and main's top padding; on small screens the topbar is
     gone and the header is shorter. 100svh keeps the fold stable while mobile browser UI shows. */
  .as-site:has(.as-hero) { --as-home-chrome: calc(var(--hb-toolbar-block-size) + 30px + 88px + 24px); }
  .as-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 32px);
    /* Center the mark with the copy; extra space lives between the lead and the CTAs, not above the title. */
    align-items: center; align-content: center; box-sizing: border-box;
    min-block-size: calc(100svh - var(--as-home-chrome)); padding-block: 32px 56px;
  }
  .as-hero-copy { max-inline-size: none; }
  .as-hero h1 { font-size: clamp(44px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -.04em; }
  /* The hero and the How it works scenes set their accent phrase on a line of its own. */
  .as-hero h1 em, .as-how-head h2 em { display: block; }
  .as-hero .as-lead { max-inline-size: 600px; margin-block-start: 22px; font-size: 17px; line-height: 1.7; }
  .as-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(36px, 4.5vh, 56px) 0 0; }
  .as-home-sculpture { position: relative; inline-size: 100%; block-size: clamp(420px, 42vw, 580px); margin: 0; }
  .as-home-sculpture canvas, .as-home-sculpture .sculpture-fallback { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: contain; }
  .as-home-sculpture.is-rendered .sculpture-fallback { visibility: hidden; }
  .as-home-sculpture .sculpture-fallback { color: var(--as-accent); }
  .as-mono { font: 11px/1.5 var(--as-mono); letter-spacing: .065em; }
  .as-band { margin-block-start: 64px; padding-block-start: 24px; border-block-start: 1px solid var(--as-line); }
  .as-band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-block-end: 24px; }
  .as-band-head h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 400; letter-spacing: -.03em; line-height: 1.12; }
  .as-band-head a { font-family: var(--as-mono); font-size: 11px; letter-spacing: .065em; text-transform: uppercase; color: var(--as-accent-ink); text-decoration: none; }
  .as-band-lead { max-inline-size: 720px; margin-block: -6px 28px; }
  .as-app-cards.as-ai-apps { margin-block-start: 28px; }
  .as-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: as-step; }
  .as-steps li { counter-increment: as-step; padding-block-start: 18px; border-block-start: 1px solid var(--as-ink); }
  .as-steps li::before { content: counter(as-step, decimal-leading-zero); display: block; margin-block-end: 14px; font-family: var(--as-mono); font-size: 11px; color: var(--as-accent-ink); }
  .as-steps > li > .as-glyph { margin-block-end: 16px; }
  .as-steps h3 { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: -.02em; }
  .as-steps p { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--as-muted); }
  /* What one system changes: plain points without numbers, so they read as facts rather than steps. */
  .as-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; margin: 0; padding: 1px; list-style: none; background: var(--as-line); }
  .as-points li { padding: 24px; background: var(--as-paper); }
  .as-points h3 { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: -.02em; }
  .as-points p { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--as-muted); }
  /* The platform underneath, set apart so the page has one quiet turn before its close: on the ink in a light
     scheme, a raised card in a dark one. */
  .as-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 48px); align-items: end; margin-block-start: 64px; padding: clamp(24px, 3vw, 40px); border: 1px solid light-dark(transparent, var(--as-line)); background: light-dark(var(--as-ink), var(--hb-card)); color: light-dark(var(--as-paper), var(--as-ink)); }
  .as-feature .as-eyebrow { color: color-mix(in srgb, currentColor 70%, transparent); }
  .as-feature h2 { margin: 16px 0 0; font-size: clamp(28px, 3vw, 40px); font-weight: 400; letter-spacing: -.03em; line-height: 1.12; }
  .as-feature p { margin: 0; max-inline-size: 520px; font-size: 16px; line-height: 1.7; color: color-mix(in srgb, currentColor 82%, transparent); }
  .as-feature .as-feature-shapes { margin-block: 16px 28px; font-family: var(--as-mono); font-size: 11px; letter-spacing: .065em; text-transform: uppercase; color: color-mix(in srgb, currentColor 62%, transparent); }
  .as-feature + .as-cta { margin-block-start: 32px; }
  /* Every chapter closes the same way: what its scene means for the reader's business, then the way on. */
  .as-chapter-takeaway { display: grid; grid-template-columns: minmax(180px, .32fr) minmax(0, 1fr); gap: 14px clamp(24px, 4vw, 56px); align-items: baseline; margin-block-start: 48px; padding-block: 28px; border-block: 1px solid var(--as-line); }
  .as-chapter-takeaway p:last-child { margin: 0; max-inline-size: 780px; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; letter-spacing: -.015em; }

  /* The lattice, the site's signature: the Horuph mark's mesh of connected points. A faint field of it, in the accent and
     masked from media/brand/lattice.svg so it follows the theme, sits behind the quiet surfaces and fades toward the
     reading side. Every section line starts from one node of it. */
  :root { --as-lattice-fade: linear-gradient(to left, #000, transparent 80%); --as-lattice-corner: radial-gradient(circle at 100% 0, #000, transparent 70%); }
  [dir="rtl"] { --as-lattice-fade: linear-gradient(to right, #000, transparent 80%); --as-lattice-corner: radial-gradient(circle at 0 0, #000, transparent 70%); }
  .as-empty-state, .as-feature, .as-footer, .viewer-screen { position: relative; isolation: isolate; }
  .as-empty-state::after, .as-feature::after, .as-footer::before, .viewer-screen::before {
    content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; z-index: -1; inline-size: 60%; pointer-events: none;
    background: var(--as-accent); opacity: .3;
    mask: url("/media/brand/lattice.svg") 0 0 / 22px 38.105px repeat, var(--as-lattice-fade);
    mask-composite: intersect;
  }
  .as-feature::after { opacity: .22; }
  .as-footer::before { inline-size: min(560px, 60%); mask: url("/media/brand/lattice.svg") 0 0 / 22px 38.105px repeat, var(--as-lattice-corner); mask-composite: intersect; }
  .as-band, .as-how, .as-platform-rich .possibilities-demo, .as-contents { position: relative; }
  .as-band::before, .as-how::before, .as-platform-rich .possibilities-demo::before, .as-contents::before {
    content: ""; position: absolute; inset-block-start: -4px; inset-inline-start: 0; inline-size: 7px; block-size: 7px;
    border-radius: 50%; background: var(--as-accent); box-shadow: 0 0 0 4px var(--as-paper);
  }
  .as-band::after, .as-how::after, .as-platform-rich .possibilities-demo::after, .as-contents::after {
    content: ""; position: absolute; inset-block-start: -1px; inset-inline-start: 0; inline-size: 56px; block-size: 1px; background: var(--as-accent);
  }

  /* How it works' live worlds stand on the lattice ground. */
  .viewer-screen::before { inline-size: 100%; opacity: .2; mask: url("/media/brand/lattice.svg") 0 0 / 22px 38.105px repeat, radial-gradient(ellipse at 50% 50%, #000, transparent 75%); mask-composite: intersect; }

  /* The account link: the signed-in person's name, or the way to sign in. */
  .as-account { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; text-decoration: none; }
  .as-account svg { inline-size: 16px; block-size: 16px; color: var(--as-accent-ink); }
  .as-account:hover span { text-decoration: underline; text-underline-offset: 3px; }

  /* The side drawer of small screens: a popover that slides in from the inline end above a dimmed page. */
  .as-drawer { position: fixed; inset: 0 0 0 auto; z-index: 40; display: none; flex-direction: column; gap: 28px; inline-size: min(360px, 88vw); block-size: 100dvh; max-block-size: none; margin: 0; padding: 20px 24px 28px; overflow-y: auto; border: 0; border-inline-start: 1px solid var(--as-line); background: var(--as-paper); color: var(--as-ink); box-shadow: 0 0 60px rgb(0 0 0 / .25); }
  [dir="rtl"] .as-drawer { inset: 0 auto 0 0; }
  .as-drawer:popover-open { display: flex; }
  .as-drawer::backdrop { background: rgb(0 0 0 / .4); }
  @media (prefers-reduced-motion: no-preference) {
    .as-drawer { transition: translate .25s ease, display .25s allow-discrete, overlay .25s allow-discrete; translate: 100% 0; }
    [dir="rtl"] .as-drawer { translate: -100% 0; }
    .as-drawer:popover-open { translate: 0 0; }
    @starting-style { .as-drawer:popover-open { translate: 100% 0; } [dir="rtl"] .as-drawer:popover-open { translate: -100% 0; } }
  }
  .as-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .as-drawer-head .as-brand { font-size: 22px; }
  .as-drawer-main { display: grid; gap: 12px; }
  .as-drawer-nav { display: flex; flex-direction: column; }
  .as-drawer-nav a { display: flex; align-items: center; min-block-size: 52px; font-size: 18px; text-decoration: none; border-block-end: 1px solid var(--as-line); }
  .as-drawer-nav a[aria-current="page"] { color: var(--as-accent-ink); }
  .as-drawer-account-link { gap: 9px; font-weight: 500; }
  .as-drawer-account-link svg { inline-size: 18px; block-size: 18px; color: var(--as-accent-ink); }
  /* Session actions stay quiet, start-aligned and anchored to the bottom of the drawer. */
  .as-drawer-account { display: grid; justify-items: start; gap: 12px; margin-block-start: auto; padding-block-start: 16px; border-block-start: 1px solid var(--as-line); font-size: 14px; }
  .as-drawer-account a { display: inline-flex; align-items: center; gap: 8px; color: var(--as-ink); text-decoration: none; }
  .as-drawer-account a:hover { color: var(--as-accent-ink); }
  .as-drawer-account svg { inline-size: 16px; block-size: 16px; color: var(--as-accent-ink); }
  .as-drawer-identity { display: grid; gap: 3px; margin: 0; overflow-wrap: anywhere; }
  .as-drawer-identity span { font-size: 11px; color: var(--as-muted); }
  .as-drawer-identity strong { font-weight: 500; }
  .as-sign-out button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--as-muted); cursor: pointer; }
  .as-sign-out button:hover { color: var(--as-ink); }
  .as-sign-out svg { inline-size: 16px; block-size: 16px; }

  /* The footer: the brand and how to reach us, the site's map, the account and the legal pages. */
  .as-footer { padding-block: 56px 28px; border-block-start: 1px solid var(--as-line); background: var(--as-tint); font-size: 14px; color: var(--as-muted); }
  .as-footer p { margin: 0; }
  .as-footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
  .as-footer-brand { display: grid; align-content: start; gap: 14px; }
  .as-footer .as-brand { font-size: 22px; color: var(--as-ink); }
  .as-footer .as-footer-contact { display: grid; gap: 8px; margin-block-start: 6px; }
  .as-footer-contact a { display: inline-flex; align-items: center; gap: 8px; inline-size: fit-content; color: var(--as-ink); text-decoration: none; }
  .as-footer-contact svg { inline-size: 15px; block-size: 15px; color: var(--as-accent-ink); }
  .as-footer nav h2 { margin: 0 0 16px; }
  .as-footer nav ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .as-footer nav a, .as-footer-contact a:hover { color: var(--as-ink); text-decoration: none; }
  .as-footer nav a:hover { color: var(--as-accent-ink); }
  .as-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-block-start: 48px; padding-block-start: 20px; border-block-start: 1px solid var(--as-line); font-size: 12px; }

  /* Privacy and Terms: one readable column of numbered sections. */
  .as-legal-draft { max-inline-size: 760px; margin: 0 0 40px; padding: 14px 18px; border-inline-start: 2px solid var(--as-accent); background: var(--as-tint); font-size: 14px; color: var(--as-ink); }
  .as-legal { display: grid; gap: 32px; max-inline-size: 760px; counter-reset: as-legal; }
  .as-legal section { counter-increment: as-legal; }
  .as-legal h2 { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -.015em; }
  .as-legal h2::before { content: counter(as-legal, decimal-leading-zero); margin-inline-end: 12px; font-family: var(--as-mono); font-size: 11px; color: var(--as-accent-ink); }
  .as-legal p { margin: 10px 0 0; font-size: 16px; line-height: 1.75; color: var(--as-muted); }

  @media (max-width: 860px) {
    .as-header { min-block-size: 72px; gap: 14px; }
    .as-brand { font-size: 26px; }
    [data-site-menu] { display: grid; place-items: center; inline-size: 44px; block-size: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
    [data-site-menu] svg { inline-size: 20px; block-size: 20px; }
    .as-topbar, .as-header > .as-nav, .as-header > .as-account { display: none; }
    [data-site-menu] { margin-inline-start: auto; }
    .as-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .as-footer-brand { grid-column: 1 / -1; }
    .as-doc { grid-template-columns: 1fr; gap: 32px; }
    .as-toc { position: static; }
    .as-site:has(.as-hero) { --as-home-chrome: calc(var(--hb-toolbar-block-size) + 72px + 24px); }
    /* One column keeps the copy; the living mark sits behind it so the first screen still ends at the CTAs. */
    .as-hero { position: relative; grid-template-columns: 1fr; padding-block-start: 28px; }
    .as-hero-copy { position: relative; z-index: 1; }
    .as-home-sculpture {
      position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 0; inline-size: min(100%, 620px);
      block-size: min(52%, 420px); margin-inline: auto; pointer-events: none; opacity: .55;
    }
    .as-feature { grid-template-columns: 1fr; align-items: start; }
  }

  @media (max-width: 600px) {
    .as-hero { gap: 16px; padding-block: 24px 28px; }
    .as-hero h1 { font-size: clamp(40px, 10.5vw, 56px); }
    .as-home-sculpture { block-size: min(48%, 340px); }
    .as-contact { grid-template-columns: 1fr; }
    .as-chapter-takeaway { grid-template-columns: 1fr; }
  }

  /* Customer account: read-only product ownership and self-managed installation associations. */
  .as-customer { inline-size: 100%; }
  .as-customer-heading { padding-block: 4px 34px; }
  .as-customer-heading h1 { margin: 0; }
  .as-customer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; border-block-end: 1px solid var(--as-line); }
  .as-customer-nav a { display: inline-flex; align-items: center; min-block-size: 52px; margin-block-end: -1px; border-block-end: 2px solid transparent; font-size: 13px; text-decoration: none; }
  .as-customer-nav a:hover, .as-customer-nav a[aria-current] { border-block-end-color: var(--as-accent); }
  .as-customer-intro { max-inline-size: 780px; margin: 30px 0 32px; font-size: 16px; line-height: 1.75; color: var(--as-muted); }
  .as-customer-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 26px 46px; }
  .as-customer-summary a { display: grid; align-content: start; gap: 9px; min-block-size: 192px; padding: 26px; border: 1px solid var(--as-line); text-decoration: none; }
  .as-customer-summary a:hover { background: var(--as-tint); }
  .as-customer-summary a svg { inline-size: 24px; block-size: 24px; color: var(--as-accent-ink); }
  .as-customer-value { font: 44px/1.1 var(--as-sans); letter-spacing: -.035em; }
  .as-customer-summary strong { font-size: 17px; font-weight: 500; }
  .as-customer-summary small { font-size: 12px; color: var(--as-muted); }
  .as-customer-section { margin-block: 35px; }
  .as-customer-section h2, .as-customer-link-form h2 { margin: 0 0 18px; font-size: 26px; font-weight: 400; }
  .as-customer-list, .as-customer-products { list-style: none; padding: 0; margin: 0; }
  .as-customer-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-block-end: 1px solid var(--as-line); }
  .as-customer-list strong { font-size: 15px; font-weight: 500; }
  .as-customer-product, .as-customer-installation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 28px 0; border-block-end: 1px solid var(--as-line); }
  .as-customer-product > div, .as-customer-installation > div:first-child { flex: 1 1 320px; min-inline-size: 0; }
  .as-customer-product h2, .as-customer-installation h2 { margin: 12px 0; font-size: 24px; font-weight: 500; letter-spacing: -.015em; }
  .as-customer-product h2 a { text-decoration: none; }
  .as-customer-product h2 a:hover { color: var(--as-accent-ink); }
  .as-customer-product p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--as-muted); }
  .as-customer-product small, .as-customer-installation small { display: block; margin-block-start: 12px; color: var(--as-muted); font-size: 12px; }
  .as-customer-installation code { display: block; font: 12px/1.7 var(--as-mono); color: var(--as-muted); overflow-wrap: anywhere; }
  .as-customer-status { align-self: start; padding: 6px 10px; background: var(--as-tint); border: 1px solid var(--as-line); border-radius: 99px; font-size: 12px; white-space: nowrap; }
  .as-customer-status[data-status='expired'] { color: var(--as-muted); }
  .as-customer-controls { display: flex; align-items: start; flex-wrap: wrap; gap: 16px; }
  .as-customer-controls details { min-inline-size: 170px; }
  .as-customer-controls summary { cursor: pointer; font-size: 13px; }
  .as-customer-controls form { display: grid; gap: 9px; margin-block-start: 12px; }
  .as-customer-controls button { background: none; color: var(--as-ink); border: 0; padding: 0; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
  .as-customer-controls .as-customer-remove { display: flex; align-items: center; gap: 7px; }
  .as-customer-controls svg { inline-size: 14px; block-size: 14px; }
  .as-customer-link-form { margin-block-start: 50px; padding: 28px; background: var(--as-tint); border: 1px solid var(--as-line); }
  .as-customer-link-form > p { max-inline-size: 760px; font-size: 14px; line-height: 1.7; color: var(--as-muted); }
  .as-customer-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 15px; align-items: end; margin-block-start: 20px; }
  .as-customer-fields button { justify-self: start; }
  .as-customer-fields label, .as-customer-controls label { display: grid; gap: 8px; font-size: 12px; }
  .as-customer-fields input, .as-customer-controls input { min-inline-size: 0; inline-size: 100%; padding: 12px 10px; border: 1px solid var(--as-line); color: var(--as-ink); background: var(--as-paper); font: inherit; font-size: 14px; }
  .as-customer-footnote, .as-customer-annotation { font-size: 13px; color: var(--as-muted); line-height: 1.7; }
  .as-customer-empty { margin-block: 24px; padding: 42px 30px; border: 1px dashed var(--as-line); }
  .as-customer-empty h1, .as-customer-empty h2 { margin: 0 0 14px; font-size: 26px; font-weight: 400; }
  .as-customer-empty p { font-size: 14px; line-height: 1.7; color: var(--as-muted); }
  .as-customer-empty .button { display: inline-block; margin-block-start: 20px; }
  .as-customer-feedback:not([hidden]) { padding: 12px; border: 1px solid var(--as-line); }
  @media (max-width: 640px) {
    .as-customer-summary, .as-customer-fields { grid-template-columns: 1fr; }
    .as-customer-summary a { min-block-size: 130px; }
    .as-customer-link-form { padding: 20px 16px; }
    .as-customer-nav { gap: 2px 16px; }
  }

  /* Catalog marks (glyph in lib/site-catalog.ts): a Core icon in a rounded mark, in its area's hue (data-hue) or in the
     system's gold. The eight area hues match in lightness and chroma, a step darker on a light page. */
  .as-site {
    --as-hue-1: light-dark(oklch(.55 .12 10), oklch(.76 .1 10));
    --as-hue-2: light-dark(oklch(.53 .11 305), oklch(.75 .09 305));
    --as-hue-3: light-dark(oklch(.53 .11 250), oklch(.75 .09 250));
    --as-hue-4: light-dark(oklch(.55 .1 150), oklch(.77 .09 150));
    --as-hue-5: light-dark(oklch(.55 .09 195), oklch(.77 .08 195));
    --as-hue-6: light-dark(oklch(.56 .12 40), oklch(.77 .1 40));
    --as-hue-7: light-dark(oklch(.54 .12 340), oklch(.76 .1 340));
    --as-hue-8: light-dark(oklch(.54 .1 220), oklch(.76 .09 220));
  }
  .as-glyph {
    --glyph: var(--as-accent);
    display: inline-grid; place-items: center; flex: none; inline-size: 44px; block-size: 44px; border-radius: 12px;
    color: var(--glyph); background: color-mix(in oklch, var(--glyph) 15%, var(--as-paper));
    border: 1px solid color-mix(in oklch, var(--glyph) 30%, transparent);
  }
  .as-glyph .hb-icon { inline-size: 22px; block-size: 22px; }
  .as-glyph-sm { inline-size: 28px; block-size: 28px; border-radius: 8px; }
  .as-glyph-sm .hb-icon { inline-size: 15px; block-size: 15px; }
  .as-glyph-lg { inline-size: 64px; block-size: 64px; border-radius: 18px; }
  .as-glyph-lg .hb-icon { inline-size: 30px; block-size: 30px; stroke-width: 1.75; }
  .as-glyph[data-hue="1"] { --glyph: var(--as-hue-1); } .as-glyph[data-hue="2"] { --glyph: var(--as-hue-2); }
  .as-glyph[data-hue="3"] { --glyph: var(--as-hue-3); } .as-glyph[data-hue="4"] { --glyph: var(--as-hue-4); }
  .as-glyph[data-hue="5"] { --glyph: var(--as-hue-5); } .as-glyph[data-hue="6"] { --glyph: var(--as-hue-6); }
  .as-glyph[data-hue="7"] { --glyph: var(--as-hue-7); } .as-glyph[data-hue="8"] { --glyph: var(--as-hue-8); }
  /* A detail page's title carries its mark in front, centered on the heading's first line. */
  .as-intro-title { display: flex; align-items: center; gap: 22px; margin-block-start: 18px; }
  .as-intro-title h1 { margin: 0; min-inline-size: 0; }
  @media (max-width: 600px) {
    .as-intro-title { gap: 14px; }
    .as-intro-title .as-glyph-lg { inline-size: 48px; block-size: 48px; border-radius: 14px; }
    .as-intro-title .as-glyph-lg .hb-icon { inline-size: 24px; block-size: 24px; }
  }
  .as-cards a > .as-glyph { margin-block-end: 18px; }
  .as-steps .as-glyph-lg { margin-block-end: 18px; }

  /* App cards: the app's mark beside its name and tagline. */
  .as-app-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
  .as-app-card {
    display: flex; gap: 16px; align-items: flex-start; block-size: 100%; box-sizing: border-box; padding: 20px;
    border: 1px solid var(--as-line); border-radius: 16px; background: var(--as-tint); text-decoration: none;
    transition: border-color .2s, transform .2s, background .2s;
  }
  .as-app-card:hover { border-color: color-mix(in srgb, var(--as-accent) 55%, var(--as-line)); background: var(--as-paper); transform: translateY(-2px); }
  .as-app-card-text { min-inline-size: 0; }
  .as-app-card h3 { margin: 2px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
  .as-app-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--as-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* A row of links to the areas' own pages. */
  .as-areas ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .as-areas a {
    display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--as-line);
    border-radius: 999px; font-size: 14px; text-decoration: none; transition: border-color .2s, background .2s;
  }
  .as-areas a:hover { border-color: color-mix(in srgb, var(--as-accent) 55%, var(--as-line)); background: var(--as-tint); }
  .as-areas a span:last-child { font-family: var(--as-mono); font-size: 11px; color: var(--as-muted); }

  /* The products index: each product beside a window of the system it is. */
  .as-showcases { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
  .as-showcase {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); overflow: hidden;
    border: 1px solid var(--as-line); border-radius: 24px; background: var(--as-tint);
  }
  .as-showcase-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
  .as-showcase-copy .as-glyph { margin-block-end: 18px; }
  .as-showcase-copy .as-eyebrow { margin: 0; }
  .as-showcase h2 { margin: 10px 0 0; font-size: clamp(28px, 2.6vw, 36px); font-weight: 400; letter-spacing: -.03em; line-height: 1.12; }
  .as-showcase h2 a { text-decoration: none; }
  .as-showcase-lead { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--as-muted); }
  .as-showcase .as-actions { margin: auto 0 0; padding-block-start: 22px; }
  .as-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
  .as-chips a {
    display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; border: 1px solid var(--as-line); border-radius: 10px;
    background: var(--as-paper); font-size: 14px; text-decoration: none; transition: border-color .2s;
  }
  .as-chips a:hover { border-color: color-mix(in srgb, var(--as-accent) 60%, var(--as-line)); }
  .as-chips a span { font-family: var(--as-mono); font-size: 10.5px; color: var(--as-accent-ink); }
  .as-showcase-visual {
    position: relative; display: grid; place-items: center; padding: 28px 24px; overflow: hidden; text-decoration: none; color: inherit;
    background:
      radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--as-accent) 20%, transparent), transparent 60%),
      color-mix(in srgb, var(--as-ink) 3%, var(--as-paper));
    border-inline-start: 1px solid var(--as-line);
  }

  /* A product's window: a title bar, the areas it covers down the side and its apps inside. */
  .as-window {
    inline-size: 100%; max-inline-size: 560px; border: 1px solid color-mix(in srgb, var(--as-ink) 14%, transparent); border-radius: 14px;
    background: var(--as-paper); box-shadow: 0 18px 40px -24px rgb(0 0 0 / .35), 0 0 0 1px rgb(0 0 0 / .04);
  }
  .as-window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-block-end: 1px solid var(--as-line); }
  .as-window-bar i { inline-size: 9px; block-size: 9px; border-radius: 50%; background: color-mix(in srgb, var(--as-ink) 18%, transparent); }
  .as-window-bar span { margin-inline-start: 10px; font-family: var(--as-mono); font-size: 11px; color: var(--as-muted); }
  .as-window-body { display: grid; grid-template-columns: 158px minmax(0, 1fr); min-block-size: 250px; }
  .as-window-nav { margin: 0; padding: 12px 10px; list-style: none; border-inline-end: 1px solid var(--as-line); background: var(--as-tint); }
  .as-window-nav li { display: flex; align-items: center; gap: 8px; padding: 5px 4px; font-size: 11.5px; line-height: 1.25; }
  .as-window-nav li:first-child { border-radius: 8px; background: color-mix(in srgb, var(--as-ink) 6%, transparent); }
  .as-window-nav .as-glyph-sm { inline-size: 22px; block-size: 22px; border-radius: 6px; }
  .as-window-nav .as-glyph-sm .hb-icon { inline-size: 12px; block-size: 12px; }
  .as-window-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; margin: 0; padding: 14px; list-style: none; }
  .as-window-apps li {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border: 1px solid var(--as-line); border-radius: 10px;
    text-align: center; font-size: 11px; line-height: 1.25;
  }
  .as-window-apps .as-glyph { inline-size: 34px; block-size: 34px; border-radius: 10px; }
  .as-window-apps .as-glyph .hb-icon { inline-size: 17px; block-size: 17px; }
  .as-window-apps .as-window-more { justify-content: center; border-style: dashed; color: var(--as-accent-ink); font-family: var(--as-mono); }
  .as-window-app { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; }
  .as-window-app strong { font-size: 18px; font-weight: 500; }
  .as-window-app ul { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--as-muted); }
  .as-window-app li::before { content: "✓"; margin-inline-end: 8px; color: var(--as-accent-ink); }

  .as-compare th a { display: inline-flex; align-items: center; gap: 10px; }
  .as-compare th .as-glyph-sm { inline-size: 24px; block-size: 24px; border-radius: 7px; }
  .as-compare th .as-glyph-sm .hb-icon { inline-size: 13px; block-size: 13px; }

  @media (max-width: 860px) {
    .as-showcase { grid-template-columns: 1fr; }
    .as-showcase-copy { padding: 28px; }
    .as-showcase-visual { padding: 28px 20px; border-inline-start: 0; border-block-start: 1px solid var(--as-line); }
    .as-window-body { grid-template-columns: 1fr; }
    .as-window-nav { display: none; }
  }
  /* Instant search over an index (searchBox in lib/site-search.ts); hidden until site/search.js runs. */
  .as-search { max-inline-size: 640px; margin: 0 auto 22px; }
  .as-search-field {
    display: flex; align-items: center; gap: 12px; block-size: 54px; padding-inline: 16px; border: 1px solid var(--as-line);
    border-radius: 14px; background: var(--as-tint); cursor: text; transition: border-color .2s, box-shadow .2s;
  }
  .as-search-field:focus-within { border-color: color-mix(in srgb, var(--as-accent) 65%, var(--as-line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--as-accent) 14%, transparent); }
  .as-search-icon { display: inline-flex; flex: none; color: var(--as-muted); }
  .as-search-icon .hb-icon { inline-size: 20px; block-size: 20px; }
  .as-search-field input { flex: 1; min-inline-size: 0; border: 0; padding: 0; background: transparent; color: var(--as-ink); font: inherit; font-size: 16px; outline: none; }
  .as-search-field input::placeholder { color: var(--as-muted); opacity: .8; }
  .as-search-field kbd { flex: none; padding: 2px 8px; border: 1px solid var(--as-line); border-radius: 6px; font-family: var(--as-code); font-size: 11px; color: var(--as-muted); }
  .as-search-status { min-block-size: 1.5em; margin: 10px 0 0; font-family: var(--as-mono); font-size: 11px; letter-spacing: .04em; color: var(--as-accent-ink); }
  .as-search-empty { margin: 48px 0 0; padding: 40px 24px; border: 1px dashed var(--as-line); border-radius: 16px; font-size: 17px; text-align: center; color: var(--as-muted); }
  @media (max-width: 600px) { .as-search-field kbd { display: none; } }

  /* The docs index: one card per app guide, its mark, size and first chapters. */
  .as-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
  .as-guide { display: flex; flex-direction: column; block-size: 100%; box-sizing: border-box; padding: 22px; border: 1px solid var(--as-line); border-radius: 16px; background: var(--as-tint); }
  .as-guide-head { display: flex; align-items: center; gap: 14px; text-decoration: none; }
  .as-guide-head:hover h3 { color: var(--as-accent-ink); }
  .as-guide-head h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; transition: color .2s; }
  .as-guide-meta { display: block; margin-block-start: 3px; font-family: var(--as-mono); font-size: 11px; color: var(--as-muted); }
  .as-guide-pages { margin: 18px 0 0; padding: 0; list-style: none; border-block-start: 1px solid var(--as-line); }
  .as-guide-pages a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-block-end: 1px solid var(--as-line); font-size: 14px; color: var(--as-muted); text-decoration: none; transition: color .2s; }
  .as-guide-pages a:hover { color: var(--as-ink); }
  /* A guide's pages are pages of a book: a bare book mark, never the framed mark apps wear. */
  .as-guide-page-icon { display: inline-flex; flex: none; color: var(--as-accent-ink); }
  .as-guide-page-icon .hb-icon { inline-size: 15px; block-size: 15px; }
  .as-guide-more { margin-block-start: 12px; font-family: var(--as-mono); font-size: 11px; color: var(--as-accent-ink); text-decoration: none; }
  /* A hub's areas (areaTiles in lib/site-catalog.ts): one tile per area, its mark, what it covers and its first apps. */
  .as-area-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
  .as-area-tile {
    display: flex; flex-direction: column; align-items: stretch; text-align: start; block-size: 100%; box-sizing: border-box; padding: 26px; border: 1px solid var(--as-line);
    border-radius: 20px; background: var(--as-tint); text-decoration: none; transition: border-color .2s, transform .2s, background .2s;
  }
  .as-area-tile:hover { border-color: color-mix(in srgb, var(--as-accent) 55%, var(--as-line)); background: var(--as-paper); transform: translateY(-2px); }
  .as-area-tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .as-area-tile-count { font-family: var(--as-mono); font-size: 11px; letter-spacing: .04em; color: var(--as-muted); }
  .as-area-tile h2 { margin: 20px 0 0; font-size: 24px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
  .as-area-tile p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--as-muted); }
  .as-area-tile-apps { display: flex; align-items: center; gap: 6px; margin-block-start: auto; padding-block-start: 22px; }
  .as-area-tile-more { margin-inline-start: 4px; font-family: var(--as-mono); font-size: 11px; color: var(--as-muted); }

  /* Whole-catalog search results on a hub, in place of the hub's own content while a query is typed. */
  .as-hits { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
  .as-hit {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--as-line); border-radius: 14px;
    background: var(--as-tint); text-decoration: none; transition: border-color .2s, background .2s;
  }
  .as-hit:hover, .as-hit:focus-visible { border-color: color-mix(in srgb, var(--as-accent) 55%, var(--as-line)); background: var(--as-paper); }
  .as-hit-text { display: flex; flex-direction: column; flex: 1; min-inline-size: 0; }
  .as-hit-text strong { font-size: 16px; font-weight: 500; }
  .as-hit-text span { overflow: hidden; font-size: 13.5px; color: var(--as-muted); white-space: nowrap; text-overflow: ellipsis; }
  .as-hit-area { flex: none; font-family: var(--as-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--as-muted); }
  @media (max-width: 600px) { .as-hit-area { display: none; } }
  /* Home's lattice (latticeArt in lib/site-art.ts): "many apps, one system" on the footer's own grid. The fine
     lattice surfaces around the middle; app diamonds in their area hues send light along the grid into one gold
     diamond made of the same grid, and from it light runs on down into the page. The drawing spans the page's
     width; a phone sees its middle. Every color is a theme token. */
  .as-site:has(.as-art) { overflow-x: clip; }
  /* The lattice follows the hero as its continuation: no rule or node marks a new section above it. */
  .as-band.as-art-band { margin-block-start: 0; padding-block-start: 0; border-block-start: 0; }
  .as-band.as-art-band::before, .as-band.as-art-band::after { content: none; }
  .as-art {
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    inline-size: 100vw; margin-block: 1.25em 20px; margin-inline: calc(50% - 50vw);
    mask: linear-gradient(to bottom, transparent, #000 14%, #000 74%, transparent);
    view-timeline: --as-art block;
  }
  .as-art-svg { display: block; flex: none; inline-size: 100%; max-inline-size: none; block-size: auto; }
  .as-art-grid-lines { fill: none; stroke: var(--as-accent); stroke-width: .5; stroke-opacity: .5; }
  .as-art-grid-nodes { fill: none; stroke: var(--as-accent); stroke-width: 2.2; stroke-linecap: round; stroke-opacity: .85; }
  .as-art-grid-rest { opacity: .1; }
  .as-art-light { opacity: .75; }
  .as-art-center-light { opacity: .65; }
  .as-art-reach-in { stop-color: #fff; }
  .as-art-reach-out { stop-color: #000; }
  .as-art-warmth-in { stop-color: color-mix(in oklch, var(--as-accent) 16%, transparent); }
  .as-art-warmth-out { stop-color: transparent; }
  /* Every app's route, signal and diamond is in the accent. Without motion they all stand still and visible. */
  .as-art-route { fill: none; stroke: var(--as-accent); stroke-width: 1.2; stroke-linejoin: round; stroke-opacity: .35; }
  .as-art-flow { fill: none; stroke: color-mix(in oklch, var(--as-accent) 75%, #fff); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 8 140; stroke-dashoffset: 8; opacity: 0; }
  /* A cut gem: four facets lit from the upper left, split by a fine plus. */
  .as-art-f1 { fill: color-mix(in oklch, var(--as-accent) 62%, #fff); }
  .as-art-f2 { fill: var(--as-accent); }
  .as-art-f3 { fill: color-mix(in oklch, var(--as-accent) 80%, #000); }
  .as-art-f4 { fill: color-mix(in oklch, var(--as-accent) 52%, #000); }
  .as-art-plus { fill: none; stroke: color-mix(in oklch, var(--as-accent) 45%, #fff); stroke-width: .8; stroke-opacity: .7; }
  .as-art-halo { fill: var(--as-accent); opacity: .45; }
  /* The system's gem turns about its vertical axis wherever motion is welcome; elsewhere the still gem stands. */
  .as-art-spin { display: none; }
  /* site/art.js lets a click on the system send one more signal down. */
  .as-art-clickable { cursor: pointer; }
  .as-art-burst { opacity: 1; }
  .as-art-spin-face { fill: var(--as-accent); stroke: color-mix(in oklch, var(--as-accent) 55%, #fff); stroke-width: .6; stroke-opacity: .55; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .as-art-spin-shine { fill: #fff; }
  .as-art-spin-shade { fill: #000; }
  .as-art-spin-girdle { fill: none; stroke: color-mix(in oklch, var(--as-accent) 45%, #fff); stroke-width: .8; stroke-opacity: .6; vector-effect: non-scaling-stroke; }
  /* One app's turn: it lights up, its signal runs to the system with the trail drawing behind it, and the trail and
     the app fade out; most of the cycle it rests dark. Each app has its own cycle length, so they never fall in step. */
  @keyframes as-art-app { 0%, 100% { opacity: 0; } 6%, 40% { opacity: 1; } 52% { opacity: 0; } }
  @keyframes as-art-trail {
    0%, 8% { stroke-dasharray: 100 100; stroke-dashoffset: 100; opacity: 1; }
    34% { stroke-dashoffset: 0; opacity: 1; }
    52%, 100% { stroke-dasharray: 100 100; stroke-dashoffset: 0; opacity: 0; }
  }
  @keyframes as-art-flow {
    0%, 8% { stroke-dashoffset: 8; opacity: 0; }
    10%, 32% { opacity: 1; }
    36%, 100% { stroke-dashoffset: -100; opacity: 0; }
  }
  @keyframes as-art-halo { 0%, 100% { opacity: .28; } 50% { opacity: .7; } }
  @keyframes as-art-center-light { 0%, 100% { opacity: .45; } 50% { opacity: .85; } }
  @keyframes as-art-enter { from { opacity: .2; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
  @keyframes as-art-rise { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
  @media (prefers-reduced-motion: no-preference) {
    html:not([data-motion="paused"]) .as-art-apps .as-art-app { animation: as-art-app var(--cycle) ease-in-out var(--wait) infinite both; }
    html:not([data-motion="paused"]) .as-art-light { animation: as-art-app var(--cycle) ease-in-out var(--wait) infinite both; }
    html:not([data-motion="paused"]) .as-art-apps .as-art-route { animation: as-art-trail var(--cycle) cubic-bezier(.45, .05, .35, 1) var(--wait) infinite both; }
    html:not([data-motion="paused"]) .as-art-apps .as-art-flow { animation: as-art-flow var(--cycle) cubic-bezier(.45, .05, .35, 1) var(--wait) infinite both; }
    html:not([data-motion="paused"]) .as-art-down .as-art-route { animation: as-art-trail 7s cubic-bezier(.45, .05, .35, 1) infinite both; }
    html:not([data-motion="paused"]) .as-art-down .as-art-flow { animation: as-art-flow 7s cubic-bezier(.45, .05, .35, 1) infinite both; }
    /* The system sends twice per cycle of its trail. */
    html:not([data-motion="paused"]) .as-art-down .as-art-flow.as-art-n9 { animation-delay: -3.5s; }
    html:not([data-motion="paused"]) .as-art-halo { animation: as-art-halo 4.5s ease-in-out infinite; }
    html:not([data-motion="paused"]) .as-art-center-light { animation: as-art-center-light 4.5s ease-in-out infinite; }
    html:not([data-motion="paused"]) .as-art-spin { display: inline; }
    html:not([data-motion="paused"]) .as-art-still { display: none; }
    @supports (animation-timeline: view()) {
      html:not([data-motion="paused"]) .as-art-svg { animation: as-art-enter linear both; animation-timeline: --as-art; animation-range: entry 0% cover 40%; }
      html:not([data-motion="paused"]) .as-art-system { transform-box: fill-box; transform-origin: center; animation: as-art-rise linear both; animation-timeline: --as-art; animation-range: entry 20% cover 45%; }
    }
  }
  /* Cycle lengths and starting points of the eight apps, unrelated to each other on purpose. */
  .as-art-n0 { --cycle: 7.3s; --wait: -2.1s; } .as-art-n1 { --cycle: 9.7s; --wait: -5.3s; }
  .as-art-n2 { --cycle: 8.3s; --wait: -.7s; } .as-art-n3 { --cycle: 11.3s; --wait: -8.2s; }
  .as-art-n4 { --cycle: 10.1s; --wait: -3.9s; } .as-art-n5 { --cycle: 7.9s; --wait: -6.1s; }
  .as-art-n6 { --cycle: 12.7s; --wait: -1.4s; } .as-art-n7 { --cycle: 9.1s; --wait: -4.6s; }
  /* A phone sees the middle of the drawing, larger, so the system and its nearest apps stay readable. */
  @media (max-width: 760px) { .as-art-svg { inline-size: 190%; } }
  @media (prefers-reduced-motion: reduce) { .as-window, .as-app-card, .as-area-tile { transition: none; } }
}
