/* ========================================
   Timeline Section - Horizontal Scroll
   ======================================== */
.timeline-section {
  position: relative;
  background: var(--bg-light);
}

.timeline-section::-webkit-scrollbar,
.timeline-pin::-webkit-scrollbar,
.timeline-track-wrapper::-webkit-scrollbar {
  display: none;
}

.timeline-section,
.timeline-pin,
.timeline-track-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.timeline-pin {
  position: sticky;
  top: var(--app-bar-height);
  height: calc(100vh - var(--app-bar-height));
  min-height: 950px;
  max-height: 1200px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-light);
}

/* Header */
.timeline-header {
  padding: 2rem 0 1.5rem;
  text-align: center;
  flex-shrink: 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.timeline-header .timeline-label {
  color: var(--primary);
  font-weight: 600;
  font-size: var(--font-size-small);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
}

.timeline-header .section-title {
  margin-top: 0.75rem;
}

.timeline-header .timeline-subtitle {
  max-width: 500px;
  margin: 0.5rem auto 0;
  color: var(--gray-muted);
  font-size: var(--font-size-body);
}

/* Nav */
.timeline-nav {
  padding: 1rem 0;
  flex-shrink: 0;
  background: var(--bg-light);
}

.timeline-years {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.75rem;
}

.timeline-year {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--gray-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
}

.timeline-year:hover,
.timeline-year.active {
  color: var(--primary);
  background: rgba(255, 119, 4, 0.08);
}

.timeline-progress {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  max-width: 400px;
  margin: 0 auto;
  overflow: hidden;
}

.timeline-progress-bar {
  height: 100%;
  background: var(--gradient-orange);
  border-radius: 1px;
  width: 0%;
  transition: width 0.1s linear;
}

/* Horizontal Track */
.timeline-track-wrapper {
  flex: 1;
  overflow: visible;
  position: relative;
}

.timeline-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.timeline-slide {
  flex-shrink: 0;
  width: 100vw;
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding: 2rem 0 4rem;
}

.timeline-slide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
  width: 100%;
}

.timeline-slide-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
}

.timeline-slide-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  display: block;
  object-fit: cover;
}


.timeline-slide-badge {
  display: none;
}

.timeline-slide-content {
  max-width: 520px;
}

.timeline-slide-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.timeline-slide-batch {
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: var(--font-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
}

.timeline-slide-year {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--gray-muted);
}

.timeline-slide-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: 800;
  color: var(--charcoal-black);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.timeline-slide-text {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--gray-muted);
  line-height: 1.75;
  margin-bottom: 0.875rem;
}

.timeline-slide-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.timeline-slide-cta {
  margin-top: 1.5rem;
}

/* Spacer for scroll */
.timeline-spacer {
  height: 400vh;
  background: var(--bg-light);
  padding-bottom: 10rem;
}

/* Responsive */
@media (max-width: 1023px) {
  .timeline-pin {
    position: relative;
    top: 0;
    height: auto;
    min-height: 100vh;
  }

  .timeline-track-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .timeline-track {
    width: max-content;
  }

  .timeline-slide {
    width: 85vw;
    scroll-snap-align: center;
  }

  .timeline-slide-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .timeline-slide-image {
    aspect-ratio: 16/10;
  }

  .timeline-slide-title {
    font-size: 1.75rem;
  }

  .timeline-slide-stats {
    gap: 1.5rem;
  }

  .timeline-spacer {
    display: none;
  }

  .timeline-years {
    gap: 1rem;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 1rem 0.5rem;
  }

  .timeline-year {
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .timeline-header .section-title {
    font-size: 1.5rem;
  }

  .timeline-slide {
    width: 90vw;
  }

  .timeline-slide-title {
    font-size: 1.5rem;
  }
}
