/* ─── PROJECT DETAIL ─────────────────────────────────────────────── */
.project-page { background: var(--bg); }

.project-hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 150px var(--side) 54px;
  overflow: hidden;
  isolation: isolate;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--panel);
}

.project-hero-bg img {
  opacity: 0.22;
  filter: grayscale(0.5) contrast(1.1);
}

.project-hero-bg::after {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg), rgba(243,238,227,0.55), rgba(243,238,227,0.8)),
    linear-gradient(180deg, transparent, var(--bg));
  content: "";
  z-index: 2;
}

.project-hero-content {
  align-self: end;
  max-width: 1120px;
  z-index: 3;
}

.project-hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 120px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--text);
}

.project-hero-content p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 24px);
}

/* ─── META PANEL ─────────────────────────────────────────────────── */
.project-meta-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 2px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--side);
}

.project-meta-panel div {
  min-height: 140px;
  padding: 26px;
  background: var(--panel);
  border: 2px solid var(--text);
  border-radius: var(--radius);
  transition: box-shadow 200ms ease;
}

.project-meta-panel div:hover { box-shadow: var(--hard-shadow-sm); }

.project-meta-panel span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-meta-panel strong {
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.08;
}

/* ─── DESCRIPTION ────────────────────────────────────────────────── */
.project-description {
  display: grid;
  grid-template-columns: 0.3fr minmax(0,0.8fr);
  gap: 52px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--side);
}

.rich-text {
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.24;
}

.rich-text p { margin: 0 0 20px; }

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  grid-column: 2;
  margin-top: 10px;
}

/* ─── VIDEO ──────────────────────────────────────────────────────── */
.video-section {
  max-width: calc(var(--max) - var(--side)*2);
  margin: 0 auto clamp(64px, 8vw, 110px);
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  background: #000;
}

.video-section iframe { width: 100%; height: 100%; border: 0; }
.video-section video {
  display: block; width: 100%; height: 100%;
  object-fit: contain; background: #000;
}

.video-youtube-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.video-youtube-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter 200ms ease, transform 300ms ease;
}
.video-youtube-link:hover img {
  filter: brightness(0.6);
  transform: scale(1.02);
}
.video-youtube-link .play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  color: #FF0000;
  font-size: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 200ms ease;
}
.video-youtube-link:hover .play-badge { transform: translate(-50%, -50%) scale(1.08); }

.play-badge-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}

.video-link-placeholder {
  width: 100%;
  height: 100%;
  background: var(--panel-soft, #1a1a1a);
}

/* ─── GALLERY ────────────────────────────────────────────────────── */
.gallery-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--side);
}

.gallery-section figure { grid-column: span 6; margin: 0; }
.gallery-section figure:nth-child(3n+1) { grid-column: span 12; }

.gallery-section img {
  aspect-ratio: 16/10;
  object-position: top;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.gallery-section figure:not(:nth-child(3n+1)) img { aspect-ratio: 4/5; }

.gallery-section img:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--hard-shadow);
}

.gallery-section figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* ─── NAV ────────────────────────────────────────────────────────── */
.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--side) 0;
}

.project-nav a {
  color: var(--muted);
  font-weight: 900;
  font-size: 14px;
  transition: color 180ms ease;
}
.project-nav a:hover { color: var(--accent); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .project-hero { min-height: 84vh; padding-top: 146px; }
  .project-meta-panel, .project-description, .gallery-section { grid-template-columns: 1fr; }
  .project-links { grid-column: auto; }
  .gallery-section figure, .gallery-section figure:nth-child(3n+1) { grid-column: auto; }
  .gallery-section img, .gallery-section figure:not(:nth-child(3n+1)) img { aspect-ratio: 4/5; }
}
