/* Portfólio — estilo Apple: papel claro, tipografia grande e justa, vídeo em moldura arredondada */
:root {
  --papel: #fbfbfd;
  --nevoa: #f5f5f7;
  --cinza-tag: #e8e8ed;
  --tinta: #1d1d1f;
  --grafite: #6e6e73;
  --azul: #0071e3;
  --azul-link: #0066cc;
  --fonte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fonte-titulo: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.28, .11, .32, 1);
  --ease-folha: cubic-bezier(.32, .72, 0, 1);
  --largura: min(1180px, calc(100% - 48px));
  --nav: 52px;
}

/* página inicial (/) mostra abertura com mosaico e pastas; as rotas (/edit, /work...) mostram abertura e grade */
html[data-modo="inicio"] .abertura, html[data-modo="inicio"] .trabalhos { display: none; }
html[data-modo="rota"] .inicio, html[data-modo="rota"] .pastas, html[data-modo="rota"] .ver-todos { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--papel);
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}
html.com-folha { overflow: hidden; }
body {
  margin: 0;
  color: var(--tinta);
  font: 17px/1.47 var(--fonte);
  letter-spacing: -0.022em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }
h1, h2, h3, p, ul, figure { margin: 0; }

.pular {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.pular:focus { top: 12px; }

/* ---------------------------------------------------------------- navegação */
.nav {
  position: sticky; top: 0; z-index: 50; height: 52px;
  background: rgba(251, 251, 253, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .07);
}
.nav-dentro { width: var(--largura); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.marca { margin-right: auto; font: 600 19px/1 var(--fonte-titulo); letter-spacing: -0.015em; text-decoration: none; }
.registrado { margin-left: .06em; font-size: .5em; font-weight: 500; line-height: 0; letter-spacing: 0; vertical-align: .78em; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 13px; letter-spacing: -0.01em; color: rgba(0, 0, 0, .8); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #000; }
.idioma { display: flex; padding: 2px; border-radius: 980px; background: rgba(0, 0, 0, .06); }
.idioma button {
  border: 0; background: none; cursor: pointer; padding: 5px 10px; border-radius: 980px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--grafite);
  transition: background .2s, color .2s;
}
.idioma button[aria-pressed="true"] { background: #fff; color: var(--tinta); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }

/* ---------------------------------------------------------------- abertura */
.abertura { padding: 104px 0 0; text-align: center; }
.abertura-titulo {
  width: var(--largura); max-width: 1000px; margin: 0 auto;
  font: 600 clamp(44px, 7.4vw, 92px)/1.03 var(--fonte-titulo);
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.abertura-sub {
  width: var(--largura); max-width: 660px; margin: 22px auto 0;
  font-size: clamp(19px, 2vw, 24px); line-height: 1.36; letter-spacing: -0.012em;
  color: var(--grafite); text-wrap: pretty;
}
.abertura-acoes { margin-top: 34px; display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }
.botao {
  display: inline-block; padding: 12px 23px; border-radius: 980px;
  background: var(--azul); color: #fff; text-decoration: none;
  font-size: 17px; line-height: 1.18; letter-spacing: -0.022em;
  transition: background .2s;
}
.botao:hover { background: #0077ed; }
.link { color: var(--azul-link); text-decoration: none; font-size: 17px; }
.link:hover { text-decoration: underline; }

.abertura-midia { position: relative; margin: 72px auto 0; width: min(1260px, calc(100% - 48px)); }
.abertura-midia.vazio { display: none; }
.abertura-midia.reel {
  aspect-ratio: 16 / 9; border-radius: 30px; overflow: hidden; background: #000; isolation: isolate;
  transform: scale(var(--k, 1)); transform-origin: 50% 0; will-change: transform;
}
.abertura-midia.reel video { width: 100%; height: 100%; object-fit: cover; }
.trio-telas { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 2.6vw, 36px); }
.trio-telas .tela {
  position: relative; width: clamp(96px, 23vw, 292px); aspect-ratio: 9 / 16;
  border-radius: clamp(14px, 2.2vw, 30px); overflow: hidden; background: #000; isolation: isolate;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35);
}
.trio-telas .tela:nth-child(2) { width: clamp(112px, 27vw, 340px); }
.trio-telas video { width: 100%; height: 100%; object-fit: cover; }
.celulares-linha { display: flex; justify-content: center; align-items: center; gap: clamp(18px, 5vw, 72px); }
.celulares-linha .celular { width: clamp(140px, 27vw, 330px); }

.pausa {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(232, 232, 237, .72); color: var(--tinta);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  transition: background .2s, transform .2s var(--ease);
}
.pausa:hover { background: rgba(255, 255, 255, .9); transform: scale(1.06); }
.pausa svg { width: 14px; height: 14px; fill: currentColor; }
.abertura-midia.trio .pausa, .abertura-midia.celulares .pausa { position: relative; right: auto; bottom: auto; margin: 28px auto 0; }

/* ---------------------------------------------------------------- celular (moldura) */
/* borda fina, proporcional ao próprio celular: o miolo fica a 2,2% da largura em toda a volta (em % de altura no
   topo e embaixo, pela proporção 390:844). Padding em % pegaria a largura do card e engrossava a borda. */
.celular {
  position: relative; aspect-ratio: 390 / 844;
  border-radius: 12.5% / 5.8%;
  background: #1d1d1f;
  box-shadow: inset 0 0 0 1px #3a3a3c, 0 34px 70px -24px rgba(0, 0, 0, .45);
}
.celular-tela {
  position: absolute; inset: calc(2.2% * 390 / 844) 2.2%;
  border-radius: 10.6% / 4.9%; overflow: hidden; background: #000; isolation: isolate;
}
.celular-tela img, .celular-tela video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- início: texto no meio, prévias girando em volta */
.inicio {
  position: relative; overflow-x: clip; overflow-y: visible; /* sem corte embaixo: só os lados cortam */
  margin-top: calc(-1 * var(--nav)); /* as prévias passam por baixo da barra de vidro */
  height: max(620px, 100svh); padding-top: var(--nav);
  display: grid; place-items: center;
}
/* as prévias ficam por cima do texto: paradas não o cobrem; na rolagem (parallax) passam por cima dele */
.mosaico { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .7s var(--ease); }
.mosaico.pronto { opacity: 1; }
.ladrilho {
  position: absolute; left: 0; top: 0; overflow: hidden; isolation: isolate;
  background: var(--cinza-tag); cursor: pointer; will-change: transform; pointer-events: auto;
  z-index: var(--z, 1); /* ordem sorteada: onde duas se encavalam, qualquer uma pode ficar por cima */
  box-shadow: 0 24px 46px -28px rgba(0, 0, 0, .4);
  transition: box-shadow .4s var(--ease);
}
.ladrilho.em-cima { z-index: 20; box-shadow: 0 36px 70px -30px rgba(0, 0, 0, .5); }
.ladrilho[hidden] { display: none; }
.ladrilho-dentro { position: absolute; inset: 0; }
.ladrilho video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inicio-texto { position: relative; z-index: 2; width: min(660px, calc(100% - 48px)); text-align: center; }
.inicio-titulo {
  font: 600 clamp(44px, 6vw, 80px)/1.04 var(--fonte-titulo);
  letter-spacing: -0.035em; text-wrap: balance;
}
/* cada letra solta: entra animada e, com o mouse perto, o app.js mexe nela (translate e rotate, que somam ao transform
   da entrada). As palavras não quebram no meio. */
.inicio-titulo .palavra { display: inline-block; white-space: nowrap; }
.inicio-titulo .letra { display: inline-block; }
.inicio-titulo.entra .letra { animation: letra-sobe .95s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(80ms + var(--k) * 32ms); }
/* a última palavra ("movem") chega depois, deslizando da direita com um balanço; no fim uma onda passa por ela */
.inicio-titulo.entra .viva .letra {
  animation: letra-chega 1.2s cubic-bezier(.22, .9, .25, 1) backwards, letra-onda .9s ease-in-out;
  animation-delay: calc(560ms + var(--j) * 75ms), calc(1900ms + var(--j) * 80ms);
}
.inicio-titulo.entra .viva .ponto { animation: letra-ponto .5s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: 1.3s; }
@keyframes letra-sobe { from { opacity: 0; transform: translateY(.38em); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes letra-chega {
  0% { opacity: 0; transform: translateX(1.1em) rotate(18deg); filter: blur(6px); }
  50% { opacity: 1; transform: translateX(-.06em) rotate(-5deg); filter: blur(0); }
  72% { transform: translateX(.02em) rotate(1.5deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes letra-onda { 0%, 100% { transform: none; } 40% { transform: translateY(-.1em) rotate(-3deg); } 70% { transform: translateY(.02em); } }
@keyframes letra-ponto { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.inicio-sub {
  max-width: 500px; margin: 20px auto 0;
  font-size: clamp(17px, 1.55vw, 21px); line-height: 1.42; letter-spacing: -0.012em;
  color: var(--grafite); text-wrap: pretty;
}
.inicio .abertura-acoes { margin-top: 30px; }

/* ---------------------------------------------------------------- pastas que sobem uma por cima da outra */
.pastas { position: relative; } /* a altura (quanto rolar por pasta) sai do app.js */
.pastas-palco { position: sticky; top: var(--nav); height: calc(100svh - var(--nav)); }
.pasta {
  --aba-h: 46px; --aba-w: 168px; --aba-gap: 12px; --aba-r: 14px; --raio: 26px; --borda: 14px;
  --aba-x0: calc(var(--raio) + var(--aba-r) * .5); /* a primeira aba começa logo depois do canto arredondado */
  position: absolute; left: 50%; top: var(--y0, 140px); width: var(--pw, 1000px);
  transform: translate3d(-50%, 120vh, 0); transform-origin: 50% 0; will-change: transform;
  color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.pasta-corpo {
  position: relative; display: block; padding: var(--borda) var(--borda) 0;
  background: #fff; border-radius: var(--raio);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 -16px 34px -26px rgba(0, 0, 0, .3), 0 44px 80px -46px rgba(0, 0, 0, .55);
}
/* abas lado a lado a partir da esquerda, como num arquivo; entram 2 px na pasta para não sobrar fresta */
.pasta-aba {
  position: absolute; bottom: calc(100% - 2px);
  left: calc(var(--aba-x0) + var(--i, 0) * (var(--aba-w) + var(--aba-gap)));
  width: var(--aba-w); height: calc(var(--aba-h) + 2px);
  display: grid; place-items: center; padding: 2px 0;
  background: #fff; border-radius: var(--aba-r) var(--aba-r) 0 0;
  font: 600 13px/1 var(--fonte); letter-spacing: .12em; color: var(--tinta);
  box-shadow: 0 -12px 24px -18px rgba(0, 0, 0, .32);
}
/* cantos côncavos onde a aba encontra a pasta */
.pasta-aba::before, .pasta-aba::after { content: ""; position: absolute; bottom: 2px; width: var(--aba-r); height: var(--aba-r); }
.pasta-aba::before { right: 100%; background: radial-gradient(circle at 0 0, transparent calc(var(--aba-r) - .5px), #fff var(--aba-r)); }
.pasta-aba::after { left: 100%; background: radial-gradient(circle at 100% 0, transparent calc(var(--aba-r) - .5px), #fff var(--aba-r)); }
.pasta-midia {
  position: relative; display: block; height: var(--mh, 480px);
  border-radius: calc(var(--raio) - var(--borda) + 4px); overflow: hidden; isolation: isolate; background: var(--cinza-tag);
}
/* 1 px a mais em volta: com a pasta em escala, a borda do vídeo não deixa fresta */
.pasta-midia > video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); object-fit: cover; }
.pasta-texto { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 10px 22px; }
.pasta-titulo { display: block; font: 600 24px/1.2 var(--fonte-titulo); letter-spacing: -0.02em; }
.pasta-sub { display: block; margin-top: 4px; max-width: 64ch; color: var(--grafite); font-size: 16px; line-height: 1.4; }
.pasta-abrir {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--nevoa);
  transition: background .25s, color .25s, transform .35s var(--ease);
}
.pasta-abrir svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pasta:hover .pasta-abrir { background: var(--tinta); color: #fff; transform: translateX(3px); }
.pasta:focus-visible { outline: none; }
.pasta:focus-visible .pasta-corpo { outline: 3px solid var(--azul); outline-offset: 4px; }

/* ---------------------------------------------------------------- botões de vidro (Ver trabalhos, Ver todos, WhatsApp) */
/* Como o glass-button do 21st.dev: o <a class="vidro"> segura o corpo de vidro e, ao lado dele, a sombra.
   A sombra fica fora do vidro de propósito: dentro dele o desfoque não pega e aparece um segundo contorno. */
@property --vidro-a1 { syntax: "<angle>"; inherits: false; initial-value: -75deg; }
@property --vidro-a2 { syntax: "<angle>"; inherits: false; initial-value: -45deg; }
.vidro {
  --mola: cubic-bezier(.25, 1, .5, 1);
  --fio: clamp(1px, .0625em, 4px);
  --fundo-1: rgba(255, 255, 255, .05); --fundo-2: rgba(255, 255, 255, .2);
  position: relative; z-index: 2; display: inline-block; border-radius: 999px;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  font: 500 17px/1.18 var(--fonte); letter-spacing: -0.02em; color: var(--tinta);
  transform-style: preserve-3d; transition: transform .4s var(--mola);
}
.vidro[hidden] { display: none; }
.vidro:active { transform: rotateX(25deg); }
.vidro:focus-visible { outline-offset: 5px; }
.vidro-corpo {
  position: relative; isolation: isolate; display: block; border-radius: inherit;
  background: linear-gradient(-75deg, var(--fundo-1), var(--fundo-2), var(--fundo-1));
  -webkit-backdrop-filter: blur(clamp(1px, .125em, 4px)); backdrop-filter: blur(clamp(1px, .125em, 4px));
  box-shadow:
    inset 0 .125em .125em rgba(0, 0, 0, .05), inset 0 -.125em .125em rgba(255, 255, 255, .5),
    0 .25em .125em -.125em rgba(0, 0, 0, .2), inset 0 0 .1em .25em rgba(255, 255, 255, .2);
  transition: transform .4s var(--mola), box-shadow .4s var(--mola), backdrop-filter .4s var(--mola);
}
/* borda com reflexo, que gira ao passar o mouse */
.vidro-corpo::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  top: calc(var(--fio) / -2); left: calc(var(--fio) / -2);
  width: calc(100% + var(--fio)); height: calc(100% + var(--fio));
  padding: var(--fio); border-radius: 999px;
  background:
    conic-gradient(from var(--vidro-a1) at 50% 50%, rgba(0, 0, 0, .5) 0%, transparent 5% 40%, rgba(0, 0, 0, .5) 50%, transparent 60% 95%, rgba(0, 0, 0, .5) 100%),
    linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .5));
  box-shadow: inset 0 0 0 calc(var(--fio) / 2) rgba(255, 255, 255, .5);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: --vidro-a1 .5s ease;
}
.vidro-texto {
  position: relative; display: block; padding: .82em 1.5em; -webkit-user-select: none; user-select: none;
  color: rgba(29, 29, 31, .92); text-shadow: 0 .25em .05em rgba(0, 0, 0, .1);
  transition: text-shadow .4s var(--mola);
}
/* brilho que atravessa o vidro */
.vidro-texto::after {
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  top: calc(var(--fio) / 2); left: calc(var(--fio) / 2);
  width: calc(100% - var(--fio)); height: calc(100% - var(--fio));
  border-radius: 999px; overflow: clip;
  background: linear-gradient(var(--vidro-a2), transparent 0%, rgba(255, 255, 255, .5) 40% 50%, transparent 55%);
  background-size: 200% 200%; background-position: 0% 50%; mix-blend-mode: screen;
  transition: background-position .5s var(--mola), --vidro-a2 .5s var(--mola);
}
/* sombra macia embaixo: um anel borrado, como vidro em cima da mesa */
.vidro-sombra {
  --corte: 2em;
  position: absolute; pointer-events: none; border-radius: 999px;
  top: calc(var(--corte) / -2); left: calc(var(--corte) / -2);
  width: calc(100% + var(--corte)); height: calc(100% + var(--corte));
  filter: blur(clamp(2px, .125em, 12px)); transition: filter .4s var(--mola);
}
.vidro-sombra::after {
  content: ""; position: absolute; border-radius: 999px;
  top: calc(var(--corte) - .5em); left: calc(var(--corte) - .875em);
  width: calc(100% - var(--corte) - .25em); height: calc(100% - var(--corte) - .25em);
  padding: .125em; background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: top .4s var(--mola), opacity .4s var(--mola);
}
.vidro:hover .vidro-corpo {
  transform: scale(.975);
  -webkit-backdrop-filter: blur(.01em); backdrop-filter: blur(.01em);
  box-shadow:
    inset 0 .125em .125em rgba(0, 0, 0, .05), inset 0 -.125em .125em rgba(255, 255, 255, .5),
    0 .15em .05em -.1em rgba(0, 0, 0, .25), inset 0 0 .05em .1em rgba(255, 255, 255, .5);
}
.vidro:hover .vidro-corpo::after { --vidro-a1: -125deg; }
.vidro:hover .vidro-texto { text-shadow: .025em .025em .025em rgba(0, 0, 0, .12); }
.vidro:hover .vidro-texto::after { background-position: 25% 50%; }
.vidro:hover .vidro-sombra { filter: blur(clamp(2px, .0625em, 6px)); }
.vidro:hover .vidro-sombra::after { top: calc(var(--corte) - .875em); }
.vidro:active .vidro-corpo {
  box-shadow:
    inset 0 .125em .125em rgba(0, 0, 0, .05), inset 0 -.125em .125em rgba(255, 255, 255, .5),
    0 .125em .125em -.125em rgba(0, 0, 0, .2), inset 0 0 .1em .25em rgba(255, 255, 255, .2),
    0 .225em .05em rgba(0, 0, 0, .05), 0 .25em rgba(255, 255, 255, .75), inset 0 .25em .05em rgba(0, 0, 0, .15);
}
.vidro:active .vidro-corpo::after { --vidro-a1: -75deg; }
.vidro:active .vidro-texto { text-shadow: .025em .25em .05em rgba(0, 0, 0, .12); }
.vidro:active .vidro-texto::after { --vidro-a2: -15deg; background-position: 50% 15%; }
.vidro:active .vidro-sombra { filter: blur(clamp(2px, .125em, 12px)); }
.vidro:active .vidro-sombra::after { top: calc(var(--corte) - .5em); opacity: .75; }
@media (hover: none) and (pointer: coarse) {
  .vidro-corpo::after, .vidro:hover .vidro-corpo::after, .vidro:active .vidro-corpo::after { --vidro-a1: -75deg; }
  .vidro-texto::after, .vidro:active .vidro-texto::after { --vidro-a2: -45deg; }
}
/* cinza: a ação secundária (Falar comigo) */
.vidro.cinza { --fundo-1: rgba(120, 120, 128, .24); --fundo-2: rgba(120, 120, 128, .12); }
.vidro.grande { font-size: 19px; font-weight: 500; letter-spacing: -0.016em; }
.vidro.grande .vidro-texto { padding: 1.05em 2.5em; }
/* ação secundária (Falar comigo nas rotas): texto cinza clicável, sem botão */
.link-texto { font-size: 17px; letter-spacing: -0.02em; color: var(--grafite); text-decoration: none; transition: color .2s; }
.link-texto:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: .22em; }
.ver-todos { position: relative; display: flex; justify-content: center; padding: 56px 24px 0; }

/* ---------------------------------------------------------------- filtros */
.trabalhos { padding: 120px 0 0; }
.filtros-faixa {
  position: sticky; top: 64px; z-index: 30;
  display: flex; justify-content: center; padding: 0 16px; margin-bottom: 48px;
  pointer-events: none;
}
.filtros {
  position: relative; display: inline-flex; padding: 4px; border-radius: 980px; pointer-events: auto;
  background: rgba(232, 232, 237, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.filtros button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; white-space: nowrap;
  padding: 10px 19px; border-radius: 980px;
  font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -0.012em; color: var(--tinta);
}
.filtros button[aria-pressed="false"] { color: #424245; }
.filtros button[aria-pressed="false"]:hover { color: #000; }
.filtros-bolha {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0;
  border-radius: 980px; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04);
  transition: transform .45s var(--ease), width .45s var(--ease);
}

/* ---------------------------------------------------------------- grade de projetos */
.grade {
  width: var(--largura); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 28px;
  transition: opacity .28s var(--ease);
}
.grade.trocando { opacity: 0; transition-duration: .15s; }
.card.grande { grid-column: 1 / -1; }
.card.sozinho { grid-column: 1 / -1; justify-self: center; width: calc((100% - 28px) / 2); }
.outros-titulo {
  width: var(--largura); margin: 140px auto 40px; text-align: center;
  font: 600 clamp(30px, 3.6vw, 44px)/1.1 var(--fonte-titulo); letter-spacing: -0.024em;
}

.card { display: block; color: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.card:focus-visible { outline: none; }
.card:focus-visible .card-midia { outline: 3px solid var(--azul); outline-offset: 4px; }
.card-midia {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  border-radius: 24px; background: var(--nevoa);
}
.card-midia > .capa, .card-midia > .previa { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.previa { opacity: 0; transition: opacity .4s var(--ease); }
.previa.ativa { opacity: 1; }

.card-midia.verticais { display: flex; justify-content: center; align-items: center; gap: 3.2%; }
.card-midia.verticais .tela {
  position: relative; height: 84%; aspect-ratio: 9 / 16; overflow: hidden; isolation: isolate;
  border-radius: clamp(10px, 1.3vw, 18px); background: #000;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .4);
}
.card.grande .card-midia.verticais .tela { height: 82%; }
.card-midia.verticais .tela img, .card-midia.verticais .tela video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.card-midia.web { background: var(--cor); display: flex; justify-content: center; align-items: center; gap: 4%; }
.card-midia.web .celular { height: 86%; box-shadow: inset 0 0 0 1px #3a3a3c, 0 24px 48px -20px rgba(0, 0, 0, .6); }
.card-midia.web .celular:nth-child(odd) { height: 78%; }

.card-texto { padding: 20px 2px 0; }
.card-titulo { font: 600 24px/1.17 var(--fonte-titulo); letter-spacing: -0.018em; }
.card.grande .card-titulo { font-size: clamp(24px, 2.6vw, 32px); }
.card-resumo { margin-top: 6px; max-width: 58ch; color: var(--grafite); font-size: 17px; line-height: 1.42; }
.tags { margin-top: 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 6px 11px; border-radius: 980px; background: var(--cinza-tag); color: #424245;
  font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: -0.005em;
}

/* ---------------------------------------------------------------- sobre e contato */
.sobre { padding: 180px 0 0; }
.sobre-texto {
  width: var(--largura); max-width: 920px; margin: 0 auto; text-align: center;
  font: 600 clamp(26px, 3.5vw, 44px)/1.2 var(--fonte-titulo); letter-spacing: -0.022em;
  text-wrap: balance;
}
.contato { padding: 180px 0 180px; text-align: center; }
.contato-titulo { width: var(--largura); margin: 0 auto; font: 600 clamp(36px, 5.2vw, 64px)/1.06 var(--fonte-titulo); letter-spacing: -0.03em; text-wrap: balance; }
.contato-sub { width: var(--largura); margin: 16px auto 0; color: var(--grafite); font-size: clamp(19px, 2vw, 21px); line-height: 1.4; }
.contato-acoes { margin-top: 34px; display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }

.rodape { background: var(--nevoa); color: var(--grafite); font-size: 12px; letter-spacing: -0.01em; }
.rodape-dentro { width: var(--largura); margin: 0 auto; padding: 20px 0 30px; display: flex; justify-content: space-between; gap: 16px; }
.rodape a { color: var(--grafite); text-decoration: none; }
.rodape a:hover { color: var(--tinta); text-decoration: underline; }

/* ---------------------------------------------------------------- folha do projeto */
.folha { position: fixed; inset: 0; z-index: 100; }
.folha[hidden] { display: none; }
.folha-fundo { position: absolute; inset: 0; background: rgba(0, 0, 0, .48); opacity: 0; transition: opacity .45s var(--ease); }
.folha-painel {
  position: absolute; left: 50%; top: 44px; bottom: 0; width: min(1120px, 100%);
  background: #fff; border-radius: 22px 22px 0 0; overflow: hidden;
  transform: translate(-50%, 104%); transition: transform .6s var(--ease-folha);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .12);
}
.folha.aberta .folha-fundo { opacity: 1; }
.folha.aberta .folha-painel { transform: translate(-50%, 0); }
.folha-rolagem { height: 100%; overflow-y: auto; overscroll-behavior: contain; outline: none; }
.folha-fechar {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(232, 232, 237, .86); color: #424245;
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  transition: background .2s, color .2s;
}
.folha-fechar:hover { background: #d2d2d7; color: var(--tinta); }
.folha-fechar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.folha-conteudo { padding-bottom: 120px; }

.det-cabeca { width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: 84px 0 40px; text-align: center; }
.det-titulo { font: 600 clamp(36px, 5.2vw, 60px)/1.06 var(--fonte-titulo); letter-spacing: -0.03em; text-wrap: balance; }
.det-resumo { max-width: 640px; margin: 14px auto 0; color: var(--grafite); font-size: clamp(19px, 2vw, 21px); line-height: 1.38; text-wrap: pretty; }
.det-cabeca .tags { justify-content: center; margin-top: 20px; }

.palco { position: relative; width: min(1040px, calc(100% - 48px)); margin: 0 auto; border-radius: 22px; overflow: hidden; isolation: isolate; background: #000; }
.palco.horizontal { aspect-ratio: 16 / 9; }
.palco.vertical { background: var(--nevoa); padding: clamp(24px, 4vw, 48px) 0; display: flex; justify-content: center; }
.palco-video { position: relative; width: min(calc(100% - 48px), calc(min(76vh, 780px) * .5625)); aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; isolation: isolate; background: #000; }
.palco-player { width: 100%; height: 100%; object-fit: contain; background: #000; }
.play-grande {
  position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  transition: background .2s, transform .25s var(--ease);
}
.play-grande:hover { background: rgba(255, 255, 255, .32); transform: scale(1.05); }
.play-grande svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.play-grande[hidden] { display: none; }
.palco-legenda {
  width: min(1040px, calc(100% - 48px)); margin: 16px auto 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--grafite);
}
.palco-nome { color: var(--tinta); font-weight: 500; }
.palco-info { display: flex; gap: 18px; align-items: baseline; }
.palco-info a { color: var(--azul-link); text-decoration: none; }
.palco-info a:hover { text-decoration: underline; }

.mais { width: min(1040px, calc(100% - 48px)); margin: 56px auto 0; }
.mais-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 18px; }
.mini { display: block; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.mini-capa { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--nevoa); transition: box-shadow .25s; }
.mini-capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mini:hover .mini-capa img { transform: scale(1.03); }
.mini[aria-current="true"] .mini-capa { box-shadow: 0 0 0 3px var(--papel), 0 0 0 5px var(--azul); }
.mini-titulo { display: block; margin-top: 12px; font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.mini-dur { display: block; margin-top: 3px; font-size: 12px; color: var(--grafite); }

.det-sub { font: 600 24px/1.2 var(--fonte-titulo); letter-spacing: -0.018em; margin-bottom: 22px; }
.det-sub.centro { text-align: center; }
.det-corpo { width: min(680px, calc(100% - 48px)); margin: 88px auto 0; }
.det-texto p { font-size: 19px; line-height: 1.52; letter-spacing: -0.014em; text-wrap: pretty; }
.det-texto p:first-child { font-size: clamp(21px, 2.2vw, 24px); line-height: 1.42; letter-spacing: -0.018em; }
.det-texto p + p { margin-top: 1em; }
.det-corpo .det-sub { margin: 56px 0 14px; font-size: 19px; }
.det-papeis { padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.det-papeis li { break-inside: avoid; padding: 6px 0; color: #424245; }

.palco-web {
  position: relative; width: min(1040px, calc(100% - 48px)); margin: 0 auto; border-radius: 22px;
  background: var(--cor); padding: clamp(36px, 6vw, 80px) 0; display: flex; justify-content: center;
}
.palco-web .celular { height: min(74vh, 760px); }
.telas-bloco { width: min(1040px, calc(100% - 48px)); margin: 80px auto 0; }
.telas-grade { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 28px); }
.telas-grade figure { margin: 0; }
.telas-grade .celular { box-shadow: inset 0 0 0 1px #3a3a3c, 0 20px 40px -22px rgba(0, 0, 0, .45); }
.telas-grade figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--grafite); }

/* ---------------------------------------------------------------- telas pequenas */
@media (max-width: 833px) {
  :root { --largura: calc(100% - 32px); }
  .nav-links { display: none; }
  .abertura { padding-top: 64px; }
  .inicio { height: max(560px, 100svh); }
  .inicio-texto { width: min(340px, calc(100% - 40px)); }
  .inicio-titulo { font-size: clamp(38px, 10.4vw, 48px); }
  .inicio-sub { margin-top: 16px; font-size: 17px; }
  .inicio .abertura-acoes { margin-top: 24px; gap: 22px; }
  .pasta { --aba-h: 36px; --aba-w: 96px; --aba-gap: 6px; --aba-r: 11px; --raio: 20px; --borda: 10px; }
  .pasta-aba { font-size: 11px; letter-spacing: .1em; }
  .pasta-texto { gap: 14px; padding: 14px 6px 16px; }
  .pasta-titulo { font-size: 19px; }
  .pasta-sub { font-size: 14px; line-height: 1.38; }
  .pasta-abrir { width: 36px; height: 36px; }
  .ver-todos { padding-top: 44px; }
  .abertura-midia { margin-top: 52px; width: calc(100% - 32px); }
  .abertura-midia.reel { border-radius: 20px; }
  .pausa { right: 12px; bottom: 12px; width: 34px; height: 34px; }
  .trabalhos { padding-top: 88px; }
  .filtros-faixa { top: 62px; margin-bottom: 32px; }
  .filtros button { padding: 9px 13px; font-size: 14px; }
  .grade { grid-template-columns: 1fr; gap: 52px; }
  .card.sozinho { width: auto; justify-self: stretch; }
  .card-midia { border-radius: 18px; }
  .card-titulo, .card.grande .card-titulo { font-size: 22px; }
  .outros-titulo { margin-top: 112px; }
  .sobre { padding-top: 140px; }
  .contato { padding: 140px 0; }
  .folha-painel { top: 10px; border-radius: 16px 16px 0 0; }
  .folha-fechar { top: 12px; right: 12px; }
  .det-cabeca { padding: 64px 0 32px; }
  .palco, .palco-web, .palco-legenda, .mais, .telas-bloco { width: calc(100% - 32px); }
  .palco { border-radius: 16px; }
  .palco-video { width: min(calc(100% - 40px), calc(min(70vh, 640px) * .5625)); border-radius: 14px; }
  .det-corpo { width: calc(100% - 40px); margin-top: 64px; }
  .det-papeis { columns: 1; }
  .telas-grade {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin: 0 -16px; padding: 4px 16px 16px; scrollbar-width: none;
  }
  .telas-grade::-webkit-scrollbar { display: none; }
  .telas-grade figure { flex: 0 0 58%; scroll-snap-align: center; }
}
@media (max-width: 380px) {
  .filtros button { padding: 9px 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
