/* ── Project Hero ── */
.project-hero {
  padding: 4rem 3rem 1.5rem;
}

.project-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* Full-bleed hero image */
.project-hero-img {
  width: 100%;
  margin-bottom: 0;
}

.project-hero-img img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  display: block;
}

/* ── Project Meta ── */
.project-meta {
  display: flex;
  justify-content: space-between;
  padding: 1.8rem 3rem 1.8rem;
  margin: 0 0 2.5rem;
}

.project-meta-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.project-meta-value {
  display: block;
  font-size: 1.35rem;
  color: var(--text);
}

/* ── Project Gallery ── */
.project-gallery {
  padding: 0 3rem;
  display: grid;
  gap: 2.5rem;
}

.project-gallery .gallery-row-full {
  width: 100%;
}

.project-gallery .gallery-row-full img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
}

.project-gallery .gallery-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.project-gallery .gallery-row-half img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.project-gallery .gallery-row-full-tall img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px;
}

/* Gallery image animation */
.project-gallery img {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-gallery img.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Project Nav (Prev / Next) ── */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4rem 3rem 0;
  margin-top: 3rem;
}

.project-nav-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.3s;
  max-width: 280px;
}

.project-nav-link:hover {
  opacity: 0.7;
}

.project-nav-next {
  align-items: flex-end;
  text-align: right;
}

.project-nav-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-nav-arrow {
  font-size: 1.1rem;
}

.project-nav-thumb {
  width: 160px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 3px;
}

.project-nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-nav-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .project-hero { padding: 3rem 1.5rem 1rem; }
  .project-hero-img img { height: 50vh; }
  .project-meta {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1.5rem;
    margin: 0 0 2rem;
  }
  .project-gallery { padding: 0 1.5rem; }
  .project-gallery .gallery-row-half { grid-template-columns: 1fr; }
  .project-nav { padding: 2rem 1.5rem 0; }
  .project-nav-thumb { width: 120px; }
  .project-gallery { gap: 1.5rem; }
  .project-gallery .gallery-row-half { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .project-hero-img img { height: 40vh; }
  .project-meta-value { font-size: 1.1rem; }
  .project-gallery { gap: 1rem; }
  .project-gallery .gallery-row-half { gap: 1rem; }
  .project-nav-thumb { width: 90px; }
  .project-nav-name { font-size: 1.1rem; }
}
