:root {
  --ink: #15171c;
  --muted: #606978;
  --paper: #f6f7f4;
  --panel: #ffffff;
  --line: #d9ded7;
  --accent: #9f4d52;
  --gold: #c4832d;
  --shadow: 0 24px 70px rgba(21, 23, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.masthead,
.intro,
.work-grid,
.about,
.contact {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
}

.logo,
nav a,
.contact a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

nav a {
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--muted);
}

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

.intro {
  padding: 76px 0 44px;
}

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

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

h1 {
  max-width: 1030px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  line-height: 1.05;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.68;
}

.intro p {
  max-width: 740px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 18px 0 78px;
}

.project {
  min-height: 380px;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project--large {
  grid-column: span 2;
  grid-row: span 2;
}

.project--wide {
  grid-column: span 2;
}

.project img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 320ms ease, filter 320ms ease;
}

.project div {
  position: relative;
  z-index: 1;
  padding: 90px 22px 22px;
  background: linear-gradient(180deg, rgba(21, 23, 28, 0), rgba(21, 23, 28, 0.92));
  color: #fff;
}

.project h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.project p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.project:hover img {
  transform: scale(1.04);
  filter: saturate(0.9) brightness(0.76);
}

.about,
.contact {
  border-top: 1px solid var(--line);
  padding: 54px 0;
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 56px;
}

.about h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.contact {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding-bottom: 78px;
}

@media (max-width: 880px) {
  .masthead,
  .about,
  .contact {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .project,
  .project--large,
  .project--wide {
    grid-column: auto;
    grid-row: auto;
  }
}
