:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #6a6a6a;
  --rule: #e9e9e7;
  --max: 720px;
  --pad: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; margin-bottom: 1.2em; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }

p { margin: 0 0 1em; }

/* Header */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 13px;
  border-radius: 3px;
}
.brand-name { font-size: 14px; }

.site-header nav { display: flex; gap: 20px; align-items: center; font-size: 14px; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.cta {
  color: var(--paper);
  background: var(--ink);
  padding: 7px 14px;
  border-radius: 3px;
}

@media (max-width: 480px) {
  .brand-name { display: none; }
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) var(--pad) clamp(36px, 6vw, 56px);
}
.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 1em 0 1.6em;
  max-width: 56ch;
}

.btn-primary {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-primary:hover { text-decoration: none; opacity: 0.9; }

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 56px) var(--pad);
  border-top: 1px solid var(--rule);
}

/* Services as a clean list, not cards */
.services {
  list-style: none;
  padding: 0;
  margin: 0;
}
.services li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}
.services li:last-child { border-bottom: none; }
.services li strong { color: var(--ink); }

/* Projects */
.projects {
  list-style: none;
  padding: 0;
  margin: 0;
}
.projects li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.projects li:last-child { border-bottom: none; }
.projects p { color: var(--muted); margin-bottom: 6px; }

/* Team */
.team {
  list-style: none;
  padding: 0;
  margin: 0;
}
.team li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.team li:last-child { border-bottom: none; }
.team p { color: var(--muted); margin-bottom: 6px; }
.member-body { flex: 1; min-width: 0; }

.avatar {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 20px;
  overflow: hidden;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link {
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  margin-right: 14px;
  font-size: 14px;
}
.link:hover { opacity: 0.7; }

#about p strong { color: var(--ink); }
#about p { color: var(--muted); }
#about p strong { color: var(--ink); }

#contact p { color: var(--muted); margin-bottom: 1.2em; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 24px var(--pad);
  font-size: 13px;
  color: var(--muted);
}
.footer-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.footer-row a { color: var(--muted); }
.footer-row a:hover { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

::selection { background: var(--ink); color: var(--paper); }

/* Legal pages (privacy, terms) inherit the same column width */
.legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) var(--pad);
}
.legal h1 { margin-bottom: 6px; }
.legal h2 {
  margin-top: 2em;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 4px; }
.legal-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 2em;
}
.legal-back {
  margin-top: 2.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}

/* Drop the older eyebrow / card / grid styles if anything still references them */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
}
