/* ─── Project hero ─────────────────────────────────────── */

.project_hero_wrapped,
.project_hero_rebrand,
.project_hero_google,
.project_hero_dazn {
  padding: 140px 2.5rem 0 2.5rem;
}

.project_hero_wrapped img,
.project_hero_rebrand img,
.project_hero_google img,
.project_hero_dazn img {
  grid-column: 1 / -1;
  width: 100%;
}

.project_hero_wrapped { background-color: #FDC7FF; }
.project_hero_rebrand { background-color: #FDD519; }
.project_hero_google  { background-color: #2AEBA6; }
.project_hero_dazn    { background-color: #B295FF; }

/* ─── Two-column project layout ─────────────────────────── */

.project-sidebar {
  grid-column: 1 / span 2;
  position: sticky;
  top: 132px;
  align-self: start;
}

.project-sidebar__back {
  font-weight: 500;
  display: block;
  color: #B0ADA9;
  text-transform: none;
  margin-bottom: 32px;
  transition: color 0.2s ease;
}

.project-sidebar__back:hover {
  color: #242424;
}

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

.project-nav__link {
  font-weight: 500;
  color: #B0ADA9;
  text-transform: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.project-nav__link:hover,
.project-nav__link.is-active {
  color: #242424;
}

.project-content {
  grid-column: 3 / span 8;
  min-width: 0;
}

.project-section {
  display: block;
  padding: 48px 0 0 0;
}

.project-section:first-child {
  padding-top: 0;
}

.project-section h1 {
  padding: 32px 0 40px;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  margin-top: 8px;
}

.project-meta__item {
  grid-column: span 4;
}

.project-meta__item p {
  padding-bottom: 0;
}

.article__media {
  width: 100%;
  border-radius: 16px;
  display: block;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.article__media.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ───────────────────────────────────────── */

@media (max-width: 1024px) {

  .project-content {
    grid-column: 3 / span 6;
  }
}

@media (max-width: 768px) {
  .project-layout {
    padding: 48px 1.5rem;
  }

  .project-sidebar {
    grid-column: 1 / -1;
    position: static;
    margin-bottom: 48px;
  }

  .project-content {
    grid-column: 1 / -1;
  }

  .project-nav {
    flex-direction: row;
    gap: 16px;
  }
}

@media (max-width: 620px) {
  .project_hero_wrapped {
    padding: 150px 0.5rem 0 0.5rem;
  }
}

@media (max-width: 500px) {
  .project-layout {
    padding: 40px 1rem;
  }

  section {
    padding: 64px 16px;
    gap: 16px;
  }
}