/* ============================================
   PROJECT PAGE — additional styles
   ============================================ */

/* Graphics Works — captions and portrait images */
.graphics-caption {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1px;
}

.graphics-caption:last-of-type {
  border-bottom: none;
}

.graphics-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.graphics-desc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  line-height: 1.7;
}

.project-image-item.graphics-portrait {
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
}

#such-great-heights img {
  filter: contrast(1.25) brightness(0.88);
}

.project-image-item.photo-portrait {
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
}

.project-image-item.photo-natural {
  aspect-ratio: unset;
}

.project-image-item.photo-natural img {
  height: auto;
  object-fit: unset;
}

/* ---- Key Areas of Improvement ---- */
.project-key-areas {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
}

.key-area-item {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.key-area-item:last-child {
  border-bottom: 1px solid var(--line);
}

.key-area-divider { display: none; }

/* ---- Before / After pairs ---- */
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin-bottom: 1px;
}

.ba-item {
  position: relative;
  background: var(--bg-3);
}

.ba-item .project-image-item {
  aspect-ratio: 4 / 3;
}

.ba-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.25rem 0.65rem;
  pointer-events: none;
}

.ba-label.proposed {
  color: var(--accent);
}

@media (max-width: 600px) {
  .ba-pair {
    grid-template-columns: 1fr;
  }
}

/* Section titles within project body */
.project-section {
  margin: 6rem 0 3rem;
}

.project-section-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.project-text-block {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-mid);
}

.project-text-block p + p {
  margin-top: 1.2em;
}

.project-text-block strong {
  color: var(--text);
  font-weight: 500;
}

/* Spacing between image grids */
.project-images + .project-images {
  margin-top: 1px;
}

.project-section + .project-images {
  margin-top: 3rem;
}

.project-images + .project-section {
  margin-top: 6rem;
}

/* Theory grid */
.project-theory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 2rem;
}

.theory-item {
  background: var(--bg-2);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.theory-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.theory-concept {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Stats / data block */
.project-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin: 4rem 0;
}

.stat-item {
  background: var(--bg-2);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Video embed */
.project-video {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-3);
  overflow: hidden;
  margin: 3rem 0;
}

.project-video video,
.project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* Full-bleed image (outside project-body) */
.project-full-bleed {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--bg-3);
}

.project-full-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption */
.project-caption {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}

/* Image placeholder (while real images load) */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.4;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .project-theory-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .project-theory-grid {
    grid-template-columns: 1fr;
  }

  .project-stats {
    grid-template-columns: 1fr 1fr;
  }

  .project-section {
    margin: 4rem 0 2rem;
  }

  .project-full-bleed {
    aspect-ratio: 4/3;
  }
}
