:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #12161b;
  --panel-2: #171c22;
  --text: #f4f1e8;
  --muted: #a9b0b8;
  --line: #2a3139;
  --accent: #d5ff70;
  --accent-dark: #11170a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 0%, rgba(213,255,112,.09), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .14em;
  font-size: .88rem;
}

.site-nav nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

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

.site-nav nav a:hover,
.site-nav nav a:focus-visible { color: var(--text); }

.hero {
  padding: 110px 0 96px;
  max-width: 940px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .76rem;
  letter-spacing: .16em;
  font-weight: 900;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 26px;
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: .92;
  letter-spacing: -.055em;
}

.lede {
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.button.secondary { background: var(--panel); }

.button:hover,
.button:focus-visible { transform: translateY(-1px); }

.featured {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-heading { max-width: 650px; margin-bottom: 32px; }

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -.035em;
  margin-bottom: 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  min-width: 0;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
}

.project-card:hover,
.project-card:focus-visible { background: var(--panel-2); border-color: #3d474f; }

.project-number {
  color: #68717a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.project-type {
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .13em;
  font-weight: 900;
  margin-bottom: 10px;
}

.project-card h3 { font-size: 1.8rem; margin-bottom: 12px; }
.project-card p:not(.project-type) { color: var(--muted); line-height: 1.6; }
.project-card strong { display: inline-block; margin-top: 16px; }

.lab-callout {
  margin: 76px 0;
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.lab-callout > div { max-width: 700px; }
.lab-callout p:not(.eyebrow) { color: var(--muted); margin-bottom: 0; line-height: 1.6; }

footer {
  min-height: 90px;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 760px) {
  .site-shell { width: min(100% - 28px, 1120px); }
  .site-nav { align-items: flex-start; flex-direction: column; justify-content: center; padding: 20px 0; }
  .hero { padding: 72px 0 64px; }
  .project-grid { grid-template-columns: 1fr; }
  .lab-callout { align-items: flex-start; flex-direction: column; padding: 26px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}
