/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --ink:     #0A0A0A;
  --ink-2:   #374151;
  --ink-3:   #6B7280;
  --ink-4:   #9CA3AF;
  --border:  #E5E7EB;
  --bg:      #FFFFFF;
  --bg-off:  #F9FAFB;
  --radius:  10px;
  --max:     1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Grid bg (hero only) ─────────────────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 54px;
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-name {
  font-size: 0.875rem; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.8125rem; color: var(--ink-3);
  text-decoration: none; font-weight: 400;
  transition: color 0.12s;
}
.nav-links a:hover { color: var(--ink); }

/* ── Container ───────────────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 152px 2rem 112px;
}
.hero-eyebrow {
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 1.25rem;
}
h1.hero-name {
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  font-weight: 600; letter-spacing: -0.035em;
  line-height: 0.97; color: var(--ink);
  margin-bottom: 1.75rem;
}
.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  color: var(--ink-2); max-width: 520px;
  line-height: 1.7; font-weight: 300;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5625rem 1.125rem; border-radius: 6px;
  font-size: 0.8125rem; font-weight: 500;
  text-decoration: none; border: none;
  cursor: pointer; transition: all 0.12s;
  font-family: inherit;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1F2937; }

.hero-meta {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 2.5rem; flex-wrap: wrap;
}
.meta-item label {
  display: block; font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 0.3rem;
}
.meta-item span { font-size: 0.875rem; color: var(--ink-2); }

/* ── Section chrome ──────────────────────────────────────────────────── */
section { padding: 88px 0; border-top: 1px solid var(--border); }
.section-label {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 2rem;
}

/* ── About ───────────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem; align-items: start;
}
.prose p {
  font-size: 1rem; line-height: 1.8;
  color: var(--ink-2); font-weight: 300;
  margin-bottom: 1.25rem;
}
.prose p:last-child { margin-bottom: 0; }

/* ── Work grid (flush border grid, Stripe-style) ─────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-card {
  padding: 1.75rem;
  background: var(--bg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.work-card:nth-child(3n) { border-right: none; }
.work-card:last-child { border-right: none; border-bottom: none; }
.work-card:hover { background: var(--bg-off); }

.card-year {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 0.625rem;
}
.card-role {
  font-size: 0.9375rem; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.card-org {
  font-size: 0.8125rem; color: var(--ink-3);
  margin-bottom: 0.875rem;
}
.card-desc { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.65; }

/* ── Project grid ────────────────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.project-card {
  padding: 2rem;
  background: var(--bg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.project-card:hover { background: var(--bg-off); }
.project-card:nth-child(2n) { border-right: none; }
.project-card:nth-last-child(-n+2) { border-bottom: none; }
.project-card:last-child { border-right: none; border-bottom: none; }

.proj-tag {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4); display: block; margin-bottom: 0.625rem;
}
.proj-name {
  font-size: 1rem; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
  margin-bottom: 0.625rem;
}
.proj-desc { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.65; }

/* ── Skills ──────────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}
.skill-group h4 {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 0.875rem;
}
.skill-group ul { list-style: none; }
.skill-group li {
  font-size: 0.875rem; color: var(--ink-2);
  padding: 0.3125rem 0;
  border-bottom: 1px solid var(--border);
}
.skill-group li:last-child { border-bottom: none; }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-links { display: flex; flex-direction: column; gap: 0.625rem; }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-size: 0.9375rem; color: var(--ink-2);
  text-decoration: none; font-weight: 400;
  transition: color 0.12s;
}
.contact-link:hover { color: var(--ink); }
.clink-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
}
.contact-note {
  font-size: 1.0625rem; color: var(--ink-2);
  line-height: 1.75; font-weight: 300;
  margin-bottom: 1.75rem;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2rem;
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
footer span { font-size: 0.75rem; color: var(--ink-4); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .work-card:nth-child(2n) { border-right: none; }
  .work-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .work-card:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 1rem; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .work-card:last-child { border-bottom: none !important; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .project-card:last-child { border-bottom: none !important; }
}
@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .hero { padding: 112px 1.25rem 72px; }
  .container { padding: 0 1.25rem; }
  section { padding: 64px 0; }
  footer { padding: 1.5rem 1.25rem; flex-direction: column; gap: 0.25rem; text-align: center; }
}
