:root {
  color-scheme: dark;
  --bg: #0c1117;
  --bg-2: #111921;
  --line: #1e2933;
  --text: #e7ecf1;
  --muted: #93a2b2;
  --accent: #7dc3ff;
  --accent-strong: #3b9cf0;
  --wrap: 1100px;
  --gutter: clamp(16px, 5vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(56px, 9vw, 112px); }
section + section { border-top: 1px solid var(--line); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.brand-name { font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; }
.brand-it { margin-left: 0.5em; color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 28px; align-items: center; font-size: 0.95rem; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav-cta { color: var(--text); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.nav-cta:hover { border-color: var(--muted); }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav[hidden] { display: none; }
.mobile-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border: 0; color: var(--accent); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.04em; margin-bottom: 1.25rem; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-bottom: 2rem; }
.actions, .contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { margin: 0; justify-self: end; width: min(100%, 320px); }
.hero-photo img { border-radius: 12px; aspect-ratio: 2 / 3; object-fit: cover; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px; font-weight: 500;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* Clients */
.clients { padding-block: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; }
.clients-label { margin: 0; color: var(--muted); font-size: 0.85rem; }
.clients-list { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em; }

/* Services */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.cols article { padding-top: 20px; border-top: 2px solid var(--accent-strong); }
.cols h3 { margin-bottom: 0.75rem; }
.cols p { color: var(--muted); margin: 0; }

/* Timeline */
.timeline li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px 32px; padding-block: 28px; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.when { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.95rem; padding-top: 3px; }
.timeline h3 { margin-bottom: 0.5rem; }
.role { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; margin-top: 2px; }
.timeline p { color: var(--muted); margin: 0; max-width: 62ch; }

/* About */
.about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
.about p { color: var(--muted); max-width: 60ch; }
.certs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.certs li:last-child { border-bottom: 1px solid var(--line); }
.certs span { color: var(--muted); white-space: nowrap; font-size: 0.95rem; }

/* Contact */
.contact { text-align: center; }
.contact-lede { color: var(--muted); font-size: 1.15rem; margin-bottom: 1.75rem; }
.contact-links { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); font-size: 0.85rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-grid p { margin: 0; }

/* Responsive */
@media (max-width: 820px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; width: min(60%, 220px); margin-top: 8px; }
  .cols { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
