/* ==========================================================================
   TOPO DO PORTEFÓLIO — o "Chão de sites" da /pt/nova2 (css/nz2/nv-banner.css, com as mesmas medidas a 1440×900), em ecrã inteiro como lá (o Fabio
   preferiu-o assim a um cartão com margens, 2026-11-16).
   O chão é um plano de 2548×1568 (7 colunas de 340px × 238px, 10:7, 28px entre elas) inclinado 62° a partir da base, com perspectiva de 1000px vista de
   cima, e desvanece no horizonte (máscara de 50% a 76% da altura); a grelha anda 3 filas (798px) em 30 s. Fora do ecrã (ou com movimento reduzido) pára.
   Marcação: partials/nz/pf-chao.blade.php; JS: js/nz/pf-chao.js.
   ========================================================================== */
.pf-chao { position: relative; overflow: hidden; background: #050506; color: #fff; font-family: var(--ad-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.pf-chao * { font-family: inherit; }
:where(.pf-chao) :is(a, p, h1) { color: inherit; letter-spacing: inherit; }

.pf-chao__palco { position: relative; height: 100vh; height: 100svh; min-height: 700px; max-height: 1000px; overflow: hidden; }
/* o brilho azul da marca no horizonte */
.pf-chao__palco::before { content: ''; position: absolute; left: -10%; right: -10%; top: 34%; height: 46%; background: radial-gradient(50% 50% at 50% 50%, rgba(63, 168, 244, .22), rgba(63, 168, 244, 0) 70%); pointer-events: none; }
/* em baixo, o chão escurece até ao fim do banner */
.pf-chao__palco::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 90px; background: linear-gradient(rgba(5, 5, 6, 0), #050506); pointer-events: none; }

/* o chão */
.pf-chao__vista { position: absolute; inset: 0; perspective: 1000px; perspective-origin: 50% 0; -webkit-mask-image: linear-gradient(transparent 50%, #000 76%); mask-image: linear-gradient(transparent 50%, #000 76%); pointer-events: none; }
.pf-chao__chao { position: absolute; left: 50%; bottom: -60px; width: 2548px; height: 1568px; margin-left: -1274px; overflow: hidden; transform-origin: 50% 100%; transform: rotateX(62deg); }
.pf-chao__g { display: grid; grid-template-columns: repeat(7, 340px); grid-auto-rows: 238px; gap: 28px; animation: pf-chao 30s linear infinite; }
.pf-chao__g img { display: block; width: 100%; height: 100%; max-width: none; border-radius: 6px; object-fit: cover; background: #111; }
@keyframes pf-chao { from { transform: translateY(-798px); } to { transform: translateY(0); } }
.pf-chao.is-parado .pf-chao__g { animation-play-state: paused; }

/* texto, no "céu" (o cabeçalho do site, fixo, fica por cima: 20px + 86px) */
.pf-chao__txt { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 168px 24px 0; text-align: center; }
.nz-main .pf-chao .pf-chao__rot { margin: 0 0 18px; font-family: var(--ad-body); font-size: 16px; line-height: 1; color: rgba(255, 255, 255, .7); }
.nz-main .pf-chao .pf-chao__h1 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 72px; line-height: 1.02; font-weight: 500; letter-spacing: -.052em; text-transform: none; color: #fff; }
.nz-main .pf-chao .pf-chao__nota { max-width: 34em; margin: 22px 0 0; font-size: 16px; line-height: 23px; font-weight: 400; letter-spacing: -.001em; color: rgba(255, 255, 255, .78); }
.pf-chao__bts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.pf-chao .pf-chao__btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 20px; background: #fff; font-size: 15px; line-height: 1; font-weight: 500; color: #000; white-space: nowrap; text-decoration: none; transition: background-color .2s; }
.pf-chao__btn svg { width: 16px; height: 16px; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .pf-chao .pf-chao__btn:hover { background: #e6e6e6; } .pf-chao .pf-chao__btn:hover svg { transform: translateX(3px); } }
/* o botão que desliza até aos projetos: vidro, com um ratinho cuja roda desce sem parar */
.pf-chao .pf-chao__desce { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 10px 0 22px; border: 0; border-radius: 20px; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 15px; line-height: 1; font-weight: 500; color: #fff; white-space: nowrap; text-decoration: none; transition: background-color .2s; }
@media (hover: hover) { .pf-chao .pf-chao__desce:hover { background: rgba(255, 255, 255, .2); } }
/* o "Ver os projetos" com o rato a rolar não faz sentido num ecrã de toque (2026-12-04, o Fabio): sai no telemóvel e no tablet */
@media (hover: none), (max-width: 767px) { .pf-chao .pf-chao__desce { display: none; } }
.pf-chao .pf-chao__btn:focus-visible, .pf-chao .pf-chao__desce:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.pf-chao__rato { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.pf-chao__rato::before { content: ''; width: 13px; height: 19px; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 7px; }
.pf-chao__rato i { position: absolute; left: 50%; top: 10px; width: 2px; height: 4px; margin-left: -1px; border-radius: 1px; background: #fff; animation: pf-roda 1.6s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes pf-roda { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 70% { opacity: 1; transform: translateY(5px); } 100% { opacity: 0; transform: translateY(7px); } }

@media (max-width: 1023px) { .nz-main .pf-chao .pf-chao__h1 { font-size: 56px; } }
@media (max-width: 767px) {
  .pf-chao__palco { min-height: 600px; }
  .pf-chao__txt { padding: 120px 16px 0; }
  .nz-main .pf-chao .pf-chao__h1 { font-size: 40px; }
  .nz-main .pf-chao .pf-chao__nota { max-width: 320px; font-size: 15px; line-height: 21px; }
  .pf-chao__bts { flex-direction: column; align-items: stretch; width: 100%; max-width: 300px; }
  .pf-chao .pf-chao__btn, .pf-chao .pf-chao__desce { justify-content: center; }
}
/* EM BRANCO (.pf-chao--claro; 2026-11-19, a experimentar: "o nosso site é muito mais branco que preto"): o mesmo chão num fundo branco, com as cores
   trocadas — o texto a preto, o botão principal preto, o de descer em vidro escuro a 6%, o brilho azul do horizonte mais leve e, em baixo, o chão a
   desvanecer para branco. O cabeçalho do site por cima fica o normal (preto), porque a página deixa de ter o <body class="nz-escuro"> */
.pf-chao--claro { background: #fff; color: var(--ad-ink); }
.pf-chao--claro .pf-chao__palco::before { background: radial-gradient(50% 50% at 50% 50%, rgba(63, 168, 244, .16), rgba(63, 168, 244, 0) 70%); }
.pf-chao--claro .pf-chao__palco::after { background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.pf-chao--claro .pf-chao__g img { background: #eef0f3; box-shadow: 0 0 0 1px rgba(14, 17, 22, .06); }
.nz-main .pf-chao--claro .pf-chao__rot { color: #6a6b70; }
.nz-main .pf-chao--claro .pf-chao__h1 { color: var(--ad-ink); }
.nz-main .pf-chao--claro .pf-chao__nota { color: #5d5d63; }
.pf-chao--claro .pf-chao__btn { background: #0d0d0f; color: #fff; }
@media (hover: hover) { .pf-chao--claro .pf-chao__btn:hover { background: #2a2b30; } }
.pf-chao--claro .pf-chao__desce { background: rgba(14, 17, 22, .06); color: var(--ad-ink); }
@media (hover: hover) { .pf-chao--claro .pf-chao__desce:hover { background: rgba(14, 17, 22, .1); } }
.pf-chao--claro .pf-chao__btn:focus-visible, .pf-chao--claro .pf-chao__desce:focus-visible { outline-color: var(--ad-ink); }
.pf-chao--claro .pf-chao__rato { background: rgba(14, 17, 22, .08); }
.pf-chao--claro .pf-chao__rato::before { border-color: rgba(14, 17, 22, .7); }
.pf-chao--claro .pf-chao__rato i { background: var(--ad-ink); }
@media (prefers-reduced-motion: reduce) { .pf-chao__g, .pf-chao__rato i { animation: none; } }
