/* Meu CDN, TRAVESSIA v4, página SITES: o momento assinatura (o portfólio no monitor do escritório) e os blocos próprios
   (modalidades na vitrine, o "7 dias"). Base = versão parada (os sites em cartões); html.mov = palco preso.
   O movimento está em assets/js/pg/sites.js: a foto do escritório em três camadas (janela, mesa com o monitor, cadeira)
   e, no monitor (homografia), cada site entra, rola por dentro e para em cada tela, num ritmo calmo. */

/* =========================================================================================================
   MOMENTO ASSINATURA: o portfólio, um site de cada vez
   ========================================================================================================= */
.ws-port { position: relative; background: radial-gradient(60% 60% at 75% 40%, rgb(139 43 226 / .18), transparent 70%), #0a0517; }
.ws-port__palco { position: relative; max-width: 1320px; margin: 0 auto; padding: clamp(80px, 9vw, 128px) var(--lado) 8px; }
.ws-port__cena { display: none; }
.ws-port__texto > .rotulo, .ws-port__titulo, .ws-port__apoio { max-width: 760px; }
.ws-lista { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; counter-reset: ws; }
.ws-site { position: relative; counter-increment: ws; border-radius: 16px; overflow: hidden; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .09); }
.ws-site__fig { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #140b2a; border-bottom: 1px solid rgb(255 255 255 / .08); }
.ws-site__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.ws-site__txt { padding: 16px 20px 22px; }
.ws-site__nicho { font: 700 .74rem/1.2 var(--fonte); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); }
.ws-site__nome { margin: 6px 0 6px; font-weight: 800; font-size: 1.24rem; line-height: 1.15; }
.ws-site__desc { color: var(--tinta-2); font-size: .95rem; line-height: 1.5; }
.ws-site__prog, .ws-port__conta { display: none; }
.ws-port__nota { max-width: 1320px; margin: 0 auto; padding: 16px var(--lado) 64px; }

/* ---------- com movimento: o palco preso ---------- */
html.mov .ws-port__palco { max-width: none; height: var(--alto); min-height: 640px; padding: 0; overflow: hidden; }
html.mov .ws-port__cena { display: block; position: absolute; inset: 0; overflow: hidden; background: #07030f; }
.ws-camada { position: absolute; left: 0; top: 0; width: 1536px; height: 1024px; max-width: none; transform-origin: 0 0; will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
.ws-camada--cena img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.ws-px { position: absolute; left: 0; top: 0; width: 1536px; height: 1024px; transform-origin: 0 0; }
.ws-luz { position: absolute; left: 560px; top: 610px; width: 780px; height: 330px; border-radius: 50%; background: radial-gradient(closest-side, var(--cor), transparent); opacity: 0; mix-blend-mode: screen; pointer-events: none; will-change: opacity; }
.ws-tela { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: #f3f0f8; box-shadow: 0 0 0 1px rgb(0 0 0 / .3); will-change: transform; backface-visibility: hidden; }   /* camada própria: o que troca e rola por dentro não repinta a foto */
.ws-tela__barra { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 16px; background: #ebe6f3; border-bottom: 1px solid #d8d0e6; }
.ws-tela__barra > i { width: 12px; height: 12px; border-radius: 50%; background: #cfc6de; }
.ws-tela__barra > i:first-child { background: #ff6b8a; } .ws-tela__barra > i:nth-child(2) { background: #ffc777; } .ws-tela__barra > i:nth-child(3) { background: #7cf2b0; }
.ws-tela__aba { display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; padding: 6px 16px 6px 12px; border-radius: 9px; background: #fff; font: 700 17px/1 var(--fonte); color: #3b3150; box-shadow: 0 1px 0 rgb(29 21 48 / .08); }
.ws-tela__aba svg { width: 16px; height: 16px; fill: none; stroke: #0c7a43; stroke-width: 1.6; }
.ws-tela__vista { position: absolute; left: 0; right: 0; top: 44px; bottom: 0; overflow: hidden; background: #0d0820; }
.ws-tira { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; will-change: transform, opacity; transform: translateZ(0); backface-visibility: hidden; }
.ws-tira[data-k="0"] { opacity: 1; }
.ws-tira img { display: block; width: 100%; height: auto; max-width: none; }
.ws-tela__trilho { position: absolute; right: 7px; top: 10px; bottom: 10px; width: 7px; border-radius: 7px; background: rgb(0 0 0 / .22); }
.ws-tela__trilho i { display: block; height: 26%; border-radius: 7px; background: rgb(255 255 255 / .75); box-shadow: 0 0 6px rgb(0 0 0 / .4); will-change: transform; }
.ws-tela__brilho { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 50px rgb(0 0 0 / .28);
  background: linear-gradient(112deg, rgb(255 255 255 / .1) 0%, rgb(255 255 255 / 0) 30%, rgb(255 255 255 / 0) 72%, rgb(255 255 255 / .05) 100%), rgb(14 6 30 / .06); }
html.mov .ws-port__veu { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(7 3 18 / .94) 0%, rgb(7 3 18 / .82) 22%, rgb(7 3 18 / .3) 38%, rgb(7 3 18 / 0) 50%),
              linear-gradient(180deg, rgb(7 3 18 / .7) 0%, rgb(7 3 18 / 0) 18%), linear-gradient(0deg, rgb(10 5 23 / .9) 0%, rgb(10 5 23 / 0) 16%); }
html.mov .ws-port__texto { position: absolute; z-index: 3; left: var(--lado); top: calc(var(--cab) + 16px); bottom: 28px; width: min(440px, 32vw); display: flex; flex-direction: column; justify-content: center; }
html.mov .ws-port__titulo { font-size: clamp(1.9rem, 2.8vw, 2.7rem); }
html.mov .ws-port__apoio { font-size: 1rem; }
html.mov .ws-lista { display: block; margin-top: 22px; }
html.mov .ws-site { padding: 11px 0 12px 40px; border: 0; border-top: 1px solid rgb(255 255 255 / .1); border-radius: 0; background: none; overflow: visible; opacity: .46; transition: opacity .45s ease; }
html.mov .ws-site::before { content: counter(ws, decimal-leading-zero); position: absolute; left: 0; top: 15px; font: 800 .78rem/1 var(--fonte); letter-spacing: .1em; color: var(--magenta); }
html.mov .ws-site.is-agora { opacity: 1; }
html.mov .ws-site.is-agora::before { color: #fff; text-shadow: 0 0 12px rgb(240 0 208 / .9); }
html.mov .ws-site__fig { display: none; }
html.mov .ws-site__txt { padding: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
html.mov .ws-site__nome { grid-column: 1; grid-row: 1; margin: 0; font-size: 1.08rem; }
html.mov .ws-site__nicho { grid-column: 2; grid-row: 1; font-size: .66rem; color: var(--tinta-3); }
html.mov .ws-site__desc { grid-column: 1 / -1; max-height: 0; opacity: 0; overflow: hidden; font-size: .92rem; transition: max-height .55s var(--saida), opacity .4s ease, margin .4s; }
html.mov .ws-site.is-agora .ws-site__desc { max-height: 5em; opacity: 1; margin-top: 6px; }
html.mov .ws-site.is-agora .ws-site__nicho { color: var(--magenta); }
html.mov .ws-site__prog { display: block; position: absolute; left: 40px; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--degrade); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }

/* =========================================================================================================
   MODALIDADES (vitrine do servico.css) e O QUE VEM JUNTO
   ========================================================================================================= */
.ws-mod__ex { margin-top: 12px; padding-left: 12px; border-left: 2px solid rgb(240 0 208 / .55); color: var(--tinta-3); font-size: .9rem; line-height: 1.45; }
.ws-mod__ex a, .sv-recurso a { color: #fff; text-decoration-color: var(--magenta); text-underline-offset: 3px; }

/* =========================================================================================================
   7 DIAS
   ========================================================================================================= */
.ws-sete { background: radial-gradient(50% 70% at 12% 30%, rgb(240 0 208 / .14), transparent 70%), var(--fundo); }
.ws-sete__grade { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 clamp(28px, 4vw, 64px); margin-bottom: clamp(24px, 3vw, 40px); }
.ws-sete__num { display: flex; flex-direction: column; align-items: center; line-height: .8; }
.ws-sete__num b { font-weight: 800; font-size: clamp(8rem, 15vw, 13.5rem); letter-spacing: -.04em; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 40px rgb(240 0 208 / .35)); }
.ws-sete__num span { margin-top: 10px; font: 800 .9rem/1 var(--fonte); letter-spacing: .4em; text-transform: uppercase; color: var(--tinta-2); padding-left: .4em; }
.ws-sete__cabeca { margin-bottom: 0; }
html.mov .ws-sete__num b { transition: transform 1.1s var(--saida), opacity .8s ease; }

/* =========================================================================================================
   COMPUTADOR MAIS ESTREITO
   ========================================================================================================= */
@media (min-width: 761px) and (max-width: 1180px) {
  html.mov .ws-port__texto { width: min(380px, 36vw); }
  html.mov .ws-port__veu { background: linear-gradient(90deg, rgb(7 3 18 / .95) 0%, rgb(7 3 18 / .85) 30%, rgb(7 3 18 / .3) 46%, rgb(7 3 18 / 0) 56%), linear-gradient(180deg, rgb(7 3 18 / .7) 0%, rgb(7 3 18 / 0) 18%); }
}

/* =========================================================================================================
   CELULAR (até 760 px ou tela em pé): layout próprio
   ========================================================================================================= */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .ws-port__palco { padding: 72px 16px 8px; }
  .ws-lista { grid-template-columns: 1fr; gap: 14px; }
  .ws-port__nota { padding: 14px 16px 48px; }

  html.mov .ws-port__palco { min-height: 600px; padding: 0; }
  html.mov .ws-port__veu { background: linear-gradient(180deg, #0a0517 0%, rgb(10 5 23 / .9) calc(var(--cab) + 70px), rgb(10 5 23 / .55) calc(var(--cab) + 140px), rgb(10 5 23 / 0) calc(var(--cab) + 200px), rgb(10 5 23 / 0) 60%, rgb(10 5 23 / .86) 70%, #0a0517 79%); }
  html.mov .ws-port__texto { left: 16px; right: 16px; top: calc(var(--cab) + 10px); bottom: 74px; width: auto; display: block; }
  html.mov .ws-port__texto .rotulo { font-size: .66rem; }
  html.mov .ws-port__titulo { font-size: clamp(1.42rem, 6.4vw, 1.75rem); margin: 6px 0 0; }
  html.mov .ws-port__apoio { display: none; }
  html.mov .ws-lista { position: absolute; left: 0; right: 0; bottom: 0; height: 9.2em; margin: 0; }
  html.mov .ws-site { position: absolute; inset: 0; padding: 14px 0 0; border: 0; opacity: 0; }
  html.mov .ws-site::before { display: none; }
  html.mov .ws-site__txt { display: block; }
  html.mov .ws-site__nicho { font-size: .66rem; color: var(--magenta); }
  html.mov .ws-site__nome { margin: 4px 0 4px; font-size: 1.32rem; }
  html.mov .ws-site__desc { max-height: none; opacity: 1; margin: 0; font-size: .9rem; line-height: 1.42; }
  html.mov .ws-site__prog { left: 0; top: 0; bottom: auto; }
  html.mov .ws-port__conta { display: block; position: absolute; right: 0; bottom: calc(9.2em - 4px); font: 700 .8rem/1 var(--fonte); color: var(--tinta-3); }
  html.mov .ws-port__conta b { color: #fff; font-size: 1rem; }

  .ws-sete__grade { grid-template-columns: 1fr; justify-items: start; }
  .ws-sete__num { flex-direction: row; align-items: baseline; gap: 12px; margin-bottom: 8px; }
  .ws-sete__num b { font-size: 6.4rem; }
}
