:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #fffefa;
  --ink: #16130f;
  --muted: #665f55;
  --line: #d8d0c3;
  --accent: #0f6b62;
  --accent-dark: #08453f;
  --rust: #a3492b;
  --gold: #c5912d;
  --shadow: 0 24px 80px rgba(45, 38, 28, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fffefa;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 1px 20px rgba(26, 22, 16, 0.08);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
  opacity: 0.88;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 8, 0.84) 0%, rgba(10, 10, 8, 0.48) 44%, rgba(10, 10, 8, 0.1) 100%),
    linear-gradient(0deg, rgba(10, 10, 8, 0.68) 0%, rgba(10, 10, 8, 0) 42%);
}

.hero__content {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 80px;
  color: #fffefa;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f6c268;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  line-height: 1.2;
}

.hero__summary {
  max-width: 600px;
  color: rgba(255, 254, 250, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero__actions,
.contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

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

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--accent-dark);
}

.button--secondary {
  border-color: rgba(255, 254, 250, 0.58);
  color: #fffefa;
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(255, 254, 250, 0.12);
}

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

.intro {
  color: var(--accent-dark);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: 1.25;
}

.intro p {
  max-width: 970px;
  margin-bottom: 0;
}

.section__header {
  max-width: 680px;
  margin-bottom: 28px;
}

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

.project-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-card:nth-child(2) {
  transform: translateY(28px);
}

.project-card__meta {
  margin-bottom: auto;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

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

.stat-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.stat-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.stat-list span {
  color: var(--rust);
  font-weight: 900;
}

.contact {
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.contact p {
  max-width: 660px;
  font-size: 1.12rem;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-header {
    padding: 14px 20px;
  }

  .nav {
    gap: 14px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(10, 10, 8, 0.82) 0%, rgba(10, 10, 8, 0.52) 100%),
      linear-gradient(0deg, rgba(10, 10, 8, 0.72) 0%, rgba(10, 10, 8, 0) 48%);
  }

  .hero__content {
    padding-bottom: 52px;
  }

  .section {
    padding: 64px 0;
  }

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

  .project-card:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 0.96rem;
  }

  .nav a {
    padding: 6px 0;
  }

  .hero__content,
  .section,
  .site-footer {
    width: min(100% - 32px, 1120px);
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.7rem);
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 320px);
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
