/* Thompson Axiomata LLC — Brent Alexander Thompson */
/* Thompson Axiomata site styles: base, layout, components, features. Tokens live in tokens.css. */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--font-sans); font-size: var(--step-0); line-height: 1.65; color: var(--text); background: var(--bg); }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 var(--space-2); font-weight: 560; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: var(--step-3); line-height: 1.08; }
h2 { font-size: var(--step-2); line-height: 1.18; }
h3 { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.015em; }
h4 { font-size: 1rem; letter-spacing: 0; font-weight: 650; }
p { margin: 0 0 var(--space-2); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--space-2); padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
code, pre { font-family: var(--font-mono); font-size: 0.9em; }
pre { background: var(--surface-2); border-radius: var(--radius-control); padding: var(--space-2); overflow-x: auto; }
main { overflow: clip; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-4) 0; }

/* Utilities */
.wrap { width: min(100% - 3rem, var(--max)); margin-inline: auto; }
.prose { max-width: var(--prose); }
.stack > * + * { margin-top: var(--space-2); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: var(--prose); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.mt-4 { margin-top: var(--space-4); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: var(--space-1); z-index: 200; }
.eyebrow { color: var(--accent); font-size: 0.85rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 1rem; }
.tag { display: inline-flex; align-items: center; width: fit-content; background: var(--accent-soft); color: var(--accent-hover); border-radius: 8px; padding: 0.2rem 0.6rem; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.6rem; }

/* Header and navigation */
.banner { background: var(--surface-2); color: var(--muted); text-align: center; font-size: 0.85rem; padding: 0.45rem 1.25rem; }
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding-block: 0.85rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 650; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav > a, .nav-item > a { color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 0.55rem 0.8rem; border-radius: 999px; }
.nav > a:hover, .nav-item > a:hover, .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-hover); }
.nav > .btn { margin-left: 0.5rem; color: var(--on-accent); }
.nav > .btn:hover { color: var(--on-accent); background: var(--accent-hover); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-sub-toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -0.45rem; border: 0; background: transparent; color: var(--muted); border-radius: 999px; cursor: pointer; }
.nav-sub-toggle:hover { background: var(--accent-soft); color: var(--accent-hover); }
.nav-sub-toggle svg { width: 14px; height: 14px; transition: transform 0.15s; }
.nav-item.is-open .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-menu { display: none; position: absolute; top: 100%; left: -1rem; padding-top: 0.6rem; z-index: 120; }
.nav-menu-inner { display: grid; grid-template-columns: repeat(3, minmax(12rem, 1fr)); gap: 1.5rem; width: min(46rem, 92vw); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 40px #19242d1f; padding: 1.4rem 1.5rem; }
.nav-group h3, .footer-group h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 650; margin: 0 0 0.6rem; }
.nav-group ul, .footer-group ul { list-style: none; margin: 0; padding: 0; }
.nav-group li + li, .footer-group li + li { margin-top: 0.15rem; }
.nav-group a { display: block; color: var(--text); text-decoration: none; padding: 0.3rem 0; font-size: 0.93rem; }
.nav-group a:hover { color: var(--accent); }
.nav-group a span { display: block; color: var(--muted); font-size: 0.8rem; }
.nav-item.is-open .nav-menu { display: block; }
@media (hover: hover) and (min-width: 861px) { .nav-item:hover .nav-menu { display: block; } }
.nav-toggle { display: none; align-items: center; gap: 0.45rem; border: 1px solid var(--control-border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 0.45rem 0.9rem; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; min-height: 44px; }
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .js-nav .nav-toggle { display: inline-flex; }
  .js-nav .nav { display: none; }
  .js-nav.is-open .nav { display: flex; }
  .site-header > .wrap { flex-wrap: wrap; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0.15rem; padding: 0.5rem 0 1rem; max-height: calc(100dvh - 5rem); overflow-y: auto; }
  .nav > a, .nav-item > a { padding: 0.7rem 0.8rem; font-size: 1rem; }
  .nav-item { flex-wrap: wrap; }
  .nav-sub-toggle { display: none; }
  .nav-menu { display: block; position: static; padding: 0 0 0.5rem 0.8rem; width: 100%; }
  .nav-menu-inner { grid-template-columns: 1fr; gap: 0.8rem; width: 100%; border: 0; box-shadow: none; padding: 0.3rem 0 0; background: transparent; }
  .nav-group a span { display: none; }
  .nav > .btn { margin: 0.6rem 0 0; }
}

/* Sections */
.section { padding-block: var(--space-5); }
.section--alt { background: var(--surface-2); }
.section--tight { padding-block: var(--space-4); }
.section-head { max-width: var(--prose); margin-bottom: var(--space-3); }
.section-head p:last-child { margin-bottom: 0; }
.hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(2rem, 1.5rem + 3vw, 4rem); }
.hero h1 { max-width: 22ch; }
.hero .lead { margin-top: var(--space-2); }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.byline { font-size: 0.9rem; color: var(--muted); }

/* Grids and cards */
.grid { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); padding: clamp(1.3rem, 1rem + 1vw, 1.9rem); transition: box-shadow 0.15s; }
.card:hover { box-shadow: 0 6px 22px #19242d12; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { color: var(--muted); padding-left: 1.1rem; }
.card .card-link { margin-top: auto; padding-top: 0.75rem; font-weight: 600; }
.card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--accent { background: var(--accent-soft); }
.card--outline { background: transparent; border: 1px solid var(--border); }
.price { font-size: var(--step-1); font-weight: 650; color: var(--text); margin-bottom: 0.4rem; }
.card-list { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.card-list li { margin: 0; }
.card-list a { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 500; }
.card-list li:first-child a { border-top: 0; }
.card-list a:hover { color: var(--accent); }
.card-list a span { color: var(--muted); font-weight: 400; white-space: nowrap; }

/* Facts row (service heroes) */
.facts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.facts li { margin: 0; background: var(--surface); border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.92rem; color: var(--muted); }
.facts strong { color: var(--text); font-weight: 650; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 46px; padding: 0.7rem 1.35rem; border: 1px solid var(--accent); border-radius: 999px; font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--control-border); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn--small { min-height: 40px; padding: 0.5rem 1.05rem; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-3); }

/* Home */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(2rem, 4vw, 5rem); }
.hero-copy { min-width: 0; }
.hero-study { background: var(--accent-soft); border-radius: 24px; padding: 1.6rem; }
.study-caption { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-bottom: 0.9rem; border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); }
.study-caption p { margin: 0; font-weight: 600; font-size: 0.9rem; }
.study-caption span { font-size: 0.85rem; color: var(--muted); }
.study-graph { color: var(--accent); width: 100%; margin-block: 0.5rem; }
.study-graph text { font-family: var(--font-sans); fill: var(--text); font-size: 15px; }
.study-graph .graph-node { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.study-graph .graph-core { fill: var(--accent); }
.study-graph .core-label { fill: var(--on-accent); font-weight: 600; }
.study-steps { display: grid; gap: 0.7rem; }
.study-step { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.7rem; border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); padding-top: 0.7rem; font-size: 0.875rem; }
.study-step strong { color: var(--accent); }
.study-step span { color: var(--muted); }
.strip { padding-block: 0.6rem 0; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: center; color: var(--muted); font-size: 0.875rem; }
.strip li { margin: 0; }
@media (max-width: 860px) { .home-hero { grid-template-columns: 1fr; } .hero-study { max-width: 34rem; } }

/* Prose blocks, tables, figures */
.table-wrap { overflow-x: auto; border-radius: var(--radius-control); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface-2); font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
.compare th:first-child { width: 11rem; }
.figure { margin: 0; background: var(--surface); border-radius: var(--radius); padding: clamp(1rem, 2vw, 1.6rem); }
.figure img { margin-inline: auto; }
.figure figcaption, figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.8rem; }
.callout { border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-control) var(--radius-control) 0; padding: 0.9rem 1.1rem; font-size: 0.95rem; }
.callout p:last-child { margin: 0; }
.steps { padding-left: 1.3rem; }
.steps li + li { margin-top: 0.6rem; }
.stepper { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.stepper > li { counter-increment: step; position: relative; margin: 0; background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.5rem 1.3rem 4.4rem; }
.stepper > li::before { content: counter(step); position: absolute; left: 1.4rem; top: 1.25rem; width: 2rem; height: 2rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 650; font-size: 0.95rem; }
.stepper h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.stepper p { margin: 0; color: var(--muted); }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.links li { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.timeline li { margin: 0; border-left: 3px solid var(--accent); padding-left: 1rem; }
.timeline span { display: block; color: var(--muted); font-size: 0.92rem; }
details { background: var(--surface); border-radius: 16px; padding: 1.1rem 1.3rem; }
details + details { margin-top: 0.6rem; }
summary { cursor: pointer; font-weight: 600; min-height: 32px; }
details[open] summary { margin-bottom: 0.5rem; }
details p:last-child { margin-bottom: 0; }
.related { border-top: 1px solid var(--border); margin-top: var(--space-4); padding-top: var(--space-3); }
.related h2 { font-size: var(--step-1); }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.related li { margin: 0; }
.related a { display: inline-block; background: var(--surface); border-radius: 999px; padding: 0.4rem 0.9rem; text-decoration: none; font-size: 0.92rem; }
.related a:hover { background: var(--accent-soft); }
.checklist ul { list-style: none; padding: 0; }
.checklist li { padding: 0.3rem 0; margin: 0; }
.checklist label { display: flex; gap: 0.65rem; align-items: flex-start; cursor: pointer; }
.checklist input { margin-top: 0.35rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: none; }
.checklist + .checklist { margin-top: var(--space-3); }
.triage-result { border-left: 3px solid var(--accent); }
.triage-result[hidden] { display: none; }

/* Forms */
.form { display: grid; gap: var(--space-2); width: 100%; max-width: 40rem; background: var(--surface); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2.2rem); }
.form label { display: grid; gap: 0.35rem; font-weight: 500; }
.form input, .form select, .form textarea { font: inherit; width: 100%; min-width: 0; min-height: 48px; padding: 0.75rem 0.85rem; border: 1px solid var(--control-border); border-radius: var(--radius-control); background: var(--bg); color: var(--text); }
.form textarea { min-height: 7.5rem; resize: vertical; }
.form select { appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%234c5d69' stroke-width='1.7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.form button[type=submit] { width: 100%; }
.form .optional { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.hp { display: none; }
.form-status { min-height: 1.5em; font-size: var(--step--1); margin: 0; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--warn); }
.contact-grid > :first-child { align-self: start; }
@media (min-width: 821px) {
  .contact-grid > :first-child { position: sticky; top: 5.5rem; }
}
.next-steps { list-style: none; counter-reset: n; padding: 0; margin: var(--space-3) 0; display: grid; gap: 0.8rem; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 2rem 1fr; gap: 0.6rem; margin: 0; color: var(--muted); }
.next-steps li::before { content: counter(n); width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); display: grid; place-items: center; font-weight: 650; font-size: 0.85rem; }
.next-steps strong { color: var(--text); font-weight: 600; }

/* Footer */
.site-footer { background: var(--surface-2); padding-block: var(--space-4) calc(var(--space-3) + 4rem); font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); }
.footer-brand p { margin: 0.6rem 0 0; max-width: 18rem; }
.footer-group a { color: var(--text); text-decoration: none; }
.footer-group a:hover { color: var(--accent); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--border); }
.footer-base p { margin: 0; }
.footer-base a { color: var(--muted); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* Assistant */
#intake-guide { position: fixed; z-index: 90; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); color: var(--text); font: 1rem/1.45 var(--font-sans); }
#intake-guide [hidden] { display: none; }
#intake-guide button, #intake-guide input { font: inherit; }
#intake-guide button { cursor: pointer; }
#intake-guide .ig-launch, #intake-guide .ig-form button { border: 0; background: var(--accent); color: var(--on-accent); font-weight: 650; padding: 0.6rem 1rem; border-radius: 999px; min-height: 44px; }
#intake-guide .ig-launch { padding-inline: 1.3rem; box-shadow: 0 3px 14px #102c352b; }
@media (max-width: 640px) {
  #intake-guide { right: max(0.75rem, env(safe-area-inset-right)); bottom: max(0.75rem, env(safe-area-inset-bottom)); }
  #intake-guide .ig-launch { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.92rem; }
}
#ig-panel { display: flex; flex-direction: column; width: min(24rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); background: var(--surface); border-radius: 24px; box-shadow: 0 8px 32px #19242d26; overflow: hidden; }
#ig-panel header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0.5rem 0.3rem 1rem; border-bottom: 1px solid var(--border); }
#ig-panel .ig-close { font-size: 1.4rem; background: transparent; color: var(--text); border: 0; width: 44px; height: 44px; }
#ig-panel .ig-body { overflow-y: auto; padding: 1rem; overscroll-behavior: contain; }
#ig-panel p { margin: 0 0 0.8rem; }
#ig-panel .ig-answer a { display: block; margin: 0.35rem 0; color: var(--accent); }
#ig-panel .ig-choices { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.75rem 0 1rem; }
#ig-panel .ig-choices button { text-align: left; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 14px; color: var(--text); background: var(--surface-2); font-size: 0.9rem; }
#ig-panel .ig-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
#ig-panel .ig-form div { display: flex; gap: 0.4rem; }
#ig-panel input { min-width: 0; flex: 1; color: var(--text); background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--radius-control); padding: 0.5rem 0.7rem; }

/* Newsletter invitation */
#newsletter-invitation { position: fixed; bottom: max(1rem, env(safe-area-inset-bottom)); left: max(1rem, env(safe-area-inset-left)); z-index: 80; width: min(22rem, calc(100% - 2rem)); max-height: 65dvh; overflow: auto; padding: 1rem; border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 6px 24px #19242d26; }
#newsletter-invitation h2 { margin: 0; font-size: 1.15rem; padding-right: 2.8rem; min-height: 2.5rem; display: flex; align-items: center; }
#newsletter-invitation p { margin: 0.4rem 0 0.65rem; }
#newsletter-invitation a, #newsletter-invitation button { display: inline-block; margin-right: 0.5rem; padding: 0.35rem 0; }
#newsletter-invitation label { display: block; font-weight: 600; }
#newsletter-invitation input[type=email] { display: block; width: 100%; margin: 0.25rem 0; padding: 0.5rem 0.6rem; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--control-border); border-radius: var(--radius-control); }
#newsletter-invitation button { border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
#newsletter-invitation button[type=submit] { padding: 0.55rem 0.9rem; margin: 0.25rem 0; color: var(--on-accent); background: var(--accent); border-radius: 999px; font-weight: 650; }
#newsletter-invitation .newsletter-close { position: absolute; top: 0.5rem; right: 0.5rem; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 50%; color: var(--text); font-size: 1.8rem; line-height: 1; display: grid; place-items: center; }
#newsletter-invitation .newsletter-close:hover { background: var(--surface-2); }
@media (max-width: 42rem) { #newsletter-invitation { bottom: 5rem; } }

/* Optional inquiry graph */
.request-graph-option { min-width: 0; border: 0; padding: 0; background: transparent; }
.request-graph-option > summary { list-style: none; font-size: 0.875rem; color: var(--muted); font-weight: 400; }
.request-graph-option > summary::marker, .request-graph-option > summary::-webkit-details-marker { display: none; content: ""; }
.request-graph-toggle { display: inline-flex; align-items: center; gap: 0.45rem; font: inherit; cursor: pointer; }
.request-graph-toggle input[type="checkbox"] { width: 1rem; height: 1rem; min-height: 1rem; margin: 0; padding: 0; accent-color: var(--accent); }
.request-graph { position: relative; margin-top: 1.5rem; }
.request-graph[hidden] { display: none; }
.request-graph__canvas { display: block; width: 100%; height: auto; overflow: hidden; }
.request-graph__canvas line { stroke: var(--muted); stroke-opacity: 0.35; stroke-width: 1; }
.request-graph__canvas marker path { fill: var(--muted); }
.request-graph__canvas > g > text { fill: var(--muted); font-size: 12px; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.request-graph__node { cursor: grab; touch-action: none; outline: none; }
.request-graph__node:active { cursor: grabbing; }
.request-graph__node circle { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.request-graph__node.is-request circle { fill: var(--accent); }
.request-graph__node.is-selected circle, .request-graph__node:focus circle { stroke-width: 3; }
.request-graph__node text { fill: var(--text); font-size: 14px; pointer-events: none; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.request-graph__tools g { cursor: pointer; }
.request-graph__tools circle { fill: var(--bg); stroke: var(--accent); }
.request-graph__tools text { fill: var(--accent); font-size: 17px; pointer-events: none; }
.request-graph__tools g:focus circle { stroke-width: 3; }
.request-graph__hint, .request-graph__status { color: var(--muted); font-size: 0.875rem; margin: 0.25rem 0; overflow-wrap: anywhere; }
.request-graph__status:empty { display: none; }
.request-graph__inline { position: absolute; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.35rem; width: min(270px, 100%); background: var(--bg); padding: 0.4rem; }
.request-graph__inline[hidden] { display: none; }
.request-graph__inline input { grid-column: 1; min-width: 0; width: 100%; font: inherit; font-size: 0.875rem; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0.25rem; }
.request-graph__inline input:first-child { grid-row: 1; }
.request-graph__inline input:nth-child(2) { grid-row: 2; }
.request-graph__inline button { grid-row: 2; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 0.875rem; padding: 0.25rem; cursor: pointer; }
.request-graph__inline button:nth-child(3) { grid-column: 2; }
.request-graph__inline button:nth-child(4) { grid-column: 3; }
.request-graph-layout > * { min-width: 0; }
.request-graph-option > summary > small { display: block; margin-top: 0.25rem; }
@media (max-width: 48rem) {
  .request-graph-layout > :first-child { display: contents; }
  .request-graph-layout > :first-child > .request-graph { order: 3; }
  .request-graph-layout > form { order: 2; }
}

/* Small screens */
@media (max-width: 600px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-study { padding: 1.2rem; }
  .stepper > li { padding: 1.1rem 1.1rem 1.1rem 3.7rem; }
  .stepper > li::before { left: 1rem; }
  .compare th:first-child { width: auto; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print {
  .banner, .site-header, .site-footer, #contact, .skip, #intake-guide, #newsletter-invitation { display: none !important; }
  body { background: #fff; color: #000; }
  .section--alt { background: none; }
  .card, .figure, .table-wrap { border: 1px solid #ccc; }
}

/* Filterable card lists */
.card[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Fixes after render review */
.card .card-list { padding-left: 0; }
.card--accent .tag { background: var(--surface); }
.form label.request-graph-toggle { display: inline-flex; grid-template-columns: none; font-weight: 400; }
.form input[type="checkbox"] { width: 1rem; min-height: 0; padding: 0; }
.form .label-text { display: block; }
@media (min-width: 861px) {
  .site-header > .wrap { position: relative; }
  .nav-item { position: static; }
  /* Start the menu at the bottom of the Services link so the pointer never crosses a gap. */
  .nav-menu { left: auto; right: 0; top: calc(100% - 0.85rem); padding-top: calc(0.6rem + 0.85rem); }
  .nav-item.is-suppressed .nav-menu { display: none; }
}
@media (hover: hover) and (min-width: 861px) { .nav-item:hover:not(.is-suppressed) .nav-sub-toggle svg { transform: rotate(180deg); } }

/* ==========================================================================
   Motion, Transitions & Editorial Components (CSP-safe)
   ========================================================================== */

/* Header scroll progress bar (pure CSS scroll-driven animation) */
@supports (animation-timeline: scroll()) {
  .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
    transform-origin: left center;
    transform: scaleX(0);
    animation: header-progress linear both;
    animation-timeline: scroll(root block);
    pointer-events: none;
  }
  @keyframes header-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* Tactile micro-transitions across existing interactive elements */
.btn {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px #006a671f; }
.btn:active { transform: translateY(0); }

.card {
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #19242d14;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.18s ease, gap 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card-link { gap: 0.6rem; }

.nav > a, .nav-item > a {
  transition: background-color 0.18s ease, color 0.18s ease;
}

/* Chamfered-corner accent card */
.card--chamfer {
  border-radius: 4px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

/* Typewriter headline accent */
.typewriter-wrap {
  display: inline;
}
.typewriter-accent {
  color: var(--accent);
}
.typewriter-accent.is-typing {
  display: inline-grid;
  max-width: 100%;
  vertical-align: bottom;
}
.typewriter-sizer, .typewriter-live {
  grid-area: 1 / 1;
  min-width: 0;
}
.typewriter-sizer {
  visibility: hidden;
  pointer-events: none;
}
.typewriter-sizer .typewriter-cursor {
  animation: none;
}
.typewriter-letter {
  animation: typewriter-letter-in 100ms ease-out both;
}
.typewriter-letter.is-deleting {
  animation: typewriter-letter-out 100ms ease-in both;
}
@keyframes typewriter-letter-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes typewriter-letter-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
.typewriter-cursor {
  display: none;
}

/* Scroll-triggered reveals (progressive enhancement via html.js-motion) */
html.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js-motion [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
html.js-motion [data-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
html.js-motion [data-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
html.js-motion [data-stagger].is-visible > *:nth-child(2) { transition-delay: 65ms; }
html.js-motion [data-stagger].is-visible > *:nth-child(3) { transition-delay: 130ms; }
html.js-motion [data-stagger].is-visible > *:nth-child(4) { transition-delay: 195ms; }
html.js-motion [data-stagger].is-visible > *:nth-child(5) { transition-delay: 260ms; }
html.js-motion [data-stagger].is-visible > *:nth-child(6) { transition-delay: 325ms; }
html.js-motion [data-stagger].is-visible > *:nth-child(7) { transition-delay: 380ms; }
html.js-motion [data-stagger].is-visible > *:nth-child(8) { transition-delay: 430ms; }
html.js-motion [data-stagger].is-visible > *:nth-child(9) { transition-delay: 480ms; }
html.js-motion [data-stagger].is-visible > *:nth-child(10) { transition-delay: 520ms; }

/* Kinetic word/phrase copy reveal (CSP-safe indexed buckets) */
.copy-chunk {
  display: inline-block;
  vertical-align: baseline;
}
html.js-motion .copy-animate .copy-chunk {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1), transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js-motion .copy-animate.is-visible .copy-chunk {
  opacity: 1;
  transform: translateY(0);
}
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="0"] { transition-delay: 20ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="1"] { transition-delay: 55ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="2"] { transition-delay: 90ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="3"] { transition-delay: 125ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="4"] { transition-delay: 160ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="5"] { transition-delay: 195ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="6"] { transition-delay: 230ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="7"] { transition-delay: 265ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="8"] { transition-delay: 300ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="9"] { transition-delay: 335ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="10"] { transition-delay: 370ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="11"] { transition-delay: 405ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="12"] { transition-delay: 440ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="13"] { transition-delay: 475ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="14"] { transition-delay: 510ms; }
html.js-motion .copy-animate.is-visible .copy-chunk[data-ci="15"] { transition-delay: 545ms; }

/* Animated signal flow on hero study graph */
.study-graph .graph-flow {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  opacity: 0.7;
  animation: graph-dash 2.2s linear infinite;
}
.study-graph .graph-core {
  animation: core-pulse 3.6s ease-in-out infinite;
}
@keyframes graph-dash {
  to { stroke-dashoffset: -28; }
}
@keyframes core-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 #006a6700); }
  50% { filter: drop-shadow(0 0 10px #006a6744); }
}

/* Dark editorial contrast section & indexed /0.1–/0.5 stack rows */
.section--dark {
  background: var(--dark);
  color: #edf3f7;
}
.section--dark .eyebrow { color: var(--dark-accent); }
.section--dark h2, .section--dark h3 { color: #ffffff; }
.section--dark .lead, .section--dark p { color: var(--dark-muted); }
.section--dark .btn--ghost {
  color: #edf3f7;
  border-color: #364b59;
}
.section--dark .btn--ghost:hover {
  background: #1b2a36;
  border-color: var(--dark-accent);
  color: #ffffff;
}

.stack-list {
  margin-top: var(--space-3);
  border-top: 1px solid var(--dark-rule);
}
.stack-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.1fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 1rem 1.75rem;
  padding: 1.55rem 0.85rem;
  border-bottom: 1px solid var(--dark-rule);
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: background-color 0.25s ease, padding-left 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}
.stack-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--dark-accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.stack-row:hover, .stack-row:focus-visible {
  background: #17242e;
  padding-left: 1.35rem;
  color: #ffffff;
  text-decoration: none;
}
.stack-row:hover::before, .stack-row:focus-visible::before {
  transform: scaleY(1);
}
.stack-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--dark-accent);
  letter-spacing: 0.04em;
}
.stack-title {
  font-size: clamp(1.2rem, 1.05rem + 0.65vw, 1.55rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.stack-desc {
  color: var(--dark-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}
.stack-arrow {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--dark-accent);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.stack-row:hover .stack-arrow {
  transform: translateX(6px);
}
@media (max-width: 820px) {
  .stack-row {
    grid-template-columns: 3.6rem 1fr auto;
    gap: 0.4rem 1rem;
    padding: 1.25rem 0.5rem;
  }
  .stack-desc {
    grid-column: 2 / -1;
    font-size: 0.92rem;
  }
}

/* Strip subtle hover pulse */
.strip li {
  transition: color 0.18s ease;
}
.strip li:hover {
  color: var(--accent);
}

/* ==========================================================================
   Enterprise Onboarding: Interactive Hover/Focus Stage Cards & Worked Timeline
   ========================================================================== */
.stepper--interactive {
  gap: var(--space-2);
}
.stepper--interactive > .stage-card {
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}
.stepper--interactive > .stage-card:hover,
.stepper--interactive > .stage-card:focus-within,
.stepper--interactive > .stage-card.is-pinned {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 12px 30px #19242d14;
}
.stage-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.35rem;
}
.stage-card__top h3 {
  margin: 0;
}
.stage-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.stage-card__pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
}
.stage-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.stage-card__toggle:hover,
.stage-card.is-pinned .stage-card__toggle {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.stage-card__toggle::after {
  content: "▾";
  font-size: 0.8em;
  transition: transform 0.22s ease;
}
.stage-card:hover .stage-card__toggle::after,
.stage-card:focus-within .stage-card__toggle::after,
.stage-card.is-pinned .stage-card__toggle::after {
  transform: rotate(180deg);
}
.stage-card__drawer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease, margin-top 0.26s ease;
  margin-top: 0;
}
.stage-card__drawer-inner {
  overflow: hidden;
}
.stage-card:hover .stage-card__drawer,
.stage-card:focus-within .stage-card__drawer,
.stage-card.is-pinned .stage-card__drawer {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1rem;
}
.stage-details {
  display: grid;
  gap: 0.85rem 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin: 0;
}
@media (min-width: 780px) {
  .stage-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.stage-detail {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.stage-detail dt {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
  margin-bottom: 0.35rem;
}
.stage-detail dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}
.stage-detail dd strong {
  font-weight: 650;
}
.stage-hint {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 var(--space-2);
}

/* Horizontal left-to-right worked example timeline */
.work-timeline-wrap {
  position: relative;
  margin-top: var(--space-3);
}
.work-timeline {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}
.work-timeline::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: 2.5rem;
  right: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, var(--border)) 100%);
  pointer-events: none;
}
.work-milestone {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding-top: 2.3rem;
}
.work-milestone__dot {
  position: absolute;
  top: 0.55rem;
  left: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px var(--bg);
  z-index: 1;
}
.section--alt .work-milestone__dot {
  box-shadow: 0 0 0 4px var(--surface-2);
}
.work-milestone__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.work-milestone:hover .work-milestone__card,
.work-milestone:focus-within .work-milestone__card {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 12px 28px #19242d14;
}
.work-milestone__time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}
.work-milestone__card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}
.work-milestone__card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.work-milestone__out {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
}
.work-milestone__out strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
  margin-bottom: 0.2rem;
}
.work-summary-strip {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin-top: var(--space-3);
}
.work-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1.05rem;
}
.work-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--accent-hover);
}
.work-stat span {
  font-size: 0.84rem;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .work-timeline {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(16.5rem, 78vw);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.75rem;
  }
  .work-timeline::before {
    display: none;
  }
  .work-milestone {
    scroll-snap-align: start;
  }
}

@media (hover: none) {
  .stage-card__toggle {
    background: var(--accent-soft);
    color: var(--accent-hover);
  }
}

@media print {
  html.js-motion [data-reveal],
  html.js-motion [data-stagger] > *,
  html.js-motion .copy-animate .copy-chunk {
    opacity: 1 !important;
    transform: none !important;
  }
  .stage-card__drawer {
    grid-template-rows: 1fr !important;
    opacity: 1 !important;
    margin-top: 0.75rem !important;
  }
  .stage-card__toggle,
  .no-print {
    display: none !important;
  }
  .cap-sheet {
    padding: 0;
  }
  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }
}

/* ==========================================================================
   Capabilities Statement, Blueprint SVGs, Glossary & Changelog
   ========================================================================== */
.cap-sheet__header {
  display: grid;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2.2vw, 2rem);
  margin-bottom: var(--space-3);
}
@media (min-width: 820px) {
  .cap-sheet__header {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }
}
.cap-sheet__codes dl {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.88rem;
}
.cap-sheet__codes dl > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}
.cap-sheet__codes dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.cap-sheet__codes dt {
  font-weight: 650;
  color: var(--accent-hover);
}
.cap-sheet__codes dd {
  margin: 0;
  color: var(--text);
}

/* Reference architecture blueprint SVGs */
.bp-figure {
  margin-top: var(--space-2);
  border: 1px solid var(--border);
}
.bp-svg {
  width: 100%;
  height: auto;
  display: block;
}
.bp-box rect {
  fill: var(--surface-2);
  stroke: var(--border);
  stroke-width: 1.5;
}
.bp-box--accent rect {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 1.8;
}
.bp-box--dark rect {
  fill: var(--dark);
  stroke: var(--dark-accent);
  stroke-width: 1.6;
}
.bp-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  fill: var(--accent-hover);
  letter-spacing: 0.06em;
}
.bp-box--dark .bp-kicker {
  fill: var(--dark-accent);
}
.bp-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 650;
  fill: var(--text);
}
.bp-box--dark .bp-title {
  fill: #ffffff;
}
.bp-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  fill: var(--muted);
}
.bp-box--dark .bp-sub {
  fill: var(--dark-muted);
}
.bp-line {
  stroke: var(--accent);
  stroke-width: 2;
}
.bp-arrow-head {
  fill: var(--accent);
}
.bp-boundary {
  fill: color-mix(in srgb, var(--accent-soft) 28%, var(--surface));
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}
.bp-boundary-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  fill: var(--accent-hover);
  letter-spacing: 0.06em;
}

/* Glossary search & filter controls */
.glossary-controls {
  margin-top: var(--space-3);
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
}
.glossary-search input {
  width: 100%;
  font: inherit;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}
.glossary-controls .filters {
  margin-top: 0;
}

/* Changelog spacing */
.changelog-list > li {
  padding-bottom: 1.25rem;
}
.changelog-list h3 {
  margin-top: 0.2rem;
}

/* Demo CTAs land directly on the inquiry form below the sticky header. */
#inquiry { scroll-margin-top: 10rem; }
/* Thompson Axiomata LLC — Brent Alexander Thompson */
