/* =========================================================================
   Mediateam — site institucional (v5, layout imersivo)
   Tema escuro, tipografia grande e animações guiadas pela rolagem
   (js/motion.js). Sem build. Sem o JS de animação, tudo aparece estático.
   ========================================================================= */

:root {
    --bg: #0b0a09;
    --bg-2: #141210;
    --bg-3: #1d1a17;
    --ink: #f4f1ec;
    --ink-2: rgba(244, 241, 236, 0.82);
    --muted: rgba(244, 241, 236, 0.58);
    --line: rgba(244, 241, 236, 0.12);
    --line-2: rgba(244, 241, 236, 0.22);
    --accent: #e98a2e;          /* laranja Mediateam */
    --accent-2: #f4a65a;        /* laranja claro para texto sobre escuro */
    --on-accent: #120d08;
    --white: #ffffff;
    --grey-word: #34302c;

    --display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --gutter: clamp(16px, 3.4vw, 48px);
    --max: 1320px;
    --radius: 12px;
    --radius-lg: 20px;
    --header-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; background: var(--bg); }
/* body sem fundo próprio: o fundo é a rede de dados (canvas.bg-net, fixo, z-index -1) sobre o fundo do html */
body { background: transparent; color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }

/* ---------- árabe e chinês ---------- */
/* fontes com os alfabetos (Outfit/Inter não têm); a Google só baixa os trechos usados */
html:lang(ar) { --display: "Noto Kufi Arabic", "Outfit", system-ui, sans-serif; --body: "Noto Kufi Arabic", "Inter", system-ui, sans-serif; }
html:lang(zh) { --display: "Outfit", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif; --body: "Inter", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif; }
/* espaçamento negativo entre letras quebra a ligação das letras árabes e cola os ideogramas */
html:lang(ar) *, html:lang(zh) * { letter-spacing: 0 !important; }
/* títulos grandes: linhas um pouco mais altas para os acentos árabes e os ideogramas */
html:lang(ar) :is(h1, h2, h3, .manifesto-title, .cover-title, .cta-title), html:lang(zh) :is(h1, h2, h3, .manifesto-title, .cover-title, .cta-title) { line-height: 1.25; }
/* números, e-mails e telefones continuam da esquerda para a direita no árabe */
html[dir="rtl"] :is(.years-num, .contact-lines a, input[type="email"]) { direction: ltr; unicode-bidi: isolate; }
/* faixas que deslizam e a barra de progresso continuam no sentido original */
html[dir="rtl"] :is(.marquee, .scroll-progress, .footer-word) { direction: ltr; }
img, picture, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Lenis (rolagem suave) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
/* espaçadores criados pelo ScrollTrigger nunca devem animar (as medidas precisam ser imediatas) */
.pin-spacer { transition: none !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Sem bloco de "reduzir movimento": a pedido, o site mantém transições e rolagem suave em todos os sistemas.
   Atenção se um dia voltar: nunca usar "* { transition-duration: X }" — a propriedade padrão é "all" e os
   espaçadores do ScrollTrigger passam a ter transição, o que causa um ciclo de recálculo (tela piscando). */

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); transform: translateY(-150%); transition: transform 0.2s; }
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 150px) 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 0.8rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.eyebrow-light { color: var(--white); }
.h2 { font: 600 clamp(2.2rem, 5.4vw, 4.4rem)/1.02 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); line-height: 1.6; }
.lead b { font-weight: 600; color: var(--ink); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > div { display: grid; gap: 16px; }
.section-head .lead { max-width: 44ch; }

/* palavras divididas pelo motion.js */
.w { display: inline-block; white-space: nowrap; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 600 0.95rem/1 var(--display); letter-spacing: 0.005em; white-space: nowrap; transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.35s var(--ease); }
.btn i { font-size: 0.85em; transition: transform 0.35s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--white); color: var(--bg); }
.btn-light { background: var(--white); color: var(--bg); }
.btn-light:hover { background: var(--accent); color: var(--on-accent); }
.btn-outline { border: 1px solid var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.88rem; }
/* dobro do botão normal (botão "Inspire-nos") */
.btn-xl { min-height: 100px; padding: 0 52px; gap: 18px; font-size: 1.9rem; letter-spacing: -0.01em; }
/* "Fale Conosco" em destaque: faixa de luz que atravessa o botão + halo laranja pulsando, em loop */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; animation: btnGlow 2.8s ease-in-out infinite; }
.btn-shine::before { content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: 0; width: 45%; pointer-events: none;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-160%) skewX(-20deg); animation: btnSweep 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.btn-shine > * { position: relative; }
@keyframes btnSweep { 0%, 35% { transform: translateX(-160%) skewX(-20deg); } 75%, 100% { transform: translateX(330%) skewX(-20deg); } }
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 138, 46, 0.55), 0 0 14px rgba(233, 138, 46, 0.25); }
    55% { box-shadow: 0 0 0 7px rgba(233, 138, 46, 0), 0 0 26px rgba(255, 170, 90, 0.55); }
}
.btn-shine:hover { animation-play-state: paused; }
.btn-shine:hover::before { animation-play-state: paused; opacity: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font: 500 1rem var(--display); color: var(--ink-2); padding-bottom: 4px; border-bottom: 1px solid var(--line-2); transition: color 0.25s, gap 0.35s var(--ease), border-color 0.25s; }
.link-arrow:hover { color: var(--accent-2); border-color: var(--accent-2); gap: 16px; }

/* ---------- barra de progresso da página ---------- */
/* a barra DESLIZA (translateX) em vez de esticar (scaleX), para a luz da ponta não deformar */
.scroll-progress { position: fixed; z-index: 120; inset: 0 0 auto; height: 4px; pointer-events: none; overflow-x: clip; overflow-y: visible; opacity: 0; transition: opacity 0.4s; }
.scroll-progress.on { opacity: 1; }
.scroll-progress i { position: relative; display: block; height: 100%; transform: translateX(-100%); will-change: transform;
    background: linear-gradient(90deg, rgba(233, 138, 46, 0.15), #c4621a 35%, var(--accent) 75%, #ffb867);
    box-shadow: 0 0 10px rgba(233, 138, 46, 0.7), 0 0 2px rgba(255, 184, 103, 0.9); }
/* luz na ponta: núcleo claro + halo laranja */
.scroll-progress i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translateY(-50%);
    background: radial-gradient(circle, #fff 0 22%, #ffd29a 38%, rgba(233, 138, 46, 0.85) 60%, rgba(233, 138, 46, 0) 72%);
    box-shadow: 0 0 14px 4px rgba(233, 138, 46, 0.75), 0 0 34px 8px rgba(233, 138, 46, 0.35); }

/* ---------- barra de rolagem lateral (laranja) ---------- */
/* Chrome/Edge/Safari: ::-webkit-scrollbar (degradê e borda); o Chrome ignora isso se scrollbar-color estiver definido,
   então scrollbar-color fica só para o Firefox */
html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: #0d0c0b; border-left: 1px solid rgba(255, 255, 255, 0.06); }
html::-webkit-scrollbar-thumb { min-height: 90px; border-radius: 10px; border: 2px solid #0d0c0b;
    background: linear-gradient(180deg, #ffb867, var(--accent) 45%, #c4621a);
    box-shadow: inset 0 0 6px rgba(255, 220, 170, 0.55); }
html::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffd29a, #ffa04a 45%, var(--accent)); }
html::-webkit-scrollbar-thumb:active { background: #ffb867; }
@supports not selector(::-webkit-scrollbar) {
    html { scrollbar-color: var(--accent) #0d0c0b; scrollbar-width: auto; }
}

/* ---------- cabeçalho ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--white); transition: background 0.4s, transform 0.5s var(--ease); }
.header.solid { background: rgba(11, 10, 9, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header.hide:not(.menu-open) { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); }
/* logo grande sobre a abertura; ao rolar reduz suavemente (scale no .logo para o brilho ::after acompanhar) */
.logo { display: flex; align-items: center; flex: none; position: relative; z-index: 2; transform-origin: left center; scale: 0.6; transition: scale 0.7s var(--ease), translate 0.7s var(--ease); }
.header.at-top .logo { scale: 1; translate: 0 10px; }
/* a logo nunca sai do canto: quando o cabeçalho se esconde ao descer, ela compensa o deslocamento e fica no lugar */
/* (translate, não transform: o transform seria multiplicado pelo scale e a logo ficaria cortada) */
.logo { transition: scale 0.7s var(--ease), translate 0.5s var(--ease), opacity 0.5s var(--ease), visibility 0.5s; }
.header.hide:not(.menu-open) .logo { translate: 0 var(--header-h); }
/* chegando ao rodapé a logo do topo some, para não sobrepor a logo do rodapé (volta ao subir) */
.header.near-footer:not(.menu-open) .logo { opacity: 0; visibility: hidden; pointer-events: none; }
/* sombreamento: sombra próxima define o contorno e uma difusa separa a marca do vídeo */
.logo img { height: 70px; width: auto; transition: transform 0.5s var(--ease);
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.6)) drop-shadow(0 4px 22px rgba(0, 0, 0, 0.75)); }
.logo:hover img { transform: scale(1.04); }
/* reflexo de luz que atravessa a logo (máscara com o próprio desenho; só em http, pois file:// bloqueia a máscara) */
.is-http .logo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.95) 50%, transparent 64%) no-repeat; background-size: 260% 100%; background-position: 130% 0; -webkit-mask: url(../assets/brand/mt-simbolo.png) center / contain no-repeat; mask: url(../assets/brand/mt-simbolo.png) center / contain no-repeat; mix-blend-mode: screen; opacity: 0; }
/* brilho só uma vez, logo depois da entrada da abertura (motion.js põe .shine): reflexo que atravessa + halo laranja */
.is-http .logo.shine::after { animation: logoShine 1.4s var(--ease) both; }
.logo.shine img { animation: logoGlow 1.6s ease-out; }
@keyframes logoGlow { 0%, 100% { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.6)) drop-shadow(0 4px 22px rgba(0, 0, 0, 0.75)); } 40% { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(255, 170, 80, 0.9)) brightness(1.15); } }
@keyframes logoShine { from { background-position: 130% 0; opacity: 1; } 85% { opacity: 1; } to { background-position: -30% 0; opacity: 0; } }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav ul a { position: relative; display: block; padding: 10px 14px; font: 500 0.92rem/1 var(--display); color: rgba(255, 255, 255, 0.78); transition: color 0.25s; }
.nav ul a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav ul a:hover, .nav ul a.active { color: var(--white); }
.nav ul a:hover::after, .nav ul a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-extra { display: none; }
.header-tools { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.lang { display: flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); }
.lang button { min-width: 34px; height: 28px; padding: 0 8px; border-radius: 999px; font: 600 0.72rem/1 var(--display); letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.7); transition: background 0.25s, color 0.25s; }
.lang button:hover { color: var(--white); }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--bg); }
/* cores da bandeira dentro do marcador branco: ocupam a parte de baixo da "esfera" (recortada pelo arredondado) */
.lang button { position: relative; isolation: isolate; overflow: hidden; }
.lang button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 30%; background: var(--flag); opacity: 0; transform: translateY(100%); transition: opacity 0.3s, transform 0.45s var(--ease); pointer-events: none; }
.lang button[aria-pressed="true"]::after { opacity: 1; transform: translateY(0); }
.lang button[aria-pressed="true"] { box-shadow: 0 0 10px var(--flag-glow); }
/* texto centralizado na parte branca (70% de cima): o padding inferior = faixa da bandeira (30% da altura) */
.lang button { transition: background 0.25s, color 0.25s, padding 0.35s var(--ease); }
.lang button[aria-pressed="true"] { padding-bottom: 8px; }
.lang [data-lang="pt"] { --flag: linear-gradient(90deg, #009c3b 0 33%, #ffdf00 33% 67%, #002776 67%); --flag-glow: rgba(255, 223, 0, 0.55); }
.lang [data-lang="en"] { --flag: linear-gradient(90deg, #b22234 0 33%, #ffffff 33% 67%, #3c3b6e 67%); --flag-glow: rgba(178, 34, 52, 0.55); }
.lang [data-lang="es"] { --flag: linear-gradient(90deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); --flag-glow: rgba(241, 191, 0, 0.55); }
.lang [data-lang="ar"] { --flag: linear-gradient(90deg, #007a3d 0 25%, #ffffff 25% 50%, #000000 50% 75%, #ce1126 75%); --flag-glow: rgba(0, 122, 61, 0.6); }
.lang [data-lang="zh"] { --flag: linear-gradient(90deg, #de2910 0 70%, #ffde00 70%); --flag-glow: rgba(222, 41, 16, 0.6); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--white); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.header.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.header.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- abertura (full banner) ---------- */
.bg-net { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero { position: relative; height: 100svh; min-height: 560px; color: var(--white); }
.hero-frame { position: absolute; inset: 0; overflow: hidden; background: #000; }
.slides { position: absolute; inset: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero.video-on .hero-video { opacity: 1; }
/* conexão lenta: imagem sorteada de images/ no lugar do vídeo (js/app.js, showHeroImage), com zoom lento */
.hero-still .hero-video { display: none; }
.hero-still-pic { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-still-pic picture, .hero-still-pic img { display: block; width: 100%; height: 100%; }
.hero-still-pic img { object-fit: cover; animation: heroStill 24s ease-out both; }
.hero.video-on .hero-still-pic { opacity: 1; }
@keyframes heroStill { from { transform: scale(1.08); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-still-pic img { animation: none; } }
/* sombra leve no topo (menu) e na base (botão e indicação de rolagem) */
.slides::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 20%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%); }

/* retícula sobre o vídeo: grade fina de pontos + linhas horizontais sutis. Quebra os blocos de compressão e o
   "borrado" da ampliação, dando sensação de mais nitidez. Fica FORA da camada que escala (sem redesenho ao rolar). */
.hero-screen { position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 0 0.8px, rgba(0, 0, 0, 0.3) 1.3px) 0 0 / 3px 3px,
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, rgba(0, 0, 0, 0) 1px 4px); }
/* redes sociais na abertura: coluna no canto esquerdo (físico, também no árabe), centralizada na altura */
.hero-social { position: absolute; z-index: 5; left: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-social a { --c: var(--accent); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-size: 1.1rem; color: var(--white);
    background: rgba(10, 9, 8, 0.35); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); transition: background 0.3s, border-color 0.3s, color 0.3s, scale 0.35s var(--ease), box-shadow 0.3s; }
.hero-social a[data-net="instagram"] { --c: #e1306c; } .hero-social a[data-net="linkedin"] { --c: #0a66c2; }
.hero-social a[data-net="youtube"] { --c: #ff0000; } .hero-social a[data-net="whatsapp"] { --c: #25d366; }
.hero-social a:hover, .hero-social a:focus-visible { background: var(--c); border-color: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 60%, transparent); }
/* o zoom do hover fica no ícone interno: o link é animado pelo GSAP, que zera "scale" no próprio link */
.hero-social a i { transition: transform 0.35s var(--ease); }
.hero-social a:hover i, .hero-social a:focus-visible i { transform: scale(1.18); }
.hero-social-line { width: 1px; height: 56px; margin-top: 6px; background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)); transform-origin: top; }
@media (max-width: 900px) {
    .hero-social { gap: 10px; top: auto; bottom: 22px; transform: none; }
    .hero-social a { width: 40px; height: 40px; font-size: 1rem; }
    .hero-social-line { display: none; }
}
/* cortina igual à do "Quem Somos": 10 faixas que fecham de baixo para cima conforme a rolagem */
.hero-blinds { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; pointer-events: none; }
.hero-blinds i { flex: 1; background: var(--bg); transform: scaleY(0); transform-origin: bottom; margin-bottom: -1px; }
.hero-bar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) clamp(22px, 4vh, 38px); display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.hero-btns { display: flex; gap: 8px; }
.hero-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); color: var(--white); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.hero-btn:hover { background: var(--white); color: var(--bg); border-color: var(--white); }
/* "rolar para baixo": mouse vetorial discreto, centralizado na base da abertura */
.hero-scroll { position: absolute; z-index: 5; left: 0; right: 0; width: fit-content; margin: 0 auto; bottom: clamp(22px, 4vh, 40px); display: grid; place-items: center; padding: 6px; border-radius: 20px; opacity: 0.8; transition: opacity 0.3s; }
.hero-scroll:hover, .hero-scroll:focus-visible { opacity: 1; }
.hero-scroll-svg { display: block; width: 28px; height: auto; overflow: visible; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.hero-scroll-svg * { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transform-box: fill-box; }
.hs-body { stroke: rgba(255, 255, 255, 0.85); }
/* rodinha: desce e some, volta do topo */
.hs-wheel { stroke: var(--accent); stroke-width: 2.6; animation: hsWheel 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes hsWheel { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(12px); opacity: 0; } }
/* setas acendem em sequência, como uma onda descendo */
.hs-chev { opacity: 0.15; animation: hsChev 1.9s ease-in-out infinite; }
.hs-chev-2 { animation-delay: 0.22s; }
@keyframes hsChev { 0%, 100% { opacity: 0.15; transform: translateY(-2px); } 40% { opacity: 1; transform: translateY(1px); } 70% { opacity: 0.15; } }
@keyframes scrollCue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(48px, 6vw, 90px) 0 clamp(40px, 6vw, 80px); }
.manifesto .container { display: grid; gap: clamp(26px, 3vw, 40px); }
.manifesto-title { max-width: 18ch; font: 600 clamp(2.5rem, 7.2vw, 6.6rem)/0.98 var(--display); letter-spacing: -0.045em; text-transform: lowercase; }
.manifesto-title em { font-style: normal; color: var(--accent); }
.manifesto-text { max-width: 40ch; margin-left: auto; font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--muted); }

/* ---------- projetos em destaque (mesma mecânica da "Stories in Motion" do waverunmedia.com) ----------
   Imagem em cima, texto embaixo. Ao passar o mouse: o cartão se alarga, a imagem cresce até cobrir o cartão,
   amplia 1.2x e segue o ponteiro (motion.js), surgem os degradês e o texto desliza para dentro da imagem. */
.featured { padding: clamp(70px, 9vw, 130px) 0; }
.featured-head .portfolio-title { flex: 1 1 260px; margin-bottom: 0; }
.featured-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 52px); }
.stories { display: flex; gap: clamp(10px, 1vw, 16px); padding: 0 var(--gutter); }
.story { --media-h: clamp(380px, 33.2vw, 640px); position: relative; flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--media-h); border-radius: var(--radius); overflow: hidden; text-align: left; color: var(--ink); isolation: isolate; transition: flex-grow 0.7s var(--ease); }
.story-media { position: absolute; top: 0; left: 0; z-index: -1; width: 100%; height: var(--media-h); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); transition: height 0.6s var(--ease); }
.story-img { position: absolute; inset: 0; }
.story-img picture, .story-img img { width: 100%; height: 100%; object-fit: cover; }
.story::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.75)); opacity: 0; transition: opacity 0.5s var(--ease); }
.story::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(35deg, rgba(0, 0, 0, 0) 35%, rgba(233, 138, 46, 0.95)); mix-blend-mode: soft-light; opacity: 0; transition: opacity 0.5s var(--ease); }
.story-text { position: relative; z-index: 1; display: grid; gap: 6px; padding: 16px 4px 2px; transition: transform 0.6s var(--ease), color 0.3s; }
.story-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 500 clamp(1rem, 1.25vw, 1.3rem)/1.22 var(--display); letter-spacing: -0.01em; }
.story-badge { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.84rem; color: var(--muted); transition: color 0.3s; }
.story-badge:empty { display: none; }
.story-play { position: absolute; z-index: 2; top: 16px; right: 16px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--bg); font-size: 0.9rem; transform: scale(0); transition: transform 0.5s var(--ease); }
.story-play i { margin-left: 2px; }
.story:focus-visible .story-play { transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
    .story:hover { flex-grow: 2.4; }
    .story:hover .story-media { height: 100%; }
    .story:hover::before, .story:hover::after { opacity: 1; }
    .story:hover .story-text { transform: translate(1.4rem, -1.4rem); color: var(--white); }
    .story:hover .story-badge { color: rgba(255, 255, 255, 0.82); }
    .story:hover .story-play { transform: scale(1); transition-delay: 0.2s; }
}

/* ---------- clientes ---------- */
.clients { padding: clamp(56px, 8vw, 110px) 0; }
.clients-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 40px; }
.clients-head p { color: var(--muted); font-size: 0.95rem; }
/* "Clientes" e "Contatos" no mesmo estilo de "Portfólio" (ponto laranja + título + traço) */
.clients-head .portfolio-title { flex: 1; margin-bottom: 0; }
.contact-copy .portfolio-title { margin-bottom: 0; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.client { flex: none; display: grid; place-items: center; width: 180px; height: 80px; margin-right: 12px; border-radius: var(--radius); transition: background 0.3s; }
.client img { max-width: 124px; max-height: 46px; width: auto; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.5; transition: opacity 0.3s; }
.client:hover img, .client:focus-visible img { opacity: 1; }
.client:hover { background: rgba(255, 255, 255, 0.05); }
/* "Projetos por cliente": lista em texto (gerada por tools/gerar-seo.ps1), fechada até o visitante abrir */
.cases { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cases > summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 2px; cursor: pointer; list-style: none; font: 500 1.05rem/1.3 var(--display); color: var(--ink); }
.cases > summary::-webkit-details-marker { display: none; }
.cases > summary small { color: var(--muted); font: 400 0.88rem/1.3 var(--body); }
.cases > summary small b { color: var(--accent-2); font-weight: 600; }
.cases > summary i { margin-inline-start: auto; color: var(--accent); transition: transform 0.3s var(--ease); }
.cases[open] > summary i { transform: rotate(180deg); }
.cases > summary:hover .cases-t, .cases > summary:focus-visible .cases-t { color: var(--accent-2); }
.cases > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.cases-lead { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.case { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(20, 18, 16, 0.6); }
.case h3 { font: 600 1.02rem/1.25 var(--display); margin-bottom: 8px; }
.case h3 small { display: block; color: var(--muted); font: 400 0.78rem/1.4 var(--body); margin-top: 2px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.case-tags span { font-size: 0.72rem; line-height: 1; padding: 5px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); }
.case ul { list-style: none; display: grid; gap: 6px; }
.case li { font-size: 0.88rem; line-height: 1.4; color: var(--muted); }
.case a { color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.case a:hover, .case a:focus-visible { color: var(--accent-2); text-decoration: underline; }
.case em { font-style: normal; font-size: 0.72rem; color: var(--accent-2); margin-inline-start: 4px; white-space: nowrap; }
.cases-more { color: var(--muted); font-size: 0.9rem; margin: 20px 0 24px; }
.cases-more b { color: var(--ink-2); font-weight: 600; margin-inline-end: 6px; }
.cases[open] { padding-bottom: 8px; }

/* ---------- quem somos (capa revelada em faixas) ---------- */
.cover { padding: clamp(20px, 3vw, 40px) 0; }
.cover-frame { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: var(--white); }
.cover-media { position: absolute; inset: -12% 0; }
.cover-media picture, .cover-media img { width: 100%; height: 100%; object-fit: cover; }
.cover-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.6) 100%); }
.cover-blinds { position: absolute; inset: 0; display: flex; flex-direction: column; pointer-events: none; }
.cover-blinds i { flex: 1; background: var(--bg); transform: scaleY(0); transform-origin: top; margin-bottom: -1px; }
.cover-body { position: relative; z-index: 2; height: 100%; display: grid; place-content: center; justify-items: center; gap: 24px; padding: 0 var(--gutter); text-align: center; }
.cover-title { max-width: 14ch; font: 600 clamp(2.6rem, 6.6vw, 5.8rem)/0.98 var(--display); letter-spacing: -0.045em; }
.cover-text { max-width: 54ch; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, 0.86); }
.cover-text b { color: var(--white); font-weight: 600; }

/* ---------- visão e diferenciais ---------- */
/* espaço curto embaixo: a visão ("Quem Somos") emenda com "Tecnologia que move pessoas" */
.vision { padding: clamp(90px, 12vw, 170px) 0 clamp(36px, 4vw, 60px); }
/* minmax(0, …): colunas fixas — a animação do ano (2000 → 2026 → 26) muda a largura do número e não pode
   empurrar a coluna do texto "Nossa visão…" (senão as quebras de linha mudam durante a animação) */
.vision-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.vision-side { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 28px; }
.years { position: relative; display: flex; align-items: flex-end; gap: 26px; }
.years-num { position: relative; isolation: isolate; display: inline-flex; font: 600 clamp(5rem, 12vw, 10rem)/0.78 var(--display); letter-spacing: 0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
/* "Desde" e o "20" do ano só existem durante a animação (sem JS o bloco mostra direto "26 anos de inovação") */
.years-cap { position: absolute; left: 0; bottom: 100%; margin-bottom: 14px; font: 600 0.8rem/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); opacity: 0; pointer-events: none; }
.yr-pre { display: none; white-space: nowrap; }
.years.anim .yr-pre { display: inline-block; }
.yr-main { position: relative; display: inline-block; }
/* brilho final: luz que atravessa os números + halo + clarão */
.years.lit .years-num { animation: yrGlow 1.6s ease-out both; }
.years.lit .yr-main::after { content: attr(data-shine); position: absolute; inset: 0; pointer-events: none; color: transparent;
    background: linear-gradient(100deg, transparent 30%, #fff 48%, #ffe2bd 52%, transparent 70%) no-repeat; background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text; animation: yrShine 1.2s ease-out 0.05s both; }
.years.lit .years-num::before { content: ""; position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; z-index: -1;
    background: radial-gradient(circle, rgba(255, 190, 120, 0.55), rgba(233, 138, 46, 0.18) 40%, rgba(233, 138, 46, 0) 68%); animation: yrBurst 1.4s ease-out both; }
@keyframes yrShine { from { background-position: 120% 0; } to { background-position: -40% 0; } }
@keyframes yrBurst { 0% { scale: 0.2; opacity: 0; } 25% { opacity: 1; } 100% { scale: 1.25; opacity: 0; } }
@keyframes yrGlow { 0% { text-shadow: 0 0 0 rgba(233, 138, 46, 0); } 30% { text-shadow: 0 0 28px rgba(255, 170, 90, 0.9), 0 0 70px rgba(233, 138, 46, 0.6); } 100% { text-shadow: 0 0 18px rgba(233, 138, 46, 0.28); } }
.years-txt { display: grid; padding-bottom: 6px; font: 500 1.1rem/1.2 var(--display); }
.years-txt small { font: 400 0.88rem var(--body); color: var(--muted); }
.vision-p3 { max-width: 30ch; font: 500 clamp(1.15rem, 1.6vw, 1.35rem)/1.4 var(--display); color: var(--ink-2); }
.vision-p3 b { color: var(--accent-2); font-weight: 600; }
.vision-lead { font: 500 clamp(1.5rem, 2.8vw, 2.5rem)/1.22 var(--display); letter-spacing: -0.02em; }
.vision-lead b { font-weight: 600; color: var(--accent-2); }
.values { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
/* diferenciais em destaque: número grande em laranja, título forte com traço de luz e ícone em círculo com brilho */
.value { position: relative; display: grid; grid-template-columns: 84px 1fr auto; gap: 24px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); }
.value::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2) 40%, transparent); transform: scaleX(0.18); transform-origin: left; transition: transform 0.7s var(--ease); }
.value:hover::after { transform: scaleX(1); }
.value-n { font: 700 clamp(2.4rem, 3.6vw, 3.4rem)/1 var(--display); letter-spacing: -0.04em; color: var(--accent); opacity: 0.5; font-variant-numeric: tabular-nums; transition: opacity 0.4s; }
.value:hover .value-n { opacity: 1; }
.value h3 { font: 700 clamp(1.7rem, 2.8vw, 2.5rem)/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 10px; color: var(--white); text-shadow: 0 0 26px rgba(233, 138, 46, 0.25); transition: color 0.4s; }
.value:hover h3 { color: var(--accent-2); }
.value p { color: var(--ink-2); max-width: 46ch; font-size: 1.02rem; }
.value > i { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; font-size: 1.5rem; color: var(--accent-2); background: rgba(233, 138, 46, 0.12); border: 1px solid rgba(233, 138, 46, 0.45); box-shadow: 0 0 28px rgba(233, 138, 46, 0.25), inset 0 0 16px rgba(233, 138, 46, 0.15); transition: background 0.4s, color 0.4s, box-shadow 0.4s; }
.value:hover > i { background: var(--accent); color: var(--bg); box-shadow: 0 0 40px rgba(233, 138, 46, 0.55); }

/* ---------- tecnologias + portfólio ---------- */
.work { padding-top: clamp(36px, 4vw, 60px); }
.techs-head { display: grid; justify-items: center; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); text-align: center; }
.portfolio-title { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(18px, 2vw, 26px); font: 600 clamp(1.5rem, 2.6vw, 2.2rem)/1 var(--display); letter-spacing: -0.02em; }
.portfolio-title::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px rgba(233, 138, 46, 0.8); }
.portfolio-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* quadros de tecnologia (substituem os filtros) */
.tech-grid { --c: 6; --gap: clamp(10px, 1.1vw, 16px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-bottom: clamp(36px, 4vw, 52px); }
.tech-tile { position: relative; flex: 0 0 calc((100% - (var(--c) - 1) * var(--gap)) / var(--c)); aspect-ratio: 1 / 1.05; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(12px, 1.1vw, 18px); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); color: var(--white); text-align: left; isolation: isolate; transition: box-shadow 0.5s var(--ease); }
.tt-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* duas camadas que se alternam (capas sorteadas da categoria): fusão de 1.4 s e um leve zoom contínuo na capa visível */
.tt-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.tt-layer.on { opacity: 1; animation: ttDrift 9s linear both; }
@keyframes ttDrift { from { transform: scale(1); } to { transform: scale(1.08); } }
/* a capa "hq" do YouTube (4:3) tem faixas pretas embutidas em cima e embaixo: a escala ≥ 1.34 as esconde */
.tt-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transform: scale(1.5); transition: transform 1.1s var(--ease), opacity 0.6s var(--ease); }
.tech-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 10, 9, 0.1) 0%, rgba(11, 10, 9, 0.5) 48%, rgba(11, 10, 9, 0.94) 100%); transition: opacity 0.5s; }
.tt-icon { position: absolute; top: clamp(12px, 1.1vw, 16px); left: clamp(12px, 1.1vw, 16px); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--accent-2); font-size: 1rem; transition: background 0.4s, color 0.4s, transform 0.7s var(--ease); }
.tt-body { display: grid; gap: 6px; transition: transform 0.6s var(--ease); }
.tt-name { font: 700 clamp(1rem, 1.3vw, 1.3rem)/1.1 var(--display); letter-spacing: -0.02em; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7); }
.tt-count { font: 600 0.72rem/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); transition: color 0.4s; }
.tt-count:empty { display: none; }
/* brilho que atravessa os quadros em sequência quando eles terminam de chegar */
.tt-shine { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 205, 150, 0.32) 50%, transparent 65%) no-repeat; background-size: 260% 100%; background-position: 160% 0; }
.tech-grid.lit .tt-shine { animation: ttShine 1.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.08s + 0.2s); }
@keyframes ttShine { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@media (hover: hover) and (pointer: fine) {
    .tech-tile:hover .tt-media img { opacity: 0.95; transform: scale(1.36); }
    .tech-tile:hover .tt-icon { background: var(--accent); color: var(--on-accent); transform: rotate(-12deg) scale(1.1); }
    .tech-tile:hover .tt-body { transform: translateY(-5px); }
    .tech-tile:hover .tt-count { color: var(--accent-2); }
}
/* quadro ativo: aceso, com aro laranja */
.tech-tile[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent), 0 22px 50px -14px rgba(233, 138, 46, 0.6); }
.tech-tile[aria-pressed="true"] .tt-media img { opacity: 1; transform: scale(1.36); }
.tech-tile[aria-pressed="true"] .tt-icon { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tech-tile[aria-pressed="true"] .tt-count { color: var(--accent-2); }

/* ---------- trabalhos ---------- */
/* "Portfólio" (com o traço que se estende) + busca + "Todos os projetos" numa linha só */
.portfolio-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: clamp(18px, 2vw, 26px); }
.portfolio-bar .portfolio-title { flex: 1 1 220px; margin-bottom: 0; }
.work-tools { display: flex; align-items: center; gap: 12px; }
.work-tools .search { width: clamp(220px, 24vw, 340px); }
.work-tools .search input { height: 48px; }
.work-status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: clamp(22px, 2.6vw, 32px) 0; }
.work-status { margin: 0; font: 500 1.43rem/1.3 var(--display); color: var(--muted); }
.work-random { flex: none; margin-left: auto; }
.work-random i { transition: transform 0.5s var(--ease); }
.work-random:hover i { transform: rotate(180deg); }
.work-status:empty { display: none; }
.work-status b { font-weight: 600; color: var(--accent-2); }
.work-all { flex: none; }
.search { position: relative; width: min(100%, 440px); }
.search i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 54px; padding: 0 50px 0 50px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 1rem; transition: border-color 0.25s, background 0.25s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.06); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; color: var(--muted); }
.search-clear:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 0.9rem/1.1 var(--display); color: var(--ink-2); white-space: nowrap; transition: border-color 0.25s, background 0.25s, color 0.25s; }
.chip i { color: var(--accent-2); font-size: 0.9em; }
.chip small { font: 400 0.74rem var(--body); color: var(--muted); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip[aria-pressed="true"] i, .chip[aria-pressed="true"] small { color: var(--on-accent); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 22px; }
.card { display: grid; gap: 14px; align-content: start; text-align: left; border-radius: var(--radius); }
.card-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s, transform 0.9s var(--ease); }
.card-media img.loaded { opacity: 1; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background 0.35s; }
.card:hover .card-media::after { background: rgba(0, 0, 0, 0.3); }
.card-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--bg); opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.45s var(--ease); }
.card-play i { margin-left: 3px; }
.card:hover .card-play, .card:focus-visible .card-play { opacity: 1; transform: none; }
.card-meta { font: 600 0.72rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.card-title { font: 500 1.08rem/1.3 var(--display); letter-spacing: -0.005em; color: var(--ink); }
.card.enter { animation: cardIn 0.8s var(--ease) both; }
.card.enter:nth-child(3n + 2) { animation-delay: 0.08s; }
.card.enter:nth-child(3n) { animation-delay: 0.16s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.grid-msg { grid-column: 1 / -1; padding: 56px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }
.grid-msg button { margin-top: 14px; }
.more { display: flex; justify-content: center; margin-top: 52px; }

/* ---------- redes sociais: ícone grande na cor da marca, imagem nasce de dentro dele ---------- */
.social { padding: clamp(70px, 9vw, 130px) 0; }
.social-title { margin-bottom: clamp(36px, 5vw, 64px); }
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.social-card { --brand: var(--accent); --brand-bg: var(--brand); --icon: clamp(84px, 8.4vw, 124px); position: relative; display: block; aspect-ratio: 3 / 4.1; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-3); color: var(--white); isolation: isolate; }
.social-card[data-net="instagram"] { --brand: #e1306c; --brand-bg: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-card[data-net="linkedin"] { --brand: #0a66c2; }
.social-card[data-net="youtube"] { --brand: #ff0033; }
.social-card[data-net="whatsapp"] { --brand: #25d366; }
.social-media { position: absolute; inset: 0; z-index: -2; }
.social-media picture, .social-media img { width: 100%; height: 100%; object-fit: cover; }
.social-media img { transition: transform 1.2s var(--ease); }
.social-tint { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.88) 100%); }
.social-tint::after { content: ""; position: absolute; inset: 0; background: var(--brand-bg); mix-blend-mode: multiply; opacity: 0; transition: opacity 0.6s var(--ease); }
/* centralizado por cálculo (sem a propriedade translate: o GSAP a zera ao animar e o ícone "pulava" 50% no fim) */
.social-icon { position: absolute; left: 0; right: 0; top: calc(var(--icon-y, 42%) - var(--icon) / 2); width: var(--icon); height: var(--icon); margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--brand-bg); color: var(--white); font-size: calc(var(--icon) * 0.44); box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.1), 0 24px 60px -12px rgba(0, 0, 0, 0.75); transition: transform 0.7s var(--ease), box-shadow 0.5s; }
.social-grid:not(.on) .social-icon { transition: none; } /* durante a entrada quem anima é o GSAP */
.social-icon b { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; pointer-events: none; }
/* depois da entrada, um anel pulsa de tempos em tempos em cada ícone */
.social-grid.on .social-icon b { animation: socialRing 3.2s ease-out infinite; }
.social-grid.on .social-card:nth-child(2) .social-icon b { animation-delay: 0.8s; }
.social-grid.on .social-card:nth-child(3) .social-icon b { animation-delay: 1.6s; }
.social-grid.on .social-card:nth-child(4) .social-icon b { animation-delay: 2.4s; }
@keyframes socialRing { 0% { transform: scale(1); opacity: 0.9; } 45%, 100% { transform: scale(1.9); opacity: 0; } }
.social-text { position: absolute; left: clamp(16px, 1.6vw, 24px); right: clamp(16px, 1.6vw, 24px); bottom: clamp(16px, 1.6vw, 24px); display: grid; gap: 4px; }
.social-text strong { font: 600 clamp(1.3rem, 1.9vw, 1.8rem)/1.1 var(--display); letter-spacing: -0.02em; }
.social-text span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }
.social-text em { font: 500 0.78rem/1.3 var(--display); font-style: normal; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.55); }
.social-go { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); transition: background 0.4s, color 0.4s, border-color 0.4s; }
.social-go i { transform: rotate(-45deg); transition: transform 0.5s var(--ease); }
@media (hover: hover) and (pointer: fine) {
    .social-card:hover .social-media img { transform: scale(1.08); }
    .social-card:hover .social-tint::after { opacity: 0.62; }
    .social-card:hover .social-icon { transform: scale(1.14) rotate(-8deg); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.16), 0 30px 70px -10px rgba(0, 0, 0, 0.8); }
    .social-card:hover .social-icon b { animation: socialRing 1.4s ease-out infinite; animation-delay: 0s; }
    .social-card:hover .social-go { background: var(--white); color: var(--bg); border-color: var(--white); }
    .social-card:hover .social-go i { transform: rotate(0deg); }
}

/* ---------- chamada + leque ---------- */
/* a chamada agora abre a página logo depois do vídeo (absorveu o manifesto): espaço curto em cima, como o manifesto tinha */
.cta { position: relative; padding-top: clamp(48px, 6vw, 90px); overflow: hidden; }
/* metade do tamanho do manifesto original (2.5rem / 7.2vw / 6.6rem) */
/* sem caixa baixa forçada (iniciais maiúsculas) e larga o bastante para a quebra cair só depois de "mundo." */
.cta-statement { max-width: none; margin-top: 10px; font-size: clamp(1.25rem, 3.6vw, 3.3rem); line-height: 1.12; letter-spacing: -0.03em; text-transform: none; }
.manifesto-title .keep-case { text-transform: none; }
.cta-head { display: grid; justify-items: center; gap: 22px; text-align: center; }
.cta-head .btn-xl { margin-top: clamp(20px, 3vw, 44px); } /* respiro entre "Ideias mudam o mundo." e o "Inspire-nos" */
.cta-logo { position: relative; width: clamp(300px, 34vw, 480px); max-width: 80vw; }
.cta-logo::before { content: ""; position: absolute; inset: -60% -40%; z-index: -1; background: radial-gradient(closest-side, rgba(233, 138, 46, 0.32), rgba(233, 138, 46, 0) 70%); pointer-events: none; }
.cta-logo img { width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(233, 138, 46, 0.25)); }
.is-http .cta-logo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 130% 0; -webkit-mask: url(../assets/brand/mt-simbolo.png) center / contain no-repeat; mask: url(../assets/brand/mt-simbolo.png) center / contain no-repeat; mix-blend-mode: overlay; }
.is-http .cta-logo.shine::after { animation: logoShine 1.6s var(--ease) 0.3s both; }
.cta-title { font: 600 clamp(3rem, 9vw, 8rem)/0.92 var(--display); letter-spacing: -0.05em; }
.cta-head p { max-width: 44ch; color: var(--muted); font-size: 1.08rem; }
.cta-head p b { color: var(--ink); font-weight: 600; }
/* leque = projetos em destaque (cartões montados pelo js/app.js initFan a partir do painel /admin).
   --a = ângulo de cada cartão; o cartão ativo (mouse / 1º toque) levanta e a legenda aparece no centro,
   na linha de base do leque (--base = pé dos cartões). */
.fan { --w: clamp(150px, 19vw, 290px); --r: calc(var(--w) * 2.4); --base: calc(var(--top, 48px) + var(--w) * 4 / 3); position: relative; height: calc(var(--base) + clamp(96px, 9vw, 120px)); margin-top: clamp(0px, 1vw, 12px); overflow: hidden; }
.fan-wheel { position: absolute; left: 50%; top: calc(var(--top, 48px) + var(--r)); width: 0; height: 0; }
.fan-card { --side: 0; position: absolute; width: var(--w); aspect-ratio: 3 / 4; left: calc(var(--w) / -2); top: calc(var(--r) * -1); padding: 0; border: 0; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transform-origin: 50% var(--r); transform: rotate(var(--a, 0deg)) translateY(0); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); box-shadow: calc(var(--side) * 22px) 14px 34px rgba(0, 0, 0, 0.7), calc(var(--side) * 6px) 4px 10px rgba(0, 0, 0, 0.55), 0 30px 60px rgba(0, 0, 0, 0.45); }
/* profundidade: o lado do cartão que fica sob o vizinho (o lado voltado para o centro) recebe a sombra dele */
.fan-card::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: calc(var(--side) * var(--side)); background: linear-gradient(calc(180deg - var(--side) * 90deg), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18) 34%, transparent 60%); transition: opacity 0.5s var(--ease); }
.fan-card.up::before { opacity: 0; }
.fan-card::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: rgba(11, 10, 9, 0.5); box-shadow: inset 0 0 0 1px rgba(244, 241, 236, 0); opacity: 0; transition: opacity 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease); pointer-events: none; }
.fan-card.up { z-index: 60 !important; transform: rotate(var(--a, 0deg)) translateY(-11%); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(233, 138, 46, 0.55); }
.fan-card.up::after { opacity: 1; background: transparent; box-shadow: inset 0 0 0 1px rgba(244, 241, 236, 0.18); }
.fan.has-active .fan-card:not(.up)::after { opacity: 1; }
.fan-card:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
/* legenda: nome + tipo do projeto e play, no centro do leque, na linha de base dos cartões */
.fan-caption { position: absolute; z-index: 6; left: 50%; top: calc(var(--base) + 14px); display: flex; align-items: center; gap: 14px; width: max-content; max-width: min(92vw, 640px); padding: 10px 22px 10px 10px; border-radius: 999px; background: rgba(11, 10, 9, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, 0.45); transform: translate(-50%, 14px); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s; }
[dir="rtl"] .fan-caption { padding: 10px 10px 10px 22px; }
.fan-caption.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s; }
.fan-play { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 1rem; cursor: pointer; transition: transform 0.3s var(--ease), background 0.3s; }
.fan-play .fa-play { margin-inline-start: 3px; }
.fan-play:hover, .fan-play:focus-visible { background: var(--accent-2); transform: scale(1.08); }
.fan-cap-text { display: grid; gap: 3px; min-width: 0; text-align: start; }
.fan-cap-title { color: var(--ink); font: 600 clamp(0.98rem, 1.6vw, 1.25rem)/1.2 var(--display); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fan-cap-badge { color: var(--accent-2); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fan-cap-badge:empty { display: none; }
.fan-card picture, .fan-card img { width: 100%; height: 100%; object-fit: cover; }
/* movimento das imagens: já ampliadas (1.22) e só DESLIZANDO dentro do cartão (translate não redesenha a imagem,
   ao contrário de ampliar a cada quadro). Cada cartão tem trajeto, duração e atraso próprios. */
.fan-card img { scale: 1.22; will-change: translate; animation: fanDrift var(--dur, 11s) ease-in-out var(--delay, 0s) infinite alternate both; }
.fan-card:nth-child(odd) img { animation-name: fanDriftB; }
.fan-card:nth-child(3n) img { --dur: 13s; }
.fan-card:nth-child(3n+1) img { --dur: 9.5s; }
.fan-card:nth-child(1) img { --delay: -2s; } .fan-card:nth-child(2) img { --delay: -6s; } .fan-card:nth-child(3) img { --delay: -1s; }
.fan-card:nth-child(4) img { --delay: -8s; } .fan-card:nth-child(5) img { --delay: -4s; } .fan-card:nth-child(6) img { --delay: -10s; }
.fan-card:nth-child(7) img { --delay: -3s; } .fan-card:nth-child(8) img { --delay: -7s; } .fan-card:nth-child(9) img { --delay: -5s; }
@keyframes fanDrift { 0% { translate: -7% 6%; } 50% { translate: 6% -2%; } 100% { translate: -2% -7%; } }
@keyframes fanDriftB { 0% { translate: 7% -6%; } 50% { translate: -6% 3%; } 100% { translate: 3% 7%; } }
/* fora da tela o movimento para (economia) */
.fan.idle .fan-card img { animation-play-state: paused; }
/* a imagem fica parada; só se move no cartão selecionado (mouse em cima / tocado) */
.fan-card img { animation-play-state: paused; }
.fan-card.up img { animation-play-state: running; }


/* ---------- contato ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-copy { display: grid; gap: 22px; }
.contact-lines { display: grid; margin-top: 10px; border-top: 1px solid var(--line); }
.contact-lines a { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font: 500 1.05rem var(--display); transition: color 0.25s, padding 0.4s var(--ease); }
.contact-lines a:hover { color: var(--accent-2); padding-left: 8px; }
.contact-lines i { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 50%; border: 1px solid var(--line-2); }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font: 500 0.82rem/1 var(--display); letter-spacing: 0.04em; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; font-size: 1.05rem; border-radius: 0; transition: border-color 0.25s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #f87171; }
/* campo-armadilha anti-spam: escondido no lugar (jogá-lo a -9999px criava rolagem lateral no árabe, da direita p/ esquerda) */
.hp { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
/* a mensagem cresce para ocupar a altura do quadro; o botão "Enviar" fica no canto inferior direito */
.form { grid-template-rows: auto 1fr auto; }
.form > .field:has(textarea) { grid-template-rows: auto 1fr; }
.form .btn { justify-self: end; margin-top: 6px; }
.form-status { text-align: right; min-height: 0; }
.form-status:empty { display: none; }
.form-status { min-height: 1.4em; font: 500 0.94rem var(--display); }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }

/* ---------- carreiras ---------- */
.careers-sec { padding-top: 0; }
/* texto à esquerda ocupando o espaço; ação (botão + e-mail) agrupada à direita, separada por um filete */
.careers { display: grid; grid-template-columns: 1fr auto; gap: 28px clamp(32px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 60px); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); }
.careers-copy { display: grid; gap: 16px; }
.careers-copy p { color: var(--ink-2); font: 500 clamp(1.05rem, 1.4vw, 1.25rem)/1.45 var(--display); }
.careers-copy p strong { color: var(--accent-2); font-weight: 600; }
.careers-act { display: grid; gap: 14px; justify-items: center; text-align: center; align-self: stretch; align-content: center; padding-left: clamp(32px, 4vw, 56px); border-left: 1px solid var(--line-2); }
.careers-act .btn { min-height: 56px; padding: 0 32px; font-size: 1rem; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: rgba(233, 138, 46, 0.12); color: var(--ink-2); font-size: 0.93rem; }
.notice i { color: var(--accent-2); margin-top: 3px; }
.careers-mail { color: var(--muted); font-size: 0.9rem; }
.careers-tag { font: 500 0.95rem var(--display); color: var(--ink-2); }
.careers-tag strong { color: var(--accent-2); }

/* ---------- rodapé ---------- */
.footer { position: relative; overflow: hidden; padding-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); color: var(--muted); }
.footer-top { display: grid; grid-template-columns: 1.3fr 0.8fr 1.3fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer h3 a:hover { color: var(--accent-2); }
.work-more { margin-left: 0.5em; font: 500 0.95rem/1.3 var(--body); color: var(--accent-2); white-space: nowrap; border-bottom: 1px solid rgba(244, 166, 90, 0.4); transition: border-color 0.25s; }
.work-more:hover { border-color: var(--accent-2); }
.work-more i { font-size: 0.8em; margin-left: 0.2em; }
.footer-brand { display: grid; gap: 18px; align-content: start; max-width: 340px; }
.footer-brand img { width: 190px; height: auto; }
.footer h3 { margin-bottom: 16px; font: 600 0.78rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.footer-list { display: grid; gap: 10px; font-size: 0.95rem; }
.footer-list a { transition: color 0.25s; }
.footer-list a:hover { color: var(--accent-2); }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.social-icons a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 0.85rem; }
/* anéis ficam no .footer (não no .footer-word) para poderem subir pelo rodapé sem serem cortados; o JS posiciona
   o centro no nome e limita o tamanho final à distância até o topo do rodapé, onde já chegam apagados */
.footer { isolation: isolate; }
.footer-shock { position: absolute; left: 50%; top: 80%; width: 600px; height: 600px; margin: -300px 0 0 -300px; border-radius: 50%; border: 2px solid rgba(255, 186, 110, 0.75); box-shadow: 0 0 40px rgba(233, 138, 46, 0.45), inset 0 0 40px rgba(233, 138, 46, 0.35); opacity: 0; pointer-events: none; z-index: -1; }
.footer-word { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(48px, 7vw, 112px); line-height: 0.8; text-align: center; user-select: none; }
/* espaçamento sem sobreposição: com letras translúcidas, onde duas se sobrepõem ficaria uma faixa mais clara */
.footer-word span { display: inline-block; font: 700 clamp(4rem, 18.5vw, 21rem)/0.82 var(--display); letter-spacing: -0.025em; color: var(--grey-word); white-space: nowrap; }
/* letras translúcidas (a rede do fundo aparece através); clique acende a letra com passagem de luz */
.footer-word b { position: relative; display: inline-block; font-weight: inherit; color: rgba(150, 138, 126, 0.38); cursor: pointer; transition: color 0.3s; }
.footer-word b:hover { color: rgba(170, 156, 142, 0.5); }
.footer-word b::after { content: attr(data-l); position: absolute; inset: 0; color: transparent; pointer-events: none; opacity: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.95) 47%, #ffe2bd 53%, transparent 70%) no-repeat; background-size: 300% 100%; background-position: 130% 0; -webkit-background-clip: text; background-clip: text; }
.footer-word b.lit { animation: fwGlow 2.25s ease-out; }
.footer-word b.lit::after { animation: fwSweep 1.35s cubic-bezier(0.4, 0, 0.2, 1) 0.58s; }
@keyframes fwGlow { 0% { color: rgba(150, 138, 126, 0.38); } 12% { color: var(--accent); text-shadow: 0 0 20px rgba(255, 170, 80, 0.65), 0 0 55px rgba(233, 138, 46, 0.4); } 55% { color: rgba(233, 138, 46, 0.85); text-shadow: 0 0 14px rgba(233, 138, 46, 0.3); } 100% { color: rgba(150, 138, 126, 0.38); text-shadow: none; } }
@keyframes fwSweep { 0% { opacity: 1; background-position: 130% 0; } 85% { opacity: 1; } 100% { opacity: 0; background-position: -30% 0; } }

/* ---------- modal de vídeo ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity 0.35s, visibility 0s linear 0.35s; }
.modal.open { visibility: visible; opacity: 1; transition: opacity 0.35s; }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* .modal-wrap leva a caixa e, acima dela, o botão de fechar (fora da caixa, para não cobrir os controles do player) */
.modal-wrap { position: relative; width: min(1080px, 100%); padding-top: 56px; transform: translateY(24px) scale(0.97); transition: transform 0.5s var(--ease); }
.modal.open .modal-wrap { transform: none; }
.modal-box { position: relative; width: 100%; max-height: calc(100svh - 96px); overflow: auto; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.modal-video { aspect-ratio: 16 / 9; background: #000; }
.modal-video iframe { width: 100%; height: 100%; border: 0; }
.modal-info { display: grid; gap: 10px; padding: clamp(20px, 3vw, 30px); }
.modal-info h3 { font: 600 clamp(1.25rem, 2.4vw, 1.7rem)/1.2 var(--display); letter-spacing: -0.02em; }
.modal-info p { color: var(--muted); white-space: pre-line; }
.modal-info p:empty { display: none; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.modal-close { position: absolute; z-index: 2; top: 0; right: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: var(--bg); font-size: 1.1rem; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.modal-close:hover { background: var(--accent); }
body.locked { overflow: hidden; }

/* ---------- avisos flutuantes ---------- */
.toast { position: fixed; z-index: 250; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 500 0.92rem var(--display); box-shadow: var(--shadow); transition: opacity 0.25s, transform 0.3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* brilho no ponto do toque/clique (js/click-fx.js): clarão suave + anel que se abre */
.tap-glow { position: fixed; z-index: 500; width: 0; height: 0; pointer-events: none; }
.tap-glow::before, .tap-glow::after { content: ""; position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; }
.tap-glow::before { background: radial-gradient(circle, rgba(255, 244, 220, 0.75) 0%, rgba(255, 190, 110, 0.4) 22%, rgba(233, 138, 46, 0.12) 48%, rgba(233, 138, 46, 0) 70%); mix-blend-mode: screen; animation: tapFlash var(--tap-ms, 750ms) cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.tap-glow::after { border: 1px solid rgba(255, 210, 150, 0.7); box-shadow: 0 0 12px rgba(233, 138, 46, 0.5); animation: tapRing var(--tap-ms, 750ms) cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes tapFlash { 0% { transform: scale(0.2); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(1.1); opacity: 0; } }
@keyframes tapRing { 0% { transform: scale(0.1); opacity: 0.9; } 100% { transform: scale(0.9); opacity: 0; } }
.to-top { position: fixed; z-index: 90; right: 20px; bottom: 20px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-2); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s, visibility 0s linear 0.3s, background 0.25s, color 0.25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.3s, background 0.25s, color 0.25s; }
.to-top:hover { background: var(--accent); color: var(--on-accent); }
.consent { position: fixed; z-index: 150; left: 20px; bottom: 20px; width: min(400px, calc(100% - 40px)); display: grid; gap: 14px; padding: 20px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 0.93rem; color: var(--ink-2); transform: translateY(20px); opacity: 0; transition: opacity 0.4s, transform 0.4s var(--ease); }
.consent.show { opacity: 1; transform: none; }
.consent .row { display: flex; gap: 10px; }

/* compatibilidade com o app.js (revelação simples) */
.js .reveal { opacity: 1; }

/* ---------- luz nas bordas ----------
   Borda de 1px feita com máscara: um brilho fixo vindo de cima (vidro) e, no computador,
   um foco laranja que segue o ponteiro (--mx/--my, definidos pelo motion.js). */
@property --glow { syntax: "<number>"; inherits: true; initial-value: 0; }
.glow { position: relative; --mx: 50%; --my: 0%; transition: --glow 0.5s ease; }
.glow::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
    background:
        radial-gradient(240px circle at var(--mx) var(--my), rgba(255, 178, 102, calc(var(--glow) * 0.95)), rgba(255, 178, 102, 0) 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 35%, rgba(255, 255, 255, 0.02) 70%, rgba(255, 255, 255, 0.08));
    -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, linear-gradient(#000 0 0); mask-composite: exclude; }
@media (hover: hover) and (pointer: fine) {
    .glow:hover { --glow: 1; }
}

/* botões principais acendem ao passar o mouse */
.btn-accent { box-shadow: 0 0 0 0 rgba(233, 138, 46, 0); }
@media (hover: hover) { .btn-accent:hover { box-shadow: 0 10px 34px -6px rgba(233, 138, 46, 0.55); } }

/* ---------- entrada com a marca ---------- */
/* a cobertura já vem no HTML (aparece antes de qualquer conteúdo); sem JS ela não existe; se o JS travar, some sozinha em 20 s */
.intro { position: fixed; inset: 0; z-index: 400; display: grid; place-content: center; justify-items: center; gap: clamp(22px, 4vh, 36px); background: var(--bg); animation: introSafety 0.6s 20s forwards; }
html:not(.js) .intro { display: none; }
@keyframes introSafety { to { opacity: 0; visibility: hidden; } }
.intro-mark { position: relative; width: min(46vw, 260px); animation: introMark 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes introMark { from { opacity: 0; transform: scale(0.86); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
.intro-mark img { width: 100%; height: auto; }
/* barra logo abaixo da marca; o preenchimento anda com --p (0 a 1, js/motion.js) e tem a mesma luz na ponta da barra de rolagem */
/* (o preenchimento cresce em largura, sem recorte: a luz da ponta e o halo não são cortados nas laterais) */
.intro-line { position: relative; width: min(40vw, 220px); height: 2px; border-radius: 2px; background: var(--line); overflow: visible; animation: introMark 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.intro-line i { position: absolute; left: 0; top: 0; display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit;
    background: linear-gradient(90deg, rgba(233, 138, 46, 0.15), #c4621a 35%, var(--accent) 75%, #ffb867);
    box-shadow: 0 0 6px rgba(233, 138, 46, 0.4); }
.intro-line i::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%);
    background: radial-gradient(circle, #fff 0 20%, #ffd29a 40%, rgba(233, 138, 46, 0.6) 62%, rgba(233, 138, 46, 0) 74%);
    box-shadow: 0 0 8px 2px rgba(233, 138, 46, 0.4), 0 0 18px 4px rgba(233, 138, 46, 0.15); }
body.intro-on { overflow: hidden; }

/* faixa de logos parada quando está fora da tela (economia de processamento) */
.marquee.off .marquee-track { animation-play-state: paused; }

@supports not (overflow: clip) { body { overflow-x: hidden; } }

/* =========================================================================
   Responsivo
   ========================================================================= */
/* destaques: abaixo de 1280px os 7 cartões não cabem lado a lado; viram faixa que desliza */
@media (max-width: 1279px) {
    .stories { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
    .stories::-webkit-scrollbar { display: none; }
    .story, .story:hover { flex: none; width: clamp(260px, 34vw, 380px); --media-h: clamp(340px, 46vw, 500px); scroll-snap-align: start; }
}

@media (max-width: 1080px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { --c: 4; }
}

@media (max-width: 900px) {
    :root { --header-h: 64px; }
    .menu-btn { display: block; }
    .header-tools { margin-left: auto; }
    .header .btn-header { display: none; }
    .nav { position: fixed; inset: 0; z-index: 1; height: 100svh; margin: 0; padding: calc(var(--header-h) + 28px) var(--gutter) 40px; background: var(--bg); overflow-y: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s; }
    .header.menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease); }
    .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .nav ul a { padding: 16px 0; border-bottom: 1px solid var(--line); font: 600 clamp(2rem, 9vw, 2.8rem)/1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
    .nav ul a::after { display: none; }
    .nav ul a.active { color: var(--accent-2); }
    .header.menu-open .nav ul li { animation: blurIn 0.8s var(--ease) both; }
    .header.menu-open .nav ul li:nth-child(2) { animation-delay: 0.05s; }
    .header.menu-open .nav ul li:nth-child(3) { animation-delay: 0.1s; }
    .header.menu-open .nav ul li:nth-child(4) { animation-delay: 0.15s; }
    .header.menu-open .nav ul li:nth-child(5) { animation-delay: 0.2s; }
    .nav-extra { display: grid; gap: 22px; margin-top: 32px; }
    .nav-extra .btn { width: 100%; }
    .vision-grid, .contact-grid, .careers { grid-template-columns: 1fr; }
    .careers-act { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-2); justify-items: start; text-align: left; }
    .vision-side { position: static; }
    .tech-grid { --c: 3; }
    .social-grid { grid-template-columns: repeat(2, 1fr); }
    .social-card { --icon: clamp(68px, 15vw, 100px); }
    .scroll-progress { display: none; }
}

@media (max-width: 640px) {
    .header-inner { gap: 10px; }
    .logo img { height: 52px; }
    .logo { scale: 0.68; }
    .lang button { min-width: 34px; height: 34px; padding: 0 6px; }
    .lang button[aria-pressed="true"] { padding-bottom: 10px; }
    .featured-head .link-arrow { font-size: 0.92rem; }
    .story, .story:hover { width: 78vw; --media-h: 92vw; }
    .story-play { transform: scale(0.85); width: 44px; height: 44px; top: 12px; right: 12px; }
    .tech-grid { --c: 2; }
    .tech-tile { aspect-ratio: 1 / 0.95; }
    .tt-icon { width: 38px; height: 38px; font-size: 0.9rem; }
    .tt-name { font-size: 1.02rem; }
    .work-all { margin-left: 0; }
    .social-card { aspect-ratio: 3 / 4.4; }
    .social-icon { --icon-y: 34%; }
    .social-text span { font-size: 0.82rem; }
    .social-text em { display: none; }
    .social-go { width: 34px; height: 34px; top: 10px; right: 10px; font-size: 0.8rem; }
    .cta-head p { font-size: 1rem; }
    .years-num { font-size: clamp(4.5rem, 24vw, 6rem); }
    .hero { min-height: 520px; }
    .hero-btn { width: 42px; height: 42px; }
    .hero-scroll-svg { width: 24px; }
    .manifesto-text { margin-left: 0; }
    .search { width: 100%; }
    .work-tools { width: 100%; }
    .work-tools .search { flex: 1; width: auto; min-width: 0; }
    .grid { grid-template-columns: 1fr; gap: 30px; }
    .card-play { opacity: 1; transform: none; width: 48px; height: 48px; margin: -24px 0 0 -24px; background: rgba(255, 255, 255, 0.92); }
    .value { grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 28px 0; }
    .value-n { font-size: 2.2rem; }
    .value h3 { font-size: 1.6rem; }
    .value > i { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .client { width: 136px; height: 64px; margin-right: 6px; }
    .client img { max-width: 100px; max-height: 38px; }
    .clients-head { flex-direction: column; align-items: flex-start; }
    .clients-head .portfolio-title { width: 100%; }
    .footer-top { grid-template-columns: 1fr; }
    .form .btn, .careers-act .btn, .cta .btn { width: 100%; }
    .cta-head .btn { width: auto; }
    .fan { --w: 42vw; }
    .modal { padding: 0; align-items: end; }
    .modal-box { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: calc(100svh - 56px); }
    .modal-close { right: 12px; }
    .consent { left: 12px; bottom: 12px; width: calc(100% - 24px); }
    .consent .row .btn { flex: 1; }
}

/* lista "Projetos por cliente" oculta no site (só para buscadores e IAs lerem no HTML) */
.cases-wrap[hidden] { display: none !important; }
