/* === PROJECT PAGE === */

.project-page body,
body.project-page {
  background: var(--bg);
}

/* Hero */
.project-hero {
  padding: 10rem 3rem 5rem;
  border-bottom: 1px solid rgba(15,15,15,0.1);
}

.project-hero-inner {
  max-width: 900px;
}

.project-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: #BD371A;
  margin-bottom: 2rem;
}

.project-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
  font-weight: 300;
}

/* Full-width thumbnail below hero */
.project-thumb {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}

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

/* Content column */
.project-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 3rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Text blocks */
.project-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
  font-weight: 300;
  max-width: 680px;
}

/* Images */
.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* GIFs side by side */
.project-gifs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.gif-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* YouTube video */
.project-video .video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.project-video .video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* TikTok section */
.project-tiktoks-wrap {
  /* transparent — page background */
}

.project-tiktoks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

/* overflow hidden so JS clip works */
.tiktok-item {
  overflow: hidden;
  border-radius: 12px;
  height: 750px;
}

/* Project info */
.project-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(15,15,15,0.1);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.info-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #BD371A;
}

.info-value {
  font-size: 0.95rem;
  color: #BD371A;
  font-weight: 300;
}

@media (max-width: 768px) {
  .project-tiktoks {
    grid-template-columns: 1fr;
  }

  .project-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Native video (full width) */
.project-video-native video {
  width: 100%;
  height: auto;
  display: block;
}

/* Video + Image side by side */
.project-media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.project-media-pair video,
.project-media-pair img {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
}

.project-media-pair video,
.project-media-pair img {
  object-fit: cover;
}

@media (max-width: 768px) {
  .project-media-pair {
    grid-template-columns: 1fr;
  }
}

/* Stats block */
.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(15,15,15,0.1);
  border-bottom: 1px solid rgba(15,15,15,0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: #BD371A;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 4.06px;
  text-transform: uppercase;
  color: #BD371A;
  font-weight: 700;
}

.stat-desc {
  grid-column: 1 / -1;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
  font-weight: 300;
  max-width: 680px;
  padding-top: 1.5rem;
}

@media (max-width: 768px) {
  .project-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-number {
    font-size: clamp(1.4rem, 7vw, 2.2rem);
  }

  .stat-label {
    font-size: 0.55rem;
    letter-spacing: 2px;
  }

  .gif-item img {
    width: 100%;
  }
}

/* Horizontal image strip */
.project-strip {
  display: grid;
  gap: 0.5rem;
}

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

/* Bottom nav */
.project-nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 3rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(15,15,15,0.1);
}

.project-nav a {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s;
}

.project-nav a:hover {
  opacity: 0.4;
}

/* Responsive */
@media (max-width: 768px) {
  .project-hero {
    padding: 8rem 1.5rem 3.5rem;
  }

  .project-content {
    padding: 3.5rem 1.5rem 3rem;
    gap: 3rem;
  }

  .project-gifs {
    grid-template-columns: 1fr;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .project-image {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .project-nav {
    padding: 2.5rem 1.5rem 4rem;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}
