:root {
  --bg: #0b0b0b;
  --bg-2: #141414;
  --fg: #f6f5f2;
  --fg-dim: rgba(246, 245, 242, 0.62);
  --line: rgba(246, 245, 242, 0.18);
  --gutter: clamp(16px, 2.2vw, 32px);
  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

/* Tipografia: condensada, caixa alta, apertada */
.display-xl, .display-lg {
  margin: 0;
  font-stretch: 62%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
}
.display-xl { font-size: clamp(52px, 8.4vw, 136px); }
.display-lg { font-size: clamp(40px, 6vw, 96px); }
.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lede {
  max-width: 34em;
  margin: 0;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--fg-dim);
}

/* Cabeçalho fixo */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 18px var(--gutter);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}
/* Degradê discreto atrás da barra, para o texto não sumir em cenas claras */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 -64px 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0));
  pointer-events: none;
}
/* Some ao rolar para baixo, volta ao rolar para cima (64px = sobra do degradê) */
.site-header.is-hidden { transform: translateY(calc(-100% - 64px)); opacity: 0; }
.site-header > * { pointer-events: auto; }
.nav-left { display: flex; flex-direction: column; gap: 2px; }
.nav-left a, .logo-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-left a { width: fit-content; opacity: 0.85; transition: opacity 0.2s; }
.nav-left a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.logo-mark { display: flex; border: 1px solid currentColor; }
.logo-mark span {
  width: 20px;
  text-align: center;
  font-stretch: 62%;
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
}
.logo-mark span + span { border-left: 1px solid currentColor; }
.logo-sub { font-size: 9px; letter-spacing: 0.18em; }
.nav-right { display: flex; justify-content: flex-end; gap: 6px; }

.pill {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.pill:hover { background: var(--fg); color: var(--bg); }
.menu-toggle { display: none; }
/* Mostra o código curto; o seletor nativo fica invisível por cima e abre a lista com os nomes */
.lang-switch { position: relative; cursor: pointer; }
.lang-switch select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.lang-switch select option { color: #000; background: #fff; }
.lang-switch:focus-within { outline: 2px solid currentColor; outline-offset: 2px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mobile-menu a {
  font-stretch: 62%;
  font-weight: 600;
  font-size: clamp(36px, 12.5vw, 56px);
  line-height: 1;
  text-transform: uppercase;
}

/* Fundo de vídeo + véu escuro, usado no topo e nas seções */
.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.55)),
    rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.hero-slide video, .feature-bg video { width: 100%; height: 100%; object-fit: cover; }

/* Topo */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  margin: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 var(--gutter);
  text-align: center;
}
.hero-title { max-width: 12ch; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.hero-title.is-swapping { opacity: 0; transform: translateY(14px); }
.hero-kind {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.link-underline { text-decoration: underline; text-underline-offset: 3px; text-transform: inherit; letter-spacing: inherit; }
.hero-counter {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.hero-bar { position: relative; width: 64px; height: 1px; background: var(--line); }
.hero-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--fg); }

/* Texto de abertura */
.intro, .featured, .about-text {
  padding: clamp(96px, 16vh, 180px) var(--gutter);
  text-align: center;
}
.intro { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.intro .eyebrow { margin: 0; }

/* Seções de tela cheia com vídeo de fundo */
.feature {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
}
.feature-bg {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}
.feature-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--gutter);
}
.feature-content .display-xl { margin-bottom: 32px; }
.btn-outline {
  padding: 7px 12px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--fg); color: var(--bg); }

/* Filme em destaque */
.featured .display-lg { margin-bottom: clamp(48px, 8vh, 88px); }
.featured-player {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  overflow: hidden;
}
.featured-player video { width: 100%; height: 100%; object-fit: cover; }
.featured-player .play-cta {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.18);
  transition: background 0.3s;
}
.featured-player .play-cta:hover { background: rgba(0,0,0,0.05); }
.play-cta span {
  padding: 10px 16px;
  border: 1px solid var(--fg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.25);
}
.featured-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1240px, 100%);
  margin: 14px auto 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}
.featured-caption span:last-child { color: var(--fg-dim); }

/* Grade de filmes */
.films { padding: 0 var(--gutter) clamp(96px, 16vh, 180px); }
.films-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.films-head .eyebrow { margin: 0; }
.films-note { margin: 0; font-size: 12px; color: var(--fg-dim); }
.films-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(12px, 1.6vw, 24px);
}
.film-card { display: block; width: 100%; text-align: left; }
.film-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.film-card:disabled { cursor: default; }
.films + .films-full { padding-top: 0; }
.film-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
.film-media img, .film-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.4s;
}
.film-media video { opacity: 0; }
.film-card.is-previewing .film-media video { opacity: 1; }
.film-card:hover .film-media img, .film-card:hover .film-media video { transform: scale(1.03); }
.film-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding-top: 12px;
}
.film-index, .film-kind { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--fg-dim); }
.film-name {
  font-stretch: 62%;
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1;
  text-transform: uppercase;
}

/* Listas numeradas (serviços e processo) */
.list-section { padding: clamp(72px, 12vh, 140px) var(--gutter); }
.rows { list-style: none; margin: 0 auto; padding: 0; max-width: 1240px; border-top: 1px solid var(--line); }
.rows li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.row-num { font-size: 12px; font-weight: 500; color: var(--fg-dim); }
.row-title {
  margin: 0;
  font-stretch: 62%;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 60px);
  line-height: 0.95;
  text-transform: uppercase;
}
.rows p { margin: 0; color: var(--fg-dim); font-weight: 300; font-size: 17px; }
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1240px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-text { display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* Contato */
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.contact-email {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.slogan { padding: clamp(96px, 16vh, 180px) var(--gutter); text-align: center; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px var(--gutter);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-top: 1px solid var(--line);
}
.site-footer a:hover { color: var(--fg); }

/* Player em tela cheia */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 64px var(--gutter) 24px;
  border: 0;
  background: rgba(5, 5, 5, 0.97);
  color: var(--fg);
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.8); }
.lightbox video, .lightbox-frame { width: min(100%, calc((100dvh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.lightbox video[hidden], .lightbox-frame[hidden] { display: none; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox-close { position: absolute; top: 18px; right: var(--gutter); }
.lightbox-caption {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Entrada suave dos blocos ao rolar */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-left { display: none; }
  .logo { align-items: flex-start; }
  .nav-right .pill:not(.menu-toggle, .lang-switch) { display: none; }
  .menu-toggle { display: inline-block; }
  .films-grid { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 36px minmax(0, 1fr); gap: 8px 12px; }
  .rows p { grid-column: 2; }
  .featured-caption { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .hero-title, .reveal, .film-media img, .film-media video { transition: none; transform: none; }
  .site-header { transition: none; }
  .reveal { opacity: 1; }
}
