/* ── Project Header ── */
.project-header {
  padding: 5rem 4rem 3rem;
  background: var(--bg);
}

.back-link {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

.video-meta {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.project-type {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Video ── */

/*
  Change --video-ratio to match your footage:
  16/9   → standard HD / YouTube
  4/3    → older formats
  2.39/1 → anamorphic / cinemascope
  2.35/1 → cinemascope
  1/1    → square
  9/16   → vertical / portrait
  Custom → any width/height e.g. 17/7
*/
.project-video {
  --video-ratio: 16/9;
  background: #000;
  width: 38%;
  margin: 0 auto;
  aspect-ratio: var(--video-ratio);
  position: relative;
  margin-top: 5.3rem;
  margin-bottom: 4rem;
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.project-video:hover .video-info,
.project-video:hover .video-placeholder {
  opacity: 0;
}

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

.video-placeholder {
  position: absolute;
  inset: 0;
  background: #0d0d0d;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.35s ease;
}

.video-play {
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play svg { width: 28px; height: 28px; color: var(--accent); margin-left: 4px; }

/* ── Meta ── */
.project-meta {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.meta-grid {
  display: flex;
  divide: horizontal;
}

.meta-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 2rem 3rem;
  border-right: 1px solid var(--border);
}
.meta-item:last-child { border-right: none; }

.meta-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.meta-value {
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ── Description ── */
.project-description {
  background: var(--bg);
  padding: 6rem 4rem;
  border-bottom: 1px solid var(--border);
}

.description-inner {
  max-width: 640px;
}

.description-inner p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.description-inner p:last-child { margin-bottom: 0; }

/* ── Gallery ── */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 4rem 20% 0;
  background: var(--bg);
}

.gallery-img-wrap {
  overflow: hidden;
  background: #111;
}

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

/* ── Credits ── */
.project-credits {
  background: #0d0d0d;
  padding: 4rem 4rem 4rem;
  text-align: center;
}



.video-services {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.3rem;
}

.credits-inner { max-width: 680px; margin: 0 auto; }

.credits-inner .video-meta {
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.credits-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.credits-grid {
  display: flex;
  flex-direction: column;
}

.credit-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.credit-row:first-child { border-top: 1px solid var(--border); }

.credit-role {
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.credit-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ── All Work ── */
.all-work-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  background: var(--bg);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.all-work-link:hover { color: var(--text); }

/* ── Next Project ── */
.next-project {
  display: block;
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  text-decoration: none;
  margin-top: 4px;
}

.next-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #111;
  filter: brightness(0.5);
  transition: transform 0.7s ease, filter 0.4s ease;
}
.next-project:hover .next-bg {
  transform: scale(1.03);
  filter: brightness(0.65);
}

.next-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.next-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 2;
}

.next-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.next-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: 0.06em;
  color: var(--text);
}

/* ── Project Contact ── */
.project-contact {
  background: #0d0d0d;
  border-top: 1px solid var(--border);
  padding: 6rem 4rem;
  text-align: center;
}

.project-contact-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .project-video {
    width: 92%;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .project-credits { padding: 3rem 2rem; }

  .credits-inner .video-meta { flex-direction: column; gap: 0.25rem; }

  .credit-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.85rem 0;
  }
  .credit-name { font-size: 1.5rem; }

  .project-gallery {
    grid-template-columns: 1fr;
    padding: 2rem 2rem 0;
    gap: 8px;
  }

  .gallery-img-wrap { aspect-ratio: 16/9; }

  .all-work-link { padding: 2.5rem 2rem; }

  .project-contact { padding: 4rem 2rem; }
}
