/* ============================================================
   ONDA — "A Jornada" · do nascer ao pôr do sol
   Fundo estático (mesma marinha do hero). Metodologia em 5
   fases que se revelam ao rolar a página.
   ============================================================ */

.journey {
  position: relative;
  height: 300vh;            /* curso de scroll mais curto = troca de fase mais rápida */
  background: #0b2330;
}
.journey-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  contain: layout paint;
}

/* ---- Fundo estático ---- */
.jr-frames { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.jr-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 46%;
}

/* ---- Véu para legibilidade ---- */
.jr-scrim { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% 52%, rgba(8,22,40,.48), rgba(8,22,40,.12) 70%, transparent 100%),
    linear-gradient(180deg, rgba(8,22,40,.38) 0%, transparent 26%, transparent 66%, rgba(7,18,34,.55) 100%); }

/* ---- Grain de tela ---- */
.journey-sticky::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  opacity: .22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---- Conteúdo / fases ---- */
.jr-content {
  position: relative; z-index: 6; width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gutter);
  text-align: center; color: #fff;
}
.jr-kicker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600;
  color: rgba(255,255,255,.86); display: inline-flex; align-items: center; gap: 14px; }
.jr-kicker::before, .jr-kicker::after { content: ""; width: 30px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--turq-bright)); }
.jr-kicker::after { background: linear-gradient(90deg, var(--turq-bright), transparent); }

.jr-chapters { position: relative; height: clamp(280px, 40vh, 380px); margin-top: 34px; }
.jr-chapter { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.jr-chapter.on { opacity: 1; transform: none; pointer-events: auto; }

.jr-ch-title { font-family: var(--font-body); font-weight: 800; font-size: clamp(48px, 7.6vw, 108px);
  line-height: 1.0; letter-spacing: -.04em;
  text-shadow: 0 2px 30px rgba(0,0,0,.32), 0 24px 60px rgba(0,0,0,.4); }
/* fio luminoso sob o título — substitui o antigo rótulo de fase */
.jr-ch-title::after { content: ""; display: block; width: 56px; height: 2px; margin: 22px auto 0;
  border-radius: 2px; background: var(--turq-bright);
  box-shadow: 0 0 12px rgba(26,198,182,.6); opacity: .9; }

.jr-ch-desc { margin-top: 24px; max-width: 50ch; font-size: clamp(16px, 1.45vw, 19px);
  color: rgba(255,255,255,.9); line-height: 1.62; font-weight: 400;
  text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.jr-ch-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.jr-ch-tags span { font-size: 12px; letter-spacing: .04em; font-weight: 500; color: rgba(255,255,255,.92);
  padding: 6px 15px; border-radius: 100px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px);
  text-shadow: 0 1px 6px rgba(0,0,0,.3); }

/* ---- Trilho lateral (5 fases) ---- */
.jr-rail { position: absolute; right: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%);
  z-index: 7; display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.jr-rail button { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.62);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transition: color .3s; }
.jr-rail .rdot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.42); transition: .3s; flex: none; }
.jr-rail button.on { color: #fff; }
.jr-rail button.on .rdot { background: var(--turq-bright); transform: scale(1.5); box-shadow: 0 0 0 4px rgba(26,198,182,.2); }
.jr-rail .rlabel { opacity: 0; transform: translateX(6px); transition: .3s; white-space: nowrap; }
.jr-rail button.on .rlabel,
.jr-rail button:hover .rlabel,
.jr-rail button:focus-visible .rlabel { opacity: 1; transform: none; }
.jr-rail button:focus-visible { outline: 2px solid var(--turq-bright); outline-offset: 4px; border-radius: 4px; }

/* ---- Dica de scroll ---- */
.jr-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 7;
  display: flex; flex-direction: column; align-items: center; gap: 7px; color: rgba(255,255,255,.74);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: opacity .4s; }
.jr-hint svg { width: 18px; height: 18px; animation: jrHint 1.8s ease-in-out infinite; }
@keyframes jrHint { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---- Responsivo ---- */
@media (max-width: 760px) {
  .jr-rail .rlabel { display: none; }
  .jr-ch-desc { font-size: 15px; }
  /* altura fixa estourava com título em 2 linhas + descrição + tags:
     deixa o capítulo fluir e centraliza verticalmente na área do sticky */
  .jr-chapters { height: auto; min-height: clamp(300px, 56vh, 460px);
    display: flex; align-items: center; }
  .jr-chapter { position: relative; }
  .jr-chapter:not(.on) { position: absolute; }
  .jr-ch-title { font-size: clamp(40px, 11vw, 64px); }
}
@media (max-width: 480px) {
  .jr-rail { display: none; }
  .jr-ch-desc { max-width: 38ch; }
  .jr-ch-tags { gap: 7px; }
}

/* ---- Movimento reduzido ---- */
@media (prefers-reduced-motion: reduce) {
  .jr-chapter { transition: none; }
  .jr-hint svg { animation: none; }
}
