:root {
  --shadow-soft: 0 22px 55px rgba(51, 51, 51, 0.1);
  --shadow-card: 0 18px 45px rgba(0, 129, 182, 0.12);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}
.manufacturing-hero {
  .manufacturing-hero-wrapper {
    position: relative;

    .hero-main-image {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: auto;

      /* Start fully scaled down at center */
      transform: translate(-50%, -50%) scale(0);
      transform-origin: center center;

      animation: heroImageAnimation 1s forwards;
      animation-delay: 0.5s;
      z-index: -1;
    }
  }
}

@keyframes heroImageAnimation {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@media (max-width: 991.98px) {
  .manufacturing-hero {
    .manufacturing-hero-wrapper {
      display: flex;
      justify-content: center;
      .hero-main-image {
        width: auto;
      }
    }
  }
}
/* ---------- Story shell / grid ---------- */
.story-shell {
  position: relative;
  border-top: 1px solid var(--primary-light-border);
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(0, 129, 182, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 129, 182, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.story-grid {
  position: relative;
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.84fr) 46px;
  column-gap: clamp(24px, 3.2vw, 58px);
}

/* ---------- Left: challenge steps ---------- */
.steps-column {
  min-width: 0;
}

.challenge-step {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 0px 210px 80px 0;
  scroll-margin-top: 6vh;
}

.step-content {
  max-width: 670px;
  opacity: 1;
  transform: translateY(18px);
  transition:
    opacity 600ms var(--ease-premium),
    transform 600ms var(--ease-premium);
}

.challenge-step.is-active .step-content {
  transform: translateY(0);
}

.problem-heading {
  margin-bottom: 20px;
  color: var(--white-foreground);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.step-content ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-content li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  color: var(--white-foreground);
  font-size: 15px;
  line-height: 1.62;
  opacity: 1;
  transform: translateY(14px);
  transition:
    opacity 500ms var(--ease-premium) var(--delay, 0ms),
    transform 500ms var(--ease-premium) var(--delay, 0ms);
}

.challenge-step.is-active li {
  transform: translateY(0);
}

.problem-marker {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--primary-light-border);
  border-radius: 50%;
  background: var(--white);
}

.problem-marker span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-color);
}

/* ---------- Progress rail (far right) ---------- */
.progress-rail {
  position: sticky;
  top: 70%;
  align-self: start;
  height: 440px;
  right: -10px;
  margin-top: -50vh;
  transform: translate(8%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 5;
}

.rail-track {
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: 13px;
  width: 1px;
  background: var(--primary-light-border);
}

.rail-track span {
  display: block;
  width: 100%;
  background: var(--primary-color);
  transition: height 500ms var(--ease-premium);
}

.progress-rail a {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  color: var(--primary-light-border);
  text-decoration: none;
  transition: color 300ms ease;
}

.rail-dot {
  justify-self: end;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border: 2px solid var(--primary-light-border);
  border-radius: 50%;
  background: var(--white);
  transition: all 300ms ease;
}

.progress-rail a.active {
  color: var(--primary-color);
}

.progress-rail a.active .rail-dot {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--primary-color);
  border-radius: 10px;
  margin-right: 6px;
}

/* ---------- Right: sticky visual stage ---------- */
.visual-column {
  min-width: 0;
}

.sticky-stage {
  position: sticky;
  top: 18%;
  height: 100vh;
  min-height: 680px;
  overflow: visible;
  isolation: isolate;
  border-left: 1px solid rgba(223, 229, 234, 0.65);
}

.portrait-wrap {
  position: absolute;
  inset: 15% 0 0 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  animation: portrait-breathe 7s ease-in-out infinite;
  transform-origin: bottom center;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  display: block;
}

.portrait-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4),
    transparent 25%,
    transparent 76%,
    rgba(51, 51, 51, 0.12)
  );
  pointer-events: none;
}

/* ---------- Thought bubble ---------- */
.thought-card {
  position: relative;
  z-index: 4;
  width: min(100%, 500px);
  margin: 0 0 66px auto;
  padding: 27px 30px 29px;
  border: 1px solid var(--primary-light-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 var(--white);
  backdrop-filter: blur(8px);
  animation: thought-in 650ms var(--ease-premium) both;
}

.visual-thought {
  position: absolute;
  top: -4%;
  left: -50%;
  width: min(500px, 115%);
  margin: 0;
}

.thought-card::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 0;
  width: 3px;
  height: 54px;
  border-radius: 0 4px 4px 0;
  background: var(--primary-color);
}

/* ---------- Thought dots (head → bubble chain) ---------- */
.thought-dots {
  position: absolute;
  z-index: 5;
  bottom: -120px;
  right: 3%;
  width: 92px;
  height: 112px;
  pointer-events: none;
}

.thought-dot {
  position: absolute;
  display: block;
  border: 1px solid var(--primary-light-border);
  border-radius: 50%;
  background: var(--white);
  box-shadow:
    0 6px 14px rgba(51, 51, 51, 0.09),
    inset 0 1px 0 var(--white);
  opacity: 0;
  animation: dot-in 420ms var(--ease-premium) forwards;
}

.dot-one {
  width: 23px;
  height: 23px;
  top: 0;
  left: 0;
  animation-delay: 120ms;
}

.dot-two {
  width: 16px;
  height: 16px;
  top: 40px;
  left: 20px;
  animation-delay: 200ms;
}

.dot-three {
  width: 10px;
  height: 10px;
  top: 60px;
  left: 52px;
  animation-delay: 280ms;
}

/* ---------- Animations ---------- */
@keyframes thought-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dot-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.65);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes portrait-breathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.004);
  }
}

@media (max-width: 1199.98px) {
  .challenge-step {
    padding: 0px 10px 80px 0;
  }
}
/* ---------- Tablet / mobile ---------- */
@media (max-width: 991.98px) {
  .intro-wrap {
    width: min(100% - 32px, 720px);
    padding: 62px 0 40px;
  }

  .intro-wrap::after {
    display: none;
  }

  .intro-wrap h1 {
    font-size: clamp(34px, 8vw, 52px);
  }

  .intro-wrap > p {
    font-size: 15px;
  }

  .story-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .progress-rail a.active .rail-dot {
    width: 40px;
    height: 6px;
    border-radius: 5px;
    background: var(--white);
    margin: 0px;
  }
  .visual-column {
    order: -1;
    position: sticky;
    top: 60px;
    height: 58vh;
    min-height: 350px;
    z-index: 10;
    background: var(--white);
  }

  .steps-column {
    order: 1;
    position: relative;
    z-index: 1;
    padding: 0 20px;
    background: var(--white);
  }

  .sticky-stage {
    position: relative;
    height: 100% !important;
    min-height: 0 !important;
    width: min(100% - 24px, 620px);
    margin: 0 auto;
    border-left: 0;
    top: 0;
  }

  .portrait-wrap {
    inset: 9% 0 0 45%;
    &::after {
      position: absolute;
      content: "";
      bottom: 0px;
      left: 0;
      width: 100%;
      height: 20%;
      background: linear-gradient(transparent 0%, var(--secondary-light) 100%);
    }
  }

  .portrait-wrap img {
    object-position: 60% 37%;
  }

  .visual-thought {
    top: 5%;
    left: 0;
    width: min(70%, 430px);
  }

  .thought-card {
    width: 70%;
    padding: 18px 19px 20px;
    border-radius: 22px;
  }

  .thought-dots {
    /* top: 31%;
    left: 48%;
    transform: rotate(12deg); */
    display: none;
  }

  .challenge-step {
    min-height: 40vh;
    padding: 34px 0;
  }

  .step-content {
    max-width: 620px;
    margin: 0 auto;
    opacity: 1 !important;
    transform: translateY(0px);
  }

  .progress-rail {
    align-self: end;
    flex-direction: row;
    gap: 4px;
    height: auto;
    margin-top: 0;
    z-index: 400;
    margin-top: -20px;
    margin-right: 60px;
    bottom: 5%;
    right: 3%;
    position: absolute;
  }

  .rail-track {
    display: none;
  }

  .rail-dot {
    margin-right: 0;
    width: 6px;
    height: 6px;
    border: 0px;
    background: #a4a5a7;
  }
  .step-content li {
    transition: unset;
    opacity: 1 !important;
  }
}

@media (max-width: 520px) {
  .progress-rail {
    margin-top: -6%;
    top: 68%;
  }
  .visual-column {
    height: 54vh;
    min-height: 390px;
    top: 8%;
  }

  .portrait-wrap {
    inset: 12% 0 0 0%;
  }

  .visual-thought {
    width: min(78%, calc(100vw - 58px));
  }

  .thought-card {
    width: min(100%, calc(100vw - 58px));
    padding: 14px 15px 16px;
  }

  .thought-card::before {
    top: 17px;
    height: 38px;
  }

  .thought-dots {
    top: 100%;
    left: 31%;
    transform: scale(0.82) rotate(10deg);
  }

  .challenge-step {
    min-height: auto;
    padding: 25px 0;
  }

  .step-content li {
    font-size: 14px;
  }
}

/* ---------- Slider Mode (Width > 1920px OR Height > 870px) ---------- */
@media (min-width: 1920px) or (min-height: 870px) {
  .progress-rail {
    display: none;
  }
  .sticky-stage {
    height: auto;
    min-height: 600px;
  }
}

body.slider-mode .challenge-step {
  min-height: auto !important;
  display: none !important;
  padding: 0 !important;
}

body.slider-mode .challenge-step.is-active {
  display: flex !important;
}

body.slider-mode .steps-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Slider Navigation Buttons */
.slider-controls {
  display: none;
  gap: 12px;
  margin-top: 28px;
}

body.slider-mode .slider-controls {
  display: flex;
  align-items: center;
}

.slider-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--primary-light-border);
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-color);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 300ms var(--ease-premium);
}

.slider-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
  }

  .portrait-wrap {
    animation: none !important;
  }

  .step-content,
  .step-content li {
    transform: none;
  }
}

.features-sticky-section {
  position: relative;
  width: 100%;
  height: 300vh; /* Determines the scroll distance for horizontal translation */
  background-image: url("../images/manufacturing/core-features-modules-in-vasy-that-solve-these-challenges.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;

  /* Disable sticky height and fixed background on mobile, width > 1900px, or height > 800px */
  @media (max-width: 991px), (min-width: 1901px), (min-height: 801px) {
    height: auto;
    background-attachment: scroll;
    padding: 60px 0px !important;
  }

  .container {
    height: 100%;
  }

  .sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;

    /* Mobile specific styles */
    @media (max-width: 991px) {
      position: relative;
      top: auto;
      height: auto;
      grid-template-columns: 1fr;
      gap: 24px;
      text-align: center;
    }

    /* Large width (>1900px) or tall height (>800px) non-sticky styles */
    @media (min-width: 1901px), (min-height: 801px) {
      position: relative;
      top: auto;
      height: auto;
    }
  }

  .content-left {
    color: var(--white, #fff);
    text-align: left;

    .title {
      color: var(--white, #fff);
    }

    .section-desc {
      color: var(--blue-ligher);
      opacity: 0.95;
      max-width: 520px;
    }
  }

  .cards-right-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .cards-container {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
    transition: transform 0.1s linear;

    /* Enable normal horizontal scrolling for mobile, width > 1900px, or height > 800px */
    @media (max-width: 991px), (min-width: 1901px), (min-height: 801px) {
      width: 100%;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      transition: none;
      -ms-overflow-style: none;
      scrollbar-width: none;

      &::-webkit-scrollbar {
        display: none;
      }
    }
  }

  .feature-card {
    width: 600px;
    flex-shrink: 0;
    background: var(--white, #fff);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 30px var(--shadow, rgba(0, 0, 0, 0.1));

    @media (max-width: 991px) {
      width: 100%;
      scroll-snap-align: center;
      text-align: left;
    }

    @media (min-width: 1901px), (min-height: 801px) {
      scroll-snap-align: start;
    }

    @media (max-width: 576px) {
      padding: 20px;
    }

    .card-title {
      color: var(--secondary-color, #111);
      margin-bottom: 12px;
    }

    .card-description {
      color: var(--secondary-light, #555);
      margin-bottom: 20px;
    }

    .feature-list-box {
      background-color: var(--blue-lightest, #f0f7ff);
      border-radius: 14px;
      padding: 16px 16px 0px;

      ul {
        list-style: none;
        margin: 0;
        padding: 0 0 0 32px;
        display: flex;
        flex-direction: column;

        li {
          position: relative;

          &::before {
            content: "";
            position: absolute;
            left: -32px;
            top: 0px;
            height: 20px;
            width: 20px;
            background-image: url(../images/check-circle.svg);
            background-repeat: no-repeat;
            background-size: contain;
            background-position: center;
          }
        }
      }
    }
  }

  .controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding: 0 10px;

    .dots-wrapper {
      display: flex;
      align-items: center;
      gap: 10px;

      .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;

        &.active {
          background-color: #00b4d8;
          width: 10px;
          height: 10px;
        }
      }
    }

    .nav-buttons {
      display: flex;
      gap: 12px;

      .nav-btn {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: none;
        background-color: var(--white, #fff);
        color: var(--secondary-color, #111);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 10px var(--shadow, rgba(0, 0, 0, 0.1));
        transition:
          background-color 0.2s ease,
          transform 0.2s ease;

        &:hover {
          background-color: var(--primary-ligher, #e0f2fe);
          transform: translateY(-2px);
        }

        svg {
          width: 18px;
          height: 18px;
          fill: none;
          stroke: currentColor;
          stroke-width: 2.5;
          stroke-linecap: round;
          stroke-linejoin: round;
        }
      }
    }
  }
}

.feature-section {
  padding: 60px 0;
  background-color: var(--white);
}

.text-secondary-dark {
  color: var(--secondary-color);
}

.manufacturing-feature-section {
  .text-secondary-dark {
    color: var(--secondary-color);
  }

  .feature-card {
    height: 100%;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--secondary-ligher);
    background-color: var(--white);
    transition: all 0.3s ease;
  }

  .feature-card:hover {
    background-color: var(--primary-ligher);
    border-color: var(--primary-ligher);
  }

  .feature-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: var(--white);
    img {
      filter: brightness(0) invert(1);
    }
  }

  .feature-card .text-large {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 17px;
  }

  .feature-card .text-medium {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  /* Icon Container — inline SVGs use currentColor, so hover just swaps color */
  .icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: rgba(30, 144, 214, 0.1);
    transition: all 0.3s ease;
  }

  .icon-wrapper svg {
    width: 28px;
    height: 28px;
  }

  /* Mobile/tablet arrow controls */
  .slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--secondary-color);
    background-color: var(--white);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .slider-arrow:hover,
  .slider-arrow:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
  }

  .slider-arrow:disabled {
    opacity: 0.4;
    cursor: default;
    background: var(--white);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
  }
}
@media (max-width: 767.98px) {
  .manufacturing-feature-section {
    .feature-slider {
      flex-wrap: nowrap;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: 4px;
    }

    .feature-slider::-webkit-scrollbar {
      display: none;
    }

    .feature-slider > [class*="col-"] {
      flex: 0 0 82%;
      max-width: 82%;
      scroll-snap-align: start;
    }
  }
}

/* ============ ecosystem section ========== */
.ecosystem-section {
  position: relative;
  background: var(--white);

  /* the sticky viewport-sized stage */
  .ecosystem-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    /* padding: 48px 0; */
    overflow: hidden;
  }

  .section-head {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto clamp(16px, 3vw, 40px);

    .h1 {
      font-weight: 500;
      margin-bottom: 12px;
    }
    p {
      color: var(--secondary-light);
      margin-bottom: 0;
    }
  }

  /* ---------------- LEFT CARD ---------------- */
  .info-card {
    position: relative;
    background: var(--primary-ligher);
    border: 1px solid var(--primary-light-border);
    border-radius: 24px;
    padding: clamp(20px, 3vw, 40px);
    box-shadow: 0 10px 40px rgba(0, 129, 182, 0.06);
  }

  /* all panels share one grid cell → card keeps tallest height, no jump */
  .info-stack {
    display: grid;

    .info-panel {
      grid-area: 1 / 1;
      opacity: 0;
      visibility: hidden;
      transform: translateY(18px);
      transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        visibility 0.45s;

      &.is-active {
        opacity: 1;
        visibility: visible;
        transform: none;

        .info-list li {
          opacity: 1;
          transform: none;
        }
      }
    }
  }

  .info-title {
    font-weight: 600;
    padding-bottom: clamp(14px, 1.6vw, 22px);
    margin-bottom: clamp(16px, 2vw, 28px);
    border-bottom: 1px solid var(--secondary-color);
  }

  .info-desc {
    color: #555;
    margin-bottom: clamp(16px, 2vw, 28px);
  }

  .info-list {
    list-style: none;
    padding: 0 0 0 12px;
    margin: 0;

    li {
      position: relative;
      padding-left: 20px;
      color: #555;
      margin-bottom: 6px;
      opacity: 0;
      transform: translateX(-10px);
      transition:
        opacity 0.4s ease,
        transform 0.4s ease;

      &::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.75em;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--secondary-color);
      }

      &:nth-child(2) {
        transition-delay: 0.06s;
      }
      &:nth-child(3) {
        transition-delay: 0.12s;
      }
      &:nth-child(4) {
        transition-delay: 0.18s;
      }
    }
  }

  /* ---------------- RIGHT ORBIT ---------------- */
  .orbit {
    position: relative;
    width: 100%;
    height: clamp(340px, 38vw, 540px);

    .orbit-lines {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      overflow: visible;

      path {
        fill: none;
        stroke: var(--primary-light);
        stroke-width: 1.4;
        stroke-dasharray: 4 5;
        transition: stroke 0.3s ease;
        animation: dash-flow 1.2s linear infinite;

        &.is-active {
          stroke: var(--primary-color);
          stroke-width: 1.8;
        }
      }
    }
  }

  /* center hub */
  .hub {
    --hub: clamp(120px, 15vw, 210px);
    position: absolute;
    left: 50%;
    top: 52%;
    width: var(--hub);
    height: calc(var(--hub) * 0.95);
    transform: translate(-50%, -58%);
    z-index: 6;
    pointer-events: none;

    .hub-disc {
      position: absolute;
      left: 50%;
      border-radius: 50%;
      translate: -50% 0;
      aspect-ratio: 2.3 / 1;
    }
    .disc-ring {
      width: 56%;
      bottom: 21%;
      border: 1.5px solid rgba(255, 255, 255, 0.95);
      box-shadow: inset 0 0 10px rgba(80, 150, 255, 0.35);
    }

    .hub-logo {
      position: absolute;
      left: 50%;
      bottom: 0%;
      width: 100%;
      aspect-ratio: 1;
      translate: -50% 0;
      display: grid;
      place-items: center;
      animation: hub-float 4s ease-in-out infinite;

      span {
        font-weight: 800;
        font-size: calc(var(--hub) * 0.17);
        letter-spacing: -0.04em;
        color: var(--primary-dark);
        line-height: 1;

        b {
          color: var(--primary-light);
        }
      }
    }
  }

  /* isometric tiles */
  .tile {
    --tw: clamp(78px, 8.4vw, 124px);
    --focus: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: var(--tw);
    height: calc(var(--tw) * 0.8);
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;

    &:focus-visible {
      outline: 2px solid var(--primary-color);
      outline-offset: 6px;
      border-radius: 12px;
    }

    .tile-layer {
      position: absolute;
      left: 50%;
      top: 50%;
      width: calc(var(--tw) * 0.7);
      height: calc(var(--tw) * 0.7);
      margin: calc(var(--tw) * -0.35) 0 0 calc(var(--tw) * -0.35);
      border-radius: 16%;
      transform: translateY(var(--y, 0px)) rotateX(60deg) rotateZ(-45deg);
      transition:
        box-shadow 0.35s ease,
        background 0.35s ease;
    }

    .layer-ghost {
      --y: calc(var(--tw) * 0.2);
      background: rgba(233, 247, 254, 0.9);
      border: 1px solid var(--primary-light-border);
    }

    .layer-side {
      --y: calc(var(--tw) * 0.07);
      background: linear-gradient(
        135deg,
        #bde8fa 0%,
        var(--primary-color) 100%
      );
    }

    .layer-face {
      display: grid;
      place-items: center;
      background: linear-gradient(
        135deg,
        var(--primary-ligher) 0%,
        var(--primary-light) 60%,
        var(--primary-color) 100%
      );
      border: 1px solid var(--secondary-color);
      box-shadow: inset 2px 2px 6px rgba(255, 255, 255, 0.8);
    }

    .tile-label {
      font-size: calc(var(--tw) * 0.115);
      font-weight: 600;
      line-height: 1.15;
      text-align: center;
      color: var(--primary-dark);
      transition: color 0.3s ease;
    }

    /* pulse rings under the active tile */
    .tile-rings {
      position: absolute;
      left: 50%;
      top: 62%;
      width: 0;
      height: 0;
      opacity: var(--focus);
      pointer-events: none;

      i {
        position: absolute;
        left: 0;
        top: 0;
        width: calc(var(--tw) * 2.1);
        height: calc(var(--tw) * 0.95);
        translate: -50% -50%;
        border-radius: 50%;
        border: 1.5px solid var(--primary-light-border);
        animation: ring-pulse 2.6s ease-out infinite;

        &:nth-child(2) {
          width: calc(var(--tw) * 1.5);
          height: calc(var(--tw) * 0.68);
          border-color: var(--primary-color);
          animation-delay: 0.5s;
        }
      }
    }

    &.is-active {
      .layer-face {
        box-shadow:
          inset 2px 2px 6px rgba(255, 255, 255, 0.8),
          0 0 0 5px rgba(0, 146, 203, 0.25),
          -12px 12px 28px rgba(0, 129, 182, 0.35);
      }
    }
  }
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -18;
  }
}
@keyframes hub-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes ring-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

@media (min-width: 2301px), (min-height: 1001px) {
  .ecosystem-section {
    height: auto !important;

    .ecosystem-sticky {
      position: relative !important;
      top: auto !important;
      min-height: auto !important;
    }
  }
}

@media (max-width: 991.98px) {
  .ecosystem-section {
    .ecosystem-sticky {
      padding: 28px 0;
      align-items: flex-start;
    }
    .section-head {
      max-width: 420px;
      margin-bottom: 8px;
    }
    .orbit {
      max-width: 560px;
      margin: 0 auto;
      height: clamp(250px, 62vw, 400px);
    }
    .info-card {
      max-width: 560px;
      margin: 0 auto;
    }
    .info-list li {
      margin-bottom: 4px;
    }
  }
}

@media (max-width: 991px) and (min-height: 850px) {
  .ecosystem-section {
    .visible-block {
      display: block !important;
    }
  }
}
@media (max-width: 575.98px) {
  .ecosystem-section {
    .info-desc,
    .info-list {
      font-size: 0.95rem;
    }
    .tile {
      --tw: clamp(60px, 17vw, 84px);
    }
    .hub {
      --hub: clamp(104px, 30vw, 150px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-section {
    .orbit .orbit-lines path,
    .hub .hub-logo,
    .tile .tile-rings i {
      animation: none;
    }
    .info-stack .info-panel,
    .info-list li {
      transition: opacity 0.2s linear;
      transform: none;
    }
  }
}

.process-section {
  /* section-scoped tokens */
  --connector: #23a6e0;
  --card-w: 348px;
  --card-gap: 48px;
  --offset-unit: 1;

  position: relative;
  background: var(--white);

  .process-sticky {
    padding-block: 64px 48px;
  }

  .process-sticky__inner {
    width: 100%;
  }

  /* ---------- Horizontal viewport + track ---------- */
  .process-viewport {
    position: relative;
  }

  .process-track {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--card-gap);
    width: max-content;
    padding-block: 8px 16px;
    will-change: transform;
  }

  .process-connectors {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 0;

    path {
      fill: none;
      stroke: var(--connector);
      stroke-width: 1.5;
      stroke-linecap: round;
    }

    circle {
      fill: var(--connector);
    }
  }

  /* ---------- Card ---------- */
  .process-card {
    position: relative;
    z-index: 1;
    flex: 0 0 var(--card-w);
    width: var(--card-w);
    padding: 24px;
    border-radius: 12px;
    background: var(--primary-light-border);
    margin-top: calc(var(--offset, 0px) * var(--offset-unit));

    /* staggered "wave" layout – repeats every 4 cards */
    &:nth-of-type(4n + 1) {
      --offset: 10px;
    }
    &:nth-of-type(4n + 2) {
      --offset: 50px;
    }
    &:nth-of-type(4n + 3) {
      --offset: 170px;
    }
    &:nth-of-type(4n + 4) {
      --offset: 0px;
    }
    &:nth-of-type(4n + 5) {
      --offset: -10px;
    }
    &:nth-of-type(4n + 7) {
      --offset: 10px;
    }
    &:nth-of-type(4n + 8) {
      --offset: 110px;
    }

    .process-card__title {
      font-weight: 400;
      font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
      line-height: 1.3;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--secondary-color);
      margin-bottom: 24px;
    }

    .process-card__body {
      background: var(--white);
      border-radius: 8px;
      padding: 16px 16px 20px;
    }

    .process-card__icon {
      display: grid;
      place-items: center;
      width: 100px;
      height: 100px;
      border-radius: 8px;
      background: #e3e4e8;
      color: #5b6470;
      margin-bottom: 24px;

      svg {
        width: 46px;
        height: 46px;
      }
    }

    .process-card__list {
      list-style: none;
      margin: 0;
      padding: 8px 8px 0 24px;

      li {
        position: relative;
        color: var(--secondary-color);
        margin-bottom: 0;

        &::before {
          content: "";
          position: absolute;
          left: -14px;
          top: 0.68em;
          width: 3px;
          height: 3px;
          border-radius: 50%;
          background: currentColor;
        }

        & + li {
          margin-top: 14px;
        }
      }
    }

    /* Variants */
    &.process-card--primary {
      background: var(--primary-color);
      .process-card__title {
        color: var(--white);
      }
    }

    &.process-card--dark {
      background: var(--primary-dark);
      .process-card__title {
        color: var(--white);
      }
    }

    &.process-card--light {
      background: var(--primary-light-border);
      .process-card__list {
        padding-top: 10px;
      }
    }
  }

  /* ---------- Progress bar (desktop scroll-jack only) ---------- */
  .process-progress {
    display: none;
    width: min(240px, 40%);
    height: 4px;
    margin: 28px auto 0;
    border-radius: 4px;
    background: var(--primary-light-border);
    overflow: hidden;

    span {
      display: block;
      height: 100%;
      width: 100%;
      border-radius: inherit;
      background: var(--primary-gradient);
      transform-origin: left center;
      transform: scaleX(0);
    }
  }

  /* ---------- Dots ---------- */
  .process-dots {
    display: none;
    gap: 8px;
    margin-top: 24px;

    button {
      width: 10px;
      height: 10px;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: var(--secondary-ligher);
      cursor: pointer;
      transition:
        background-color 0.25s ease,
        transform 0.25s ease;

      &.is-active {
        background: var(--primary-color);
      }

      &:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 3px;
      }
    }
  }

  &.is-ready {
    .process-sticky {
      position: sticky;
      top: 11%;
      height: 100vh;
      height: 100svh;
      display: flex;
      align-items: center;
      overflow: clip;
      padding-block: 0px;
    }

    .process-viewport {
      overflow-x: clip;
      overflow-y: visible;
    }

    .process-track {
      transform-origin: 0 0;
    }
  }

  /* No-JS fallback */
  &:not(.is-ready) {
    .process-viewport {
      overflow-x: auto;
    }
  }

  @media (min-width: 992px) and (max-width: 1900px) and (max-height: 800px) {
    .process-progress {
      display: block;
    }
  }

  /* Short screens: tighten vertical spacing */
  @media (max-height: 780px) {
    .process-progress,
    .process-dots {
      margin-top: 16px;
    }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 1199.98px) {
    --card-w: 320px;
    --card-gap: 44px;
    --offset-unit: 0.85;
  }

  @media (max-width: 767.98px) {
    --card-w: min(72vw, 290px);
    --card-gap: 40px;
    --offset-unit: 0.45;

    .process-sticky {
      padding-block: 16px;
    }

    .process-card {
      padding: 16px;

      .process-card__title {
        font-size: 1rem;
        margin-bottom: 16px;
      }

      .process-card__icon {
        width: 76px;
        height: 76px;
        margin-bottom: 18px;

        svg {
          width: 36px;
          height: 36px;
        }
      }

      .process-card__list li + li {
        margin-top: 10px;
      }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .process-track {
      will-change: auto;
    }
  }

  /* ---------- Static / Native horizontal slider (Applied for Mobile, Width > 1900px, or Height > 800px) ---------- */
  @media (max-width: 991.98px), (min-width: 1901px), (min-height: 801px) {
    &.is-ready {
      .process-sticky {
        position: static;
        height: auto;
        display: block;
        overflow: visible;
        padding-block: 16px;
      }

      .process-viewport {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;

        &::-webkit-scrollbar {
          display: none;
        }
      }

      .process-track {
        transform: none !important;
      }
    }

    .process-card {
      scroll-snap-align: start;
    }

    .process-dots {
      display: flex;
    }
  }
}

.benefits-section {
  overflow: hidden;
  background: var(--primary-ligher);

  /* ---------- Tabs (desktop / left column) ---------- */
  .benefits-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .benefits-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 20px;
    border-radius: 14px;
    cursor: pointer;
    transition:
      background 0.25s ease,
      box-shadow 0.25s ease,
      color 0.25s ease;
    font-family: inherit;
  }

  .benefits-tab .tab-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-light);
    transition: color 0.25s ease;
  }

  .benefits-tab .tab-icon svg {
    width: 100%;
    height: 100%;
  }

  .benefits-tab .tab-label {
    font-weight: 600;
    font-size: clamp(0.9375rem, 0.9rem + 0.1875vw, 1.0625rem);
    color: var(--secondary-light);
    transition: color 0.25s ease;
  }

  .benefits-tab:hover {
    background: var(--white);
  }

  .benefits-tab.active {
    background: var(--white);
    box-shadow: 0 10px 24px var(--shadow-light);
    padding: 20px;
  }

  .benefits-tab.active .tab-icon,
  .benefits-tab.active .tab-label {
    color: var(--secondary-color);
  }

  /* ---------- Content panel (right column) ---------- */
  .benefits-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-light);
    height: 100%;
  }

  .benefits-panel {
    display: none;
  }

  .benefits-panel.active {
    display: block;
    animation: fadeIn 0.35s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(6px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .benefits-panel h3 {
    margin-bottom: 20px;
  }

  .benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .benefits-list li {
    position: relative;
    padding-left: 18px;
    font-size: clamp(0.9375rem, 0.9rem + 0.1875vw, 1rem);
    line-height: 1.6;
    color: var(--secondary-light);
  }

  .benefits-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary-light);
  }

  .benefits-panel-inner {
    display: flex;
    gap: 36px;
    align-items: center;
  }

  .benefits-text {
    flex: 1 1 50%;
    min-width: 0;
  }

  /* ---------- Illustration card ---------- */
  .benefits-illustration {
    flex: 1 1 50%;
    min-width: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: var(--primary-ligher);
  }

  .benefits-illustration img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* ---------- Mobile tabs (scrollable row) ---------- */
  .benefits-tabs-mobile {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .benefits-section {
    .benefits-tabs {
      display: none;
    }

    .benefits-tabs-mobile {
      display: block;
      margin-bottom: 20px;
    }

    .benefits-tabs-scroll {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x proximity;
      scroll-padding-inline: 4px;
      padding: 6px 4px 14px 4px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .benefits-tabs-scroll::-webkit-scrollbar {
      display: none;
    }

    .benefits-tabs-scroll .benefits-tab {
      flex: 0 0 auto;
      width: auto;
      scroll-snap-align: center;
      white-space: nowrap;
      padding: 12px 18px;
    }

    .benefits-content {
      padding: 26px;
    }

    .benefits-panel-inner {
      flex-direction: column;
    }

    .benefits-text,
    .benefits-illustration {
      flex: 1 1 100%;
      width: 100%;
    }

    .benefits-illustration {
      aspect-ratio: 16/10;
    }
  }
}

@media (max-width: 575.98px) {
  .benefits-section {
    .benefits-content {
      padding: 20px;
    }
  }
}

/* custom mobile changes */
@media (max-width: 991.98px) {
  .manufacturing-page {
    .demo-hero-main {
      .hero-wrapper {
        h1,
        p {
          text-align: start;
        }
      }
    }
  }
}
