/* ═══════════════════════════════════════════════════════════
   PROJECT SINGLE PAGE STYLES
═══════════════════════════════════════════════════════════ */

/* ─── LOADER ─────────────────────────────────────────────── */
.ph-loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}

/* ─── HERO ───────────────────────────────────────────────── */
.ph-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.ph-img-wrap {
  position: absolute;
  inset: 0;
}

.ph-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* bottom gradient scrim */
.ph-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.ph-hero .navbar {
  position: absolute;
  z-index: 10;
}

/* ─── HERO CONTENT ───────────────────────────────────────── */
.ph-hero-content {
  position: absolute;
  bottom: 48px;
  left: 48px;
  z-index: 5;
  perspective: 800px;
}

/* sub heading — sits above the title */
.ph-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-bottom: 12px;
  perspective: 600px;
}

.ph-sub-word {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* main project title */
.ph-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.28em;
  font-family: var(--font-body);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0;
}

/* ─── ANIMATION HELPERS (same as projects hero) ──────────── */
.ph-plw {
  display: inline-block;
  overflow: hidden;
  line-height: 1.2;
}

.ph-pl {
  display: inline-block;
  transform-origin: center bottom;
}

/* ─── META SECTION ───────────────────────────────────────── */
.ph-meta {
  position: relative;
  background: #fff;
  padding: 86px 48px 56px; /* 48px bar-top + 2px bar + 36px gap = 86px */
  overflow: hidden;
}

.ph-meta-bar {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow-600);
  transform: scaleX(0);
  transform-origin: left center;
}

.ph-meta-grid {
  display: flex;
  gap: 0;
}

.ph-meta-item {
  flex: 1;
  perspective: 500px;
  padding-right: 32px;
}

.ph-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 10px;
  overflow: hidden;
}

.ph-meta-value {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 500;
  color: var(--gs-1100);
  overflow: hidden;
}

/* ─── GALLERY ────────────────────────────────────────────── */
.pg-gallery {
  background: var(--gs-200);
  padding: 64px 48px;
}

.pg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pg-item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.pg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s ease;
}

.pg-item:hover img {
  transform: scale(1.04);
}

/* ─── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ph-hero-content {
    bottom: 32px;
    left: 24px;
    right: 24px;
  }

  .ph-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .ph-sub {
    margin-bottom: 8px;
  }

  /* meta — bar becomes vertical left strip */
  .ph-meta {
    padding: 40px 24px 40px 54px;
  }

  .ph-meta-bar {
    top: 32px;
    left: 28px;
    right: auto;
    bottom: 0;
    width: 2px;
    height: unset;
    transform: scaleY(0);
    transform-origin: top center;
  }

  .ph-meta-grid {
    flex-direction: column;
    gap: 32px;
  }

  .ph-meta-item {
    padding-right: 0;
  }

  .pg-gallery {
    padding: 48px 24px;
  }

  .pg-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
