body {
  color: #000;
}

/* Content area — centered column */
.project-content {
  max-width: clamp(600px, 50vw, 900px);
  margin: 0 auto;
  padding: clamp(32px, 4vw, 80px) clamp(20px, 2.2vw, 48px) clamp(60px, 5vw, 100px);
}

/* Hero section — intro hangs left of the image */
.hero {
  position: relative;
  margin-bottom: clamp(20px, 2vw, 40px);
}

.hero-intro {
  position: absolute;
  top: 0;
  left: calc(-50vw + 50% + clamp(40px, 5.5vw, 120px));
  width: calc(50vw - 50% - clamp(40px, 5.5vw, 120px) - clamp(24px, 2vw, 40px));
}

.client-name {
  font-size: clamp(12px, 0.9vw, 16px);
  font-weight: 400;
  font-style: italic;
  color: #000;
  letter-spacing: 0.01em;
  margin-bottom: clamp(8px, 0.8vw, 16px);
}

.intro-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 20px; /* overridden by JS to match homepage */
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #000;
}

.hero-image {
  width: 100%;
  display: block;
  border-radius: 2px;
}

.caption {
  font-size: clamp(12px, 0.9vw, 16px);
  color: rgba(0, 0, 0, 0.5);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* Body sections — text hangs left, narrower than images */
.body-block {
  max-width: 80%;
  margin-bottom: clamp(20px, 2vw, 40px);
}

.body-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 20px; /* overridden by JS to match homepage */
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #000;
}

.body-text + .body-text {
  margin-top: 1em;
}

/* Images — all centered in the column */
.image-block {
  margin-bottom: clamp(20px, 2vw, 40px);
}

.image-block.wide {
  width: 100%;
}

.image-block.narrow {
  width: 55%;
  margin-left: auto;
  margin-right: auto;
}

.image-block.full {
  width: 100%;
}

.image-block img,
.image-block video {
  width: 100%;
  display: block;
  border-radius: 2px;
}

/* Credits section — 3-column layout */
.credits {
  display: flex;
  gap: clamp(40px, 4vw, 80px);
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: clamp(24px, 2.5vw, 48px);
  margin-top: clamp(40px, 4vw, 80px);
}

.credits-col {
  flex: 1;
}

.credits-heading {
  font-size: clamp(12px, 0.9vw, 16px);
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.01em;
}

.credits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credits-list li {
  font-size: clamp(12px, 0.9vw, 16px);
  line-height: 1.6;
}

.credit-entry {
  margin-bottom: clamp(12px, 1.2vw, 24px);
}

.credit-role {
  font-size: clamp(12px, 0.9vw, 16px);
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.01em;
}

.credit-name {
  font-size: clamp(12px, 0.9vw, 16px);
  color: #000;
}

.credits-thanks-text {
  font-size: clamp(12px, 0.9vw, 16px);
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin-bottom: clamp(16px, 1.5vw, 32px);
}

/* Project nav — back on left, next on right */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.project-nav-back,
.project-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-nav-back:hover,
.project-nav-next:hover {
  color: #000;
}

.project-nav-back .arrow,
.project-nav-next .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.project-nav-back:hover .arrow {
  transform: translateX(-3px);
}

.project-nav-next:hover .arrow {
  transform: translateX(3px);
}

/* Narrow desktop — stack hero before the left column collapses */
@media (max-width: 1300px) {
  .hero-intro {
    position: static;
    width: auto;
    max-width: 400px;
    margin-bottom: 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .project-content {
    padding: 32px 20px 60px;
  }

  .hero {
    margin-bottom: 40px;
  }

  .hero-intro {
    position: static;
    width: auto;
    margin-bottom: 24px;
  }

  .intro-text {
    font-size: 16px;
  }

  .body-block {
    max-width: none;
    margin-bottom: 40px;
  }

  .body-text {
    font-size: 16px;
  }

  .image-block {
    margin-bottom: 40px;
  }

  .image-block.narrow {
    width: 80%;
  }

  .credits {
    flex-direction: column;
    gap: 24px;
  }

  .project-nav {
    margin-top: 20px;
  }
}
