/* ===========================================================
   Portfólio cinematográfico — um projeto por tela, 3 fotos
   Carregar DEPOIS de css/styles.css
   =========================================================== */

.pf-cinema {
  background: #1c1b18;
  color: #f4f0e8;
  font-family: var(--body-font);
}

/* --- Header sobreposto às fotos --- */
.pf-cinema .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  background: linear-gradient(to bottom, rgba(20,19,16,.62), rgba(20,19,16,0)) !important;
  box-shadow: none !important;
  border: none;
}
.pf-cinema .site-header .logo-img { filter: brightness(0) invert(1) opacity(.92); }
.pf-cinema .main-navigation .menu a {
  color: rgba(244,240,232,.75);
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.pf-cinema .main-navigation .menu a:hover,
.pf-cinema .main-navigation .menu .active a { color: #f4f0e8; }
.pf-cinema .main-navigation .menu .active a { border-bottom: 1px solid var(--accent-color); padding-bottom: 4px; }
.pf-cinema .menu-toggle .bar { background: #f4f0e8; }

/* --- Palco com scroll-snap (o container de scroll é o documento) --- */
html { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.pf-intro, .pf-slide, .pf-outro { scroll-snap-align: start; }
.pf-slide { scroll-snap-stop: always; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.pf-eyebrow {
  margin: 0 0 1.15rem;
  font-size: .7rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent-color);
}
.pf-lede {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(244,240,232,.66);
  text-wrap: pretty;
}

/* --- Abertura --- */
.pf-intro, .pf-outro {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem 8vw;
  background: #1c1b18;
}
.pf-symbol { width: 58px; margin-bottom: 2.4rem; filter: brightness(0) invert(1) opacity(.55); }
.pf-intro h1 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.4vw, 6.5rem);
  line-height: 1.02;
  color: #f4f0e8;
}
.pf-intro .pf-lede { margin: 1.9rem auto 0; max-width: 34rem; }
.pf-hint {
  margin: 4rem 0 0;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(244,240,232,.4);
}

/* --- Slide de projeto --- */
.pf-slide {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #14130f;
}
.pf-slide-media { position: absolute; inset: 0; }
.pf-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.pf-frame.is-active { opacity: 1; }
.pf-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
}
.pf-frame.is-active img { animation: pfKenBurns 14s ease-out infinite alternate; }
@keyframes pfKenBurns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.11); }
}

.pf-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(16,15,12,.86) 0%,
    rgba(16,15,12,.34) 38%,
    rgba(16,15,12,.10) 62%,
    rgba(16,15,12,.42) 100%);
}

.pf-slide-caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 0 6vw 7vh;
}
.pf-slide-caption h2 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 5.5rem);
  line-height: 1.04;
  color: #f4f0e8;
}
.pf-place {
  margin: 1.25rem 0 0;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244,240,232,.62);
}

.pf-slide-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.1rem;
  flex: none;
}
.pf-counter {
  font-family: var(--display-font);
  font-size: .95rem;
  letter-spacing: .1em;
  color: rgba(244,240,232,.72);
}
.pf-dots { display: flex; gap: 10px; }
.pf-dot {
  position: relative;
  display: block;
  width: 44px;
  height: 1px;
  background: rgba(244,240,232,.28);
  cursor: pointer;
}
.pf-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s ease;
}
.pf-dot.is-active::after { transform: scaleX(1); }
.pf-dot:focus-visible { outline: 1px solid var(--accent-color); outline-offset: 6px; }

/* --- Fecho --- */
.pf-outro h2 {
  margin: 0 auto;
  max-width: 20ch;
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 4.5rem);
  line-height: 1.12;
  color: #f4f0e8;
  text-wrap: pretty;
}
.pf-outro .pf-lede { margin: 1.75rem auto 2.75rem; max-width: 30rem; }
.pf-btn {
  display: inline-block;
  padding: 1.15rem 2.9rem;
  border: 1px solid var(--accent-color);
  color: #f4f0e8;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  transition: all .35s ease;
}
.pf-btn:hover { background: var(--accent-color); color: #14130f; }

/* --- Rodapé em tom escuro --- */
.pf-cinema .site-footer { background: #14130f; color: rgba(244,240,232,.7); }
.pf-cinema .site-footer a { color: rgba(244,240,232,.7); }
.pf-cinema .site-footer a:hover { color: var(--accent-color); }
.pf-cinema .site-footer h4 { color: #f4f0e8; }
.pf-cinema .site-footer .footer-logo img { filter: brightness(0) invert(1) opacity(.9); }

/* --- Mobile --- */
@media (max-width: 768px) {
  .pf-slide-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    padding: 0 7vw 9vh;
  }
  .pf-slide-nav { align-items: flex-start; }
  .pf-dot { width: 34px; }
  .pf-cinema .main-navigation .menu { background: rgba(20,19,16,.96); }
}

@media (prefers-reduced-motion: reduce) {
  .pf-frame.is-active img { animation: none; }
  .pf-frame { transition: none; }
}
