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

/* Hero */
.project-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
}

.project-hero-bg video,
.project-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8, 8, 8, 0.8) 0%, rgba(8, 8, 8, 0.3) 50%, rgba(8, 8, 8, 0.1) 100%),
    linear-gradient(to top, rgba(8, 8, 8, 0.85) 0%, rgba(8, 8, 8, 0.2) 50%);
}

.project-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 64px 80px;
  max-width: 750px;
}

.project-hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.75);
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.project-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.project-hero-sub {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  color: rgba(245, 244, 240, 0.8);
  line-height: 1.5;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

/* Overview */
.project-overview {
  padding: 80px 64px 48px;
  background: var(--black);
  border-bottom: 0.5px solid var(--line);
}

.project-overview-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.5);
}

.project-meta-value {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.5;
}

.project-overview-copy {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.8;
  color: rgba(245, 244, 240, 0.85);
  margin-bottom: 20px;
}

/* Product Showcase */
.project-showcase {
  padding: 48px 64px;
  background: var(--black);
  border-bottom: 0.5px solid var(--line);
}

.project-showcase-header {
  max-width: 1200px;
  margin: 0 auto 32px;
}

.project-showcase-header .section-label {
  margin-bottom: 4px;
}

.project-showcase-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 400;
  color: var(--white);
  margin-top: 12px;
  line-height: 1.15;
}

.project-showcase-video {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  position: relative;
}

.project-showcase-video video {
  width: 100%;
  display: block;
}

.project-showcase-video .project-video-controls {
  border-radius: 0 0 12px 0;
}

/* Video Controls — play/pause + mute */
.project-video-wrap {
  position: relative;
}

.project-video-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 5;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.project-video-wrap:hover .project-video-controls {
  opacity: 1;
}

.project-video-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(245, 244, 240, 0.35);
  background: rgba(8, 8, 8, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  color: var(--white);
}

.project-video-btn:hover {
  border-color: rgba(245, 244, 240, 0.7);
  background: rgba(245, 244, 240, 0.12);
}

.project-video-btn > svg {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
}

/* Play/pause needs relative positioning for ring overlay */
.project-playpause {
  position: relative;
}

.project-playpause > .icon-pause,
.project-playpause > .icon-play {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
}

.project-playpause > .project-progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transform: rotate(-90deg);
}

.project-progress-bg {
  fill: none;
  stroke: rgba(245, 244, 240, 0.15);
  stroke-width: 1.5;
}

.project-progress-fill {
  fill: none;
  stroke: rgba(245, 244, 240, 0.7);
  stroke-width: 1.5;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease-out;
}

/* Split layout — text left, video/image right */
.project-showcase-split {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.project-showcase-split-text .project-showcase-title {
  margin-top: 0;
}

.project-showcase-desc {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--dim);
  margin-top: 16px;
}

.project-showcase-split-video {
  border-radius: 12px;
  overflow: hidden;
}

.project-showcase-split-video video {
  width: 100%;
  display: block;
}

/* TV Mockup — UI superimposed on room image */
.project-tv-mockup {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.project-tv-room {
  width: 100%;
  display: block;
}

.project-tv-screen {
  position: absolute;
  /* Position over the TV screen area — adjust these values to fit the TV */
  top: 3.5%;
  left: 12.5%;
  width: 75%;
  height: auto;
  border-radius: 2px;
}

/* Image Showcase */
.project-showcase-images {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-showcase-image-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.project-showcase-image-item img {
  width: 100%;
  display: block;
}

.project-showcase-image-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(8, 8, 8, 0.6);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
}

/* Impact Stats */
.project-impact {
  padding: 64px 64px;
  background: var(--black);
  text-align: center;
  border-bottom: 0.5px solid var(--line);
}

.project-impact .section-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--white);
  margin-bottom: 48px;
}

.project-impact-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.project-impact-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.project-impact-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}

.project-impact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.7);
}

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

.project-impact-number {
  font-size: clamp(44px, 5vw, 72px);
}

.project-impact-callout {
  max-width: 800px;
  margin: 64px auto 0;
  text-align: center;
}

.project-impact-callout-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.project-award-logo {
  height: 60px;
  width: auto;
  margin: 0 auto 24px;
  display: block;
  opacity: 0.85;
}

.project-impact-callout-copy {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(245, 244, 240, 0.8);
  margin-top: 20px;
}

/* Speaking / Photos */
.project-speaking {
  padding: 80px 64px;
  background: var(--black);
  border-bottom: 0.5px solid var(--line);
}

.project-speaking-header {
  max-width: 1200px;
  margin: 0 auto 40px;
}

.project-speaking-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-top: 12px;
  margin-bottom: 16px;
}

.project-speaking-copy {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--dim);
}

.project-speaking-photos {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.project-speaking-photo-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.project-speaking-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}


/* Back to Work */
.project-back {
  padding: 60px 64px;
  background: var(--black);
}

.project-back-link {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #6bb8ff;
  transition: color 0.2s ease;
}

.project-back-link:hover {
  color: #9dd0ff;
}

/* Active nav */
.nav-active {
  color: var(--white) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .project-hero-content {
    padding: 0 24px 60px;
  }

  .project-overview {
    padding: 60px 24px;
  }

  .project-overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-showcase {
    padding: 60px 24px;
  }

  .project-impact {
    padding: 60px 24px;
  }

  .project-impact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .project-speaking {
    padding: 60px 24px;
  }

  .project-showcase-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-speaking {
    padding: 60px 24px;
  }

  .project-speaking-photos {
    grid-template-columns: 1fr 1fr;
  }

  .project-back {
    padding: 40px 24px;
  }
}

/* Disney+ Platform Strip */
.disney-platform-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 48px 64px 16px;
  max-width: 900px;
  margin: 0 auto;
}

.disney-platform-item {
  opacity: 0.5;
  transition: opacity 0.3s ease;
  color: var(--white);
  display: flex;
  align-items: center;
}

.disney-platform-item:hover {
  opacity: 0.9;
}

.disney-platform-item svg {
  display: block;
}

@media (max-width: 768px) {
  .disney-platform-strip {
    gap: 24px;
    padding: 32px 24px 8px;
  }
  .disney-platform-item svg {
    transform: scale(0.85);
  }
}
