/* 05 — Portfólio: trilho lateral nativo (scroll-snap). As artes são composições na paleta da marca
   até os cases reais chegarem. */
.portfolio { padding: 16vh 0 14vh; }
.portfolio .portfolio__topo {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end;
  padding-inline: var(--margem); margin-bottom: 6vh;
}
.portfolio__topo .titulo { grid-column: 1 / 7; }
.portfolio__topo .corpo { grid-column: 7 / 11; margin: 0; padding-bottom: .4em; }
.portfolio__setas { grid-column: 11 / 13; justify-self: end; display: flex; gap: 10px; padding-bottom: .3em; --d: 80ms; }
.portfolio .portfolio__trilho {
  list-style: none; margin: 0; padding: 0 var(--margem) 8px;
  display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margem);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.portfolio__trilho::-webkit-scrollbar { display: none; }
.portfolio__item {
  flex: 0 0 clamp(280px, 37vw, 620px); min-width: 0; scroll-snap-align: start; perspective: 1100px;
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease-out) calc(var(--i) * 90ms), transform .9s var(--ease-out) calc(var(--i) * 90ms);
}
.portfolio__trilho.is-visivel .portfolio__item { opacity: 1; transform: none; }
.portfolio__arte {
  position: relative; aspect-ratio: 5 / 4; border-radius: 6px; overflow: hidden;
  background: var(--preto);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
}
.portfolio__arte::after { translate: calc(var(--px, 0px) * -.5) calc(var(--py, 0px) * -.5); }
.portfolio__arte::before { translate: var(--px, 0px) var(--py, 0px); }
.portfolio__arte > span { translate: calc(var(--px, 0px) * 1.6) calc(var(--py, 0px) * 1.6); }
.portfolio__arte > i {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-io);
  background: radial-gradient(40% 50% at var(--gx, 50%) var(--gy, 50%), rgba(241, 215, 233, .14), rgba(241, 215, 233, 0) 70%);
}
:where(html:not(.is-scrolling)) .portfolio__item:hover .portfolio__arte { box-shadow: 0 40px 90px -36px rgba(70, 8, 23, .9); }
:where(html:not(.is-scrolling)) .portfolio__item:hover .portfolio__arte > i { opacity: 1; }
.portfolio__arte::before, .portfolio__arte::after, .portfolio__arte > span { content: ''; position: absolute; transition: transform 1.2s var(--ease-out), opacity .9s var(--ease-out), translate .8s var(--ease-out); }
.portfolio__arte > span { width: 9px; height: 9px; border-radius: 50%; background: var(--luz); box-shadow: var(--luz-sombra); }
/* identidade: um monograma de luz */
.portfolio__arte--a { background: radial-gradient(120% 80% at 20% 0%, var(--vinho), transparent 62%), radial-gradient(90% 70% at 100% 100%, var(--marrom), transparent 70%), var(--preto); }
.portfolio__arte--a::before { inset: 22% 22% 30%; border: 1px solid rgba(244, 238, 228, .22); border-radius: 50%; }
.portfolio__arte--a::after { left: 22%; right: 22%; top: 50%; height: 1px; background: rgba(244, 238, 228, .22); }
.portfolio__arte--a span { left: calc(78% - 4px); top: calc(50% - 4px); }
/* sites: uma tela que respira */
.portfolio__arte--b { background: radial-gradient(110% 90% at 80% 10%, var(--verde), transparent 65%), linear-gradient(180deg, var(--preto-verde), var(--preto)); }
.portfolio__arte--b::before { left: 14%; right: 14%; top: 20%; bottom: 26%; border: 1px solid rgba(244, 238, 228, .2); border-radius: 6px; background: linear-gradient(180deg, rgba(244, 238, 228, .06), transparent 40%); }
.portfolio__arte--b::after { left: 22%; width: 38%; top: 30%; height: 10%; background: rgba(244, 238, 228, .14); border-radius: 2px; }
.portfolio__arte--b span { left: 22%; top: 46%; }
/* apps e sistemas: blocos em camadas */
.portfolio__arte--c { background: radial-gradient(100% 70% at 0% 100%, var(--marrom), transparent 70%), radial-gradient(70% 60% at 100% 0%, rgba(70, 8, 23, .8), transparent 70%), var(--preto-meio); }
.portfolio__arte--c::before { left: 30%; width: 40%; top: 14%; bottom: 14%; border: 1px solid rgba(244, 238, 228, .24); border-radius: 22px; }
.portfolio__arte--c::after { left: 36%; width: 28%; top: 24%; height: 32%; border-radius: 10px; background: linear-gradient(160deg, rgba(241, 215, 233, .22), rgba(241, 215, 233, .02)); }
.portfolio__arte--c span { left: calc(50% - 4px); bottom: 20%; }
/* convites: um envelope de luz */
.portfolio__arte--d { background: radial-gradient(90% 70% at 50% 110%, rgba(241, 215, 233, .22), transparent 60%), radial-gradient(120% 90% at 50% 0%, var(--vinho), transparent 70%), var(--preto); }
.portfolio__arte--d::before { left: 18%; right: 18%; top: 30%; bottom: 30%; border: 1px solid rgba(244, 238, 228, .24); }
.portfolio__arte--d::after { left: 18%; right: 18%; top: 30%; height: 40%; background: linear-gradient(to bottom right, transparent 49.6%, rgba(244, 238, 228, .24) 50%, transparent 50.4%), linear-gradient(to bottom left, transparent 49.6%, rgba(244, 238, 228, .24) 50%, transparent 50.4%); background-size: 50% 50%; background-repeat: no-repeat; background-position: 0 0, 100% 0; }
.portfolio__arte--d span { left: calc(50% - 4px); top: calc(50% - 4px); }
:where(html:not(.is-scrolling)) .portfolio__item:hover .portfolio__arte::before, .portfolio__item.is-toque .portfolio__arte::before { transform: scale(1.04); }
:where(html:not(.is-scrolling)) .portfolio__item:hover .portfolio__arte > span, .portfolio__item.is-toque .portfolio__arte > span { transform: scale(1.6); }
.portfolio__cat { margin-top: 18px; font-size: 13px; font-stretch: 104%; color: var(--tinta-3); }
.portfolio__nome { margin-top: 4px; font-size: clamp(20px, 1.8vw, 28px); font-weight: 450; font-stretch: 118%; letter-spacing: -.015em; color: var(--tinta-2); }

@media (max-width: 760px) {
  .portfolio .portfolio__topo { display: block; }
  .portfolio__topo .corpo { margin-top: 18px; }
  .portfolio__setas { margin-top: 24px; justify-content: flex-start; }
  .portfolio__item { flex-basis: 82vw; }
}

/* composições ajustadas ao formato 5:4 */
.portfolio__arte--a::before { inset: auto; left: 30%; width: 40%; top: 50%; aspect-ratio: 1; margin-top: -20%; }
.portfolio__arte--a::after { left: 30%; right: 30%; top: 50%; }
.portfolio__arte--a span { left: calc(70% - 4px); top: calc(50% - 4px); }
.portfolio__arte--c::before { left: 39%; width: 22%; top: 12%; bottom: 12%; border-radius: 18px; }
.portfolio__arte--c::after { left: 42%; width: 16%; top: 20%; height: 34%; border-radius: 8px; }

/* ---------- cases de exemplo (fictícios) ---------- */
.portfolio__tag { margin-left: 8px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--fio-forte); font-size: 11.5px; color: var(--tinta-3); vertical-align: 1px; }
.portfolio__item .portfolio__nome { color: var(--tinta); }
.portfolio__arte--case::before, .portfolio__arte--case::after { content: none; }
.caso { container-type: inline-size; display: grid; place-items: center; }
.caso__c { transition: translate .8s var(--ease-out); translate: calc(var(--px, 0px) * .6) calc(var(--py, 0px) * .6); }
.caso__c--frente { translate: calc(var(--px, 0px) * 1.5) calc(var(--py, 0px) * 1.5); }

/* Café Aurora: identidade */
.caso--aurora { background: radial-gradient(90% 80% at 20% 0%, var(--vinho), transparent 65%), radial-gradient(80% 70% at 100% 100%, var(--marrom), transparent 70%), var(--preto); }
.caso-aurora__cartao {
  width: 54%; aspect-ratio: 1.62; border-radius: 1.4cqw; background: var(--marfim); color: var(--vinho);
  display: grid; place-items: center; align-content: center; gap: .6cqw;
  box-shadow: 0 3cqw 6cqw -2cqw rgba(0, 0, 0, .7); rotate: -6deg;
}
.caso-aurora__cartao b { font-size: 7.4cqw; font-weight: 700; font-stretch: 125%; letter-spacing: -.02em; line-height: 1; }
.caso-aurora__cartao small { font-size: 1.9cqw; letter-spacing: .02em; color: var(--marrom); }
.caso-aurora__sol { width: 7cqw; height: 3.5cqw; border-radius: 7cqw 7cqw 0 0; background: var(--rosa); box-shadow: 0 0 2cqw rgba(241, 215, 233, .6); }
.caso-aurora__paleta { position: absolute; right: 8%; bottom: 9%; display: flex; gap: 1.2cqw; }
.caso-aurora__paleta i { width: 4.4cqw; height: 4.4cqw; border-radius: 50%; border: 1px solid rgba(244, 238, 228, .25); }
.caso-aurora__paleta i:nth-child(1) { background: var(--vinho); } .caso-aurora__paleta i:nth-child(2) { background: var(--rosa); }
.caso-aurora__paleta i:nth-child(3) { background: var(--marfim); } .caso-aurora__paleta i:nth-child(4) { background: var(--marrom); }

/* Ateliê Lume: site */
.caso--lume { background: radial-gradient(100% 90% at 85% 0%, var(--verde), transparent 65%), linear-gradient(180deg, var(--preto-verde), var(--preto)); }
.caso-lume__janela {
  position: relative; width: 80%; aspect-ratio: 1.5; border-radius: 1.2cqw; overflow: hidden;
  background: #0f1512; border: 1px solid rgba(244, 238, 228, .18); box-shadow: 0 3cqw 7cqw -2cqw rgba(0, 0, 0, .75);
}
.caso-lume__barra { display: flex; gap: .8cqw; padding: 1.3cqw 1.6cqw; border-bottom: 1px solid rgba(244, 238, 228, .1); }
.caso-lume__barra i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: rgba(244, 238, 228, .25); }
.caso-lume__nav { display: flex; gap: 2.4cqw; align-items: baseline; padding: 2cqw 3.2cqw; font-size: 1.7cqw; color: var(--tinta-2); }
.caso-lume__nav b { margin-right: auto; font-size: 2.4cqw; font-stretch: 125%; color: var(--marfim); }
.caso-lume__hero { padding: 2cqw 3.2cqw; width: 54%; }
.caso-lume__hero p { font-size: 5.6cqw; line-height: 1; font-weight: 450; font-stretch: 118%; letter-spacing: -.02em; color: var(--marfim); }
.caso-lume__botao { display: inline-block; margin-top: 2.4cqw; padding: .9cqw 2cqw; border-radius: 9cqw; background: var(--marfim); color: var(--verde); font-size: 1.6cqw; font-weight: 500; }
.caso-lume__foto { position: absolute; right: 3.2cqw; top: 9cqw; width: 34%; bottom: 3.2cqw; border-radius: .8cqw; background: radial-gradient(70% 60% at 40% 30%, rgba(241, 215, 233, .55), transparent 70%), linear-gradient(160deg, var(--marrom), var(--verde)); }

/* Rota Verde: aplicativo */
.caso--rota { background: radial-gradient(100% 70% at 0% 100%, var(--marrom), transparent 70%), radial-gradient(70% 60% at 100% 0%, rgba(30, 77, 63, .8), transparent 70%), var(--preto-meio); }
.caso-rota__fone {
  position: relative; height: 86%; aspect-ratio: .5; border-radius: 5cqw; padding: 2.4cqw;
  background: #101512; border: 1px solid rgba(244, 238, 228, .2); box-shadow: 0 3cqw 7cqw -2cqw rgba(0, 0, 0, .8);
  display: flex; flex-direction: column;
}
.caso-rota__topo { display: flex; justify-content: space-between; align-items: center; padding: 1cqw .6cqw 1.4cqw; font-size: 2.2cqw; color: var(--marfim); }
.caso-rota__topo b { font-stretch: 118%; font-weight: 600; }
.caso-rota__topo span { color: var(--rosa); font-size: 1.6cqw; }
.caso-rota__mapa { flex: 1; width: 100%; border-radius: 2.4cqw; background: radial-gradient(80% 60% at 50% 40%, rgba(30, 77, 63, .55), rgba(30, 77, 63, .15)); }
.caso-rota__mapa path { fill: none; stroke: var(--rosa); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 3; }
.caso-rota__mapa circle { fill: var(--rosa); }
.caso-rota__card { position: absolute; left: 3.6cqw; right: 3.6cqw; bottom: 3.6cqw; padding: 1.6cqw 2cqw; border-radius: 2cqw; background: var(--marfim); color: var(--verde); display: flex; justify-content: space-between; align-items: baseline; }
.caso-rota__card small { font-size: 1.6cqw; } .caso-rota__card b { font-size: 2.8cqw; font-stretch: 118%; }

/* Helena & Davi: convite */
.caso--convite { background: radial-gradient(90% 70% at 50% 110%, rgba(241, 215, 233, .25), transparent 60%), radial-gradient(120% 90% at 50% 0%, var(--vinho), transparent 70%), var(--preto); }
.caso-convite__cartao {
  width: 46%; aspect-ratio: .72; border-radius: 1cqw; background: var(--marfim); color: var(--vinho);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2cqw; text-align: center; padding: 3cqw;
  box-shadow: 0 3cqw 7cqw -2cqw rgba(0, 0, 0, .75); rotate: 4deg; outline: 1px solid rgba(70, 8, 23, .25); outline-offset: -1.6cqw;
}
.caso-convite__cartao small { font-size: 1.6cqw; color: var(--marrom); max-width: 22cqw; line-height: 1.35; }
.caso-convite__cartao b { font-size: 5.4cqw; font-weight: 450; font-stretch: 118%; line-height: 1; letter-spacing: -.02em; }
.caso-convite__cartao span { font-size: 1.8cqw; letter-spacing: .12em; color: var(--marrom); }
.caso-convite__selo {
  position: absolute; left: 58%; top: 66%; width: 9cqw; height: 9cqw; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.2cqw; font-weight: 700; color: var(--vinho);
  background: radial-gradient(circle at 35% 30%, #ffe3e5, var(--rosa) 55%, #d9a3a8); box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .5), 0 0 3cqw rgba(241, 215, 233, .35);
}
