/* ---------- Voltar ---------- */

.proj-back {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 20;
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: rgba(15, 13, 10, .45);
  padding: 10px 16px;
  border-radius: 999px;
}

/* ---------- Índice: pula entre seções ---------- */

.proj-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 16;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proj-nav__dash {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .35);
  transition: background .3s ease, width .3s ease;
}

.proj-nav__dash:hover {
  background: rgba(255, 255, 255, .7);
}

.proj-nav__dash.is-active {
  background: var(--gold);
  width: 40px;
}

/* ---------- Empilhamento com parallax ---------- */
/* Cada seção fica "grudada" no topo (position: sticky); a próxima,
   ao rolar, desliza por cima e cobre a anterior gradualmente. Como o
   fundo das seções é translúcido, a foto do hero continua visível
   por trás, em camadas, o scroll inteiro. */

.proj-stack {
  position: sticky;
  top: 0;
}

/* ---------- Animação de revelação do conteúdo ---------- */

.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* ---------- Hero do projeto ---------- */

.proj-hero {
  height: 100vh;
  overflow: hidden;
  background: var(--dark);
  z-index: 1;
}

.proj-hero__stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: hero-kenburns 26s ease-in-out infinite alternate;
}

.proj-hero__photo-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.proj-hero__texture {
  position: absolute;
  top: -10%;
  right: -14%;
  width: 55%;
  aspect-ratio: 1 / 1;
  background-image: url('../img/textura.png');
  background-size: contain;
  background-repeat: no-repeat;
  mix-blend-mode: soft-light;
  z-index: 2;
}

/* posição/tamanho calculados por registro de pixels com a bg-bengui.png */
.proj-hero__photo {
  position: absolute;
  left: 21.85%;
  top: 4.195%;
  width: 78.15%;
  height: 94.777%;
  z-index: 3;
}

.proj-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,13,10,0) 55%, rgba(15,13,10,.85) 100%);
  z-index: 4;
  pointer-events: none;
}

.proj-hero__title {
  position: absolute;
  left: 6%;
  bottom: 8%;
  z-index: 5;
  margin: 0;
  max-width: 70%;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  color: var(--white);
}

/* ---------- Hero sem foto (placeholder até a foto do projeto chegar) ---------- */

.proj-hero--placeholder {
  background: radial-gradient(120% 100% at 12% 15%, rgba(247, 184, 43, .16), transparent 60%), var(--dark);
}

/* ---------- Conteúdo: cada bloco é a própria seção, sobrepondo a anterior ---------- */

.proj-section {
  min-height: 100vh;
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 64px 8%;
}

/* só a 1ª seção de conteúdo carrega o véu escuro — ele fica pinado atrás
   pelo resto do scroll. As seguintes são transparentes: só o texto delas
   se sobrepõe, sem duplicar a camada de fundo (o que escurecia demais). */
.proj-section--1 {
  z-index: 2;
  background: rgba(15, 13, 10, .78);
}

.proj-section--2 {
  z-index: 3;
  background: transparent;
}

.proj-block {
  display: grid;
  grid-template-columns: minmax(220px, 32%) 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  transition: opacity .5s ease, transform .5s ease;
}

.proj-block.is-covered,
.proj-hero__title.is-covered {
  opacity: 0;
  transform: translateY(-28px);
}

.proj-block__question {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  color: var(--gold);
}

.proj-block__answer {
  max-width: 560px;
}

.proj-block__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
}

.proj-block__answer p {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .85);
  margin: 0 0 16px;
}

.proj-block__answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Ficha do projeto: período, local, público-alvo, parceiros ---------- */

.proj-meta {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proj-meta li {
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .8);
}

.proj-meta li strong {
  color: var(--gold);
  font-weight: 800;
}

/* ---------- Números de impacto em destaque ---------- */

.proj-stats {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
}

.proj-stats li {
  display: flex;
  flex-direction: column;
}

.proj-stat__number {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  line-height: 1;
  color: var(--gold);
}

.proj-stat__label {
  margin-top: 8px;
  max-width: 190px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.35;
  color: rgba(255, 255, 255, .8);
}

/* ---------- Listas de legado ---------- */

.proj-list {
  margin: 0 0 20px;
  padding-left: 1.15em;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
}

.proj-list li {
  margin-bottom: 10px;
}

.proj-list li:last-child {
  margin-bottom: 0;
}

/* ---------- ODS atendidas ---------- */

.proj-ods__title {
  margin: 0 0 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gold);
}

.proj-ods__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proj-ods__list li {
  background: rgba(247, 184, 43, .12);
  border: 1px solid rgba(247, 184, 43, .4);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 7px 13px;
  border-radius: 999px;
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  /* efeito de sticky/parallax desligado no mobile: seções empilham normalmente */
  .proj-stack {
    position: static;
  }

  .proj-nav {
    display: none;
  }

  .proj-hero__stage {
    position: static;
    transform: none;
    width: 100%;
    height: 100%;
    animation: none;
  }

  .proj-hero__texture,
  .proj-hero__photo {
    display: none;
  }

  .proj-hero__photo-full {
    object-fit: cover;
    object-position: center;
  }

  .proj-block {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .proj-section {
    padding: 64px 6%;
  }
}
