/* About page only: Our Journey vertical timeline */
.journey-section {
  position: relative;
  overflow: hidden;
}

.journey-section::before {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  right: -15rem;
  top: 10%;
  border-radius: 50%;
  background: var(--coral);
  filter: blur(190px);
  opacity: 0.08;
  pointer-events: none;
}

.journey-intro {
  position: relative;
  z-index: 1;
}

.journey-intro .display-heading {
  max-width: 980px;
}

.journey-timeline {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 0;
}

.journey-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(247, 146, 80, 0.12),
    var(--coral) 18%,
    rgba(255, 255, 255, 0.28) 78%,
    rgba(255, 255, 255, 0.08)
  );
}

.journey-item {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 190px;
}

.journey-item + .journey-item {
  margin-top: 1rem;
}

.journey-item:nth-child(odd) .journey-card {
  grid-column: 1;
  margin-right: clamp(2.75rem, 6vw, 5.25rem);
}

.journey-item:nth-child(even) .journey-card {
  grid-column: 2;
  margin-left: clamp(2.75rem, 6vw, 5.25rem);
}

.journey-marker {
  position: absolute;
  top: 2rem;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 8px rgba(252, 104, 111, 0.08);
}

.journey-marker::after {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(252, 104, 111, 0.34);
  animation: journey-pulse 2.8s ease-out infinite;
}

.journey-card {
  position: relative;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line-dark);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.35s ease, border-color 0.35s ease,
    background 0.35s ease;
}

.journey-card::before {
  content: "";
  position: absolute;
  top: 2.4rem;
  width: clamp(2.75rem, 6vw, 5.25rem);
  height: 1px;
  background: var(--line-dark);
}

.journey-item:nth-child(odd) .journey-card::before {
  left: 100%;
}

.journey-item:nth-child(even) .journey-card::before {
  right: 100%;
}

.journey-card:hover {
  transform: translateY(-5px);
  border-color: rgba(252, 104, 111, 0.5);
  background: rgba(255, 255, 255, 0.055);
}

.journey-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-bottom: 1rem;
}

.journey-year {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--gradient-horizontal);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.journey-phase {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-card h3 {
  margin: 0 0 0.8rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  letter-spacing: -0.04em;
}

.journey-card p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1rem;
  line-height: 1.7;
}

@keyframes journey-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(252, 104, 111, 0.34);
  }
  65%,
  100% {
    box-shadow: 0 0 0 15px rgba(252, 104, 111, 0);
  }
}

@media (max-width: 767.98px) {
  .journey-timeline {
    padding-left: 2.75rem;
  }

  .journey-timeline::before {
    left: 0.56rem;
    transform: none;
  }

  .journey-item {
    display: block;
    min-height: 0;
  }

  .journey-item + .journey-item {
    margin-top: 1.5rem;
  }

  .journey-item:nth-child(odd) .journey-card,
  .journey-item:nth-child(even) .journey-card {
    margin: 0;
  }

  .journey-marker {
    top: 2rem;
    left: -2.19rem;
    transform: none;
  }

  .journey-card::before {
    top: 2.52rem;
    right: 100% !important;
    left: auto !important;
    width: 2.25rem;
  }
}

@media (max-width: 420px) {
  .journey-timeline {
    padding-left: 2.25rem;
  }

  .journey-marker {
    left: -1.69rem;
  }

  .journey-card {
    padding: 1.35rem;
  }

  .journey-card::before {
    width: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-marker::after {
    animation: none;
  }

  .journey-card {
    transition: none;
  }
}
