:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #16202e;
  --muted: #5a6677;
  --line: #e1e5ec;
  --accent: #2563eb;
  --accent-soft: #e8efff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #151b24;
    --text: #e8edf4;
    --muted: #9aa7b8;
    --line: #263041;
    --accent: #6ea0ff;
    --accent-soft: #1b2a47;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav .brand { font-weight: 700; color: var(--text); }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav ul a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center; }
.avatar {
  width: 180px; height: 180px; border-radius: 50%;
  object-fit: cover; object-position: 50% 22%;
  box-shadow: var(--shadow); border: 4px solid var(--surface);
}
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -.02em; }
.role { font-size: 20px; color: var(--muted); margin: 0 0 18px; }
.lede { max-width: 62ch; margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0b1220; } }
.meta { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: 28px; letter-spacing: -.01em; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 28px; }
h3 { font-size: 18px; margin: 0 0 6px; }

.grid { display: grid; gap: 16px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px; box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.cloud h3 { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  background: var(--accent-soft); color: var(--text);
  padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
}
.card .chips { margin-top: 12px; }

/* Timeline */
.job { position: relative; padding: 0 0 32px 28px; border-left: 2px solid var(--line); margin-left: 6px; }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--bg);
}
.job .when { color: var(--muted); font-size: 14px; font-weight: 500; }
.job h3 { margin: 2px 0 8px; }
.job h3 span { color: var(--muted); font-weight: 500; }
.job ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.job li { margin: 4px 0; }
.job p { margin: 0; color: var(--muted); font-size: 16px; }

.cert { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; }
.cert::before { content: "✓"; color: var(--accent); font-weight: 700; }

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

@media (max-width: 860px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .avatar { width: 128px; height: 128px; }
  .nav ul { gap: 14px; }
  .nav .brand { display: none; }
  .grid.four, .grid.two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .nav, .actions { display: none; } body { background: #fff; color: #000; } }
