/* AutoMatrix HQ shared stylesheet */

:root {
  --paper: #faf9f5;
  --paper-2: #ffffff;
  --ink: #121212;
  --ink-2: #3a3a3a;
  --sub: #6c6a64;
  --rule: #dedad0;
  --acc: #1f4d3a;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 32px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sub); }
.u { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color .2s; }
.u:hover { color: var(--acc); }
.btn { display: inline-block; background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .2s; }
.btn:hover { background: var(--acc); }

h2.t { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 54px); line-height: 1.02; letter-spacing: -.012em; margin: 0 0 18px; }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 52ch; }
section { border-top: 1px solid var(--rule); padding: 80px 0; }

/* Masthead */
.mast {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 249, 245, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.mast .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.wordmark img { width: 26px; height: 24px; object-fit: contain; }
.mast nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; align-items: center; }
.mast nav a[aria-current] { color: var(--acc); }

/* Hero */
.hero { border-top: 0; padding: 104px 0 56px; }
.hero .eyebrow { color: var(--acc); margin: 0 0 22px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; margin: 0 0 28px;
  font-size: clamp(42px, 7vw, 96px); line-height: .98; letter-spacing: -.015em;
  max-width: 1100px; text-wrap: balance;
}
.hero h1 i { color: var(--acc); }
.hero-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.hero p { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 48ch; margin: 0; }
.hero-links { display: flex; gap: 24px; justify-content: flex-end; align-items: center; font-size: 15px; font-weight: 500; flex-wrap: wrap; }

/* Figures strip, used on both pages */
.strip { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.strip li { padding: 20px 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.strip li + li { border-left: 1px solid var(--rule); padding-left: 20px; }
.strip b { font-weight: 600; font-size: 38px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.strip li:first-child b { color: var(--acc); }
.strip span { font-size: 13.5px; color: var(--sub); }

/* Three-up grid */
.find-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid3 article { background: var(--paper); padding: 30px 28px 34px; transition: background .2s; }
.grid3 article:hover { background: var(--paper-2); }
.grid3 h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; margin: 14px 0 12px; }
.grid3 p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Numbered steps */
.how .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.how ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.how li { border-top: 1px solid var(--rule); padding: 20px 0 22px; display: grid; grid-template-columns: 52px 1fr; gap: 12px; font-size: 19px; line-height: 1.4; }
.how li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--acc); padding-top: 7px; letter-spacing: .1em; }
.how li b { font-weight: 500; }
.how li small { display: block; font-size: 15px; color: var(--sub); margin-top: 4px; }

/* Markets */
.markets { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.markets li { padding: 22px 20px 4px 0; font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.markets li + li { border-left: 1px solid var(--rule); padding-left: 20px; }
.markets small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sub); margin-top: 8px; }

/* Founder */
.founder .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.founder figure { margin: 0; }
.founder img { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--rule); background: var(--paper-2); }
.founder .eyebrow { color: var(--acc); margin: 0 0 18px; }
.founder .sig b { font-weight: 600; color: var(--ink); }
.founder .sig { margin: 28px 0 24px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--sub); max-width: 52ch; }

/* Disclosure lists: FAQ and data catalogue */
.faq .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--acc); transition: transform .2s; flex-shrink: 0; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--ink-2); max-width: 56ch; }

/* Data page: catalogue */
.catalog summary { padding: 24px 0; align-items: flex-start; }
.catalog summary span { display: block; }
.catalog summary .title { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; }
.catalog summary .count { font-size: 14px; color: var(--sub); font-weight: 400; margin-top: 6px; }
.catalog ul { list-style: none; margin: 0 0 8px; padding: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 32px; font-size: 15.5px; color: var(--ink-2); }
.catalog ul li { padding-left: 14px; position: relative; }
.catalog ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; background: var(--acc); border-radius: 50%; }
.catalog .note { margin: 0 0 28px; font-size: 15px; color: var(--sub); max-width: 60ch; }

.facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--ink-2); }
.facts li::before { content: "\00b7"; color: var(--acc); margin-right: 10px; }

.intro { padding: 0 0 72px; border-top: 0; }
.intro p { font-size: 22px; line-height: 1.45; font-family: var(--serif); color: var(--ink-2); margin: 0; max-width: 58ch; }
.intro p b { font-weight: 400; color: var(--ink); }

/* Contact */
.contact { padding: 104px 0 112px; text-align: center; }
.contact .eyebrow { margin-bottom: 22px; }
.contact a.big {
  display: inline-block; font-family: var(--serif);
  font-size: clamp(36px, 6vw, 80px); line-height: 1; letter-spacing: -.015em;
  padding-bottom: 6px; border-bottom: 2px solid var(--ink);
  transition: color .2s, border-color .2s;
}
.contact a.big:hover { color: var(--acc); border-color: var(--acc); }
.contact p { margin: 26px auto 0; max-width: 44ch; color: var(--ink-2); font-size: 18px; }
.contact p + p { margin-top: 10px; font-size: 15px; color: var(--sub); }

footer { border-top: 1px solid var(--rule); padding: 26px 0 36px; font-size: 13px; color: var(--sub); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .grid3 { grid-template-columns: 1fr; }
  .how .wrap, .faq .wrap, .find-head, .founder .wrap { grid-template-columns: 1fr; gap: 28px; }
  .founder img { max-width: 320px; }
  .markets { grid-template-columns: 1fr 1fr; }
  .markets li:nth-child(3) { border-left: 0; padding-left: 0; }
  .markets li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .catalog ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .mast nav a.u { display: none; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { margin-bottom: 20px; }
  .hero-row { grid-template-columns: 1fr; gap: 22px; }
  .hero p { font-size: 18px; }
  .hero-links { justify-content: flex-start; gap: 18px; }
  .strip { grid-template-columns: 1fr 1fr; margin-top: 34px; border-top: 0; }
  .strip li { border-top: 1px solid var(--rule); padding: 14px 14px 14px 0; }
  .strip li + li { padding-left: 14px; }
  .strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip b { font-size: 28px; }
  .grid3 article { padding: 24px 20px 26px; }
  .grid3 h3 { font-size: 26px; }
  .how li { font-size: 17px; grid-template-columns: 40px 1fr; }
  .markets li { font-size: 24px; }
  summary { font-size: 16.5px; }
  .catalog summary .title { font-size: 24px; }
  .catalog ul { grid-template-columns: 1fr; }
  .intro { padding-bottom: 48px; }
  .intro p { font-size: 19px; }
  .contact { padding: 64px 0 72px; }
  footer .wrap { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
