# Corporate Modernist theme — codeless .bnp manifest (WO-TF-014, Wave A).
# Synthesized into manifest.pb by `ninja plugin build` (no plugin.wasm).
#
# Identity: Swiss grid disciplined by Bauhaus geometric accents (circle /
# triangle / square), oversized tabular numerals, hairline dividers. Restrained
# B2B-consultancy authority. Light = gallery white + graphite ink; dark =
# graphite boardroom. Motion is CSS-first (no canvas, no JS showpiece).
theme_presets: presets.json
bundled_fonts: fonts.json
master_pages: master_pages.json

required_icon_packs:
  - lucide
  - simple-icons

system_templates:
  - key: corporate-modernist
    title: Corporate Modernist
    description: "Swiss-grid B2B theme with restrained typography, a single configurable accent, oversized numerals, and trust-signal chrome for consultancy and enterprise sites."

page_templates:
  - system: corporate-modernist
    key: default
    title: Default
    description: "Header + 12-col main + footer, capped at 1280px."
    slots: [header, main, footer]
  - system: corporate-modernist
    key: full-width
    title: Full width
    description: "Edge-to-edge sections; internal grid kept."
    slots: [header, main, footer]
  - system: corporate-modernist
    key: landing
    title: Landing
    description: "Hero band + main + closing CTA + footer."
    slots: [hero, main, cta, footer]
  - system: corporate-modernist
    key: article
    title: Article
    description: "Centered measure for long-form thought leadership."
    slots: [header, main, aside, footer]
  - system: corporate-modernist
    key: blog-index
    title: Blog index
    description: "Title band, featured lead, and a hairline-ruled post grid."
    slots: [header, featured, main, footer]
  - system: corporate-modernist
    key: contact
    title: Contact
    description: "Two-column contact: form on the grid, details in the aside."
    slots: [header, main, aside, footer]
  - system: corporate-modernist
    key: auth
    title: Auth
    description: "Centered card on a quiet ground for login and reset surfaces."
    slots: [main, footer]

template_overrides:
  # Chrome (4)
  - { template: corporate-modernist, block: navbar }
  - { template: corporate-modernist, block: footer }
  - { template: corporate-modernist, block: utility-bar }
  - { template: corporate-modernist, block: announcement-bar }
  # Marketing (12)
  - { template: corporate-modernist, block: hero }
  - { template: corporate-modernist, block: feature-grid }
  - { template: corporate-modernist, block: rich-section }
  - { template: corporate-modernist, block: stats }
  - { template: corporate-modernist, block: testimonial }
  - { template: corporate-modernist, block: logo-strip }
  - { template: corporate-modernist, block: pricing }
  - { template: corporate-modernist, block: team }
  - { template: corporate-modernist, block: faq }
  - { template: corporate-modernist, block: timeline }
  - { template: corporate-modernist, block: cta }
  - { template: corporate-modernist, block: countdown }
  # Primitives (11)
  - { template: corporate-modernist, block: heading }
  - { template: corporate-modernist, block: text }
  - { template: corporate-modernist, block: rich-text }
  - { template: corporate-modernist, block: image }
  - { template: corporate-modernist, block: quote }
  - { template: corporate-modernist, block: divider }
  - { template: corporate-modernist, block: button }
  - { template: corporate-modernist, block: card }
  - { template: corporate-modernist, block: gallery }
  - { template: corporate-modernist, block: video-embed }
  - { template: corporate-modernist, block: audio-embed }
  # Commerce / local (6)
  - { template: corporate-modernist, block: menu-list }
  - { template: corporate-modernist, block: event-list }
  - { template: corporate-modernist, block: contact-form }
  - { template: corporate-modernist, block: contact-card }
  - { template: corporate-modernist, block: hours-location }
  - { template: corporate-modernist, block: social-links }
  # Blog family (12)
  - { template: corporate-modernist, block: blog-hero }
  - { template: corporate-modernist, block: featured-posts }
  - { template: corporate-modernist, block: related-posts }
  - { template: corporate-modernist, block: popular-posts }
  - { template: corporate-modernist, block: category-list }
  - { template: corporate-modernist, block: post-hero }
  - { template: corporate-modernist, block: post-metadata }
  - { template: corporate-modernist, block: author-bio }
  - { template: corporate-modernist, block: author-bio-hero }
  - { template: corporate-modernist, block: newsletter-signup }
  - { template: corporate-modernist, block: breadcrumbs }
  - { template: corporate-modernist, block: sidebar-nav }
  # Auth surface (3)
  - { template: corporate-modernist, block: auth-form }
  - { template: corporate-modernist, block: password-reset-form }
  - { template: corporate-modernist, block: auth-status }
  # System (1)
  - { template: corporate-modernist, block: page-suggestions }

email_wrappers:
  - corporate-modernist

css:
  input_css_append: |
    /* ============================================================
       Corporate Modernist — appended component CSS.
       Semantic tokens only: hsl(var(--token)). No literal colors.
       Swiss grid + Bauhaus geometric marks + oversized numerals.
       ============================================================ */

    /* --- Layout primitives --- */
    .cm-content-well { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; box-sizing: border-box; }
    .cm-measure { max-width: 70ch; }
    .cm-swiss-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 1.5rem; }
    .cm-section { padding-top: 3rem; padding-bottom: 3rem; }
    @media (min-width: 768px) { .cm-section { padding-top: 3.5rem; padding-bottom: 3.5rem; } }
    .cm-section-tight { padding-top: 2rem; padding-bottom: 2rem; }
    .cm-hairline { border: 1px solid hsl(var(--border)); }
    .cm-hairline-top { border-top: 1px solid hsl(var(--border)); }
    .cm-hairline-bottom { border-bottom: 1px solid hsl(var(--border)); }
    .cm-hairline-y > * + * { border-top: 1px solid hsl(var(--border)); }
    .cm-accent-rule { border-top: 2px solid hsl(var(--accent)); }
    .cm-stack > * + * { margin-top: 1.5rem; }
    .cm-stack-sm > * + * { margin-top: 0.75rem; }

    /* --- Typography --- */
    .cm-display { font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-weight: 600; letter-spacing: -0.02em; color: hsl(var(--foreground)); margin: 0; }
    .cm-body { font-family: var(--font-body, "Inter", system-ui, sans-serif); }
    .cm-mono { font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-variant-numeric: tabular-nums; }
    .numeric-tabular { font-variant-numeric: tabular-nums; }
    .cm-heading { font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-weight: 600; letter-spacing: -0.02em; color: hsl(var(--foreground)); margin: 0; }
    .cm-heading-h2-accent { border-bottom: 2px solid hsl(var(--accent)); padding-bottom: 0.25rem; display: inline-block; }
    .cm-text { font-family: var(--font-body, "Inter", system-ui, sans-serif); font-size: 17px; line-height: 28px; color: hsl(var(--foreground)); font-variant-numeric: tabular-nums; }
    .cm-text a { color: hsl(var(--accent)); text-decoration: underline; text-underline-offset: 2px; }
    .cm-text strong { font-weight: 600; }
    .cm-lede { font-family: var(--font-body, "Inter", system-ui, sans-serif); font-size: 1.25rem; line-height: 1.6; color: hsl(var(--muted-foreground)); }
    .cm-eyebrow { font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: hsl(var(--accent)); margin: 0 0 1rem 0; }
    .cm-kicker { font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }

    /* --- Bauhaus geometric marks (circle / triangle / square) --- */
    .cm-mark { display: inline-block; width: 0.75rem; height: 0.75rem; flex: none; }
    .cm-mark-circle { border-radius: 9999px; background-color: hsl(var(--accent)); }
    .cm-mark-square { background-color: hsl(var(--accent)); }
    .cm-mark-triangle { width: 0; height: 0; border-left: 0.4375rem solid transparent; border-right: 0.4375rem solid transparent; border-bottom: 0.75rem solid hsl(var(--accent)); background: none; }
    .cm-mark-ring { border-radius: 9999px; background: none; border: 2px solid hsl(var(--accent)); }

    /* --- Numerals / metrics (oversized signature) --- */
    .cm-metric { font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; color: hsl(var(--accent)); letter-spacing: -0.02em; }
    .cm-stat-figure { font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; color: hsl(var(--foreground)); letter-spacing: -0.02em; }
    .cm-stat-label { font-family: var(--font-body, "Inter", system-ui, sans-serif); font-size: 0.8125rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.5rem; }
    .cm-numeral-index { font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 2rem; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; color: hsl(var(--accent)); }

    /* --- Buttons (squared, flat, no gradient/shadow) --- */
    .cm-btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); border: 1px solid hsl(var(--accent)); border-radius: 4px; font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-weight: 500; text-decoration: none; line-height: 1.4; box-shadow: none; background-image: none; transition: background-color 150ms ease; cursor: pointer; }
    .cm-btn-primary:hover { background-color: hsl(var(--accent) / 0.9); }
    .cm-btn-primary:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
    .cm-btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; background-color: transparent; color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); border-radius: 4px; font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-weight: 500; text-decoration: none; line-height: 1.4; box-shadow: none; background-image: none; transition: border-color 150ms ease, color 150ms ease; cursor: pointer; }
    .cm-btn-outline:hover { border-color: hsl(var(--foreground)); }
    .cm-btn-outline:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
    .cm-btn-ghost { display: inline-flex; align-items: center; gap: 0.375rem; color: hsl(var(--accent)); font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-weight: 500; text-decoration: none; line-height: 1.4; transition: gap 150ms ease; }
    .cm-btn-ghost:hover { gap: 0.625rem; }
    .cm-btn-sm { padding: 0.375rem 0.875rem; font-size: 0.875rem; }
    .cm-btn-lg { padding: 0.875rem 1.75rem; font-size: 1.0625rem; }
    .cm-btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
    .cm-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

    /* --- Surfaces / cards --- */
    .cm-card { background-color: hsl(var(--card)); color: hsl(var(--card-foreground)); border: 1px solid hsl(var(--border)); border-radius: 4px; padding: 1.5rem; box-shadow: none; }
    .cm-card-accent { border-top: 2px solid hsl(var(--accent)); }
    .cm-panel { background-color: hsl(var(--muted)); border-radius: 4px; padding: 1.5rem; }
    .cm-surface-muted { background-color: hsl(var(--muted)); }
    .cm-surface-card { background-color: hsl(var(--card)); }
    .cm-media-frame { display: block; width: 100%; overflow: hidden; background-color: hsl(var(--muted)); border: 1px solid hsl(var(--border)); }
    .cm-media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .cm-img-empty { display: block; width: 100%; aspect-ratio: 4 / 3; background-color: hsl(var(--muted)); border: 1px solid hsl(var(--border)); }

    /* --- Responsive grids --- */
    .cm-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
    @media (min-width: 640px) { .cm-grid-2, .cm-grid-3, .cm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (min-width: 1024px) { .cm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
    .cm-leadership-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
    @media (min-width: 640px) { .cm-leadership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (min-width: 1024px) { .cm-leadership-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
    @media (min-width: 1280px) { .cm-leadership-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

    /* --- Chrome: navbar --- */
    .cm-navbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; }
    .cm-brand { font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; color: hsl(var(--foreground)); text-decoration: none; display: inline-flex; align-items: center; gap: 0.625rem; }
    .cm-nav-links { display: none; align-items: center; gap: 2rem; }
    @media (min-width: 768px) { .cm-nav-links { display: flex; } }
    .cm-nav-link { font-family: var(--font-body, "Inter", system-ui, sans-serif); font-size: 0.9375rem; color: hsl(var(--foreground)); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; transition: border-color 150ms ease; }
    .cm-nav-link:hover { border-bottom-color: hsl(var(--accent)); }
    .cm-nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
    @media (min-width: 768px) { .cm-nav-toggle { display: none; } }
    .cm-nav-drawer { display: none; flex-direction: column; gap: 0.25rem; padding: 0.5rem 0 1rem; border-top: 1px solid hsl(var(--border)); width: 100%; }
    @media (min-width: 768px) { .cm-nav-drawer { display: none !important; } }
    .cm-nav-drawer a { padding: 0.625rem 0; font-family: var(--font-body, "Inter", system-ui, sans-serif); color: hsl(var(--foreground)); text-decoration: none; border-bottom: 1px solid hsl(var(--border)); }

    /* --- Chrome: utility bar + announcement bar --- */
    .cm-utility-bar { font-family: var(--font-body, "Inter", system-ui, sans-serif); font-size: 0.8125rem; padding: 0.5rem 0; }
    .cm-utility-bar--muted { background-color: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
    .cm-utility-bar--primary { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
    .cm-utility-bar--dark { background-color: hsl(var(--foreground)); color: hsl(var(--background)); }
    .cm-utility-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
    .cm-utility-group { display: flex; align-items: center; gap: 1.25rem; }
    .cm-utility-item { display: inline-flex; align-items: center; gap: 0.375rem; color: inherit; text-decoration: none; }
    .cm-announce { font-family: var(--font-body, "Inter", system-ui, sans-serif); font-size: 0.875rem; padding: 0.625rem 0; }
    .cm-announce--info { background-color: hsl(var(--muted)); color: hsl(var(--foreground)); }
    .cm-announce--promo { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
    .cm-announce--alert { background-color: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
    .cm-announce-row { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
    .cm-announce a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
    .cm-announce-close { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; line-height: 1; padding: 0 0.25rem; }

    /* --- Chrome: footer --- */
    .cm-footer { background-color: hsl(var(--background)); color: hsl(var(--foreground)); border-top: 2px solid hsl(var(--accent)); padding: 3.5rem 0 2.5rem; }
    .cm-footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
    @media (min-width: 640px) { .cm-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (min-width: 1024px) { .cm-footer-cols { grid-template-columns: 2fr repeat(3, 1fr); } }
    .cm-footer-head { font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: hsl(var(--muted-foreground)); margin: 0 0 0.875rem; }
    .cm-footer-link { display: block; font-size: 0.9375rem; color: hsl(var(--foreground)); text-decoration: none; padding: 0.25rem 0; }
    .cm-footer-link:hover { color: hsl(var(--accent)); }
    .cm-footer-legal { color: hsl(var(--muted-foreground)); font-size: 0.8125rem; border-top: 1px solid hsl(var(--border)); padding-top: 1.5rem; margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

    /* --- Marketing: hero --- */
    .cm-hero { padding: 5rem 0; }
    .cm-hero-headline { font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(2.5rem, 6vw, 4.5rem); color: hsl(var(--foreground)); margin: 0; }
    .cm-hero-sub { font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.5; color: hsl(var(--muted-foreground)); margin: 1.25rem 0 0; }
    .cm-hero-split { display: grid; gap: 3rem; grid-template-columns: repeat(1, minmax(0, 1fr)); align-items: center; }
    @media (min-width: 1024px) { .cm-hero-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

    /* --- Marketing: logo strip --- */
    .cm-logo { filter: grayscale(1); opacity: 0.65; transition: filter 200ms ease, opacity 200ms ease; }
    .cm-logo:hover { filter: grayscale(0); opacity: 1; }
    .cm-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem; }

    /* --- Marketing: feature grid --- */
    .cm-feature { border-top: 2px solid hsl(var(--accent)); padding-top: 1.25rem; }
    .cm-feature-title { font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-weight: 600; font-size: 1.125rem; color: hsl(var(--foreground)); margin: 0.75rem 0 0.5rem; }

    /* --- Marketing: pull quote / testimonial --- */
    .cm-pull-quote { border-top: 2px solid hsl(var(--accent)); padding-top: 1.25rem; font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-size: 1.5rem; line-height: 1.4; font-weight: 500; color: hsl(var(--foreground)); }
    .cm-quote-block { font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-size: 1.375rem; line-height: 1.45; font-weight: 500; color: hsl(var(--foreground)); }
    .cm-quote-cite { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.75rem; }
    .cm-avatar { width: 2.75rem; height: 2.75rem; border-radius: 9999px; object-fit: cover; background-color: hsl(var(--muted)); }

    /* --- Marketing: pricing --- */
    .cm-price { font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 2.5rem; font-weight: 500; font-variant-numeric: tabular-nums; color: hsl(var(--foreground)); letter-spacing: -0.02em; }
    .cm-price-period { font-family: var(--font-body, "Inter", system-ui, sans-serif); font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }
    .cm-price-tier { display: flex; flex-direction: column; }
    .cm-price-tier--featured { border-top: 4px solid hsl(var(--accent)); }
    .cm-badge { display: inline-block; font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.5rem; background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); border-radius: 3px; }
    .cm-check { color: hsl(var(--accent)); flex: none; }

    /* --- Marketing: faq --- */
    .cm-faq-item { border-top: 1px solid hsl(var(--border)); }
    .cm-faq-item summary { cursor: pointer; list-style: none; padding: 1.25rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-weight: 600; color: hsl(var(--foreground)); }
    .cm-faq-item summary::-webkit-details-marker { display: none; }
    .cm-faq-item[open] summary .cm-faq-chevron { transform: rotate(180deg); }
    .cm-faq-chevron { transition: transform 150ms ease; color: hsl(var(--accent)); }
    .cm-faq-answer { padding: 0 0 1.25rem; color: hsl(var(--muted-foreground)); font-size: 1rem; line-height: 1.65; }

    /* --- Marketing: timeline --- */
    .cm-timeline-step { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding-bottom: 2rem; }
    .cm-timeline-rail { position: relative; display: flex; flex-direction: column; align-items: center; }
    .cm-timeline-node { width: 2.5rem; height: 2.5rem; border: 2px solid hsl(var(--accent)); border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-weight: 500; color: hsl(var(--accent)); flex: none; font-variant-numeric: tabular-nums; }
    .cm-timeline-line { flex: 1 1 auto; width: 1px; background-color: hsl(var(--border)); margin-top: 0.5rem; }

    /* --- Marketing: cta strip --- */
    .cm-cta-strip { padding: 3.5rem 0; }
    .cm-cta-strip--band { background-color: hsl(var(--foreground)); color: hsl(var(--background)); }
    .cm-cta-strip--band .cm-btn-primary { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); border-color: hsl(var(--accent)); }
    .cm-cta-strip--card { background-color: hsl(var(--muted)); }
    .cm-cta-headline { font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; margin: 0; }

    /* --- Marketing: countdown --- */
    .cm-count-unit { display: flex; flex-direction: column; align-items: center; }
    .cm-count-figure { font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; font-variant-numeric: tabular-nums; color: hsl(var(--foreground)); line-height: 1; }
    .cm-count-box { border: 1px solid hsl(var(--border)); padding: 1rem 1.25rem; border-radius: 4px; min-width: 4.5rem; }

    /* --- Primitives: quote / divider / gallery / media --- */
    .cm-divider-line { border: 0; border-top: 1px solid hsl(var(--border)); }
    .cm-divider-thick { border-top-width: 2px; border-top-color: hsl(var(--accent)); }
    .cm-divider-ornament { display: flex; align-items: center; justify-content: center; gap: 0.75rem; color: hsl(var(--muted-foreground)); }
    .cm-gallery-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    @media (min-width: 768px) { .cm-gallery-grid.cm-gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cm-gallery-grid.cm-gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
    .cm-video-frame { position: relative; display: block; width: 100%; background-color: hsl(var(--muted)); border: 1px solid hsl(var(--border)); overflow: hidden; }
    .cm-video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: hsl(var(--background)); background: none; border: 0; cursor: pointer; }
    .cm-video-play-badge { width: 4rem; height: 4rem; border-radius: 9999px; background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); display: flex; align-items: center; justify-content: center; }

    /* --- Commerce / local --- */
    .cm-menu-item { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid hsl(var(--border)); }
    .cm-menu-price { font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-variant-numeric: tabular-nums; color: hsl(var(--foreground)); }
    .cm-channel { display: flex; align-items: flex-start; gap: 0.75rem; }
    .cm-channel-mark { width: 2.5rem; height: 2.5rem; border: 1px solid hsl(var(--border)); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: hsl(var(--accent)); flex: none; }
    .cm-hours-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.375rem 0; border-bottom: 1px solid hsl(var(--border)); }
    .cm-social-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
    .cm-social-link { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.75rem; border: 1px solid hsl(var(--border)); border-radius: 4px; color: hsl(var(--foreground)); text-decoration: none; font-size: 0.875rem; transition: border-color 150ms ease; }
    .cm-social-link:hover { border-color: hsl(var(--accent)); color: hsl(var(--accent)); }

    /* --- Forms --- */
    .cm-form { display: grid; gap: 1.25rem; }
    .cm-form-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
    @media (min-width: 640px) { .cm-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    .cm-field { display: flex; flex-direction: column; gap: 0.375rem; }
    .cm-field--full { grid-column: 1 / -1; }
    .cm-label { font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-size: 0.8125rem; font-weight: 600; color: hsl(var(--foreground)); text-transform: uppercase; letter-spacing: 0.04em; }
    .cm-input { width: 100%; box-sizing: border-box; padding: 0.625rem 0.75rem; background-color: hsl(var(--background)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--input)); border-radius: 4px; font-family: var(--font-body, "Inter", system-ui, sans-serif); font-size: 1rem; }
    .cm-input:focus { outline: 2px solid hsl(var(--ring)); outline-offset: 1px; border-color: hsl(var(--ring)); }
    .cm-form-note { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
    .cm-alert-ok { border-left: 3px solid hsl(var(--accent)); background-color: hsl(var(--muted)); padding: 1rem 1.25rem; color: hsl(var(--foreground)); }
    .cm-alert-err { border-left: 3px solid hsl(var(--destructive)); background-color: hsl(var(--muted)); padding: 1rem 1.25rem; color: hsl(var(--foreground)); }

    /* --- Blog family --- */
    .cm-post-card { display: flex; flex-direction: column; gap: 0.75rem; }
    .cm-post-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background-color: hsl(var(--muted)); border: 1px solid hsl(var(--border)); }
    .cm-post-title { font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; color: hsl(var(--foreground)); text-decoration: none; }
    .cm-post-title:hover { color: hsl(var(--accent)); }
    .cm-post-meta { font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
    .cm-post-excerpt { color: hsl(var(--muted-foreground)); font-size: 0.9375rem; line-height: 1.6; }
    .cm-post-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
    @media (min-width: 640px) { .cm-post-grid-2, .cm-post-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (min-width: 1024px) { .cm-post-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
    .cm-tag { display: inline-block; font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 0.75rem; letter-spacing: 0.04em; padding: 0.1875rem 0.5rem; border: 1px solid hsl(var(--border)); border-radius: 3px; color: hsl(var(--muted-foreground)); text-decoration: none; }
    .cm-tag:hover { border-color: hsl(var(--accent)); color: hsl(var(--accent)); }
    .cm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
    .cm-crumbs a { color: hsl(var(--muted-foreground)); text-decoration: none; }
    .cm-crumbs a:hover { color: hsl(var(--accent)); }
    .cm-crumb-sep { color: hsl(var(--border)); }
    .cm-sidebar-link { display: block; padding: 0.5rem 0.75rem; border-left: 2px solid transparent; color: hsl(var(--foreground)); text-decoration: none; font-size: 0.9375rem; }
    .cm-sidebar-link:hover, .cm-sidebar-link[aria-current="page"] { border-left-color: hsl(var(--accent)); color: hsl(var(--accent)); }
    .cm-rank { font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 1.25rem; font-weight: 500; color: hsl(var(--accent)); font-variant-numeric: tabular-nums; width: 2rem; flex: none; }

    /* --- Motion (CSS-first, reduced-motion honored) --- */
    .cm-reveal { opacity: 0; transform: translateY(0.5rem); animation: cm-reveal 500ms ease forwards; }
    @keyframes cm-reveal { to { opacity: 1; transform: none; } }
    @media (prefers-reduced-motion: reduce) {
      .cm-reveal { animation: none; opacity: 1; transform: none; }
      .cm-btn-ghost, .cm-logo, .cm-nav-link, .cm-faq-chevron { transition: none; }
    }
