:root {
  --ink: #111412;
  --muted: #59605a;
  --paper: #f7f4ed;
  --paper-strong: #fffaf0;
  --line: rgba(17, 20, 18, 0.16);
  --green: #23483a;
  --red: #bd3a25;
  --white: #ffffff;
  --shadow: 0 18px 54px rgba(17, 20, 18, 0.16);
}

* {
  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;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 56px);
  color: var(--white);
}

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

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.9rem;
  font-weight: 620;
}

.nav a {
  opacity: 0.82;
}

.nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 12, 10, 0.76), rgba(10, 12, 10, 0.12) 58%),
    linear-gradient(0deg, rgba(10, 12, 10, 0.52), transparent 42%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 40px));
  margin: 0 clamp(20px, 6vw, 80px) clamp(54px, 9vh, 92px);
}

.eyebrow {
  margin: 0 0 14px;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.72;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(4rem, 12vw, 9.4rem);
  line-height: 0.88;
  font-weight: 820;
}

.lead {
  max-width: 620px;
  margin: 26px 0 0;
  font-size: clamp(1.08rem, 2.2vw, 1.42rem);
  color: rgba(255, 255, 255, 0.84);
}

.hero-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: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 720;
}

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

.button.secondary {
  color: var(--white);
}

.intro,
.work,
.contact,
.site-footer {
  padding-left: clamp(20px, 6vw, 80px);
  padding-right: clamp(20px, 6vw, 80px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
  padding-top: clamp(42px, 7vw, 86px);
  padding-bottom: clamp(42px, 7vw, 86px);
  border-bottom: 1px solid var(--line);
}

.intro-text p {
  max-width: 850px;
  margin: 0;
  font-size: clamp(1.45rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  font-weight: 760;
}

.intro-meta {
  display: grid;
  gap: 10px;
  min-width: 170px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 680;
}

.intro-meta span {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.work {
  padding-top: clamp(54px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 112px);
}

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

h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 0.96;
}

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

.project-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.card-kicker {
  margin: 0 0 auto;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 48px 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.04;
}

.project-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding-top: clamp(48px, 7vw, 86px);
  padding-bottom: clamp(48px, 7vw, 86px);
  background: var(--ink);
  color: var(--white);
}

.contact-link {
  color: #f3c56a;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 760;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 26px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.64);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero {
    min-height: 78svh;
  }

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

  .intro-meta {
    min-width: 0;
  }

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

  .project-card {
    min-height: 230px;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 14px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(3.4rem, 20vw, 5.6rem);
  }

  .hero-content {
    margin-bottom: 42px;
  }

  .button {
    width: 100%;
  }

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