.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  bottom: -1.5rem;
  width: 2px;
  background: var(--border);
}

.timeline-item:last-child::after {
  display: none;
}

.commit-node {
  position: absolute;
  left: -1.75rem;
  top: 0.15rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-amber);
  transform: scale(0);
  transition: transform 0.4s ease-out;
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline-item.visible .commit-node {
  transform: scale(1);
}

.commit-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
}

.commit-hash {
  color: var(--accent-amber);
  font-size: 0.85rem;
  font-weight: 500;
}

.commit-hash::before {
  content: 'commit ';
  color: var(--text-faint);
}

.timeline-date {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.timeline-content h3 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--accent-purple);
}

.timeline-content p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.7rem;
  max-width: 62ch;
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

/* Timeline reveal animation */
.timeline-item {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 600px) {
  .timeline { padding-left: 1.5rem; }
  .timeline-item::after { left: -1.15rem; }
  .commit-node { left: -1.35rem; width: 12px; height: 12px; }
}
