/* MSB Timeline */

.vsc-main > .vsc-timeline {
  width: 100%;
  max-width: var(--vsc-content-max, 1464px);
  margin-inline: auto;
  padding-inline: var(--vsc-content-pad, 32px);
  box-sizing: border-box;
}

.vsc-timeline {
  --timeline-accent: var(--color-brand-primary, #d42c31);
  --timeline-muted: var(--color-brand-secondary, #202a44);
  --timeline-line: rgba(32, 42, 68, 0.18);
  --timeline-text: var(--color-brand-secondary, #202a44);
  --timeline-body: #475467;
  --timeline-dot-size: 12px;
  --timeline-rail-x: 6px; /* horizontal center of dots */
  --timeline-line-width: 2px;
  color: var(--timeline-text);
}

.vsc-timeline__track {
  position: relative;
  padding-left: 28px;
  margin: 8px 0 8px 8px;
}

.vsc-timeline__line,
.vsc-timeline__line-fill {
  position: absolute;
  left: calc(var(--timeline-rail-x) - var(--timeline-line-width) / 2);
  top: 0;
  bottom: auto;
  height: 0;
  width: var(--timeline-line-width);
  border-radius: 999px;
  transform-origin: top center;
}

.vsc-timeline__line {
  background: var(--timeline-line);
}

.vsc-timeline__line-fill {
  background: var(--timeline-accent);
  transform: scaleY(0);
  will-change: transform;
}

.vsc-timeline__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.vsc-timeline__step {
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vsc-timeline__step.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.vsc-timeline__dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--timeline-muted);
  box-shadow: 0 0 0 4px #fff;
  transform: scale(0.7);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    background 320ms ease,
    box-shadow 420ms ease;
}

.vsc-timeline__step--highlight .vsc-timeline__dot {
  background: var(--timeline-accent);
}

.vsc-timeline__step.is-inview .vsc-timeline__dot {
  transform: scale(1);
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 8px color-mix(in srgb, var(--timeline-accent) 18%, transparent);
}

.vsc-timeline__step--highlight.is-inview .vsc-timeline__dot {
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 10px color-mix(in srgb, var(--timeline-accent) 22%, transparent);
}

.vsc-timeline__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 42rem;
}

.vsc-timeline__year {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--timeline-muted);
  letter-spacing: 0.02em;
}

.vsc-timeline__step--highlight .vsc-timeline__year {
  color: var(--timeline-accent);
}

.vsc-timeline__title {
  margin: 0;
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--timeline-text);
}

.vsc-timeline__text {
  margin: 0;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--timeline-body);
}

@media (max-width: 768px) {
  .vsc-timeline__track {
    padding-left: 24px;
    margin-left: 4px;
  }

  .vsc-timeline__dot {
    left: -24px;
  }

  .vsc-timeline__title {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vsc-timeline__step,
  .vsc-timeline__dot,
  .vsc-timeline__line-fill {
    transition: none !important;
  }

  .vsc-timeline__step {
    opacity: 1;
    transform: none;
  }

  .vsc-timeline__dot {
    transform: none;
  }

  .vsc-timeline__line-fill {
    transform: scaleY(1);
  }
}
