:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --panel: #ffffff;
  --ink: #181a1b;
  --muted: #5d646b;
  --line: #d9ddd7;
  --green: #1f7a5a;
  --cyan: #236d80;
  --amber: #a86b14;
  --blue: #315fbd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 40px;
  background: rgba(247, 247, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

nav a {
  text-decoration: none;
}

nav a:hover,
.text-link:hover,
.project-card a:hover {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px;
  min-height: calc(100vh - 68px);
  padding: 96px 40px 64px;
  border-bottom: 1px solid var(--line);
}

.hero-copy,
.section,
.site-footer {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: 68px;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

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

.lead {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 21px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.project-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 120px));
  align-items: center;
  gap: 22px;
  width: min(100%, 680px);
  margin: 0 auto;
}

.project-strip img,
.project-mark {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(24, 26, 27, 0.12);
}

.project-mark,
.nexus-mark {
  display: grid;
  place-items: center;
  background: #141719;
  color: #ffffff;
  font-size: 34px;
  font-weight: 800;
}

.section {
  padding: 78px 40px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

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

.project-card {
  min-height: 340px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

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

.project-card a,
.text-link {
  font-weight: 750;
  text-decoration: none;
}

.project-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 8px;
  object-fit: cover;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
  gap: 42px;
  border-top: 1px solid var(--line);
}

.split-section.alt {
  border-bottom: 1px solid var(--line);
}

.copy-block {
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
}

.copy-block p {
  margin-bottom: 18px;
}

.about-section {
  max-width: 880px;
}

.about-section p:last-child {
  color: var(--muted);
  font-size: 20px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 34px 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span {
  margin-right: auto;
  color: var(--ink);
  font-weight: 750;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 24px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 74px 24px 48px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 30px;
  }

  .lead {
    font-size: 18px;
  }

  .project-strip {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
    gap: 12px;
  }

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

  .section {
    padding: 56px 24px;
  }
}

@media (max-width: 560px) {
  nav {
    gap: 12px;
    font-size: 13px;
  }

  h1 {
    font-size: 42px;
  }

  .project-grid {
    gap: 12px;
  }

  .project-card {
    min-height: auto;
  }
}
