/* ============================================================
   JOURNEY SO FAR - animated portfolio stats
============================================================ */

.journey {
  width: 100%;
  min-height: min(760px, 84vh);
  padding: clamp(64px, 9vh, 110px) clamp(20px, 6vw, 88px);
  border-top: 2px solid rgba(8, 38, 110, 0.32);
  overflow: hidden;
}

.journey-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.journey-title {
  color: #0b2358;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(.2, .8, .2, 1);
}

.journey-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 9vw, 140px);
  margin-top: clamp(58px, 10vh, 110px);
  padding: 0 clamp(0px, 3vw, 48px);
}

.journey-stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.journey-icon-wrap {
  position: relative;
  display: grid;
  width: min(100%, 300px);
  aspect-ratio: 1.25;
  place-items: center;
}

.journey-icon {
  position: relative;
  z-index: 1;
  width: 82%;
  height: 82%;
  overflow: visible;
  fill: none;
  stroke: #071426;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translateY(-180px) rotate(-9deg);
  transform-origin: 50% 100%;
}

.journey-globe {
  width: 72%;
  height: 72%;
  transform: translateY(-180px) rotate(12deg);
}

.journey-ground {
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 3%;
  height: 14px;
  border-radius: 50%;
  background: rgba(4, 20, 39, 0.24);
  filter: blur(9px);
  opacity: 0;
  transform: scaleX(0.35);
}

.journey-label {
  margin-top: clamp(14px, 2vh, 24px);
  color: #0b2358;
  font-size: clamp(1.15rem, 2.3vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(18px);
}

.journey-label strong {
  color: #071426;
}

.journey.in-view .journey-title {
  opacity: 1;
  transform: translateY(0);
}

.journey.in-view .journey-icon {
  animation: journey-land 0.95s cubic-bezier(.2, .8, .25, 1.1) forwards,
             journey-idle 4s ease-in-out 1.1s infinite;
}

.journey.in-view .journey-stat-websites .journey-icon {
  animation-delay: 0.18s, 1.28s;
}

.journey.in-view .journey-ground {
  animation: journey-shadow-land 0.95s ease-out forwards,
             journey-shadow-idle 4s ease-in-out 1.1s infinite;
}

.journey.in-view .journey-stat-websites .journey-ground {
  animation-delay: 0.18s, 1.28s;
}

.journey.in-view .journey-label {
  animation: journey-label-in 0.55s ease 0.72s forwards;
}

.journey.in-view .journey-stat-websites .journey-label {
  animation-delay: 0.9s;
}

@keyframes journey-land {
  0%   { opacity: 0; transform: translateY(-180px) rotate(-9deg); }
  62%  { opacity: 1; transform: translateY(9px) rotate(2deg) scaleY(.94); }
  78%  { transform: translateY(-12px) rotate(-1deg) scaleY(1.03); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scaleY(1); }
}

@keyframes journey-idle {
  0%, 100% { opacity: 1; transform: translateY(0) rotate(0); }
  50%      { opacity: 1; transform: translateY(-7px) rotate(1deg); }
}

@keyframes journey-shadow-land {
  0%   { opacity: 0; transform: scaleX(.35); }
  65%  { opacity: .85; transform: scaleX(1.06); }
  100% { opacity: .55; transform: scaleX(1); }
}

@keyframes journey-shadow-idle {
  0%, 100% { opacity: .55; transform: scaleX(1); }
  50%      { opacity: .28; transform: scaleX(.82); }
}

@keyframes journey-label-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .journey {
    min-height: auto;
    padding: 54px 18px 68px;
  }

  .journey-title {
    font-size: clamp(2.25rem, 12vw, 3.7rem);
    text-align: center;
  }

  .journey-stats {
    grid-template-columns: 1fr;
    gap: 54px;
    margin-top: 52px;
    padding: 0;
  }

  .journey-icon-wrap {
    width: min(78vw, 275px);
  }

  .journey-label {
    font-size: clamp(1.2rem, 6vw, 1.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-title,
  .journey-icon,
  .journey-ground,
  .journey-label {
    animation: none !important;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
