:root {
  color-scheme: light;
  --ink: #121417;
  --muted: #5b616b;
  --paper: #f7f4ed;
  --panel: #fffdfa;
  --line: rgba(18, 20, 23, 0.13);
  --blue: #2554c7;
  --green: #28785f;
  --rust: #b85c38;
  --shadow: 0 22px 70px rgba(20, 24, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(18px, 5vw, 64px);
  color: #fff;
}

.brand {
  font-size: 0.95rem;
  font-weight: 800;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

nav a:hover,
.brand:hover {
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(640px, 88vh, 820px);
  overflow: hidden;
  align-items: center;
  padding: 118px clamp(20px, 6vw, 82px) 82px;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.92) 0%, rgba(8, 10, 14, 0.72) 42%, rgba(8, 10, 14, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.24) 0%, rgba(8, 10, 14, 0.08) 48%, rgba(8, 10, 14, 0.52) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #eeb386;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  border-color: #fff;
  background: #fff;
  color: #111318;
}

.button.secondary {
  color: #fff;
}

.button.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro > div {
  min-height: 150px;
  padding: 30px clamp(20px, 5vw, 54px);
  background: var(--panel);
}

.metric {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
}

.intro p,
.project-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 82px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.project-card {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 42px;
}

.project-meta span,
.stack-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

h3 {
  margin-bottom: 16px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.stack-list span {
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
}

.contact {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: #d9e5df;
  padding: clamp(44px, 7vw, 78px) clamp(20px, 6vw, 82px);
}

.contact h2 {
  max-width: 780px;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 700px;
    padding-top: 96px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 10, 14, 0.84) 0%, rgba(8, 10, 14, 0.56) 45%, rgba(8, 10, 14, 0.82) 100%);
  }

  h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

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

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

  .contact {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .contact {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
