/* Axinora Labs brand system, v1 (2026-11-05)
   Parent palette: warm ink on paper, one red signal reserved for results.
   Product accents (ScrapeOra violet, AgentOray cyan) appear only inside product contexts. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  /* IBM Plex Mono Medium, subset and renamed as the OFL requires (Reserved Font Name "Plex") */
  font-family: "Axinora Mono";
  src: url("/assets/fonts/axinora-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Neutrals */
  --paper: #F9F8F5;
  --stone: #F1EEE8;
  --white: #FFFFFF;
  --ink: #201E1D;      /* logo ink */
  --body: #3A3633;
  --muted: #645E58;
  --tone: #7D766F;     /* second clause of two tone headlines (large text only) */
  --faint: #8A837C;    /* rules and large text only */
  --line: #E4E0D8;
  --line-2: #CFC8BD;
  --dark: #07090F;     /* logo "Dark", app icon ground */

  /* Signal */
  --red: #EC3013;      /* logo red: results, never body text */
  --red-ink: #C4290F;
  --ok: #1F8A4C;       /* live status dot */

  /* Product accents */
  --so: #8B6BFF;
  --so-soft: #B9A6FF;
  --so-ink: #6B4EE6;
  --ao: #22D3EE;
  --ao-ink: #0E7490;

  /* Closing band in warm ink */
  --night-text: #E7E3DD;
  --night-muted: #A39C93;
  --night-line: #3A3633;

  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Axinora Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 112px);
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-sm: 0 1px 2px rgba(32, 30, 29, .06);
  --shadow: 0 1px 2px rgba(32, 30, 29, .06), 0 12px 32px -16px rgba(32, 30, 29, .22);
  --shadow-lg: 0 1px 2px rgba(32, 30, 29, .06), 0 28px 56px -28px rgba(32, 30, 29, .34);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 650; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
strong, b { font-weight: 650; }
small { font-size: inherit; }
::selection { background: rgba(236, 48, 19, .16); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-1); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: var(--r-2);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-weight: 500; }
.dot { color: var(--red); }
.tone { color: var(--tone); }
.fig { margin-right: 10px; font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }

/* ---------- Shared type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; line-height: 1.4;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; flex: none; width: 16px; height: 3px; background: var(--ink); }

.head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(20px, 5vw, 72px); align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.head h2, .story h2, .company h2, .contact h2 {
  font-size: clamp(30px, 3.5vw, 46px); line-height: 1.08; letter-spacing: -0.026em;
}
.head__lede { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 54ch; }

.link {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: var(--r-2);
  background: var(--ink); color: #fff;
  font: 600 16px/1.1 var(--font-sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--body); border-color: var(--body); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn__arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
.btn:hover .btn__arrow--down { transform: translateY(3px); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--body);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* Product glyphs, drawn from each product's own logo */
.glyph { display: inline-block; flex: none; }
.glyph--so {
  width: 10px; height: 10px;
  background:
    linear-gradient(var(--so), var(--so)) 0 0 / 10px 2.4px no-repeat,
    linear-gradient(var(--so), var(--so)) 0 3.8px / 7px 2.4px no-repeat,
    linear-gradient(var(--so-soft), var(--so-soft)) 0 7.6px / 4.2px 2.4px no-repeat;
}
.glyph--ao { width: 3px; height: 11px; border-radius: 2px; background: var(--ao); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 248, 245, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 36px; height: var(--nav-h); }
.nav__logo { display: block; flex: none; border-radius: var(--r-1); }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__links a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0;
  font-size: 15px; font-weight: 500; color: var(--body); text-decoration: none;
  transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active::after { background: var(--red); }   /* the step you are on */
.nav__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-2); cursor: pointer;
}
.nav__bars { display: grid; gap: 4px; width: 18px; }
.nav__bars i { display: block; width: 12px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s, width .2s, margin .2s; }
.nav__bars i:nth-child(2) { margin-left: 3px; }
.nav__bars i:nth-child(3) { margin-left: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars i { width: 18px; margin-left: 0; }
.nav__toggle[aria-expanded="true"] .nav__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars i:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__menu { border-top: 1px solid var(--line); background: var(--paper); }
.nav__menu .wrap { display: flex; flex-direction: column; padding-top: 6px; padding-bottom: 18px; }
.nav__menu a {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.nav__menu a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.hero__grid {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: min(calc(100% - 2 * var(--gutter)), var(--wrap));
  transform: translateX(-50%);
  border-right: 1px solid rgba(32, 30, 29, .06);
  background-image: linear-gradient(to right, rgba(32, 30, 29, .06) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .35) 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .35) 70%, transparent 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero__title {
  font-size: clamp(40px, 5vw, 66px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 650;
}
.hero__lede { margin-top: 26px; max-width: 56ch; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.6; color: var(--body); }
.hero__lede strong { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.hero__note i { flex: none; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 138, 76, .14); }

/* Run trace panel */
.trace {
  margin: 0; padding: 18px 20px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3);
  box-shadow: var(--shadow-lg);
}
.trace__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.trace__title { font: 500 12px/1.4 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.trace__legend { display: flex; gap: 16px; font-size: 13px; color: var(--body); }
.trace__legend a {
  display: flex; align-items: center; gap: 7px; color: var(--body); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.trace__legend a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.trace__rows { padding: 6px 0; }
.trace__row { display: grid; grid-template-columns: 176px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 40px; }
.trace__label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--body); white-space: nowrap; }
.trace__label::before { content: ""; flex: none; }
.trace__row[data-product="so"] .trace__label::before {
  width: 10px; height: 10px;
  background:
    linear-gradient(var(--so), var(--so)) 0 0 / 10px 2.4px no-repeat,
    linear-gradient(var(--so), var(--so)) 0 3.8px / 7px 2.4px no-repeat,
    linear-gradient(var(--so-soft), var(--so-soft)) 0 7.6px / 4.2px 2.4px no-repeat;
}
.trace__row[data-product="ao"] .trace__label::before { width: 3px; height: 11px; margin: 0 3.5px; border-radius: 2px; background: var(--ao); }
.trace__track {
  position: relative; height: 14px;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 20%);
}
.trace__bar {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--s) * 1%); width: calc(var(--w) * 1%);
  background: var(--ink); transform-origin: left center;
}
.trace__row--result .trace__bar { background: var(--red); }
.trace__row--result .trace__label { color: var(--ink); font-weight: 600; }
.trace__foot {
  display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.trace__foot .mono { font-size: 12px; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section--white { background: var(--white); }
.section--stone { background: var(--stone); }

/* ---------- Products overview ---------- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pcard {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3);
  transition: border-color .2s, box-shadow .25s;
}
.pcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.pcard--so { --accent: var(--so); }
.pcard--ao { --accent: var(--ao); }
.pcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.pcard__logo { height: 26px; width: auto; }
.pcard__kind { font: 500 12px/1.5 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pcard__title { margin-top: 12px; font-size: clamp(24px, 2.3vw, 30px); line-height: 1.15; letter-spacing: -0.026em; }
.pcard__body { margin-top: 14px; }
.pcard__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: auto; padding-top: 30px; }

.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { padding-top: 3px; font: 500 11.5px/1.5 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 15.5px; line-height: 1.5; color: var(--ink); }

/* ---------- Product sections ---------- */
.product--so { --accent: var(--so); --accent-ink: var(--so-ink); }
.product--ao { --accent: var(--ao); --accent-ink: var(--ao-ink); }
.product__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 22px; margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line);
}
.product__logo { height: 30px; width: auto; }
.product__meta { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.product--so .eyebrow::before {
  width: 12px; height: 12px;
  background:
    linear-gradient(var(--so), var(--so)) 0 0 / 12px 3px no-repeat,
    linear-gradient(var(--so), var(--so)) 0 4.5px / 8.4px 3px no-repeat,
    linear-gradient(var(--so-soft), var(--so-soft)) 0 9px / 5px 3px no-repeat;
}
.product--ao .eyebrow::before { width: 4px; height: 13px; border-radius: 2px; background: var(--ao); }

.split { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse { grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); }

.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__num { padding-top: 4px; font-size: 13px; color: var(--accent-ink, var(--muted)); }
.steps h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.016em; font-weight: 650; }
.steps p { margin-top: 6px; font-size: 16px; }

.shot { margin: 0; }
.shot img {
  width: 100%; height: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3);
  box-shadow: var(--shadow-lg);
}
.shot--dark img { background: #0B0E12; border-color: #222833; }
.shot figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

.features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3.4vw, 44px);
  margin-top: clamp(56px, 7vw, 96px);
}
.features--four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.feature { position: relative; padding: 24px 0 34px; border-top: 1px solid var(--line-2); }
.feature::before { content: ""; position: absolute; top: -2px; left: 0; width: 28px; height: 3px; background: var(--accent, var(--ink)); }
.feature h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.016em; font-weight: 650; }
.feature p { margin-top: 8px; font-size: 16px; }
.feature .feature__tag {
  margin: 0 0 10px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--accent-ink, var(--muted));
}

.integrations {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(22px, 3vw, 40px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3);
}
.integrations__title {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 500 12px/1.4 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.count { color: var(--accent-ink); }
.chips li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.chips li:first-child { border-top: 1px solid var(--line); }
.chips small { font-size: 14px; font-weight: 400; color: var(--muted); }
.chips--compact { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--compact li, .chips--compact li:first-child {
  display: block; padding: 8px 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2);
  font-size: 14.5px; font-weight: 500;
}
.integrations__soon { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.tag {
  display: inline-block; margin-right: 10px; padding: 3px 7px;
  border: 1px dashed var(--line-2); border-radius: var(--r-1);
  font: 500 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--body);
  vertical-align: 1px;
}

.assure { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 36px); margin-top: clamp(40px, 5vw, 56px); }
.assure li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.55; }
.assure li::before {
  content: ""; position: absolute; left: 3px; top: 4px; width: 6px; height: 11px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.assure strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16px; }

.cta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(20px, 2.6vw, 28px) clamp(20px, 3vw, 32px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3);
}
.product--ao .cta-row { background: var(--white); }
.cta-row p { flex: 1 1 420px; max-width: 70ch; font-size: 16px; }
.cta-row strong { color: var(--ink); }
.cta-row__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.scanned { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin: calc(-1 * clamp(12px, 2vw, 32px)) 0 clamp(36px, 5vw, 56px); }
.scanned__label { font: 500 12px/1.4 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.scanned ul { display: flex; flex-wrap: wrap; gap: 8px; }
.scanned li {
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: 14px; font-weight: 600; color: var(--ink);
}

.weights {
  margin-top: clamp(56px, 7vw, 88px); padding: clamp(22px, 3vw, 40px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3);
}
.weights__head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 24px; }
.weights__head h3 { font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -0.022em; }
.weights__head p { max-width: 54ch; font-size: 15.5px; color: var(--muted); }
.weights__bar { display: flex; gap: 3px; height: 14px; }
.weights__bar span { flex: var(--w) 1 0; min-width: 0; }
.weights__bar span:nth-child(1), .weights__legend li:nth-child(1) { --c: #0E7490; }
.weights__bar span:nth-child(2), .weights__legend li:nth-child(2) { --c: #0891B2; }
.weights__bar span:nth-child(3), .weights__legend li:nth-child(3) { --c: #22D3EE; }
.weights__bar span:nth-child(4), .weights__legend li:nth-child(4) { --c: #67E8F9; }
.weights__bar span:nth-child(5), .weights__legend li:nth-child(5) { --c: #A5F3FC; }
.weights__bar span { background: var(--c); }
.weights__legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 20px; margin-top: 18px; }
.weights__legend li { position: relative; padding-left: 18px; }
.weights__legend li::before { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; background: var(--c); }
.weights__legend b { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.weights__legend span { display: block; margin-top: 3px; font: 500 12px/1.4 var(--font-mono); color: var(--muted); }

.subhead { margin: clamp(56px, 7vw, 88px) 0 clamp(24px, 3vw, 36px); }
.subhead h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.024em; }
.subhead p { margin-top: 10px; max-width: 64ch; color: var(--muted); font-size: 16px; }

/* ---------- Approach ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.story .head__lede { margin-top: 22px; }

.anatomy {
  --u: 2.6px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start;
  margin: 0; padding: clamp(24px, 3.4vw, 40px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3);
}
.anatomy__cap { grid-column: 1 / -1; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.anatomy__mark { display: grid; grid-template-rows: repeat(4, calc(14 * var(--u))); row-gap: calc(8 * var(--u)); width: calc(92 * var(--u)); }
.anatomy__row { display: flex; }
.anatomy__bar {
  display: block; height: calc(14 * var(--u));
  width: calc(var(--w) * var(--u)); margin-left: calc(var(--x) * var(--u));
  background: var(--ink); transform-origin: left center;
}
.anatomy__bar--result { background: var(--red); }
.anatomy__notes { display: grid; grid-template-rows: calc(58 * var(--u)) calc(14 * var(--u)); row-gap: calc(8 * var(--u)); }
.anatomy__note { position: relative; display: flex; flex-direction: column; justify-content: center; padding-left: 26px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.anatomy__note b { font-size: 17px; color: var(--ink); }
.anatomy__note--steps::before {
  content: ""; position: absolute; left: 0; top: calc(7 * var(--u)); bottom: calc(7 * var(--u)); width: 12px;
  border: 1px solid var(--faint); border-left: 0;
}
.anatomy__note--result::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; border-top: 2px solid var(--red); }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 40px); }
.principles li { padding-top: 22px; border-top: 1px solid var(--line-2); }
.principles__num { display: block; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.principles h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.principles p { margin-top: 10px; font-size: 16px; }

/* ---------- Company ---------- */
.company { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.company__copy p:not(.eyebrow) { margin-top: 20px; max-width: 60ch; font-size: 18px; }
.company__copy h2 + p { margin-top: 26px; }
.company__card { padding: clamp(24px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3); }
.company__mark { width: 48px; height: 48px; margin-bottom: 8px; }
.facts--lg > div { grid-template-columns: 112px minmax(0, 1fr); }
.facts--lg dd { font-size: 16px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__copy .head__lede { margin: 22px 0 32px; }
.contact__list li { padding: 22px 0; border-top: 1px solid var(--line); }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__kind {
  display: flex; align-items: center; gap: 9px;
  font: 500 12px/1.4 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.contact__link {
  display: inline-block; margin-top: 8px;
  font-size: clamp(20px, 2vw, 24px); font-weight: 650; letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1.5px no-repeat;
  transition: background-size .3s var(--ease);
  overflow-wrap: anywhere;
}
.contact__link:hover { background-size: 100% 1.5px; }
.contact__list p:last-child { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: clamp(64px, 8vw, 104px) 0 32px; background: var(--ink); color: var(--night-text); }
.footer :focus-visible { outline-color: #fff; }
.footer__statement {
  max-width: 15ch; padding-bottom: clamp(48px, 6vw, 80px);
  font-size: clamp(38px, 6vw, 80px); font-weight: 650; line-height: 1.02; letter-spacing: -0.036em; color: #F6F3EE;
}
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px;
  padding: 48px 0; border-top: 1px solid var(--night-line);
}
.footer__brand img { height: 36px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 34ch; font-size: 15px; color: var(--night-muted); }
.footer__col h2 { margin-bottom: 14px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--night-muted); }
.footer__col a { display: block; width: fit-content; padding: 5px 0; font-size: 15px; color: var(--night-text); text-decoration: none; overflow-wrap: anywhere; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding-top: 24px; border-top: 1px solid var(--night-line);
  font-size: 13.5px; color: var(--night-muted);
}

/* ---------- 404 ---------- */
.nf { display: flex; align-items: center; min-height: calc(100vh - var(--nav-h)); padding: clamp(48px, 8vw, 96px) 0; }
.nf__mark { --u: 1.7px; margin-bottom: 40px; }
.nf__missing {
  display: block; height: calc(14 * var(--u)); width: calc(var(--w) * var(--u)); margin-left: calc(var(--x) * var(--u));
  border: 1.5px dashed var(--red);
}
.nf__title { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.03em; }
.nf__lede { margin-top: 18px; max-width: 46ch; font-size: 18px; }
.nf .hero__cta { margin-top: 32px; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .trace .trace__bar, .js .anatomy .anatomy__bar { transform: scaleX(0); transition: transform .7s var(--ease); }
.js .trace.is-in .trace__bar, .js .anatomy.is-in .anatomy__bar { transform: scaleX(1); }
.trace__row:nth-child(1) .trace__bar { transition-delay: .25s; }
.trace__row:nth-child(2) .trace__bar { transition-delay: .4s; }
.trace__row:nth-child(3) .trace__bar { transition-delay: .55s; }
.trace__row:nth-child(4) .trace__bar { transition-delay: .7s; }
.trace__row:nth-child(5) .trace__bar { transition-delay: .85s; }
.trace__row:nth-child(6) .trace__bar { transition-delay: 1.05s; }
.anatomy__mark > .anatomy__bar:nth-child(1) { transition-delay: .2s; }
.anatomy__mark > .anatomy__bar:nth-child(2) { transition-delay: .35s; }
.anatomy__mark > .anatomy__bar:nth-child(3) { transition-delay: .5s; }
.anatomy__row .anatomy__bar:nth-child(1) { transition-delay: .65s; }
.anatomy__row .anatomy__bar:nth-child(2) { transition-delay: .85s; }
.products .pcard:nth-child(2), .principles li:nth-child(2) { transition-delay: .08s; }
.principles li:nth-child(3) { transition-delay: .16s; }
.principles li:nth-child(4) { transition-delay: .24s; }
.no-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
.no-reveal .trace__bar, .no-reveal .anatomy__bar { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .trace .trace__bar, .js .anatomy .anatomy__bar { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { max-width: 760px; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .shot { order: 2; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: 1fr; }
  .anatomy { max-width: 640px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__logo img { height: 30px; }
  .head { grid-template-columns: 1fr; align-items: start; }
  .products { grid-template-columns: 1fr; }
  .integrations { grid-template-columns: 1fr; }
  .subhead { grid-template-columns: 1fr; }
  .company, .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 901px) {
  .nav__menu { display: none !important; }
}
@media (max-width: 860px) {
  .weights__legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .weights__bar { height: 12px; }
  .weights__legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .features, .features--four, .assure, .principles { grid-template-columns: 1fr; }
  .feature { padding-bottom: 26px; }
  .facts > div, .facts--lg > div { grid-template-columns: 1fr; gap: 2px; }
  .trace { padding: 14px 14px 12px; }
  .trace__row { grid-template-columns: 1fr; gap: 6px; padding: 7px 0; min-height: 0; }
  .trace__track { height: 12px; }
  .anatomy { --u: 2.1px; grid-template-columns: 1fr; gap: 24px; }
  .anatomy__notes { grid-template-rows: auto auto; row-gap: 16px; }
  .anatomy__note--steps::before { top: 4px; bottom: 4px; }
  .pcard__top { margin-bottom: 24px; }
  .product__logo { height: 26px; }
  .cta-row p { flex-basis: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .trace__legend { gap: 12px; }
  .btn { padding: 0 18px; }
}
