/* ============================================================
   AERO Lifts — Installation Timeline
   ============================================================ */

.timeline-section-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  z-index: 10;
}

/* ── Timeline container ── */
.install-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Vertical connecting rail ── */
.tl-rail {
  position: absolute;
  left: 28px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 0;
}

.tl-rail-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  background: var(--orange);
  height: 0%;
  transition: height 0.8s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px rgba(255,77,0,0.5);
}

/* ── Single step ── */
.tl-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tl-step:last-child {
  border-bottom: none;
}

.tl-step.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.tl-step[data-step="1"] { transition-delay: 0.0s; }
.tl-step[data-step="2"] { transition-delay: 0.1s; }
.tl-step[data-step="3"] { transition-delay: 0.2s; }
.tl-step[data-step="4"] { transition-delay: 0.3s; }
.tl-step[data-step="5"] { transition-delay: 0.4s; }
.tl-step[data-step="6"] { transition-delay: 0.5s; }

/* ── Node circle ── */
.tl-node {
  width: 58px;
  height: 58px;
  position: relative;
  flex-shrink: 0;
}

.tl-node-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,77,0,0.25);
  background: var(--dark);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.tl-step.revealed .tl-node-ring {
  border-color: rgba(255,77,0,0.8);
  box-shadow: 0 0 16px rgba(255,77,0,0.25), inset 0 0 10px rgba(255,77,0,0.06);
}

.tl-node-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  transition: color 0.4s;
}

.tl-node-inner svg {
  width: 22px;
  height: 22px;
}

.tl-step.revealed .tl-node-inner {
  color: var(--orange);
}

/* ── Content panel ── */
.tl-content {
  padding: 4px 0;
}

.tl-step-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 6px;
  opacity: 0.7;
}

.tl-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 30px);
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
}

.tl-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.7;
  max-width: 660px;
  margin-bottom: 16px;
}

/* ── Tags row ── */
.tl-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tl-tag {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255,77,0,0.3);
  padding: 4px 10px;
  border-radius: 1px;
  background: rgba(255,77,0,0.04);
  transition: background 0.2s, border-color 0.2s;
}

.tl-step.revealed:hover .tl-tag {
  background: rgba(255,77,0,0.10);
  border-color: rgba(255,77,0,0.6);
}

/* ── Hover line accent on the left ── */
.tl-step::before {
  content: '';
  position: absolute;
  left: -60px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-smooth);
}

.tl-step.revealed:hover::before {
  transform: scaleY(1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .timeline-section-wrap {
    padding: 0 24px;
  }

  .tl-rail {
    left: 22px;
  }

  .tl-step {
    grid-template-columns: 46px 1fr;
    gap: 20px;
    padding: 24px 0;
  }

  .tl-node {
    width: 46px;
    height: 46px;
  }

  .tl-node-inner svg {
    width: 18px;
    height: 18px;
  }

  .tl-title {
    font-size: 22px;
  }

  .tl-desc {
    font-size: 13px;
  }

  .tl-step::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .tl-tags {
    gap: 6px;
  }
  .tl-tag {
    font-size: 8px;
    padding: 3px 8px;
  }
}
