/* ============================================================
   UP ESTÚDIOS — HOME V4 (prévia)
   Conceito: a página funciona como o monitor de uma câmera.
   A abertura é o quadro gravando; o timecode no canto é a
   posição de quem navega; as anotações à mão são as notas
   de direção.
   ============================================================ */

:root {
  --black: #000;
  --surface: #0e0e0e;
  --line: #262626;
  --paper: #f2f1ec;
  --paper-dim: rgba(242, 241, 236, 0.78);
  --grey: #8e8e8a;
  --grey-2: #4d4d4a;
  --green: #22ff3d;
  --green-glow: rgba(34, 255, 61, 0.4);
  --tally: #ff3b30;          /* luz de gravação — só no REC e na caneta de direção */

  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --f-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --f-body: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-note: 'Caveat', 'Segoe Print', cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html:not(.has-motion) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--black);
  color: var(--paper);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

/* grão de película, estático (não custa repintura) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 400;
  background: var(--green); color: #000; padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.btn-solid { background: var(--green); color: #000; }
.btn-solid:hover { background: var(--paper); box-shadow: 0 0 0 0 transparent; }
.btn-ghost { border: 1px solid rgba(242, 241, 236, 0.35); color: var(--paper); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 15px; }

/* ---------- TÍTULOS DE SEÇÃO ---------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 36ch);
  align-items: end;
  gap: 20px 56px;
  margin-bottom: clamp(48px, 8vh, 96px);
}
.sec-head h2 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(48px, 7.6vw, 124px);
  line-height: 0.94;
  letter-spacing: 0.005em;
}
.sec-head p { color: var(--grey); max-width: 36ch; padding-bottom: 0.4em; }
.sec-foot { margin-top: clamp(48px, 8vh, 88px); }

/* ============================================================
   ABERTURA CURTA
   ============================================================ */
.pre { display: none; }
html.first-visit .pre {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
}
.pre-mark {
  width: 84px;
  height: auto;
  clip-path: inset(100% 100% 0% 0%);   /* revela de baixo-esquerda pra cima-direita, no sentido da seta */
}

/* ============================================================
   TOPO
   ============================================================ */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--gutter);
  transition: transform 0.6s var(--ease), background 0.35s, backdrop-filter 0.35s;
}
.topbar.is-solid { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.topbar.is-hidden { transform: translateY(-105%); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.brand img { height: 28px; width: auto; }
.brand b { color: var(--green); font-weight: 400; }

.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--paper-dim); transition: color 0.2s; }
.nav a:hover { color: var(--paper); }
.menu-btn { display: none; }

/* ============================================================
   HUD (timecode fixo)
   ============================================================ */
.hud {
  position: fixed;
  left: var(--gutter);
  bottom: 22px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 400;
  color: var(--paper-dim);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  mix-blend-mode: difference;
}
.hud-rec { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; letter-spacing: 0.06em; }
.hud-rec i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tally);
  animation: rec 1.6s steps(2, jump-none) infinite;
}
@keyframes rec { 50% { opacity: 0.15; } }
.hud-scene { color: var(--grey); }
.hud { transition: opacity 0.4s; }
.hud.is-away { opacity: 0 !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; }
.hero-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #050505;
  clip-path: inset(0vh 0vw 0vh 0vw round 0px);
}
.hero-media { position: absolute; inset: 0; transform-origin: 50% 60%; }
.hero-media video,
.hm-slide,
.hm-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-slide { opacity: 0; transition: opacity 1.6s ease; }
.hm-slide.is-on { opacity: 1; }
.hm-slide.is-on img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }   /* zoom curto: ampliar demais tira nitidez */

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.45) 42%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.65) 100%),
    linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 62%);
}

/* marcas de enquadramento do visor */
.vf { position: absolute; inset: 0; pointer-events: none; }
.vf i {
  position: absolute;
  width: 34px; height: 34px;
  border: 0 solid rgba(242, 241, 236, 0.7);
}
.vf-tl { top: 92px; left: var(--gutter); border-top-width: 1.5px !important; border-left-width: 1.5px !important; }
.vf-tr { top: 92px; right: var(--gutter); border-top-width: 1.5px !important; border-right-width: 1.5px !important; }
.vf-bl { bottom: 56px; left: var(--gutter); border-bottom-width: 1.5px !important; border-left-width: 1.5px !important; }
.vf-br { bottom: 56px; right: var(--gutter); border-bottom-width: 1.5px !important; border-right-width: 1.5px !important; }
.vf-cross {
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px; transform: translate(-50%, -50%);
  opacity: 0.35;
  background:
    linear-gradient(var(--paper), var(--paper)) center / 1px 100% no-repeat,
    linear-gradient(var(--paper), var(--paper)) center / 100% 1px no-repeat;
}

.hero-content {
  position: absolute;
  left: calc(var(--gutter) + 34px);
  right: var(--gutter);
  bottom: clamp(96px, 13vh, 140px);
  z-index: 2;
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: min(15vw, 21vh);
  line-height: 0.94;
  letter-spacing: 0.004em;
}
.hero-note {
  display: block;
  width: max-content;
  font-family: var(--f-note);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.27em;
  line-height: 1;
  margin: 0 0 0.1em 0.06em;
  transform: rotate(-4deg);
  transform-origin: left bottom;
  clip-path: inset(0% 0% 0% -10%);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero-title .line > span { display: block; }
.hero-title .line:first-of-type { position: relative; z-index: 1; }   /* o Ç de PEÇA passa por cima da linha de baixo */
.line-green { color: var(--green); }
.hero-title.is-done .line { overflow: visible; }
.hero-title.is-done .line-green > span { text-shadow: 0 0 48px var(--green-glow); }

.hero-lead {
  max-width: 36ch;
  margin-top: clamp(20px, 3vh, 32px);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--paper-dim);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3vh, 32px); }

.hero-caption {
  position: absolute;
  right: calc(var(--gutter) + 34px);
  bottom: clamp(96px, 13vh, 140px);
  z-index: 2;
  max-width: 26ch;
  text-align: right;
  font-size: 13px;
  line-height: 1.45;
  color: var(--grey);
}
.hero-caption strong { display: block; color: var(--paper); font-weight: 500; transition: opacity 0.5s; }
.hero-caption strong.is-swapping { opacity: 0; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  width: 44px;
  height: 44px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  background-size: 100% 200%;
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { from { background-position: 0 -100%; } to { background-position: 0 100%; } }

/* estados iniciais da coreografia de entrada (só com animação ligada) */
html.has-motion .hero-media { opacity: 0; }
html.has-motion .vf i, html.has-motion .vf-cross { opacity: 0; }
html.has-motion .hero-note { clip-path: inset(0% 100% 0% -10%); }
html.has-motion .hero-title .line > span { transform: translateY(108%); }
html.has-motion .hero-lead,
html.has-motion .hero-ctas,
html.has-motion .hero-caption,
html.has-motion .scroll-cue,
html.has-motion .hud,
html.has-motion .topbar { opacity: 0; }

/* ============================================================
   FAIXA
   ============================================================ */
.band {
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: #000;
  position: relative;
  z-index: 2;
}
.band-track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3vw, 48px);
  width: max-content;
  will-change: transform;
}
.band-track span {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.band-track .o { color: transparent; -webkit-text-stroke: 1px var(--green); }
.band-track img { height: clamp(26px, 3vw, 42px); width: auto; flex: none; }
.band.css-anim .band-track { animation: band 40s linear infinite; }
@keyframes band { to { transform: translateX(-50%); } }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { padding: clamp(120px, 22vh, 240px) var(--gutter) clamp(96px, 14vh, 160px); }
.manifesto-text {
  max-width: 21ch;
  font-size: clamp(32px, 4.6vw, 74px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 300;
}
.manifesto-text em {
  font-style: normal;
  font-family: var(--f-note);
  font-weight: 600;
  font-size: 1.16em;
  letter-spacing: 0;
  line-height: 1;
  padding-right: 0.12em;
}
/* a pergunta errada é riscada com a caneta vermelha do diretor */
.manifesto-text .q1 {
  color: var(--paper);
  background: linear-gradient(var(--tally), var(--tally)) no-repeat 0 58% / var(--strike, 100%) 0.07em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.manifesto-text .q2 { color: var(--green); }
.manifesto-text .w { display: inline; }
.manifesto-note {
  margin: clamp(40px, 6vh, 64px) 0 0 auto;
  max-width: 26ch;
  font-family: var(--f-note);
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.15;
  color: var(--grey);
  transform: rotate(-2.5deg);
  text-align: right;
}

/* ============================================================
   COMO TRABALHAMOS
   ============================================================ */
.metodo { padding: clamp(88px, 13vh, 150px) var(--gutter); border-top: 1px solid var(--line); }
.metodo-list {
  --draw: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 56px);
  padding-top: 56px;
}
.metodo-list::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--green);
  transform-origin: left center;
  transform: scaleX(var(--draw));
}
.metodo-list li { position: relative; }
.metodo-list li::before {
  content: '';
  position: absolute;
  top: -60px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #000;
  border: 1px solid var(--green);
}
.m-num {
  display: block;
  margin-bottom: 28px;
  font-family: var(--f-display);
  font-size: clamp(88px, 9vw, 150px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 241, 236, 0.4);
}
.metodo-list h3 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1;
  margin-bottom: 14px;
}
.metodo-list p { color: var(--grey); max-width: 34ch; }

/* ============================================================
   PROJETOS
   ============================================================ */
.projetos { padding: clamp(88px, 13vh, 150px) var(--gutter); border-top: 1px solid var(--line); }
.work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: clamp(56px, 9vh, 104px);
  align-items: start;
}
.w-item { min-width: 0; }
.w-link { display: block; position: relative; }
.w-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  clip-path: inset(0% 0% 0% 0%);
}
.w-par { position: absolute; inset: 0; }
.w-par img, .w-par video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s;
}
.w-par video { opacity: 0; transition: opacity 0.4s; }
.w-link.is-playing .w-par video { opacity: 1; }
.w-link:hover .w-par img, .w-link:focus-visible .w-par img { transform: scale(1.03); }
.w-badge {
  position: absolute;
  left: 14px; top: 14px;
  z-index: 2;
  padding: 6px 10px;
  background: #000;
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  border-radius: 2px;
}
.w-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  padding-top: 18px;
}
.w-client {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 2.9vw, 46px);
  line-height: 1.04;
}
.w-title { grid-column: 1; font-size: 15px; color: var(--paper-dim); }
.w-kind {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  text-align: right;
  font-size: 13px;
  color: var(--grey);
  max-width: 18ch;
}
html.has-motion .w-media { clip-path: inset(100% 0% 0% 0%); }
.noscript { color: var(--grey); }
.noscript a { color: var(--green); }

/* ============================================================
   VERTICAIS
   ============================================================ */
.reels { padding: clamp(88px, 13vh, 150px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.reels .sec-head, .reels .sec-foot { padding: 0 var(--gutter); }
.reels-row { display: flex; gap: 16px; width: max-content; padding: 0 var(--gutter); }
.reel {
  position: relative;
  flex: 0 0 clamp(172px, 17vw, 250px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
  text-align: left;
}
.reel { display: block; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.reel:hover img, .reel:focus-visible img { transform: scale(1.05); }
.reel-cap {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  font-size: 12px;
  color: var(--grey);
}
.reel-cap strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 2px;
}
@media (hover: none) {
  .reels-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .reels-viewport::-webkit-scrollbar { display: none; }
  .reel { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
}

/* ============================================================
   SERVIÇOS
   ============================================================ */
.servicos { padding: clamp(88px, 13vh, 150px) var(--gutter); border-top: 1px solid var(--line); }
.sys { border-top: 1px solid var(--line); }
.sys-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 30ch);
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 3vh, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.sys-n { font-size: 13px; color: var(--grey); font-variant-numeric: tabular-nums; transition: color 0.5s; }
.sys-word {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(54px, 9.4vw, 152px);
  line-height: 0.94;
  color: var(--paper);
  -webkit-text-stroke: 1px transparent;
  transition: color 0.6s, -webkit-text-stroke-color 0.6s;
}
.sys-row ul { font-size: 15px; line-height: 1.85; color: var(--paper-dim); transition: color 0.6s; }
/* com animação: as palavras ficam vazadas e acendem quando a linha passa pelo meio da tela */
html.has-motion .sys-word { color: transparent; -webkit-text-stroke-color: rgba(242, 241, 236, 0.38); }
html.has-motion .sys-row ul { color: var(--grey); }
html.has-motion .sys-row.is-on .sys-word { color: var(--paper); -webkit-text-stroke-color: transparent; }
html.has-motion .sys-row.is-on .sys-n { color: var(--green); }
html.has-motion .sys-row.is-on ul { color: var(--paper); }
.sys-loop {
  margin-top: 36px;
  font-family: var(--f-note);
  font-weight: 600;
  font-size: clamp(24px, 2.2vw, 32px);
  color: var(--grey);
  transform: rotate(-1.5deg);
  transform-origin: left;
}

/* ============================================================
   CLIENTES
   ============================================================ */
.clientes { padding: clamp(56px, 9vh, 96px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.clientes h2 {
  padding: 0 var(--gutter);
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 400;
  color: var(--grey);
}
.cl-viewport { overflow: hidden; }
.cl-track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  width: max-content;
  padding: 8px 0;
  animation: band 55s linear infinite;
}
.cl-viewport:hover .cl-track { animation-play-state: paused; }
/* logos brancas: um pouco apagadas em repouso, acendem no mouse */
.cl-track li { flex: none; display: flex; align-items: center; }
.cl-track img { width: auto; max-width: none; opacity: 0.55; transition: opacity 0.3s; }
.cl-track img:hover { opacity: 1; }
@media (max-width: 760px) { .cl-track img { height: calc(var(--h) * 0.72) !important; } }
@media (prefers-reduced-motion: reduce) { .cl-track { animation-duration: 110s; } }

/* ============================================================
   CONTATO
   ============================================================ */
.contato {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(48px, 6vw, 112px);
  align-items: start;
  padding: clamp(100px, 16vh, 180px) var(--gutter);
  border-top: 1px solid var(--line);
}
.ct-title {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(56px, 7.4vw, 120px);
  line-height: 1.04;
}
.ct-title span { display: block; color: var(--green); }
.ct-lead { margin-top: 28px; max-width: 34ch; color: var(--paper-dim); font-size: 17px; }
.ct-direct { margin-top: 44px; display: grid; gap: 14px; font-size: 15px; }
.ct-direct li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; color: var(--paper-dim); }
.ct-direct span { color: var(--grey); font-size: 13px; padding-top: 2px; }
.ct-direct a { color: var(--paper); border-bottom: 1px solid var(--grey-2); width: fit-content; transition: color 0.2s, border-color 0.2s; }
.ct-direct a:hover { color: var(--green); border-color: var(--green); }

.brief fieldset { border: 0; margin-bottom: 30px; }
.brief legend { font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #333;
  border-radius: 2px;
  font-size: 14px;
  color: var(--paper-dim);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip span:hover { border-color: var(--paper); color: var(--paper); }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #000; font-weight: 500; }
.chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { display: block; margin-bottom: 22px; }
.field span { display: block; font-size: 13px; color: var(--grey); margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #333;
  border-radius: 0;
  color: var(--paper);
  font: 400 16px/1.5 var(--f-body);
  resize: vertical;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }

.brief-preview {
  margin: 8px 0 26px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px 16px 16px 16px;
}
.bp-label { display: block; font-size: 12px; color: var(--grey); margin-bottom: 6px; }
#bp-text { white-space: pre-line; font-size: 14px; line-height: 1.6; color: var(--paper-dim); min-height: 3.2em; }

/* ============================================================
   RODAPÉ
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 64px var(--gutter) 28px; }
.f-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.f-brand img { height: 64px; width: auto; margin-bottom: 18px; }
.f-brand p { max-width: 36ch; font-size: 14px; color: var(--grey); }
.f-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.f-nav a { color: var(--paper-dim); }
.f-nav a:hover { color: var(--green); }
.f-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.04em;
}
.f-legal { line-height: 1.8; }
.f-legal .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 8px var(--green);
}
.f-social { display: flex; gap: 12px; }
.social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid #333;
  color: var(--paper-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.social-link i { font-family: "Font Awesome 6 Brands"; font-style: normal; font-weight: 400; line-height: 1; }
.social-link:hover, .social-link:focus-visible { color: var(--green); border-color: var(--green); box-shadow: 0 0 20px rgba(34, 255, 61, 0.25); }

/* ============================================================
   ETIQUETA DO CURSOR
   ============================================================ */
.cursor-tag {
  position: fixed;
  left: 0; top: 0;
  z-index: 150;
  pointer-events: none;
  will-change: transform;
}
.cursor-tag span {
  display: block;
  padding: 10px 14px;
  background: var(--green);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
  white-space: nowrap;
  transform: translate(14px, 14px) scale(0);
  transform-origin: 0 0;
  transition: transform 0.35s var(--ease);
}
.cursor-tag.is-on span { transform: translate(14px, 14px) scale(1); }

/* ============================================================
   PLAYER DE PROJETO
   ============================================================ */
.viewer { position: fixed; inset: 0; z-index: 200; }
.viewer[hidden] { display: none; }
.v-bg { position: absolute; inset: 0; overflow: hidden; background: #000; }
.v-bg img { width: 100%; height: 100%; object-fit: cover; }
.v-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: var(--dim, 1); }
.v-inner {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(28px, 3.4vw, 56px);
  padding: 96px var(--gutter) 56px;
}
.v-player { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 40px 100px rgba(0,0,0,0.6); }
.v-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewer.is-vertical .v-inner { grid-template-columns: auto minmax(280px, 380px); justify-content: center; }
.viewer.is-vertical .v-player { aspect-ratio: 9 / 16; height: min(78vh, 780px); max-width: 88vw; }
.v-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.v-tabs:empty { display: none; }
.v-tab {
  min-height: 40px; padding: 0 16px;
  border: 1px solid rgba(242, 241, 236, 0.3);
  border-radius: 2px;
  font-size: 13px;
  color: var(--paper-dim);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.v-tab:hover { border-color: var(--paper); color: var(--paper); }
.v-tab[aria-selected="true"] { background: var(--paper); border-color: var(--paper); color: #000; font-weight: 500; }
.v-kind { font-size: 13px; color: var(--grey); margin-bottom: 10px; }
.v-client {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1.02;
}
.v-title { margin-top: 8px; font-size: 16px; color: var(--paper-dim); }
.v-blocks { margin-top: 28px; display: grid; gap: 18px; }
.v-blocks dt { font-size: 12px; color: var(--green); margin-bottom: 4px; }
.v-blocks dd { font-size: 15px; line-height: 1.6; color: var(--paper-dim); }
.v-yt {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  color: var(--paper);
  border-bottom: 1px solid var(--grey-2);
  transition: color 0.2s, border-color 0.2s;
}
.v-yt:hover { color: var(--green); border-color: var(--green); }
.v-close {
  position: fixed;
  top: 22px;
  right: var(--gutter);
  z-index: 3;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(242, 241, 236, 0.4);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.v-close:hover { border-color: var(--green); color: var(--green); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1000px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(242, 241, 236, 0.35);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    z-index: 2;
  }
  .topbar-cta { margin-left: auto; }
  .brand { position: relative; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 120px var(--gutter) 48px;
    flex-direction: column;
    gap: 4px;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }
  .nav a {
    font-family: var(--f-display);
    font-size: clamp(40px, 11vw, 64px);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--paper);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s var(--ease), opacity 0.4s, color 0.2s;
  }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open .nav a { transform: none; opacity: 1; }
  body.menu-open .nav a:nth-child(2) { transition-delay: 0.04s; }
  body.menu-open .nav a:nth-child(3) { transition-delay: 0.08s; }
  body.menu-open .nav a:nth-child(4) { transition-delay: 0.12s; }
  body.menu-open .nav a:nth-child(5) { transition-delay: 0.16s; }
  .nav a:hover { color: var(--green); }

  .sec-head { grid-template-columns: 1fr; }
  .metodo-list { grid-template-columns: 1fr; padding: 0 0 0 32px; gap: 48px; }
  .metodo-list::before { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; transform-origin: top center; transform: scaleY(var(--draw)); }
  .metodo-list li::before { top: 6px; left: -32px; }
  .m-num { font-size: 72px; margin-bottom: 16px; }

  .contato { grid-template-columns: 1fr; }
  .v-inner, .viewer.is-vertical .v-inner { grid-template-columns: 1fr; align-items: start; align-content: start; padding-top: 84px; }
  .viewer.is-vertical .v-player { height: min(70vh, 640px); margin: 0 auto; }
}

@media (max-width: 760px) {
  .topbar { padding: 14px var(--gutter); gap: 12px; }
  .topbar-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .brand { font-size: 20px; }

  .hud, .scroll-cue, .hero-caption, .vf-cross { display: none; }
  .vf-tl, .vf-tr { top: 76px; }
  .vf-bl, .vf-br { bottom: 24px; }
  .vf i { width: 24px; height: 24px; }
  .hero-content { left: var(--gutter); bottom: 56px; }
  .hero-title { font-size: min(25vw, 17vh); }
  .hero-ctas .btn { flex: 1 1 auto; }

  .manifesto-text { font-size: clamp(30px, 8.4vw, 44px); }
  .manifesto-note { margin-left: 0; text-align: left; }

  .work { grid-template-columns: 1fr; row-gap: 64px; }

  .sys-row { grid-template-columns: 28px 1fr; gap: 6px 14px; align-items: start; }
  .sys-n { padding-top: 0.6em; }
  .sys-row ul { grid-column: 2; line-height: 1.6; font-size: 14px; }
  .sys-row ul li { display: inline; }
  .sys-row ul li:not(:last-child)::after { content: ', '; }

  .fields { grid-template-columns: 1fr; }
  .w-meta { grid-template-columns: 1fr; }
  .w-kind { grid-column: 1; grid-row: auto; text-align: left; max-width: none; }
  .ct-direct li { grid-template-columns: 80px 1fr; }
  .btn-lg { width: 100%; }
  .f-top { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-slide.is-on img { animation: none; }
  .scroll-cue i { animation: none; }
  .hud-rec i { animation: none; }
}

/* capa do YouTube que não carregou */
img.is-missing { opacity: 0; }

/* ============================================================
   MANIFESTO COM FOTO
   ============================================================ */
.mf-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
}
.mf-grid .manifesto-text { font-size: clamp(30px, 3.9vw, 62px); max-width: 20ch; }
.mf-grid .manifesto-note { margin-left: 0; text-align: left; }
.mf-photo { position: relative; margin-top: 0.4em; }
.mf-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
  clip-path: inset(0% 0% 0% 0%);
}
.mf-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* marcas de enquadramento, as mesmas do visor da abertura */
.mf-photo .vf-mark { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(242, 241, 236, 0.75); z-index: 2; pointer-events: none; }
.mf-photo .m-tl { top: 12px; left: 12px; border-top-width: 1.5px; border-left-width: 1.5px; }
.mf-photo .m-tr { top: 12px; right: 12px; border-top-width: 1.5px; border-right-width: 1.5px; }
.mf-photo .m-bl { bottom: 12px; left: 12px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.mf-photo .m-br { bottom: 12px; right: 12px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.mf-photo figcaption { margin-top: 14px; font-size: 13px; color: var(--grey); }
.mf-photo figcaption:empty { display: none; }
html.has-motion .mf-frame { clip-path: inset(100% 0% 0% 0%); }
@media (max-width: 900px) {
  .mf-grid { grid-template-columns: 1fr; }
  .mf-photo { max-width: 520px; }
}

/* projetos em número ímpar: o primeiro abre a grade em destaque, na largura toda */
.work.is-odd .w-item:first-child { grid-column: 1 / -1; }
