/* ===== Projetos em vitrine: cards em curva, passando para o lado (assets/vitrine.js) ===== */
/* a seção ocupa a tela certinho: a passagem de Serviços (servicos.js) para no topo dela */
.projetos {
  position: relative; overflow: hidden; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(64px + clamp(16px, 3vh, 32px)); padding-bottom: clamp(24px, 4vh, 44px);
}
/* fundo claro: os cards coloridos saltam; textos e barra no tom escuro */
.projetos { background: #ECEEED; color: var(--tx); --tx: #1B1F21; --tx2: #6E7477; --linha: rgba(0, 0, 0, .12); }
.projetos > .proj-cab { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px; margin-bottom: clamp(8px, 2vh, 24px); }
.proj-apoio { margin: 0; font: 300 clamp(15px, 1.15vw, 18px)/1.3 var(--f-txt); color: var(--tx2); }
/* entrada: o rótulo, a vitrine e a barra chegam em sequência (.proj-on, servicos.js) */
.js .projetos > .proj-cab, .js .projetos .vt-palco, .js .projetos .vt-barra { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.js .projetos .vt-palco { transition-delay: .1s; }
.js .projetos .vt-barra { transition-delay: .25s; }
.js .projetos.proj-on > .proj-cab, .js .projetos.proj-on .vt-palco, .js .projetos.proj-on .vt-barra { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .projetos > .proj-cab, .js .projetos .vt-palco, .js .projetos .vt-barra { opacity: 1; transform: none; transition: none; } }
.vitrine {
  /* largura do card: também limitada pela altura da tela, para a seção inteira caber numa tela */
  --card-l: min(52vw, 760px, calc((100svh - 430px) * 1.778));
  position: relative; margin: 0 calc(-1 * var(--borda));
  outline: none;
}

.vt-palco {
  position: relative; z-index: 1;
  height: calc(var(--card-l) * .5625 + 64px);
  perspective: 1500px; perspective-origin: 50% 50%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.vt-palco.pegando { cursor: grabbing; }

.vt-card {
  --escuro: 0;
  position: absolute; left: 50%; top: 50%;
  width: var(--card-l); aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 1.6vw, 22px); overflow: hidden;
  background: var(--cartao);
  box-shadow: 0 34px 60px -24px rgba(16, 22, 26, .45), 0 10px 22px -12px rgba(16, 22, 26, .25);
  backface-visibility: hidden; will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
/* ---------- capa do projeto: logo e frase à esquerda, mosaico à direita (como um print do trabalho) ----------
   Tudo em cqw (largura do card), para a capa ser a mesma em qualquer tamanho. */
.vt-card { container-type: inline-size; }
.vt-capa {
  position: absolute; inset: 0; display: grid; grid-template-columns: 37% 1fr;
  background:
    radial-gradient(60% 70% at 14% 50%, color-mix(in srgb, var(--destaque) 16%, transparent), transparent 70%),
    var(--cor);
  color: var(--tinta); pointer-events: none;
}
.vt-capa img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vt-foto { position: absolute; inset: 0; }

.vt-esq {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 3.4cqw 0 5.2cqw;
}
.vt-rot { margin: 0 0 2.6cqw; font: 400 max(8px, 1.15cqw)/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; }
.vt-capa .vt-logo { width: auto; height: auto; max-width: 82%; max-height: 10cqw; object-fit: contain; }
.vt-logo-txt { font: 400 3.6cqw/1 var(--f-txt); }
.vt-chamada {
  margin: 3cqw 0 0; max-width: 24cqw;
  font: 300 max(12px, 3.3cqw)/1.08 var(--f-tit); letter-spacing: -.015em; color: var(--tinta);
  text-wrap: balance;
}
.vt-pe {
  position: absolute; left: 5.2cqw; right: 3.4cqw; bottom: 4cqw;
  display: flex; justify-content: space-between;
  font: 400 max(8px, 1.1cqw)/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
  color: color-mix(in srgb, var(--tinta) 70%, transparent);
}

/* mosaico: coluna da marca (3 imagens) e coluna do site (computador em cima, celular embaixo) */
.vt-mosaico {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr);
  gap: 1.3cqw; padding: 2.2cqw 2.2cqw 2.2cqw 0; min-height: 0;
}
.vt-cel {
  position: relative; overflow: hidden; min-height: 0;
  border-radius: 1.1cqw; background: color-mix(in srgb, var(--tinta) 7%, var(--cor));
  box-shadow: 0 1.2cqw 2.6cqw -1cqw rgba(0, 0, 0, .45);
}
.vt-cel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); pointer-events: none; }
.vt-m1 { grid-area: 1 / 1; } .vt-m2 { grid-area: 2 / 1; } .vt-m3 { grid-area: 3 / 1; }
.vt-pc { grid-area: 1 / 2; display: flex; flex-direction: column; background: #EDEFF0; }
.vt-pc img { flex: 1; min-height: 0; object-position: top; }
.vt-barrinha { flex: none; display: flex; gap: .45cqw; align-items: center; height: 1.9cqw; padding: 0 .9cqw; background: #E2E5E7; }
.vt-barrinha i { width: .6cqw; height: .6cqw; border-radius: 50%; background: #B9BEC1; }
.vt-cels {
  grid-area: 2 / 2 / 4 / 3;
  background:
    radial-gradient(80% 70% at 50% 100%, color-mix(in srgb, var(--destaque) 26%, transparent), transparent 70%),
    color-mix(in srgb, var(--tinta) 6%, var(--cor));
}
/* dois celulares lado a lado, um mais alto que o outro: o topo do site e um trecho do meio */
.vt-capa .vt-fone {
  position: absolute; width: 41%; height: auto; aspect-ratio: 9 / 19.5; top: 9%;
  border-radius: 1.5cqw; object-position: top;
  box-shadow: 0 1.4cqw 2.4cqw -.6cqw rgba(0, 0, 0, .6);   /* sem moldura de aparelho: só a tela */
}
.vt-capa .vt-f1 { left: 7%; top: 13%; }
.vt-capa .vt-f2 { right: 7%; top: 5%; }

/* celular: card em pé. Logo e frase em cima, o mosaico embaixo */
@media (max-width: 760px) {
  .vt-card { aspect-ratio: 4 / 5; }
  .vt-capa {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr;
    background:
      radial-gradient(90% 45% at 30% 12%, color-mix(in srgb, var(--destaque) 16%, transparent), transparent 70%),
      var(--cor);
  }
  .vt-esq { padding: 8cqw 7cqw 5cqw; }
  .vt-rot { font-size: max(8px, 2.6cqw); margin-bottom: 4.6cqw; }
  .vt-capa .vt-logo { max-width: 66%; max-height: 15cqw; }
  .vt-chamada { font-size: 6.4cqw; max-width: none; margin-top: 4.4cqw; }
  .vt-pe { display: none; }
  .vt-mosaico { gap: 2.4cqw; padding: 0 4cqw 4cqw; }
  .vt-cel { border-radius: 2.4cqw; }
  .vt-barrinha { height: 3.6cqw; gap: .9cqw; padding: 0 1.8cqw; }
  .vt-barrinha i { width: 1.1cqw; height: 1.1cqw; }
  .vt-capa .vt-fone { border-radius: 3cqw; box-shadow: 0 2cqw 4cqw -1cqw rgba(0, 0, 0, .6); }
}

/* cards do lado mais escuros (véu por cima, mais leve que filtro durante o movimento) */
.vt-card::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: #ECEEED; opacity: calc(var(--escuro) * .55);   /* os de trás somem no fundo claro */
}
/* borda de vidro: fio claro e um brilho leve no canto */
.vt-card::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  background: linear-gradient(125deg, rgba(255, 255, 255, .07) 0%, transparent 30%);
}
.vt-card:focus-visible { outline: 1px solid var(--tx); outline-offset: 6px; }

/* barra de baixo: setas, nome e botão, em vidro fosco */
.vt-barra {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 14px;
  width: min(420px, calc(100% - 2 * var(--borda))); margin: clamp(8px, 2vh, 20px) auto 0;
  padding: 12px 12px 18px; border-radius: 24px;
  /* vidro: quase transparente, fio de luz em cima, reflexo na diagonal e sombra macia por baixo */
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .18) 42%, rgba(255, 255, 255, .06) 58%, rgba(255, 255, 255, .34) 100%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(255, 255, 255, .4),
    inset 0 0 0 .5px rgba(16, 22, 26, .06), inset 0 -14px 24px -18px rgba(16, 22, 26, .12),
    0 24px 44px -26px rgba(16, 22, 26, .4), 0 2px 8px -4px rgba(16, 22, 26, .12);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
}
/* mouse em cima: a barra sobe um pouco, inclina para o lado do mouse e um brilho segue o cursor (vitrine.js) */
.js .projetos.proj-on .vt-barra { transform: perspective(900px) translateY(var(--sobe, 0px)) rotateX(var(--incx, 0deg)) rotateY(var(--incy, 0deg)); }
.js .projetos.proj-on .vt-barra.sobre { --sobe: -4px; transition: opacity .8s ease, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.vt-barra::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .7), transparent 70%);
  opacity: 0; transition: opacity .35s ease; }
.vt-barra.sobre::before { opacity: 1; }
.vt-barra.sobre { box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(255, 255, 255, .4),
    inset 0 0 0 .5px rgba(16, 22, 26, .06), inset 0 -14px 24px -18px rgba(16, 22, 26, .12),
    0 32px 52px -26px rgba(16, 22, 26, .48), 0 4px 12px -4px rgba(16, 22, 26, .16); }
.vt-info { text-align: center; min-width: 0; }
/* troca do texto da barra: some e volta com fade, sem pular */
.vt-info, .vt-detalhe { transition: opacity .32s ease, transform .5s cubic-bezier(.2, .7, .2, 1), filter .32s ease; }
.vt-barra.trocando .vt-info, .vt-barra.trocando .vt-detalhe { opacity: 0; transform: translateY(5px); filter: blur(2px); transition-duration: .22s; }
.vt-id { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.4em; margin: 0 0 6px; font: 400 10px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tx2); }
.vt-titulo { margin: 0; font: 400 15px/1.25 var(--f-txt); color: #000; text-wrap: balance; }
.vt-sub { margin: 4px 0 0; font-size: 13px; line-height: 1.3; color: var(--tx2); text-wrap: balance; }
.vt-seta {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .35));
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .6), 0 4px 10px -4px rgba(16, 22, 26, .22);
  transition: background .2s, transform .2s;
}
.vt-seta:hover { background: linear-gradient(160deg, #fff, rgba(255, 255, 255, .6)); transform: scale(1.05); }
.vt-seta svg { width: 18px; height: 18px; fill: none; stroke: var(--tx); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vt-detalhe { grid-column: 1 / -1; padding: 6px clamp(4px, 1.4vw, 14px) 0; text-align: center; }
.vt-desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--tx); text-wrap: pretty; }
.vt-feito { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 0; padding: 0; }
.projetos .vt-feito li { background: rgba(255, 255, 255, .4); border-color: rgba(16, 22, 26, .1); }
.vt-feito li { display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border: 1px solid var(--linha); border-radius: 999px;
  font: 400 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tx);
}
.projetos .vt-ver { background: #0B0D0E; border-color: #0B0D0E; color: #fff; }
.projetos .vt-ver:hover { background: #000; border-color: #000; }
.vt-ver { grid-column: 1 / -1; justify-self: center; min-height: 38px; padding: 0 20px; font-size: 12px; border-radius: 6px; margin-top: 10px; }

@media (max-width: 760px) {
  .vitrine { --card-l: min(74vw, 340px, max(230px, calc((100svh - 410px) * .8))); }
  .vt-palco { perspective: 900px; height: calc(var(--card-l) * 1.25 + 36px); }
}
