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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  color: #fff;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ============================================================
   HEADER / NAV FIXA
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 40px;
  pointer-events: none;
}

.site-header a,
.site-header button {
  pointer-events: auto;
}

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

.site-nav a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
}

.site-logo {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-social {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.site-social a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

.site-social a:hover {
  color: #fff;
}

.site-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ============================================================
   HERO / GALERIA INICIAL (estilo "filmmaker")
   ============================================================ */
.hero {
  padding: 150px 40px 60px;
  text-align: center;
}

.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 40px;
}

.gallery-card {
  display: block;
  position: relative;
}

.gallery-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
}

.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-media img {
  transform: scale(1.05);
}

.gallery-card-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-card-media.is-previewing .gallery-card-preview {
  opacity: 1;
}

.gallery-card-media.is-previewing .play-badge {
  opacity: 0;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.gallery-card:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(0, 0, 0, 0.5);
}

.play-badge svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  fill: #fff;
}

.gallery-card-title {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.gallery-card-category {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: left;
}

.gallery-more {
  display: flex;
  justify-content: center;
  padding: 20px 40px 100px;
}

.pill-button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  transition: background 0.25s ease, color 0.25s ease;
}

.pill-button:hover {
  background: #fff;
  color: #000;
}

/* ============================================================
   BIO
   ============================================================ */
.bio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 120px 40px;
}

.bio-photo {
  flex: 0 0 auto;
  width: 320px;
  aspect-ratio: 4 / 5;
  background: #111;
  overflow: hidden;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-content {
  flex: 1 1 480px;
  max-width: 640px;
  text-align: left;
}

.bio-name {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bio-role {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.bio-text {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  text-align: justify;
  text-align-last: left;
}

/* ============================================================
   CONTATO
   ============================================================ */
.contact {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding: 100px 24px;
}

.contact-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 18px;
}

.contact-list a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.contact-list a:hover {
  border-color: #fff;
}

.contact-list a[data-contact-instagram] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-list a[data-contact-instagram] svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-foot {
  margin-top: 40px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   PÁGINA WORK (galeria completa, estilo denso)
   ============================================================ */
.work-page-header {
  padding: 150px 40px 40px;
}

.work-page-header h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: background 0.25s ease, color 0.25s ease;
}

.filter-btn:hover {
  color: #fff;
}

.filter-btn.is-active {
  background: #fff;
  color: #000;
}

.dense-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 4px 4px;
}

.dense-card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.dense-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dense-card:hover img {
  transform: scale(1.06);
}

.dense-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.dense-card:hover .dense-card-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.45);
}

.dense-card-overlay .title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dense-card-overlay .subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.empty-state {
  padding: 80px 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* ============================================================
   PÁGINA DE PROJETO (player individual)
   ============================================================ */
.project-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 40px;
  gap: 20px;
}

.project-player {
  width: 100%;
  max-width: 1400px;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-player video,
.project-player img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
}

.project-meta {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.project-meta h1 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-meta .client {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.project-description {
  width: 100%;
  max-width: 1100px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.back-link {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.back-link:hover {
  color: #fff;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1000px) {
  .dense-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bio {
    gap: 48px;
  }

  .bio-photo {
    width: 240px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 20px;
  }

  .site-logo {
    font-size: 12px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 40px 20px;
  }

  .dense-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 120px 20px 40px;
  }

  .bio {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 120px 20px 60px;
  }

  .bio-photo {
    width: 200px;
    align-self: center;
  }

  .contact {
    min-height: auto;
    padding: 40px 20px 80px;
  }

  .project-page {
    padding: 90px 12px 24px;
    gap: 14px;
  }

  .project-player video,
  .project-player img {
    max-height: 90vh;
  }

  .project-meta,
  .project-description {
    padding: 0 8px;
  }
}
