/* =========================================================
   GRUPO FLOW — preto e branco, Helvetica, minimalista
   ========================================================= */
:root {
  --black: #0b0b0b;
  --ink: #141414;
  --line: #262626;
  --gray: #8a8a8a;
  --white: #f2f2f2;
  --font: "Helvetica Neue", Helvetica, "Nimbus Sans", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--font); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 300; letter-spacing: -.035em; line-height: .98; }
b { font-weight: 700; }
::selection { background: var(--white); color: var(--black); }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.cap { font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--gray); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px; border: 1px solid var(--white);
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn span { transition: transform .35s var(--ease); }
.btn:hover { background: var(--white); color: var(--black); }
.btn:hover span { transform: translateX(5px); }
.btn-solid { background: var(--white); color: var(--black); }
.btn-solid:hover { background: transparent; color: var(--white); }

/* ---------- Abertura: o "O" vem de fora da tela e vira o logo ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: var(--black);
  display: grid; place-items: center; overflow: hidden;
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1), visibility 0s 1.25s;
}
.intro.done { clip-path: circle(0% at 50% 47%); visibility: hidden; }
.intro-stage { position: relative; width: min(72vw, 620px); aspect-ratio: 1280 / 380; }
/* posição exata do "O" dentro de logo-flow.png (1280x380) */
.intro-o {
  position: absolute; left: 37.81%; top: 1.84%; width: 25.47%; z-index: 2;
  transform-origin: 50% 50%;
  animation: oFly 1.6s cubic-bezier(.16, 1, .3, 1) .15s both;
  will-change: transform, filter;
}
.intro-logo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  clip-path: inset(0 50% 0 50%); opacity: 0;
  animation: logoOpen .9s cubic-bezier(.65, 0, .35, 1) 1.45s both;
}
.intro-skip {
  position: absolute; right: var(--pad); bottom: 28px; background: none; border: 0; cursor: pointer;
  color: var(--gray); font: 400 11px var(--font); letter-spacing: .3em; text-transform: uppercase;
  opacity: 0; animation: fade .4s .8s forwards;
}
.intro-skip:hover { color: var(--white); }
@keyframes oFly {
  0%   { transform: scale(26) rotate(-300deg); filter: blur(6px); opacity: 0; }
  12%  { opacity: 1; }
  70%  { filter: blur(0); }
  100% { transform: scale(1) rotate(0); filter: blur(0); opacity: 1; }
}
@keyframes logoOpen {
  0%   { clip-path: inset(0 50% 0 50%); opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}
body.is-loading { overflow: hidden; }

/* ---------- Header ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 11, 11, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-block: 14px; border-color: var(--line); }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gray); transition: color .25s; }
.nav-links a:hover, .nav-links .nav-cta { color: var(--white); }
.nav-cta { border-bottom: 1px solid var(--white); padding-bottom: 3px; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 8px; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; z-index: 2;
  }
  .nav-toggle span { width: 26px; height: 1px; background: var(--white); transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px;
    background: var(--black); opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 15px; color: var(--white); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; overflow: hidden; }
.hero-iris {
  position: absolute; top: 50%; right: -14vw; width: min(78vw, 920px); opacity: .07;
  transform: translateY(-50%) rotate(var(--rot, 0deg)); pointer-events: none;
}
.hero-inner { position: relative; padding-bottom: clamp(40px, 7vh, 80px); }
.hero-title { font-size: clamp(48px, 10.2vw, 172px); margin: 26px 0 clamp(36px, 6vh, 64px); }
.hero-title .line { display: block; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.hero-sub { max-width: 400px; color: #b5b5b5; font-size: 16px; }
.hero-meta { display: flex; justify-content: space-between; padding-block: 22px; border-top: 1px solid var(--line); position: relative; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; }
.ticker-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-size: clamp(26px, 3.6vw, 52px); font-weight: 300; letter-spacing: -.03em; white-space: nowrap; }
.ticker i { width: 34px; height: 34px; background: url(../assets/diafragma.png) center / contain no-repeat; animation: spin 10s linear infinite; }

/* ---------- Seções ---------- */
.section { padding-block: clamp(96px, 14vw, 200px); position: relative; }
.intro-block { max-width: 1100px; }
.head { margin-bottom: clamp(56px, 7vw, 100px); max-width: 1000px; }
.title { font-size: clamp(40px, 6.4vw, 104px); }
.statement { font-size: clamp(30px, 4.4vw, 68px); line-height: 1.04; }
.lead { color: var(--gray); max-width: 520px; margin-top: 30px; }

/* Números */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 28px 20px 0 0; border-right: 1px solid var(--line); padding-left: 20px; }
.stat:first-child, .stats .stat:nth-child(3) { padding-left: 0; }
@media (min-width: 900px) { .stats .stat:nth-child(3) { padding-left: 20px; } }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(44px, 6vw, 92px); font-weight: 300; letter-spacing: -.04em; line-height: 1; margin-bottom: 14px; }
.stat > span { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gray); }
@media (max-width: 899px) { .stat:nth-child(2) { border-right: 0; } .stat:nth-child(n+3) { margin-top: 28px; } }

/* ---------- Trabalhos ---------- */
.section-work { border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 56px; }
.filter {
  background: none; border: 0; padding: 0 0 4px; cursor: pointer;
  font: 400 11px var(--font); letter-spacing: .28em; text-transform: uppercase; color: var(--gray);
  border-bottom: 1px solid transparent; transition: color .25s, border-color .25s;
}
.filter:hover { color: var(--white); }
.filter.active { color: var(--white); border-color: var(--white); }

.works-h { display: grid; gap: clamp(64px, 9vw, 130px); }
.works-sub {
  margin: clamp(90px, 12vw, 170px) 0 clamp(36px, 5vw, 60px);
  font-size: clamp(28px, 3.6vw, 52px); font-weight: 300; letter-spacing: -.03em;
}
.works-sub.hidden { display: none; }
.works-v { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px); }
@media (min-width: 760px) { .works-v { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .works-v { grid-template-columns: repeat(4, 1fr); } }
.work { display: grid; gap: 20px; align-content: start; }
.work.hidden { display: none; }
.work-num { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gray); }
.work.vertical { gap: 12px; }
.work.vertical .work-num { font-size: 10px; letter-spacing: .22em; }

.work-media {
  position: relative; overflow: hidden; cursor: pointer; background: var(--ink); aspect-ratio: 16 / 9;
}
.work.vertical .work-media { aspect-ratio: 9 / 16; }
.work-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.7); transform: scale(1.06);
  transition: filter 1.2s var(--ease), transform 1.6s var(--ease);
}
.work.in-focus .work-media video { filter: none; transform: scale(1); }

/* Diafragma que "abre" sobre o vídeo */
.work-iris {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; z-index: 2;
  background: url(../assets/diafragma.png) center / contain no-repeat;
  transition: transform .9s var(--ease), opacity .6s;
  pointer-events: none;
}
.work.in-focus .work-iris { transform: rotate(160deg) scale(.4); opacity: 0; }
.work-media:hover .work-iris { opacity: 1; transform: rotate(60deg) scale(.9); }

.work-live {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity .4s;
}
.work-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: blink 1.2s infinite; }
.work.playing .work-live { opacity: 1; }
.work-sound {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  padding: 10px 14px; border: 1px solid rgba(242, 242, 242, .6); background: rgba(11, 11, 11, .35);
  transition: background .3s, color .3s;
}
.work-media:hover .work-sound { background: var(--white); color: var(--black); }
.work-progress { position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--white); z-index: 3; }

.work-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; align-items: baseline; }
.work-info > * { max-width: 100%; min-width: 0; }
.work-info h3 { font-size: clamp(26px, 3vw, 44px); font-weight: 700; }
.work-info .work-client { color: var(--gray); font-size: 15px; }
.work-info .desc { color: #b5b5b5; max-width: 520px; font-size: 15px; flex-basis: 100%; }
.work-info .tags { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gray); }
/* verticais: texto compacto embaixo do vídeo */
.work.vertical .work-info { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
.work.vertical .work-info h3 { font-size: clamp(17px, 1.5vw, 22px); }
.work.vertical .work-info .work-client { font-size: 13px; }
.work.vertical .work-info .desc, .work.vertical .work-info .tags { display: none; }
.work.vertical .work-iris { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.work.vertical .work-sound { right: 10px; bottom: 10px; padding: 8px 10px; font-size: 9px; letter-spacing: .2em; }
.work.vertical .work-live { top: 10px; left: 10px; }

/* ---------- Serviços ---------- */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li {
  display: grid; grid-template-columns: 1fr; gap: 6px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  position: relative; transition: padding .5s var(--ease);
}
@media (min-width: 900px) {
  .services li { grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 34px 0; }
}
.services li::before {
  content: ""; position: absolute; inset: 0; background: var(--white);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1;
}
.services li:hover { color: var(--black); padding-inline: 20px; }
.services li:hover::before { transform: scaleY(1); }
.services li:hover p { color: #444; }
.services h3 { font-size: clamp(24px, 2.8vw, 40px); }
.services p { color: var(--gray); font-size: 15px; }
#servicos { isolation: isolate; }

/* ---------- Clientes (fundo preto, logos da proposta) ---------- */
.section-clients { border-top: 1px solid var(--line); }
.clients { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 760px) { .clients { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .clients { grid-template-columns: repeat(6, 1fr); } }
.client {
  display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 14px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .4s;
}
/* os PNGs têm fundo preto: "lighten" faz o preto sumir no fundo do site */
.client img { width: auto; max-width: 84%; max-height: 56px; object-fit: contain; mix-blend-mode: lighten; opacity: .72; transition: opacity .3s, transform .4s var(--ease); }
.client:hover { background: var(--ink); }
.client:hover img { opacity: 1; transform: scale(1.04); }

/* ---------- Contato ---------- */
.contact { overflow: hidden; }
.contact-iris {
  position: absolute; right: -10vw; bottom: -20vw; width: min(70vw, 760px); opacity: .06;
  transform: rotate(var(--rot, 0deg)); pointer-events: none;
}
.contact .wrap { position: relative; }
.contact-title { font-size: clamp(46px, 9.6vw, 164px); margin: 28px 0 clamp(48px, 6vw, 80px); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-actions .btn { max-width: 100%; overflow-wrap: anywhere; }
.socials { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 64px; }
.socials a { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); border-bottom: 1px solid transparent; padding-bottom: 3px; transition: color .25s, border-color .25s; }
.socials a:hover { color: var(--white); border-color: var(--white); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 30px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer-logo { height: 24px; width: auto; }
.footer a.cap:hover { color: var(--white); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 64px 16px 16px; background: rgba(11, 11, 11, .96); animation: fade .35s; }
.lightbox[hidden] { display: none; }
.lightbox video { max-width: min(1280px, 100%); max-height: 84vh; background: #000; }
.lightbox-close {
  position: absolute; top: 20px; right: var(--pad); background: none; border: 0; cursor: pointer; color: var(--white);
  font: 400 11px var(--font); letter-spacing: .3em; text-transform: uppercase;
}

/* ---------- Entrada ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@keyframes irisSpin { from { transform: rotate(-180deg) scale(.4); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *:not(.intro):not(.intro-o):not(.intro-logo):not(.intro-skip), *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.client img.sq { max-height: 84px; }
