:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5d6863;
  --paper: #f7f3ec;
  --surface: #ffffff;
  --line: #ded8cd;
  --green: #0f7b63;
  --blue: #275d92;
  --red: #b94b46;
  --gold: #c6922f;
  --shadow: 0 18px 50px rgba(23, 32, 28, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

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

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 243, 236, 0.92);
  border-bottom: 1px solid rgba(222, 216, 205, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  transition: color 160ms ease;
}

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

.nav-action {
  color: var(--green);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: end;
  min-height: calc(100vh - 78px);
  padding: clamp(64px, 10vw, 128px) clamp(20px, 5vw, 72px) 48px;
}

.hero h1,
.section h2,
.contact-section h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 960px;
  font-size: clamp(2.7rem, 5.4vw, 5rem);
}

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

.hero-lede {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 123, 99, 0.18);
}

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

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

.metric {
  border-left: 5px solid var(--gold);
  background: rgba(255, 255, 255, 0.72);
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(23, 32, 28, 0.06);
}

.metric:nth-child(2) {
  border-color: var(--blue);
}

.metric:nth-child(3) {
  border-color: var(--green);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: 1.35rem;
}

.metric span {
  color: var(--muted);
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(20px, 5vw, 72px) 72px;
}

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

.image-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section {
  padding: 88px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

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

.section h2,
.contact-section h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.project-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(23, 32, 28, 0.06);
}

.project-card.featured {
  grid-column: span 2;
  background: #f9fbf8;
  border-color: rgba(15, 123, 99, 0.28);
}

.project-type {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card h3,
.stack-list h3,
.timeline-item h3,
.background-grid h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.project-card p,
.stack-list p,
.timeline-item p,
.background-grid p {
  margin: 0;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fbfaf7;
  color: #39443f;
  font-size: 0.8rem;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
}

.split-section .section-heading {
  position: sticky;
  top: 112px;
  margin-bottom: 0;
}

.split-section .section-heading h2 {
  max-width: 620px;
  font-size: clamp(2.4rem, 4.7vw, 5.1rem);
}

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

.stack-list > div {
  min-height: 210px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 12px 34px rgba(23, 32, 28, 0.06);
}

.stack-list h3 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.stack-list p {
  max-width: 95%;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.65;
}

.stack-list > div:nth-child(2) {
  border-color: var(--blue);
}

.stack-list > div:nth-child(3) {
  border-color: var(--gold);
}

.stack-list > div:nth-child(4) {
  border-color: var(--red);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.timeline-item span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

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

.background-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 12px 34px rgba(23, 32, 28, 0.06);
}

.background-grid a {
  color: var(--green);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 88px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: var(--paper);
}

.contact-section .eyebrow {
  color: #f0b85a;
}

.contact-section .button.secondary {
  border-color: rgba(247, 243, 236, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

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

  .split-section .section-heading {
    position: static;
    margin-bottom: 8px;
  }

  .split-section .section-heading h2 {
    max-width: 760px;
    font-size: clamp(2.25rem, 7vw, 4rem);
  }

  .hero {
    min-height: auto;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-bottom: 0;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11.5vw, 3.35rem);
  }

  .project-grid,
  .image-strip,
  .stack-list,
  .background-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .contact-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .stack-list > div {
    min-height: 0;
    padding: 24px;
  }
}
