/* experience.css — "Experience.": a minimal vertical timeline (thin line, small dots, current job = yellow pulsing dot) and "Tools & skills" rows under it */

.experience .glow--5 { bottom: -260px; left: -200px; opacity: 0.15; }

.experience { padding: 120px 0; --band: linear-gradient(var(--brown), var(--charcoal)); }

.experience__title { font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; color: var(--heading); }

/* ---------- Timeline ---------- */
.timeline { --dot: 15px; position: relative; list-style: none; max-width: 760px; margin-top: 48px; }

/* The thin line, through the middle of the dots */
.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(var(--dot) / 2);
  width: 1px;
  background: var(--line);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;   /* role … date pill */
  align-items: baseline;
  column-gap: 16px;
  padding: 0 0 44px 40px;            /* generous space between items */
}
.timeline__item:last-child { padding-bottom: 0; }

/* Hollow dot (it hides the line behind it) */
.timeline__dot {
  position: absolute;
  top: 5px;
  left: 0;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--charcoal);
  box-shadow: inset 0 0 0 2px var(--muted);
}

/* Current job: yellow dot with a soft pulse */
.timeline__item--now .timeline__dot { background: var(--yellow); box-shadow: none; }
.timeline__item--now .timeline__dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  opacity: 0;
  animation: timeline-pulse 2.4s ease-out infinite;
}
@keyframes timeline-pulse {
  0%   { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Education: a small graduation-cap icon instead of the dot */
.timeline__dot--icon {
  top: 0;
  left: calc(var(--dot) / 2 - 13px);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--line);
}
.timeline__dot--icon svg { width: 14px; height: 14px; }

.timeline__role { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--heading); }
.timeline__org { grid-column: 1; margin-top: 2px; font-size: 14px; color: var(--muted); }
.timeline__text { grid-column: 1 / -1; margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }

.timeline__date {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.timeline__live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- Tools & skills (under the timeline) ---------- */
.tools { max-width: 760px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.tools__title { margin-bottom: 12px; font-size: 16px; font-weight: 600; color: var(--heading); }

.tools__row { display: grid; grid-template-columns: 120px 1fr; align-items: start; gap: 12px; padding: 8px 0; }
.tools__label { padding-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }

.tools__pills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tools__pills li {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

@media (max-width: 760px) {
  .experience { padding: 88px 0; }
}

@media (max-width: 560px) {
  /* One column: role → company → date pill → line */
  .timeline__item { grid-template-columns: 1fr; padding-left: 34px; }
  .timeline__date { grid-column: 1; grid-row: auto; order: 1; justify-self: start; margin-top: 8px; }
  .timeline__text { order: 2; }
  .timeline__org { margin-top: 2px; }
  .tools__row { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline__item--now .timeline__dot::after { animation: none; }
}
