.project-page {
  min-height: 100vh;
  padding-top: 92px;
}

.project-page__bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--page-x);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(242, 240, 233, 0.94);
  backdrop-filter: blur(6px);
}

.project-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-page__count {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.project-page .case-study__content {
  min-height: calc(100vh - 150px);
}

.project-page h1 {
  margin: 12px 0 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.01em;
}

.project-page h2.case-study__section-label {
  margin: 0;
  font-family: inherit;
  font-weight: 400;
  line-height: inherit;
}

.project-page .case-study__hero img,
.project-page .case-study__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.project-image-trigger:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 899px) {
  .project-page {
    padding-top: 76px;
  }

}

@media (max-width: 640px) {
  .project-page__bar {
    padding-block: 14px;
  }

  .project-page__count {
    font-size: 10px;
  }
}
