.journey-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding-top: calc(var(--nav-height) + var(--safe-top) + 2rem);
  padding-bottom: clamp(3.5rem, 5vw, 5rem);
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.38), rgba(10, 22, 40, 0.92)),
    url("../../assets/images/hero/hero-group.jpg") center/cover no-repeat;
}

.journey-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 14%, rgba(66, 165, 245, 0.18), transparent 20%),
    radial-gradient(circle at 84% 10%, rgba(255, 179, 0, 0.14), transparent 16%);
  pointer-events: none;
}

.journey-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.journey-hero h1 {
  max-width: 12.2ch;
  font-size: clamp(3.1rem, 5.8vw, 5.35rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.journey-hero h1 span {
  display: block;
}

.journey-hero h1 .text-gradient {
  padding-bottom: 0.08em;
}

.journey-hero .lede {
  max-width: 42rem;
  color: rgba(227, 234, 244, 0.82);
  line-height: 1.8;
}

.page-journey .section-merge {
  margin-top: clamp(-3rem, -4vw, -2rem);
  padding-top: clamp(2.8rem, 4vw, 3.8rem);
  border-radius: 34px 34px 0 0;
  box-shadow: 0 -18px 42px rgba(7, 17, 31, 0.18);
  background:
    radial-gradient(circle at 16% 0%, rgba(66, 165, 245, 0.15), transparent 26%),
    radial-gradient(circle at 84% 0%, rgba(255, 179, 0, 0.11), transparent 20%),
    linear-gradient(180deg, rgba(9, 25, 47, 0.99), rgba(7, 17, 31, 1));
}

.page-journey .section-merge::before {
  height: 120px;
}

.page-journey .section-flow {
  background:
    radial-gradient(circle at 82% 0%, rgba(66, 165, 245, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(8, 21, 39, 1), rgba(7, 17, 31, 1));
}

.journey-track-shell {
  position: relative;
  display: grid;
  gap: 1rem;
}

.journey-track-shell::before {
  content: "";
  position: absolute;
  top: -0.2rem;
  left: 0;
  right: 0;
  height: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 70%),
    radial-gradient(70% 100% at 50% 100%, rgba(125, 211, 252, 0.1), transparent 72%);
  pointer-events: none;
}

.page-journey .section-merge .section-intro {
  max-width: 820px;
  margin-bottom: 2.1rem;
}

.journey-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 360px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.journey-track::-webkit-scrollbar {
  height: 8px;
}

.journey-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
}

.journey-card {
  position: relative;
  scroll-snap-align: start;
  padding: 1.5rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 1rem;
}

.journey-card__year {
  font-family: var(--font-accent);
  font-size: 2.8rem;
  color: var(--color-wing-gold);
}

.journey-card__thumb {
  overflow: hidden;
  border-radius: 20px;
  width: 100%;
  padding: 0;
}

.journey-card__thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.journey-svg-line {
  width: 100%;
  overflow: visible;
}

.journey-gallery {
  columns: 3 260px;
  column-gap: 1rem;
}

.journey-gallery__item {
  break-inside: avoid;
  margin-bottom: 1rem;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.journey-gallery__item img {
  width: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .journey-hero {
    min-height: auto;
    padding-bottom: 2.75rem;
  }

  .journey-hero h1 {
    max-width: 9.6ch;
    font-size: clamp(2.85rem, 11vw, 4.4rem);
    line-height: 0.92;
  }

  .page-journey .section-merge {
    margin-top: -2rem;
    padding-top: 2.5rem;
    border-radius: 28px 28px 0 0;
  }

  .journey-svg-line,
  .timeline-scrollbar {
    display: none;
  }

  .journey-track {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .journey-gallery {
    columns: 1;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .journey-hero h1 {
    max-width: 11ch;
  }

  .journey-track {
    grid-auto-columns: minmax(320px, 70vw);
  }

  .journey-gallery {
    columns: 2 220px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .journey-hero {
    min-height: auto;
    padding-bottom: 3.5rem;
  }

  .journey-track {
    grid-auto-columns: minmax(300px, 82vw);
  }
}

@media (max-width: 640px) {
  .journey-hero {
    padding-top: calc(var(--nav-height) + var(--safe-top) + 1.5rem);
  }

  .journey-hero h1 {
    max-width: 8.8ch;
    font-size: clamp(2.6rem, 11vw, 4rem);
  }

  .journey-card__thumb img {
    height: 160px;
  }

  .journey-gallery__item {
    border-radius: 20px;
  }
}
