:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1c1f24;
  --muted: #55606e;
  --line: #e2e4e8;
  --accent: #1f5fbf;
  --accent-ink: #ffffff;
  --tag: #eef3fb;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --surface: #1a1e24;
    --text: #e8eaed;
    --muted: #a3acb8;
    --line: #2c323b;
    --accent: #7fb0ff;
    --accent-ink: #0b1220;
    --tag: #1e2a3d;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 1.0625rem; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
ul, ol { padding: 0; margin: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top nav { max-width: 960px; margin: 0 auto; padding: .75rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: center; justify-content: space-between; }
.top ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.top a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.top a:hover { color: var(--accent); }
.top .brand { color: var(--text); font-weight: 700; font-size: 1rem; }

main { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
section { padding: 3rem 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }

.hero { padding: 4.5rem 0 3.5rem; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); letter-spacing: -.02em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-block; padding: .65rem 1.2rem; border-radius: 999px; border: 1px solid var(--accent);
  text-decoration: none; font-weight: 600; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card h3, .card h4 { font-size: 1.1rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.stack { color: var(--muted); font-size: .9rem; }
.links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; font-weight: 600; }

.feature-head h3 { font-size: 1.35rem; }
.feature-head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 0; }
.stats div { border-left: 3px solid var(--accent); padding: .25rem 0 .25rem .9rem; }
.stats dt { font-size: 1.6rem; font-weight: 700; }
.stats dd { margin: 0; color: var(--muted); font-size: .95rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1rem; }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.skills h3 { font-size: 1rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { background: var(--tag); border-radius: 999px; padding: .25rem .8rem; font-size: .9rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; }
.steps h3 { font-size: 1.05rem; }
.steps h3::before { content: counter(step) ". "; color: var(--accent); }
.steps p { color: var(--muted); margin: 0; }

.contact { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-weight: 600; font-size: 1.1rem; }
.contact a { overflow-wrap: anywhere; }

footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 2rem 1rem 3rem; }

.intro { color: var(--muted); max-width: 44rem; }
.timeline { border-left: 2px solid var(--line); margin: 1.25rem 0 1.5rem .25rem; }
.timeline li { position: relative; padding: 0 0 1.5rem 1.25rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); }
.timeline h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.timeline .when { color: var(--muted); font-size: .9rem; margin-bottom: .35rem; }
.timeline p:last-child { margin: 0; }

.hero { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 2.5rem; }
.photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgb(0 0 0 / .12); }
@media (max-width: 700px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-top: 2.5rem; }
  .photo { width: 140px; height: 140px; }
}
.domains { max-width: 40rem; }
.domains strong { color: var(--text); font-weight: 600; }
.steps li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.demo { margin: 1.25rem 0 0; }
.demo img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.demo figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.impact { margin: 1.25rem 0 1.75rem; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.impact-grid li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1rem 1.25rem; }
.impact-grid strong { display: block; font-size: 1.5rem; line-height: 1.2; margin-bottom: .35rem; }
.impact-grid span { color: var(--muted); font-size: .95rem; }
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1rem; }
.certs .links { margin-top: .5rem; }
