:root {
  --bg: #0c0d10;
  --surface: #14161c;
  --surface-hover: #1a1d26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eceef2;
  --muted: #9aa3b2;
  --faint: #5c6575;
  --accent: #3d8bfd;
  --accent-soft: rgba(61, 139, 253, 0.14);
  --radius: 14px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --nav-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #6ba8ff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 2000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Nav */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 13, 16, 0.82);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}
.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
nav a:hover { color: var(--text); }

main { padding-top: var(--nav-h); }

section {
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* Hero */
.hero {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 4rem);
  border-bottom: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.hero .title-line {
  display: block;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.35rem;
  letter-spacing: -0.02em;
}
.hero-lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.hero-lede strong {
  color: #c5cad3;
  font-weight: 600;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #5a9dff; color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

/* Value grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}
.value-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.value-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Consulting / services */
.services-intro {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  border-top: 2px solid rgba(61, 139, 253, 0.5);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.services-foot {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 38rem;
  line-height: 1.65;
}

.services-foot a {
  font-weight: 600;
  text-decoration: none;
}

.services-foot a:hover {
  text-decoration: underline;
}

/* Featured projects */
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}
.project:last-of-type { margin-bottom: 0; }
.project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}
.project-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.project-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.project-context {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.project ul {
  list-style: none;
  margin-bottom: 1rem;
}
.project li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: #c5cad3;
}
.project li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}
.impact {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: #c8d7f0;
  margin-bottom: 1rem;
}
.impact strong {
  color: var(--text);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--border);
}

blockquote.quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}
blockquote.quote strong { color: var(--text); font-style: normal; }

blockquote.quote p + p {
  margin-top: 0.85rem;
}

blockquote.quote footer {
  margin-top: 0.85rem;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--faint);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

blockquote.quote footer strong {
  color: var(--muted);
  font-weight: 600;
}

.quote-footer-meta {
  font-size: 0.75rem;
  color: var(--faint);
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Additional experience */
.additional-list {
  list-style: none;
}
.additional-list > li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}
.additional-list > li:first-child { padding-top: 0; }
.additional-list > li:last-child { border-bottom: none; padding-bottom: 0; }
.additional-list strong {
  color: var(--text);
  font-weight: 600;
}

/* Contact */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  margin-top: 1rem;
}
.contact-row a {
  font-weight: 600;
  text-decoration: none;
}
.contact-row a:hover { text-decoration: underline; }
.contact-row .sep {
  color: var(--faint);
}
.availability {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 0.5rem;
}
.availability strong {
  color: #c5cad3;
  font-weight: 600;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--faint);
  font-size: 0.8rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
  }
  .nav-menu.open { display: block; }
  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  header.site-header { position: fixed; }
}
