.giga-flow-timeline-wrap {
  width: 100%;
  padding: 50px 20px;
  background: #f6f4f3;
}

.giga-flow-timeline {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  --giga-progress: 0%;
}

.giga-flow-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.giga-flow-title {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #101014;
}

.giga-flow-desc {
  margin-top: 14px;
  color: #666;
  font-size: 17px;
  line-height: 1.75;
}

.giga-flow-viewport {
  position: relative;
  min-height: 210px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 8px 10px;
}

.giga-flow-viewport::-webkit-scrollbar {
  display: none;
}

.giga-flow-viewport::before,
.giga-flow-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 4;
  pointer-events: none;
}

.giga-flow-viewport::before {
  left: 0;
  background: linear-gradient(90deg, #f6f4f3 0%, rgba(255,255,255,0) 100%);
}

.giga-flow-viewport::after {
  right: 0;
  background: linear-gradient(270deg, #f6f4f3 0%, rgba(255,255,255,0) 100%);
}

.giga-flow-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 37px;
  height: 4px;
  border-radius: 999px;
  background: #dddddd;
  min-width: 100%;
}

.giga-flow-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--giga-progress);
  height: 100%;
  background: #ff4b4b;
  border-radius: 999px;
  transition: width .7s cubic-bezier(.2,.9,.2,1);
}

.giga-flow-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  align-items: start;
  gap: 0;
  min-width: 100%;
  z-index: 2;
}

.giga-flow-item {
  position: relative;
  min-width: 220px;
  text-align: center;
  padding: 0 10px;
  opacity: .42;
  transition: opacity .35s ease, transform .35s ease;
  cursor: pointer;
}

.giga-flow-item.is-active {
  opacity: 1;
}

.giga-flow-year {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  color: rgba(20,20,20,.35);
  transition: color .35s ease, transform .35s ease;
}

.giga-flow-item.is-active .giga-flow-year {
  color: #151515;
  transform: translateY(-1px);
}

.giga-flow-dot-wrap {
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.giga-flow-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dddddd;
  transition: transform .35s ease, background .35s ease, box-shadow .35s ease;
}

.giga-flow-item.is-active .giga-flow-dot {
  background: #ff4b4b;
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(255,75,75,.18);
}

.giga-flow-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
}

.giga-flow-item.is-active .giga-flow-card {
  background: #f1e6e6;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(30,30,30,.06);
}

.giga-flow-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  color: #101014;
}

.giga-flow-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #666;
}

@media (max-width: 1024px) {
  .giga-flow-track {
    grid-auto-columns: minmax(210px, 1fr);
  }

  .giga-flow-item {
    min-width: 210px;
  }

  .giga-flow-viewport::before,
  .giga-flow-viewport::after {
    width: 42px;
  }
}

@media (max-width: 767px) {
  .giga-flow-timeline-wrap {
    padding: 40px 14px;
  }

  .giga-flow-head {
    margin-bottom: 24px;
  }

  .giga-flow-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .giga-flow-desc {
    font-size: 15px;
    line-height: 1.65;
  }

  .giga-flow-viewport {
    min-height: 220px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .giga-flow-track {
    grid-auto-columns: 220px;
    min-width: max-content;
  }

  .giga-flow-item {
    min-width: 220px;
    padding: 0 8px;
  }

  .giga-flow-card h3 {
    font-size: 16px;
  }

  .giga-flow-card p {
    font-size: 14px;
  }

  .giga-flow-viewport::before,
  .giga-flow-viewport::after {
    width: 26px;
  }
}


.giga-flow-card{
    position:relative;
    overflow:hidden;
}

.giga-flow-hover-image{
    width:100%;
    max-height:0;
    opacity:0;
    visibility:hidden;
    overflow:hidden;
    margin-top:0;
    transform:translateY(8px);
    transition:max-height .4s ease, opacity .35s ease, visibility .35s ease, margin-top .35s ease, transform .35s ease;
    pointer-events:none;
}

.giga-flow-hover-image img{
    width:100%;
    height:150px;
    object-fit:cover;
    display:block;
    border-radius:16px;
    box-shadow:0 14px 34px rgba(6,25,42,.16);
    border:4px solid #fff;
}

.giga-flow-item:hover .giga-flow-hover-image,
.giga-flow-item.is-active .giga-flow-hover-image{
    max-height:190px;
    opacity:1;
    visibility:visible;
    margin-top:14px;
    transform:translateY(0);
}

@media(max-width:767px){
    .giga-flow-hover-image img{
        height:125px;
        border-radius:14px;
    }

    .giga-flow-item:hover .giga-flow-hover-image,
    .giga-flow-item.is-active .giga-flow-hover-image{
        max-height:165px;
        margin-top:12px;
    }
}
