/* =============================================================================
   Ameize — style.css
   Custom styles that complement Tailwind CDN
   ============================================================================= */

/* --------------------------------------------------------------------------- */
/* Base                                                                          */
/* --------------------------------------------------------------------------- */

html {
  scroll-padding-top: 84px;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
}

.site-particles {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 8;
  pointer-events: none;
  opacity: 0.82;
  mix-blend-mode: screen;
}

.site-hex-mark {
  position: fixed;
  left: max(-42vw, -620px);
  top: 50%;
  width: clamp(720px, 78vw, 1280px);
  z-index: 3;
  pointer-events: none;
  opacity: 0.16;
  transform: translateY(-50%) rotate(-10deg);
  mix-blend-mode: screen;
  filter: saturate(0.82) sepia(0.16) drop-shadow(0 0 80px rgba(34, 197, 94, 0.16));
}

.site-hex-mark img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------- */
/* Logo — original PNG (black) inverted to white for dark background            */
/* --------------------------------------------------------------------------- */

.logo-img {
  filter: invert(1) brightness(10);
  /* Prevent the white logo from looking washed-out on scrolled (glassmorphism) nav */
  transition: opacity 0.2s ease;
}

.logo-img:hover {
  opacity: 0.85;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------- */
/* Navbar scroll effect                                                          */
/* --------------------------------------------------------------------------- */

#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(17, 19, 24, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------- */
/* Ambient orbs (hero & contact background)                                      */
/* --------------------------------------------------------------------------- */

#hero {
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 40%, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.07) 26%, transparent 56%),
    radial-gradient(circle at 72% 30%, rgba(74, 222, 128, 0.10) 0%, transparent 34%),
    radial-gradient(circle at 24% 72%, rgba(180, 83, 9, 0.14) 0%, rgba(180, 83, 9, 0.05) 28%, transparent 48%),
    linear-gradient(180deg, #121821 0%, #111318 42%, #10120f 100%);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 10% 12% 18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(74, 222, 128, 0.20) 0%, rgba(34, 197, 94, 0.10) 28%, rgba(17, 19, 24, 0) 68%),
    radial-gradient(ellipse at 42% 68%, rgba(180, 83, 9, 0.10) 0%, rgba(180, 83, 9, 0) 46%),
    radial-gradient(ellipse at 50% 52%, rgba(255, 255, 255, 0.052) 0%, rgba(255, 255, 255, 0) 48%);
  filter: blur(24px);
  opacity: 0.88;
  transform: translate3d(0, 0, 0);
  animation: heroBacklight 9s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(180, 83, 9, 0.10), transparent 24%, transparent 76%, rgba(34, 197, 94, 0.10)),
    radial-gradient(circle at 50% 100%, rgba(74, 222, 128, 0.08), transparent 42%);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .site-hex-mark {
    left: -92vw;
    width: 168vw;
    opacity: 0.11;
  }
}

@keyframes heroBacklight {
  0%, 100% { opacity: 0.68; transform: translate3d(0, 0, 0) scale(0.98); }
  50% { opacity: 0.98; transform: translate3d(0, -10px, 0) scale(1.04); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  pointer-events: none;
  animation: floatOrb 14s ease-in-out infinite;
}

.orb-1 {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, #16a34a 0%, transparent 70%);
  top: -160px;
  left: -120px;
  opacity: 0.36;
  animation-delay: 0s;
  animation-duration: 16s;
}

.orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #4ade80 0%, transparent 70%);
  top: 60px;
  right: -60px;
  opacity: 0.34;
  animation-delay: -5s;
  animation-duration: 20s;
}

.orb-3 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #b45309 0%, transparent 70%);
  bottom: -30px;
  left: 18%;
  opacity: 0.22;
  animation-delay: -10s;
  animation-duration: 18s;
}

.orb-contact {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #15803d 0%, transparent 70%);
  top: -120px;
  right: -120px;
  opacity: 0.18;
  animation-delay: -3s;
  animation-duration: 17s;
}

@keyframes floatOrb {
  0%,  100% { transform: translate(0, 0)      scale(1);    }
  33%        { transform: translate(28px, -28px) scale(1.06); }
  66%        { transform: translate(-20px, 18px) scale(0.94); }
}

/* --------------------------------------------------------------------------- */
/* Hero grid overlay                                                             */
/* --------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------- */
/* Hero hex-grid overlay — ecoa o padrão hexagonal do logo                      */
/* --------------------------------------------------------------------------- */

.grid-overlay {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32z' fill='none' stroke='rgba(249,115,22,0.07)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

/* --------------------------------------------------------------------------- */
/* Gradient text                                                                 */
/* --------------------------------------------------------------------------- */

.gradient-text {
  background: linear-gradient(135deg, #16a34a 0%, #4ade80 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------- */
/* Hero badge glow                                                               */
/* --------------------------------------------------------------------------- */

.badge-glow {
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.28);
}

/* --------------------------------------------------------------------------- */
/* Glassmorphism card                                                            */
/* --------------------------------------------------------------------------- */

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 197, 94, 0.28);
}

/* --------------------------------------------------------------------------- */
/* Service cards                                                                 */
/* --------------------------------------------------------------------------- */

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(34, 197, 94, 0.14);
}

/* --------------------------------------------------------------------------- */
/* Tech tags (chips inside service cards)                                        */
/* --------------------------------------------------------------------------- */

.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 9999px;
  font-size: 0.72rem;
  color: #86efac;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------- */
/* Technology tiles                                                              */
/* --------------------------------------------------------------------------- */

.tech-tile {
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tech-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(34, 197, 94, 0.16);
}

/* --------------------------------------------------------------------------- */
/* Process step — scroll-reveal with stagger                                     */
/* --------------------------------------------------------------------------- */

.process-step {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------- */
/* Generic scroll-reveal                                                         */
/* --------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------- */
/* Scroll indicator                                                              */
/* --------------------------------------------------------------------------- */

.scroll-line {
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(1);    }
  50%       { opacity: 0.70; transform: scaleY(1.18); }
}

/* --------------------------------------------------------------------------- */
/* Language toggle active state                                                  */
/* --------------------------------------------------------------------------- */

.lang-btn {
  transition: border-color 0.2s ease, color 0.2s ease;
}

/* --------------------------------------------------------------------------- */
/* Mobile menu slide-in                                                          */
/* --------------------------------------------------------------------------- */

#mobile-menu {
  animation: menuSlideDown 0.2s ease forwards;
}

@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0);     }
}

/* --------------------------------------------------------------------------- */
/* Active nav link (highlighted by JS)                                           */
/* --------------------------------------------------------------------------- */

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #16a34a, #4ade80);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: center;
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------- */
/* Text selection                                                                */
/* --------------------------------------------------------------------------- */

::selection {
  background: rgba(34, 197, 94, 0.32);
  color: #ffffff;
}

/* --------------------------------------------------------------------------- */
/* Custom scrollbar (Webkit)                                                     */
/* --------------------------------------------------------------------------- */

::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #0a0f1e; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #22c55e; }

/* --------------------------------------------------------------------------- */
/* Gramado animado no rodapé                                                   */
/* --------------------------------------------------------------------------- */

.grass-scene {
  position: relative;
  width: 100%;
  height: 68px;
  overflow: hidden;
  margin-bottom: 0;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(34, 197, 94, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(17, 19, 24, 0) 0%, rgba(16, 24, 18, 0.82) 58%, #0e1511 100%);
}

.grass-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, #111318 0%, rgba(17, 19, 24, 0.82) 28%, rgba(17, 19, 24, 0.22) 58%, transparent 100%),
    radial-gradient(ellipse at 52% 88%, rgba(74, 222, 128, 0.12), transparent 56%);
}

.grass-scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 24px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.10), transparent),
    linear-gradient(180deg, rgba(14, 21, 17, 0), #0d1711 72%);
  box-shadow: 0 -18px 52px rgba(34, 197, 94, 0.08);
}

.grass-svg {
  display: block;
  width: 100%;
  height: 68px;
  position: relative;
  z-index: 2;
  opacity: 0.34;
  filter: saturate(0.72) brightness(0.72) contrast(1.08);
  transform: translateY(9px) scaleY(0.82);
  transform-origin: bottom center;
}

/* Formigas caminhando */
.ant-trail {
  position: absolute;
  bottom: 19px;
  z-index: 6;
  opacity: 0.46;
  filter: saturate(0.72) brightness(0.74) drop-shadow(0 0 8px rgba(74, 222, 128, 0.20));
  transform-origin: center;
}

.ant-right {
  animation: walkRight 22s linear infinite;
  left: -30px;
}

.ant-left {
  animation: walkLeft 30s linear infinite;
  right: -30px;
  bottom: 21px;
  animation-delay: -8s;
}

.ant-small {
  animation-duration: 38s;
  animation-delay: -15s;
  bottom: 18px;
  opacity: 0.34;
}

footer {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, #0d1711 0%, #0f1513 100%);
}

@keyframes walkRight {
  from { transform: translateX(0) scale(0.82); }
  to   { transform: translateX(calc(100vw + 60px)) scale(0.82); }
}

@keyframes walkLeft {
  from { transform: translateX(0) scale(0.82); }
  to   { transform: translateX(calc(-100vw - 60px)) scale(0.82); }
}

/* --------------------------------------------------------------------------- */

[data-pt][data-en] {
  transition: opacity 0.15s ease;
}

/* =========================================================================== */
/* PHASE 2 — Animações fluidas                                                  */
/* =========================================================================== */

/* Hero: animação de entrada em cascata ------------------------------------ */
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(32px);
  animation: heroSlideUp 0.88s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-line:nth-child(1) { animation-delay: 0.12s; }
.hero-line:nth-child(2) { animation-delay: 0.34s; }
.hero-line:nth-child(3) { animation-delay: 0.56s; }

.hero-sub {
  opacity: 0;
  transform: translateY(22px);
  animation: heroSlideUp 0.88s cubic-bezier(0.16, 1, 0.3, 1) 0.76s forwards;
}
.hero-cta {
  opacity: 0;
  transform: translateY(18px);
  animation: heroSlideUp 0.88s cubic-bezier(0.16, 1, 0.3, 1) 1.0s forwards;
}
@keyframes heroSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal — variantes direcionais ----------------------------------- */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Upgrade easing do reveal base e process-step para spring ---------------- */
.reveal       { transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.process-step { transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1); }

/* Service cards — iniciam escondidos, animam ao entrar -------------------- */
.service-card {
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card.visible             { opacity: 1; transform: translateY(0) scale(1); }
.service-card.visible:hover       { transform: translateY(-6px) scale(1); box-shadow: 0 28px 64px rgba(34, 197, 94, 0.15); }

/* Tech tiles — mesmo tratamento ------------------------------------------ */
.tech-tile {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}
.tech-tile.visible             { opacity: 1; transform: translateY(0); }
.tech-tile.visible:hover       { transform: translateY(-6px); box-shadow: 0 14px 44px rgba(34, 197, 94, 0.15); }

/* Reduced motion ---------------------------------------------------------  */
@media (prefers-reduced-motion: reduce) {
  .hero-line, .hero-sub, .hero-cta { animation: none; opacity: 1; transform: none; }
  #hero::before { animation: none; }
  .reveal, .reveal-left, .reveal-right,
  .service-card, .tech-tile, .process-step { transition: none; opacity: 1; transform: none; }
  .section-art-motion::before,
  .section-art-motion img,
  .section-art-ant::before,
  .section-art-ant img { animation: none; }
}

/* =========================================================================== */
/* Section art — backgrounds animados por seção                                 */
/* =========================================================================== */

.section-art {
  position: absolute;
  right: 0;
  top: 50%;
  width: clamp(260px, 36vw, 440px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 0;
  opacity: 0;
  transform: translateY(-50%) translateX(90px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-art.visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.section-art img {
  display: block;
  width: 100%;
  height: auto;
}
.section-art-motion {
  --art-parallax-x: 0px;
  --art-parallax-y: 0px;
  opacity: 0;
}
.section-art-motion.visible {
  opacity: 0.88;
  transform: translateY(calc(-50% + var(--art-parallax-y))) translateX(var(--art-parallax-x));
}
.section-art-motion::before {
  content: "";
  position: absolute;
  inset: 16% 8% 12% 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.18), rgba(34, 197, 94, 0.04) 48%, transparent 70%);
  filter: blur(18px);
  opacity: 0.75;
  transform: translate3d(0, 0, 0) scale(0.92);
  animation: antAura 6.5s ease-in-out infinite;
}
.section-art-motion img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 28px rgba(34, 197, 94, 0.16));
  animation: antLogoFloat 7.5s ease-in-out infinite;
}
.section-art-ant {
  width: clamp(390px, 48vw, 720px);
  right: -8vw;
}
.section-art-cases {
  width: clamp(370px, 46vw, 700px);
  right: -8vw;
  top: 46%;
}
.section-art-services {
  width: clamp(360px, 44vw, 680px);
  right: -7vw;
  top: 42%;
}
.section-art-process {
  width: clamp(260px, 32vw, 440px);
  right: -4vw;
  top: 52%;
}
.section-art-tech {
  width: clamp(370px, 46vw, 700px);
  right: -8vw;
  top: 46%;
}
.section-art-services::before,
.section-art-tech::before {
  inset: 20% 5% 12% 12%;
}
.section-art-process::before {
  inset: 12% 18% 10% 22%;
}
@keyframes antAura {
  0%, 100% { opacity: 0.48; transform: translate3d(-8px, 4px, 0) scale(0.88); }
  50% { opacity: 0.9; transform: translate3d(10px, -8px, 0) scale(1.04); }
}
@keyframes antLogoFloat {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(34, 197, 94, 0.14)); }
  50% { filter: drop-shadow(0 0 42px rgba(74, 222, 128, 0.28)); }
}
@media (max-width: 768px) {
  .section-art {
    display: block;
    width: min(92vw, 420px);
    right: -34vw;
    top: 92px;
    opacity: 0;
    transform: translateY(0) translateX(38px) scale(0.94);
  }
  .section-art.visible,
  .section-art-motion.visible {
    opacity: 0.34;
    transform: translateY(0) translateX(0) scale(1);
  }
  .section-art-motion::before {
    opacity: 0.42;
    filter: blur(14px);
  }
  .section-art-motion img {
    filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.14));
  }
  .section-art-ant {
    width: min(104vw, 470px);
    right: -44vw;
    top: 36px;
  }
  .section-art-services {
    width: min(96vw, 440px);
    right: -38vw;
    top: 72px;
  }
  .section-art-process {
    width: min(72vw, 310px);
    right: -23vw;
    top: 54px;
  }
  .section-art-tech {
    width: min(98vw, 450px);
    right: -40vw;
    top: 68px;
  }
  .section-art-cases {
    width: min(98vw, 450px);
    right: -40vw;
    top: 68px;
  }
}

@media (max-width: 420px) {
  .section-art.visible,
  .section-art-motion.visible {
    opacity: 0.28;
  }
  .section-art-ant { right: -52vw; }
  .section-art-services { right: -48vw; }
  .section-art-tech { right: -50vw; }
  .section-art-cases { right: -50vw; }
}

/* Ant — nós com pulso orgânico */
.gn {
  transform-box: fill-box;
  transform-origin: center;
  animation: gnPulse 3s ease-in-out infinite;
}
@keyframes gnPulse {
  0%, 100% { transform: scale(1);   opacity: 0.35; }
  50%       { transform: scale(2.6); opacity: 1; }
}

/* Neural network — linhas */
.nn-line { stroke: #22c55e; stroke-width: 0.7; opacity: 0; transition: opacity 0.4s ease; }
.section-art.visible .nn-line {
  animation: nnLineIn 0.7s ease forwards, nnLinePulse 3.5s ease-in-out infinite;
  animation-delay: var(--nd, 0s), calc(var(--nd, 0s) + 0.7s);
}
@keyframes nnLineIn    { to   { opacity: 0.22; } }
@keyframes nnLinePulse { 0%,100% { opacity: 0.12; } 50% { opacity: 0.4; } }

/* Neural network — nós */
.nn-node {
  stroke: #22c55e; stroke-width: 1.2; fill: rgba(34,197,94,0.08);
  opacity: 0; transform-box: fill-box; transform-origin: center;
  transition: opacity 0.4s ease;
}
.section-art.visible .nn-node {
  animation: nnNodeIn 0.6s cubic-bezier(0.16,1,0.3,1) forwards, nnNodePulse 3s ease-in-out infinite;
  animation-delay: var(--nd, 0s), calc(var(--nd, 0s) + 0.6s);
}
@keyframes nnNodeIn    { from { opacity: 0; transform: scale(0.3); } to { opacity: 0.7; transform: scale(1); } }
@keyframes nnNodePulse { 0%,100% { opacity: 0.35; } 50% { opacity: 0.85; } }

/* Pipeline — nós */
.pipe-node {
  stroke: #22c55e; stroke-width: 1.2; fill: rgba(34,197,94,0.06);
  opacity: 0; transform-box: fill-box; transform-origin: center;
  transition: opacity 0.4s ease;
}
.section-art.visible .pipe-node {
  animation: pipeNodeIn 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: var(--nd, 0s);
}
@keyframes pipeNodeIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 0.5; transform: scale(1); } }

/* Pipeline — números */
.pipe-num { opacity: 0; transition: opacity 0.4s ease; }
.section-art.visible .pipe-num {
  animation: pipeFade 0.5s ease forwards;
  animation-delay: var(--nd, 0s);
}
@keyframes pipeFade { to { opacity: 0.65; } }

/* Pipeline — linhas de fluxo animadas */
.pipe-flow {
  stroke: #4ade80; stroke-width: 1.5; stroke-dasharray: 6 14;
  opacity: 0; transition: opacity 0.4s ease;
}
.section-art.visible .pipe-flow {
  animation: pipeFlowIn 0.4s ease forwards, pipeFlowMove 1.6s linear infinite;
  animation-delay: var(--nd, 0s), calc(var(--nd, 0s) + 0.4s);
}
@keyframes pipeFlowIn  { to { opacity: 0.55; } }
@keyframes pipeFlowMove { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }

/* Honeycomb — células */
.hx-i { opacity: 0; transition: opacity 0.4s ease; }
.section-art.visible .hx-i {
  animation: hexIn 0.55s ease forwards;
  animation-delay: var(--hd, 0s);
}
@keyframes hexIn { to { opacity: 0.45; } }
