html { scroll-behavior: smooth; }
    
    #divider {
  box-shadow: 0 0 12px rgba(255,255,255,0.8);
}
    
    .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
}

    .fade-in {
      opacity: 0;
      transform: translateY(40px);
      transition: all 1s ease;
    }
    .fade-in.show {
      opacity: 1;
      transform: translateY(0);
    }

    .glow {
      box-shadow: 0 0 25px rgba(0,255,120,0.35);
      animation: pulse 3s infinite;
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 10px rgba(0,255,120,0.2); }
      50% { box-shadow: 0 0 30px rgba(0,255,120,0.5); }
      100% { box-shadow: 0 0 10px rgba(0,255,120,0.2); }
    }

    .ba-container {
      position: relative;
      max-width: 900px;
      margin: auto;
      overflow: hidden;
      border-radius: 20px;
    }

    .ba-container img {
      width: 100%;
      display: block;
    }

    .ba-after {
      position: absolute;
      top: 0;
      left: 0;
      width: 50%;
      height: 100%;
      overflow: hidden;
    }

    .slider {
      width: 100%;
      margin-top: 12px;
    }

    nav {
      position: fixed;
      top: 0;
      width: 100%;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(10px);
      padding: 12px 20px;
      z-index: 50;
    }
    
    /* =========================================
   IOT MATILDA DEVELOPMENT TIMELINE
========================================= */

.matilda-timeline {
  position: relative;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Central timeline */
.matilda-timeline::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.45),
    rgba(255,255,255,0.08)
  );
}


/* Individual stage */
.matilda-stage {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  margin-bottom: 55px;
}


/* Number */
.stage-number {
  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;

  background: #050505;

  font-size: 14px;
  font-weight: 700;

  position: relative;
  z-index: 2;

  transition: all 0.5s ease;
}


/* Stage content */
.stage-content {
  padding: 8px 0 30px;
}


.stage-label {
  display: inline-block;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;

  color: #999;

  margin-bottom: 12px;
}


.stage-content h3 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;

  margin-bottom: 14px;
}


.stage-content p {
  max-width: 720px;

  color: #9ca3af;

  line-height: 1.8;
  font-size: 16px;
}


/* Technical flow */
.stage-core {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;

  margin-top: 20px;

  font-size: 12px;
  color: #d1d5db;
}


.stage-core span {
  padding: 7px 11px;

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;

  background: rgba(255,255,255,0.025);
}


/* Evolution stages */
.future-stage .stage-number {
  border-style: dashed;
}


.future-label {
  display: inline-block;

  margin-left: 8px;

  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;

  color: #777;

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;

  padding: 4px 8px;
}


/* Final vision */
.final-stage {
  margin-bottom: 0;
}


.final-stage .stage-number {
  width: 72px;
  height: 72px;

  margin-left: -4px;

  border-width: 2px;
}


.final-stage .stage-content h3 {
  font-size: 30px;
}


/* Hover interaction */
.matilda-stage:hover .stage-number {
  transform: scale(1.08);

  box-shadow:
    0 0 20px rgba(255,255,255,0.15);
}


.matilda-stage:hover .stage-label {
  color: #fff;
}


/* Mobile */
@media (max-width: 640px) {

  .matilda-timeline::before {
    left: 25px;
  }

  .matilda-stage {
    grid-template-columns: 50px 1fr;
    gap: 18px;
    margin-bottom: 45px;
  }

  .stage-number {
    width: 50px;
    height: 50px;

    font-size: 12px;
  }

  .stage-content {
    padding-top: 4px;
  }

  .stage-content h3 {
    font-size: 21px;
  }

  .stage-content p {
    font-size: 15px;
    line-height: 1.7;
  }

  .stage-core {
    gap: 6px;
  }

  .stage-core span {
    font-size: 11px;
    padding: 6px 9px;
  }

  .final-stage .stage-number {
    width: 56px;
    height: 56px;
    margin-left: -3px;
  }

  .final-stage .stage-content h3 {
    font-size: 23px;
  }

  .future-label {
    display: block;
    width: fit-content;
    margin: 5px 0 0;
  }
}
