/* Project Page */

/* Header */
.project-header {
  padding: 200px 40px 0;
}

.project-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1a1a;
}

/* Metadata */
.project-meta {
  display: flex;
  justify-content: space-between;
  padding: 40px 0 32px;
  margin: 0 40px;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
}

.meta-value {
  font-size: 20px;
  font-weight: 500;
  color: #1a1a1a;
}

/* Hero Image */
.project-hero {
  padding: 40px 0 0;
}

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

/* Sections: 200px gap between, 80px gap inside */
.project-section {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 0 40px;
  margin-top: 200px;
}

.project-heading {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: #1a1a1a;
}

.project-text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.project-text-col p {
  font-size: 20px;
  line-height: 1.7;
  color: #1a1a1a;
}

/* Image Rows (inside sections, no extra padding) */
.project-image-row {
  display: grid;
  gap: 16px;
}

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

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

.project-image-row img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.project-section > img {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.project-image-row:has(.img-auto-width) {
  grid-template-columns: 1fr 1fr auto;
  align-items: stretch;
}

.project-image-row img.img-auto-width {
  width: auto;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* Quote */
.project-quote {
  max-width: 900px;
  margin: 0;
  padding: 0;
}

.project-quote p {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  color: #1a1a1a;
}

/* Subheading */
.project-subheading {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  line-height: 1.5;
}

/* Next Project */
.next-project {
  display: block;
  text-decoration: none;
  color: #1a1a1a;
  margin-top: 240px;
  padding: 80px 40px;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

.next-project:hover {
  background-color: #1a1a1a;
  color: #fff;
}

.next-project-label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.5;
}

.next-project-name {
  display: block;
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

/* Footer */
.project-footer {
  padding: 240px 40px 0;
}

.footer-top {
  display: flex;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-col {
  flex: 1;
}

.footer-col-copyright {
  flex: 0;
  white-space: nowrap;
  text-align: right;
  margin-left: auto;
}

.footer-col-title {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 16px;
  color: #1a1a1a;
}

.footer-col p {
  font-size: 20px;
  color: #1a1a1a;
  margin: 0 0 6px;
  line-height: 1.5;
}

.footer-col a {
  color: #1a1a1a;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  overflow: hidden;
  margin-top: 40px;
  margin-left: -40px;
  margin-right: -40px;
}

.footer-credit {
  display: block;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(26, 26, 26, 0.5);
  padding: 120px 0 24px;
  position: relative;
  z-index: 2;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-credit a:hover {
  color: #1a1a1a;
}

.footer-logo {
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  display: block;
  white-space: nowrap;
  font-size: 36.8vw;
  line-height: 0.78;
  text-align: center;
  text-indent: 0.02em;
  transform: translateY(20%);
}

/* Split word animation */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.split-word-inner {
  display: inline-block;
}

/* Parallax hero overflow */
.project-hero {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .project-header {
    padding: 120px 20px 0;
  }

  .project-title {
    font-size: 22px;
  }

  .project-meta {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0 24px;
    margin: 0 20px;
  }

  .project-meta-item {
    min-width: 40%;
  }

  .project-hero {
    padding: 24px 20px 0;
  }

  .project-hero img {
    height: 50vw;
    max-height: 400px;
  }

  .footer-logo {
    font-size: 24.5vw;
  }

  .project-section {
    padding: 0 20px;
    margin-top: 48px;
    gap: 24px;
  }

  .project-heading {
    font-size: 24px;
    white-space: normal;
  }

  .project-text-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-image-row--2,
  .project-image-row--3,
  .project-image-row:has(.img-auto-width) {
    grid-template-columns: 1fr;
  }

  .project-image-row img.img-auto-width {
    width: 100%;
    height: auto;
  }

  .project-quote p {
    font-size: 16px;
  }

  .project-footer {
    padding: 48px 20px 0;
  }

  .footer-bottom {
    margin-left: -20px;
    margin-right: -20px;
  }

  .footer-top {
    flex-wrap: wrap;
    gap: 40px;
  }

  .footer-col {
    min-width: 40%;
  }

  .footer-col-copyright {
    flex: 0 0 100%;
    min-width: 100%;
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .project-hero img {
    height: auto;
    max-height: 280px;
  }

  .project-heading {
    font-size: 20px;
  }

  .project-section {
    padding: 0 16px;
    margin-top: 36px;
  }

  .project-header {
    padding: 100px 16px 0;
  }

  .project-footer {
    padding: 36px 16px 0;
  }

  .footer-bottom {
    margin-left: -16px;
    margin-right: -16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .project-heading {
    font-size: 30px;
  }

  .footer-logo {
    font-size: 27.9vw;
  }
}
