/* =========================================================
   PRISMA FILMS — estilo
   Fonte: Gotham. Coloque os arquivos .woff2 em assets/fonts
   (veja assets/fonts/LEIA-ME.txt). Sem eles, usa Montserrat.
   ========================================================= */

@font-face { font-family: "Gotham"; font-weight: 300; font-display: swap;
  src: url("../fonts/Gotham-Light.woff2") format("woff2"); }
@font-face { font-family: "Gotham"; font-weight: 400; font-display: swap;
  src: url("../fonts/Gotham-Book.woff2") format("woff2"); }
@font-face { font-family: "Gotham"; font-weight: 500; font-display: swap;
  src: url("../fonts/Gotham-Medium.woff2") format("woff2"); }
@font-face { font-family: "Gotham"; font-weight: 700; font-display: swap;
  src: url("../fonts/Gotham-Bold.woff2") format("woff2"); }
@font-face { font-family: "Gotham"; font-weight: 900; font-display: swap;
  src: url("../fonts/Gotham-Black.woff2") format("woff2"); }

:root {
  --bg: #000;
  --bg-2: #0b0b10;
  --surface: #111118;
  --line: rgba(255, 255, 255, .1);
  --text: #f2f1ef;          /* mesmo off-white do logotipo */
  --text-2: #b4b4be;        /* texto secundário / peso leve dos títulos */
  --muted: #8e8e98;
  --purple: #7b3fb8;
  --violet: #5a4fcf;
  --blue: #1e78e6;
  --blue-deep: #1764c8;     /* azul do botão (contraste AA com texto branco) */
  --cyan: #5fc4ff;
  --lilac: #ab9dff;         /* destaque sólido (substitui texto em degradê) */
  --amber: #ffb04a;         /* rastros de luz da estrada */
  --brand: linear-gradient(100deg, var(--purple), var(--blue-deep));
  --font: "Gotham", "Montserrat", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2e2b45 #000;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: var(--nav-h); }
main { overflow-x: clip; }   /* corta as faixas largas sem criar rolagem lateral (e sem quebrar o sticky) */
.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;
}

/* Par pesado + leve, como em PRISMA / FILMS no logotipo */
.light { font-weight: 300; color: var(--text-2); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 48px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 500;
  border: 0; background: transparent; cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: transform .45s var(--ease), color .25s;
}
/* feedback de clique: o botão "afunda" de leve, rápido */
.btn:active { transform: scale(.97); transition-duration: .1s; }
/* Botão principal: degradê do logo (roxo → azul → âmbar da estrada),
   brilho interno e um fio branco por dentro da borda */
.btn--primary {
  background: linear-gradient(123deg, #1a0b2e 6%, var(--purple) 38%, var(--blue-deep) 74%, #a8520c 100%);
  background-size: 140% 100%;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
  outline: 1.5px solid rgba(255, 255, 255, .75);
  outline-offset: -4px;
  overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), background-position .6s var(--ease), outline-color .3s;
}
.btn--primary:hover { transform: translateY(-2px); background-position: 100% 0; outline-color: #fff; }
.btn--primary:active { transform: scale(.97); }
/* luz atravessando o prisma: um feixe passa pelo botão uma vez a cada hover */
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .26) 47%, rgba(255, 214, 160, .2) 53%, transparent 68%);
  transform: translateX(-110%);
}
.btn--primary:hover::after { transform: translateX(110%); transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.btn--primary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn--ghost { color: var(--cyan); padding-inline: 8px; }
.btn--ghost .tri { transition: transform .4s var(--ease); }
.btn--ghost:hover .tri { transform: translateX(4px); }
.btn--ghost:hover { color: #fff; }
.btn--outline {
  color: var(--text); border: 1.5px solid rgba(242, 241, 239, .55);
  padding: 12px 24px; min-height: 46px;
  transition: background-color .3s, border-color .3s;
}
.btn--outline:hover { background: rgba(242, 241, 239, .08); border-color: var(--text); }
.btn--outline .tri { transition: transform .4s var(--ease); }
.btn--outline:hover .tri { transform: translateX(3px); }

/* Mini prisma no lugar de setas e marcadores */
.tri {
  display: inline-block; flex: none;
  width: .5em; height: .58em;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- Entrada ao rolar ----------
   Só esconde quando o JS está ativo; sem JS tudo fica visível. */
.js .reveal {
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }
/* títulos: a parte pesada entra primeiro e a leve logo depois, como PRISMA → FILMS */
.js .reveal .light {
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0s) + .16s);
}
.js .reveal:not(.is-in) .light { opacity: 0; transform: translateY(14px); }

/* entradas em sequência ([data-stagger], controlado em main.js) */
.js [data-stagger] > * {
  transition: opacity .8s var(--ease), transform .8s var(--ease), clip-path 1s var(--ease);
}
.js [data-stagger]:not(.is-in) > * { opacity: 0; transform: translateY(24px); }

/* portfólio: cada vídeo se revela como cortina de cinema subindo,
   e a imagem chega um pouco ampliada e assenta */
.js .showcase[data-stagger]:not(.is-in) > .show { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round 16px); }
.js .showcase[data-stagger] > .show { clip-path: inset(0 0 0 0 round 16px); }
.js .showcase[data-stagger]:not(.is-in) .video__thumb { transform: scale(1.12); }
.js .showcase[data-stagger] .video__thumb { transition: transform 1.4s var(--ease); transition-delay: calc(var(--si, 0) * 90ms); }

/* serviços: o número de cada frente acende na cor da marca e assenta */
.disciplines.is-in .discipline__num { animation: acender 1.6s var(--ease) calc(var(--si, 0) * 110ms + .25s) both; }
@keyframes acender {
  0% { color: #2c2a38; }
  45% { color: var(--lilac); }
  100% { color: var(--text-2); }
}

/* campanha: o mini prisma de cada item surge crescendo */
.js ul[data-stagger] li strong::before { transition: transform .55s var(--ease); transition-delay: calc(var(--si, 0) * 80ms + .25s); }
.js ul[data-stagger]:not(.is-in) li strong::before { transform: scale(0); }

/* sublinhado que se desenha da esquerda para a direita */
.contact__info a, .footer__links a {
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 0 1px no-repeat;
  transition: background-size .35s var(--ease), color .25s;
}
.contact__info a:hover, .footer__links a:hover { background-size: 100% 1px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  height: var(--nav-h); padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { transition: opacity .5s var(--ease); }
.nav__logo img { height: 30px; width: auto; }
/* durante a entrada o logo grande está no centro: não repetir no menu */
.nav--intro .nav__logo { opacity: 0; pointer-events: none; }
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 14px; letter-spacing: .03em; }
.nav__links a { color: #c9c9d1; transition: color .3s; position: relative; }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: #fff; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after,
.nav__links a[aria-current="true"]:not(.nav__cta)::after { transform: scaleX(1); }
.nav__links .nav__cta { transition: background-color .25s, color .25s, opacity .3s var(--ease), transform .35s var(--ease); }
.nav__links .nav__cta {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24); color: #fff;
}
.nav__links .nav__cta:hover { background: #fff; color: #000; }
.nav__toggle { display: none; }

/* ---------- HERO / ENTRADA ----------
   A cidade do logo começa preenchendo a tela e, com a rolagem,
   encolhe até virar o triângulo do logo (animação em main.js). */
.hero { position: relative; }
.js .hero:not(.hero--static) { height: 180vh; }
.hero__stage {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 16px) var(--gutter) 32px;
  overflow: hidden;
  isolation: isolate;
  /* tamanho final do triângulo; o texto do logo é proporcional a ele */
  --mark-w: min(calc(min(27svh, 260px) * 1.2326), 48vw);   /* PRISMA ocupa ~1,86x essa largura */
}
.js .hero:not(.hero--static) .hero__stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.hero__glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(36% 32% at 38% 40%, rgba(123, 63, 184, .34), transparent 70%),
    radial-gradient(36% 32% at 62% 40%, rgba(30, 120, 230, .28), transparent 70%);
  z-index: -2;
}

.hero__markwrap { position: relative; z-index: 1; }
.hero__mark {
  position: relative;
  width: var(--mark-w);
  aspect-ratio: 1060 / 860;            /* recorte do triângulo dentro do logo-vertical.webp */
  overflow: hidden;
  will-change: transform;
}
.hero__mark img {
  position: absolute; top: 0;
  left: -44.34%;                        /* 470 / 1060 */
  width: 188.68%; max-width: none;      /* 2000 / 1060 */
  height: auto;
}
.hero__vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 35%, rgba(0, 0, 0, .65) 100%);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);   /* foco de câmera: nítido ao se afastar */
  opacity: 0;
}

/* evita piscar o texto antes de o JS posicionar a entrada */
.js .hero:not(.hero--static) .hero__title,
.js .hero:not(.hero--static) .hero__more { opacity: 0; }
/* A estrada acende: quando o logo se forma, feixes de farol correm pelas faixas
   da pista até a cidade (uma vez) e o contorno neon "liga" de leve.
   Só SVG + CSS (stroke-dashoffset), sem brilho difuso. */
.hero__lights { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hero__neon {
  fill: none; stroke: #f3eeff; stroke-width: 1.5px; vector-effect: non-scaling-stroke;
  stroke-linejoin: round; opacity: 0;
}
.beam {
  fill: none; stroke: #fffaf0; stroke-linecap: round; stroke-linejoin: round;
  stroke-width: 6;                                    /* em unidades do desenho: acompanha o zoom */
  stroke-dasharray: 18 100; stroke-dashoffset: 18;   /* traço escondido antes do início */
  opacity: 0;
}
.beam--halo { stroke: #ff9f45; stroke-width: 18; }
.hero.is-lit .hero__neon { animation: neon-liga 1.1s linear both; }
.hero.is-beams .beam { animation: farol 1.6s cubic-bezier(.22, .8, .25, 1) calc(var(--b) * 1s) both; }
.hero.is-beams .beam--halo { animation-name: farol-halo; }
/* acende, pisca uma vez como letreiro e assenta na própria arte */
@keyframes neon-liga {
  0% { opacity: 0; } 10% { opacity: .9; } 18% { opacity: .2; } 30% { opacity: .75; } 55% { opacity: .5; } 100% { opacity: 0; }
}
/* perto da câmera o feixe é largo e longo; ao se afastar fica fino e curto */
@keyframes farol {
  0%   { stroke-dashoffset: 18; stroke-dasharray: 18 100; stroke-width: 9; opacity: 0; }
  12%  { opacity: 1; }
  80%  { opacity: .9; }
  100% { stroke-dashoffset: -100; stroke-dasharray: 5 100; stroke-width: 2; opacity: 0; }
}
@keyframes farol-halo {
  0%   { stroke-dashoffset: 18; stroke-dasharray: 18 100; stroke-width: 26; opacity: 0; }
  12%  { opacity: .35; }
  100% { stroke-dashoffset: -100; stroke-dasharray: 5 100; stroke-width: 6; opacity: 0; }
}
.hero--static .hero__lights { display: none; }

/* Triângulos que caem: quando o logo se forma, prismas descem girando de leve,
   se acomodam nas bordas e flutuam devagar (pausa fora da tela). */
.hero__shapes {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.shape {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  opacity: 0;
  transform: translateY(-150px) rotate(calc(var(--r) - 15deg));
}
.shape > * { display: block; width: 100%; height: auto; overflow: visible; animation: flutuar 12s ease-in-out infinite paused; }
.hero.is-lit .shape { animation: cair 2.4s cubic-bezier(.23, .86, .39, .96) var(--d) both; }
.hero.is-lit.is-onscreen .shape > * { animation-play-state: running; }
@keyframes cair {
  0%  { opacity: 0; transform: translateY(-150px) rotate(calc(var(--r) - 15deg)); }
  50% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotate(var(--r)); }
}
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(15px); } }
@media (max-width: 720px) { .shape--opcional { display: none; } }
.hero--static .shape { opacity: 1; transform: rotate(var(--r)); }

/* primeira tela: frase + convite para rolar, sobre a cidade */
.hero__intro {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 0 var(--gutter) max(34px, 6svh);
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35) 55%, transparent);
  padding-top: 18svh;
}
.hero__tagline {
  margin: 0; max-width: 18ch;
  font-size: clamp(32px, 5vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -.025em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
  text-wrap: balance;
}
.hero__tagline .light { color: #e2e2ea; }
.hero__hint {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 6px;
  font-size: 14px; font-weight: 500; letter-spacing: .06em; color: #e2e2ea;
}
.tri--down { width: .7em; height: .62em; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.hero--static .hero__intro, .hero--static .hero__vignette { display: none; }

.hero__content { position: relative; z-index: 3; text-align: center; max-width: 900px; margin-top: calc(var(--mark-w) * .12); }
.hero__title { margin: 0; line-height: .9; }
.hero__brand {
  display: block;
  font-weight: 900;
  font-size: calc(var(--mark-w) * .47);
  letter-spacing: -.02em;
}
.hero__sub {
  display: block; margin-top: .45em;
  font-weight: 300;
  font-size: calc(var(--mark-w) * .1);
  letter-spacing: .62em; margin-right: -.62em;   /* compensa o espaço da última letra */
}
.hero__lead {
  margin: clamp(18px, 3.4svh, 34px) auto 0; max-width: 34ch;
  font-size: clamp(17px, 2vw, 22px); color: #d2d2da;
}
.hero__actions { margin-top: clamp(18px, 3.4svh, 32px); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
/* ---------- REEL ---------- */
.reel { height: 130vh; position: relative; }
.reel__sticky {
  position: sticky; top: 0; height: 100vh;
  display: grid; place-items: center;
  overflow: hidden;
}
.reel__frame {
  --p: 0;                                     /* progresso 0→1 definido no JS */
  width: calc(64vw + 36vw * var(--p));
  max-width: 100vw;
  aspect-ratio: 16 / 9;
  max-height: calc(70vh + 30vh * var(--p));
  border-radius: calc(24px * (1 - var(--p)));
  overflow: hidden;
}

/* ---------- VÍDEO (capa do YouTube) ---------- */
.video { position: relative; width: 100%; height: 100%; background: #000; cursor: pointer; overflow: hidden; }
.video__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, 0) 55%);
  transition: opacity .5s;
}
.video:hover .video__thumb { transform: scale(1.04); }
.video__play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: grid; place-items: center;
  transition: transform .5s var(--ease), background .3s;
}
.video__play svg { width: 34px; fill: #fff; margin-left: 4px; }
.video:hover .video__play { transform: scale(1.1); background: rgba(255, 255, 255, .28); }
.video__play:focus-visible { outline-offset: 4px; border-radius: 50%; }
.video__caption { position: absolute; left: clamp(18px, 4vw, 48px); right: clamp(18px, 4vw, 48px); bottom: clamp(18px, 4vw, 44px); z-index: 2; }
.video__caption h2 { margin: 0; font-weight: 700; font-size: clamp(20px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.01em; }
.video.is-playing::after, .video.is-playing .video__play, .video.is-playing .video__caption { opacity: 0; pointer-events: none; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; animation: surgir .5s var(--ease) both; }
.video.is-playing .video__thumb { transform: scale(1.03); filter: brightness(.5); transition: transform .6s var(--ease), filter .4s; }
.video__play:active { transform: scale(.92); transition-duration: .1s; }
@keyframes surgir { from { opacity: 0; } }

/* "acender": números e marcadores ganham a cor da marca quando a pessoa passa por eles */
.discipline__num, .process__num { transition: color .35s var(--ease); }
.discipline:hover .discipline__num,
.process__list li:hover .process__num { color: var(--lilac); }

/* ---------- STATEMENT ---------- */
.statement { padding: clamp(100px, 18vh, 200px) var(--gutter); }
.statement__text {
  max-width: 1000px; margin: 0 auto;
  font-size: clamp(28px, 4.6vw, 60px);
  font-weight: 700; line-height: 1.18; letter-spacing: -.015em;
}
.statement__text .w { color: #6e6e78; transition: color .4s; }
.statement__text .w.on { color: var(--text); }
.statement__text .w.on.hl { color: var(--lilac); }

/* ---------- SEÇÕES ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(90px, 14vh, 160px) var(--gutter); }
.section__head { margin-bottom: clamp(48px, 8vh, 88px); }
.section__title {
  margin: 0 0 clamp(40px, 7vh, 72px); font-weight: 700;
  font-size: clamp(36px, 6vw, 76px); line-height: 1.04; letter-spacing: -.025em;
}
.section__title .light { display: block; }
.section__head .section__title { margin-bottom: 0; }
.section__lead {
  max-width: 52ch; margin: 24px 0 0;
  font-size: clamp(17px, 1.9vw, 21px); color: var(--text-2);
}

/* ---------- FRAMES (faixas que correm com a rolagem) ---------- */
.frames {
  display: grid; gap: 12px;
  padding: 0 0 clamp(40px, 8vh, 80px);
  overflow: hidden;
}
.frames__row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.frames__tile {
  width: clamp(240px, 29vw, 420px); aspect-ratio: 14 / 9; height: auto;
  border-radius: 16px; object-fit: cover; flex: none;
  background: var(--surface);
}

/* ---------- TRABALHOS ---------- */
.work__cat { font-size: 14px; font-weight: 500; color: var(--cyan); }
.work__title { margin: 6px 0 0; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }

/* Mosaico compacto: o 1Âº trabalho grande Ã  esquerda, os seguintes Ã  direita.
   Tudo preenche a mesma altura, sem espaÃ§os vazios. */
.showcase {
  display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: auto;
  gap: 14px;
}
.show {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2);
  aspect-ratio: 16 / 9;
  transition: border-color .4s var(--ease);
}
.show:hover { border-color: rgba(242, 241, 239, .4); }
.show--main { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.show .video, .show__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.show__info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none;
  padding: clamp(14px, 2vw, 26px) clamp(16px, 2vw, 28px);
  transition: opacity .4s var(--ease);
}
.show:not(.show--main) .video__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.show:not(.show--main) .video__play svg { width: 22px; }
.show__title { margin: 4px 0 0; font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.show--main .show__title { font-size: clamp(20px, 2.2vw, 30px); max-width: 24ch; }
.show:has(.is-playing) .show__info { opacity: 0; }
/* sombra mais forte embaixo: título legível mesmo sobre capas claras */
.show .video::after { background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .6) 32%, rgba(0, 0, 0, 0) 68%); }
.show__info { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
/* 4 ou mais trabalhos: a partir do 4Âº, linhas de 3 abaixo */
.show:nth-child(n+4) { grid-column: auto; }
.showcase:has(.show:nth-child(4)) { grid-template-columns: repeat(3, 1fr); }
.showcase:has(.show:nth-child(4)) .show--main { grid-column: span 2; }
/* Instagram: faixa de reels que se rola para o lado */
.ig { margin-top: clamp(56px, 9vh, 100px); }
.ig__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vh, 32px);
}
.ig__title { margin: 0; font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.ig__title .light { display: block; }
.ig__nav { display: flex; gap: 10px; }
.ig__btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(242, 241, 239, .4); background: transparent; color: var(--text);
  cursor: pointer; transition: background-color .3s, border-color .3s, opacity .3s;
}
.ig__btn:hover { background: rgba(242, 241, 239, .08); border-color: var(--text); }
.ig__btn:active:not(:disabled) { transform: scale(.92); transition: transform .1s; }
.ig__btn:disabled { opacity: .3; cursor: default; background: transparent; }
.ig__btn .tri { width: .7em; height: .8em; }
.tri--left { clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.ig__track {
  display: flex; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 14px;
  scrollbar-color: #2e2b45 transparent;
}
.ig__card { flex: none; width: clamp(290px, 26vw, 340px); scroll-snap-align: start; }
.ig__track { align-items: flex-start; }
.ig__card .work__cat { display: block; }
.ig__card-title {
  margin: 4px 0 14px; font-size: 18px; font-weight: 700; line-height: 1.3;
  min-height: 2.6em;   /* títulos de 1 ou 2 linhas: os posts começam na mesma altura */
}
.ig__more { margin-top: 18px; }
/* moldura escura em volta do post (o embed do Instagram é sempre branco por dentro) */
.work__embed { border-radius: 18px; overflow: hidden; background: #1b1a24; padding: 8px 8px 0; }
/* corta a faixa de baixo do post (link, ícones, curtidas e comentário): o
   Instagram não deixa esconder só as curtidas, então o vídeo termina rente à moldura */
.work__embed iframe.instagram-media { margin-bottom: -146px !important; }
.work__embed .instagram-media { border-radius: 10px !important; overflow: hidden; }
.work__embed blockquote.instagram-media:not(.instagram-media-rendered) {
  display: grid; place-items: center; aspect-ratio: 9 / 16; background: #121119 !important; color: var(--text-2);
}
/* CTA depois do portfólio */
.works__cta {
  margin-top: clamp(48px, 8vh, 80px);
  padding-top: clamp(32px, 5vh, 48px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
}
.works__cta p { margin: 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.work__embed .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.works__fallback { color: var(--text-2); }
.works__fallback a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- SERVIÇOS (4 frentes) ---------- */
.disciplines { border-top: 1px solid var(--line); }
.discipline {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 5vw, 72px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}
.discipline__head { display: flex; align-items: flex-start; gap: clamp(14px, 2vw, 24px); }
.discipline__num {
  font-weight: 300; color: var(--text-2);
  font-size: clamp(44px, 6vw, 88px); line-height: .82; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.discipline__title {
  margin: 0; font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.02em;
}
.discipline__title .light { display: block; }
.discipline__items {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px;
  align-content: start;
}
.discipline__items strong { display: block; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.discipline__items span { display: block; color: var(--muted); font-size: 16px; line-height: 1.5; }
/* 04: uma linha que leva à seção de campanhas políticas (sem repetir o conteúdo dela) */
.discipline--link { align-items: center; transition: background-color .4s; }
.discipline--link:hover { background: rgba(255, 255, 255, .03); }
.discipline__go {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(17px, 1.7vw, 20px); color: var(--cyan);
}
.discipline__go .tri { transition: transform .4s var(--ease); }
.discipline--link:hover .discipline__go .tri { transform: translateX(5px); }

/* ---------- CAMPANHAS POLÍTICAS ---------- */
.politics {
  padding: clamp(90px, 14vh, 160px) var(--gutter);
  background: linear-gradient(180deg, #000, #08070f 25%, #08070f 75%, #000);
}
.politics__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px); align-items: start;
}
.politics__head { position: sticky; top: calc(var(--nav-h) + 40px); }
.politics__head .section__title { font-size: clamp(36px, 5vw, 64px); margin-bottom: 0; }
.politics__head .section__lead { margin: 22px 0 34px; }
.politics__groups { display: grid; gap: 48px; }
.politics__group h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--cyan); letter-spacing: .02em; }
.politics__group ul { list-style: none; margin: 0; padding: 0; }
.politics__group li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.politics__group strong { display: block; font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.politics__group strong::before {
  content: ""; display: inline-block; width: 9px; height: 8px; margin-right: 12px; vertical-align: 2px;
  background: var(--brand); clip-path: polygon(50% 0, 100% 100%, 0 100%);   /* mini prisma */
}
.politics__group span { display: block; padding-left: 21px; font-size: 16px; color: var(--muted); line-height: 1.5; transition: color .3s; }
.politics__group strong::before { transition: transform .35s var(--ease); }
.politics__group li:hover strong::before { transform: scale(1.4); }
.politics__group li:hover span { color: var(--text-2); }

/* ---------- PROCESSO ---------- */
.process__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.process .section__title { margin-bottom: clamp(32px, 5vh, 52px); }
.process { padding-block: clamp(70px, 11vh, 120px); }
.process__list li { padding: 28px 26px 0 0; position: relative; }
.process__list li::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 70%;
  background: var(--brand);
  transition: width 1.4s var(--ease); transition-delay: calc(var(--d, 0s) + .3s);
}
.js .process__list li:not(.is-in)::before { width: 0; }
.process__num { display: block; font-size: clamp(36px, 3.6vw, 52px); font-weight: 300; line-height: 1; letter-spacing: -.02em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.process__list h3 { margin: 12px 0 8px; font-size: 22px; font-weight: 700; }
.process__list p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- CONTATO ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center;
  padding: clamp(110px, 20vh, 200px) var(--gutter);
}
.contact__prism { width: 120px; margin: 0 auto 38px; }
.contact__title { margin: 0; font-weight: 900; font-size: clamp(40px, 7vw, 92px); line-height: 1.02; letter-spacing: -.03em; }
.contact__title .light { display: block; }
.contact__lead { color: #c9c9d1; font-size: clamp(18px, 2vw, 22px); margin: 26px auto 0; max-width: 44ch; }
.contact__actions { margin-top: 38px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.contact__info {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px;
  font-size: 16px; color: var(--text-2);
}
.contact__info li { display: inline-flex; align-items: center; gap: 10px; }
.contact__info li::before {
  content: ""; width: 8px; height: 7px; flex: none;
  background: var(--brand); clip-path: polygon(50% 0, 100% 100%, 0 100%);   /* mini prisma */
}
.contact__info a { padding: 6px 0; }
.contact__info a:hover { color: #fff; }

/* ---------- BOTÃO FIXO (celular) ---------- */
.fab { display: none; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  max-width: var(--maxw); margin: 0 auto;
  padding: 40px var(--gutter) 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}
.footer__logo { height: 26px; width: auto; }
.footer p { margin: 0; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { padding: 8px 0; }
.footer__links a:hover { color: #fff; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .process__list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .discipline { grid-template-columns: 1fr; }
  .politics__inner { grid-template-columns: 1fr; }
  .politics__head { position: static; }
}
@media (max-width: 960px) and (min-width: 721px) {
  .nav__links { gap: 22px; }
}
@media (max-width: 720px) {
  .nav__toggle {
    display: grid; gap: 6px; width: 44px; height: 44px; place-content: center;
    background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { width: 20px; height: 1.5px; background: #fff; transition: transform .4s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px var(--gutter) 30px;
    background: #000;
    border-bottom: 1px solid var(--line);
    font-size: 22px; font-weight: 500;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.nav__cta)::after { display: none; }
  /* itens do menu entram em sequência curta (total < 0,2s) */
  .nav__links a { opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .35s var(--ease), color .3s; }
  .nav.is-open .nav__links a { opacity: 1; transform: none; }
  .nav.is-open .nav__links a:nth-child(2) { transition-delay: .04s; }
  .nav.is-open .nav__links a:nth-child(3) { transition-delay: .08s; }
  .nav.is-open .nav__links a:nth-child(4) { transition-delay: .12s; }
  .nav__links a[aria-current="true"]:not(.nav__cta)::after { display: none; }
  .nav__links .nav__cta { border: 0; padding: 14px 0; border-radius: 0; }
  .nav.is-open { background: #000; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .process__list { grid-template-columns: 1fr; }
  .discipline__items { grid-template-columns: 1fr; gap: 22px; }
  .showcase, .showcase:has(.show:nth-child(4)) { grid-template-columns: 1fr; }
  /* card baixo: o play vai para o canto para não cobrir o título */
  .show .video__play, .show:not(.show--main) .video__play { top: 12px; left: auto; right: 12px; width: 44px; height: 44px; margin: 0; }
  .show .video__play svg, .show:not(.show--main) .video__play svg { width: 18px; }
  .show__title, .show--main .show__title { font-size: 16px; }
  .show--main, .showcase:has(.show:nth-child(4)) .show--main { grid-row: auto; grid-column: auto; aspect-ratio: 16 / 9; }
  .video__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .video__play svg { width: 26px; }
  .video__caption h2 { font-size: 17px; }
  .video__caption h2 br { display: none; }
  .footer { flex-direction: column; text-align: center; padding-bottom: 110px; }

  /* pílula compacta e centrada: cobre menos texto que uma barra de largura total */
  .fab {
    display: flex; align-items: center; justify-content: center;
    position: fixed; z-index: 40;
    left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
    min-height: 50px; padding: 0 26px; border-radius: 999px; white-space: nowrap;
    background: var(--brand); color: #fff; font-size: 16px; font-weight: 500;
    outline: 1.5px solid rgba(255, 255, 255, .75); outline-offset: -4px;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .9);
    transform: translate(-50%, 140%); opacity: 0;
    transition: transform .5s var(--ease), opacity .5s var(--ease);
  }
  .fab.is-visible { transform: translate(-50%, 0); opacity: 1; }
  .works__cta { flex-direction: column; text-align: center; }
}

/* Celular e tablet em pé: vídeo de destaque fixo, sem o efeito de expandir
   (a mesma condição é usada em main.js — REEL_ESTATICO) */
@media (max-width: 720px), (orientation: portrait) and (max-width: 1100px) {
  .reel { height: auto; }
  .reel__sticky { position: static; height: auto; padding: 0 var(--gutter); }
  .reel__frame { width: 100%; max-height: none; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .js .reveal:not(.is-in), .js .reveal:not(.is-in) .light { opacity: 1; transform: none; }
  .js [data-stagger]:not(.is-in) > *, .js .showcase[data-stagger]:not(.is-in) > .show { opacity: 1; transform: none; clip-path: none; }
  .js [data-stagger]:not(.is-in) .video__thumb, .js ul[data-stagger]:not(.is-in) li strong::before { transform: none; }
  .btn--primary::after { display: none; }
  .js .process__list li:not(.is-in)::before { width: 70%; }
}
