/* ==========================================================
   Jornada do projeto (index): cena fixa que acompanha a rolagem.
   Sem a classe .is-live (sem JS ou "reduzir movimento") vira
   cena + lista de etapas.
   ========================================================== */
/* --n vai de 0 (dia) a 1 (noite) conforme a rolagem; as cores abaixo acompanham */
.journey {
  --n: 0;
  --np: calc(var(--n) * 100%);
  --j-bg: color-mix(in srgb, #15171C var(--np), var(--bg));
  --j-ink: color-mix(in srgb, var(--on-dark) var(--np), var(--ink));
  --j-muted: color-mix(in srgb, var(--on-dark-muted) var(--np), var(--muted));
  --j-acc: color-mix(in srgb, var(--accent-light) var(--np), var(--accent));
  --j-card: color-mix(in srgb, #23252B var(--np), var(--card));
  --j-chip: color-mix(in srgb, #33353C var(--np), var(--bg-2));
  --j-line: color-mix(in srgb, #3A3D45 var(--np), var(--line));
  position: relative; background: var(--j-bg); color: var(--j-ink);
  --j-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.journey .eyebrow { color: var(--j-acc); }
.j-stage { position: relative; }
.j-scene { display: block; width: 100%; height: min(70vh, 640px); }

.j-copy { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 96px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; }
.j-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -0.03em; margin: 14px 0 16px; }
.j-title span { display: block; color: var(--j-acc); }
.j-text { color: var(--j-muted); font-size: 17px; line-height: 1.6; max-width: 30em; }
.j-card { margin-top: 22px; background: var(--j-card); border: 1px solid var(--j-line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 14px 34px rgba(29, 29, 27, .08); max-width: 380px; }
.j-card p { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--j-acc); margin-bottom: 10px; }
.j-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.j-card li { padding: 6px 12px; border-radius: 999px; background: var(--j-chip); font-size: 13px; font-weight: 600; color: var(--j-ink); }
.j-step .btn-row { margin-top: 26px; }
.j-progress, .j-skip { display: none; }

/* ---------- modo com rolagem ---------- */
.journey.is-live .j-stage { height: 100vh; height: 100svh; overflow: hidden; }
.is-live .j-scene { position: absolute; inset: 0; height: 100%; }
.is-live .j-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--j-bg) 0%, color-mix(in srgb, var(--j-bg) 90%, transparent) 26%, transparent 50%); }
.is-live .j-copy { position: absolute; z-index: 2; left: var(--j-left); top: var(--header-h); bottom: 110px; width: min(450px, 40vw); display: block; padding: 0; margin: 0; }
.is-live .j-step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(28px);
  transition: opacity .45s var(--ease), transform .8s var(--ease), visibility 0s .45s; }
.is-live .j-step.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .05s, .05s, 0s; }
.is-live .j-step.is-active .j-card { animation: j-card-in .8s var(--ease) .15s both; }
@keyframes j-card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }

.is-live .j-progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0;
  position: absolute; z-index: 2; left: var(--j-left); right: calc(var(--j-left) + 84px); bottom: 30px; }
.j-progress button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; font: 600 13px/1.3 var(--font-body); color: var(--j-muted); transition: color .3s; }
.j-progress button span { display: block; font-size: 11px; color: var(--j-acc); margin-bottom: 2px; }
.j-progress button:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 4px; border-radius: 4px; }
.j-progress i { display: block; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--j-line); overflow: hidden; }
.j-progress b { display: block; height: 100%; background: var(--j-acc); transform-origin: left; transform: scaleX(0); }
.j-progress .is-active button { color: var(--j-ink); }
.is-live .j-skip { display: inline-flex; gap: 6px; position: absolute; z-index: 2; right: var(--j-left); top: calc(var(--header-h) + 12px); font-size: 13px; font-weight: 600; color: var(--j-muted); text-decoration: none; }
.j-skip:hover { color: var(--j-ink); }

/* noite */
.j-night { fill: #141B2C; mix-blend-mode: multiply; opacity: calc(var(--n) * .66); pointer-events: none; }
.j-lights { opacity: var(--n); pointer-events: none; }
.j-pool { mix-blend-mode: screen; }
.j-win { fill: #FFD089; }
.j-led { stroke: #FFD089; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px #FFB25C); }
.j-line-lit { fill: none; stroke: #F2C27E; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(255, 178, 92, .8)); }

/* ---------- elementos da cena ---------- */
.j-label { font: 700 19px var(--font-display); letter-spacing: .08em; fill: var(--accent); }
.j-guide { fill: none; stroke: rgba(140, 90, 43, .22); stroke-width: 5; stroke-dasharray: 2 12; stroke-linecap: round; }
.j-line { fill: none; stroke: var(--accent); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.j-ring-dot { fill: var(--bg); stroke: var(--accent-light); stroke-width: 4; transition: fill .4s; }
.j-ring.is-done .j-ring-dot { fill: var(--accent); stroke: var(--accent); }
.j-ring-pulse { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.j-ring.is-on .j-ring-pulse { animation: j-pulse 1.6s ease-out infinite; }
@keyframes j-pulse { from { opacity: .9; transform: scale(.5); } to { opacity: 0; transform: scale(1.5); } }
.j-label-sm { font-size: 13px; letter-spacing: .12em; fill: var(--muted); }
.j-sign { font: 800 22px var(--font-display); letter-spacing: .06em; fill: var(--on-dark); }
.j-shadow { fill: rgba(29, 29, 27, .07); }
.j-line-shadow { fill: none; stroke: rgba(29, 29, 27, .08); stroke-width: 17; stroke-linecap: round; stroke-linejoin: round; transform: translateY(3px); }
.j-room { transition: opacity .8s var(--ease); }
.j-scene.has-focus .j-room:not(.is-on) { opacity: .5; }

/* boneco: anda, vira para o lado do caminho e acena ao chegar */
.j-bob, .j-face { transition: transform .35s var(--ease); }
.j-walker.is-left .j-face { transform: scaleX(-1); }
.j-walker.is-walking .j-bob { animation: j-bob .32s ease-in-out infinite alternate; }
@keyframes j-bob { to { transform: translateY(-4px); } }
.j-limb { transform-box: fill-box; transform-origin: 50% 0; }
.j-walker.is-walking .j-leg-l, .j-walker.is-walking .j-arm-r { animation: j-swing .32s ease-in-out infinite alternate; }
.j-walker.is-walking .j-leg-r, .j-walker.is-walking .j-arm-l { animation: j-swing .32s ease-in-out infinite alternate-reverse; }
@keyframes j-swing { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
.j-walker.is-waving .j-arm-r { animation: j-wave .5s ease-in-out .3s infinite alternate both; }
@keyframes j-wave { from { transform: rotate(-150deg); } to { transform: rotate(-115deg); } }

/* vida nos ambientes */
.j-spark { animation: j-fly .8s ease-out infinite; }
.j-dust { animation-duration: 1.1s; }
@keyframes j-fly { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.j-glow { transform-box: fill-box; transform-origin: center; animation: j-glow .25s steps(2) infinite; }
@keyframes j-glow { 50% { opacity: .3; transform: scale(.6); } }
.j-blade { fill: #B8B4AC; stroke: #6E6A62; stroke-width: 3; stroke-dasharray: 4 3; animation: j-spin .5s linear infinite; }
@keyframes j-spin { to { stroke-dashoffset: -14; } }
.j-shine { fill: rgba(255, 255, 255, .8); animation: j-shine 3.6s var(--ease) infinite; }
@keyframes j-shine { from { transform: translate(0, 0); } 55%, to { transform: translate(var(--dx), var(--dy)); } }
.j-confetti { opacity: 0; transform-box: fill-box; transform-origin: center; }
.j-room.is-on .j-confetti { animation: j-confetti 2.4s ease-in infinite; }
@keyframes j-confetti {
  0% { opacity: 0; transform: translateY(-30px) rotate(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(70px) rotate(var(--r)); }
}

@media (prefers-reduced-motion: reduce) { .journey *, .journey *::before { animation: none !important; transition: none !important; } }

@media (max-width: 760px) {
  .is-live .j-stage::after { background: linear-gradient(0deg, var(--j-bg) 0%, color-mix(in srgb, var(--j-bg) 94%, transparent) 40%, transparent 58%); }
  .is-live .j-copy { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 74px; height: 50%; }
  .is-live .j-step { justify-content: flex-end; }
  .j-title { font-size: 30px; margin: 10px 0 10px; }
  .j-text { font-size: 15px; }
  .j-card { margin-top: 14px; padding: 10px 12px; }
  .j-card p { display: none; }
  .j-card li { font-size: 12px; padding: 5px 10px; }
  .is-live .j-progress { gap: 8px; right: calc(var(--gutter) + 72px); bottom: 24px; left: var(--gutter); }
  .j-progress button { font-size: 0; }
  .is-live .j-skip { right: var(--gutter); }
}

/* celular (jornada sem animação): etapas em cards com rolagem lateral */
@media (max-width: 760px) {
  .journey:not(.is-live) .j-copy { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 40px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .journey:not(.is-live) .j-copy::-webkit-scrollbar { display: none; }
  .journey:not(.is-live) .j-step { flex: 0 0 82%; scroll-snap-align: start; padding: 22px 20px; border: 1px solid var(--j-line); border-radius: 16px; background: var(--j-card); }
}
