/* "Una sola línea" — how-we-work.html
   Default (no JS): text list. Reduced motion: list with a still per stage.
   .journey--live (set by journey-svg.js): sticky illustration drawn by scroll. */

.journey { background: var(--ink); color: #fff; position: relative; }

/* ---------- Line illustration styles ---------- */
.journey-art { display: block; }
.journey-art path, .journey-art ellipse { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.journey-art .cu  { stroke: #F0AA28; stroke-width: 3; filter: url(#j-glow); }
.journey-art .cu2 { stroke: #F0AA28; stroke-width: 1.8; }
.journey-art .wl  { stroke: rgba(255,255,255,0.82); stroke-width: 1.7; }
.journey-art .sk  { stroke: rgba(255,255,255,0.78); stroke-width: 2.2; }
.journey-art .sk2 { stroke: rgba(255,255,255,0.4); stroke-width: 1.5; }
.journey-art .sh  { stroke: rgba(122,157,184,0.6); stroke-width: 1.1; }
.journey-art .dim { stroke: rgba(255,255,255,0.5); stroke-width: 1.1; }
.journey-art .axis { stroke: rgba(122,157,184,0.7); stroke-width: 1.1; stroke-dasharray: 14 5 3 5; }
.journey-art .dot { fill: #F0AA28; }
.journey-art path.star { fill: #F0AA28; stroke: none; }
.journey-art .brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 9.5px; letter-spacing: 0.18em; fill: #fff; }
.journey-art path.hatch { fill: url(#j-hatch); stroke: none; }
.journey-art text { font-family: 'IBM Plex Mono', monospace; fill: rgba(255,255,255,0.72); }
.journey-art .mono { font-size: 13px; letter-spacing: 0.16em; }
.journey-art .lab  { font-size: 15px; letter-spacing: 0.14em; fill: #fff; font-weight: 500; }
.journey-art .sub  { font-size: 13px; fill: rgba(255,255,255,0.5); letter-spacing: 0.02em; }
.journey-art .cu-text { fill: #F0AA28; }
.journey-art .hand { font-family: 'Caveat', cursive; font-size: 30px; fill: rgba(255,255,255,0.72); letter-spacing: 0; }
@media (max-width: 767px) {
  .journey--live .journey-art .mono { font-size: 16px; }
  .journey--live .journey-art .lab  { font-size: 19px; }
  .journey--live .journey-art .sub  { font-size: 15px; }
  .journey--live .journey-art .hand { font-size: 38px; }
}

/* ---------- Static list (no JS / reduced motion) ---------- */
.journey-rail, .journey-progress, .journey-shade, .journey-head { display: none; }
.journey-stages { max-width: 1320px; margin: 0 auto; padding: 96px 24px; display: grid; gap: 56px; }
.journey-stage { display: grid; gap: 20px; }
.journey-still:empty { display: none; }
.journey-still svg { width: 100%; height: auto; aspect-ratio: 16/9; border: 1px solid var(--line-d); border-radius: 2px; background: var(--ink); }
@media (min-width: 900px) {
  .journey-stages { padding: 128px 40px; }
  .journey-stage { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; }
}

.journey-num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.18em; color: var(--copper); }
.journey-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; font-size: clamp(2rem, 4.2vw, 3.6rem); margin: 14px 0 16px; }
.journey-tag { color: rgba(255,255,255,0.68); font-size: 17px; line-height: 1.6; max-width: 440px; }
.journey-dur { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-lt); }
.journey-dur::before { content: ''; width: 36px; height: 1px; background: var(--steel); }

/* ---------- Live ---------- */
.journey--live { height: 740vh; }
@media (max-width: 767px) { .journey--live { height: 620vh; } }

.journey--live .journey-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.journey--live .journey-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey--live .journey-shade {
  display: block; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.6) 30%, rgba(10,22,40,0) 46%);
}
@media (max-width: 899px) {
  .journey--live .journey-shade { background: linear-gradient(0deg, rgba(10,22,40,0.97) 0%, rgba(10,22,40,0.85) 34%, rgba(10,22,40,0) 50%); }
}

.journey--live .journey-stages { position: absolute; inset: 0; max-width: 1320px; padding: 0 24px; display: block; }
@media (min-width: 900px) { .journey--live .journey-stages { padding: 0 40px; } }
.journey--live .journey-stage {
  position: absolute; left: 24px; right: 24px; bottom: 9vh; display: block;
  opacity: 0; transform: translateY(24px); transition: opacity .45s ease, transform .45s ease; pointer-events: none;
}
@media (min-width: 900px) {
  .journey--live .journey-stage { left: 40px; right: auto; bottom: auto; top: 50%; max-width: 440px; transform: translateY(calc(-50% + 24px)); }
  .journey--live .journey-stage.is-active { transform: translateY(-50%); }
}
.journey--live .journey-stage.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.journey--live .journey-still { display: none; }
@media (max-width: 899px) {
  .journey--live .journey-name { font-size: 2rem; margin: 8px 0 10px; }
  .journey--live .journey-tag { font-size: 15px; }
  .journey--live .journey-dur { margin-top: 12px; }
}

.journey-head { position: absolute; top: 96px; left: 24px; right: 24px; align-items: center; gap: 16px; z-index: 2; }
@media (min-width: 900px) { .journey-head { left: 40px; right: 40px; } }
.journey--live .journey-head { display: flex; }

.journey--live .journey-rail { display: flex; flex-direction: column; gap: 6px; position: absolute; right: 40px; top: 50%; transform: translateY(-50%); z-index: 2; }
.journey-rail button {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px; background: none; border: 0; cursor: pointer; padding: 6px 0;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); transition: color .25s;
}
.journey-rail button .lbl { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; white-space: nowrap; }
.journey-rail button .tick { width: 14px; height: 1px; background: currentColor; transition: width .25s, background .25s; }
.journey-rail button:hover, .journey-rail button:focus-visible { color: rgba(255,255,255,0.8); }
.journey-rail button:hover .lbl, .journey-rail button.is-active .lbl { opacity: 1; transform: none; }
.journey-rail button.is-active { color: #fff; }
.journey-rail button.is-active .tick { width: 32px; background: var(--copper); }
@media (max-width: 899px) { .journey--live .journey-rail { display: none; } }

.journey--live .journey-progress { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-d); z-index: 2; }
.journey-progress span { display: block; height: 100%; width: 100%; background: var(--copper); transform-origin: left; transform: scaleX(0); }
