/* ============================================================
   Project page — shared styles
   Each individual project file links this and adds its own
   page-specific tweaks if needed.
   ============================================================ */

/* ── HERO ── */
.proj-hero {
  position: relative;
  min-height: 100svh;
  background: var(--dark);
  color: var(--light);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 72px;
  overflow: hidden;
}

.proj-hero__bg { position: absolute; inset: 0; z-index: 0; }
.proj-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.proj-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.2) 100%
  );
}

.proj-hero__content { position: relative; z-index: 2; }

.proj-hero__tag {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}

.proj-hero__tag-sep {
  width: 24px; height: 1px;
  background: rgba(255,255,255,0.3);
}

.proj-hero__title {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 32px;
  max-width: 1000px;
}

.proj-hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.proj-hero__meta {
  display: flex; align-items: center;
  gap: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

.proj-hero__meta-item { display: flex; align-items: center; gap: 8px; }
.proj-hero__meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

/* ── BACK LINK ── */
.proj-back {
  position: absolute;
  top: calc(var(--nav-h) + 24px);
  left: 48px;
  z-index: 2;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  display: flex; align-items: center; gap: 8px;
  transition: color 0.2s ease;
}
.proj-back:hover { color: rgba(255,255,255,0.9); }

/* ── OVERVIEW + CREDITS ── */
.proj-overview {
  background: var(--light);
  padding: 120px 48px;
}

.proj-overview__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 96px;
  align-items: start;
}

.proj-overview__story h2,
.proj-credits h2 {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.proj-overview__body {
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--dark);
  max-width: 640px;
  margin: 0;
}

.proj-overview__body em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.credit-row { display: block; padding: 0 0 24px; }
.credit-row:last-child { padding-bottom: 0; }

.credit-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}

.credit-value {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
}

/* ── VIDEO SECTION ── */
.proj-video {
  background: var(--dark);
  padding: 96px 48px;
}

.proj-video__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.proj-video__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 32px;
}

.proj-video__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.proj-video__embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── GALLERY ── */
.proj-gallery {
  background: var(--dark);
  padding: 80px 48px;
}

.proj-gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  max-width: 1280px;
  margin: 0 auto;
}

.proj-gallery__item {
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.proj-gallery__item:nth-child(4) {
  grid-column: span 6;
  aspect-ratio: 21 / 9;
}

.proj-gallery__item:nth-child(5),
.proj-gallery__item:nth-child(6) {
  grid-column: span 3;
}

.proj-gallery__item img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.proj-gallery__item:hover img { transform: scale(1.04); }

/* ── BACK-TO-ALL-PROJECTS CTA ── */
.proj-back-cta {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

.proj-back-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.proj-back-cta__btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.proj-back-cta__btn svg { transition: transform 0.25s ease; }
.proj-back-cta__btn:hover svg { transform: translateX(-4px); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .proj-hero { padding: 0 28px 56px; }
  .proj-back { left: 28px; }

  .proj-overview { padding: 72px 28px; }
  .proj-overview__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .proj-video { padding: 64px 28px; }

  .proj-gallery { padding: 56px 28px; }
  .proj-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .proj-gallery__item,
  .proj-gallery__item:nth-child(5),
  .proj-gallery__item:nth-child(6) {
    grid-column: span 1;
    aspect-ratio: 16 / 9;
  }
  .proj-gallery__item:nth-child(4) {
    grid-column: span 2;
    aspect-ratio: 21 / 9;
  }
}

@media (max-width: 560px) {
  .proj-gallery__grid { grid-template-columns: 1fr; }
  .proj-gallery__item,
  .proj-gallery__item:nth-child(4),
  .proj-gallery__item:nth-child(5),
  .proj-gallery__item:nth-child(6) {
    grid-column: span 1;
    aspect-ratio: 16 / 9;
  }
}
