/* Axon Technologies — homepage.
   Values mirror the Axon Technologies design system tokens (tokens.json).
   The website is light only: white pages, black type, selected inverse sections. */

:root {
  color-scheme: light;

  /* colour */
  --paper: #ffffff;
  --paper-2: #f5f5f4;
  --paper-3: #e8e8e6;
  --rule: #dcdcda;
  --rule-strong: #87878a;
  --ink-3: #67676b;
  --ink-2: #3d3d40;
  --ink: #0b0b0c;
  --inverse: #0b0b0c;
  --on-inverse: #ffffff;
  --on-inverse-2: #a6a6a9;
  --inverse-rule: #38383b;
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #0b0b0c;
  --focus-ring-inverse: 0 0 0 2px #0b0b0c, 0 0 0 4px #ffffff;

  /* type */
  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* space (4px unit) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px; --space-32: 128px; --space-48: 192px;

  /* layout */
  --page-max: 1280px;
  --gutter: 24px;
  --margin: 64px;
  --hairline: 1px;
  --tick: 12px;

  /* role tokens, re-pointed inside .inverse */
  --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3);
  --line: var(--rule); --line-strong: var(--rule-strong); --ring: var(--focus-ring);
}

.inverse {
  background: var(--inverse); color: var(--on-inverse);
  --fg: var(--on-inverse); --fg-2: var(--on-inverse-2); --fg-3: var(--on-inverse-2);
  --line: var(--inverse-rule); --line-strong: var(--on-inverse-2); --ring: var(--focus-ring-inverse);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--fg);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap {
  max-width: calc(var(--page-max) + 2 * var(--margin)); margin: 0 auto;
  padding-left: max(var(--margin), env(safe-area-inset-left, 0px));
  padding-right: max(var(--margin), env(safe-area-inset-right, 0px));
}

.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 10; padding: var(--space-3) var(--space-4); background: var(--ink); color: var(--paper); font-size: 14px; text-decoration: none; }
.skip:focus { top: var(--space-4); }

:focus-visible { outline: 2px solid transparent; box-shadow: var(--ring); }

/* ---------- mono label ---------- */
.label {
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
}
.label--rule { display: block; padding-top: var(--space-3); border-top: var(--hairline) solid var(--line); }

/* ---------- wordmark ---------- */
.wordmark { height: 18px; width: auto; aspect-ratio: 478.26 / 104; color: var(--fg); }

/* ---------- header ---------- */
.site-header { border-bottom: var(--hairline) solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); height: 72px; }
.home { display: inline-flex; text-decoration: none; flex-shrink: 0; }
.site-header .lockup .wordmark { height: 18px; }
.site-header .lockup span { font-size: 9px; }
.nav { display: flex; gap: var(--space-8); }
.nav a { font-size: 14px; line-height: 1; color: var(--fg-2); text-decoration: none; padding: var(--space-2) 0; border-bottom: var(--hairline) solid transparent; transition: color 160ms ease-out, border-color 160ms ease-out; }
.nav a:hover { color: var(--fg); border-bottom-color: var(--fg); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 48px; padding: 0 var(--space-6);
  font: 500 15px/1 var(--font-sans); letter-spacing: -0.005em; text-decoration: none;
  background: var(--fg); color: var(--paper); border: var(--hairline) solid var(--fg);
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}
.inverse .btn { color: var(--inverse); }
.btn:hover { background: var(--fg-2); border-color: var(--fg-2); }
.link {
  display: inline-flex; align-items: center; gap: var(--space-2); padding-bottom: var(--space-1);
  font: 500 15px/1.2 var(--font-sans); text-decoration: none; color: var(--fg);
  border-bottom: var(--hairline) solid var(--fg); transition: color 160ms ease-out, border-color 160ms ease-out;
}
.link:hover { color: var(--fg-2); border-bottom-color: var(--fg-2); }
.arrow { display: inline-block; font-weight: 400; transition: transform 160ms ease-out; }
.link:hover .arrow--out, .btn:hover .arrow--out { transform: translate(2px, -2px); }
.btn:hover .arrow--down { transform: translateY(2px); }

/* ---------- hero ---------- */
.hero { padding-top: var(--space-32); }
.hero h1 {
  margin-top: var(--space-6);
  /* the tagline holds one line at every width: the line measures about 12 em, so size it to the content width (with a little slack) and cap it */
  font-size: min(76px, calc((100vw - 2 * var(--margin)) / 14)); line-height: 1; font-weight: 500; letter-spacing: -0.04em;
  white-space: nowrap;
}
.hero .wrap { text-align: center; } /* the hero is the one centred moment; everything else stays left-aligned */
.hero .lead { margin: var(--space-8) auto 0; max-width: 34ch; }
.lead { font-size: 21px; line-height: 1.5; letter-spacing: -0.005em; color: var(--fg-2); }
.hero .btn { margin-top: var(--space-12); }

.headline { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.06; font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }

/* ---------- portfolio: logo, one line, direct link ---------- */
.portfolio { padding-top: var(--space-24); padding-bottom: var(--space-8); }
.ventures { margin-top: var(--space-12); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12) var(--gutter); }
.venture { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); min-width: 0; }
.venture-logo { width: auto; }
.venture-logo--biolink { height: 44px; }
.venture-logo--stackiq { height: 52px; margin: -4px 0 -4px -2px; } /* the StackIQ file carries extra padding; this matches the Biolink logo's optical size */
.venture-logo--valcor { height: 42px; }
.venture p { max-width: 40ch; font-size: 16px; line-height: 1.6; color: var(--fg-2); }

/* ---------- approach ---------- */
.approach { padding-top: var(--space-24); padding-bottom: var(--space-32); }
.approach .headline { margin-top: var(--space-6); max-width: 18ch; }
.principles { margin-top: var(--space-16); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.principles li { padding-top: var(--space-6); border-top: var(--hairline) solid var(--fg); }
.principles h3 { font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.principles p { margin-top: var(--space-4); max-width: 34ch; font-size: 16px; line-height: 1.6; color: var(--fg-2); }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; padding-top: var(--space-32); padding-bottom: var(--space-12); }
/* the helix X, once, large and cropped off the top-right corner, kept clear of the footer links */
.pathway { position: absolute; right: -64px; top: -64px; width: min(36vw, 440px); height: auto; color: var(--inverse-rule); pointer-events: none; }
@media (max-width: 720px) { .pathway { width: 200px; right: -48px; top: -48px; } }
.site-footer .wrap { position: relative; }
.contact .email { margin-top: var(--space-6); font-size: clamp(18px, 2vw, 21px); }
.footer-grid { margin-top: var(--space-32); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-12); }
.footer-col { grid-column: span 3; }
.footer-col:first-child { grid-column: 1 / span 6; }
.footer-col ul { margin-top: var(--space-4); display: grid; gap: var(--space-2); }
.footer-col a, .footer-col li { font-size: 14px; line-height: 1.5; color: var(--fg); text-decoration: none; }
.footer-col a:hover { color: var(--fg-2); }
.lockup { display: inline-flex; align-items: center; gap: 0.9em; color: var(--fg); }
.lockup .wordmark { height: 22px; }
.lockup span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1; }
.legal { margin-top: var(--space-16); padding-top: var(--space-4); border-top: var(--hairline) solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-8); font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.04em; font-weight: 300; color: var(--fg-3); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .principles, .ventures { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
  .footer-col, .footer-col:first-child { grid-column: span 6; }
}
@media (max-width: 720px) {
  :root { --margin: 20px; }
  .site-header .wrap { height: 64px; }
  .nav { gap: var(--space-4); }
  .hero { padding-top: var(--space-16); }
  .ventures { grid-template-columns: minmax(0, 1fr); }
  .portfolio { padding-top: var(--space-16); }
  .approach { padding-top: var(--space-16); padding-bottom: var(--space-16); }
  .site-footer { padding-top: var(--space-16); }
  .footer-grid { margin-top: var(--space-16); }
  .footer-col, .footer-col:first-child { grid-column: 1 / -1; }
}
/* the lockup and three links no longer share one row: the nav drops beneath the lockup */
@media (max-width: 560px) {
  .site-header .wrap { height: auto; flex-wrap: wrap; row-gap: var(--space-2); padding-top: var(--space-4); padding-bottom: var(--space-2); }
  .nav { gap: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
