.project-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.project-logo {
  height: 44px;
  width: auto;
}

.project-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.project-hero {
  position: relative;
  width: 100%;
  max-height: 540px;
  overflow: hidden;
}

.project-hero-img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 16, 15, 0.92) 100%);
}

.project-hero-copy {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 1;
}

.project-hero-copy h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.1;
}

.project-hero-copy .eyebrow {
  margin-bottom: 0.5rem;
}

.project-overview {
  max-width: 820px;
}

.project-description {
  font-size: 1.15rem;
  color: var(--muted-strong);
  line-height: 1.7;
  margin: 0;
}

.build-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.build-photo {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.build-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.build-photo figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.project-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 620px) {
  .project-header {
    padding: 0.75rem 1.25rem;
  }

  .project-subnav {
    padding: 0.35rem 1rem;
  }

  .project-subnav .button {
    min-height: 34px;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  .project-hero-img {
    height: 340px;
  }

  .project-hero-copy {
    left: 1.25rem;
    bottom: 1.25rem;
  }

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

  .project-nav {
    flex-direction: column;
  }

  .project-nav .button {
    width: 100%;
    text-align: center;
  }
}
