:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --accent: #0ea5a4;
  --accent-dark: #0b8786;
  --bg: #fafaf9;
  --bg-alt: #f1f5f4;
  --border: #e2e8e7;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
}

a {
  color: var(--accent-dark);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 249, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.brand-logo {
  height: 32px;
  width: 32px;
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

/* Hero */

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 1rem;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

/* About */

.about-grid {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.headshot {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

/* Certifications */

.certs {
  margin-bottom: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.cert-badge {
  margin: 0;
  text-align: center;
  width: 110px;
}

.cert-badge img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.cert-badge figcaption {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cert-list li::before {
  content: "— ";
  color: var(--accent-dark);
}

/* Experience */

.experience {
  padding-top: 2rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--border);
}

.experience h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.experience-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.6rem;
}

.experience-list a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.experience-list a:hover {
  color: var(--accent-dark);
}

.experience-current {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.linkedin-cta {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-dark);
}

.linkedin-cta:hover {
  text-decoration: underline;
}

/* Philosophy / essay */

.philosophy {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.philosophy h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.philosophy p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
  max-width: 75ch;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: var(--accent-dark);
}

.service-card p {
  color: var(--ink-soft);
  margin: 0;
}

/* Contact */

.contact-inner {
  text-align: center;
  max-width: 50ch;
}

.contact-inner p {
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
  }

  .about-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0 3rem;
    text-align: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .cert-badges {
    justify-content: center;
  }
}
