.fgx-journeys { color: #171717; background: #f3f1eb; --ux-fg: #171717; --ux-muted: #5a5653; --ux-red-text: #ad1d1a; }
.fgx-journeys a:focus-visible { outline: 3px solid #171717; outline-offset: 4px; }
.fgx-journeys .ux-heading .ux-lead { margin-top: clamp(20px, 2vw, 32px); color: #3d3a37; }

/* Business problems: the customer journey as five numbered stops. Scrolling through the cards
   fills the rail; hovering or focusing a card breaks the rail at its stop. journeys.js adds
   .is-live and drives --p / --np / --rail-p; without it (or with reduced motion) all is static. */
.fgx-problems { --fp-ink: #171717; --fp-red: #e3261f; --fp-red-text: #ad1d1a; --fp-line: rgba(23, 23, 23, .14); --fp-ease: var(--ux-ease, cubic-bezier(.16, 1, .3, 1)); --ux-bg: #f3f1eb; --ux-line: rgba(23, 23, 23, .22); overflow-x: clip; }

.fgx-problems__rail { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 clamp(20px, 2vw, 32px); padding: 0; }
.fgx-problems__rail::after { content: ""; position: absolute; top: 7px; left: 0; z-index: 0; width: 80%; height: 2px; background: var(--fp-red); transform: scaleX(var(--rail-p, 0)); transform-origin: 0 50%; transition: opacity .3s; }
.fgx-problems__rail.has-active::after { opacity: .2; }
.fgx-problems__rail li { position: relative; padding: 32px 12px 0 0; color: rgba(23, 23, 23, .5); font: 600 15px/1.2 var(--ux-text, "DM Sans", sans-serif); letter-spacing: -.01em; transition: color .4s var(--fp-ease); }
.fgx-problems__rail li span { display: block; margin-bottom: 6px; color: var(--fp-red-text); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.fgx-problems__rail li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--fp-ink); clip-path: inset(0); transform-origin: 0 50%; transition: transform .9s var(--fp-ease) calc(var(--i) * 140ms), clip-path .45s var(--fp-ease), background-color .3s; }
.fgx-problems__rail li:last-child::before { background: linear-gradient(90deg, var(--fp-ink), rgba(23, 23, 23, 0)); }
.fgx-problems__rail b { position: absolute; top: 0; left: 0; z-index: 1; width: 16px; height: 16px; border: 2px solid var(--fp-ink); border-radius: 50%; background: #f3f1eb; transition: transform .6s var(--fp-ease) calc(var(--i) * 140ms + 120ms), scale .4s var(--fp-ease), background-color .3s, border-color .3s; }
.fgx-problems.is-live .fgx-problems__rail:not(.is-drawn) li::before { transform: scaleX(0); }
.fgx-problems.is-live .fgx-problems__rail:not(.is-drawn) b { transform: scale(0); }
.fgx-problems__rail li.is-passed { color: var(--fp-ink); }
.fgx-problems__rail li.is-passed b { border-color: var(--fp-red); background: var(--fp-red); }
.fgx-problems__rail li.is-active { color: var(--fp-ink); }
.fgx-problems__rail li.is-active b { scale: 1.25; border-color: var(--fp-red); background: var(--fp-red); animation: ux-pulse 2.4s infinite; }
.fgx-problems__rail li.is-active::before { clip-path: inset(0 0 0 30px); background: var(--fp-red); }
.fgx-problems__rail li.is-before::before { clip-path: inset(0 14px 0 0); }

.fgx-problems__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 24px); }
.fgx-problem { position: relative; isolation: isolate; grid-column: span 2; display: flex; flex-direction: column; min-width: 0; min-height: clamp(380px, 31vw, 460px); padding: clamp(24px, 2.4vw, 40px); overflow: hidden; color: var(--fp-ink); background: #fff; border: 1px solid var(--fp-line); transition: transform .6s var(--fp-ease), box-shadow .6s var(--fp-ease), border-color .4s; }
.fgx-problem:nth-child(-n+2) { grid-column: span 3; }
.fgx-problem::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--fp-red); transform: scaleX(calc(.14 + (1 - var(--p, 1)) * .86)); transform-origin: 0 50%; transition: transform .7s var(--fp-ease); }
.fgx-problem:is(:hover, :focus-within) { transform: translateY(-6px); border-color: transparent; box-shadow: 0 28px 60px -32px rgba(23, 23, 23, .38); }
.fgx-problem:is(:hover, :focus-within)::after { transform: scaleX(1); }
.fgx-problem__num { position: absolute; top: clamp(16px, 1.6vw, 26px); right: clamp(18px, 2vw, 32px); z-index: -1; color: rgba(23, 23, 23, .07); font: 600 clamp(76px, 8vw, 132px)/.8 var(--ux-display, "Funnel Display", sans-serif); letter-spacing: -.06em; translate: 0 calc(var(--np, 0) * 40px); transition: color .5s var(--fp-ease); }
.fgx-problem:is(:hover, :focus-within) .fgx-problem__num { color: rgba(229, 36, 33, .18); }
.fgx-problem .fgx-problem__tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 clamp(32px, 4.4vw, 72px); padding: 0; color: var(--fp-red-text); }
.fgx-problem__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fp-red); }
.fgx-problem .ux-h4 { max-width: 16ch; text-wrap: balance; }
.fgx-problem .ux-body { margin-bottom: 28px; }
.fgx-problem__routes { margin-top: auto; border-top: 1px solid var(--fp-line); }
.fgx-problem__routes a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 10px 0; border-bottom: 1px solid var(--fp-line); color: var(--fp-ink); font: 600 var(--fgx-size-body, 16px)/1.35 var(--ux-text, "DM Sans", sans-serif); letter-spacing: -.015em; text-decoration: none; transition: color .3s, padding .5s var(--fp-ease); }
.fgx-problem__routes a:last-child { border-bottom: 0; }
.fgx-problem__routes a span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--fp-ease); }
.fgx-problem__routes i { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--fp-line); border-radius: 50%; font-style: normal; font-size: 15px; transition: transform .5s var(--fp-ease), color .3s, background-color .3s, border-color .3s; }
.fgx-problem__routes a:is(:hover, :focus-visible) { padding-left: 6px; color: var(--fp-red-text); }
.fgx-problem__routes a:is(:hover, :focus-visible) span { background-size: 100% 1px; }
.fgx-problem__routes a:is(:hover, :focus-visible) i { transform: rotate(45deg); color: #fff; background: var(--fp-red); border-color: var(--fp-red); }
.fgx-problems__more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 56px); }

/* Scroll-linked entrance: --p runs 0 → 1 as each card rises into view (reversible). */
.fgx-problems.is-live .fgx-problem { opacity: calc(.08 + var(--p, 1) * .92); translate: 0 calc((1 - var(--p, 1)) * 110px); scale: calc(.92 + var(--p, 1) * .08); }
:is(.fgx-problems__rail li, .fgx-problem):nth-child(1) { --i: 0; }
:is(.fgx-problems__rail li, .fgx-problem):nth-child(2) { --i: 1; }
:is(.fgx-problems__rail li, .fgx-problem):nth-child(3) { --i: 2; }
:is(.fgx-problems__rail li, .fgx-problem):nth-child(4) { --i: 3; }
:is(.fgx-problems__rail li, .fgx-problem):nth-child(5) { --i: 4; }

/* Why FGX: the shared ux-focus lens (ui-ux.css / ui-ux.js) with a links row under the pinned stage. */
.fgx-lens { --ux-fg: #f4f0ee; --ux-bg: #0f0f0f; --ux-muted: rgba(244, 240, 238, .72); --ux-line: rgba(244, 240, 238, .3); color: var(--ux-fg); background: var(--ux-bg); }
.fgx-lens__links { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-block: clamp(40px, 5vw, 80px) clamp(64px, 8vw, 128px); }
.fgx-lens__links .ux-body { color: var(--ux-muted); }
.fgx-lens__links .ux-actions { margin-top: 0; }
@media (max-width: 1100px) {
  .fgx-problems__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgx-problem, .fgx-problem:nth-child(-n+2) { grid-column: auto; }
  .fgx-problem:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .fgx-problems__rail { display: none; }
  .fgx-problems__grid { grid-template-columns: minmax(0, 1fr); }
  .fgx-problem { min-height: 0; }
  .fgx-problem .fgx-problem__tag { margin-bottom: 28px; }
  .fgx-problems__more .ux-btn, .fgx-lens__links .ux-btn { width: 100%; justify-content: space-between; }
}
@media (hover: none) {
  .fgx-problem:is(:hover, :focus-within) { transform: none; box-shadow: none; border-color: var(--fp-line); }
}
@media (prefers-reduced-motion: reduce) {
  .fgx-problems *, .fgx-problems *::before, .fgx-problems *::after { transition-duration: 1ms !important; transition-delay: 0s !important; animation: none !important; }
}

.fgx-article-next { border-top: 2px solid currentColor; padding: 24px 0; margin: 32px 0; }
.fgx-article-next h2 { font-size: 26px; }
.fgx-article-next a { display: inline-block; margin: 8px 20px 8px 0; text-decoration: underline; }
