:root {
  --bg:#0b0e14;
  --text:#e8eaf0;
  --muted:#9aa3b2;
  --faint:#5b6472;
  --copy:#c3c9d4;
  --accent:#34d399;
  --line:rgba(232,234,240,.08);
  --line-soft:rgba(232,234,240,.06);
  --pill:rgba(232,234,240,.14);
}

*,
*::before,
*::after { box-sizing:border-box; }

html { scroll-behavior:smooth; }

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Instrument Sans','Helvetica Neue',Arial,sans-serif;
}

a { color:inherit; }

.skip-link {
  position:absolute;
  top:-120px;
  left:clamp(20px,5vw,72px);
  z-index:100;
  background:var(--accent);
  color:var(--bg);
  padding:10px 14px;
  border-radius:0 0 3px 3px;
  font-weight:700;
  text-decoration:none;
}

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

.site-header {
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:12px 24px;
  padding:18px clamp(20px,5vw,72px);
  background:rgba(11,14,20,.92);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(8px);
}

.wordmark,
.site-nav,
.eyebrow,
.status-line,
.section-label,
.work-year,
.compact-row em,
.repo-links,
.credential-code,
.project-meta,
.detail-label,
.project-pagination span,
.stat span {
  font-family:'JetBrains Mono',monospace;
}

.wordmark {
  color:var(--muted);
  text-decoration:none;
  font-size:13px;
  letter-spacing:.08em;
}

.site-nav {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:clamp(14px,3vw,36px);
  font-size:12px;
  letter-spacing:.06em;
}

.site-nav a {
  color:var(--muted);
  text-decoration:none;
}

.site-nav a:hover,
.wordmark:hover,
.footer-links a:hover { color:var(--text); }

.site-nav .accent-link,
.repo-links a,
.credential-code { color:var(--accent); }

main { width:100%; }

.hero-section {
  max-width:1440px;
  margin:0 auto;
  padding:clamp(64px,12vw,110px) clamp(20px,5vw,72px) clamp(48px,8vw,90px);
}

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

.status-line {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 22px;
  color:var(--accent);
  font-size:12px;
  letter-spacing:.14em;
}

.status-line span {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
}

.eyebrow,
.section-label {
  margin:0;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.14em;
  line-height:1.9;
}

.hero-section h1 {
  margin:0 0 30px;
  font-size:clamp(56px,7vw,84px);
  font-weight:600;
  letter-spacing:-.03em;
  line-height:1;
}

.hero-subhead {
  max-width:640px;
  margin:0 0 40px;
  color:var(--muted);
  font-size:20px;
  line-height:1.6;
}

.hero-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:28px;
}

.button-primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:13px 26px;
  border-radius:3px;
  background:var(--accent);
  color:var(--bg);
  font-weight:600;
  text-decoration:none;
  transition:transform .18s ease;
}

.button-primary:hover { transform:translateY(-2px); }

.text-link {
  color:var(--text);
  text-decoration:none;
  border-bottom:1px solid rgba(232,234,240,.35);
  padding-bottom:2px;
  overflow-wrap:anywhere;
}

.text-link:hover,
.footer-email:hover { color:var(--accent); border-color:var(--accent); }

.stats-strip {
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:clamp(20px,4vw,32px);
  max-width:1440px;
  margin:0 auto;
  padding:clamp(28px,5vw,44px) clamp(20px,5vw,72px);
}

.stat span {
  display:block;
  margin-bottom:8px;
  color:var(--accent);
  font-size:36px;
  font-weight:500;
}

.stat p {
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.split-section {
  border-top:1px solid var(--line);
  max-width:1440px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:clamp(24px,5vw,48px);
  padding:clamp(48px,8vw,72px) clamp(20px,5vw,72px);
}

.compact-section { padding-block:clamp(36px,6vw,52px); }

.section-label {
  flex:0 1 220px;
  min-width:140px;
}

.section-label span { color:var(--faint); }

.section-body {
  flex:1 1 320px;
  min-width:0;
}

.work-list { margin-top:-24px; }

.work-row {
  display:grid;
  grid-template-columns:minmax(50px,80px) minmax(160px,1fr) auto;
  gap:clamp(12px,3vw,28px);
  align-items:baseline;
  padding:24px 12px;
  border-bottom:1px solid var(--line);
  color:inherit;
  text-decoration:none;
  transition:background .2s;
}

.work-row:hover,
.compact-row:hover,
.ai-row:hover,
.credential-row:hover { background:rgba(232,234,240,.03); }

.work-year {
  color:var(--faint);
  font-size:13px;
}

.work-copy strong {
  display:block;
  margin-bottom:5px;
  font-size:22px;
  font-weight:600;
  line-height:1.25;
}

.work-copy span,
.ai-row span {
  display:block;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.work-arrow,
.credential-arrow {
  color:var(--accent);
  font-size:18px;
}

.compact-list {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:4px 40px;
  margin-top:32px;
}

.compact-row {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:baseline;
  padding:14px 12px;
  border-bottom:1px solid var(--line-soft);
  color:inherit;
  text-decoration:none;
  transition:background .2s;
}

.compact-row span {
  font-size:15px;
  font-weight:500;
}

.compact-row em {
  flex:none;
  color:var(--faint);
  font-size:11px;
  font-style:normal;
}

.section-intro {
  max-width:600px;
  margin:0 0 36px;
  color:var(--copy);
  font-size:17px;
  line-height:1.7;
}

.lab-highlights {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:36px;
  margin-bottom:44px;
}

.lab-highlight {
  border-left:2px solid rgba(232,234,240,.15);
  padding-left:20px;
  color:inherit;
  text-decoration:none;
}

.lab-highlight.active { border-left-color:var(--accent); }

.lab-highlight strong {
  display:block;
  margin-bottom:6px;
  font-size:16px;
  font-weight:600;
}

.lab-highlight span {
  display:block;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.6;
}

.lab-highlight:hover strong { color:var(--accent); }

.ai-list { margin-bottom:40px; }

.ai-row {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:4px 16px;
  align-items:baseline;
  padding:13px 12px;
  border-bottom:1px solid var(--line-soft);
  color:inherit;
  text-decoration:none;
  transition:background .2s;
}

.ai-row strong {
  flex:1 1 200px;
  font-size:15px;
  font-weight:500;
}

.ai-row span {
  flex:1 1 240px;
  min-width:0;
  color:var(--faint);
  font-size:13px;
}

.repo-links {
  display:grid;
  gap:8px;
  margin:0;
  font-size:12.5px;
  line-height:1.7;
}

.repo-links a {
  text-decoration:none;
  overflow-wrap:anywhere;
}

.repo-links a:hover { text-decoration:underline; }

.tag-cloud,
.project-tags {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tag {
  border:1px solid var(--pill);
  border-radius:3px;
  padding:7px 14px;
  color:var(--copy);
  font-size:13px;
}

.credential-list { margin-top:-16px; }

.credential-row {
  display:flex;
  flex-wrap:wrap;
  gap:clamp(10px,2vw,24px);
  align-items:center;
  padding:16px 12px;
  border-bottom:1px solid var(--line);
  color:inherit;
  text-decoration:none;
  transition:background .2s;
}

.credential-row img {
  width:44px;
  height:44px;
  object-fit:contain;
  flex:0 0 auto;
}

.credential-row img.wide-logo {
  width:56px;
  height:44px;
}

.credential-code {
  flex:0 0 auto;
  font-size:13px;
}

.credential-name {
  flex:1 1 220px;
  min-width:0;
  color:var(--copy);
  font-size:15px;
}

.credential-arrow {
  flex:0 0 auto;
  margin-left:auto;
}

.contact-footer {
  border-top:1px solid var(--line);
  max-width:1440px;
  margin:0 auto;
  padding:80px clamp(24px,5vw,72px);
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:flex-end;
  gap:40px;
}

.footer-email {
  display:inline-block;
  max-width:100%;
  color:var(--text);
  font-size:clamp(18px,5vw,34px);
  font-weight:600;
  letter-spacing:-.01em;
  text-decoration:none;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.footer-links {
  display:flex;
  flex-wrap:wrap;
  gap:12px 24px;
  margin:0;
  color:var(--faint);
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
}

.footer-links a {
  color:var(--muted);
  text-decoration:none;
}

.project-page {
  max-width:960px;
  margin:0 auto;
  padding:0 clamp(20px,5vw,72px) clamp(48px,8vw,72px);
}

.project-hero {
  padding:clamp(56px,10vw,92px) 0 clamp(42px,7vw,64px);
}

.project-meta {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:0 0 24px;
  color:var(--faint);
  font-size:12px;
  letter-spacing:.12em;
}

.project-meta span {
  border:1px solid rgba(52,211,153,.35);
  border-radius:3px;
  padding:6px 10px;
  color:var(--accent);
}

.project-hero h1 {
  margin:0 0 24px;
  font-size:clamp(32px,6vw,56px);
  font-weight:600;
  letter-spacing:-.03em;
  line-height:1;
}

.project-hero p:last-child {
  max-width:760px;
  margin:0;
  color:var(--muted);
  font-size:20px;
  line-height:1.6;
}

.project-metrics {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:24px;
  padding:clamp(28px,5vw,44px) 0;
  border-top:1px solid var(--line);
}

.project-metrics strong {
  display:block;
  margin-bottom:8px;
  color:var(--accent);
  font-family:'JetBrains Mono',monospace;
  font-size:34px;
  font-weight:500;
}

.project-metrics span {
  display:block;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.detail-row {
  display:flex;
  flex-wrap:wrap;
  gap:clamp(20px,5vw,48px);
  padding:clamp(34px,6vw,52px) 0;
  border-top:1px solid var(--line);
}

.detail-label {
  flex:0 1 220px;
  min-width:140px;
  margin:0;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.14em;
}

.detail-row > p:not(.detail-label),
.rich-copy,
.link-stack {
  flex:1 1 320px;
  min-width:0;
}

.detail-row > p:not(.detail-label),
.rich-copy p {
  margin:0;
  color:var(--copy);
  font-size:18px;
  line-height:1.75;
}

.rich-copy {
  display:grid;
  gap:16px;
}

.link-stack {
  display:grid;
  gap:12px;
}

.link-stack a {
  color:var(--accent);
  text-decoration:none;
}

.link-stack a:hover { text-decoration:underline; }

.project-tags {
  padding:28px 0 clamp(34px,6vw,52px);
  border-top:1px solid var(--line);
}

.project-pagination {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  padding-top:clamp(34px,6vw,52px);
  border-top:1px solid var(--line);
}

.project-pagination a {
  display:block;
  min-height:92px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:3px;
  color:var(--text);
  text-decoration:none;
}

.project-pagination a:last-child { text-align:right; }

.project-pagination span {
  display:block;
  margin-bottom:10px;
  color:var(--faint);
  font-size:11px;
  letter-spacing:.12em;
}

.project-pagination a:hover {
  border-color:rgba(52,211,153,.35);
  background:rgba(232,234,240,.03);
}

.project-footer {
  max-width:960px;
  margin:0 auto;
  padding:0 clamp(20px,5vw,72px) 56px;
  color:var(--faint);
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
}

@media (max-width:540px) {
  .site-header { align-items:flex-start; }
  .site-nav { width:100%; gap:12px 18px; }
  .stats-strip { grid-template-columns:1fr; }
  .hero-section h1 { font-size:clamp(48px,18vw,64px); }
  .hero-actions { align-items:flex-start; flex-direction:column; gap:18px; }
  .button-primary { width:100%; }
  .work-row { grid-template-columns:1fr auto; }
  .work-year { grid-column:1 / -1; }
  .compact-row { align-items:flex-start; flex-direction:column; }
  .credential-arrow { margin-left:0; }
  .project-pagination { grid-template-columns:1fr; }
  .project-pagination a:last-child { text-align:left; }
}
