.journey-gongyi,
.journey-gongyi * { box-sizing: border-box; }

.journey-gongyi {
  --jg-ink: #050505;
  --jg-purple: var(--purple-unified);
  --jg-purple-soft: rgba(var(--purple-unified-rgb), .12);
  --jg-quiet: #a5a5a5;
  --jg-soft: #d9d9d9;
  --jg-rail: 19.6%;
  position: relative;
  z-index: 6;
  isolation: isolate;
  overflow: hidden;
  color: var(--jg-ink);
  background: #fff;
  font-family: var(--sans, 'Avenir Next', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif);
  -webkit-font-smoothing: antialiased;
}
.journey-gongyi a { color: inherit; text-decoration: none; }
.journey-gongyi button,
.journey-gongyi a { font: inherit; }
.journey-gongyi :focus-visible { outline: 2px solid #676767; outline-offset: 4px; }

.journey-gongyi.is-entrance-ready:not(.is-entrance-visible) .jg-side-rail,
.journey-gongyi.is-entrance-ready:not(.is-entrance-visible) .jg-cover-card,
.journey-gongyi.is-entrance-ready:not(.is-entrance-visible) .jg-caption-grid {
  opacity: 0;
}
.journey-gongyi.is-entrance-visible .jg-side-rail {
  animation: jg-entrance-rise .84s .08s both cubic-bezier(.2,.72,.2,1);
}
.journey-gongyi.is-entrance-visible .jg-cover-card {
  animation: jg-entrance-slide-left 1.04s .36s both cubic-bezier(.18,.72,.24,1);
}
.journey-gongyi.is-entrance-visible .jg-caption-grid {
  animation: jg-entrance-rise .84s 1.12s both cubic-bezier(.2,.72,.2,1);
}

.journey-gongyi-inner {
  container-type: inline-size;
  width: min(100%, var(--journey-content-max, 1360px));
  margin-inline: auto;
  padding: clamp(44px, 5vw, 72px) var(--journey-content-gutter, 28px) 500px;
}

.jg-showcase {
  display: grid;
  grid-template-columns: var(--jg-rail) minmax(0, 1fr);
  align-items: stretch;
}
.jg-side-rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 18px;
}
.jg-eyebrow {
  margin: 0 0 14px;
  color: #78848a;
  font: 650 8px/1 var(--condensed, 'Arial Narrow', sans-serif);
  letter-spacing: .16em;
}
.jg-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.jg-title-icon {
  display: grid;
  width: 27px;
  height: 25px;
  flex: 0 0 27px;
  place-items: center;
  background: #dededb;
  color: #171729;
}
.jg-title-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2.2;
}
.jg-title-label {
  color: #202126;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
}
.jg-rail-heading {
  max-width: 560px;
  margin: 10px 0 0;
  color: #171717;
  font-size: clamp(25px, 2.7vw, 34px);
  font-weight: 780;
  letter-spacing: -.07em;
  line-height: 1.1;
  text-wrap: balance;
}
.jg-section-caption {
  max-width: 480px;
  margin: 14px 0 0;
  color: #737386;
  font-size: 13px;
  line-height: 1.7;
}

.jg-cover-card {
  display: grid;
  width: 100%;
  justify-self: stretch;
  grid-template-columns: minmax(0, 1fr) clamp(120px, 13.8cqw, 180px);
  grid-template-rows: min(28vh, 320px);
  align-items: stretch;
}
.jg-cover-stage {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  grid-column: 1;
  grid-row: 1;
  overflow: visible;
  background: #e7e7e7;
}
.jg-cover-stage[hidden] { display: none; }
.jg-cover-image-link { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.jg-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #e7e7e7;
}
.jg-image-wipe {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.jg-image-wipe::before,
.jg-image-wipe::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  transform: translateX(105%);
}
.jg-image-wipe::before { z-index: 1; background: #111; }
.jg-image-wipe::after { z-index: 2; background: var(--purple-unified); }
.jg-cover-stage.is-wiping .jg-image-wipe::before {
  animation: jg-feature-black-wipe 1.08s both cubic-bezier(.72,0,.28,1);
}
.jg-cover-stage.is-wiping .jg-image-wipe::after {
  animation: jg-feature-purple-wipe .76s .55s both cubic-bezier(.72,0,.28,1);
}
.jg-loading-state {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #efefef;
  color: #747474;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.jg-loading-state[hidden] { display: none; }
.jg-image-controls {
  position: absolute;
  z-index: 3;
  bottom: -15px;
  left: clamp(20px, 2.1cqw, 32px);
  display: flex;
  width: min(100%, 152px);
  height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 3px;
  border: 2px solid #303134;
  border-radius: 999px;
  background-color: var(--rectangle-black, #252525);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.065) 0 5px, transparent 5px 10px);
}
.jg-step-button {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 2px solid #f7f7f9;
  outline: 1px solid #4a4b4e;
  outline-offset: 1px;
  border-radius: 50%;
  background: #fff;
  color: #303532;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.jg-step-button:hover { background: var(--jg-purple-soft); transform: scale(1.04); }
.jg-step-button:active { transform: scale(.96); }
.jg-step-button svg { width: 15px; height: 15px; }

.jg-vertical-panel {
  position: relative;
  display: block;
  min-height: 100%;
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  background: var(--jg-purple);
}
.jg-vertical-panel::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 10px;
  width: 40px;
  background: #fff;
  content: '';
}
.jg-vertical-name {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: calc(30px + 1em);
  width: max-content;
  color: var(--jg-ink);
  font: 650 clamp(26px, 2vw, 38px)/1 Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  text-align: center;
  white-space: nowrap;
  transform: rotate(90deg);
  transform-origin: top left;
}

.jg-caption-grid {
  display: grid;
  grid-template-columns: var(--jg-rail) minmax(0, 1fr);
  margin-top: clamp(44px, 3.5cqw, 52px);
}
.jg-donor-board {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  margin-top: 24px;
  padding: 0 28px;
}
.jg-donor-board::before {
  display: block;
  margin-bottom: 16px;
  border-top: 1px dashed var(--jg-purple);
  content: '';
}
.jg-donor-board[hidden] { display: none; }
.jg-donor-heading {
  margin: 0 0 16px;
  color: var(--jg-ink);
  font-size: clamp(16px, 1.25cqw, 19px);
  font-weight: 750;
  line-height: 1.5;
}
.jg-donor-avatars {
  --jg-donor-avatar-size: clamp(30px, 2.8cqw, 38px);
  display: flex;
  width: max-content;
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  align-items: center;
  justify-content: start;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.jg-donor-avatars::-webkit-scrollbar { display: none; }
.jg-donor-avatar {
  display: grid;
  width: var(--jg-donor-avatar-size);
  height: var(--jg-donor-avatar-size);
  flex: 0 0 var(--jg-donor-avatar-size);
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #d9d9d9;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
}
.jg-donor-avatar.is-initial { background: var(--purple-unified); }
.jg-donor-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jg-project-caption {
  grid-column: 2 / 3;
  min-width: 0;
  padding: 0 28px;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .32s ease, transform .32s cubic-bezier(.22,.72,.24,1);
}
.jg-project-caption.is-exiting { opacity: 0; transform: translateX(28px); }
.jg-project-caption.is-entering { animation: jg-project-text-enter .48s .12s both cubic-bezier(.2,.72,.2,1); }
.jg-project-index { display: flex; align-items: baseline; gap: 16px; margin-bottom: 2px; }
.jg-project-count { color: var(--jg-ink); font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; }
.jg-project-org { color: #777; font-size: 10px; font-weight: 700; line-height: 1.2; }
.jg-project-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 50px;
  margin-bottom: 8px;
}
.jg-project-title {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--jg-ink);
  font-size: clamp(29px, 2.6cqw, 40px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.055em;
}
.jg-project-summary {
  max-width: 790px;
  margin: 0;
  color: var(--jg-ink);
  font-size: clamp(16px, 1.25cqw, 19px);
  font-weight: 750;
  line-height: 1.5;
}
.jg-project-intro-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-right: 0;
}
.jg-project-intro {
  display: -webkit-box;
  flex: 1 1 auto;
  max-width: 790px;
  margin: 6px 0 0;
  overflow: hidden;
  color: #4d4d4d;
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.jg-project-title-row .jg-qr-group { flex: 0 0 auto; }
.jg-project-intro-row .jg-donate-link { flex: 0 0 auto; margin: 6px 0 0 auto; }
.journey-gongyi .jg-donate-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border-left: 4px solid var(--purple-unified);
  background: #252525;
  color: #fff !important;
  box-shadow: 0 12px 22px -14px rgba(16, 17, 31, .55);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
  transition: background .2s ease, box-shadow .2s ease;
}
.journey-gongyi .jg-donate-link:hover { background: var(--rectangle-black, #252525); box-shadow: 0 14px 24px -13px rgba(16, 17, 31, .62); }
.journey-gongyi .jg-donate-link svg { width: 15px; height: 15px; }
.jg-qr-group { display: flex; align-items: center; gap: 10px; }
.jg-qr-group[hidden] { display: none; }
.jg-qr-code { display: block; width: 52px; height: 52px; padding: 4px; background: #fff; object-fit: contain; }
.jg-qr-copy { max-width: 155px; color: var(--jg-ink); font-size: 11px; font-weight: 800; line-height: 1.5; }
.jg-qr-copy small { display: block; margin-top: 2px; color: #777; font-size: 9px; font-weight: 400; }
.jg-disclaimer {
  grid-column: 2;
  grid-row: 2;
  max-width: none;
  margin: 24px 0 0;
  color: #888;
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}

@keyframes jg-feature-black-wipe {
  0% { transform: translateX(105%); }
  46.6% { transform: translateX(0); }
  88.6% { transform: translateX(0); }
  100% { transform: translateX(-105%); }
}
@keyframes jg-feature-purple-wipe {
  0% { transform: translateX(105%); }
  50% { transform: translateX(0); }
  70% { transform: translateX(0); }
  100% { transform: translateX(-105%); }
}
@keyframes jg-project-text-enter {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes jg-entrance-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes jg-entrance-slide-left {
  from { opacity: 0; transform: translateX(48px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 760px) {
  .journey-gongyi-inner { padding-right: 20px; padding-left: 20px; }
  .journey-gongyi-inner { padding-top: 44px; }
  .jg-showcase { grid-template-columns: minmax(0, 1fr); }
  .jg-side-rail { grid-column: 1 / -1; min-height: 0; padding: 0 0 12px; }
  .jg-eyebrow { margin-bottom: 14px; }
  .jg-title-row { gap: 9px; }
  .jg-title-label { font-size: clamp(16px, 1.8vw, 22px); }
  .jg-rail-heading { margin-top: 10px; font-size: clamp(25px, 7vw, 29px); }
  .jg-section-caption { margin-top: 14px; font-size: 13px; }
  .jg-cover-card {
    width: 100%;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: min(25svh, 280px) 58px;
  }
  .jg-cover-stage { grid-column: 1; grid-row: 1; height: 100%; }
  .jg-vertical-panel { display: flex; grid-column: 1; grid-row: 2; min-height: 58px; align-items: center; padding-left: 58px; }
  .jg-vertical-panel::before { top: 10px; bottom: 10px; left: 11px; width: 38px; }
  .jg-vertical-name {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: auto;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    transform: none;
  }
  .jg-disclaimer { grid-column: 1; grid-row: 3; margin-top: 8px; font-size: 9px; }
  .jg-image-controls { width: min(100%, 142px); height: 38px; bottom: -11px; left: 12px; padding: 3px; }
  .jg-step-button { width: 29px; height: 29px; flex-basis: 29px; }
  .jg-step-button svg { width: 13px; height: 13px; }
  .jg-caption-grid { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .jg-donor-board { grid-column: 1; grid-row: 2; margin: 20px 0 26px; padding: 0 4px; }
  .jg-donor-avatars { --jg-donor-avatar-size: 34px; max-width: 100%; gap: 10px; }
  .jg-project-caption { grid-column: 1; padding: 0 4px; }
  .jg-project-count { font-size: 10px; }
  .jg-project-org { font-size: 9px; }
  .jg-project-title-row { display: block; margin-bottom: 7px; }
  .jg-project-title { margin-bottom: 0; font-size: 30px; }
  .jg-project-title-row .jg-qr-group { margin-top: 10px; }
  .jg-project-summary { font-size: 16px; line-height: 1.5; }
  .jg-project-intro-row { display: block; margin-right: 0; }
  .jg-project-intro { margin-top: 6px; font-size: 12px; line-height: 1.65; -webkit-line-clamp: 3; }
  .jg-project-intro-row .jg-donate-link { display: flex; width: max-content; margin: 12px 0 0 auto; }
  .journey-gongyi .jg-donate-link { min-height: 48px; gap: 8px; padding: 0 10px; font-size: 12px; }
  .jg-qr-code { width: clamp(36px, 10vw, 44px); height: clamp(36px, 10vw, 44px); padding: 3px; }
  .jg-qr-copy { font-size: 10px; }
  .jg-qr-copy small { max-width: 135px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-gongyi *, .journey-gongyi *::before, .journey-gongyi *::after { transition-duration: .01ms !important; }
  .jg-cover-stage.is-wiping .jg-image-wipe::before,
  .jg-cover-stage.is-wiping .jg-image-wipe::after,
  .jg-project-caption.is-entering { animation-duration: .01ms; animation-delay: 0ms; }
}
