/* ============================================================
   Foceon — instrument-grade design system
   No shadows. No gradients. Hairline structure only.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: oklch(1 0 0);
  --surface: oklch(0.984 0.006 255);
  --surface-2: oklch(0.965 0.008 255);
  --line: oklch(0.905 0.012 255);
  --line-strong: oklch(0.84 0.016 255);

  /* Ink */
  --ink: oklch(0.24 0.045 258);
  --ink-muted: oklch(0.44 0.035 258);
  --ink-faint: oklch(0.56 0.03 258);

  /* Brand */
  --brand: oklch(0.47 0.15 258);
  --brand-deep: oklch(0.30 0.13 260);
  --brand-tint: oklch(0.955 0.02 258);
  --spectral: oklch(0.62 0.13 200);
  --danger: oklch(0.5 0.18 25);

  /* Instrument (dark) */
  --instrument: oklch(0.16 0.03 260);
  --instrument-2: oklch(0.21 0.035 260);
  --instrument-line: oklch(0.34 0.04 260);
  --instrument-ink: oklch(0.96 0.01 255);
  --instrument-muted: oklch(0.75 0.02 255);
  --instrument-spectral: oklch(0.78 0.12 200);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --brand-accent: oklch(0.55 0.14 250);
  --brand-accent-2: oklch(0.72 0.12 200);

  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-base: 1; --z-nav: 100; --z-dropdown: 120; --z-mobile: 130; --z-toast: 200;
  --wrap: 1200px;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink); background: var(--bg);
  line-height: 1.6;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.07rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: var(--z-toast);
  background: var(--brand-deep); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top 0.2s var(--ease-out); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

/* ── layout helpers ─────────────────────────────────────── */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.section { padding: clamp(3.5rem, 2.6rem + 5.5vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }

.kicker { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--brand); display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: 1.1rem; }
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--brand); opacity: 0.6; }

.section__head { max-width: 48rem; margin-bottom: clamp(2.2rem, 1.8rem + 2.6vw, 3.6rem); }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: end; }
.section__title { font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.75rem); line-height: 1.08; letter-spacing: -0.025em;
  text-wrap: balance; }
.section__title--sm { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.section__sub { color: var(--ink-muted); max-width: 36rem; }

.eyebrow-note { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint); }

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1rem; text-wrap: pretty; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em;
  margin: 2rem 0 0.7rem; }
.prose ul { padding-left: 1.1rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: 0.4rem; }

/* ── buttons ────────────────────────────────────────────── */
.btn { --pad-y: 0.62rem; --pad-x: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: var(--pad-y) var(--pad-x); font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  border-radius: var(--r-sm); border: 1px solid transparent;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out), transform 0.2s var(--ease-out); white-space: nowrap; }
.btn--solid { background: var(--brand-deep); color: #fff; }
.btn--solid:hover { background: oklch(0.35 0.14 260); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--lg { --pad-y: 0.85rem; --pad-x: 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER / MEGA-NAV
   ============================================================ */
.nav { position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--instrument);
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out); }
.nav[data-elevated="true"] { border-bottom-color: var(--instrument-line);
  background: var(--instrument); }
.nav__inner { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--instrument-ink); justify-self: start; }
.brand__mark { color: var(--instrument-spectral); display: inline-flex; transition: transform 0.5s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.nav .btn--ghost { color: var(--instrument-ink); border-color: var(--instrument-line); }
.nav .btn--ghost:hover { color: var(--instrument-spectral); border-color: var(--instrument-spectral); }

.nav__menu { display: flex; align-items: center; gap: 0.15rem; justify-self: center; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.55rem 0.7rem;
  font-size: 0.92rem; font-weight: 500; color: var(--instrument-muted); border-radius: var(--r-sm); position: relative;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out); background: none; border: 0; }
.nav__link::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.34rem; height: 1.5px;
  background: var(--instrument-spectral); border-radius: 2px; transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform 0.28s var(--ease-out), opacity 0.2s var(--ease-out); }
.nav__link:hover::after { transform: scaleX(1); opacity: 0.9; }
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--instrument-ink); background: var(--instrument-2); }
.nav__link[aria-current="page"] { color: var(--instrument-spectral); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }
.nav__caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px,-1px); transition: transform 0.2s var(--ease-out); opacity: 0.7; }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(-135deg); }

.nav__panel { position: absolute; top: calc(100% + 8px); left: 50%; z-index: var(--z-dropdown);
  min-width: 320px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 0.5rem; display: none;
  transform: translateX(-50%) translateY(-6px); opacity: 0; }
.nav__panel[data-open="true"] { display: block; animation: panelIn 0.24s var(--ease-out) forwards; }
.nav__panel--wide { min-width: 520px; display: none; }
.nav__panel--wide[data-open="true"] { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
  animation: panelIn 0.24s var(--ease-out) forwards; }
.nav__panel a { display: block; padding: 0.6rem 0.7rem; border-radius: var(--r-sm); color: var(--ink); }
.nav__panel a:hover { background: var(--surface-2); }
.nav__panel a b { display: block; font-weight: 600; font-size: 0.94rem; }
.nav__panel a span { display: block; font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.1rem; }
@keyframes panelIn { to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* products mega-panel */
.nav__panel--products { min-width: 560px; display: none; padding: 0.6rem; }
.nav__panel--products[data-open="true"] { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem;
  animation: panelIn 0.24s var(--ease-out) forwards; }
.nav__prod { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.7rem; border-radius: var(--r-md);
  position: relative; overflow: hidden; }
.nav__prod::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 3px; border-radius: 3px;
  background: var(--pc); opacity: 0; transition: opacity 0.2s var(--ease-out); }
.nav__prod:hover { background: color-mix(in oklab, var(--pc) 8%, var(--bg)); }
.nav__prod:hover::before { opacity: 1; }
.nav__prod-mark { display: inline-flex; width: 40px; height: 40px; border-radius: 9px; flex: none;
  align-items: center; justify-content: center; background: color-mix(in oklab, var(--pc) 10%, var(--bg));
  border: 1px solid color-mix(in oklab, var(--pc) 22%, var(--line)); }
.nav__prod-mark img { width: 26px; height: 26px; }
.nav__prod-text b { display: block; font-weight: 600; font-size: 0.95rem; }
.nav__prod-text span { display: block; font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.05rem; }

.nav__cta { display: flex; align-items: center; gap: 0.6rem; justify-self: end; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; justify-self: end; }
.nav__toggle span { width: 22px; height: 2px; background: var(--instrument-ink); border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out); }
.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); }

.nav__mobile { display: none; padding: 0.5rem 1.25rem 1.5rem; border-bottom: 1px solid var(--instrument-line);
  background: var(--instrument); max-height: calc(100vh - 66px); overflow-y: auto; }
.nav__mobile.is-open { display: block; }
.nav__mgroup { border-bottom: 1px solid var(--instrument-line); padding: 0.5rem 0; }
.nav__mgroup > span { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--instrument-spectral); display: block; padding: 0.5rem 0 0.3rem; }
.nav__mobile a { display: block; padding: 0.55rem 0; font-weight: 500; color: var(--instrument-ink); }
.nav__mcta { margin-top: 1rem; }

/* ============================================================
   HERO (home) + PAGE HERO
   ============================================================ */
.hero { position: relative; isolation: isolate; overflow: hidden;
  background: var(--instrument); color: var(--instrument-ink);
  padding: clamp(4.5rem, 3.5rem + 9vw, 8.5rem) 0 clamp(3.5rem, 3rem + 5vw, 6.5rem); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.hero__inner { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; max-width: 60rem; }
.hero__title { font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.5rem, 1.6rem + 4.6vw, 5rem); line-height: 0.99; letter-spacing: -0.03em;
  margin: 0.4rem 0 1.4rem; text-wrap: balance; }
.hero__title-accent { color: var(--instrument-spectral); }
.hero__lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--instrument-muted);
  line-height: 1.68; max-width: 40rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: clamp(2.2rem, 1.8rem + 2.5vw, 3.6rem); }
.hero .btn--ghost { color: var(--instrument-ink); border-color: var(--instrument-line); }
.hero .btn--ghost:hover { border-color: var(--instrument-spectral); color: var(--instrument-spectral); }
.hero__spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--instrument-line); border: 1px solid var(--instrument-line); border-radius: var(--r-md);
  overflow: hidden; max-width: 46rem; }
.hero__spec > div { background: var(--instrument); padding: 1.1rem 1.25rem; }
.hero__spec dt { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--instrument-spectral); margin-bottom: 0.35rem; }
.hero__spec dd { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--instrument-ink); }

/* Hero entrance: plays on load (JS-independent), staggered rise */
.hero__enter > * { animation: heroRise 0.85s var(--ease-out) both; }
.hero__enter > *:nth-child(1) { animation-delay: 0.04s; }
.hero__enter > *:nth-child(2) { animation-delay: 0.13s; }
.hero__enter > *:nth-child(3) { animation-delay: 0.24s; }
.hero__enter > *:nth-child(4) { animation-delay: 0.34s; }
.hero__enter > *:nth-child(5) { animation-delay: 0.42s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Page hero (interior pages) */
.phero { background: var(--instrument); color: var(--instrument-ink); position: relative; overflow: hidden;
  padding: clamp(3.5rem, 2.8rem + 5vw, 6rem) 0 clamp(3rem, 2.4rem + 4vw, 5rem); }
.phero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.phero--solo .phero__grid { grid-template-columns: 1fr; max-width: 54rem; }
.phero__crumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--instrument-muted); margin-bottom: 1rem; }
.phero__crumb a { color: var(--instrument-spectral); }
.phero__title { font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); line-height: 1.03; letter-spacing: -0.03em; text-wrap: balance; margin-bottom: 1.1rem; }
.phero__lede { color: var(--instrument-muted); font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.66; max-width: 40rem; margin-bottom: 1.6rem; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.phero .btn--ghost { color: var(--instrument-ink); border-color: var(--instrument-line); }
.phero .btn--ghost:hover { border-color: var(--instrument-spectral); color: var(--instrument-spectral); }
.phero__aside { border: 1px solid var(--instrument-line); border-radius: var(--r-lg); overflow: hidden;
  background: oklch(0.13 0.025 262); }
.phero__aside canvas { width: 100%; aspect-ratio: 4 / 3; }
.phero__aside figcaption { font-family: var(--font-mono); font-size: 0.74rem; color: var(--instrument-muted);
  padding: 0.8rem 1rem; border-top: 1px solid var(--instrument-line); }

/* ============================================================
   PIPELINE
   ============================================================ */
.pipeline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.6rem; }
.pipeline__step { flex: 1 1 190px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.2rem 1.3rem; }
.pipeline__step span { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.pipeline__step small { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-muted); }
.pipeline__step--act { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.pipeline__step--act small { color: oklch(0.85 0.06 258); }
.pipeline__arrow { display: flex; align-items: center; color: var(--ink-faint); font-size: 1.3rem; padding: 0 0.1rem; }

/* ============================================================
   FEATURE SPLIT (alternating)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 4vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(3rem, 2.4rem + 3vw, 5rem); }
.split--rev .split__media { order: 2; }
.split__body h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.9rem; text-wrap: balance; }
.split__body > p { color: var(--ink-muted); margin-bottom: 1.2rem; max-width: 40ch; }
.split__list { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.split__list li { position: relative; padding-left: 1.6rem; font-size: 0.96rem; }
.split__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px;
  border: 1.5px solid var(--brand); border-radius: 2px; transform: rotate(45deg); }
.split__media { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.split__media canvas, .split__media .svgbox { width: 100%; display: block; }
.split__media figcaption { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint);
  padding: 0.8rem 1rem; border-top: 1px solid var(--line); background: var(--bg); }

/* ============================================================
   CALLOUTS (varied grid, not identical icon-cards)
   ============================================================ */
.callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.callout { background: var(--bg); padding: 1.6rem 1.5rem; display: flex; gap: 1rem;
  transition: background-color 0.25s var(--ease-out); }
.callout:hover { background: var(--brand-tint); }
.callout__mark { flex-shrink: 0; width: 10px; height: 10px; margin-top: 0.5rem; border: 1.5px solid var(--brand);
  border-radius: 2px; transform: rotate(45deg); background: var(--brand-tint); }
.callout h3 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.callout p { color: var(--ink-muted); font-size: 0.94rem; }
.callout__tag { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--brand); margin-bottom: 0.35rem; }

/* ============================================================
   SPEC TABLE / COMPARE
   ============================================================ */
.tablewrap { border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 520px; }
table.data caption { text-align: left; padding: 0.9rem 1.1rem; font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--ink-faint); background: var(--surface-2); border-bottom: 1px solid var(--line); }
table.data th, table.data td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-muted); background: var(--surface); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td:first-child, table.data th:first-child { font-weight: 600; color: var(--ink); }
table.data .yes { color: var(--brand); font-weight: 600; }
table.data .no { color: var(--ink-faint); }
table.data .mono { font-family: var(--font-mono); font-size: 0.86rem; }

/* ============================================================
   READOUT (instrument metrics)
   ============================================================ */
.readout { border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.readout__bar { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1.1rem;
  background: var(--surface-2); border-bottom: 1px solid var(--line); }
.readout__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--spectral); }
.readout__label { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.03em; }
.readout__note { margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); }
.readout__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); }
.readout__cell { background: var(--bg); padding: 1.4rem; display: flex; flex-direction: column; }
.readout__key { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-muted); margin-bottom: 0.55rem; }
.readout__val { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 1.2rem + 1.3vw, 2rem);
  letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.readout__unit { font-family: var(--font-mono); font-weight: 400; font-size: 0.78rem; color: var(--brand); letter-spacing: 0; }
.readout__meta { margin-top: 0.65rem; font-size: 0.84rem; color: var(--ink-faint); }

/* ============================================================
   CHECKLIST / STEPS / TIMELINE
   ============================================================ */
.checklist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.9rem 2rem; }
.checklist li { position: relative; padding-left: 1.7rem; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 11px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 0; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
  padding: 1.4rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--brand); font-weight: 600; padding-top: 0.15rem; }
.steps h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; margin-bottom: 0.3rem; }
.steps p { color: var(--ink-muted); font-size: 0.94rem; }

.timeline { list-style: none; padding: 0; display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.timeline li { background: var(--bg); padding: 1.4rem 1.5rem; display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem; }
.timeline .phase { font-family: var(--font-mono); font-size: 0.82rem; color: var(--brand); font-weight: 600; }
.timeline h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.timeline p { color: var(--ink-muted); font-size: 0.93rem; }

/* ============================================================
   PERSONAS / INTEGRATIONS / GLOSSARY
   ============================================================ */
.personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.persona { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; background: var(--bg); }
.persona__role { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brand); margin-bottom: 0.7rem; }
.persona h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.persona p { color: var(--ink-muted); font-size: 0.93rem; margin-bottom: 0.8rem; }
.persona ul { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.persona li { position: relative; padding-left: 1.1rem; font-size: 0.9rem; color: var(--ink); }
.persona li::before { content: "·"; position: absolute; left: 0.2rem; color: var(--brand); font-weight: 700; }

.integrations { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.integrations span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink);
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.5rem 1rem; }

.glossary { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.glossary > div { display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem; padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line); }
.glossary > div:last-child { border-bottom: 0; }
.glossary dt { font-family: var(--font-display); font-weight: 600; }
.glossary dd { color: var(--ink-muted); font-size: 0.94rem; }

/* ============================================================
   AGENT LOOP (interactive)
   ============================================================ */
.loop__layout { display: grid; grid-template-columns: minmax(280px, 350px) 1fr; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); align-items: start; }
.loop__list { display: flex; flex-direction: column; gap: 0.4rem; }
.loop__tab { display: flex; align-items: center; gap: 0.85rem; text-align: left; padding: 0.9rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink-muted);
  font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), background-color 0.2s var(--ease-out); }
.loop__tab:hover { border-color: var(--line-strong); color: var(--ink); }
.loop__tab[aria-selected="true"] { color: var(--ink); border-color: var(--brand); background: var(--brand-tint); }
.loop__tab-idx { font-family: var(--font-mono); font-size: 0.78rem; color: var(--brand); width: 1.6rem; flex-shrink: 0; }
.loop__panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); min-height: 300px; }
.loop__panel-tag { font-family: var(--font-mono); font-size: 0.76rem; color: var(--brand); letter-spacing: 0.04em; text-transform: uppercase; }
.loop__panel h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 1.15rem + 1vw, 1.85rem);
  letter-spacing: -0.02em; margin: 0.6rem 0 0.9rem; }
.loop__panel-desc { color: var(--ink-muted); max-width: 46rem; margin-bottom: 1.4rem; }
.loop__controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.loop__chip { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.85rem; }
.loop__chip b { color: var(--brand); font-weight: 600; }
.loop__more { font-weight: 600; color: var(--brand); font-size: 0.92rem; display: inline-flex; gap: 0.4em; }

/* ============================================================
   FAQ (native details)
   ============================================================ */
.faq { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); background: var(--bg); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex-shrink: 0; border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform 0.25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--ink-muted); max-width: 70ch; }

/* ============================================================
   VISUAL BOXES (canvas)
   ============================================================ */
.viz { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.viz canvas { width: 100%; display: block; }
.viz figcaption { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint);
  padding: 0.8rem 1rem; border-top: 1px solid var(--line); background: var(--bg); }

/* ============================================================
   QUOTE / PRINCIPLE BAND
   ============================================================ */
.principle { max-width: 46rem; }
.principle p { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.24;
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.1rem); text-wrap: balance; }
.principle cite { display: block; margin-top: 1.2rem; font-style: normal; font-family: var(--font-mono);
  font-size: 0.82rem; color: var(--ink-faint); }

/* ============================================================
   PRICING
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.plan { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2rem 1.75rem; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--brand); border-width: 2px; }
.plan__flag { position: absolute; top: -0.75rem; left: 1.75rem; background: var(--brand-deep); color: #fff;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; padding: 0.3rem 0.7rem; border-radius: 999px; }
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.plan__price { margin: 0.9rem 0 0.4rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; }
.plan__price strong { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; }
.plan__price span { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-muted); }
.plan__for { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 1.3rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.plan__features { list-style: none; padding: 0; display: grid; gap: 0.7rem; margin-bottom: 1.8rem; flex: 1; }
.plan__features li { position: relative; padding-left: 1.5rem; font-size: 0.94rem; color: var(--ink); }
.plan__features li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px;
  border: 1.5px solid var(--brand); border-radius: 2px; }
.plan__features em { color: var(--brand); font-style: normal; font-weight: 600; }
.pricing__note { margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-faint); text-align: center; }

/* ============================================================
   CTA + FORM
   ============================================================ */
.cta { background: var(--bg); border-top: 1px solid var(--line); }
.cta__inner { max-width: 46rem; text-align: center; margin-inline: auto; }
.cta__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 2.5vw, 3rem);
  letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.cta__lede { color: var(--ink-muted); font-size: 1.1rem; margin: 1rem auto 2rem; max-width: 38rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.form { display: grid; gap: 0.9rem; max-width: 520px; margin-inline: auto; text-align: left; }
.form--inline { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; max-width: 560px; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.field input, .field select, .field textarea { padding: 0.8rem 1rem; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); font: inherit; color: var(--ink); background: var(--bg); width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field :focus-visible { border-color: var(--brand); outline: 2px solid var(--brand-tint); outline-offset: 0; }
.form--inline input { flex: 1 1 240px; max-width: 340px; padding: 0.85rem 1rem; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); font: inherit; background: var(--bg); }
.form__status { font-family: var(--font-mono); font-size: 0.85rem; min-height: 1.2em; }
.form__status[data-state="ok"] { color: var(--brand); }
.form__status[data-state="err"] { color: var(--danger); }
.form--inline .form__status { flex-basis: 100%; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--instrument); color: var(--instrument-ink); padding-top: clamp(3rem, 2rem + 4vw, 5rem); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--instrument-line); }
.footer__brand .brand__name { font-size: 1.4rem; color: var(--instrument-ink); }
.footer__brand p { color: var(--instrument-muted); margin-top: 0.6rem; max-width: 26rem; }
.footer__nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.footer__nav h4 { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--instrument-spectral); margin-bottom: 0.9rem; }
.footer__nav a { display: block; color: var(--instrument-muted); padding: 0.32rem 0; font-size: 0.92rem;
  transition: color 0.2s var(--ease-out); }
.footer__nav a:hover { color: var(--instrument-ink); }
.footer__bar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding: 1.5rem 0 2.5rem;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--instrument-muted); }
.footer__status { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--instrument-spectral);
  animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ============================================================
   REVEAL MOTION
   ============================================================ */
[data-reveal] {
  transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out); }
/* Content is visible by default; only hidden once JS is confirmed present,
   so sections never ship blank when scripting fails or is disabled. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js .split[data-reveal] .split__media { transform: translateY(20px);
  transition: transform 0.72s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.js .split[data-reveal].is-visible .split__media { transform: none; }

/* ============================================================
   PRODUCT GRID (home + product pages)
   ============================================================ */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pcard { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1.5rem 1.5rem 1.35rem; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg); color: var(--ink); isolation: isolate;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out); }
.pcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--pc); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out); }
.pcard:hover { transform: translateY(-6px); border-color: color-mix(in oklab, var(--pc) 45%, var(--line)); }
.pcard:hover::before { transform: scaleX(1); }
.pcard__top { display: flex; align-items: center; justify-content: space-between; }
.pcard__logo { display: inline-flex; width: 52px; height: 52px; border-radius: 12px; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--pc) 10%, var(--bg)); border: 1px solid color-mix(in oklab, var(--pc) 22%, var(--line));
  transition: transform 0.5s var(--ease-out); }
.pcard__logo img { width: 32px; height: 32px; }
.pcard:hover .pcard__logo { transform: translateY(-2px) rotate(-4deg); }
.pcard__role { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--pc); background: color-mix(in oklab, var(--pc) 9%, var(--bg)); padding: 0.28rem 0.55rem; border-radius: 999px; }
.pcard__name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 0.3rem; }
.pcard__tag { color: var(--ink-muted); font-size: 0.95rem; line-height: 1.5; flex: 1; }
.pcard__more { font-weight: 600; font-size: 0.9rem; color: var(--pc); display: inline-flex; align-items: center; gap: 0.4em; }
.pcard__more span { transition: transform 0.3s var(--ease-out); }
.pcard:hover .pcard__more span { transform: translateX(4px); }

/* ============================================================
   PRODUCT HERO
   ============================================================ */
.prodhero { --pc: var(--brand); --pa: var(--brand-accent-2); }
.prodhero .wrap { position: relative; z-index: 1; }
.prodhero__id { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.prodhero__logo { display: inline-flex; width: 62px; height: 62px; border-radius: var(--r-lg); align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--pc) 32%, var(--instrument));
  border: 1px solid color-mix(in oklab, var(--pa) 40%, var(--instrument-line)); animation: floaty 6s ease-in-out infinite; }
.prodhero__logo-img { width: 40px; height: 40px; filter: brightness(0) invert(1); opacity: 0.95; }
.prodhero__role { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--instrument-ink); background: color-mix(in oklab, var(--pa) 20%, var(--bg));
  border: 1px solid color-mix(in oklab, var(--pa) 34%, transparent); padding: 0.35rem 0.7rem; border-radius: 999px; }
.prodhero__title { font-size: clamp(2.6rem, 1.8rem + 4vw, 4.6rem); margin-bottom: 0.5rem; }
.prodhero__tagline { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  color: color-mix(in oklab, var(--pa) 60%, var(--instrument-ink)); letter-spacing: -0.01em; margin-bottom: 1.1rem; text-wrap: balance; }
.prodhero__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 1.6rem; }
.prodhero .loop__chip { color: var(--instrument-ink); background: color-mix(in oklab, var(--pc) 22%, var(--instrument-2));
  border-color: color-mix(in oklab, var(--pa) 30%, var(--instrument-line)); }
.prodhero .loop__chip b { color: color-mix(in oklab, var(--pa) 65%, #fff); }
.prodhero__siblings { margin-top: 2rem; }
.prodhero__siblings > span { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--instrument-muted); display: block; margin-bottom: 0.6rem; }
.prodhero__siblings-row { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.prodhero__siblings-row a { display: inline-flex; width: 44px; height: 44px; border-radius: 11px; align-items: center; justify-content: center;
  background: var(--instrument-2); border: 1px solid var(--instrument-line);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out); }
.prodhero__siblings-row a:hover { transform: translateY(-3px); border-color: var(--pc); }
.prodhero__siblings-row img { width: 26px; height: 26px; filter: brightness(0) invert(1); opacity: 0.85; }
.prodhero__aside { border-color: color-mix(in oklab, var(--pa) 30%, var(--instrument-line)); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__toggle { display: flex; }
  .section__head--split { grid-template-columns: 1fr; align-items: start; }
  .phero__grid, .split, .split--rev .split__media { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .loop__layout { grid-template-columns: 1fr; }
  .loop__list { flex-direction: row; overflow-x: auto; padding-bottom: 0.5rem; }
  .loop__tab { flex: 0 0 auto; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero__spec { grid-template-columns: 1fr; }
  .pipeline__arrow { display: none; }
  .pgrid { grid-template-columns: 1fr; }
  .timeline li, .glossary > div { grid-template-columns: 1fr; gap: 0.4rem; }
  .footer__nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .split__media { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__enter > * { animation: none !important; }
  .footer__pulse, .prodhero__logo { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
