@font-face {
  font-family: "Source Serif 4";
  src: url("./source-serif-4-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17212b;
  --text: #243240;
  --muted: #5f6f7a;
  --line: #d9e2df;
  --wash: #f5f8f6;
  --paper: #ffffff;
  --teal: #236b6f;
  --teal-dark: #174c50;
  --gold: #9a7428;
  --clay: #a45f46;
  --blue: #315c83;
  --soft-blue: #e9f1f6;
  --soft-teal: #e7f1ef;
  --soft-gold: #f4eddc;
  --max: 1160px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -5px;
  box-shadow: 0 0 0 3px var(--teal-dark);
}

.panel.dark a:focus-visible,
.site-footer a:focus-visible {
  outline-color: #ffffff;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

a:hover {
  color: var(--teal);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(35, 107, 111, 0.28);
  border-radius: 4px;
  object-fit: cover;
}

.brand-name {
  display: block;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #3f4f5b;
  font-size: 0.9rem;
}

.nav a {
  padding: 8px 0;
}

.nav a.active {
  color: var(--teal-dark);
  font-weight: 700;
}

.nav .nav-cta {
  padding: 9px 14px;
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  background: var(--paper);
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hamburger-lines,
.hamburger-lines::before,
.hamburger-lines::after {
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger-lines {
  position: relative;
}

.hamburger-lines::before {
  position: absolute;
  top: -6px;
}

.hamburger-lines::after {
  position: absolute;
  top: 6px;
}

.mobile-overlay {
  display: none;
}

main {
  overflow: hidden;
}

.hero,
.page-hero,
.section,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 62px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 44px;
  align-items: center;
}

.page-hero {
  padding: 76px 0 46px;
  max-width: 920px;
  margin-left: max(20px, calc((100vw - var(--max)) / 2));
}

.page-hero.wide {
  max-width: var(--max);
  margin: 0 auto;
}

.company-line {
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 18px 0 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
  font-family: "Source Serif 4", Georgia, serif;
}

h1 {
  font-size: clamp(2.2rem, 3.3vw, 3.8rem);
  max-width: 950px;
}

.page-hero h1 {
  font-size: clamp(2.05rem, 3.2vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: 1.15rem;
}

.lead {
  color: #344655;
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  max-width: 760px;
  margin: 24px 0 0;
}

.body-large {
  color: #334553;
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #ffffff;
  font-weight: 600;
}

.button.secondary {
  background: var(--paper);
  color: var(--teal-dark);
}

.button:hover {
  color: #ffffff;
  background: var(--teal-dark);
}

.button.secondary:hover {
  color: var(--teal-dark);
  background: var(--soft-teal);
}

.founder-card {
  background: var(--wash);
  border: 1px solid var(--line);
  padding: 18px;
}

.founder-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: #d9e2df;
}

.founder-card .caption {
  padding: 18px 4px 2px;
}

.founder-card strong {
  display: block;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.18rem;
}

.founder-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.proof-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric {
  padding: 24px 18px;
  border-right: 1px solid var(--line);
}

.metric:first-child {
  border-left: 1px solid var(--line);
}

.metric strong {
  display: block;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 8px;
}

.section {
  padding: 76px 0;
}

.section.compact {
  padding: 52px 0;
}

.section-band {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 24px;
  min-height: 100%;
}

.card.tint-teal {
  background: var(--soft-teal);
}

.card.tint-blue {
  background: var(--soft-blue);
}

.card.tint-gold {
  background: var(--soft-gold);
}

.card.tint-gold p {
  color: #3c4d58;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card ul,
.feature-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.card li,
.feature-list li {
  color: #3c4d58;
  padding: 10px 0;
  border-top: 1px solid rgba(23, 33, 43, 0.09);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.64fr);
  gap: 48px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  background: var(--wash);
  padding: 28px;
}

.panel.dark {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.panel.dark h2,
.panel.dark h3,
.panel.dark strong {
  color: #ffffff;
}

.panel.dark p,
.panel.dark li {
  color: #dbe5e7;
}

.quote {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 2.5rem);
  line-height: 1.15;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.media-frame {
  border: 1px solid var(--line);
  background: #101820;
  padding: 12px;
}

.media-frame video {
  width: 100%;
  background: #101820;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--paper);
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--ink);
  background: var(--wash);
  font-size: 0.9rem;
}

.table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #111a22;
  color: #dbe5e7;
}

.footer-inner {
  padding: 40px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.footer-inner h2 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.footer-inner p,
.footer-inner a {
  color: #c8d4d7;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .hamburger[aria-expanded="true"] .hamburger-lines {
    background: transparent;
  }

  .hamburger[aria-expanded="true"] .hamburger-lines::before {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger[aria-expanded="true"] .hamburger-lines::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-overlay {
    position: fixed;
    inset: 74px 0 auto 0;
    z-index: 19;
    display: none;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(23, 33, 43, 0.12);
  }

  .mobile-overlay.open {
    display: block;
  }

  .mobile-overlay nav {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 22px;
    display: grid;
    gap: 6px;
  }

  .mobile-overlay a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 700;
  }

  .hero,
  .split,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 58px;
  }

  .proof-inner,
  .grid.four,
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(odd) {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .header-inner,
  .hero,
  .page-hero,
  .section,
  .footer-inner,
  .proof-inner {
    width: min(100% - 28px, var(--max));
  }

  .brand-sub {
    display: none;
  }

  .hero,
  .page-hero {
    padding-top: 42px;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .hero .founder-card,
  .hero .body-large {
    display: none;
  }

  .proof-inner,
  .grid.two,
  .grid.three,
  .grid.four,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:first-child,
  .metric:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .section {
    padding: 54px 0;
  }

  .actions {
    display: grid;
  }
}

/* =========================================================
   v4 — logo treatments, depth, motion
   ========================================================= */

/* Brand mark — refined shadow and hover motion */
.brand-mark {
  box-shadow: 0 1px 2px rgba(23, 33, 43, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(35, 107, 111, 0.25);
}

/* Hero subtle backdrop wash */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -8%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle at center, rgba(35, 107, 111, 0.06) 0%, rgba(35, 107, 111, 0) 60%);
  z-index: -1;
  pointer-events: none;
}

/* Card hover lift */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -18px rgba(23, 33, 43, 0.22);
  border-color: rgba(35, 107, 111, 0.32);
}

a.card:hover h3 {
  color: var(--teal-dark);
}

/* Button refinement — depth on hover */
.button {
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.15s ease, color 0.15s ease;
  box-shadow: 0 1px 2px rgba(23, 33, 43, 0.08);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -6px rgba(23, 76, 80, 0.32);
}

/* AxoDen accent block — used on product page heroes and the AxoDen section heading */
.axoden-mark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 14px 14px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #ffffff;
  margin-bottom: 26px;
  text-decoration: none;
}

.axoden-mark img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: block;
}

.axoden-mark-text {
  display: block;
  line-height: 1.2;
}

.axoden-mark-text strong {
  display: block;
  color: #ffffff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

.axoden-mark-text span {
  display: block;
  color: #9bcad0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* AxoDen heading mark — large variant for the "AxoDen product line" section */
.axoden-section-mark {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.axoden-section-mark img {
  width: 64px;
  height: 64px;
  background: var(--ink);
  padding: 8px;
  border: 1px solid var(--ink);
}

.axoden-section-mark span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Footer brand — logo strip and AxoDen sublabel */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.05;
}

.footer-brand span {
  display: block;
  color: #9fb1b6;
  font-size: 0.82rem;
  margin-top: 2px;
}

.footer-axoden {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #c8d4d7;
}

.footer-axoden img {
  width: 22px;
  height: 22px;
}

/* Caveat / scope note — used inline in product cards and page bodies */
.scope {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(23, 33, 43, 0.16);
  font-size: 0.86rem;
  color: var(--muted);
}

.scope strong {
  color: var(--ink);
  font-weight: 700;
}

/* Notice — page-level disclosure block (pilot stage, etc.) */
.notice {
  display: block;
  margin: 18px 0 0;
  padding: 14px 18px;
  background: var(--soft-gold);
  border-left: 3px solid var(--gold);
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.55;
}

.notice strong {
  color: #7d3a25;
  font-weight: 700;
}

/* Tabular nums on metric strongs (cleaner alignment in proof strips) */
.metric strong {
  font-feature-settings: "tnum" on;
}

/* Status tokens (ESTABLISHED, CLAIMED, UNVERIFIED CONJECTURE) rendered
   as small caps with letter-spacing rather than baked-in all-caps text. */
.status-token {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Sub-group label inside a section that contains multiple grids
   (e.g. Discovery engagements / Delivery engagements). Sits visually
   below the section h2 but above grid cards, as an eyebrow label. */
.subgroup-head {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 40px 0 8px;
}

.subgroup-head + p {
  margin: 0 0 20px;
  color: var(--text);
  max-width: 760px;
}

/* Section dividers — subtle horizontal accents between major sections */
.section-band + .section,
.section + .section-band {
  position: relative;
}

@media (max-width: 640px) {
  .axoden-mark {
    padding: 12px 16px 12px 12px;
    gap: 14px;
  }

  .axoden-mark img {
    width: 48px;
    height: 48px;
  }

  .axoden-section-mark img {
    width: 56px;
    height: 56px;
  }

  .footer-brand img {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .button:hover,
  .brand:hover .brand-mark {
    transform: none !important;
  }
}
