/* ==========================================================================
   Fluxo: teste de "tela infinita" (desligue com ?quadrado na URL)
   - um só fundo contínuo, com manchas de verde que derivam e pontos bem leves;
   - seções claras deixam de ser faixas: viram texto sobre o mesmo fundo;
   - as seções escuras viram painéis arredondados que sobem por cima da anterior;
   - a seção que sai esmaece enquanto a próxima a cobre.
   ========================================================================== */
html.fluxo { background: var(--color-cream); }
html.fluxo body { background: transparent; }

/* fundo contínuo */
html.fluxo body::before {
  content: ""; position: fixed; inset: -12vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 34vmax at 12% 20%, rgba(31, 122, 73, .17), transparent 70%),
    radial-gradient(34vmax 32vmax at 88% 42%, rgba(42, 157, 138, .13), transparent 70%),
    radial-gradient(42vmax 36vmax at 32% 92%, rgba(127, 176, 74, .15), transparent 70%);
  animation: fluxo-drift 48s ease-in-out infinite alternate; will-change: transform;
}
html.fluxo body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: radial-gradient(rgba(56, 51, 42, .9) .8px, transparent 1.1px); background-size: 26px 26px;
}
@keyframes fluxo-drift {
  from { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) rotate(9deg) scale(1.12); }
}

/* seções claras: sem faixa, sem borda */
html.fluxo .block:not(.stage):not(.dark), html.fluxo .block.paper, html.fluxo .contact, html.fluxo .gallery-section { background: transparent; }
html.fluxo .block { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }

/* seções escuras e a de serviços: painéis arredondados que sobem por cima */
html.fluxo .block.stage, html.fluxo .block.dark.aurora, html.fluxo .site-footer {
  margin-inline: clamp(8px, 1.8vw, 26px); border-radius: clamp(26px, 3vw, 40px); position: relative;
}
html.fluxo .block.stage { margin-top: -36px; z-index: 2; box-shadow: inset 0 38px 70px -42px rgba(40, 36, 28, .22), inset 0 -38px 70px -42px rgba(40, 36, 28, .22), 0 -26px 60px -26px rgba(20, 44, 30, .35); }
html.fluxo .block.dark.aurora { margin-top: -36px; z-index: 3; box-shadow: 0 -26px 60px -22px rgba(6, 32, 20, .55); }
html.fluxo .site-footer { margin-top: -36px; z-index: 4; border-radius: clamp(26px, 3vw, 40px) clamp(26px, 3vw, 40px) 0 0; box-shadow: 0 -26px 60px -22px rgba(6, 32, 20, .55); }
html.fluxo .block.stage { padding-top: clamp(100px, 12vw, 160px); }
html.fluxo .block.dark.aurora { padding-top: clamp(96px, 11vw, 150px); }

/* transições guiadas pela rolagem (Chrome/Edge; nos outros fica estático) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.fluxo .block.stage, html.fluxo .block.dark.aurora {
      animation: fluxo-up both linear; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
    html.fluxo body:not(.inner) .block:not(.stage):not(.dark) > .wrap {
      animation: fluxo-out both linear; animation-timeline: view(); animation-range: exit 78% exit 100%;
    }
  }
  @keyframes fluxo-up {
    from { transform: translateY(80px) scale(.93); border-radius: 64px; }
    to   { transform: none; }
  }
  @keyframes fluxo-out {
    to { opacity: .4; transform: translateY(-28px) scale(.98); filter: blur(1.5px); }
  }
}
@media (max-width: 640px) {
  html.fluxo .block.stage, html.fluxo .block.dark.aurora, html.fluxo .site-footer { margin-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) { html.fluxo body::before { animation: none; } }
