/* =========================================================
   Project Detail
   ========================================================= */

.project-hero {
  position: relative;
  min-height: 92vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.05);
  transform: scale(1.05);
  animation: heroZoomSlow 26s var(--ease-in-out) infinite alternate;
}

@keyframes heroZoomSlow {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.project-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,11,0.45) 0%, transparent 30%, transparent 50%, rgba(7,7,11,0.92) 92%, var(--bg-0) 100%);
}

.project-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 100px;
  width: 100%;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 40px;
  transition: color 0.3s;
}
.project-back:hover { color: var(--mist-pink); }

.project-meta-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist-pink);
  margin-bottom: 24px;
}
.project-meta-row .dot { color: var(--text-3); }

.project-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.98;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--text-0);
  margin-bottom: 20px;
  max-width: 1100px;
}

.project-subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--text-1);
  font-style: italic;
  max-width: 720px;
  line-height: 1.5;
}

/* Body */
.project-body {
  background: var(--bg-0);
  padding: 100px 48px;
}

.project-body-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}

.project-credits h4 {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
  font-weight: 500;
}

.credit-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.credit-row span:first-child {
  color: var(--text-3);
  letter-spacing: 0.08em;
}
.credit-row span:last-child {
  color: var(--text-0);
  font-family: var(--font-display);
  font-style: italic;
}

.project-description {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-1);
}

.project-description p { margin-bottom: 24px; }
.project-description em { color: var(--mist-pink); font-style: italic; }

.project-tags {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
}

/* Video showcase */
.project-showcase {
  padding: 0 48px 100px;
  background: var(--bg-0);
}

.project-showcase-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.video-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%; height: 100%; object-fit: cover;
}

/* Next project */
.next-project {
  border-top: 1px solid var(--border);
  padding: 80px 48px;
  text-align: center;
  background: var(--bg-1);
}

.next-project .label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.next-project a {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--text-0);
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  transition: color 0.3s;
}

.next-project a:hover { color: var(--mist-pink); }
.next-project a:hover .arrow-big { transform: translateX(10px); }

.arrow-big {
  display: inline-block;
  transition: transform 0.5s var(--ease-out);
}

/* Loading / not found */
.project-loading,
.project-notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px;
}

.project-notfound h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-style: italic;
  color: var(--text-0);
  margin-bottom: 16px;
}

.project-notfound p {
  color: var(--text-3);
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
  .project-hero-inner { padding: 0 24px 60px; }
  .project-body { padding: 60px 24px; }
  .project-body-inner { grid-template-columns: 1fr; gap: 40px; }
  .project-showcase { padding: 0 24px 60px; }
  .next-project { padding: 60px 24px; }
}
