:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --text: #1b2430;
  --muted: #5a6573;
  --line: #dde2e8;
  --accent: #1f4e79;
  --accent-text: #ffffff;
  --accent-soft: #e6eef6;
  --max: 1040px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161d;
    --bg-alt: #171e27;
    --text: #e6eaef;
    --muted: #9aa5b3;
    --line: #2a3441;
    --accent: #7fb0e0;
    --accent-text: #0e1620;
    --accent-soft: #1d2a38;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.7rem; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); white-space: nowrap; }
nav { display: flex; gap: 20px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--text); }
.nav-cta { color: var(--accent) !important; font-weight: 600; }
@media (max-width: 640px) {
  nav a:not(.nav-cta) { display: none; }
}

/* Hero */
.hero { padding: 72px 0 56px; }
.eyebrow { color: var(--muted); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .75rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: .2em; }
.role { font-size: clamp(1.15rem, 2.5vw, 1.4rem); color: var(--accent); font-weight: 600; margin-bottom: 1.25rem; }
.lede { font-size: 1.15rem; max-width: 640px; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 6px;
  text-decoration: none; font-weight: 600; font-size: .98rem;
  border: 1px solid var(--accent); overflow-wrap: anywhere;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 48px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line);
}
.facts dt { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.facts dd { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

.engagement { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin-bottom: 16px; }
.engagement-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.engagement-head h3 { margin: 0; }
.engagement-role { color: var(--accent); font-weight: 600; margin: .3rem 0 .8rem; }
.engagement ul { margin: 0; padding-left: 1.2em; }
.engagement li { margin-bottom: .25em; }
.period { color: var(--muted); font-size: .9rem; white-space: nowrap; }

.tag-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.tag-groups h3 { font-size: .95rem; color: var(--muted); font-weight: 600; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--accent-soft); color: var(--text); padding: 4px 12px; border-radius: 999px; font-size: .9rem; }

.two-col { display: grid; gap: 40px; }
@media (min-width: 800px) { .two-col { grid-template-columns: 3fr 2fr; } }
.timeline, .plain { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 0 0 18px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline strong, .plain strong { display: block; }
.timeline .period { display: block; }
.plain li { margin-bottom: 14px; color: var(--muted); }
.plain strong { color: var(--text); }
.mt { margin-top: 2rem; }

.contact { text-align: left; }
.contact h2 { font-size: 2rem; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0 0 .3em; }
