/* v2 — página de projeto. Medidas: _framer-ref/medicoes/proj-tree-1440.txt e proj-tree-390.txt */
.pj-main { display: flex; flex-direction: column; align-items: stretch; gap: 64px; margin-top: 0; overflow: clip; }

/* Linhas horizontais da grade: o Framer distribui 4 divisas iguais na altura da página */
.pj-rows { position: absolute; inset: 0; pointer-events: none; z-index: 0; display: flex; flex-direction: column; justify-content: space-evenly; }
.pj-rows .v2-hline { flex: none; }

/* ---------- Capa ---------- */
.pj-hero { position: relative; z-index: 1; padding: 0 32px 32px; margin-top: 32px; }
.pj-cover { position: relative; height: 642px; border-radius: 40px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0 64px; background: #111; isolation: isolate; }
.pj-cover > img, .pj-cover > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -1; }
.pj-cover__title { font: 500 64px/76.8px var(--inter); text-align: center; color: #fff; max-width: 1100px; text-wrap: balance; }

/* ---------- Ficha técnica ---------- */
.pj-facts { padding: 0 var(--pad); }
.pj-facts__box { display: flex; align-items: center; min-height: 132px; padding: 31px 63px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 32px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pj-facts__list { display: flex; align-items: center; margin: 0; }
.pj-fact { position: relative; display: flex; flex-direction: column; gap: 16px; padding-right: 6px; }
.pj-fact + .pj-fact { margin-left: 91px; }
.pj-fact + .pj-fact::before { content: ""; position: absolute; left: -49px; top: 50%; width: 1px; height: 68px; transform: translateY(-50%); background: rgba(255, 255, 255, .1); }
.pj-fact dt { font: 300 16px/19.2px var(--inter); color: var(--muted); }
.pj-fact dd { margin: 0; font: 400 16px/19.2px var(--inter); color: #fff; }
.pj-fact--tools { padding-right: 32px; }
.pj-fact__logo { height: 32px; width: auto; max-width: 160px; object-fit: contain; margin: -6px 0 -7px; }
.pj-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.pj-tools img { width: auto; height: 32px; }
.pj-btn.v2-btn { height: 56px; min-width: 192px; padding: 16px 54px; border-radius: 64px; border-color: rgba(255, 255, 255, .1); margin-left: auto; flex: none; }

/* ---------- Rótulo + título de seção ---------- */
.pj-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pj-eyebrow { font: 400 16px/24px var(--inter); color: #a5a5a5; }
.pj-title { font: 400 46px/57.04px var(--inter); color: #fff; text-wrap: balance; }
.pj-intro { font: 400 16px/24px var(--inter); color: var(--muted); max-width: 720px; }
.pj-line { display: block; height: 1px; width: 100%; background: rgba(255, 255, 255, .1); flex: none; }

/* ---------- Descrição (acende palavra a palavra) ---------- */
.pj-desc { padding: 64px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pj-desc .pj-eyebrow { margin: 0; }
.pj-desc__text { font: 400 16px/24px var(--inter); color: #fff; }
.pj-desc__text p + p { margin-top: 24px; }
.pj-w { display: inline-block; }
.js [data-pj-words] .pj-w { opacity: 0; transform: translateY(10px); }
.js [data-pj-appear] { opacity: 0; }

/* ---------- Desafios ---------- */
.pj-chal { padding: 0 var(--pad); display: flex; flex-direction: column; align-items: center; gap: 64px; }
.pj-chal__cards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 32px; width: 100%; }
.pj-chal__card { display: flex; flex-direction: column; gap: 32px; padding: 29px 27px; border: 1px solid rgba(255, 255, 255, .19); border-radius: 20px; }
.pj-chal__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 39px; margin-bottom: -14px; }
.pj-chal__top h3 { font: 500 18px/21.6px var(--inter); color: #fff; margin: 0; }
.pj-chal__top svg { flex: none; width: 39px; height: 39px; color: #fff; }
.pj-chal__card p { font: 400 16px/24px var(--inter); color: #fff; }

/* ---------- Mídia 3D ligada à rolagem ----------
   Na referência a janela visível ocupa a largura do conteúdo (1312 em 1440); a mídia do painel
   segue a própria proporção. A camada sobreposta sobe por dentro da janela (y 331 → 0). */
.pj-special { padding: 64px var(--pad); display: flex; justify-content: center; }
.pj-special__ui { --ar: 16 / 9; position: relative; width: min(100%, calc(min(900px, 92vh) * (var(--ar)))); aspect-ratio: var(--ar); border-radius: 12px; overflow: hidden; background: #111; will-change: transform; }
.pj-special__bg, .pj-special__bg > img, .pj-special__bg > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pj-special__mask { position: absolute; inset: 0; overflow: hidden; }
.pj-special__over { position: absolute; left: 25%; width: 50%; top: 8%; will-change: transform; }
.pj-special__ui > .pj-special__mask:only-child .pj-special__over { left: 10%; width: 80%; }
.pj-special__over > img, .pj-special__over > video { width: 100%; height: auto; border-radius: 8px; }

/* ---------- Imagem cheia ---------- */
.pj-image { padding: 0 var(--pad); }
.pj-image__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.pj-image__box { --ar: 1312 / 617; position: relative; width: min(100%, calc(min(900px, 92vh) * (var(--ar)))); aspect-ratio: var(--ar); border-radius: 40px; overflow: hidden; background: #111; will-change: transform; }
.js .pj-image__box { transform: scale(.8); }
.pj-image__box > img, .pj-image__box > video { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.pj-image__box:hover > img, .pj-image__box:hover > video { transform: scale(1.04); }
.pj-image__fig figcaption { font: 400 14px/21px var(--inter); color: var(--muted); text-align: center; max-width: 720px; }

/* ---------- Cartões de processo ---------- */
.pj-proc { padding: 0 var(--pad); display: flex; flex-direction: column; align-items: center; gap: 64px; }
.pj-proc__cards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 64px; width: 100%; align-items: center; }
.pj-proc__card { position: relative; display: flex; flex-direction: column; gap: 16px; border-radius: 20px; }
.pj-proc__media { position: relative; }
.pj-proc__media.is-empty { min-height: 120px; }
.pj-proc__media > img, .pj-proc__media > video { width: 100%; height: auto; border-radius: 20px; }
.pj-proc__card h3 { font: 700 28px/34.72px var(--inter); color: #fff; margin: 0; }
.pj-proc__card .pj-line { background: rgba(187, 187, 187, .2); }
.pj-proc__card p { font: 400 12px/18px var(--inter); color: #fff; }
/* post-it: Gochi Hand, -3°, flutua (y 0 ↔ -16) */
.pj-proc__card .pj-note { position: absolute; right: 21px; bottom: -13px; width: 102px; min-height: 98px; padding: 20px 9px 12px; background: #ffde4d; color: #000; font: 400 14px/16.8px var(--hand); clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transform: rotate(-3deg); animation: pj-float 7.5s ease-in-out infinite; z-index: 1; }
.pj-proc__media.is-empty .pj-note { position: relative; right: auto; bottom: auto; margin-left: auto; }
@keyframes pj-float { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-16px); } }

/* ---------- Faixa contínua de telas ---------- */
.pj-marq { display: flex; flex-direction: column; gap: 74px; }
.pj-marq__bar { margin: 0 var(--pad); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.pj-marq__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 24px; font: 400 14px/21px var(--inter); color: #fff; }
.pj-marq__left { display: flex; gap: 350px; min-width: 0; overflow: hidden; white-space: nowrap; }
.pj-marq__row > p { white-space: nowrap; }
.pj-marq__dim { color: var(--muted); }
.pj-marq__bar .pj-line { background: rgba(187, 187, 187, .2); }
.pj-marq__strip { overflow: hidden; width: 100%; }
.pj-marq__track { display: flex; width: max-content; }
.pj-marq__item { margin: 0 64px 0 0; height: 617px; flex: none; }
.pj-marq__item > img, .pj-marq__item > video { height: 100%; width: auto; max-width: none; border-radius: 20px; }

/* ---------- Resultados ---------- */
.pj-res { padding-top: 64px; display: flex; flex-direction: column; gap: 64px; }
.pj-res__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0 var(--pad) 64px; align-items: start; }
.pj-res__card { margin: 0; border-radius: 20px; padding: 40px; overflow: hidden; }
.pj-res__quote { display: flex; flex-direction: column; gap: 20px; background: #121212; }
.pj-res__quote blockquote { margin: 0; }
.pj-res__quote blockquote p { font: 300 14px/21px var(--inter); color: rgba(255, 255, 255, .55); }
.pj-res__who { display: flex; align-items: center; gap: 12px; }
.pj-res__avatar { width: 48px; height: 48px; border-radius: 99px; overflow: hidden; flex: none; }
.pj-res__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pj-res__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pj-res__name { font: 600 14px/14px var(--inter); color: #fff; }
.pj-res__role { font: 300 14px/21px var(--inter); color: rgba(255, 255, 255, .55); }
.pj-res__num { display: flex; flex-direction: column; justify-content: space-between; min-height: 211px; background: #303030; color: #fff; }
.pj-res__num--hl { background: #5e67e6; }
.pj-res__top { font: 300 14px/21px var(--inter); }
.pj-res__wrap { display: flex; flex-direction: column; gap: 5px; }
.pj-res__value { display: grid; font: 700 60px/60px var(--antonio); color: #fff; }
.pj-res__ghost, .pj-res__live { grid-area: 1 / 1; white-space: nowrap; }
.pj-res__ghost { visibility: hidden; }
.pj-res__label { font: 300 14px/21px var(--inter); }

/* ---------- Marca F ---------- */
.pj-mark { position: relative; z-index: 1; display: flex; justify-content: center; margin: 64px auto; width: 41px; height: 55px; perspective: 400px; }
.pj-mark > img, .pj-mark > video { width: 100%; height: 100%; object-fit: contain; }
.pj-mark__f { position: relative; width: 37px; height: 55px; transform-style: preserve-3d; animation: pj-spin 7s cubic-bezier(.45, 0, .55, 1) infinite; }
.pj-mark__f svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #6d6d6d; transform: translateZ(calc(var(--z) * 1px)); }
.pj-mark__f svg:last-child { fill: #e6e6e6; }
@keyframes pj-spin { 0%, 18% { transform: rotateY(-28deg) rotateX(8deg); } 50%, 68% { transform: rotateY(28deg) rotateX(-6deg); } 100% { transform: rotateY(-28deg) rotateX(8deg); } }

/* ---------- Tablet (960–1279) ---------- */
@media (max-width: 1279.98px) {
  .pj-facts__box { flex-wrap: wrap; row-gap: 24px; }
  .pj-facts__list { flex-wrap: wrap; row-gap: 24px; }
  .pj-fact + .pj-fact { margin-left: 65px; }
  .pj-fact + .pj-fact::before { left: -33px; }
  .pj-btn.v2-btn { margin-left: 0; }
  .pj-proc__cards { gap: 32px; }
  .pj-res__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Celular (<960) — proj-tree-390.txt ---------- */
@media (max-width: 959.98px) {
  .pj-hero { margin-top: 30px; padding: 0 24px; }
  .pj-cover { height: auto; aspect-ratio: 342 / 558; padding: 0 24px; }
  .pj-cover__title { font-size: 36px; line-height: 43.2px; }
  .pj-hero { padding-bottom: 32px; }
  .pj-facts__box { flex-direction: column; align-items: stretch; gap: 48px; padding: 31px; }
  .pj-facts__list { flex-direction: column; align-items: stretch; gap: 16px; }
  .pj-fact, .pj-fact + .pj-fact { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 0; padding: 0 0 23px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .pj-fact + .pj-fact::before { display: none; }
  .pj-fact.pj-fact--tools { padding-bottom: 0; border-bottom: 0; }
  .pj-fact dd { text-align: right; }
  .pj-tools { justify-content: flex-end; }
  .pj-fact__logo { margin: -6px 0 0; }
  .pj-btn.v2-btn { width: 100%; padding: 16px 24px; }
  .pj-desc { padding: 64px 24px; }
  .pj-chal { gap: 16px; }
  .pj-chal__cards { grid-template-columns: 1fr; }
  .pj-special { padding: 0 24px; }
  .pj-special__over { left: 15%; width: 70%; }
  .pj-proc { gap: 32px; }
  .pj-proc__cards { grid-template-columns: 1fr; gap: 64px; }
  .pj-res { padding: 0 24px; gap: 32px; }
  .pj-res__grid { grid-template-columns: 1fr; padding: 0 0 64px; }
  .pj-res__num { min-height: 239px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .pj-image__box { transform: none; }
}

/* ==========================================================================
   Topo novo (estudo da página de projeto do Lusion; código nosso)
   Informação à esquerda, palco de mídias à direita. No computador a rolagem conduz
   (project.js define --a: 0→1 abre o palco, --b: progresso da faixa).
   ========================================================================== */
.pjx { --info: min(520px, 38vw); --gapx: 56px; position: relative; z-index: 1; height: calc(100vh + 60vh + (var(--n) - 1) * 85vh + 30vh); }
.pjx__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
/* menu fixo por cima (v2-nav--compact): o miolo começa abaixo dele */
.pjx__info { position: absolute; left: var(--pad); top: 120px; width: var(--info); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; z-index: 2; }
/* saída rápida ao rolar (como no Lusion): título e texto para a esquerda, ficha para a direita;
   some antes de o palco abrir (o palco usa --s, atrasado em relação a --a). Usa "translate" (e não
   "transform") para somar com a entrada do Motion, que escreve transform. */
.pjx__title, .pjx__text, .pjx__live, .pjx__more, .pjx__info > .pj-btn-edit { translate: calc(var(--a, 0) * -180px) 0; opacity: calc(1 - var(--a, 0) * 3.2); }
.pjx__facts { translate: calc(var(--a, 0) * 140px) 0; opacity: calc(1 - var(--a, 0) * 3.2); }
.pjx__back { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 12px; border-radius: 99px; border: 1px solid var(--stroke); font: 500 12px/1 var(--inter); letter-spacing: .08em; text-transform: uppercase; color: #fff; transition: background .3s ease, border-color .3s ease; }
.pjx__back:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.pjx__title { font: 500 64px/1.02 var(--inter); letter-spacing: -.035em; color: #fff; text-wrap: balance; overflow-wrap: anywhere; }
.pjx__cols { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 32px; width: 100%; }
.pjx__text { display: flex; flex-direction: column; gap: 14px; font: 300 15px/24px var(--inter); color: var(--sub); max-height: 46vh; overflow: hidden; }
.pjx__text strong { font-weight: 600; color: #fff; }
.pjx__cols { grid-template-columns: minmax(0, 1fr) 150px; }
/* ficha: rótulo cinza, linha fina entre os itens (pedido do Felipe 13/11) */
.pjx__facts { display: flex; flex-direction: column; margin: 0; }
.pjx__fact { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.pjx__fact:first-child { padding-top: 0; border-top: 0; }
.pjx__fact dt { font: 400 12px/16px var(--inter); color: var(--muted); margin-bottom: 6px; }
.pjx__fact dd { margin: 0; font: 500 14px/20px var(--inter); color: #fff; }
.pjx__tools { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.pjx__tools img { width: 26.5px; height: 26.5px; }
/* WebGL desenha as mídias da faixa (gl-cards.js): o DOM fica só como medida */
.gl-cards .pjx.is-live .pjx__slide { background: transparent; }
.gl-cards .pjx.is-live .pjx__slide > img, .gl-cards .pjx.is-live .pjx__slide > video { opacity: 0; }
.pjx .pj-fact__logo { height: 26px; margin: 0; }
.pjx__live { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px 0 18px; border-radius: 99px; background: #fff; color: #000; font: 600 12px/1 var(--inter); letter-spacing: .08em; text-transform: uppercase; transition: background .3s ease, color .3s ease; }
.pjx__live i { width: 6px; height: 6px; border-radius: 99px; background: var(--red); }
.pjx__live:hover { background: var(--red); color: #fff; }
.pjx__live:hover i { background: #fff; }

.pjx__stage { position: absolute; top: calc(104px - var(--s, 0) * 72px); right: var(--pad); left: calc((var(--pad) + var(--info) + var(--gapx)) * (1 - var(--s, 0)) + var(--pad) * var(--s, 0));
  height: calc(100vh - 136px + var(--s, 0) * 72px); border-radius: 20px; overflow: hidden; }
.pjx__track { position: absolute; inset: 0; will-change: transform; }
.pjx__slide { position: absolute; top: 0; left: 0; height: 100%; aspect-ratio: var(--ar, 16 / 10); max-width: none; margin: 0; border-radius: 20px; overflow: hidden; background: #0d0d0d; transform-origin: 50% 50%; }
.pjx__slide.pj-cover { height: 100%; padding: 0; display: block; border-radius: 20px; }
.pjx__slide > img, .pjx__slide > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: 0; }
/* antes do JS medir: só a 1ª mídia, cobrindo o palco */
.pjx:not(.is-live):not(.pjx--static) .pjx__slide { width: 100%; aspect-ratio: auto; }
.pjx:not(.is-live):not(.pjx--static) .pjx__slide + .pjx__slide { display: none; }

.pjx__ui { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 3; font: 500 11px/1 var(--inter); letter-spacing: .08em; color: var(--muted); }
.pjx__count { writing-mode: vertical-rl; transform: rotate(180deg); }
.pjx__count b { color: #fff; font-weight: 500; }
.pjx__bar { position: relative; width: 2px; height: 120px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.pjx__bar i { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(var(--b, 0)); }
.pjx__hint { writing-mode: vertical-rl; transform: rotate(180deg); text-transform: uppercase; opacity: calc(1 - var(--a, 0) * 2); }
.pjx__dots { display: none; }
.pjx__dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .2); transition: background .3s ease, width .3s ease; }
.pjx__dots i.is-on { width: 18px; background: var(--red); }

/* chegada vinda do card da home (zoom): o resto entra depois que a mídia pousa */
.v2-nav, .pjx__info, .pjx__ui, .pj-main > *, .pjx__track { transition: opacity .6s ease; }
.is-arriving .v2-nav, .is-arriving .pjx__info, .is-arriving .pjx__ui, .is-arriving .pj-main > :not(.pjx), .is-arriving .pjx__track { opacity: 0 !important; transition: none; }

/* próximo projeto */
.pj-next { display: flex; justify-content: center; padding: 64px var(--pad) 0; }
.pj-next a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pj-next__label { font: 500 11px/16px var(--inter); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.pj-next__title { font: 400 46px/1.1 var(--inter); letter-spacing: -.03em; color: #fff; transition: opacity .3s ease; }
.pj-next a:hover .pj-next__title { opacity: .6; }

/* ---------- Faixa com deslize lateral (editor, sem JS e movimento reduzido) ---------- */
.pjx--static, html:not(.js) .pjx { height: auto; }
.pjx--static .pjx__sticky, html:not(.js) .pjx__sticky { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; gap: 40px; padding: 40px var(--pad) 0; }
.pjx--static .pjx__info, html:not(.js) .pjx__info { position: relative; left: auto; top: auto; width: 100%; max-width: 760px; transform: none; opacity: 1; }
.pjx--static .pjx__sticky, html:not(.js) .pjx__sticky { padding-top: 110px; }
.pjx--static .pjx__text, html:not(.js) .pjx__text { max-height: none; }
.pjx--static .pjx__stage, html:not(.js) .pjx__stage { position: relative; inset: auto; height: auto; border-radius: 0; overflow: visible; }
.pjx--static .pjx__track, html:not(.js) .pjx__track { position: relative; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pjx--static .pjx__track::-webkit-scrollbar, html:not(.js) .pjx__track::-webkit-scrollbar { display: none; }
.pjx--static .pjx__slide, html:not(.js) .pjx .pjx__slide { position: relative; display: block; flex: none; height: min(62vh, 640px); width: auto; aspect-ratio: var(--ar, 16 / 10); max-width: 88%; scroll-snap-align: center; transform: none; opacity: 1; }
.pjx--static .pjx__slide.is-empty { width: min(100%, 900px); aspect-ratio: 16 / 10; height: auto; }
.pjx--static .pjx__ui, html:not(.js) .pjx__ui { display: none; }
.pjx--static .pjx__dots, html:not(.js) .pjx__dots { display: flex; justify-content: center; gap: 6px; }

@media (max-width: 1279.98px) {
  .pjx { --info: min(440px, 40vw); --gapx: 40px; }
  .pjx__title { font-size: 52px; }
}

/* ---------- Celular (<960): faixa com deslize e indicador (opção 3A) ---------- */
@media (max-width: 959.98px) {
  .pjx, .pjx.is-live { height: auto; }
  .pjx .pjx__sticky { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; gap: 32px; padding: 96px 24px 0; }
  .pjx__title, .pjx__text, .pjx__live, .pjx__more, .pjx__facts { translate: none; opacity: 1; }
  .pjx .pjx__info { position: relative; left: auto; top: auto; width: 100%; transform: none; opacity: 1; gap: 24px; }
  .pjx__title { font-size: 40px; }
  .pjx__cols { grid-template-columns: 1fr; gap: 24px; }
  .pjx__text { max-height: none; font-size: 14px; line-height: 22px; }
  .pjx__cols { grid-template-columns: 1fr; }
  .pjx .pjx__tools { justify-content: flex-start; }
  /* ficha compacta (pedido do Felipe 13/11): itens lado a lado, sem linha entre eles; o que não
     cabe desce. O prêmio vira selo encostado à direita da última linha (rótulo só para leitor de tela). */
  .pjx .pjx__facts { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 20px 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .pjx .pjx__fact { flex: 0 1 auto; min-width: 0; padding: 0; border-top: 0; }
  .pjx .pjx__fact--awards { margin: -6px -8px -10px auto; align-self: center; }
  .pjx .pjx__fact--awards dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pjx .pjx__awards { justify-content: flex-end; margin: 0; }
  .pjx .pjx__stage { position: relative; inset: auto; height: auto; border-radius: 0; overflow: visible; margin: 0 -24px; }
  .pjx .pjx__track { position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 24px; scroll-padding: 0 24px; transform: none; }
  .pjx .pjx__track::-webkit-scrollbar { display: none; }
  .pjx .pjx__slide { position: relative; display: block; flex: none; height: auto; width: 82vw; max-width: none; aspect-ratio: var(--ar, 4 / 5); max-height: 70vh; scroll-snap-align: center; transform: none; opacity: 1; }
  .pjx:not(.is-live):not(.pjx--static) .pjx__slide { width: 82vw; aspect-ratio: var(--ar, 4 / 5); }
  .pjx:not(.is-live):not(.pjx--static) .pjx__slide + .pjx__slide { display: block; }
  .pjx .pjx__ui { display: none; }
  .pjx .pjx__dots { display: flex; justify-content: center; gap: 6px; }
  .pj-next__title { font-size: 32px; }
}

/* entrada do topo: sobe e aparece (filter/transform; a saída da rolagem usa translate/opacity) */
@keyframes pjx-in { from { transform: translateY(26px); filter: opacity(0); } to { transform: none; filter: none; } }
.js .pjx[data-pjx] .pjx__title { animation: pjx-in 1s cubic-bezier(.22, 1, .36, 1) .1s both; }
.js .pjx[data-pjx] .pjx__text { animation: pjx-in 1s cubic-bezier(.22, 1, .36, 1) .2s both; }
.js .pjx[data-pjx] .pjx__facts { animation: pjx-in 1s cubic-bezier(.22, 1, .36, 1) .3s both; }
.js .pjx[data-pjx] .pjx__live { animation: pjx-in 1s cubic-bezier(.22, 1, .36, 1) .4s both; }

/* assinatura antes do rodapé (página de projeto) */
.pj-mark--sign { width: auto; height: auto; margin: 0 auto; perspective: none; display: flex; justify-content: center; padding: 96px var(--pad) 64px; }
.pj-mark__sign { width: min(210px, 46vw); color: #fff; }
.pj-mark__sign svg { stroke-width: 9; }
.pj-mark__sign .sign-dot { stroke-width: 9; }

/* play minimalista dos vídeos da faixa */
.pjx__play { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; transform: translate(-50%, -50%); transition: transform .5s cubic-bezier(.22, 1, .36, 1), width .5s cubic-bezier(.22, 1, .36, 1), height .5s cubic-bezier(.22, 1, .36, 1), left .6s cubic-bezier(.22, 1, .36, 1), top .6s cubic-bezier(.22, 1, .36, 1), background .3s ease, border-color .3s ease; }
.pjx__play svg { margin-left: 2px; }
.pjx__play:hover { transform: translate(-50%, -50%) scale(1.08); background: rgba(255, 255, 255, .26); }
/* tocando: vira um botão pequeno de pausa no canto */
.pjx__slide.is-playing .pjx__play { left: 34px; top: calc(100% - 34px); width: 40px; height: 40px; }
.pjx__slide.is-playing .pjx__play svg { margin-left: 0; }
.pjx:not(.is-live) .pjx__slide:not(:first-child) .pjx__play, .pjx--static .pjx__play { display: grid; }

/* controles extras no hover do vídeo: voltar ao início e som */
.pjx__vctl { position: absolute; left: 62px; bottom: 14px; z-index: 2; display: flex; gap: 6px; opacity: 0; transform: translateX(-6px); pointer-events: none; transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1); }
.pjx__vbtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; transition: background .3s ease, transform .3s ease; }
.pjx__vbtn:hover { background: rgba(255, 255, 255, .28); transform: scale(1.06); }
.pjx__slide.is-playing:hover .pjx__vctl, .pjx__slide.is-playing:focus-within .pjx__vctl { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: none) { .pjx__slide.is-playing .pjx__vctl { opacity: 1; transform: none; pointer-events: auto; } }

/* grade presa na tela (página de projeto): só as linhas de cima e de baixo, com os traços andando com a faixa */
.v2-grid--fixed { position: fixed; }
.v2-grid--fixed .v2-grid__h--2, .v2-grid--fixed .v2-grid__h--3 { display: none; }
.v2-grid--fixed .v2-grid__h--1 { top: 11%; }
.v2-grid--fixed .v2-grid__h--4 { top: 89%; }
.js .v2-grid--fixed .v2-grid__h b { animation: none; transition: left .2s linear; }

/* selos de premiação na ficha (louros do site atual, assets/css/style.css .award) */
.pjx__awards { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 0 -10px; }
.pjx__awards .award { --tone: #d9b45a; position: relative; width: 132px; aspect-ratio: 184 / 110; flex: none; color: var(--tone); }
.pjx__awards .award--silver { --tone: #c9ced6; }
.pjx__awards .award--bronze { --tone: #c7895b; }
.pjx__awards .award--white { --tone: rgba(255, 255, 255, .85); }
.pjx__awards .award__laurel { position: absolute; inset: 0; width: 100%; height: 100%; }
.pjx__awards .award__txt { position: absolute; inset: 10% 17%; display: grid; place-content: center; justify-items: center; text-align: center; gap: 2px; line-height: 1.1; color: #fff; }
.pjx__awards .award__txt small { font: 500 5.8px/1.1 var(--inter); letter-spacing: .16em; text-transform: uppercase; color: var(--tone); }
.pjx__awards .award__txt strong { font: 600 12.5px/1.1 var(--inter); letter-spacing: -.01em; }
.pjx__awards .award__txt span { font: 400 7.4px/1.1 var(--inter); color: rgba(255, 255, 255, .62); }

/* botão ampliar (imagem cortada na 1ª mídia): mesmo vidro do play; some quando não há o que ampliar */
.pjx__expand svg { margin-left: 0; }
.pjx__expand.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.8); }
.pjx__expand { transition: opacity .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1), background .3s ease; }
/* ampliada: o botão vai para o canto, pequeno (como a pausa do vídeo) */
.pjx__slide.is-expanded .pjx__expand { left: 34px; top: calc(100% - 34px); width: 40px; height: 40px; }
.pjx__slide.is-expanded .pjx__expand svg { width: 16px; height: 16px; }

/* controles presos à parte visível da 1ª mídia (ela pode ser mais larga que o palco na abertura) */
.pjx__slide.is-playing .pjx__play, .pjx__slide.is-expanded .pjx__expand { left: calc(var(--vis-l, 0px) + 34px); }
.pjx__vctl { left: calc(var(--vis-l, 0px) + 62px); }

/* ---------- "Mais detalhes" (abaixo do texto do projeto) ----------
   disponível: botão branco preenchido; bloqueado: só o contorno, cadeado e legenda */
.pjx__more { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pjx__more-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; border: 1px solid #fff; border-radius: 99px; background: #fff; color: #000; font: 600 12px/1 var(--inter); letter-spacing: .08em; text-transform: uppercase; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.pjx__more-btn svg { flex: none; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.pjx__more-btn:hover, .pjx__more-btn:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.pjx__more-btn:hover svg { transform: translateX(3px); }
.pjx__more.is-locked .pjx__more-btn { background: transparent; border-color: rgba(255, 255, 255, .32); color: rgba(255, 255, 255, .85); padding: 0 22px 0 18px; }
.pjx__more.is-locked .pjx__more-btn:hover, .pjx__more.is-locked .pjx__more-btn:focus-visible { background: transparent; border-color: #fff; color: #fff; }
.pjx__more.is-locked .pjx__more-btn:hover svg { transform: none; }
.pjx__more-cap { margin: 0; padding-left: 4px; font: 400 12px/18px var(--inter); color: rgba(255, 255, 255, .45); }
.js .pjx[data-pjx] .pjx__more { animation: pjx-in 1s cubic-bezier(.22, 1, .36, 1) .3s both; }

/* ---------- Página de detalhes (/projeto/<slug>/detalhes/) ---------- */
.pjd { padding-top: 120px; }
.pjd__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 var(--pad) 40px; max-width: 1100px; }
.pjd__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font: 500 12px/1 var(--inter); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); transition: color .3s ease; }
.pjd__back:hover { color: #fff; }
.pjd__title { margin: 0; font: 400 clamp(40px, 5.4vw, 84px)/1.02 var(--inter); letter-spacing: -.045em; color: #fff; }
@media (max-width: 959.98px) { .pjd { padding-top: 96px; } .pjd__head { padding-bottom: 24px; } }

/* ---------- Vídeo do YouTube / Vimeo no carrossel ---------- */
.pjx__embed { position: absolute; inset: 0; z-index: 1; display: block; background: #000; }
.pjx__embed img, .pjx__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.pjx__slide--embed .pjx__embed-play { z-index: 3; }
.pjx__slide--embed.is-embed-on .pjx__embed-play { display: none !important; }
@media (max-width: 959.98px) { .pjx .pjx__slide.pjx__slide--embed { width: 88vw; height: auto; aspect-ratio: 16 / 9; max-height: none; align-self: center; } }

/* título do projeto subindo palavra a palavra (site.js [data-split]) */
.pjx__title .sw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.pjx__title .sw > span { display: inline-block; }
.js .pjx__title[data-split] .sw > span { transform: translateY(110%); }
