:root {
  --bg: #0a0a0a; --bg2: #141414; --txt: #f2f2f2;
  --accent: #ffd400; --accent2: #ff3b3b;
  --f-marker: 'Permanent Marker', cursive;
  --f-title: 'Bebas Neue', sans-serif;
  --f-body: 'Inter', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--f-body); background: var(--bg); color: var(--txt); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* Textura granulada (efeito muro) */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Botão inclinado estilo adesivo */
.btn {
  display: inline-block; padding: 14px 36px; font-family: var(--f-title); font-size: 1.3rem; letter-spacing: 2px;
  background: var(--accent); color: #000; transform: skew(-8deg); box-shadow: 5px 5px 0 #fff; transition: .2s;
}
.btn:hover { transform: skew(-8deg) translate(-3px,-3px); box-shadow: 8px 8px 0 var(--accent2); }

/* Header */
.header {
  position: fixed; top: 0; width: 100%; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 6%; background: rgba(0,0,0,.85); backdrop-filter: blur(6px); border-bottom: 3px solid var(--accent);
}
.logo { display: flex; align-items: center; }
.logo img { height: 60px; width: auto; display: block; mix-blend-mode: screen; transition: transform .3s; }
.logo:hover img { transform: rotate(-3deg) scale(1.05); }
.nav a { margin-left: 30px; font-family: var(--f-title); font-size: 1.3rem; letter-spacing: 2px; position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 3px; background: var(--accent); transition: .3s;
}
.nav a:hover::after { width: 100%; }
.menu-btn { display: none; background: none; border: 0; color: var(--accent); font-size: 1.8rem; cursor: pointer; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 120px 6% 60px;
  background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.92)), url('') center/cover;
  filter: grayscale(.4);
}
.hero-tag {
  font-family: var(--f-title); letter-spacing: 4px; background: #fff; color: #000; padding: 4px 14px;
  transform: rotate(-2deg); margin-bottom: 20px;
}
.hero h1 { font-family: var(--f-marker); font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.1; margin-bottom: 18px; }
.hero h1 span { color: var(--accent); display: inline-block; transform: rotate(-3deg); }
.hero p { opacity: .8; margin-bottom: 36px; max-width: 520px; }

/* Títulos de seção com "spray" */
.destaques h2, .cta h2 {
  font-family: var(--f-marker); font-size: clamp(2rem, 4vw, 3rem); text-align: center; position: relative;
}
.destaques h2::after {
  content: ''; display: block; width: 140px; height: 6px; margin: 12px auto 0; background: var(--accent);
  transform: rotate(-2deg); border-radius: 50%; filter: blur(.5px);
}

/* Destaques */
.destaques { padding: 100px 6%; }
.destaques h2 { margin-bottom: 70px; }
.projeto {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; margin-bottom: 110px;
  opacity: 0; transform: translateY(40px); transition: .8s;
}
.projeto.visivel { opacity: 1; transform: none; }
.projeto.invertido .projeto-img { order: 2; }
.projeto-img { overflow: hidden; cursor: zoom-in; border: 4px solid #fff; box-shadow: 12px 12px 0 var(--accent); transform: rotate(-1deg); }
.projeto.invertido .projeto-img { transform: rotate(1deg); box-shadow: -12px 12px 0 var(--accent2); }
.projeto-img img { width: 100%; display: block; filter: grayscale(.6) contrast(1.1); transition: .6s; }
.projeto-img:hover img { transform: scale(1.05); filter: none; }
.tag {
  display: inline-block; font-family: var(--f-title); font-size: 1rem; letter-spacing: 2px;
  background: var(--accent); color: #000; padding: 3px 12px; transform: rotate(-2deg);
}
.projeto h3 { font-family: var(--f-title); font-size: 2.6rem; letter-spacing: 1px; margin: 14px 0 12px; }
.projeto p { opacity: .75; line-height: 1.7; margin-bottom: 28px; }

/* CTA */
.cta {
  text-align: center; padding: 90px 6%; color: #000;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 40px, #111 40px 80px);
}
.cta h2 { display: inline-block; background: #000; color: #fff; padding: 10px 28px; margin-bottom: 30px; transform: rotate(-2deg); }
.cta .btn { background: #fff; box-shadow: 5px 5px 0 #000; }

/* Footer */
.footer { text-align: center; padding: 30px; font-family: var(--f-title); letter-spacing: 2px; font-size: 1.1rem; opacity: .7; }
.footer a:hover { color: var(--accent); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox.ativo {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  cursor: default;
}

.galeria img {
  cursor: zoom-in;
}


/* Página Sobre - Hero com vídeo */
.nav a.ativo::after { width: 100%; }
.sobre-hero { padding: 140px 6% 100px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.sobre-hero h1 { font-family: var(--f-marker); font-size: clamp(2.4rem, 6vw, 4.5rem); margin: 10px 0 12px; }
.sobre-hero h1 span { color: var(--accent); display: inline-block; transform: rotate(-3deg); }
.sobre-hero > p { opacity: .75; margin-bottom: 50px; }

.video-wrap {
  position: relative; width: 100%; max-width: 960px; aspect-ratio: 16/9; background: #000;
  border: 5px solid #fff; box-shadow: 14px 14px 0 var(--accent); transform: rotate(-1deg);
}
.video-wrap video, .video-wrap iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-6deg);
  width: 100px; height: 100px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--accent); color: #000; font-size: 2.4rem; box-shadow: 6px 6px 0 #000; transition: .25s;
}
.play-btn:hover { transform: translate(-50%,-50%) rotate(0) scale(1.1); background: var(--accent2); color: #fff; }
.video-wrap.tocando .play-btn, .video-wrap.tocando .video-legenda { opacity: 0; pointer-events: none; }
.video-legenda {
  position: absolute; left: -14px; bottom: 24px; background: #000; padding: 10px 20px;
  text-align: left; transform: rotate(-2deg); border-left: 5px solid var(--accent); transition: .3s;
}
.video-legenda strong { display: block; font-family: var(--f-title); font-size: 1.5rem; letter-spacing: 1px; }
.video-legenda span { color: var(--accent); font-size: .85rem; }

.citacao {
  font-family: var(--f-marker); font-size: clamp(1.3rem, 2.5vw, 2rem); max-width: 760px;
  margin-top: 70px; line-height: 1.4; position: relative;
}
.citacao::after { content: ''; display: block; width: 120px; height: 6px; margin: 18px auto 0; background: var(--accent); transform: rotate(-2deg); border-radius: 50%; }

/* Página de Projeto */
.proj-hero {
  min-height: 85vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px 6% 80px;
  background-color: #0a0a0a; background-position: center; background-size: cover;
  position: relative;
}

.proj-hero .hero-tag { align-self: flex-start; }
.proj-hero h1 { font-family: var(--f-marker); font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1; margin-bottom: 14px; }
.proj-hero h1 span { color: var(--accent); display: inline-block; transform: rotate(-8deg); }
.proj-hero p { font-family: var(--f-title); font-size: 1.6rem; letter-spacing: 2px; opacity: .85; }
.voltar { position: absolute; top: 110px; left: 6%; font-family: var(--f-title); letter-spacing: 2px; opacity: .8; }
.voltar:hover { color: var(--accent); opacity: 1; }

.ficha { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent); }
.ficha div { padding: 28px 6%; border-right: 1px dashed #333; }
.ficha div:last-child { border: 0; }
.ficha span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; opacity: .6; margin-bottom: 6px; }
.ficha strong { font-family: var(--f-title); font-size: 1.7rem; letter-spacing: 1px; }

.proj-texto { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; padding: 100px 6%; }
.proj-texto h2 { font-family: var(--f-title); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; margin-top: 14px; }
.proj-texto p { opacity: .8; line-height: 1.8; margin-bottom: 16px; }

.proj-video { padding: 0 6% 110px; display: flex; justify-content: center; }

.galeria-sec { padding: 100px 6%; background: var(--bg2); }
.galeria-sec h2 { font-family: var(--f-marker); font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin-bottom: 60px; }
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 18px; }
.galeria img {
  width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; border: 3px solid #fff;
  filter: grayscale(.7) contrast(1.1); transition: .4s;
}
.galeria img:hover { filter: none; transform: rotate(-1deg) scale(1.02); box-shadow: 8px 8px 0 var(--accent); z-index: 1; }
.g-alta { grid-row: span 2; }
.g-larga { grid-column: span 2; }

.proximo {
  display: flex; justify-content: space-between; align-items: center; padding: 60px 6%;
  background: #000; border-top: 3px solid var(--accent); transition: .3s;
}
.proximo span { font-family: var(--f-title); letter-spacing: 3px; opacity: .6; }
.proximo strong { font-family: var(--f-marker); font-size: clamp(1.8rem, 4vw, 3rem); }
.proximo:hover { background: var(--accent); color: #000; }

/* Mobile */
@media (max-width: 768px) {
  .logo img { height: 45px; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; width: 100%; background: #000;
    display: flex; flex-direction: column; max-height: 0; overflow: hidden; transition: max-height .4s;
  }
  .nav.aberto { max-height: 320px; border-bottom: 3px solid var(--accent); }
  .nav a { margin: 0; padding: 16px 6%; border-top: 1px solid #222; }
  .projeto { grid-template-columns: 1fr; gap: 28px; }
  .projeto.invertido .projeto-img { order: 0; }
  .play-btn { width: 70px; height: 70px; font-size: 1.7rem; }
  .video-legenda { left: 0; bottom: 10px; padding: 6px 12px; }
  .video-legenda strong { font-size: 1.1rem; }
  .ficha { grid-template-columns: repeat(2, 1fr); }
  .ficha div:nth-child(2) { border-right: 0; }
  .ficha div { border-bottom: 1px dashed #333; }
  .proj-texto { grid-template-columns: 1fr; gap: 24px; padding: 70px 6%; }
  .galeria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-larga { grid-column: span 2; }
  .proximo { flex-direction: column; gap: 10px; text-align: center; }
}

.proj-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 40px 6% 80px;
}
.video-item h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin: 16px 0 4px;
}
.video-item h3::before { content: '▸ '; color: #f2d14b; }
.video-item p { color: #aaa; font-size: .95rem; }

/* Deslocamento estilo "rua" no segundo vídeo */
.video-item:nth-child(2) { margin-top: 60px; }

@media (max-width: 800px) {
  .proj-videos { grid-template-columns: 1fr; }
  .video-item:nth-child(2) { margin-top: 0; }
}

.video-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.video-wrap.insta iframe {
  aspect-ratio: auto;
  height: 720px;
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
}