@import url("../vendor/lenis/lenis.css?v=2f668ae84a66");

/* ==========================================================================
   MMFF 2027 — THE ATLANTIC FLOW & COREOGRAFIA NATIVA (FASE 06B)
   Curvas orgânicas de água contínua (sem linhas tracejadas mecânicas).
   Revelações leves que nunca escondem conteúdo essencial em scroll rápido/teclado.
   ========================================================================== */

/* Fita contínua SVG — correntes fluídas orgânicas sem aspeto de estrada/pista */
.atlantic-flow-spine {
  position: absolute;
  inset: 0;
  z-index: var(--z-flow);
  pointer-events: none;
  overflow: hidden;
  opacity: 0.65;
  contain: layout style;
}

.atlantic-flow-svg {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
}

.flow-path-base {
  fill: none;
  stroke: rgba(109, 227, 242, 0.14);
  stroke-width: 24;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-path-secondary {
  fill: none;
  stroke: rgba(109, 227, 242, 0.18);
  stroke-width: 6;
  stroke-linecap: round;
}

.flow-path-progress {
  fill: none;
  stroke: url(#atlantic-flow-grad);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .weekend-connector svg path {
    stroke-dasharray: 96;
    stroke-dashoffset: 0;
  }

  html.has-motion:not(.motion-paused) .weekend-connector svg path {
    animation: weekend-tide 3.8s var(--ease-rio) 1 both;
  }
}

@keyframes weekend-tide {
  0% {
    stroke-dashoffset: 18;
    opacity: 0.85;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .atlantic-flow-spine {
    opacity: 0.42;
  }
}

/* Marcador circular "o ponto" */
.flow-beacon {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: var(--radius-pill);
  background-color: var(--brand-amarelo-sol);
  box-shadow: 0 0 0 4px rgba(255, 242, 64, 0.28);
  flex-shrink: 0;
}

.flow-beacon--azul {
  background-color: var(--brand-azul-mmff);
  box-shadow: 0 0 0 4px rgba(51, 48, 196, 0.22);
}

@keyframes beacon-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 242, 64, 0.24);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(255, 242, 64, 0.44);
  }
}

@keyframes drift-tide {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.03);
  }

  50% {
    transform: translate3d(-1.4%, -0.8%, 0) scale(1.055);
  }
}

@keyframes current-glide {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.03);
  }

  50% {
    transform: translate3d(1.2%, -0.6%, 0) scale(1.055);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.has-motion:not(.motion-paused) .flow-beacon {
    animation: beacon-pulse 1.8s var(--ease-rio) 2 both;
  }

  @media (min-width: 768px) {

    html.has-motion:not(.motion-paused) .hero[data-inview="true"] .hero__texture img,
    html.has-motion:not(.motion-paused) .hero:not([data-inview]) .hero__texture img {
      will-change: transform;
      animation: drift-tide 4.5s var(--ease-rio) 1 both;
    }

    html.has-motion:not(.motion-paused) .is-inview .flow-current-bg img {
      will-change: transform;
      animation: current-glide 4.5s var(--ease-rio) 1 both;
    }
  }
}

/* Revelações leves: conteúdo permanece sempre legível (>= 0.72), nunca quase invisível */
html.has-motion [data-reveal] {
  transition: transform 360ms var(--ease-corrente),
              opacity 340ms ease;
}

html.has-motion [data-reveal="pending"] {
  opacity: 0.76;
  transform: translate3d(0, 0.85rem, 0);
}

html.has-motion [data-reveal="pending"][data-motion="lateral-left"] {
  transform: translate3d(-1.1rem, 0, 0);
}

html.has-motion [data-reveal="pending"][data-motion="lateral-right"] {
  transform: translate3d(1.1rem, 0, 0);
}

html.has-motion [data-reveal="pending"][data-motion="calm-scale"] {
  transform: scale(0.985);
}

html.has-motion [data-reveal="visible"] {
  opacity: 1;
  transform: none;
}

/* Entrada subtil para imagens editoriais ao entrar no viewport (desktop, tablet e mobile) */
html.has-js [data-img-reveal] {
  transition: opacity 520ms var(--ease-corrente),
              transform 560ms var(--ease-corrente);
}

html.has-js [data-img-reveal="pending"] {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(1.02);
  will-change: opacity, transform;
}

html.has-js [data-img-reveal="visible"] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

/* Barras de distância: escala sem reflow */
.dist-track__bar-fill {
  transform-origin: left center;
  transition: transform 680ms var(--ease-corrente);
}

html.has-motion #percursos:not(.is-inview) .dist-track__bar-fill {
  transform: scaleX(0.28);
}

html.has-motion #percursos.is-inview .dist-track__bar-fill {
  transform: scaleX(1);
}

/* Textura de corrente de fundo */
.flow-current-bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-texture);
  pointer-events: none;
  opacity: 0.34;
}

.flow-current-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {

  .flow-beacon,
  .hero__texture img,
  .flow-current-bg img {
    animation: none !important;
  }

  [data-reveal],
  [data-img-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .dist-track__bar-fill {
    transform: none !important;
    transition: none !important;
  }
}

html.motion-paused .flow-beacon,
html.motion-paused .hero__texture img,
html.motion-paused .flow-current-bg img,
html.motion-paused .weekend-connector svg path {
  animation-play-state: paused !important;
  will-change: auto;
}

html.motion-paused [data-reveal],
html.motion-paused [data-img-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}