/* ==========================================================================
   timeline.css — interactive growth timeline (1990 -> present)
   ========================================================================== */

.timeline {
  padding-block: var(--sp-10);
  background: var(--steel-50);
  overflow: hidden;
}

.timeline__head {
  max-width: 640px;
  margin-bottom: var(--sp-8);
}

.timeline__track-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--steel-400) transparent;
  padding-bottom: var(--sp-5);
}
.timeline__track-wrap::-webkit-scrollbar {
  height: 6px;
}
.timeline__track-wrap::-webkit-scrollbar-thumb {
  background: var(--steel-400);
  border-radius: var(--radius-pill);
}

.timeline__track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding: var(--sp-4) var(--container-pad) var(--sp-4);
  min-width: max-content;
}

.timeline__track::before {
  content: "";
  position: absolute;
  left: var(--container-pad);
  right: var(--container-pad);
  top: 54px;
  height: 2px;
  background: var(--steel-200);
  background-image: linear-gradient(90deg, var(--indigo-700), var(--ember-500));
}

.timeline__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  flex: none;
  padding-top: 34px;
  text-align: center;
}

.timeline__dot {
  position: absolute;
  top: 44px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--indigo-700);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  z-index: 2;
}
.timeline__node:hover .timeline__dot,
.timeline__node:focus-visible .timeline__dot,
.timeline__node.is-active .timeline__dot {
  transform: scale(1.25);
  border-color: var(--ember-500);
  background: var(--ember-500);
  box-shadow: 0 0 0 6px var(--ember-100);
}

.timeline__year {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--indigo-700);
  margin-top: var(--sp-6);
  margin-bottom: 0.4em;
  transition: color 0.2s var(--ease);
}
.timeline__node:hover .timeline__year,
.timeline__node.is-active .timeline__year {
  color: var(--flame-500);
}

.timeline__text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--steel-600);
  padding-inline: var(--sp-2);
}

.timeline__node--today {
  width: 220px;
}
.timeline__node--today .timeline__dot {
  border-color: var(--flame-500);
  background: var(--flame-500);
  box-shadow: 0 0 0 6px rgba(223, 58, 28, 0.15);
}
.timeline__node--today .timeline__year {
  color: var(--flame-500);
}
.timeline__node--today .timeline__text {
  color: var(--ink-700);
  font-weight: 500;
}

@media (max-width: 720px) {
  .timeline__track {
    padding-inline: var(--sp-5);
  }
  .timeline__node {
    width: 168px;
  }
}
