/* =============================================================
   TIMELINE.CSS — Experience / education vertical timeline
   ============================================================= */

.timeline {
  position: relative;
  padding-left: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--border-strong), transparent 96%);
}

.timeline-item {
  position: relative;
  padding-bottom: clamp(1.8rem, 1.5rem + 1vw, 2.6rem);
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item__dot {
  position: absolute;
  left: calc(-1 * clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem));
  top: 0.35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-cyan) 15%, transparent);
}
.timeline-item--current .timeline-item__dot {
  border-color: var(--accent-magenta);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-magenta) 20%, transparent), 0 0 14px color-mix(in srgb, var(--accent-magenta) 60%, transparent);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-magenta) 20%, transparent), 0 0 14px color-mix(in srgb, var(--accent-magenta) 60%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent-magenta) 12%, transparent), 0 0 20px color-mix(in srgb, var(--accent-magenta) 75%, transparent); }
}

.timeline-item__period {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}
.timeline-item__title { font-size: var(--fs-lg); margin-bottom: 0.25rem; }
.timeline-item__org { color: var(--text-dim); font-size: var(--fs-sm); margin-bottom: 0.6rem; }
.timeline-item__loc { color: var(--text-faint); }
.timeline-item__highlights { display: grid; gap: 0.4rem; }
.timeline-item__highlights li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}
.timeline-item__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-violet);
}
.timeline-item__note { color: var(--text-dim); font-size: var(--fs-sm); }
.timeline__empty { color: var(--text-faint); font-size: var(--fs-sm); }

.timeline-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
}
@media (max-width: 860px) {
  .timeline-cols { grid-template-columns: 1fr; }
}
