/* Genvo — genvo.co
   Type: Archivo (display), Inter (text), IBM Plex Mono (labels).
   Palette: ink slate + steel blue, safety-orange accent for calls to action. */

:root {
  --ink-900: #0c1a22;
  --ink-800: #13262f;
  --ink-700: #1d3642;
  --ink-600: #2a4a58;
  --steel: #2f6b88;
  --steel-300: #8fb3c4;
  --steel-100: #d6e3e9;
  --tint: #e9eef0;
  --paper: #f5f4ef;
  --white: #ffffff;
  --line: #d9dedf;
  --line-dark: #2a404b;
  --text: #0c1a22;
  --muted: #5a6670;
  --muted-dark: #a9bcc6;
  --accent: #f26a21;
  --accent-600: #d9561a;
  --accent-text: #b84a0e;

  --f-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-text: "Inter", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  /* One type scale, used everywhere */
  --fs-h1: clamp(2.25rem, 1.75rem + 1.9vw, 3.5rem);      /* 36 → 56 */
  --fs-h2: clamp(1.75rem, 1.32rem + 1.7vw, 2.75rem);     /* 28 → 44 */
  --fs-h3: clamp(1.1875rem, 1.12rem + .3vw, 1.375rem);   /* 19 → 22 */
  --fs-lede: clamp(1.0625rem, 1.02rem + .2vw, 1.1875rem);/* 17 → 19 */
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  --wrap: 1200px;
  --gutter: clamp(1rem, .6rem + 2vw, 2rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(12, 26, 34, .06), 0 8px 24px rgba(12, 26, 34, .06);
  --section-y: clamp(4rem, 3rem + 4vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p a, li a, dd a { color: var(--accent-text); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -.03em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.01em; }
p, li, blockquote, figcaption, dd { text-wrap: pretty; }
p { margin: 0 0 1em; max-width: 65ch; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink-900); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Labels & text roles ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--steel);
  margin: 0 0 1.25rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.section--dark .eyebrow, .hero--dark .eyebrow, .cta .eyebrow { color: var(--steel-300); }

.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--ink-700); max-width: 60ch; }
.section--dark .lede, .cta .lede { color: var(--muted-dark); }
.accent { color: var(--accent-text); }
.section--dark .accent, .cta .accent { color: var(--accent); }
.muted { color: var(--muted); }
.note {
  font-size: var(--fs-small); color: var(--muted); max-width: 70ch;
  border-left: 2px solid var(--line); padding-left: .9rem; margin-top: 2rem;
}
.section--dark .note { color: var(--muted-dark); border-color: var(--line-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.35rem; border-radius: 999px;
  font-family: var(--f-text); font-weight: 600; font-size: .975rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--ink-900); }
.btn--primary:hover { background: #ff7a33; }
.btn--ghost { border-color: var(--ink-900); color: var(--ink-900); background: transparent; }
.btn--ghost:hover { background: var(--ink-900); color: var(--white); }
.section--dark .btn--ghost, .cta .btn--ghost, .hero--dark .btn--ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.section--dark .btn--ghost:hover, .cta .btn--ghost:hover { background: var(--white); color: var(--ink-900); }
.btn--sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1.25rem;
  font-weight: 600; color: var(--ink-900); text-decoration: none; font-size: .95rem;
}
.link svg { width: 16px; height: 16px; color: var(--accent-text); transition: transform .2s; }
.link:hover svg { transform: translateX(3px); }
.link:hover { color: var(--accent-text); }
.section--dark .link { color: var(--white); }
.section--dark .link svg { color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 244, 239, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(12,26,34,.05); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink-900); flex-shrink: 0; }
.brand__mark { width: 32px; height: 32px; }
.brand__text { font-family: var(--f-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -.03em; }
.brand--light { color: var(--white); }

.nav__links { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav__links > a, .nav__group > a {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .7rem; border-radius: 8px; font-size: .925rem; font-weight: 500;
  color: var(--ink-700); text-decoration: none; white-space: nowrap;
}
.nav__links > a:hover, .nav__group > a:hover, .nav__group:focus-within > a { color: var(--ink-900); background: rgba(12,26,34,.05); }
.nav__links [aria-current="page"] { color: var(--ink-900); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav__group { position: relative; }
.nav__group > a svg { width: 12px; height: 12px; transition: transform .2s; }
.nav__group:hover > a svg, .nav__group:focus-within > a svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: -.5rem; width: 360px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(12,26,34,.12); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: .7rem .85rem; border-radius: 10px; text-decoration: none; }
.nav__menu a:hover, .nav__menu a:focus-visible { background: var(--tint); }
.nav__menu strong { display: block; font-size: .95rem; font-weight: 600; color: var(--ink-900); }
.nav__menu span { display: block; font-size: .825rem; color: var(--muted); line-height: 1.4; margin-top: .15rem; }
.nav__menu .nav__all { border-top: 1px solid var(--line); margin-top: .35rem; border-radius: 0 0 10px 10px; font-size: .875rem; font-weight: 600; color: var(--accent-text); }

.nav__cta { display: flex; align-items: center; gap: .75rem; }
.nav__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--white); border-radius: 10px; cursor: pointer; position: relative;
}
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink-900); transition: transform .2s, top .2s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 1120px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .mobile-menu {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.is-open .mobile-menu { max-height: calc(100vh - 72px); overflow-y: auto; }
  .mobile-menu__inner { padding: .75rem var(--gutter) 1.5rem; display: grid; gap: .1rem; }
  .mobile-menu a { padding: .75rem 0; text-decoration: none; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); color: var(--ink-900); }
  .mobile-menu a.sub { padding-left: 1rem; font-weight: 500; font-size: .975rem; color: var(--ink-700); }
  .mobile-menu .btn { margin-top: 1rem; border-bottom: 0; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--tint); }
.section--white { background: var(--white); }
.section--dark { background: var(--ink-900); color: var(--white); }
.section--line { border-top: 1px solid var(--line); }
.section + .section--line { padding-top: var(--section-y); }

.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section__head h2 + p, .section__head h2 + .lede { margin-top: 1.25rem; }
.section__head--wide { max-width: 980px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center p { margin-left: auto; margin-right: auto; }

.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--center { align-items: center; }
}
.split h2 + p, .split h2 + .lede { margin-top: 1.25rem; }
.prose p { color: var(--ink-700); }
.section--dark .prose p { color: var(--muted-dark); }
.prose p + p { margin-top: 1rem; }
.prose .strong { color: var(--ink-900); font-weight: 600; }
.section--dark .prose .strong { color: var(--white); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3.5rem, 2.5rem + 4vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
}
.hero > .wrap { position: relative; }
.hero__title { max-width: 18ch; }
.hero__title--home { max-width: none; }
.hero__title--home span { display: block; }
.hero__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.hero__copy .lede { margin: 0; }
.hero__copy .btns { margin-top: 2rem; }
.hero__fine { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--muted); }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 clamp(3rem, 2.5rem + 3vw, 5rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .4;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 5%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 5%, transparent 70%);
}
.page-hero > .wrap { position: relative; }
.page-hero__grid { display: grid; gap: 2.5rem; }
@media (min-width: 1100px) { .page-hero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; } }
@media (min-width: 700px) and (max-width: 1099px) { .page-hero .qcard { max-width: 560px; } }
.page-hero h1 { max-width: 24ch; }
.page-hero .lede { margin-top: 1.5rem; }
.page-hero .lede + p { margin-top: 1rem; color: var(--ink-700); max-width: 60ch; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.75rem; font-size: var(--fs-small); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink-900); text-decoration: underline; }
.crumbs > * + *::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs span { color: var(--ink-900); }

/* Question card on solution heroes */
.qcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.qcard__label { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.qcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.qcard li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; font-weight: 500; color: var(--ink-900); line-height: 1.45; }
.qcard li svg { width: 18px; height: 18px; margin-top: 2px; color: var(--steel); }

/* ---------- Systems flow diagram (home hero) ---------- */
.flow {
  margin: 0;
  position: relative; background: var(--ink-900); color: var(--white); border-radius: 20px;
  padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); box-shadow: 0 30px 60px rgba(12,26,34,.18);
}
.flow__cap { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 1.25rem; }
.flow__body { position: relative; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.flow__col { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; position: relative; z-index: 1; }
.flow__src { display: flex; flex-wrap: wrap; gap: .5rem; }
.flow__src li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .7rem;
  background: var(--ink-800); border: 1px solid var(--line-dark); border-radius: 10px;
  font-size: .825rem; font-weight: 500; color: #dbe6eb; white-space: nowrap;
}
.flow__src li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--steel-300); flex-shrink: 0; }
.flow__core {
  position: relative; z-index: 1; background: linear-gradient(160deg, #1f4152, #16303b); border: 1px solid #3b6476;
  border-radius: 16px; padding: 1.1rem 1.1rem 1rem; text-align: left;
}
.flow__core-name { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.35; }
.flow__core-sub { font-size: .75rem; color: var(--muted-dark); margin-top: .2rem; }
.flow__steps { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .4rem; }
.flow__steps li { display: flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 500; color: #e7eef1; background: rgba(255,255,255,.05); border-radius: 8px; padding: .45rem .55rem; }
.flow__steps b { font-family: var(--f-mono); font-weight: 500; font-size: .7rem; color: var(--accent); }
.flow__out li {
  padding: .7rem .8rem; border-radius: 10px; border: 1px solid #3a4f59; background: var(--ink-800);
  font-size: .85rem; font-weight: 600; line-height: 1.3; color: var(--white);
  display: flex; align-items: center; gap: .55rem;
}
.flow__out li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.flow__arrow { justify-self: center; width: 2px; height: 22px; background: linear-gradient(var(--steel-300), transparent); }
.flow__lines { display: none; }
@media (min-width: 640px) {
  .flow__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
  .flow__src { display: grid; grid-template-rows: repeat(6, 1fr); gap: .45rem; }
  .flow__src li { white-space: normal; }
  .flow__out { display: grid; grid-template-rows: repeat(3, 1fr); gap: 1.25rem; }
  .flow__arrow { display: none; }
  .flow__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
  .flow__lines path { fill: none; stroke: #3d6578; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  .flow__lines .pulse { stroke: var(--accent); stroke-dasharray: 6 120; animation: pulse 3.2s linear infinite; }
  .flow__lines .pulse:nth-child(2n) { animation-delay: -1.1s; }
  .flow__lines .pulse:nth-child(3n) { animation-delay: -2.2s; }
}
@keyframes pulse { from { stroke-dashoffset: 126; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .flow__lines .pulse { animation: none; display: none; } }
.flow__foot { margin-top: 1.25rem; font-size: .75rem; color: var(--muted-dark); }

/* ---------- Problem: system tiles ---------- */
.systems { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .systems { grid-template-columns: 1fr 1fr; } }
.systems li { list-style: none; background: var(--white); padding: 1.4rem 1.5rem; display: grid; gap: .35rem; }
.systems .sys { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.systems .sys__line { display: block; font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; color: var(--ink-900); text-wrap: balance; }
.systems { padding: 0; margin: 0; }
.problem__gap { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--ink-900); color: #dbe6eb; display: grid; grid-template-columns: 24px 1fr; gap: .9rem; }
.problem__gap svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.problem__gap p { margin: 0; }

/* ---------- Cards (all peers share one treatment) ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 1.25rem + .8vw, 2rem); position: relative;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.section--white .card { background: var(--paper); }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card:has(.link:hover) { border-color: var(--steel-300); box-shadow: var(--shadow); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint); color: var(--steel); margin-bottom: 1.25rem;
}
.section--white .card__icon { background: var(--white); border: 1px solid var(--line); }
.card__icon svg { width: 22px; height: 22px; }
.card__num { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .1em; color: var(--muted); margin-bottom: 1.25rem; }
.card h3 + p, .card h3 + .card__promise { margin-top: .6rem; }
.card__promise { font-weight: 600; color: var(--ink-900); margin-bottom: .6rem; }
.card p { color: var(--ink-700); font-size: .975rem; }
.card ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.card ul li { position: relative; padding-left: 1.1rem; font-size: .925rem; color: var(--ink-700); line-height: 1.45; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--steel-300); }

/* dark-band cards: same treatment within their grid */
.section--dark .card { background: var(--ink-800); border-color: var(--line-dark); }
.section--dark .card p, .section--dark .card ul li { color: var(--muted-dark); }
.section--dark .card__icon { background: var(--ink-700); color: var(--steel-300); }
.section--dark .card__num { color: var(--muted-dark); }
.section--dark .card ul li::before { background: var(--accent); }

/* ---------- Three capabilities (Connect → Understand → Improve) ---------- */
.stack { display: grid; gap: 1.25rem; counter-reset: stk; }
@media (min-width: 1100px) { .stack { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } }
.stack__item { position: relative; padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem); border: 1px solid var(--line-dark); background: var(--ink-800); border-radius: var(--radius); }
@media (min-width: 1100px) {
  .stack__item { border-radius: 0; }
  .stack__item:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .stack__item:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
  .stack__item + .stack__item { border-left: 0; }
  .stack__item:not(:last-child)::after {
    content: ""; position: absolute; right: -13px; top: 2.25rem; z-index: 2; width: 24px; height: 24px; border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1a22' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  }
}
.stack__step { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.stack__item h3 { color: var(--white); }
.stack__item > p { color: var(--muted-dark); margin-top: .75rem; }
.stack__item ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; }
.stack__item li { font-size: .9rem; color: #d3e0e6; padding-left: 1.1rem; position: relative; line-height: 1.45; }
.stack__item li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--steel-300); }
.stack--light .stack__item { background: var(--white); border-color: var(--line); }
.stack--light .stack__item h3 { color: var(--ink-900); }
.stack--light .stack__item > p { color: var(--ink-700); }
.stack--light .stack__item li { color: var(--ink-700); }
.stack--light .stack__item li::before { border-color: var(--steel); }
.stack--light .stack__step { color: var(--accent-text); }
@media (min-width: 1100px) { .stack--light .stack__item + .stack__item { border-left: 0; } }

/* ---------- Process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; position: relative; padding-top: 1.5rem; border-top: 2px solid var(--ink-900); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--f-mono); font-size: .8rem; font-weight: 500; color: var(--accent-text); margin-bottom: .9rem; }
.steps h3 + p { margin-top: .6rem; color: var(--ink-700); }
.section--dark .steps li { border-top-color: var(--steel-300); }
.section--dark .steps li::before { color: var(--accent); }
.section--dark .steps p { color: var(--muted-dark); }

/* Long-form numbered process (How it works) */
.process { list-style: none; margin: 0; padding: 0; counter-reset: proc; }
.process > li { counter-increment: proc; display: grid; gap: 1rem 2.5rem; padding: clamp(2rem, 1.5rem + 1.5vw, 3rem) 0; border-top: 1px solid var(--line); }
.process > li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .process > li { grid-template-columns: 120px minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.process > li::before { content: "0" counter(proc); font-family: var(--f-mono); font-size: 2rem; line-height: 1; color: var(--accent-text); }
.process__body p { color: var(--ink-700); }
.process__body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.process__body li { padding-left: 1.6rem; position: relative; color: var(--ink-700); }
.process__body li svg { position: absolute; left: 0; top: .25em; width: 16px; height: 16px; color: var(--steel); }

/* ---------- Check lists, chips ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.checks li { position: relative; padding-left: 2rem; color: var(--ink-700); line-height: 1.5; }
.checks li svg { position: absolute; left: 0; top: .1em; width: 20px; height: 20px; color: var(--steel); }
.checks strong { color: var(--ink-900); font-weight: 600; }
.checks--2 { gap: .75rem 2rem; }
@media (min-width: 700px) { .checks--2 { grid-template-columns: 1fr 1fr; } }
.section--dark .checks li { color: var(--muted-dark); }
.section--dark .checks li svg { color: var(--accent); }
.section--dark .checks strong { color: var(--white); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: .875rem; font-weight: 500; color: var(--ink-700); line-height: 1.3;
}
.section--white .chips li { background: var(--paper); }
.section--dark .chips li { background: transparent; border-color: var(--line-dark); color: #d3e0e6; }

/* Two-column compare: what we are / are not */
.compare { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem); background: var(--white); }
.compare__col h3 { margin-bottom: 1.25rem; }
.compare__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.compare__col li { padding-left: 1.75rem; position: relative; color: var(--ink-700); }
.compare__col li svg { position: absolute; left: 0; top: .2em; width: 18px; height: 18px; }
.compare__col--yes li svg { color: var(--steel); }
.compare__col--no li svg { color: var(--muted); }

/* Callout */
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--white);
  border-radius: var(--radius-sm); padding: 1.5rem 1.75rem; max-width: 860px;
}
.callout__label { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .6rem; }
.callout p { color: var(--ink-700); }
.callout .callout__big { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; color: var(--ink-900); letter-spacing: -.01em; margin-bottom: .6rem; }

/* Record chain (shared foundation) */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; counter-reset: ch; }
@media (min-width: 640px) { .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .chain { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; } }
.chain li {
  counter-increment: ch; position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem; display: grid; gap: .25rem;
}
.chain li::before { content: "0" counter(ch); font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.chain strong { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-900); }
.chain span { font-size: .8rem; color: var(--muted); line-height: 1.35; }
@media (min-width: 1000px) {
  .chain li { border-radius: 0; }
  .chain li + li { border-left: 0; }
  .chain li:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
  .chain li:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .chain li:not(:last-child)::after {
    content: ""; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; z-index: 1;
    border-top: 1.5px solid var(--steel); border-right: 1.5px solid var(--steel); background: var(--white);
    transform: translateY(-50%) rotate(45deg);
  }
}
.chain-cap { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--muted); }

/* Path (future vision) */
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 800px) { .path { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.path li { border-top: 2px solid var(--steel-300); padding-top: 1rem; }
.path b { display: block; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); font-weight: 500; margin-bottom: .4rem; }
.path span { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; color: var(--ink-900); }

/* Agent library */
.agents { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .agents { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.agent { background: var(--ink-800); padding: 1.25rem 1.35rem; }
.agent__area { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-300); margin-bottom: .45rem; }
.agent h3 { color: var(--white); }
.agent p { color: var(--muted-dark); font-size: .925rem; margin-top: .4rem; }
.agents--light { background: var(--line); border-color: var(--line); }
.agents--light .agent { background: var(--white); }
.agents--light .agent__area { color: var(--steel); }
.agents--light .agent h3 { color: var(--ink-900); }
.agents--light .agent p { color: var(--ink-700); }
.status-pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px;
  border: 1px solid var(--line-dark); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark);
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.section:not(.section--dark) .status-pill { border-color: var(--line); color: var(--muted); }

/* Roles */
.roles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.roles > div { display: grid; gap: .35rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .roles > div { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: baseline; } }
.roles dt { text-wrap: balance; font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h3); color: var(--ink-900); letter-spacing: -.01em; line-height: 1.25; }
.roles dd { margin: 0; color: var(--ink-700); max-width: 65ch; }

/* Segments */
.segments .card h3 { margin-bottom: .6rem; }
.segments .card__needs { margin-top: auto; padding-top: 1.25rem; }
.segments .card__needs b { display: block; font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }

/* Feature list (8-item capability sets) */
.features { display: grid; gap: 0 3rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .features:not(.features--single) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1.1rem; align-items: start;
  padding: 1.5rem 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit;
}
.feature .card__icon { margin: 0; }
.section--white .feature .card__icon { background: var(--white); border: 1px solid var(--line); }
.feature h3 + p { margin-top: .45rem; }
.feature p { color: var(--ink-700); font-size: .975rem; }
.feature .link { padding-top: .75rem; }
a.feature:hover h3 { color: var(--accent-text); }
.features--single .feature:first-child { border-top: 0; padding-top: 0; }

/* Statement */
.statement { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h2); letter-spacing: -.02em; line-height: 1.15; max-width: 48ch; text-wrap: balance; margin: 0; }

/* Related solutions */
.related { display: grid; gap: 1rem; }
@media (min-width: 800px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); text-decoration: none;
  font-weight: 600; color: var(--ink-900); transition: border-color .2s;
}
.related a:hover { border-color: var(--steel-300); }
.related a svg { width: 18px; height: 18px; color: var(--accent-text); flex-shrink: 0; }
.related small { display: block; font-weight: 400; color: var(--muted); font-size: .825rem; margin-top: .15rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding: 1.25rem 0; font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.01em; color: var(--ink-900);
  text-wrap: balance;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1a22' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-700); padding: 0 3rem 1.5rem 0; margin: 0; }

/* ---------- CTA band ---------- */
.cta { background: var(--ink-900); color: var(--white); padding: var(--section-y) 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 50% 90% at 100% 50%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 50% 90% at 100% 50%, #000 0%, transparent 70%);
}
.cta > .wrap { position: relative; }
.cta h2 { max-width: 26ch; }
.cta .lede { margin-top: 1.25rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.contact h1 { max-width: 14ch; }
.contact .lede { margin-top: 1.5rem; }
.contact__copy > p:not(.lede):not(.eyebrow) { color: var(--ink-700); margin-top: 1rem; }
.contact__aside { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.contact__aside-title { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.contact__aside .checks { margin-bottom: 1.75rem; }
.contact__email { font-size: .95rem; color: var(--ink-700); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--ink-900); }
.form label .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1px solid #c9d0d2; border-radius: 10px; padding: .75rem .9rem; min-height: 48px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form select { appearance: none; padding-right: 2.5rem; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 18px no-repeat; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--steel); background-color: var(--white); box-shadow: 0 0 0 3px rgba(47,107,136,.18); }
.form .is-invalid { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180,35,24,.12); }
.form__legend { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: .25rem 0 -.25rem; }
.form__hint { font-size: var(--fs-small); color: var(--muted); margin: -.25rem 0 0; text-align: center; max-width: none; }
.form__status { font-weight: 600; color: var(--steel); margin: 0; max-width: none; min-height: 1px; }
.form__status.is-error { color: #b42318; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: var(--muted-dark); padding: clamp(3.5rem, 3rem + 2vw, 5rem) 0 2rem; border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__about { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__about { grid-column: auto; } }
.footer__about p { margin-top: 1rem; font-size: .925rem; max-width: 36ch; }
.footer__h { font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-300); margin: 0 0 1rem; line-height: 1.4; }
.footer__grid nav a, .footer__grid > div > a { display: block; padding: .3rem 0; color: #dbe6eb; text-decoration: none; font-size: .925rem; }
.footer__grid a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: .825rem; }
.footer__base p { margin: 0; max-width: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-items: center; }
.notfound h1 { max-width: 14ch; }
.notfound .lede { margin-top: 1.25rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Utilities ---------- */
.mt-l { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.mt-m { margin-top: 2rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
@media (max-width: 767px) { .nw-sm { white-space: nowrap; } }
.hblock { display: block; text-wrap: balance; }
.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; }
