/* ============================================================
   ARSEMA GEBRESELAMA — PROJECT CASE STUDY STYLES
   Shared styles for all project pages
   ============================================================ */

/* NOTE: styles.css is loaded separately in each project page <head> */

/* ── PROJECT HERO ────────────────────────────────────────── */
.project-hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--black);
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.project-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform 10s ease;
}
.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,8,8,0.88) 0%,
    rgba(26,8,8,0.3) 50%,
    rgba(26,8,8,0.15) 100%
  );
}

.project-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem 5rem;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.project-back {
  position: absolute;
  top: calc(var(--nav-h) + 2rem);
  left: 3rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.6);
  transition: color var(--dur-fast) ease, gap var(--dur-fast) ease;
}
.project-back:hover { color: var(--ivory); gap: 1rem; }
.project-back-arrow { font-size: 0.9rem; }

.project-hero-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta-lt);
  margin-bottom: 1.2rem;
}
.project-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.project-hero-title em {
  display: block;
  font-style: italic;
  color: var(--stone);
}
.project-hero-meta {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.project-hero-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(245,240,232,0.2);
}

/* ── PROJECT OVERVIEW ────────────────────────────────────── */
.project-overview {
  background: var(--ivory);
  padding: 7rem 0;
}
.project-overview-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 7rem;
  align-items: start;
}
.project-overview-label {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 120px;
}
.project-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}
.project-detail {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ivory-dark);
}
.project-detail-key {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone-mid);
}
.project-detail-val {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--charcoal);
}

.project-overview-copy {}
.project-overview-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}
.project-overview-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--charcoal-mid);
}
.project-overview-body + .project-overview-body { margin-top: 1.4rem; }

/* ── FULL-BLEED IMAGE ────────────────────────────────────── */
.project-full-bleed {
  width: 100%;
  height: 80vh;
  min-height: 450px;
  overflow: hidden;
  position: relative;
}
.project-full-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.project-full-bleed:hover img { transform: scale(1.03); }

/* ── IMAGE GALLERY ───────────────────────────────────────── */
.project-gallery {
  background: var(--charcoal);
  padding: 6rem 0;
}
.project-gallery-label {
  margin-bottom: 3rem;
}
.project-gallery-label .section-label {
  color: var(--stone-mid);
}
.project-gallery-label .section-label::before {
  background: var(--stone-mid);
}

.gallery-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.gallery-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}
.gallery-grid-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.gallery-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-img.tall { aspect-ratio: 3/4; }
.gallery-img.wide { aspect-ratio: 16/9; }
.gallery-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery-img:hover img { transform: scale(1.05); }

/* ── NEXT PROJECT ────────────────────────────────────────── */
.project-next {
  background: var(--black);
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-next-bg {
  position: absolute;
  inset: 0;
}
.project-next-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: opacity var(--dur-mid) ease, transform 0.8s var(--ease-out);
}
.project-next:hover .project-next-bg img {
  opacity: 0.55;
  transform: scale(1.04);
}
.project-next-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,8,8,0.45);
}
.project-next-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem;
}
.project-next-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  margin-bottom: 1.2rem;
}
.project-next-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  transition: color var(--dur-fast) ease;
}
.project-next:hover .project-next-title { color: var(--white); }
.project-next-arrow {
  font-size: 1.8rem;
  color: var(--terracotta-lt);
  display: block;
  transition: transform var(--dur-fast) ease;
}
.project-next:hover .project-next-arrow { transform: translateX(8px); }

/* ── SECTION DIVIDER ─────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: var(--ivory-dark);
  margin: 0;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .project-hero-content { padding: 0 1.5rem 4rem; }
  .project-back { left: 1.5rem; }
  .project-overview-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .project-overview-label { position: static; }
  .gallery-grid-2,
  .gallery-grid-3,
  .gallery-grid-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .project-hero { height: 80vh; }
  .project-hero-title { font-size: clamp(2.8rem, 12vw, 4rem); }
}
