:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --ink-2: #44526a;
  --muted: #64718a;
  --line: #dde3ec;
  --accent: #1f5fbf;        /* steel blue */
  --accent-ink: #ffffff;
  --accent-soft: #e5edf8;
  --shadow: 0 1px 2px rgb(15 27 45 / .05), 0 8px 24px rgb(15 27 45 / .08);
  --radius: 14px;
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1422;
    --surface: #121d2f;
    --ink: #e8edf4;
    --ink-2: #b3bfd0;
    --muted: #8796ab;
    --line: #22304a;
    --accent: #6ea8f5;
    --accent-ink: #0c1422;
    --accent-soft: #15253f;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1040px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

.muted { color: var(--muted); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center;
  padding-top: 48px; padding-bottom: 8px;
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(44px, 7vw, 72px); font-weight: 800; letter-spacing: -.03em; }
.role { font-size: clamp(18px, 2.2vw, 21px); font-weight: 600; color: var(--ink); margin-top: 14px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 58ch; margin-top: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1.5px solid var(--line); background: var(--surface);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: inherit; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

.portrait { position: relative; margin: 0; width: 280px; aspect-ratio: 1; }
.portrait::before {
  /* offset accent block behind the photo */
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border-radius: 24px; background: var(--accent-soft); border: 1.5px solid var(--accent);
}
.portrait img, .portrait-fallback {
  position: relative; width: 100%; height: 100%; border-radius: 24px;
  object-fit: cover; box-shadow: var(--shadow); background: var(--surface);
}
.portrait-fallback {
  display: none; place-items: center;
  font: 800 88px/1 var(--display); letter-spacing: -.03em; color: var(--ink);
}
.portrait-fallback sup { font-size: .45em; vertical-align: .9em; line-height: 0; margin-left: 2px; }
.portrait.no-photo img { display: none; }
.portrait.no-photo .portrait-fallback { display: grid; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .portrait { width: 200px; order: -1; }
  .portrait-fallback { font-size: 64px; }
}

/* Sections */
.section { padding-top: 88px; }
.section-label {
  font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 26px; position: relative;
}
.card::before {
  content: ""; position: absolute; left: 24px; top: 0; width: 32px; height: 3px;
  background: var(--accent); border-radius: 0 0 3px 3px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.tags { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Experience */
.story { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 36px; } }
.story-text p { font-size: 17.5px; color: var(--ink-2); max-width: 62ch; }
.story-text p + p { margin-top: 18px; }
.roles-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 4px 22px;
}
.roles-head { padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.roles-head strong { display: block; font: 800 26px/1.2 var(--display); letter-spacing: -.02em; color: var(--accent); }
.roles-head span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.roles { list-style: none; margin: 0; padding: 0; }
.roles li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 14px 0; }
.roles li + li { border-top: 1px solid var(--line); }
.roles strong { font: 700 16px/1.35 var(--display); }
.roles span { grid-column: 1; font-size: 14.5px; color: var(--muted); }
.roles time { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Certifications / education */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 680px) { .split { grid-template-columns: 1fr; gap: 0; } .split > div + div { padding-top: 56px; } }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.plain li:first-child { padding-top: 0; }
.edu { font-size: 16px; line-height: 1.8; }

/* About */
.about-lede { font-size: 18px; color: var(--ink-2); max-width: 60ch; }

/* Footer */
.site-footer { margin-top: 104px; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 28px; padding-bottom: 40px; font-size: 15px;
}
