/* Four-stage narrative. Scoped to the ecosystem section. */
.ecosystem { background: #0b0f1a; }
.ecosystem .scene-sticky { overflow:hidden; }
.ecosystem .eco-kicker { color:#9299a8; margin-bottom:36px; }
.ecosystem .eco-narrative { position:relative; }
.ecosystem .eco-step { position:relative; min-height:470px; display:flex; align-items:center; }
.ecosystem .eco-text { position:relative; z-index:2; width:47%; max-width:530px; text-shadow:0 2px 14px #0b0f1a; }
.ecosystem .eco-category { font-size:10px; font-weight:500; letter-spacing:.16em; color:#b1b7c5; margin-bottom:25px; }
.ecosystem .eco-text h3 { font-size:clamp(36px,4.3vw,68px); line-height:1.07; letter-spacing:-.055em; font-weight:500; margin:0; }
.ecosystem .eco-body { color:#b1b7c5; font-size:15px; line-height:1.75; max-width:390px; margin-top:26px; }
.ecosystem .eco-micro { color:#9299a8; font-size:10px; line-height:1.7; margin-top:32px; letter-spacing:.015em; }

/* Desktop visual column (default) */
.ecosystem .eco-art {
  position: absolute;
  width: 100%;
  right: -15%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 58% 54% at 56% 48%, black 25%, rgba(0,0,0,0.85) 48%, rgba(0,0,0,0.25) 75%, transparent 94%);
  mask-image: radial-gradient(ellipse 58% 54% at 56% 48%, black 25%, rgba(0,0,0,0.85) 48%, rgba(0,0,0,0.25) 75%, transparent 94%);
}
.ecosystem .eco-art::before {
  content: '';
  position: absolute;
  inset: 4%;
  background: radial-gradient(ellipse, #2563ff16, transparent 67%);
  pointer-events: none;
}
.ecosystem .eco-art::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 32%;
  background: linear-gradient(to right, transparent, rgba(11, 15, 26, 0.4) 40%, rgba(11, 15, 26, 0.9) 80%, #0b0f1a 100%);
  pointer-events: none;
}

/* Base video styling */
.ecosystem .eco-art-video {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* Desktop vs Mobile video display toggle */
@media(min-width: 768px) {
  .ecosystem .eco-video-desktop {
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: right center;
  }
  .ecosystem .eco-video-mobile {
    display: none !important;
  }
}

.ecosystem .eco-progress { display:flex; align-items:center; gap:22px; font-size:8px; letter-spacing:.13em; color:#9299a8; margin-top:25px; }
.ecosystem .eco-progress i { height:1px; flex:1; background:linear-gradient(90deg,#2563ff,#2563ff22); transform-origin:left; }

.motion-ready .ecosystem { height:260svh; }
.motion-ready .ecosystem .eco-narrative { height:470px; }
.motion-ready .ecosystem .eco-step { position:absolute; inset:0; }
.motion-ready .ecosystem .eco-progress i { transform:scaleX(0); }

/* Context remains visible in the first column; narrative owns the second */
.ecosystem .eco-columns { display:grid; grid-template-columns:minmax(0, .8fr) minmax(0, 1.2fr); gap:7%; align-items:center; }
.ecosystem .eco-intro { max-width:380px; }
.ecosystem .eco-intro h2 { font-size:clamp(27px,2.65vw,42px); line-height:1.16; }
.ecosystem .eco-intro h2 span { color:#b1b7c5; }
.ecosystem .eco-intro-index { display:block; font-size:10px; color:#9299a8; margin-top:28px; }
.ecosystem .eco-intro-lead { font-size:15px; line-height:1.65; margin-top:17px; max-width:325px; }
.ecosystem .eco-intro-support { font-size:12px; line-height:1.8; color:#b1b7c5; margin-top:16px; max-width:320px; }
.ecosystem .eco-intro-caption { display:block; font-size:8px; letter-spacing:.13em; color:#9299a8; margin-top:28px; }
.ecosystem .eco-cta { margin-top: 32px; }
.ecosystem .eco-cta-mobile { display: none !important; }

@media(max-width:1000px) and (min-width:768px) {
  .ecosystem .eco-columns { gap:5%; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); }
  .ecosystem .eco-text h3 { font-size:34px; }
  .ecosystem .eco-intro-lead { font-size:13px; }
  .ecosystem .eco-intro-support { font-size:11px; }
  .ecosystem .eco-art { width: 95%; right: -10%; }
}

/* =========================================================================
   MOBILE ARCHITECTURE (<= 767px)
   Vertical flow:
   1. Texto Coluna 1 (.eco-intro)
   2. Ilustração / Vídeo (.eco-art, order: 1)
   3. Texto Coluna 2 (.eco-text, order: 2)
   ========================================================================= */
@media(max-width:767px) {
  .ecosystem .eco-video-desktop {
    display: none !important;
  }
  .ecosystem .eco-video-mobile {
    display: block;
    width: 100%;
    height: 225px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
  }

  .ecosystem .eco-columns {
    display: flex;
    flex-direction: column;
  }

  .ecosystem .scene-sticky {
    padding-block: 54px 16px;
  }
  .motion-ready .ecosystem .scene-sticky {
    min-height: 0;
  }

  /* 1. Texto Coluna 1 - kicker visível; bloco descritivo oculto no mobile */
  .ecosystem .eco-intro {
    max-width: 100%;
    margin-bottom: 10px;
  }
  .ecosystem .eco-kicker {
    font-size: 10px;
    letter-spacing: .15em;
    margin-bottom: 0;
  }
  .ecosystem .eco-intro h2,
  .ecosystem .eco-intro-index,
  .ecosystem .eco-intro-lead,
  .ecosystem .eco-intro-support,
  .ecosystem .eco-intro-caption {
    display: none !important;
  }
  .ecosystem .eco-cta-desktop {
    display: none !important;
  }
  .ecosystem .eco-cta-mobile {
    display: flex !important;
    margin-top: 18px;
    width: 100%;
    justify-content: flex-start;
  }
  .ecosystem .eco-cta-mobile .button {
    padding: 14px 20px;
    font-size: 12px;
    gap: 18px;
    min-height: 48px;
  }

  /* Container da narrativa */
  .ecosystem .eco-narrative {
    width: 100%;
  }
  .ecosystem .eco-step {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-height: 410px;
  }
  .motion-ready .ecosystem .eco-narrative {
    width: 100%;
    height: 410px;
  }

  /* 2. Ilustração / Vídeo (order: 1) - enquadramento completo sem corte no topo */
  .ecosystem .eco-art {
    order: 1;
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
    margin-bottom: 10px;
    opacity: 1;
    -webkit-mask-image: radial-gradient(ellipse 85% 82% at 50% 48%, black 55%, rgba(0,0,0,0.85) 80%, transparent 100%);
    mask-image: radial-gradient(ellipse 85% 82% at 50% 48%, black 55%, rgba(0,0,0,0.85) 80%, transparent 100%);
  }
  .ecosystem .eco-art::before,
  .ecosystem .eco-art::after {
    display: none;
  }

  /* 3. Texto Coluna 2 (order: 2) */
  .ecosystem .eco-text {
    order: 2;
    width: 100%;
    max-width: 100%;
    text-align: left;
    margin: 0;
  }
  .ecosystem .eco-category {
    font-size: 10px;
    letter-spacing: .14em;
    margin-bottom: 6px;
  }
  .ecosystem .eco-text h3 {
    font-size: 20px;
    line-height: 1.2;
    max-width: 100%;
  }
  .ecosystem .eco-body {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
    max-width: 100%;
  }
  .ecosystem .eco-micro {
    font-size: 11px;
    margin-top: 8px;
    line-height: 1.45;
  }

  .ecosystem .eco-progress {
    margin-top: 12px;
    font-size: 9.5px;
    gap: 14px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .ecosystem .eco-step { margin-bottom:55px; }
  .ecosystem .eco-progress { display:none; }
}
