:root {
  color-scheme: light;
  --ink: #111816;
  --muted: #53615c;
  --line: #d9dfdb;
  --panel: #ffffff;
  --paper: #f5f2ea;
  --accent: #1f6f5b;
  --accent-dark: #10251f;
  --gold: #b28336;
  --blue: #2f5f91;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(17, 24, 22, 0.12);
  background: rgba(245, 242, 234, 0.92);
  padding: 16px clamp(20px, 5vw, 72px);
  backdrop-filter: blur(12px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  min-height: 86vh;
  padding: clamp(64px, 10vw, 128px) clamp(20px, 5vw, 72px) clamp(44px, 8vw, 88px);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.metric-value {
  display: block;
  font-size: 28px;
  font-weight: 850;
}

.metric-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: 1120px;
  margin-bottom: 28px;
}

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

.project-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
}

.project-card.featured {
  grid-column: span 2;
  background: var(--accent-dark);
  color: #f6f3eb;
}

.project-card.featured p {
  color: #cad6d0;
}

.project-card p {
  color: var(--muted);
  line-height: 1.6;
}

.tag {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.stack,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.stack li,
.links a,
.links span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.project-card.featured .stack li,
.project-card.featured .links a,
.project-card.featured .links span {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f6f3eb;
}

.links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.visual img {
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.split > div:first-child p:last-child {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.capability-list {
  display: grid;
  gap: 14px;
}

.capability-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.capability-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.compact {
  max-width: 920px;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-links a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  padding: 16px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  h1 {
    font-size: 42px;
  }
}

.npm-card {
  position: relative;
  overflow: hidden;
}

.npm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(120, 119, 198, 0.22), transparent 34rem);
  pointer-events: none;
}

.npm-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0;
}

.npm-stats span {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
}

.npm-stats strong {
  color: #fff;
}
.gf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 143, 104, 0.20), transparent 34rem);
  pointer-events: none;
}
.gf-card {
  position: relative;
  overflow: hidden;
  color: var(--ink);
}

.gf-card h3,
.gf-card p,
.gf-card span,
.gf-card strong {
  color: var(--ink);
}

.gf-card .project-kicker {
  color: var(--muted);
}

.gf-card .npm-stats span {
  border-color: rgba(17, 24, 22, 0.12);
  background: rgba(17, 24, 22, 0.04);
}

.gf-card a {
  color: var(--accent);
  font-weight: 700;
}
