.gast-timeline {
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --brand: #0071bc;
  --ink: #18202f;
  --muted: #71809a;
  --surface: #e7ecf3;
  --track: #e7ecf3;
  --neu-light: #ffffff;
  --neu-dark: #c3ccda;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-neu-sm: 5px 5px 11px var(--neu-dark), -5px -5px 11px var(--neu-light);
  --shadow-brand: 6px 6px 14px rgba(0, 71, 119, 0.34), -5px -5px 12px rgba(255, 255, 255, 0.55);
  width: 100%;
}

.gast-timeline * {
  box-sizing: border-box;
}

.gast-timeline .timeline {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface);
  font-family: var(--font-body);
  color: var(--muted);
  padding: 48px 24px;
}

.gast-timeline .timeline__title {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}

.gast-timeline .timeline__lead {
  text-align: center;
  font-size: 16px;
  color: var(--muted);
  margin: 0 auto 56px;
  max-width: 48ch;
  line-height: 1.5;
}

.gast-timeline .tl {
  position: relative;
}

.gast-timeline .tl-track {
  position: absolute;
  top: 30px;
  left: 12.5%;
  width: 75%;
  height: 4px;
  transform: translateY(-50%);
  background: var(--track);
  border-radius: 4px;
  z-index: 1;
}

.gast-timeline .tl-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--brand);
  transition: width 0.6s var(--ease-out);
}

.gast-timeline .tl-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(var(--gast-step-count, 4), 1fr);
}

.gast-timeline .tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 18px;
  transition: transform 0.36s var(--ease-out);
}

.gast-timeline .tl-step.active {
  transform: translateY(-8px);
}

.gast-timeline .tl-node {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 23px;
  position: relative;
  cursor: pointer;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-neu-sm);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.gast-timeline .tl-node.on {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.gast-timeline .tl-node.active::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 113, 188, 0.45);
  animation: gast-ring 1.7s var(--ease-out) infinite;
}

.gast-timeline .tl-step h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}

.gast-timeline .tl-step.active h4 {
  color: var(--brand);
}

.gast-timeline .tl-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 24ch;
}

@keyframes gast-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 113, 188, 0.45);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(0, 113, 188, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 113, 188, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gast-timeline .tl-node.active::after {
    animation: none;
  }

  .gast-timeline .tl-step,
  .gast-timeline .tl-node,
  .gast-timeline .tl-fill {
    transition: none;
  }
}

@media (max-width: 680px) {
  .gast-timeline .timeline {
    padding: 36px 20px;
  }

  .gast-timeline .tl-track {
    display: none;
  }

  .gast-timeline .tl-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gast-timeline .tl-step {
    padding: 0;
  }
}
