/* ==========================================================================
   Pevermei · site.css
   Página única com 4 telas fixas (Início, Trabalhos, Sobre, Contato) que trocam
   com um "corte"; só Trabalhos rola. Fontes: Poppins (texto), Bebas Neue (faixa de
   clientes e cursor) e JetBrains Mono (rótulos), carregadas no <head> do index.html.

   Ordem do arquivo:
    1. Cores, medidas e base          8. Sobre
    2. Telas e transição entre elas   9. Contato
    3. Botões                        10. Player
    4. Cabeçalho                     11. Cursor
    5. Início: título e showreel     12. Efeitos de fundo
    6. Início: régua e clientes      13. Modo leve
    7. Trabalhos                     14. Telas menores / maiores
                                     15. Movimento reduzido
   ========================================================================== */

/* ---------- 1. Cores, medidas e base ---------- */
:root {
    --ink: #161513;            /* fundo */
    --panel: #201F1C;          /* painéis */
    --line: #3D3A34;           /* linhas e bordas */
    --cream: #F1EDD4;
    --beige: #C1BDA4;
    --olive: #6B654B;
    --olive-light: #A39C78;
    --red: #DB2531;
    --red-on-dark: #FA5A62;    /* vermelho para texto sobre o escuro */

    --display: 'Bebas Neue', 'Oswald', 'Arial Narrow', Impact, sans-serif;
    --body: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    --topbar: 80px;
    --maxw: 1680px;
    --gutter: clamp(24px, 4vw, 72px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { overflow: hidden; cursor: default; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; cursor: pointer; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-style: normal; font-weight: 500; }

:focus-visible { outline: 3px solid var(--red-on-dark); outline-offset: 3px; border-radius: 4px; }
/* Títulos recebem foco ao trocar de tela (para leitores de tela), sem moldura visível */
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--cream);
    color: var(--ink);
    font-weight: 700;
    border-radius: 8px;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Largura máxima centralizada, com respiro nas laterais */
.wrap {
    width: 100%;
    max-width: calc(var(--maxw) + 2 * var(--gutter));
    margin-inline: auto;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--beige);
}
.eyebrow--mono { font-family: var(--mono); letter-spacing: 0.08em; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: rec 1.6s ease-in-out infinite; flex: none; }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } }

/* ---------- 2. Telas e transição entre elas ---------- */
.app { height: 100%; display: flex; flex-direction: column; }
.views { flex: 1; position: relative; min-height: 0; outline: none; overflow: hidden; }
.view {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(28px) scale(0.985);
    filter: blur(8px);
    transition: opacity 0.5s var(--ease), transform 0.8s var(--ease), filter 0.5s var(--ease), visibility 0s linear 0.6s;
}
.view.is-leaving { transform: translateY(-22px) scale(0.99); }
.view.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
    transition: opacity 0.45s var(--ease) 0.05s, transform 0.65s var(--ease) 0.05s, filter 0.45s var(--ease) 0.05s, visibility 0s;
}
#sobre.is-active { transition: opacity 0.6s var(--ease) 0.08s, transform 0.85s var(--ease) 0.08s, filter 0.6s var(--ease) 0.08s, visibility 0s; }
.view--scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.home, .work, .about, .contact { position: relative; z-index: 1; }
/* Telas fechadas não gastam nada com animações */
.view:not(.is-active) *, .view:not(.is-active) *::before, .view:not(.is-active) *::after { animation-play-state: paused !important; }

/* Contato: a tela nova é "pintada" pela linha (revela junto com ela) */
.views.tx-wipe-on .view.is-leaving { visibility: visible; opacity: 1; transform: none; filter: none; transition: none; z-index: 1; }
.views.tx-wipe-on .view.is-active {
    z-index: 2;
    opacity: 1;
    transform: none;
    filter: none;
    transition: visibility 0s;
    animation: wipeIn 0.85s var(--ease-in-out) both;
}
@keyframes wipeIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.views.tx-wipe-on .view.is-active .contact > * { animation: rise 0.6s var(--ease) both; animation-delay: 0.4s; }
.views.tx-wipe-on .view.is-active .contact > :nth-child(2) { animation-delay: 0.46s; }
.views.tx-wipe-on .view.is-active .contact > :nth-child(3) { animation-delay: 0.52s; }
.views.tx-wipe-on .view.is-active .contact > :nth-child(4) { animation-delay: 0.58s; }
.views.tx-wipe-on .view.is-active .contact > :nth-child(5) { animation-delay: 0.64s; }
/* Voltando no caminho: a tela nova entra pela esquerda, acompanhando a linha */
.views.is-back .view:not(.is-active) { transform: translateX(-28px) scale(0.985); }
.views.is-back .view.is-leaving { transform: translateX(28px); }

/* Linha vermelha que cruza a tela na troca (da direita para a esquerda ao voltar) */
.cut { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.cut span { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; opacity: 0; }
.cut span:first-child { background: var(--red); box-shadow: 0 0 24px 4px rgba(219, 37, 49, 0.45); }
.cut span:last-child { width: 30vw; margin-left: -30vw; background: linear-gradient(to right, transparent, rgba(219, 37, 49, 0.08)); }
.cut.is-on span { animation: sweep 0.9s var(--ease-in-out) both; }
.cut.is-back span:last-child { margin-left: 0; background: linear-gradient(to left, transparent, rgba(219, 37, 49, 0.08)); }
.cut.is-on.is-back span { animation-name: sweepBack; }
@keyframes sweep {
    0% { transform: translateX(0); opacity: 0; }
    12% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateX(100vw); opacity: 0; }
}
@keyframes sweepBack {
    0% { transform: translateX(100vw); opacity: 0; }
    12% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateX(0); opacity: 0; }
}

/* ---------- 3. Botões ----------
   Ao passar o mouse: a cor nova entra em 3 faixas horizontais (bordas em vermelho/ciano)
   e o botão fica com um brilho que "respira". */
.btn {
    --fill: var(--cream);        /* cor que entra */
    --on-fill: var(--ink);       /* texto sobre essa cor */
    --glow: 219, 37, 49;         /* cor do brilho (R, G, B) */
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 28px;
    border: 1.5px solid var(--cream);
    border-radius: 4px;
    background: transparent;
    color: var(--cream);
    font-family: var(--body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.35s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease), background-color 0.45s var(--ease), color 0.3s ease;
}
.btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(90deg, var(--fill) calc(100% - 3px), rgba(255, 40, 70, 0.9) calc(100% - 3px), rgba(0, 220, 255, 0.9) 100%) 0 0 / 0% 36% no-repeat,
        linear-gradient(90deg, var(--fill) calc(100% - 3px), rgba(0, 220, 255, 0.9) calc(100% - 3px), rgba(255, 40, 70, 0.9) 100%) 0 50% / 0% 36% no-repeat,
        linear-gradient(90deg, var(--fill) calc(100% - 3px), rgba(255, 40, 70, 0.9) calc(100% - 3px), rgba(0, 220, 255, 0.9) 100%) 0 100% / 0% 36% no-repeat;
}
.btn:hover::before, .btn:focus-visible::before { animation: btnBands 0.52s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
.btn:hover, .btn:focus-visible {
    color: var(--on-fill);
    transform: none;
    box-shadow: 0 10px 30px -10px rgba(var(--glow), 0.6), 0 0 36px -8px rgba(var(--glow), 0.45);
    animation: btnGlow 2.4s ease-in-out 0.5s infinite;
}
@keyframes btnBands {
    0%   { background-size: 0% 36%, 0% 36%, 0% 36%; }
    30%  { background-size: 70% 36%, 25% 36%, 0% 36%; }
    55%  { background-size: 100% 36%, 80% 36%, 45% 36%; }
    80%  { background-size: 101% 36%, 101% 36%, 95% 36%; }
    100% { background-size: 101% 36%, 101% 36%, 101% 36%; }
}
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 10px 30px -10px rgba(var(--glow), 0.55), 0 0 30px -8px rgba(var(--glow), 0.35); }
    50%      { box-shadow: 0 12px 36px -8px rgba(var(--glow), 0.75), 0 0 52px -6px rgba(var(--glow), 0.55); }
}
.btn__label { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; height: 1.25em; }
.btn__arrow { display: inline-block; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(4px); transition: transform 0.4s var(--ease); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; --glow: 241, 237, 212; }
.btn--red:hover, .btn--red:focus-visible { border-color: var(--cream); }
.btn--ghost { --glow: 241, 237, 212; }
.btn--ink { border-color: var(--ink); color: var(--ink); --fill: var(--ink); --on-fill: var(--cream); --glow: 28, 27, 25; }
.btn--small { min-height: 42px; padding: 8px 20px; font-size: 0.78rem; }

/* ---------- 4. Cabeçalho: logo, menu, idioma e redes ---------- */
.topbar { flex: none; position: relative; z-index: 50; border-bottom: 1px solid var(--line); background: var(--ink); }
.topbar__inner { display: flex; align-items: center; height: var(--topbar); }

/* Logo: cresce 200% com brilho RGB que respira; pulsa a cada clique (site.js) */
.topbar__logo { flex: none; display: inline-block; position: relative; z-index: 60; }
.topbar__logo img { width: 108px; height: auto; transform-origin: 25% 50%; transition: transform 0.75s var(--ease); }
.topbar__logo:hover img, .topbar__logo:focus-visible img {
    transform: scale(2);
    animation: logoRgbIn 0.75s var(--ease) both, logoBreathe 2.6s ease-in-out 0.75s infinite;
}
@keyframes logoRgbIn {
    0%   { filter: drop-shadow(0 0 0 rgba(255, 40, 70, 0)) drop-shadow(0 0 0 rgba(0, 220, 255, 0)) drop-shadow(0 0 0 rgba(241, 237, 212, 0)); }
    45%  { filter: drop-shadow(-2.5px 0 0 rgba(255, 40, 70, 0.8)) drop-shadow(2.5px 0 0 rgba(0, 220, 255, 0.75)) drop-shadow(0 0 8px rgba(241, 237, 212, 0.35)); }
    100% { filter: drop-shadow(-1.5px 0 0 rgba(255, 40, 70, 0.6)) drop-shadow(1.5px 0 0 rgba(0, 220, 255, 0.55)) drop-shadow(0 0 7px rgba(241, 237, 212, 0.28)); }
}
@keyframes logoBreathe {
    0%, 100% { filter: drop-shadow(-1.5px 0 0 rgba(255, 40, 70, 0.6)) drop-shadow(1.5px 0 0 rgba(0, 220, 255, 0.55)) drop-shadow(0 0 7px rgba(241, 237, 212, 0.28)); }
    50%      { filter: drop-shadow(-2px 0 0 rgba(255, 40, 70, 0.72)) drop-shadow(2px 0 0 rgba(0, 220, 255, 0.66)) drop-shadow(0 0 11px rgba(241, 237, 212, 0.36)); }
}

/* Menu à direita, ao lado do seletor de idioma */
.nav { position: relative; margin-left: auto; margin-right: clamp(16px, 2vw, 32px); }
.nav__toggle { display: none; }
.nav__list { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--beige);
    transition: color 0.3s;
}
.nav__item > a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 1.5px;
    background: var(--red-on-dark);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
}
.nav__item > a:hover, .nav__item > a[aria-current="page"] { color: var(--cream); }
.nav__item > a:hover::after, .nav__item > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* Idioma: globo (inglês) e bandeira do Brasil (português) */
.lang {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--line);
}
.lang__btn {
    position: relative;
    width: 34px;
    height: 34px;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    opacity: 0.45;
    filter: grayscale(0.5);
    transition: opacity 0.3s, filter 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.lang__btn svg { width: 100%; height: 100%; display: block; }
.lang__btn:not([aria-pressed="true"]):hover { opacity: 0.85; filter: none; transform: scale(1.06); }
.lang__btn[aria-pressed="true"] { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--red); }

/* Ícones de LinkedIn e WhatsApp (no topo, avançando sobre a margem, e no Contato) */
.social { display: flex; align-items: center; gap: 4px; margin: 0 14px 0 0; padding: 0; list-style: none; }
.social__link {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    color: var(--beige);
    transition: color 0.3s, background 0.3s, transform 0.35s var(--ease);
}
.social__link svg { width: 17px; height: 17px; }
.social__link:hover, .social__link:focus-visible { color: var(--red-on-dark); background: rgba(241, 237, 212, 0.08); transform: translateY(-2px); }
.social--top { margin: 0 calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px)) + 14px) 0 16px; }

/* ---------- 5. Início: título e showreel ---------- */
.home {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: clamp(32px, 4.5vw, 72px);
    padding-block: clamp(16px, 4vh, 48px);
}
.home__text { min-width: 0; }
.home__title {
    margin: 0 0 clamp(14px, 3vh, 26px);
    font-weight: 200;
    font-size: clamp(2.86rem, min(4.55vw, 9.9vh), 5.35rem);
    line-height: 1;
    letter-spacing: -0.045em;
    cursor: default;
}
.home__row { display: block; white-space: nowrap; }
/* Palavras do título entram uma a uma */
.w { display: inline-block; opacity: 0; transform: translateY(40%); filter: blur(6px); }
.home__title .w { transition: opacity 0.9s var(--ease), transform 0.6s var(--ease), filter 0.9s var(--ease), color 0.5s var(--ease); }
.w--strong { font-weight: 500; letter-spacing: -0.05em; }
.w--amp { color: var(--red-on-dark); font-weight: 200; }
.is-ready .w { opacity: 1; transform: none; filter: none; }
.is-ready .home__row:nth-child(1) .w:nth-child(1) { transition-delay: 0.1s; }
.is-ready .home__row:nth-child(1) .w:nth-child(2) { transition-delay: 0.22s; }
.is-ready .home__row:nth-child(2) .w:nth-child(1) { transition-delay: 0.36s; }
.is-ready .home__row:nth-child(2) .w:nth-child(2) { transition-delay: 0.46s; }
.is-ready .home__row:nth-child(2) .w:nth-child(3) { transition-delay: 0.56s; }
.home__lead { max-width: 32ch; margin: 0 0 clamp(18px, 3.6vh, 32px); font-size: clamp(1rem, min(1.3vw, 2.3vh), 1.2rem); color: var(--beige); }
.home__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Visor de câmera do showreel (o vídeo nunca pausa e não tem controles) */
.vf {
    position: relative;
    margin: 0;
    min-width: 0;
    width: min(100%, calc((100dvh - var(--topbar) - 270px) * 16 / 9));
    justify-self: center;
    -webkit-user-select: none;
    user-select: none;
}
.vf__screen { position: relative; z-index: 1; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000; }
/* No modo leve o vídeo tem zoom próprio; com o efeito de distorção, não (veja "Modo leve") */
.vf__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease), translate 0.9s var(--ease), filter 0.6s; }
.vf:hover .vf__video { transform: scale(1.06); }
.vf.is-snap .vf__video { transform: scale(1.1); }
.vf__ui {
    position: absolute;
    inset: 0;
    pointer-events: none;
    color: #fff;
    font-family: var(--mono);
    font-size: clamp(0.66rem, 0.9vw, 0.8rem);
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    font-variant-numeric: tabular-nums;
}
/* Cantos: entram com a tela e se abrem com o mouse em cima */
.vf__corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 0 solid var(--cream);
    opacity: 0;
    transition: top 0.7s var(--ease), left 0.7s var(--ease), right 0.7s var(--ease), bottom 0.7s var(--ease), opacity 0.6s var(--ease), border-color 0.4s, width 0.6s var(--ease), height 0.6s var(--ease);
}
.vf__corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf__corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf__corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf__corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.is-active .vf__corner { opacity: 1; }
.is-active .vf__corner--tl { top: 14px; left: 14px; }
.is-active .vf__corner--tr { top: 14px; right: 14px; }
.is-active .vf__corner--bl { bottom: 14px; left: 14px; }
.is-active .vf__corner--br { bottom: 14px; right: 14px; }
.vf:hover .vf__corner { width: 34px; height: 34px; }
.vf:hover .vf__corner--tl { top: 22px; left: 22px; }
.vf:hover .vf__corner--tr { top: 22px; right: 22px; }
.vf:hover .vf__corner--bl { bottom: 22px; left: 22px; }
.vf:hover .vf__corner--br { bottom: 22px; right: 22px; }
.vf.is-snap .vf__corner { border-color: var(--red-on-dark); }
/* Textos dentro do quadro, longe dos cantos */
.vf__rec { position: absolute; top: 26px; left: 70px; display: flex; align-items: center; gap: 8px; letter-spacing: 0.08em; }
.vf__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: rec 1.2s ease-in-out infinite; }
.vf__meta { position: absolute; top: 26px; right: 70px; letter-spacing: 0.06em; opacity: 0.85; transform: translateX(-10%); }
.vf__tc { position: absolute; left: 70px; bottom: 22px; padding: 2px 8px; background: rgba(0, 0, 0, 0.5); border-radius: 4px; }
/* Clique no vídeo: "disparo" de câmera */
.vf__hit { position: absolute; inset: 0; }
.vf__hit:focus-visible { outline-offset: -4px; }
.vf__shutter { position: absolute; inset: 0; pointer-events: none; background: #fff; opacity: 0; }
.vf__shutter.is-on { animation: shutter 0.55s var(--ease); }
@keyframes shutter { 0% { opacity: 0.55; } 100% { opacity: 0; } }
/* Barra de progresso abaixo do quadro (site.js só muda o scaleX, sem recalcular o layout) */
.vf__bar { display: flex; align-items: center; gap: 14px; padding-top: 14px; }
.vf__progressbar { position: relative; flex: 1; min-width: 0; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.vf__progress { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
/* Efeito de distorção (datamosh.js): o canvas fica atrás do visor e passa além das bordas.
   Enquanto ele está ligado, vídeo, cantos, textos e barra são desenhados no canvas. */
.vf__fx { position: absolute; z-index: 0; pointer-events: none; display: block; opacity: 0; }
.vf__screen.fx-ready { background: transparent; }
.vf__screen.fx-ready .vf__video { opacity: 0; }
.vf:has(.vf__screen.fx-ready) .vf__fx { opacity: 1; }
.vf:has(.vf__screen.fx-ready) .vf__corner, .vf:has(.vf__screen.fx-ready) .vf__progressbar,
.vf:has(.vf__screen.fx-ready) .vf__rec, .vf:has(.vf__screen.fx-ready) .vf__meta, .vf:has(.vf__screen.fx-ready) .vf__tc { visibility: hidden; }

/* ---------- 6. Início: régua de timeline e faixa de clientes ---------- */
.view--home { --clients-h: 55px; }
/* Régua: só decoração de fundo, a 15%, sem agulha e sem clique */
.ruler {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--clients-h) + 10px);
    z-index: 0;
    padding-bottom: 10px;
    opacity: 0.15;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}
.ruler__inner {
    position: relative;
    height: 30px;
    background:
        repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 12px) left bottom / 100% 7px no-repeat,
        repeating-linear-gradient(to right, var(--olive) 0 1px, transparent 1px 120px) left bottom / 100% 14px no-repeat;
    border-bottom: 1px solid var(--line);
}
.ruler__labels { position: absolute; inset: 0 0 auto 0; height: 14px; }
.ruler__labels span {
    position: absolute;
    top: 0;
    padding-left: 4px;
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--olive-light);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Faixa "Trusted by": as duas listas andam juntas para a direita (animação do navegador) */
.clients { flex: none; display: flex; align-items: stretch; height: var(--clients-h); border-top: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.clients__label {
    flex: none;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: calc(max(var(--gutter), env(safe-area-inset-left, 0px)) + 168px);   /* largura fixa: não muda com o idioma */
    margin: 0;
    padding: 0 22px 0 max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--cream);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.clients__track { display: flex; overflow: hidden; min-width: 0; }
.clients__track > .clients__rail { display: flex; flex: none; will-change: transform; animation: clientsRun 70s linear infinite; }
@keyframes clientsRun { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
.clients__list {
    display: flex;
    flex: none;
    align-items: center;
    gap: 44px;
    margin: 0;
    padding: 0 22px;
    list-style: none;
    font-family: var(--display);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--beige);
    will-change: transform;
}
.clients__list li { white-space: nowrap; display: inline-block; transition: color 0.3s, transform 0.5s var(--ease); }
.clients__list li::after { content: "✦"; display: inline-block; margin-left: 44px; color: var(--red); font-size: 0.75em; transition: transform 0.6s var(--ease); }
.clients__list li:hover { color: var(--cream); transform: translateY(-3px) scale(1.08); }
.clients__list li:hover::after { transform: rotate(180deg) scale(1.3); }

/* ---------- 7. Trabalhos ---------- */
.work { padding-bottom: 96px; }
.work__head {
    position: sticky;
    top: 0;
    z-index: 5;
    padding-block: clamp(18px, 3.5vh, 32px) 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
}
/* Abas em vermelho; a bolinha só fica vermelha na aba aberta */
.tabs { position: relative; display: flex; flex-wrap: wrap; gap: clamp(20px, 3.4vw, 52px); }
.tabs__ind {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0;
    border-radius: 2px;
    background: var(--red);
    pointer-events: none;
    transition: left 0.7s var(--ease), width 0.7s var(--ease), background 0.5s ease;
}
.tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0 16px;
    border: 0;
    background: none;
    color: var(--red-on-dark);
    opacity: 0.62;
    font-family: var(--body);
    font-size: clamp(1.3rem, 2.1vw, 1.9rem);
    font-weight: 300;
    letter-spacing: -0.025em;
    transition: color 0.3s, opacity 0.3s;
}
.tab::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--beige);
    opacity: 0.35;
    box-shadow: none;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.tab:hover { opacity: 0.9; }
.tab:hover::before { opacity: 0.7; transform: scale(1); }
.tab[aria-pressed="true"] { opacity: 1; font-weight: 500; letter-spacing: -0.03em; }
.tab[aria-pressed="true"]::before { background: var(--red); opacity: 1; transform: scale(1.15); box-shadow: 0 0 10px 1px rgba(219, 37, 49, 0.7); }
.tabs:hover .tab:not(:hover):not([aria-pressed="true"]) { opacity: 0.45; }

/* Título da categoria (letras com peso decrescente, montadas no site.js) e descrição */
.work__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 16px 48px;
    padding-block: clamp(32px, 6vh, 64px) clamp(28px, 4.5vh, 48px);
}
.work__cat { margin: 0; font-weight: 200; font-size: clamp(2.4rem, min(5.1vw, 8.5vh), 5.1rem); line-height: 0.9; letter-spacing: -0.05em; }
.work__desc { margin: 0 0 10px; max-width: 42ch; font-size: 1.08rem; color: var(--beige); }
/* Troca de aba: o conteúdo sai rápido e o novo sobe */
.work__intro, .work__body { transition: opacity 0.14s ease, transform 0.2s var(--ease); }
.work.is-switching .work__intro, .work.is-switching .work__body { opacity: 0; transform: translateY(-6px); filter: none; }
.work__intro > * { animation: riseFast 0.45s var(--ease) both; }
.work__intro > :nth-child(2) { animation-delay: 0.04s; }
.work__body > * { animation: riseFast 0.45s var(--ease) 0.06s both; }
@keyframes riseFast { from { opacity: 0; transform: translateY(14px); } }

/* Grade editorial (Editing, Motion e Films): um destaque grande e os outros ao redor.
   No computador as colunas se ajustam à largura (mín. 300px); veja "Telas maiores". */
.ed-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 24px); margin-inline: auto; }
.card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    color: var(--cream);
}
.card--feature { grid-column: span 4; grid-row: span 2; }
.card--wide { grid-column: span 3; }
.card--full { grid-column: span 6; }
.card__media {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel);
    clip-path: inset(0 round 12px);
    transition: clip-path 0.7s var(--ease);
}
.card--feature .card__media { flex: 1; aspect-ratio: auto; min-height: 260px; }
.card:hover .card__media { clip-path: inset(6px round 18px); }
.card__media img, .card__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease), opacity 0.35s, filter 0.6s;
}
.card__media img { filter: saturate(0.85); }
.card__media video { opacity: 0; }                       /* prévia de 8 s ao passar o mouse */
.card.is-previewing .card__media video { opacity: 1; }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.06); filter: none; }
.card__dur {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(28, 27, 25, 0.78);
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: background 0.3s;
}
.card:hover .card__dur { background: var(--red); }
.card__info { display: flex; gap: 14px; align-items: baseline; }
.card__client { font-weight: 300; font-size: 1.45rem; line-height: 1.12; letter-spacing: -0.025em; transition: color 0.3s, transform 0.5s var(--ease); }
.card--feature .card__client { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.card:hover .card__client { color: var(--red-on-dark); transform: translateX(6px); }

/* Shorts: feed vertical infinito; o vídeo do centro aparece inteiro e as pontas dos vizinhos */
.work.is-shorts { padding-bottom: 0; }
.work.is-shorts .work__intro { display: none; }
.work.is-shorts .work__body { min-height: calc(100dvh - var(--topbar) - 92px); display: grid; place-items: center; padding-block: 12px; }
.shorts { display: grid; grid-template-columns: auto minmax(0, 420px); justify-content: center; gap: clamp(24px, 5vw, 72px); align-items: center; }
.shorts__stage { display: flex; align-items: center; gap: 16px; }
.shorts__feed {
    --h: calc(100dvh - var(--topbar) - 120px);   /* cabe inteiro abaixo das abas */
    height: var(--h);
    width: calc(var(--h) * 0.836 * 9 / 16);
    padding-block: calc(var(--h) * 0.082);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.shorts__feed::-webkit-scrollbar { display: none; }
.short {
    position: relative;
    flex: none;
    height: calc(var(--h) * 0.836);
    aspect-ratio: 9 / 16;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    opacity: 0.35;
    transform: scale(0.93);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.short.is-active { opacity: 1; transform: none; box-shadow: 0 0 0 2px var(--olive-light), 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.short:not(.is-active):hover { opacity: 0.65; transform: scale(0.96); }
.short video { width: 100%; height: 100%; object-fit: cover; }
.short__hit { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; }
.short__hit:focus-visible { outline-offset: -4px; }
/* Ícone de pausar/tocar que aparece e some ao clicar */
.short__flash {
    position: absolute;
    left: 50%;
    top: 50%;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}
.short__flash.is-on { animation: flash 1.1s var(--ease); }
@keyframes flash { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.shorts__controls { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.shorts__btn {
    width: 52px;
    height: 52px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    font-size: 1.2rem;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.shorts__btn:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.shorts__btn[data-dir="-1"]:hover { transform: translateY(-4px); }
.shorts__btn[data-dir="1"]:hover { transform: translateY(4px); }
/* Som e tela cheia: ícones na mesma coluna das setas; o som fica vermelho enquanto está mudo */
.shorts__btn svg { display: block; width: 22px; height: 22px; margin: auto; }
.shorts__mute { margin-top: 10px; }
.shorts__mute.is-muted { background: var(--red); border-color: var(--red); color: #fff; }
.shorts__mute.is-muted:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
/* Linha de progresso na base do vídeo ativo */
.short__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(241, 237, 212, 0.18); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.short__bar span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.short.is-active .short__bar { opacity: 1; }
.shorts__info { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.shorts__info p { margin: 0; }
.shorts__client { font-weight: 200; font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -0.04em; }
.shorts__desc { max-width: 36ch; color: var(--beige); font-size: 1rem; }

/* ---------- 8. Sobre: foto P&B com luz que segue o mouse + texto ---------- */
.about { flex: 1; min-height: 0; display: grid; align-items: center; }
.portrait {
    --lx: 50%;
    --ly: 30%;
    position: relative;
    margin: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #0E0E0D;
}
/* A foto entra em corte seco, só com uma leve opacidade */
.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    filter: grayscale(1) contrast(1.06);
    opacity: 0;
    transition: opacity 0.45s ease, translate 0.8s var(--ease);
}
.view.is-active .portrait img { opacity: 1; }
.portrait__fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; touch-action: pan-y; }   /* distorção (datamosh.js) */
.portrait.fx-ready .portrait__fx { opacity: 1; }
.portrait__light {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--lx) var(--ly), rgba(241, 237, 212, 0.22), rgba(241, 237, 212, 0) 38%);
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
}
.portrait:hover .portrait__light { opacity: 1; }
.portrait::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to top, var(--ink), transparent); pointer-events: none; }
.portrait__cap {
    position: absolute;
    left: max(var(--gutter), env(safe-area-inset-left, 0px));
    bottom: clamp(18px, 4vh, 36px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}
.portrait__name { font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; }
.portrait__role { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--beige); }
.portrait__role::before { content: ""; display: inline-block; width: 18px; height: 1.5px; margin-right: 8px; vertical-align: middle; background: var(--red); }
.about__text { min-width: 0; max-width: 640px; padding-block: clamp(20px, 4vh, 48px); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.view__title { margin: 0; font-weight: 200; font-size: clamp(2.6rem, min(5vw, 8vh), 5rem); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.about__text .view__title { margin-bottom: clamp(18px, 3.5vh, 32px); }
.about__text .view__title em { color: var(--red-on-dark); }
.about__p { margin: 0 0 18px; max-width: 54ch; color: var(--beige); font-size: clamp(1rem, min(1.3vw, 2.3vh), 1.15rem); line-height: 1.7; }
.about__p strong { color: var(--cream); }
.about__p:empty { display: none; }              /* parágrafo sem texto em um dos idiomas */
/* O texto entra depois da foto, um item de cada vez */
#sobre.is-active .about__text > * { animation: rise 0.85s var(--ease) 0.4s both; }
#sobre.is-active .about__text > :nth-child(2) { animation-delay: 0.48s; }
#sobre.is-active .about__text > :nth-child(3) { animation-delay: 0.56s; }
#sobre.is-active .about__text > :nth-child(4) { animation-delay: 0.64s; }
#sobre.is-active .about__text > :nth-child(5) { animation-delay: 0.72s; }

/* ---------- 9. Contato: título, e-mail (só botão Copiar), WhatsApp e redes ---------- */
.view--contact { background: var(--ink); }
.contact { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(20px, 4vh, 48px); }
.contact > * { width: 100%; max-width: 680px; margin-inline: auto; }
.contact__title {
    margin: 0 auto clamp(14px, 2.6vh, 22px);
    font-weight: 200;
    font-size: clamp(1.8rem, min(3vw, 5vh), 2.8rem);
    line-height: 1;
    letter-spacing: -0.045em;
    text-wrap: balance;
}
.contact__title em { color: var(--red-on-dark); font-weight: 400; }
.contact__rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact__row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
    transition: padding 0.5s var(--ease);
}
.contact__row:hover { padding-left: 8px; }
.contact__label { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; text-transform: uppercase; color: var(--beige); }
/* E-mail e telefone sem seleção de texto (copiar só pelo botão) */
.contact__value {
    font-weight: 300;
    font-size: clamp(1.05rem, min(1.8vw, 3vh), 1.4rem);
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
}
.contact .btn { min-height: 34px; padding: 6px 14px; font-size: 0.66rem; gap: 6px; }
.contact .btn--ink { border-color: var(--cream); color: var(--cream); --fill: var(--cream); --on-fill: var(--ink); --glow: 241, 237, 212; }
.contact .btn--red:hover { border-color: var(--ink); }
.contact .btn--ink:hover, .contact .btn--ink:focus-visible, .contact .btn--red:hover, .contact .btn--red:focus-visible { color: var(--ink); }
.contact__status { min-height: 1.4em; margin: 10px auto 0; font-size: 0.85rem; font-weight: 700; color: var(--beige); }
.social--contact { margin: 20px auto 0; gap: 10px; }
.social--contact .social__link { width: 42px; height: 42px; border: 1px solid var(--line); }
.social--contact .social__link svg { width: 18px; height: 18px; }
.social--contact .social__link:hover, .social--contact .social__link:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- 10. Player ---------- */
.player {
    width: min(1100px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    color: var(--cream);
    overflow: auto;
}
.player[open] { animation: pop 0.5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.player::backdrop { background: rgba(10, 10, 9, 0.86); backdrop-filter: blur(6px); }
.player__box { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.player__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.player__title { margin: 0; font-weight: 200; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -0.04em; }
.player__close {
    flex: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    font-size: 1rem;
    transition: background 0.3s, color 0.3s, transform 0.5s var(--ease);
}
.player__close:hover { background: var(--cream); color: var(--ink); transform: rotate(90deg); }
/* Sem fundo preto em volta: o vídeo ocupa só o tamanho dele, centralizado */
.player__stage { display: flex; justify-content: center; align-items: center; }
.player__video { width: 100%; max-height: 70dvh; border-radius: 10px; background: transparent; }
.player__stage.is-vertical .player__video { width: auto; height: 70dvh; }
.player__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.player__hint { display: none; flex: 1; font-size: 0.72rem; line-height: 1.3; color: var(--beige); text-align: center; }
/* Celular (em pé ou deitado): player em tela cheia; deslizar para o lado troca, para baixo fecha */
@media (max-width: 760px), (max-height: 500px) {
    .player { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
    .player__box { height: 100%; gap: 10px; padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)); }
    .player__title { font-size: 1.5rem; align-self: center; }
    .player__stage { flex: 1; min-height: 0; }
    .player__video { max-height: 100%; border-radius: 6px; }
    .player__stage.is-vertical .player__video { height: 100%; width: auto; max-width: 100%; }
    .player__hint { display: block; }
}
/* ---------- 11. Cursor: anel vermelho + pontinho; cresce em links; texto sobre vídeos ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
    .cursor {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
        display: block;
        width: 50px;
        height: 50px;
        margin: -25px 0 0 -25px;
        border-radius: 50%;
        border: 1px solid rgba(219, 37, 49, 0.5);
        pointer-events: none;
        transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    }
    .cursor__inner {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        margin: -4px 0 0 -4px;
        border-radius: 50%;
        background: var(--red);
        transition: opacity 0.3s ease, scale 0.2s var(--ease);
    }
    .cursor__text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: var(--display);
        font-size: 12px;
        letter-spacing: 2px;
        color: var(--cream);
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .cursor.is-hovering { width: 80px; height: 80px; margin: -40px 0 0 -40px; border-color: var(--cream); background: rgba(219, 37, 49, 0.1); }
    .cursor.is-hovering .cursor__inner { opacity: 0; scale: 0; }
    .cursor.has-text { width: 100px; height: 100px; margin: -50px 0 0 -50px; background: var(--red); border-color: var(--red); }
    .cursor.has-text .cursor__text { opacity: 1; }
    .cursor.is-hidden { opacity: 0; }
}
/* Sobre a logo, o anel fica vazado */
.cursor.is-logo { background: transparent; }

/* ---------- 12. Efeitos de fundo (sutis, decorativos e sem cliques) ---------- */
/* Grade de pontinhos que se move levemente com o mouse */
.fx-dots {
    position: absolute;
    z-index: 0;
    width: 380px;
    height: 280px;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(241, 237, 212, 0.34) 1.5px, transparent 2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
    mask-image: radial-gradient(closest-side, #000 30%, transparent);
    translate: calc(var(--mx, 0) * -16px) calc(var(--my, 0) * -12px);
    transition: translate 0.9s var(--ease);
}
.fx-dots--a { top: 4%; right: 1%; }
.fx-dots--b { left: -60px; bottom: 90px; width: 300px; height: 220px; opacity: 0.6; translate: calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 8px); }
.fx-dots--work { top: 60px; right: 2%; width: 460px; height: 300px; opacity: 0.7; }
.fx-dots--about { right: 3%; bottom: 6%; width: 340px; height: 240px; opacity: 0.6; }
.fx-dots--contact { top: 4%; right: 2%; }
/* Brilho vermelho difuso atrás do showreel */
.fx-glow {
    position: absolute;
    z-index: 0;
    left: -12%;
    top: 4%;
    width: 70%;
    height: 85%;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(219, 37, 49, 0.16), rgba(219, 37, 49, 0.05) 55%, transparent);
    translate: calc(var(--mx, 0) * 22px) calc(var(--my, 0) * 16px);
    transition: translate 1.2s var(--ease);
}
/* Marcas de registro (+) nos cantos */
.reg { position: absolute; z-index: 0; width: 16px; height: 16px; pointer-events: none; opacity: 0.55; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--olive-light); }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reg::after { top: 50%; left: 0; right: 0; height: 1px; }
.reg--tl { top: 22px; left: max(calc(var(--gutter) / 2 - 8px), 8px); }
.reg--tr { top: 22px; right: max(calc(var(--gutter) / 2 - 8px), 8px); }
.reg--br { bottom: 22px; right: max(calc(var(--gutter) / 2 - 8px), 8px); }
/* Linhas de edição: trilhas com "clipes" de luz e pontos de corte tracejados */
.fx-lines { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fx-track {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--y);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(241, 237, 212, 0.07) 15%, rgba(241, 237, 212, 0.07) 85%, transparent);
}
.fx-track::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: var(--w);
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(to right, transparent, rgba(219, 37, 49, 0.55), rgba(241, 237, 212, 0.35), transparent);
    animation: clip var(--d) linear infinite;
    animation-delay: var(--delay);
}
@keyframes clip { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.fx-cut {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--x);
    width: 1px;
    background: repeating-linear-gradient(to bottom, rgba(241, 237, 212, 0.09) 0 6px, transparent 6px 14px);
    opacity: 0;
    animation: cutline var(--d) ease-in-out infinite;
    animation-delay: var(--delay);
}
@keyframes cutline { 0%, 100% { opacity: 0; transform: scaleY(0.6); } 40%, 60% { opacity: 1; transform: scaleY(1); } }

/* Por cima do site inteiro: luz difusa, light leaks, textura de papel e vinheta.
   Sem mistura de camadas nem desfoque em tempo real (pesava para o navegador). */
.fx-tex { position: fixed; inset: 0; z-index: 130; pointer-events: none; overflow: hidden; contain: strict; }
.fx-tex__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 70% at 50% -10%, rgba(241, 237, 212, 0.06), transparent 60%),
        radial-gradient(80% 60% at 100% 100%, rgba(107, 101, 75, 0.08), transparent 70%);
}
.fx-tex__paper {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.75' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 -0.55'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23f)'/%3E%3C/svg%3E");
    background-size: 260px 260px;
}
.fx-tex__paper::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='1' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 22 -17'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23d)'/%3E%3C/svg%3E");
    background-size: 420px 420px;
}
.fx-leak { position: absolute; border-radius: 50%; opacity: 0; scale: 1.35; will-change: transform; }
.fx-leak--a {
    width: 46vmax;
    height: 34vmax;
    left: -22vmax;
    top: -12vmax;
    background: radial-gradient(closest-side, rgba(219, 37, 49, 0.2), rgba(230, 90, 56, 0.12) 35%, rgba(242, 120, 60, 0.05) 65%, transparent);
    animation: leakA 19s ease-in-out infinite;
}
.fx-leak--b {
    width: 40vmax;
    height: 40vmax;
    right: -20vmax;
    bottom: -22vmax;
    background: radial-gradient(closest-side, rgba(242, 166, 90, 0.17), rgba(230, 100, 70, 0.09) 40%, rgba(219, 37, 49, 0.035) 70%, transparent);
    animation: leakB 23s ease-in-out infinite;
}
.fx-leak--c {
    width: 22vmax;
    height: 60vmax;
    right: 18vw;
    top: -30vmax;
    background: radial-gradient(closest-side, rgba(241, 237, 212, 0.13), rgba(241, 237, 212, 0.05) 55%, transparent);
    transform: rotate(18deg);
    animation: leakC 29s ease-in-out infinite;
}
@keyframes leakA { 0%, 100% { opacity: 0.16; transform: translate(0, 0) scale(1); } 45% { opacity: 0.32; transform: translate(4vw, 3vh) scale(1.12); } 60% { opacity: 0.26; } }
@keyframes leakB { 0%, 100% { opacity: 0.12; transform: translate(0, 0) scale(1); } 50% { opacity: 0.26; transform: translate(-5vw, -4vh) scale(1.08); } }
@keyframes leakC { 0%, 100% { opacity: 0; transform: rotate(18deg) translateX(0); } 40% { opacity: 0.12; } 55% { opacity: 0.2; transform: rotate(18deg) translateX(-8vw); } 70% { opacity: 0; } }
.fx-tex__vignette { position: absolute; inset: 0; background: radial-gradient(130% 110% at 50% 45%, transparent 55%, rgba(10, 9, 8, 0.38) 100%); }
/* Granulação de filme */
.fx-grain {
    position: fixed;
    inset: -12%;
    z-index: 140;
    pointer-events: none;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 0.9s steps(5) infinite;
    will-change: transform;
    contain: strict;
}
@keyframes grain {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -4%); }
    60% { transform: translate(-4%, -1%); }
    80% { transform: translate(3%, 3%); }
    100% { transform: translate(0, 0); }
}

/* ---------- 13. Modo leve (computadores mais simples; ligado no <head> ou pelo site.js) ---------- */
/* Sem o efeito de distorção, vídeo e foto ficam com zoom/deslocamento próprios.
   Fora do modo leve não: parados, precisam ser idênticos ao efeito, senão a troca "pula". */
html:not(.is-lite) .vf__video, html:not(.is-lite) .vf:hover .vf__video, html:not(.is-lite) .vf.is-snap .vf__video { transform: none; translate: none !important; }
html:not(.is-lite) .portrait img { translate: none !important; }
.is-lite .fx-grain, .is-lite .fx-leak, .is-lite .fx-cut, .is-lite .fx-track::after { animation: none !important; }
.is-lite .fx-track::after { display: none; }
.is-lite .fx-leak--a { opacity: 0.22; }
.is-lite .fx-leak--b { opacity: 0.18; }
.is-lite .fx-leak--c { opacity: 0.1; transform: rotate(18deg); }
.is-lite .view, .is-lite .view.is-active, .is-lite .view.is-leaving, .is-lite .w,
.is-lite .work.is-switching .work__intro, .is-lite .work.is-switching .work__body { filter: none !important; }
.is-lite .vf__fx, .is-lite .portrait__fx { display: none !important; }
.is-lite .btn:hover, .is-lite .btn:focus-visible { animation: none; }
.is-lite .topbar__logo:hover img, .is-lite .topbar__logo:focus-visible img { animation: logoRgbIn 0.75s var(--ease) both; }

/* ---------- 14. Telas menores e maiores ---------- */
/* Se o conteúdo não couber, a tela rola por dentro (no Início, a faixa de clientes vai junto, no fim) */
@media (max-width: 1000px), (max-height: 620px) {
    .view:not(.view--home) { overflow-y: auto; }
    .view--home { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
    .view--home::-webkit-scrollbar { display: none; }
    .view--home .home { flex: 1 0 auto; }
}

/* Tablet e celular */
@media (max-width: 1000px) {
    .home { grid-template-columns: minmax(0, 1fr); align-content: center; }
    .vf { width: min(100%, 620px); }
    .work__intro { grid-template-columns: minmax(0, 1fr); }
    .ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card, .card--wide { grid-column: span 1; }
    .card--feature, .card--full { grid-column: span 2; grid-row: auto; }
    .card--feature .card__media { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
    .about { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; }
    .about__text { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); max-width: none; }
    .portrait {
        height: 52svh;
        -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
        mask-image: linear-gradient(to bottom, #000 70%, transparent);
    }
}

/* Celular */
@media (max-width: 760px) {
    :root { --topbar: 64px; --gutter: 20px; }
    .topbar__logo img { width: 90px; }
    .nav { margin-right: 10px; }
    .nav__toggle {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 6px 14px;
        border: 1.5px solid var(--line);
        border-radius: 999px;
        background: transparent;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .nav__list {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% + 12px);
        flex-direction: column;
        align-items: stretch;
        min-width: 260px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--panel);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }
    .nav__list.is-open { display: flex; }
    .nav__item { flex-wrap: wrap; }
    .nav__item > a { flex: 1; padding: 14px 16px; }
    .social--top { display: none; }
    .home { gap: 20px; }
    .home__row { white-space: normal; }
    .vf__meta { display: none; }
    .vf__rec { top: 18px; left: 54px; }
    .vf__tc { left: 54px; bottom: 16px; }
    .ruler__labels span:nth-child(even) { display: none; }
    .fx-dots--a { width: 240px; height: 180px; }
    .fx-dots--b, .fx-dots--work, .fx-dots--contact, .reg { display: none; }
    .tabs { overflow-x: auto; flex-wrap: nowrap; }
    .tab { opacity: 0.85; }                        /* abas fechadas mais legíveis no celular */
    .ed-grid { grid-template-columns: minmax(0, 1fr); }
    .card, .card--wide, .card--feature, .card--full { grid-column: span 1; }
    /* Shorts: vídeo o maior possível; ao lado, a coluna fina de ícones (setas, som, tela cheia) */
    .work.is-shorts .work__body { padding-block: 8px; }
    .shorts { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; }
    .shorts__stage { gap: 10px; }
    .shorts__feed {
        --sw: min(calc(100vw - 74px), calc((100svh - var(--topbar) - 150px) * 0.50625));   /* largura do vídeo */
        --h: calc(var(--sw) * 16 / 9 / 0.9);
        width: var(--sw);
        padding-block: calc(var(--h) * 0.05);
    }
    .short { height: calc(var(--h) * 0.9); }
    .shorts__controls { gap: 8px; }
    .shorts__btn { width: 40px; height: 40px; font-size: 1.05rem; }
    .shorts__btn svg { width: 19px; height: 19px; }
    .shorts__mute { margin-top: 6px; }
    .shorts__info { align-items: center; text-align: center; }
    .shorts__client { font-size: 1.6rem; }
    .shorts__desc { display: none; }
    .contact__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .contact__row .btn { justify-self: start; }
}
/* Telas de toque (e celular): botões e rótulos do Contato com tamanho confortável para o dedo */
@media (max-width: 760px), (pointer: coarse) {
    .contact .btn { min-height: 44px; padding: 10px 18px; font-size: 0.74rem; }
    .contact__label { font-size: 0.72rem; }
}

/* Celular deitado: showreel e texto lado a lado, como no computador */
@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
    .home { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-content: center; gap: 24px; padding-block: 14px; }
    .vf { width: 100%; }
    .home__title { font-size: clamp(1.7rem, 4.4vw, 2.3rem); margin-bottom: 10px; }
    .home__lead { font-size: 0.86rem; margin-bottom: 14px; }
    .home .eyebrow { margin-bottom: 10px; }
    /* Shorts: as abas rolam junto, e o vídeo usa toda a altura abaixo do cabeçalho */
    .work__head { position: static; }
    .work.is-shorts .work__body { min-height: calc(100svh - var(--topbar)); }
    .work.is-shorts .shorts__feed { --h: calc(100svh - var(--topbar) - 16px); }
}
/* Telas bem estreitas: as 4 abas de Work cabem sem arrastar; o título do Início fica em 2 linhas */
@media (max-width: 400px) {
    .tabs { gap: 14px; }
    .tab { font-size: 1.08rem; gap: 6px; }
}
@media (max-width: 380px) {
    .home__title { font-size: min(2.86rem, 11.3vw); }
}
/* Em português "Edição de vídeo" é mais longo: no celular o título fica um pouco menor */
@media (max-width: 480px) {
    html[lang="pt-BR"] .home__title { font-size: min(2.86rem, 10vw); }
}

/* Computador */
@media (min-width: 1001px) {
    /* Trabalhos: descrição da categoria em uma linha, ao lado do título */
    .work__intro { grid-template-columns: minmax(0, 1fr) auto; padding-block: clamp(20px, 3.5vh, 40px) clamp(18px, 3vh, 32px); }
    .work__desc { max-width: none; white-space: nowrap; }
    /* Grade: quantas colunas couberem (mín. 300px); o destaque ocupa 2 x 2 */
    .ed-grid { width: auto; margin-inline: 0; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-flow: dense; gap: 22px 18px; }
    .ed-grid .card, .ed-grid .card--wide, .ed-grid .card--full { grid-column: span 1; grid-row: auto; }
    .ed-grid .card--feature { grid-column: span 2; grid-row: span 2; }
    .ed-grid .card__client { font-size: 1.2rem; }
    .ed-grid .card--feature .card__client { font-size: clamp(1.5rem, 2vw, 2rem); }
    /* Sobre: foto com proporção fixa (altura toda, até 45% da largura) e texto ao lado, centralizados */
    .about {
        width: 100%;
        max-width: calc(var(--maxw) + 2 * var(--gutter));
        margin: 0 auto;
        padding: clamp(20px, 4vh, 44px) max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(20px, 4vh, 44px) max(var(--gutter), env(safe-area-inset-left, 0px));
        grid-template-columns: auto minmax(0, 760px);
        justify-content: center;
        gap: clamp(40px, 5vw, 110px);
    }
    .portrait { height: 100%; width: auto; aspect-ratio: 4 / 5; max-width: 45vw; border-radius: 14px; }
    .portrait__cap { left: 24px; }
    .about__text { max-width: 820px; padding-right: 0; }
    .about__p { max-width: none; }
}
/* Telas ultrawide: o conteúdo usa mais largura */
@media (min-aspect-ratio: 2/1) and (min-width: 1900px) {
    :root { --maxw: 2200px; }
}

/* ---------- 15. Movimento reduzido (opção de acessibilidade do sistema) ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
    .w { opacity: 1; transform: none; filter: none; }
    .cut { display: none; }
    .clients__track { overflow-x: auto; }
    .clients__track > .clients__rail { animation: none; }
    .fx-grain { animation: none; }
    .fx-track::after, .fx-cut { animation: none; }
    .fx-cut { opacity: 0.6; }
    .fx-leak { animation: none; opacity: 0.15; }
    .topbar__logo:hover img { animation: none; }
    .btn:hover::before { animation: none; background-size: 101% 36%, 101% 36%, 101% 36%; }
    .btn:hover { animation: none; }
}
