:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5b6573;
  --accent: #1f3a5f;
  --accent-contrast: #ffffff;
  --line: #e4e1da;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171e;
    --surface: #1a212b;
    --text: #e8eaed;
    --muted: #a0a8b3;
    --accent: #8db3e6;
    --accent-contrast: #12171e;
    --line: #2b3441;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

header.site img { height: 44px; width: auto; display: block; }

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

nav a:hover { color: var(--accent); }

.hero { padding: 72px 0 56px; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 18em;
}

.hero p { max-width: 38em; color: var(--muted); font-size: 1.1rem; }

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 26px;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.button:hover { opacity: 0.9; }

section { padding: 56px 0; border-top: 1px solid var(--line); }

h2 { font-size: 1.7rem; margin: 0 0 24px; line-height: 1.25; }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 28px 24px 26px;
  box-shadow: 0 1px 2px rgba(20, 30, 45, 0.04), 0 8px 24px rgba(20, 30, 45, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(20, 30, 45, 0.06), 0 14px 32px rgba(20, 30, 45, 0.12);
}

.card .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.card .icon svg { width: 26px; height: 26px; }

.card h3 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

@media (prefers-reduced-motion: reduce) {
  .card, html { transition: none; scroll-behavior: auto; }
  .card:hover { transform: none; }
}

.about {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
}

.about img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.facts strong { display: block; font-size: 1.8rem; color: var(--accent); line-height: 1.2; }
.facts span { color: var(--muted); font-size: 0.95rem; }

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.timeline li:last-child { border-bottom: 0; }
.timeline .years { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .role { font-weight: 600; }
.timeline .org { color: var(--muted); display: block; font-weight: 400; }

.checks { padding-left: 1.2em; }
.checks li { margin-bottom: 6px; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  nav a { margin-left: 16px; }
  .hero { padding-top: 48px; }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tags { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 14px; font-size: 0.9rem; color: var(--muted); }

.contact-name { margin-bottom: 8px; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.contact-list svg { flex: none; width: 22px; height: 22px; color: var(--accent); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
