/* =============================================
   FONTS
   ============================================= */
@font-face {
  font-family: 'Franie';
  src: url('../Fonts/Franie/WOFF2/Franie-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Franie';
  src: url('../Fonts/Franie/WOFF2/Franie-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Franie';
  src: url('../Fonts/Franie/WOFF2/Franie-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Franie';
  src: url('../Fonts/Franie/WOFF2/Franie-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Mori';
  src: url('../Fonts/PP Mori /PPMori-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Mori';
  src: url('../Fonts/PP Mori /PPMori-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Mori';
  src: url('../Fonts/PP Mori /PPMori-Extralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* =============================================
   TOKENS
   ============================================= */
:root {
  --color-red:    #FF1F00;
  --color-yellow: #FFFF00;
  --color-blue:   #0A0E5A;
  --color-blue-bright: #0024AC;
  --color-dark:   #0D0D0D;
  --color-white:  #FFFFFF;

  --font-display: 'Franie', serif;
  --font-body:    'PP Mori', sans-serif;
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

img, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* Presente no DOM para SEO/acessibilidade, sem alterar o layout visual */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  pointer-events: none;
}

.nav-logo,
.nav-cta {
  pointer-events: auto;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-mais {
  height: 28px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.nav-cta:hover .nav-mais {
  opacity: 0.7;
}

/* =============================================
   OVERLAY DE CONTATO
   ============================================= */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--color-red);
  display: flex;
  align-items: flex-end;
  padding: 28px 48px;
  pointer-events: none;
  transform: translateY(-100%);
}

.contact-overlay.is-open {
  pointer-events: auto;
}

.overlay-close {
  position: absolute;
  top: 28px;
  right: 48px;
  width: 34px;
  height: 34px;
}

.overlay-close img {
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.2s;
}

.overlay-close:hover img {
  opacity: 0.7;
}

.overlay-links {
  display: flex;
  flex-direction: column;
}

.overlay-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.67vw, 6rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--color-blue-bright);
}

/* =============================================
   FULLPAGE — scroll controlado por JS + GSAP
   ============================================= */
.fullpage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--color-dark);
}

/* =============================================
   SECTION BASE
   ============================================= */
.section {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.section.is-active {
  pointer-events: auto;
}

/* Background (imagem ou vídeo) cobre 100% */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Ken Burns: scale reduz de 1.06 → 1.0 quando a seção fica ativa */
.section-bg img,
.section-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.section.is-active .section-bg img,
.section.is-active .section-bg video {
  transform: scale(1);
}

/* Conteúdo sobre o fundo */
.section-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Rodapé fixo dentro de cada seção */
.section-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 24px 48px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--color-red);
}

/* =============================================
   DOTS NAVIGATION
   ============================================= */
.section-dots {
  display: none;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 31, 0, 0.35);
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: var(--color-red);
  transform: scale(1.4);
}

/* =============================================
   SECTION 02 · REEL
   ============================================= */
.reel-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.reel-text {
  position: absolute;
  left: 1.7%;
  top: 15%;
  right: 2%;
}

.reel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 9.12vw, 11.6875rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--color-red);
  white-space: nowrap;
}

.reel-desc {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 40px;
  text-transform: uppercase;
  color: var(--color-red);
  margin-top: 1em;
  max-width: 34ch;
}

.reel-cta {
  position: absolute;
  right: 2%;
  bottom: 10%;
  width: clamp(160px, 16.2vw, 308px);
}

.reel-cta img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .reel-cta:hover img {
    opacity: 0.7;
  }
}

.footer-credit {
  justify-content: flex-end;
}

/* =============================================
   MODAL DE VÍDEO (Reel)
   ============================================= */
.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.reel-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.reel-modal .reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.reel-modal-close {
  position: absolute;
  top: 28px;
  right: 48px;
  z-index: 1;
  width: 34px;
  height: 34px;
  transform: rotate(45deg);
  transition: opacity 0.2s;
}

.reel-modal-close img {
  width: 100%;
  height: 100%;
  display: block;
}

.reel-modal-close:hover {
  opacity: 0.7;
}

/* =============================================
   SECTION 01 · HERO
   ============================================= */

/* Esconde o logo da nav na hero — o wordmark gigante o substitui */
.nav-logo {
  transition: opacity 0.4s;
}
body.is-hero .nav-logo {
  opacity: 0;
  pointer-events: none;
}

.hero-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrapper flex: mantém 12px fixos entre logo e tagline em qualquer tela */
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 97vw;
}

.hero-wordmark {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 3rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
  white-space: nowrap;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vh, 48px);
  transform: translateX(-50%);
  width: clamp(100px, 11.5vw, 132px);
  height: auto;
}

/* =============================================
   SECTION 03 · MANIFESTO
   ============================================= */
.manifesto-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.manifesto-block {
  position: absolute;
  left: 1%;
  top: 16%;
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1.5vw, 2rem);
}

.manifesto-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.5rem, 9.72vw, 12rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--color-red);
  white-space: nowrap;
}

.manifesto-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}

.mn-dash {
  display: block;
  width: 2.86vw;
  min-width: 20px;
  height: 3px;
  background: var(--color-red);
  flex-shrink: 0;
  margin-top: 0.9em;
}

.mn-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 40px;
  text-transform: uppercase;
  color: var(--color-red);
  max-width: 34ch;
}

.bg-mobile {
  display: none;
}

/* =============================================
   SECTION 04 · AI STUDIO
   ============================================= */
.ai-studio-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.ais-intro {
  position: absolute;
  left: 1.6%;
  top: 12%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.875vw, 2.5rem);
  text-transform: uppercase;
  color: var(--color-red);
  line-height: 1.05;
}

.ais-indent {
  display: inline-block;
  padding-left: 0.8em;
}

.ais-side {
  position: absolute;
  right: 2%;
  /* Ancorada acima do "PROJETOS": sobe junto com o título (que escala por vw),
     garantindo respiro constante e sem sobreposição em qualquer proporção de tela */
  top: auto;
  bottom: calc(86px + clamp(5rem, 17.27vw, 22rem));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1em;
}

.ais-list {
  text-align: right;
  list-style: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.75rem, 1.25vw, 1.75rem);
  color: var(--color-red);
  line-height: 1.45;
}

.ais-list li {
  display: flex;
  justify-content: flex-end;
  gap: 0.6em;
}

.ais-cta {
  display: block;
  width: clamp(140px, 12vw, 230px);
}

.ais-cta img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .ais-cta:hover img {
    opacity: 0.7;
  }
}

.ais-title {
  position: absolute;
  left: 1.7%;
  bottom: 62px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(5rem, 17.27vw, 22rem);
  text-transform: uppercase;
  color: var(--color-red);
  white-space: nowrap;
  line-height: 1;
}

/* =============================================
   SECTION 05 · CONTATO / CTA
   ============================================= */
.contato-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.cta-block {
  position: absolute;
  left: 1%;
  top: 35%;
  display: flex;
  flex-direction: column;
}

.cta-line {
  font-family: var(--font-display);
  font-weight: 600;
  /* 6.23vw faz a linha mais longa ("Para criar e performar,") ir até a borda da tela */
  font-size: clamp(2.5rem, 6.23vw, 12rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--color-red);
  white-space: nowrap;
}

.cta-invite {
  display: block;
  align-self: flex-start;
  width: clamp(210px, 21.25vw, 404px);
  margin-top: 0.5em;
}

.cta-invite img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .cta-invite:hover img {
    opacity: 0.7;
  }
}

/* =============================================
   MOBILE — margem de 24px + correção de overflow
   ============================================= */
@media (max-width: 640px) {

  .nav {
    padding: 24px;
  }

  .section-footer {
    padding: 24px;
  }

  /* Hero: mais respiro nas laterais do wordmark (era 97vw, quase sem margem) */
  .hero-stack {
    width: 87vw;
  }

  .contact-overlay {
    padding: 24px;
  }

  .overlay-close {
    top: 24px;
    right: 24px;
  }

  /* Reel */
  .reel-content {
    display: flex;
    flex-direction: column;
    padding: 100px 24px 0;
  }

  .reel-text {
    position: static;
  }

  .reel-title {
    font-size: 48px;
    white-space: normal;
  }

  .reel-desc {
    font-size: 18px;
    line-height: 22px;
    max-width: 32ch;
  }

  .reel-cta {
    position: static;
    width: 140px;
    margin-top: 24px;
  }

  .reel-modal-close {
    top: 24px;
    right: 24px;
  }

  /* Manifesto — o bloco vira uma coluna com altura fixa (top+bottom) para
     o parágrafo poder ser empurrado pro rodapé com margin-top:auto,
     saindo de cima do coração sem precisar reestruturar o HTML. */
  .manifesto-block {
    left: 24px;
    right: 24px;
    top: 76px;
    bottom: 32px;
  }

  .manifesto-line {
    font-size: 48px;
    white-space: normal;
  }

  .manifesto-note {
    margin-top: auto;
  }

  .mn-text {
    font-size: 18px;
    line-height: 22px;
    max-width: none;
  }

  /* AI Studio */
  .ais-intro {
    left: 24px;
    top: 124px;
    font-size: 24px;
  }

  .ais-side {
    right: 24px;
    top: auto;
    bottom: 20%;
    gap: 1em;
  }

  .ais-list {
    font-size: 16px;
  }

  .ais-cta {
    width: 130px;
  }

  .ais-title {
    left: 24px;
    font-size: clamp(2.2rem, 15.6vw, 22rem);
  }

  /* Contato */
  .cta-block {
    left: 24px;
  }

  .cta-line {
    font-size: 40px;
    white-space: normal;
  }

  .cta-invite {
    width: 200px;
  }

  /* Manifesto: troca a imagem de fundo pela versão enquadrada para mobile */
  .bg-desktop {
    display: none;
  }

  .bg-mobile {
    display: block;
  }

  /* "IA executa" recuada em relação a "Humanos criam", como no Paper.
     Fica em uma linha só (não pode quebrar como "Humanos/criam"). */
  .manifesto-line + .manifesto-line {
    margin-left: 20px;
    white-space: nowrap;
  }

}
