:root {
  --bg: #1a1a1a;
  --bg-alt: #222222;
  --card: #262626;
  --border: #3a3a3a;
  --text: #f5f5f5;
  --text-dim: #b3b3b3;
  --text-faint: #888888;
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #particle-canvas {
    display: none;
  }
}

.site-header, main, .site-footer {
  position: relative;
  z-index: 1;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text-faint);
}

a:hover {
  border-bottom-color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: none;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-dim);
  border-bottom: none;
}

.nav-link:hover {
  color: var(--text);
}

.hero {
  padding: 5rem 1.5rem 3.5rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.hero .lede {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 3.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem;
}

.card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 0;
}

.about, .contact {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}

.about h2, .contact h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.about p, .contact p {
  color: var(--text-dim);
  max-width: 620px;
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .services {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .site-footer .wrap {
    flex-direction: column;
    gap: 0.35rem;
  }
}
