:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-ink: #16202e;
  --color-ink-soft: #4b5768;
  --color-navy: #0f1b2d;
  --color-navy-soft: #1c3049;
  --color-accent: #0f9d8f;
  --color-accent-soft: #3fc4b6;
  --color-border: #dfe4ea;
  --radius: 10px;
  --shadow: 0 12px 30px -18px rgba(15, 27, 45, 0.35);
  --font-heading: "SF Mono", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  color: var(--color-ink-soft);
}

a {
  color: var(--color-navy);
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-navy);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-navy);
}

.brand-name em {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-ink);
  font-size: 0.95rem;
}

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

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--color-navy);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--color-navy-soft);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  background: linear-gradient(180deg, #fbfcfd 0%, var(--color-bg) 100%);
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

.hero-lede {
  font-size: 1.15rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn-ghost:hover {
  background: var(--color-navy);
  color: #fff;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-muted {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.areas-lede {
  max-width: 60ch;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: start;
}

.about-portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--color-navy);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  font-size: 1.9rem;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.about-facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.about-facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-navy);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Certifications */
.cert-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cert-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.cert-list li:first-child {
  border-top: 1px solid var(--color-border);
}

.cert-name {
  font-weight: 600;
  color: var(--color-navy);
}

.cert-meta {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

/* Contact */
.section-contact {
  background: var(--color-navy);
}

.section-contact .section-kicker {
  color: var(--color-accent-soft);
}

.section-contact h2 {
  color: #fff;
}

.section-contact p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 14px;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-soft);
}

.contact-list a,
.contact-list span:not(.contact-label) {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}

.contact-list a:hover {
  color: var(--color-accent-soft);
}

.contact-note {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-note h3 {
  color: #fff;
  font-size: 1.05rem;
}

.contact-note p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
}

.footer-inner p {
  margin: 0;
  color: inherit;
}

/* Responsive */
@media (max-width: 860px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    width: 120px;
    height: 120px;
  }

  .about-facts {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 16px;
    display: none;
  }

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

  .nav-cta {
    align-self: flex-start;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .about-facts {
    grid-template-columns: 1fr;
  }

  .cert-list li {
    flex-direction: column;
    gap: 2px;
  }
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Toptal badge — adapted from Toptal's own badge snippet.
   Renamed its single-letter classes (.a/.b/.c/.d/.f/.h/#r) to avoid
   colliding with anything else on the page, and moved its CSS here
   (was an inline <style> block, blocked by this page's own CSP:
   style-src 'self' has no 'unsafe-inline'). Dropped the Typekit
   @import for the same reason (style-src/font-src would both need to
   allow use.typekit.net) — falls back to the same Arial/sans-serif
   already in the stack below, so it degrades gracefully with no
   visible breakage, just a plainer font on this one widget. */
:root {
  --tt-hex-clip: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
}

.tt-badge-wrap {
  display: flex;
  justify-content: center;
}

.tt-hex {
  font-family: Arial, sans-serif;
  width: 200px;
  padding: 24px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-align: center;
  background: linear-gradient(153deg, #0667ff 18%, #204ecf 40%, #0f256e 80%);
  clip-path: var(--tt-hex-clip);
  box-shadow: 0 28px 50px rgba(6, 30, 96, 0.35);
}

.tt-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.tt-divider {
  width: 120px;
  height: 1px;
  background: #25a9ef;
}

.tt-vetted-by {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: -6px;
}

.tt-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 20px;
  border-radius: 6px;
  background: #296bff;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
}
