:root {
  color-scheme: light;
  --ink: #121212;
  --muted: #5f6470;
  --paper: #ffffff;
  --soft: #f5f6f8;
  --line: #dedfe4;
  --night: #1a1a1a;
  --indigo: #273073;
  --indigo-hover: #3b528c;
  --copper: #b85c38;
  --green: #51725a;
  --max: 1224px;
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Quattrocento Sans", Arial, Helvetica, sans-serif;
  --type-body: 1rem;
  --type-ui: 0.9375rem;
  --type-caption: 0.875rem;
  --type-subtitle: 1.125rem;
  --type-h1: clamp(2rem, 2.4vw + 1.2rem, 2.75rem);
  --type-h2: clamp(1.75rem, 1.7vw + 1.1rem, 2.1875rem);
  --type-h3: 1.25rem;
  --type-hero-title: clamp(2.125rem, 3.5vw, 3.45rem);
  --type-hero-subtitle: clamp(1.25rem, 1.15vw + 0.95rem, 1.75rem);
  --leading-body: 1.65;
  --leading-ui: 1.35;
  --leading-subtitle: 1.6;
  --leading-title: 1.16;
  --leading-tight: 1.06;
  --weight-regular: 400;
  --weight-bold: 700;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #000;
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
}

main {
  background: var(--paper);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 18px rgba(18, 18, 18, 0.06);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--type-subtitle);
  font-weight: var(--weight-bold);
  line-height: var(--leading-ui);
}

.brand span {
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--weight-bold);
  line-height: var(--leading-ui);
}

.nav a,
.more-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: #222;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}

.nav a[aria-current="page"],
.more-toggle[aria-current="page"],
.more-menu a[aria-current="page"] {
  background: #eef0ff;
  color: var(--indigo);
  font-weight: var(--weight-bold);
}

.nav a:hover,
.nav a:focus,
.more-toggle:hover,
.more-toggle:focus {
  background: var(--soft);
  color: var(--indigo);
}

.nav details {
  position: relative;
}

.more-toggle {
  cursor: pointer;
  list-style: none;
}

.more-toggle::-webkit-details-marker {
  display: none;
}

.more-menu {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 12px);
  width: min(290px, calc(100vw - 32px));
  padding: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.more-menu a {
  display: block;
  padding: 0.65rem 0.7rem;
  white-space: normal;
}

.more-menu a:hover,
.more-menu a:focus {
  background: var(--soft);
}

.demo-menu {
  width: min(390px, calc(100vw - 32px));
}

.more-menu .overflow-link {
  display: none;
}

details[open] > .more-toggle {
  background: var(--soft);
  color: var(--indigo);
}

.hero {
  background: var(--night);
  color: var(--paper);
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  min-height: 340px;
  padding: 60px 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-hero-title);
  line-height: var(--leading-tight);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-subtitle {
  margin: 0.65rem 0 0;
  color: #d6d9e6;
  font-family: var(--font-body);
  font-size: var(--type-hero-subtitle);
  line-height: 1.35;
}

.hero-kicker {
  margin: 0 0 1rem;
  color: #d6d9e6;
  font-family: var(--font-body);
  font-size: var(--type-ui);
  font-weight: var(--weight-bold);
  line-height: var(--leading-ui);
}

.section {
  padding: 56px 0;
}

.section.alt {
  background: var(--soft);
}

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

.narrow {
  max-width: 860px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1fr);
  gap: 4rem;
  align-items: start;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1rem;
  font-size: var(--type-h1);
  line-height: var(--leading-title);
  font-weight: var(--weight-bold);
}

h2 {
  margin: 0 0 1.5rem;
  font-size: var(--type-h2);
  line-height: var(--leading-title);
  font-weight: 600;
}

h3 {
  margin: 2rem 0 0.6rem;
  font-size: var(--type-h3);
  line-height: 1.3;
  font-weight: 600;
}

p {
  margin: 0 0 1.1rem;
}

.type-body {
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.type-subtitle {
  font-family: var(--font-body);
  font-size: var(--type-subtitle);
  line-height: var(--leading-subtitle);
}

.type-h1 {
  font-family: var(--font-display);
  font-size: var(--type-h1);
  line-height: var(--leading-title);
  font-weight: var(--weight-bold);
}

.type-h2 {
  font-family: var(--font-display);
  font-size: var(--type-h2);
  line-height: var(--leading-title);
  font-weight: 600;
}

.type-h3 {
  font-family: var(--font-display);
  font-size: var(--type-h3);
  line-height: 1.3;
  font-weight: 600;
}

.lead {
  font-family: var(--font-body);
  font-size: var(--type-subtitle);
  line-height: var(--leading-subtitle);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 28px;
  background: var(--indigo);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--type-ui);
  font-weight: var(--weight-bold);
  line-height: var(--leading-ui);
  text-decoration: none;
}

.button:hover,
.button:focus {
  background: var(--indigo-hover);
}

.text-link {
  color: var(--indigo);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.stat-line {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--copper);
  color: #30343d;
  font-family: var(--font-body);
  font-size: var(--type-subtitle);
  line-height: var(--leading-subtitle);
  font-weight: var(--weight-bold);
}

.approach-list {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0 0;
}

.approach-item {
  padding-left: 1rem;
  border-left: 4px solid var(--green);
}

.faq-list {
  display: grid;
  gap: 1.4rem;
}

.faq-list h3 {
  margin-top: 0;
}

.partner-band {
  border-top: 1px solid var(--line);
}

.partners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.partner-label {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: var(--type-ui);
  font-weight: var(--weight-bold);
  line-height: var(--leading-ui);
}

.partner-logo {
  max-height: 102px;
  object-fit: contain;
}

.page-title {
  background: var(--night);
  color: var(--paper);
  padding: 42px 0 46px;
  text-align: center;
}

.page-title h1 {
  font-size: var(--type-h1);
  line-height: var(--leading-title);
}

.page-body {
  padding: 56px 0;
}

.centered {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.paper-entry {
  font-family: var(--font-body);
  font-size: var(--type-subtitle);
  line-height: var(--leading-subtitle);
}

.paper-entry .title {
  font-style: italic;
}

.paper-entry .upcoming {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: var(--type-h3);
  line-height: 1.3;
  font-style: italic;
}

.page-copy {
  max-width: 760px;
  margin: 0 auto;
}

.article-header {
  background: var(--night);
  color: var(--paper);
  padding: 48px 0;
}

.article-header .section-inner {
  max-width: 900px;
}

.article-meta {
  margin: 0.8rem 0 0;
  color: #d6d9e6;
  font-size: var(--type-ui);
  line-height: var(--leading-ui);
}

.article-body {
  max-width: 900px;
}

.quote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--indigo);
  background: var(--soft);
  font-family: var(--font-display);
  font-size: var(--type-subtitle);
  line-height: var(--leading-subtitle);
}

.site-footer {
  background: #000;
  color: #888;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: var(--type-caption);
  line-height: 1.5;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
}

.footer-inner p {
  margin: 0.2rem 0;
}

.footer-link {
  color: #8d93ff;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  text-decoration: none;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 72px;
    align-items: center;
    padding: 10px 0;
    flex-direction: row;
    gap: 0.75rem;
  }

  .brand span {
    display: none;
  }

  .nav {
    width: auto;
    flex-wrap: nowrap;
    gap: 0.2rem;
    overflow: visible;
    font-size: var(--type-ui);
  }

  .nav a,
  .more-toggle {
    min-height: 38px;
    padding: 0.45rem 0.5rem;
    white-space: nowrap;
  }

  .more-menu {
    left: auto;
    right: 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-inner {
    min-height: auto;
    padding: 44px 0 40px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7.6vw, 1.85rem);
  }

  .hero-subtitle {
    font-size: 1.125rem;
    margin-top: 0.5rem;
  }

  .partners {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section,
  .page-body {
    padding: 48px 0;
  }

  .page-title {
    padding: 38px 0 42px;
  }
}

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

  .more-menu .overflow-people {
    display: block;
  }
}

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

  .more-menu .overflow-white-papers {
    display: block;
  }
}

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

  .more-menu .overflow-demo {
    display: block;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: clamp(1.5rem, 7.8vw, 1.6rem);
  }
}
