:root {
  --ink: #1b222c;
  --ink-soft: #454f5c;
  --paper: #f7f6f2;
  --paper-raised: #ffffff;
  --line: #dcd8cd;
  --brand: #1d6fa5;
  --brand-ink: #14547e;
  --accent: #b0492f;
  --header-bg: #ffffff;
  --header-text: #1b222c;
  --header-text-dim: #5b6572;
  --header-line: #dcd8cd;
  color-scheme: light;
  font-size: 16px;
}

:root[data-theme="dark"] {
  --ink: #e8e9ea;
  --ink-soft: #adb4bc;
  --paper: #14181d;
  --paper-raised: #1b2129;
  --line: #2b323b;
  --brand: #5aa8db;
  --brand-ink: #7fbeea;
  --accent: #d97354;
  --header-bg: #0e1114;
  --header-text: #eceeee;
  --header-text-dim: #8b929a;
  --header-line: #262c33;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  transition: background .15s, color .15s;
}

h1, h2, h3 {
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* header */
header.site {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  display: block;
  height: 38px;
  width: auto;
  /* Logo art is blue-on-transparent with a white inner panel; a light
     plate keeps that inner panel legible against the dark header. */
  background: #fff;
  padding: 6px 10px;
  border-radius: 3px;
}

nav.primary ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
nav.primary a {
  color: var(--header-text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding-bottom: 6px;
  transition: color .15s, border-color .15s;
}
nav.primary a:hover, nav.primary a.active {
  color: var(--header-text);
  border-color: var(--brand);
}

.header-right { display: flex; align-items: center; gap: 22px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--header-line);
  background: transparent;
  color: var(--header-text-dim);
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--header-text); border-color: var(--brand); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }

/* trust strip */
.trust-strip {
  background: var(--paper-raised);
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 10px 32px;
  justify-content: center;
}
.trust-strip span { white-space: nowrap; }
.trust-strip strong { color: var(--brand-ink); font-weight: 700; }

/* hero */
.hero {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 96px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 40px;
}
.hero-art { width: 100%; max-width: 190px; }
.hero-art svg { width: 100%; height: auto; }
.hero-art-lg { max-width: 300px; }
.hero-grid:has(.hero-art-lg) { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
.eyebrow {
  color: var(--brand-ink);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 3rem;
  max-width: 16ch;
  line-height: 1.08;
  color: var(--header-text);
  margin: 0 0 22px;
}
.hero p.lede {
  max-width: 56ch;
  font-size: 1.15rem;
  color: var(--header-text-dim);
  margin-bottom: 34px;
}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-brass { background: var(--brand); color: #fff; }
.btn-brass:hover { background: var(--brand-ink); }
.btn-outline { border: 1px solid var(--header-line); color: var(--header-text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-outline-ink { border: 1px solid var(--line); color: var(--ink); }
.btn-outline-ink:hover { border-color: var(--brand); color: var(--brand-ink); }

/* sections */
section { padding: 76px 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--brand-ink); margin-bottom: 12px; }
.section-head h2 { font-size: 2.1rem; margin: 0 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

.alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* capability clusters */
.clusters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.clusters-2 { grid-template-columns: repeat(2, 1fr); }
.cluster {
  background: var(--paper);
  padding: 34px 30px;
}
.cluster .num {
  font-family: "Source Serif Pro", serif;
  font-size: 0.9rem;
  color: var(--brand-ink);
  font-weight: 700;
  margin-bottom: 14px;
}

/* Badge shape echoes the logo mark: a solid block with a bordered
   paper-colored chip notched into the corner (the logo's blue "M" /
   outlined "20" pairing), rather than a generic icon-library glyph. */
.icon-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  margin-bottom: 14px;
}
.icon-badge svg { width: 19px; height: 19px; }
.icon-badge::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 13px;
  height: 13px;
  background: var(--paper);
  border: 2px solid var(--brand);
  border-radius: 3px;
}
.icon-badge.on-dark { background: rgba(255,255,255,0.08); color: var(--brand-ink); border: 1px solid var(--header-line); }
.icon-badge.on-dark::after { background: var(--header-bg); border-color: var(--brand-ink); }
.cluster h3 { font-size: 1.2rem; margin: 0 0 10px; }
.cluster p { color: var(--ink-soft); font-size: 0.94rem; margin: 0 0 14px; }
.cluster ul { margin: 0; padding-left: 18px; color: var(--ink); font-size: 0.88rem; }
.cluster li { margin-bottom: 4px; }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--header-line);
  border-bottom: 1px solid var(--header-line);
}
.stat b {
  display: block;
  font-family: "Source Serif Pro", serif;
  font-size: 2.3rem;
  color: var(--brand-ink);
}
.stat span {
  color: var(--header-text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

/* footer */
footer.site {
  background: var(--header-bg);
  color: var(--header-text-dim);
  padding: 56px 0 28px;
  font-size: 0.9rem;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--header-line);
}
footer.site h4 {
  color: var(--header-text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--header-text-dim); text-decoration: none; }
footer.site a:hover { color: var(--brand-ink); }
.legal-row {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--header-text-dim);
  opacity: .7;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  nav.primary { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .clusters { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}

.page-hero {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 64px 0;
}
.page-hero h1 { color: var(--header-text); font-size: 2.3rem; margin: 0 0 10px; }
.page-hero p { color: var(--header-text-dim); max-width: 56ch; margin: 0; }

/* contact form */
form input, form textarea {
  background: var(--paper-raised);
  color: var(--ink);
  border-color: var(--line) !important;
}
form label { color: var(--ink); }
