:root {
  --bg: #ffffff;
  --bg-alt: #f7f6f3;
  --bg-deep: #14241f;
  --fg: #14151a;
  --fg-invert: #f7f6f3;
  --muted: #5b5c67;
  --muted-invert: #a8b5b0;
  --rule: #e4e2dd;
  --rule-invert: #2a3b35;
  --accent: #2f5d50;
  --accent-bright: #3f7d6b;
  --accent-soft: #ecf2ef;
  --shadow: 0 1px 2px rgb(20 21 26 / 0.04),
    0 10px 30px rgb(20 21 26 / 0.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11;
    --bg-alt: #141519;
    --bg-deep: #0a1512;
    --fg: #eceef0;
    --fg-invert: #eceef0;
    --muted: #9b9daa;
    --muted-invert: #9db0a8;
    --rule: #25262c;
    --rule-invert: #1e2e28;
    --accent: #7fb3a2;
    --accent-bright: #8fc3b2;
    --accent-soft: #16221e;
    --shadow: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ── header ───────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.brand svg {
  width: 1.65rem;
  height: 1.65rem;
  color: var(--accent);
  flex: none;
}
.navlinks {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9375rem;
}
.navlinks a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.navlinks a:hover {
  color: var(--fg);
}
@media (max-width: 48rem) {
  .navlinks {
    display: none;
  }
}

/* ── buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: opacity 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #0e0f11;
  }
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-ghost {
  border-color: var(--rule);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: var(--muted);
}
.btn-onDark {
  background: var(--fg-invert);
  color: var(--bg-deep);
}
.btn-onDark:hover {
  opacity: 0.9;
}

/* ── sections ─────────────────────────────────────────── */
section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.band-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--rule);
}
.band-deep {
  background: var(--bg-deep);
  color: var(--fg-invert);
}
.band-deep .eyebrow {
  color: var(--accent-bright);
}
.band-deep p {
  color: var(--muted-invert);
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 16ch;
}
h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
  max-width: 24ch;
}
h3 {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1.125rem;
  text-wrap: pretty;
}
p:last-child {
  margin-bottom: 0;
}
.lede {
  font-size: clamp(1.0625rem, 0.98rem + 0.5vw, 1.3125rem);
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.55;
}
.prose {
  max-width: 58ch;
  color: var(--muted);
}
.prose strong {
  color: var(--fg);
  font-weight: 600;
}
.band-deep .prose strong {
  color: var(--fg-invert);
}
.eyebrow {
  display: block;
  margin-bottom: 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ── capability band ──────────────────────────────────── */
.facts {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.fact dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.5rem;
}
.fact dd {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--muted-invert);
}

/* ── cards ────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2.5rem;
}
.card {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}
.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.card .icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}
.card .icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ── steps ────────────────────────────────────────────── */
ol.steps {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
ol.steps li {
  counter-increment: step;
}
ol.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.875rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}
ol.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ── applications table ───────────────────────────────── */
ul.apps {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
ul.apps li {
  display: grid;
  grid-template-columns: minmax(11rem, 17rem) 1fr;
  gap: 0.75rem 2rem;
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
ul.apps strong {
  font-weight: 600;
  letter-spacing: -0.01em;
}
ul.apps span {
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 40rem) {
  ul.apps li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ── industries ───────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 2rem;
}
.chip {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 2rem;
  font-size: 0.9062rem;
  color: var(--muted);
  background: var(--bg);
}

/* ── footer ───────────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding-block: 3rem 2rem;
}
.fcols {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(14rem, 1.4fr) repeat(
      auto-fit,
      minmax(9rem, 1fr)
    );
}
.fcols h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
}
.fcols ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
}
.fcols a {
  color: var(--muted);
  text-decoration: none;
}
.fcols a:hover {
  color: var(--fg);
}
.fbottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}
.fbottom p {
  margin: 0;
}
a {
  color: inherit;
}

/* ── multi-page additions ─────────────────────────────── */

/* Current page in the nav. aria-current carries the meaning for assistive
   tech; the styling follows it rather than duplicating the state. */
.navlinks a[aria-current="page"] {
  color: var(--fg);
  font-weight: 500;
}

/* Sub-page header: a compact lede block in place of the home hero. */
.pagehead {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
}
.pagehead h1 {
  max-width: 20ch;
  font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.85rem);
}

/* Whole-card links on the home page. */
.linkcard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.linkcard:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .linkcard {
    transition: none;
  }
  .linkcard:hover {
    transform: none;
  }
}
.linkcard .more {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
}
.linkcard .more::after {
  content: " \2192";
}

/* Inline text links in prose, for cross-page references. */
.prose a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.band-deep .prose a {
  color: var(--accent-bright);
}

/* ── people page ──────────────────────────────────────── */
.person {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 40rem) {
  .person {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
/* Placeholder avatar: initials on the accent tint. Swap the whole block for
   an <img> when there is a photograph to use. */
.avatar {
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--rule);
}
.person .role {
  margin: 0.125rem 0 1.25rem;
  color: var(--accent);
  font-weight: 500;
}
.person h2 {
  margin-bottom: 0;
}

/* Career history: year range beside the role. */
ul.history {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
ul.history li {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 0.5rem 2rem;
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
ul.history .when {
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
ul.history strong {
  font-weight: 600;
  letter-spacing: -0.01em;
}
ul.history p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 40rem) {
  ul.history li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ── stat tiles ───────────────────────────────────────── */
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin: 0;
}
.stat {
  padding: 1.5rem;
  border: 1px solid var(--rule-invert);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.03);
}
.stat dt {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg-invert);
  margin-bottom: 0.375rem;
}
.stat dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted-invert);
}
