/* ==========================================================================
   Trans Axis Partners — site stylesheet
   Mobile-first. No external fonts or frameworks.
   ========================================================================== */

:root {
  /* Brand palette — sampled from the Trans Axis Partners logo */
  --ink: #1b3347;          /* logo navy (book base) */
  --ink-2: #33495c;
  --muted: #5a6b7b;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --line: #e2e0d9;
  --line-strong: #c9c6bc;
  --accent: #265b87;       /* logo blue (pages + wordmark) */
  --accent-ink: #1d4a70;
  --accent-soft: #e7eef5;
  --gold: #c78712;         /* logo quill: decorative use only */
  --gold-ink: #8a5a08;     /* gold for text, AA contrast on light */
  --gold-light: #e2ac4a;   /* gold for text on navy */
  --gold-soft: #f6ecd9;
  --navy-deep: #13253a;
  --ok: #2f6b57;
  --ok-soft: #e4efe9;
  --flag: #9a5a1f;
  --flag-soft: #f6ebdd;
  --error: #a3261b;
  --focus: #1d5fbf;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 6px;
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6rem);
}

@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/jost-latin-600-normal.woff2") format("woff2"); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 650; letter-spacing: 0; }
p, ul, ol, dl { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 650; }

.visually-hidden {
  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-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--ink { background: var(--navy-deep); color: #dfe6ec; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section--ink .section-head p { color: #b9c5cf; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: var(--gold); }
.section--ink .eyebrow { color: var(--gold-light); }
.lead { font-size: clamp(1.125rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 40rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
}
@media (min-width: 64rem) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(6px)) {
  .site-header { background: rgba(246, 244, 239, 0.88); backdrop-filter: blur(6px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand img { height: 2.4rem; width: auto; }
@media (min-width: 64rem) { .brand img { height: 2.7rem; } }
.brand-name { font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1; }
.brand-name span { display: block; font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--ink);
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.5rem 0.8rem; cursor: pointer;
}
.nav-toggle-bars { width: 1.1rem; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.5rem;
  box-shadow: 0 12px 24px -16px rgba(19, 34, 47, 0.25);
}
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }
.nav-list a {
  display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 550;
}
.nav-list a[aria-current="page"] { color: var(--accent); font-weight: 650; }
.nav-cta { margin-top: 1.25rem; }

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: 1.75rem;
    position: static; background: none; border: 0; padding: 0; box-shadow: none;
  }
  .nav-list { display: flex; gap: 1.5rem; }
  .nav-list a { padding: 0.25rem 0; border: 0; font-size: 0.9375rem; border-bottom: 2px solid transparent; }
  .nav-list a:hover { border-bottom-color: var(--line-strong); }
  .nav-list a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
  .nav-cta { margin: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  padding: 0.85rem 1.35rem; border-radius: var(--radius);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); color: #fff; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gold-soft); color: var(--ink); }
.btn--small { padding: 0.6rem 1rem; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.text-link::after { content: " \2192"; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { max-width: 15ch; }
.hero-note { font-size: 0.9375rem; color: var(--muted); margin-top: 1.25rem; }

/* Reconciliation panel (hero visual) */
.recon {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 10px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(19, 34, 47, 0.45);
  overflow: hidden; font-size: 0.875rem;
}
.recon-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.recon-title { font-weight: 650; }
.recon-sub { color: var(--muted); font-size: 0.8125rem; }
.recon table { width: 100%; border-collapse: collapse; }
.recon th { text-align: left; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 0.6rem 1.25rem; background: #faf9f6; }
.recon td { padding: 0.65rem 1.25rem; border-top: 1px solid var(--line); vertical-align: top; }
.recon .num { text-align: right; font-family: var(--font-mono); font-size: 0.8125rem; white-space: nowrap; }
.recon .hide-sm { display: none; }
@media (min-width: 30rem) { .recon .hide-sm { display: table-cell; } }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--brand { background: var(--accent-soft); color: var(--accent-ink); }
.tag--flag { background: var(--flag-soft); color: var(--flag); }
.recon-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.9rem 1.25rem; border-top: 1px solid var(--line); background: #faf9f6; }
.recon-status { font-weight: 650; color: var(--ok); display: inline-flex; align-items: center; gap: 0.45rem; }
.recon-status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ok); }
.recon figcaption { padding: 0.6rem 1.25rem 0.9rem; color: var(--muted); font-size: 0.75rem; border-top: 1px solid var(--line); }

/* ---------- Commitments strip ---------- */
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
@media (min-width: 40rem) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 1.5rem 1.25rem 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 64rem) { .fact { border-bottom: 0; padding-right: 1.5rem; } .fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--line); } }
.fact dt { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; line-height: 1.1; color: var(--accent); }
.fact dd { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column;
}
.section--surface .card { background: var(--paper); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-2); }
.card > :last-child { margin-bottom: 0; }
.card .text-link { margin-top: auto; align-self: flex-start; }
.card-num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--gold-ink); margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--gold); width: 2rem; }
.card--link { position: relative; transition: border-color 0.15s ease; }
.card--link:hover { border-color: var(--line-strong); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.55em;
  width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.section--ink .checklist li::before { border-color: var(--gold-light); }
.checklist--cols { columns: 1; }
@media (min-width: 40rem) { .checklist--cols { columns: 2; column-gap: 2rem; } .checklist--cols li { break-inside: avoid; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .steps--4 { grid-template-columns: repeat(2, 1fr); } .steps--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 72rem) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps > li { counter-increment: step; margin: 0; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.section--ink .steps > li { border-top-color: var(--gold-light); }
.steps > li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--gold-ink); margin-bottom: 0.6rem;
}
.section--ink .steps > li::before { color: var(--gold-light); }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.steps p { color: var(--ink-2); font-size: 0.975rem; }
.section--ink .steps p { color: #c3ced7; }
.step-meta { display: block; font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.5rem; }
.steps ul { font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Software / pill list ---------- */
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-list li { margin: 0; padding: 0.45rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: 0.9375rem; background: var(--surface); }

/* ---------- Industries ---------- */
.industry-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 40rem) { .industry-list { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }
@media (min-width: 64rem) { .industry-list { grid-template-columns: repeat(4, 1fr); } }
.industry-list li { margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.industry-list li span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9375rem; margin-top: 0.2rem; }

/* ---------- Page hero / breadcrumbs ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 22ch; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.875rem; color: var(--muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }

/* ---------- Prose ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 2.25em; }
.prose h3 { margin-top: 1.75em; }
.prose > :first-child { margin-top: 0; }

.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.aside-box h2, .aside-box h3 { font-size: 1.15rem; }
.aside-box > :last-child { margin-bottom: 0; }
.note { font-size: 0.9375rem; color: var(--muted); border-left: 3px solid var(--line-strong); padding-left: 1rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 50%; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-answer { padding: 0 0 1.25rem; color: var(--ink-2); max-width: 46rem; }
.faq .faq-answer > :last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band .container { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 56rem) { .cta-band .container { grid-template-columns: 1fr auto; } }
.cta-band h2 { margin-bottom: 0.4rem; }
.cta-band p { margin: 0; color: #b9c5cf; max-width: 40rem; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  width: 100%; padding: 0.75rem 0.85rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(29, 95, 191, 0.35); outline-offset: 0; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.875rem; font-weight: 600; }
.field-error:empty { display: none; }
.field-hint { color: var(--muted); font-size: 0.875rem; }
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9375rem; }
.checkbox input { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; accent-color: var(--accent); flex: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 600; }
.form-status:empty { display: none; }
.form-status--ok { background: var(--accent-soft); color: var(--accent-ink); }
.form-status--error { background: #f8e3e0; color: var(--error); }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list li:first-child { padding-top: 0; }
.contact-list .label { display: block; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c5cf; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 0.9375rem; }
.site-footer a { color: #e3e9ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid h2 { font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 0.5rem; }
.site-footer .brand { margin-bottom: 1.25rem; }
.site-footer .brand img { height: 2.5rem; width: auto; }
.footer-grid h2 { border-bottom: 2px solid var(--gold); padding-bottom: 0.5rem; display: inline-block; }
.site-footer .brand-name span { color: #9fb0bd; }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8125rem; color: #93a4b2; display: grid; gap: 0.75rem; }
@media (min-width: 48rem) { .footer-legal { grid-template-columns: 1fr auto; align-items: start; } }
.footer-legal p { margin: 0; max-width: 52rem; }
.footer-legal ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; }
.footer-legal li { margin: 0; }

/* ---------- 404 ---------- */
.error-page { min-height: 50vh; display: grid; align-content: center; }

@media print {
  .site-header, .site-footer, .cta-band, .btn-row { display: none !important; }
  body { background: #fff; }
}

/* ---------- Utilities ---------- */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
address { font-style: normal; }
.recon td:first-child { white-space: nowrap; }
@media (min-width: 60rem) { .hero h1 { max-width: 17ch; } }
/* CTA band in brand blue, separated from the footer */
.section--ink.cta-band { background: var(--accent); }
.cta-band p { color: #dde7f1; }
@media (min-width: 64rem) { .brand img { height: 3rem; } }
