/* ACEBOT — global styles
  Palette / type are the locked brand decisions from the design plan.
  The brand text and primary CTA use the refreshed blue palette; the rest
  of the UI keeps the original dark theme and accent colors. */

:root {
  --bg: #11161c;
  --bg-rgb: 17, 22, 28;
  --surface: #182028;
  --surface-2: #202a34;
  --border: #34414d;

  --cyan: #f77660;
  --pink: #F0399B;
  --purple: #9D4EDD;
  --orange: #FF8A3D;

  --text: #edf0f2;
  --text-dim: rgba(221, 228, 233, 0.72);

  --gradient: linear-gradient(90deg, var(--cyan), var(--pink), var(--purple), var(--orange));

  --cta-bg: #adc5d8;
  --cta-text: #11161c;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239aabba' fill-opacity='0.2'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 42px 44px;
  opacity: 0.68;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.34) 28%, rgba(0, 0, 0, 0.68) 62%, rgba(0, 0, 0, 0.9) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.34) 28%, rgba(0, 0, 0, 0.68) 62%, rgba(0, 0, 0, 0.9) 100%);
}

body > * {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-dim { color: var(--text-dim); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-rule {
  height: 2px;
  border: none;
  background: var(--gradient);
  opacity: 0.6;
  margin: 0;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-text);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px #f77660, 0 0 24px -4px rgba(247, 118, 96, 0.85);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-block {
  width: 100%;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 30px;
  height: 30px;
}

.logo-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.logo-word.small {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-cta-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 7px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links a {
    padding: 16px 24px;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    display: none;
  }

  .nav-links.open .nav-cta-mobile {
    display: inline-flex;
    margin: 16px 24px;
    color: #000000;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 84px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(173, 197, 216, 0.08), transparent 72%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1em;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 2em;
  align-items: center;
}

.link-arrow {
  color: var(--text-dim);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.link-arrow:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.section-more {
  margin: 28px 0 0;
}

/* ---------- Example deliverable (home hero) ----------
   A fictional firm's AI use review, drawn like a working document so the
   page shows what an engagement produces. Labelled "Example". */

.example-panel {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(24, 32, 40, 0.94);
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.example-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.example-tag {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.example-title {
  padding: 18px 18px 6px;
}

.example-title span {
  display: block;
  margin-bottom: 4px;
  color: #d98a75;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.example-title strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.example-rows {
  list-style: none;
  margin: 0;
  padding: 4px 10px 8px;
}

.example-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(52, 65, 77, 0.6);
}

.example-rows li:last-child {
  border-bottom: 0;
}

.example-rows strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.example-rows small {
  grid-column: 1;
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.45;
}

.example-status {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 4px 9px;
  border: 1px solid;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-ok { color: #9dcab1; border-color: rgba(157, 202, 177, 0.45); }
.status-review { color: #f4cc77; border-color: rgba(244, 204, 119, 0.45); }
.status-act { color: #f7a08f; border-color: rgba(247, 118, 96, 0.55); }
.status-local { color: var(--cta-bg); border-color: rgba(173, 197, 216, 0.5); }

.example-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px dashed #536371;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.example-foot strong {
  color: #9dcab1;
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 56px 0 60px;
  }

  .example-rows li {
    grid-template-columns: minmax(0, 1fr);
  }

  .example-status {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 6px;
  }

  .example-foot {
    display: grid;
    gap: 2px;
  }
}

/* ---------- Engagement flow ---------- */

.section-related { border-top: 1px solid var(--border); }
.section-alt.section-major-start,
.cta-band.section-major-start { border-top: 0; }
.architecture-header { max-width: 720px; }
.architecture-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.architecture-step { min-width: 0; padding: 22px 20px; border: 1px solid var(--border); border-radius: 6px; background: rgba(24, 32, 40, 0.88); }
.architecture-step strong { display: block; margin: 12px 0 8px; color: var(--text); font-family: var(--font-display); font-size: 0.96rem; }
.architecture-step p { margin: 0; color: var(--text-dim); font-size: 0.84rem; line-height: 1.55; }
.architecture-index { color: #d98a75; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.08em; }
.architecture-connector { align-self: center; color: #8798a6; font-size: 1rem; }
.architecture-boundary { display: flex; justify-content: space-between; gap: 20px; margin: 18px 0 0; padding: 12px 16px; border: 1px dashed #536371; border-radius: 5px; color: var(--text-dim); font-size: 0.78rem; }
.architecture-boundary strong { color: #9dcab1; font-weight: 600; }

@media (max-width: 860px) {
  .architecture-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .architecture-connector { display: none; }
}

@media (max-width: 520px) {
  .architecture-flow { grid-template-columns: 1fr; }
  .architecture-boundary { display: grid; gap: 4px; }
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section-header {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-header .eyebrow {
  margin-bottom: 0.75em;
}

.section-alt {
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Card grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  color: var(--text);
  margin-bottom: 0.5em;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

.card p a,
.who-story-grid p a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.card p a:hover,
.who-story-grid p a:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

/* ---------- Vertical list (who it's for) ---------- */

.vertical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.vertical-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.vertical-card .index {
  font-family: var(--font-display);
  color: #f7aa25;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  margin-bottom: 0.35em;
}

.cta-band p {
  color: var(--text-dim);
  margin-bottom: 1.5em;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-brand .tagline {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-meta p {
  margin: 0 0 4px;
}

/* ---------- Page hero (interior pages) ---------- */

.page-header {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-header .eyebrow {
  margin-bottom: 0.75em;
}

.page-header p.lede {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 640px;
}

.who-cred-grid {
  margin-top: 28px;
}

.who-cred-grid .card {
  padding: 22px 20px;
}

.who-cred-grid .card h3 {
  font-size: 1rem;
}

.who-cred-grid .card p {
  font-size: 0.92rem;
}

.who-cred-grid .patent-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--cta-bg);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(173, 197, 216, 0.42);
}

.who-cred-grid .patent-link:hover {
  color: var(--text);
  border-color: var(--text);
}

.credential-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 14px;
}

.credential-links span {
  flex-basis: 100%;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.credential-links a {
  color: var(--cta-bg);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(173, 197, 216, 0.42);
}

.credential-links a:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ---------- Prose blocks (Who We Are / Services) ---------- */

.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose p {
  color: var(--text-dim);
}

.prose p strong {
  color: var(--text);
}

.note-box {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 1.5em 0;
}

.note-box strong {
  color: var(--cyan);
}

.turnstile-slot { margin-bottom: 16px; min-height: 65px; }
.turnstile-slot:empty { display: none; }

.note-box.contact-error {
  border-color: var(--pink);
  color: var(--pink);
}

.note-box.contact-error a {
  color: inherit;
}

.person {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 2em 0;
}

.person-avatar {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.person-avatar-photo {
  overflow: hidden;
  padding: 0;
}

.person-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person-body h3 {
  margin-bottom: 0.15em;
}

.person-role {
  display: block;
  color: var(--cyan);
  font-size: 0.85rem;
  margin-bottom: 0.6em;
}

/* ---------- Who we are ---------- */

.who-content p {
  color: var(--text-dim);
}

.who-content .person {
  margin: 0;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.who-content .person-avatar {
  width: 96px;
  height: 96px;
}

.who-content .person-body {
  max-width: 880px;
}

.who-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 72px;
  padding-top: 56px;
}

.who-story-grid h2 {
  font-size: 1.45rem;
}

.who-story-grid strong {
  color: var(--text);
}

@media (max-width: 860px) {
  .who-story-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .who-content .person {
    flex-direction: column;
    padding-bottom: 44px;
  }

  .who-story-grid {
    padding-top: 44px;
  }
}

/* ---------- Contact form ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
}

.contact-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.contact-aside h3 {
  margin-bottom: 0.5em;
}

.contact-aside p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- 404 ---------- */

.error-page {
  padding: 120px 0;
  text-align: center;
}

/* ---------- Field Notes: hub list ---------- */

.fn-list {
  display: flex;
  flex-direction: column;
}

.fn-item {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.fn-item:first-child {
  padding-top: 0;
}

.fn-item-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.7em;
}

.fn-item h3 {
  margin-bottom: 0.4em;
  transition: color 0.15s ease;
}

.fn-item:hover h3 {
  color: var(--cyan);
}

.fn-item p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 640px;
  margin-bottom: 0.7em;
}

.fn-item-meta {
  display: block;
  color: var(--text-dim);
  font-size: 0.82rem;
  opacity: 0.8;
}

.fn-note {
  margin-top: 28px;
  font-size: 0.85rem;
}

/* ---------- Field Notes: article layout ---------- */

.article-back {
  display: inline-block;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.5em;
  transition: color 0.15s ease;
}

.article-back:hover {
  color: var(--cyan);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 1.5em 0 0;
}

.callout {
  border-left: 3px solid var(--cyan);
  padding: 2px 0 2px 20px;
  margin: 2em 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--text);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 2em 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stat-tile .stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-tile .stat-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 6px;
}

/* ---------- Field Notes: bar chart (single-series, mention frequency) ---------- */

.bar-chart {
  margin: 2em 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 128px 1fr 40px;
  align-items: center;
  gap: 12px;
  padding: 5px 4px;
  border-radius: 4px;
}

.bar-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.bar-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: right;
}

.bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background: var(--cyan);
  border-radius: 0 4px 4px 0;
}

.bar-value {
  font-size: 0.85rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.bar-chart-caption {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0.85;
}

@media (max-width: 480px) {
  .bar-row {
    grid-template-columns: 84px 1fr 32px;
    gap: 8px;
  }
  .bar-label,
  .bar-value {
    font-size: 0.75rem;
  }
}

.article-sources {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
  opacity: 0.85;
}

.article-sources strong {
  color: var(--text);
  opacity: 1;
}

/* ---------- Services ---------- */

.service-list {
  display: grid;
  gap: 20px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px 56px;
  padding: 34px 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.service-row .index {
  font-family: var(--font-display);
  color: #f7aa25;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.service-row h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.service-row p {
  margin: 0;
  color: var(--text-dim);
}

.service-label {
  display: block;
  margin-bottom: 14px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Square bullets echo the square nodes in the ACEBOT mark. */
.service-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-points li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.service-points li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--cyan);
}

.service-points strong {
  color: var(--text);
  font-weight: 600;
}

.duty-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px 56px;
  align-items: start;
}

.duty-layout .section-header {
  margin-bottom: 0;
}

.duty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.duty-chips li {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .service-row,
  .duty-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-row {
    padding: 26px 22px;
  }
}

/* ---------- Offers (consulting catalog) ---------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.offer {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.offer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.offer:hover::before { opacity: 1; }

.offer.offer-free { border-color: rgba(173, 197, 216, 0.55); }

.offer-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.offer-free .offer-tag { color: var(--cta-bg); border-color: rgba(173, 197, 216, 0.5); }

.offer h3 { margin-bottom: 0.35em; }

.offer .offer-who {
  margin: 0 0 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.offer p.offer-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.offer-price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
}

.offer-price small {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
}

.offers-note {
  margin: 22px 0 0;
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 760px;
}

/* Catalog table on the Services page */
.catalog { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.catalog th, .catalog td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.catalog th { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.catalog td { color: var(--text-dim); }
.catalog td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.catalog td a { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.catalog td a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }
.catalog td.price { color: var(--text); font-family: var(--font-display); min-width: 170px; }
.catalog col.c-offer { width: 19%; } .catalog col.c-who { width: 17%; } .catalog col.c-what { width: 38%; } .catalog col.c-price { width: 18%; } .catalog col.c-time { width: 8%; }
@media (max-width: 760px) {
  .catalog-wrap { padding: 0; background: transparent; border: 0; overflow: visible; }
  .catalog thead { display: none; }
  .catalog, .catalog tbody, .catalog tr, .catalog td { display: block; }
  .catalog tr { margin-bottom: 14px; padding: 18px 18px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
  .catalog td { padding: 4px 0; border: 0; }
  .catalog td:first-child { white-space: normal; font-family: var(--font-display); font-size: 1.05rem; padding-bottom: 8px; }
  .catalog td[data-label]::before { content: attr(data-label); display: block; font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin: 8px 0 2px; }
  .catalog td.price { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; }
  .compare tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .compare td { padding: 3px 0; border: 0; }
  .compare td:nth-child(2)::before { content: "They sell: "; color: var(--text-dim); }
  .compare td:last-child { padding-top: 6px; }
}
.catalog tr.free td:first-child::after { content: "Free"; margin-left: 8px; padding: 2px 6px; border: 1px solid rgba(173,197,216,.5); border-radius: 3px; font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cta-bg); font-weight: 600; }
.catalog-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 4px 12px; }

/* Deliverables list inside a service row */
.service-deliverables { margin: 18px 0 0; padding: 14px 16px; border: 1px dashed #536371; border-radius: 6px; color: var(--text-dim); font-size: 0.88rem; }
.service-deliverables strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; }
.service-price { margin: 14px 0 0; font-family: var(--font-display); color: var(--text); font-size: 0.95rem; }
.service-price small { display: block; color: var(--text-dim); font-family: var(--font-body); font-size: 0.8rem; margin-top: 2px; }

/* Three messages */
.messages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.message { padding: 26px 24px; border-left: 3px solid var(--cyan); background: var(--surface); border-radius: 0 8px 8px 0; }
.message .index { display: block; margin-bottom: 10px; font-family: var(--font-display); color: #f7aa25; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.message p { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; }
.message a { color: var(--text-dim); font-size: 0.9rem; }
.message a:hover { color: var(--cyan); }

/* Proof points */
.proof-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; margin: 0; padding: 0; list-style: none; }
.proof-list li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: 0.95rem; }
.proof-list li::before { content: ""; position: absolute; top: 0.6em; left: 0; width: 7px; height: 7px; background: var(--cyan); }
.proof-list strong { color: var(--text); font-weight: 600; }

/* Not-this table */
.compare { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare th, .compare td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare th { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.compare td { color: var(--text-dim); }
.compare td:first-child { color: var(--text); font-weight: 600; }
.compare td:last-child { color: var(--text); }

/* Snapshot flags in the hero example */
.flag-red { color: #f7a08f; border-color: rgba(247, 118, 96, 0.55); }
.flag-yellow { color: #f4cc77; border-color: rgba(244, 204, 119, 0.45); }
.flag-green { color: #9dcab1; border-color: rgba(157, 202, 177, 0.45); }
.example-steps { padding: 10px 18px 14px; color: var(--text-dim); font-size: 0.82rem; border-top: 1px solid rgba(52, 65, 77, 0.6); }
.example-steps ol { margin: 0; padding: 0; list-style: none; }
.example-steps li { padding: 3px 0 3px 18px; position: relative; }
.example-steps li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 6px; height: 6px; background: var(--cta-bg); }
.example-steps strong { display: block; margin-bottom: 4px; color: #d98a75; font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Contact intake extras */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-field select { width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem; }
.form-field select:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form-hint { margin: -8px 0 18px; color: var(--text-dim); font-size: 0.82rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Astreon: the nav link and the Products panel ----------
   Astreon is shown in its own identity (paper, Newsreader, IBM Plex,
   the oxblood cite square) so it reads as a brand inside ACEBOT, with
   its products listed inside it. Colours and type match helloastreon.com. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/newsreader-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(/fonts/ibm-plex-sans-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500.woff2) format("woff2"); }

.nav-links .nav-ext span { margin-left: 3px; font-size: 0.85em; }
@media (max-width: 860px) {
  .nav-links.open { max-height: 400px; }
}

.brands { padding-top: 64px; }
.brands .eyebrow { margin-bottom: 1.25em; }

/* Drawn in Astreon's reverse palette (its text and marks on ink, the lightened
   oxblood it uses on dark), so the panel keeps Astreon's type and marks without
   a paper-white block in the dark page. */
.astreon-panel {
  --a-ink: #E9E8E3; --a-ink2: #C9CED4; --a-slate: #A9B0B8; --a-paper: #16202B; --a-ox: #D0717F;
  --a-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --a-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --a-mono: "IBM Plex Mono", Menlo, Consolas, monospace;
  background: var(--a-paper);
  color: var(--a-ink);
  padding: 0 36px;
  border: 1px solid var(--border);
}
.astreon-panel a:focus-visible { outline-color: var(--a-ox); }

.bp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; padding: 30px 0 26px; }
.bp-lockup { display: inline-flex; align-items: center; gap: 16px; }
.bp-mark { width: 40px; height: 40px; }
.bp-mark line { stroke: var(--a-ink); stroke-width: 9; }
.bp-mark rect { fill: var(--a-ox); }
.bp-name { font-family: var(--a-sans); font-weight: 600; font-size: 17px; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1; }
.bp-line { font-family: var(--a-serif); font-size: 21px; line-height: 1.3; color: var(--a-slate); }
.bp-url { font-family: var(--a-mono); font-weight: 500; font-size: 13px; color: var(--a-slate); }
.bp-head:hover .bp-url { color: var(--a-ink); text-decoration: underline; text-underline-offset: 4px; }

.bp-products { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--a-ink); }
.bp-products a { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) auto; align-items: baseline; gap: 8px 32px; padding: 22px 0 28px; }
.bp-product { display: inline-flex; align-items: baseline; gap: 3px; font-family: var(--a-serif); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -0.01em; }
.bp-product i { display: block; width: 7px; height: 7px; background: var(--a-ox); }
.bp-desc { font-family: var(--a-serif); font-size: 21px; line-height: 1.3; color: var(--a-ink2); }
.bp-points { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 0; padding: 0; list-style: none; font-family: var(--a-sans); font-size: 14.5px; line-height: 1.4; color: var(--a-slate); }
.bp-points li { position: relative; padding-left: 13px; }
.bp-points li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; background: var(--a-ox); }
.bp-status { font-family: var(--a-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--a-slate); white-space: nowrap; }
.bp-status::after { content: " \2192"; letter-spacing: 0; }
.bp-products a:hover .bp-desc { color: var(--a-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

@media (max-width: 860px) {
  .astreon-panel { padding: 0 22px; }
  .bp-head { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 0 20px; }
  .bp-products a { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px 0 24px; }
  .bp-product { font-size: 36px; }
  .bp-line, .bp-desc { font-size: 19px; }
}

/* who we are: the why, as three cards */
.who-why { margin-top: 56px; }
.who-local { margin-top: 24px; }

/* ---------- Products page: the detailed Astreon panel (tabs + steps) ---------- */
.ap-tabs { display: flex; gap: 0; border-top: 1px solid var(--a-ink); }
.ap-tabs [role="tab"] { flex: 1 1 0; display: flex; align-items: baseline; gap: 14px; padding: 22px 0 18px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--a-slate); font-family: var(--a-sans); cursor: pointer; text-align: left; }
.ap-tabs [role="tab"] .bp-product { font-size: 36px; color: inherit; }
.ap-tabs [role="tab"] .bp-product i { opacity: 0.45; }
.ap-tabs [role="tab"] .ap-kind { font-family: var(--a-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.ap-tabs [role="tab"]:hover { color: var(--a-ink2); }
.ap-tabs [role="tab"][aria-selected="true"] { color: var(--a-ink); border-bottom-color: var(--a-ox); }
.ap-tabs [role="tab"][aria-selected="true"] .bp-product i { opacity: 1; }
.ap-tabs [role="tab"]:focus-visible { outline: 2px solid var(--a-ox); outline-offset: -2px; }
.ap-pane { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px 48px; padding: 28px 0 32px; }
.ap-pane[hidden] { display: none; }
.ap-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 5px; border: 1px solid var(--a-ox); color: var(--a-ox); font-family: var(--a-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; }
.ap-pill::before { content: ''; width: 6px; height: 6px; background: var(--a-ox); }
.ap-line { margin: 16px 0 0; font-family: var(--a-serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--a-ink); }
.ap-facts { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-family: var(--a-sans); font-size: 15px; line-height: 1.45; color: var(--a-ink2); }
.ap-facts li { position: relative; padding-left: 16px; }
.ap-facts li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--a-ox); }
.ap-cta { display: inline-block; margin-top: 20px; font-family: var(--a-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--a-ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--a-slate); }
.ap-cta:hover { text-decoration-color: var(--a-ox); }
.ap-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: none; }
.ap-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 14px; align-items: baseline; padding: 12px 14px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.ap-steps li b { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: rgba(169, 176, 184, 0.18); color: var(--a-ink2); font-family: var(--a-serif); font-weight: 500; font-size: 18px; transition: background 0.2s ease, color 0.2s ease; }
.ap-steps li strong { font-family: var(--a-serif); font-weight: 500; font-size: 20px; line-height: 1.2; color: var(--a-ink2); }
.ap-steps li span { grid-column: 2; font-family: var(--a-sans); font-size: 14.5px; line-height: 1.45; color: var(--a-slate); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s ease, opacity 0.25s ease; }
.ap-steps li.is-on { background: rgba(169, 176, 184, 0.08); border-color: rgba(169, 176, 184, 0.25); }
.ap-steps li.is-on b { background: var(--a-ox); color: #16202B; }
.ap-steps li.is-on strong { color: var(--a-ink); }
.ap-steps li.is-on span { max-height: 6em; opacity: 1; }
@media (max-width: 860px) {
  .ap-pane { grid-template-columns: minmax(0, 1fr); }
  .ap-tabs [role="tab"] { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ap-tabs [role="tab"] .bp-product { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-steps li span { max-height: none; opacity: 1; transition: none; }
}

/* Products page: the credibility bullets under the headline */
.cred-points { margin-top: 24px; max-width: 640px; }
.cred-points strong { color: var(--text); font-weight: 600; }

/* the Astreon panel's tabs, drawn as tabs: both clearly clickable, the open one marked */
.ap-tabs { gap: 10px; padding-top: 18px; border-top: 1px solid var(--a-ink); }
.ap-tabs [role="tab"] { position: relative; padding: 18px 20px 16px; border: 1px solid rgba(169, 176, 184, 0.35); border-bottom-width: 2px; border-radius: 4px 4px 0 0; background: rgba(169, 176, 184, 0.06); }
.ap-tabs [role="tab"]:hover { background: rgba(169, 176, 184, 0.14); color: var(--a-ink); border-color: rgba(169, 176, 184, 0.6); }
.ap-tabs [role="tab"] .ap-state { margin-left: auto; font-family: var(--a-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--a-slate); white-space: nowrap; }
.ap-tabs [role="tab"] .ap-state::before { content: 'View \2192'; }
.ap-tabs [role="tab"][aria-selected="true"] { background: rgba(208, 113, 127, 0.1); border-color: var(--a-ox); border-bottom-color: var(--a-ox); }
.ap-tabs [role="tab"][aria-selected="true"] .ap-state { color: var(--a-ox); }
.ap-tabs [role="tab"][aria-selected="true"] .ap-state::before { content: 'Showing'; }
@media (max-width: 860px) { .ap-tabs { flex-direction: column; } .ap-tabs [role="tab"] { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; border-radius: 4px; } }

/* the pills are links now */
a.ap-pill { text-decoration: none; }
a.ap-pill:hover { background: var(--a-ox); color: #16202B; }
a.ap-pill:hover::before { background: #16202B; }

/* two kinds of work: build and advise, and what passes between them */
.kinds { display: grid; grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.kind h3 { margin-bottom: 14px; }
.kinds-link { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 0 4px; }
.k-arrow { display: grid; gap: 8px; text-align: center; }
.k-arrow i { display: block; position: relative; height: 2px; background: var(--border); }
.k-arrow i::after { content: ''; position: absolute; top: -4px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.k-arrow.to-right i::after { right: -1px; border-left: 8px solid var(--cyan); }
.k-arrow.to-left i::after { left: -1px; border-right: 8px solid var(--cyan); }
.k-arrow em { font-style: normal; font-size: 0.8rem; line-height: 1.4; color: var(--text-dim); }
.kinds-rule { margin-top: 20px; }
@media (max-width: 860px) {
  .kinds { grid-template-columns: minmax(0, 1fr); }
  .kinds-link { flex-direction: row; gap: 16px; padding: 4px 0; }
  .k-arrow { flex: 1; }
}

/* who we are: the facts strip under the headline, and tight bullet lists in cards */
.fact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 32px; }
.fact { padding: 18px 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.fact b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.fact span { display: block; margin-top: 6px; font-size: 0.85rem; line-height: 1.45; color: var(--text-dim); }
.service-points.tight { gap: 8px; }
.service-points.tight li { font-size: 0.9rem; line-height: 1.5; }
.who-cred-grid .card h3 { margin-bottom: 12px; }
.who-cred-grid .credential-links { margin-top: 16px; }
.who-cred-grid .patent-link { margin-top: 14px; }
.person-facts { margin-top: 12px; }
.person-facts a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.person-facts a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

/* home hero: the three lines as bullets, at the lede's size */
.hero-points { max-width: 580px; gap: 12px; }
.hero-points li { font-size: 1.15rem; line-height: 1.5; padding-left: 26px; }
.hero-points li::before { top: 0.65em; width: 8px; height: 8px; }

/* home: the Astreon heading carries the brand's mark and its address, so the
   panel below lists only the products. Mark colours are Astreon's reverse palette. */
.brand-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; margin-bottom: 28px; }
.brand-heading h2 { display: inline-flex; align-items: center; gap: 16px; margin: 0; }
.brand-mark { width: 1.15em; height: 1.15em; flex: none; }
.brand-mark line { stroke: #E9E8E3; stroke-width: 9; }
.brand-mark rect { fill: #D0717F; }
.brand-url { font-family: "IBM Plex Mono", Menlo, Consolas, monospace; font-weight: 500; font-size: 13px; letter-spacing: 0.02em; color: var(--text-dim); }
.brand-url:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.astreon-panel > .bp-products:first-child { border-top: 0; padding-top: 10px; }

/* the page you're on: white text, a touch bolder (a hairline shadow, so the
   links don't shift), and a small square on the baseline after the word, the
   way the product names carry theirs. Drawn outside the link's box so nothing moves. */
.nav-links a { position: relative; }
.nav-links a[aria-current="page"] { color: var(--text); text-shadow: 0 0 0.5px currentColor, 0 0 0.5px currentColor; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 0.43em;
  width: 4px;
  height: 4px;
  background: var(--cyan);
}
@media (max-width: 860px) {
  .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.03); }
  .nav-links a[aria-current="page"]::after {
    position: static;
    display: inline-block;
    margin-left: 3px;
    vertical-align: baseline;
  }
}

/* contact sidebar: three short labelled groups of bullets */
.aside-group + .aside-group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.aside-label { display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.aside-list strong { color: var(--text); font-weight: 600; }
.aside-list a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; word-break: break-word; }
.aside-list a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

/* ---------- Brand names in running text (scripts/brand-names.py wraps them) ----------
   ACEBOT in the wordmark's face (.logo-word: Space Grotesk bold); Astreon in its own wordmark's face
   (IBM Plex Sans semibold, tracked caps; the font is self-hosted with the Astreon panel above). */
.brand-acebot { font-family: var(--font-display); font-style: normal; font-weight: 700; letter-spacing: 0.04em; }
.brand-astreon { font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; font-style: normal; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.86em; }
.eyebrow .brand-astreon, .eyebrow .brand-acebot { font-size: 1em; }
