/* =====================================================================
   SEFORAA – "Perjalanan kami" Pilihan B (halaman Kami)
   Pasangan: includes/perjalanan.php + assets/js/seforaa-perjalanan.js
   Tanpa JavaScript / "kurangi gerakan": bab tersusun ke bawah, semua
   adegan tampil dalam keadaan akhir. Kelas .is-pinned dipasang oleh JS.
   ===================================================================== */

/* ---------- susunan dasar (ponsel, tanpa JS, kurangi gerakan) ---------- */
.pj-track { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 96px; }
.pj-ch { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.pj-idx { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--pg-accent); }
.pj-year { display: block; margin: 10px 0 18px; font-size: clamp(44px, 5vw, 72px); font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--pg-maroon); }
.pj-when { margin: 0; }
.pj-copy h3 { margin: 0 0 12px; font-size: clamp(22px, 2vw, 30px); font-weight: 600; line-height: 1.25; color: var(--pg-ink); }
.pj-text { margin: 0; max-width: 42ch; font-size: 17px; line-height: 1.65; color: var(--pg-slate); }
.pj-ghost, .pj-rail-wrap { display: none; }
.pj-split span { display: inline-block; }

/* ---------- kartu adegan ---------- */
.pj-scene {
  position: relative; height: 360px; border-radius: 22px; overflow: hidden;
  background: #fff radial-gradient(rgba(105, 19, 27, .07) 1px, transparent 1px) 0 0 / 18px 18px;
  border: 1px solid var(--pg-line); box-shadow: 0 40px 70px -44px rgba(74, 13, 19, .45);
}

/* 2004: tiga dokumen BPO */
.pj-docs { position: absolute; inset: 0; --dx: 124px; }
.pj-doc {
  position: absolute; left: 50%; top: 50%; width: 168px; height: 212px; margin: -100px 0 0 -84px; padding: 18px 16px;
  background: #fff; border: 1px solid rgba(105, 19, 27, .12); border-radius: 14px; box-shadow: 0 18px 30px -18px rgba(74, 13, 19, .4);
  transform: translateX(calc(var(--k) * var(--dx))) translateY(calc(var(--k) * var(--k) * 12px)) rotate(calc(var(--k) * 8deg));
}
.pj-doc.is-mid { z-index: 2; }
.pj-doc b { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--pg-maroon); }
.pj-doc i, .pj-akta-doc i { display: block; width: var(--w, 80%); height: 7px; margin-top: 10px; border-radius: 4px; background: #EFE7E8; transform-origin: left center; }
.pj-doc em { position: absolute; left: 16px; bottom: 16px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 600; color: var(--pg-accent); background: var(--pg-rose); }
.pj-badge { position: absolute; top: 20px; left: 20px; z-index: 3; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #fff; background: var(--pg-maroon); }

/* 2018: jaringan Santa Fe Associates International, dari Malta (Eropa) ke Jakarta */
.pj-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.pj-map { inset: 10px 10px 46px; width: calc(100% - 20px); height: calc(100% - 56px); overflow: visible; }
.pj-map-dots { fill: none; stroke: rgba(105, 19, 27, .27); stroke-width: 1.9; stroke-linecap: round; }
.pj-net-line { fill: none; stroke: var(--pg-accent); stroke-width: 1.1; stroke-linecap: round; opacity: .5; }
.pj-net-line.is-jkt { stroke: var(--pg-maroon); stroke-width: 2.4; opacity: 1; }
.pj-net-node { fill: #fff; stroke: var(--pg-accent); stroke-width: 1.5; }
.pj-net-node, .pj-net-hub, .pj-net-ring, .pj-jkt, .pj-jkt-ring { transform-box: fill-box; transform-origin: center; }
.pj-net-core, .pj-jkt-core { fill: var(--pg-maroon); stroke: #fff; stroke-width: 2; }
.pj-net-ring, .pj-jkt-ring { fill: none; stroke: var(--pg-accent); stroke-width: 1.6; opacity: 0; }
.pj-net-hub text, .pj-jkt text { font-size: 10px; font-weight: 700; fill: var(--pg-maroon); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.pj-net-dot { fill: var(--pg-accent); opacity: 0; }
.pj-net-dot.is-jkt { fill: var(--pg-maroon); }
.pj-legend { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 12px; font-weight: 600; color: var(--pg-ink); }
.pj-legend span { display: inline-flex; align-items: center; gap: 7px; }
.pj-legend span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pg-maroon); box-shadow: 0 0 0 3px rgba(199, 74, 86, .25); }
.pj-legend .is-jkt { color: var(--pg-maroon); }
@media (max-width: 575px) {
  .pj-net-hub text, .pj-jkt text { display: none; } /* label peta terlalu kecil di HP; diganti keterangan di bawah */
  .pj-map { inset: 6px 4px 58px; width: calc(100% - 8px); height: calc(100% - 64px); }
  .pj-legend { left: 12px; right: 12px; bottom: 10px; flex-direction: column; gap: 4px; font-size: 11.5px; }
}

/* Des 2024: pendirian PT SFAI */
.pj-akta { position: absolute; inset: 0; display: grid; place-items: center; }
.pj-akta-doc { position: relative; width: min(320px, 82%); padding: 26px 26px 22px; background: #fff; border: 1px solid rgba(105, 19, 27, .14); border-radius: 14px; box-shadow: 0 24px 40px -26px rgba(74, 13, 19, .45); }
.pj-akta-cap { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pg-slate); }
.pj-akta-name { margin: 0 0 14px; min-height: 2.6em; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--pg-maroon); }
.pj-akta-foot { margin: 16px 0 0; font-size: 12px; color: var(--pg-slate); }
.pj-stamp {
  position: absolute; right: 12%; bottom: 14%; z-index: 2; width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; color: var(--pg-accent); background: rgba(255, 255, 255, .7);
  border: 3px solid var(--pg-accent); box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px rgba(199, 74, 86, .6);
  transform: rotate(-12deg);
}
.pj-stamp span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pj-stamp b { font-size: 17px; font-weight: 800; line-height: 1.1; }

/* 2025: SEFORAA dipasarkan. Logo resmi BERWARNA (assets/img/logo/sfai-logo.svg): bentuk dan warna dibaca
   dari berkasnya oleh includes/perjalanan.php. Huruf SEFOR naik, panah marun meluncur dengan jejak,
   garis tegak tumbuh, lalu angka klien. Kartu terang agar huruf hitam logo terbaca, seperti kartu bab lain. */
.pj-launch { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; padding: 0 8%; }
.pj-logo { display: block; width: 440px; max-width: 100%; height: auto; overflow: visible; }
.pj-logo path, .pj-logo .pj-lg-trail line { transform-box: fill-box; transform-origin: center; }
.pj-logo .pj-lg-stroke { transform-origin: 50% 100%; }
.pj-logo .pj-lg-arrow { transform-origin: 30% 80%; }
.pj-lg-trail line { stroke: #92013A; stroke-width: 3; stroke-linecap: round; opacity: 0; }
.pj-launch-meta { margin: 0; font-size: 14px; color: var(--pg-slate); }
.pj-launch-meta b { font-size: 18px; color: var(--pg-maroon); font-variant-numeric: tabular-nums; }

/* Kini: tujuh aplikasi (warna tiap aplikasi sebagai warna sekunder) */
.pj-scene-aplikasi { display: grid; place-items: center; }
.pj-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; width: 430px; max-width: calc(100% - 32px); }
.pj-app { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 92px; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--pg-ink); }
.pj-app:hover { color: var(--pg-maroon); }
.pj-app .sm-ico { width: 58px; height: 58px; border-radius: 18px; }
.pj-app .sm-ico svg { width: 28px; height: 28px; }
.pj-app:hover .sm-ico, .pj-app:focus-visible .sm-ico { transform: translateY(-3px) rotate(-6deg) scale(1.06); }

/* ---------- mode menempel (desktop, dipasang JS) ---------- */
.pj.is-pinned { padding: 0; height: calc(100vh + (var(--pj-n) - 1) * 75vh); }
.is-pinned .pj-stick {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; padding: calc(var(--pj-top, 88px) + 24px) 0 26px;
}
.pj-stick > * { position: relative; z-index: 1; }
.is-pinned .pj-stick > .pj-ghost {
  display: block; position: absolute; z-index: 0; right: -1vw; bottom: 3vh; margin: 0; pointer-events: none;
  font-size: clamp(160px, 22vw, 340px); font-weight: 800; line-height: .8; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  color: transparent; -webkit-text-stroke: 1.5px rgba(105, 19, 27, .1);
}
.is-pinned .pj-head .pg-h2 { margin-bottom: 0; font-size: clamp(28px, 2.6vw, 40px); }
.is-pinned .pj-view { flex: 1; min-height: 0; display: flex; align-items: center; }
.is-pinned .pj-track { display: flex; gap: 96px; width: 100%; margin: 0; will-change: transform; }
.is-pinned .pj-ch { flex: 0 0 100%; opacity: .22; transition: opacity .5s ease; }
.is-pinned .pj-ch.is-active { opacity: 1; }
.is-pinned .pj-scene { height: min(360px, 44vh); }

/* rel tahapan */
.is-pinned .pj-rail-wrap { display: block; }
.pj-rail { position: relative; height: 74px; margin: 0 64px; }
.pj-rail-line { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--pg-line); }
.pj-rail-line i { position: absolute; inset: 0; background: var(--pg-maroon); transform-origin: left center; transform: scaleX(var(--pj-p, 0)); }
.pj-rail-arrow {
  position: absolute; z-index: 2; top: 9px; left: calc(var(--pj-p, 0) * 100%); width: 30px; height: 30px; margin: -15px 0 0 -15px;
  display: grid; place-items: center; border-radius: 50%; color: #fff; pointer-events: none;
  background: linear-gradient(135deg, var(--pg-accent), var(--pg-maroon));
  box-shadow: 0 6px 14px -4px rgba(105, 19, 27, .5), 0 0 0 4px rgba(199, 74, 86, .16);
}
.pj-stop {
  position: absolute; top: 0; left: calc(var(--i) / (var(--pj-n) - 1) * 100%); transform: translateX(-50%);
  padding: 26px 4px 0; border: 0; background: none; font: inherit; text-align: center; white-space: nowrap; color: var(--pg-slate); cursor: pointer;
}
.pj-stop::before {
  content: ""; position: absolute; top: 3px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 2px var(--pg-maroon); transition: transform .3s ease, background-color .3s ease;
}
.pj-stop b { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--pg-ink); transition: color .3s ease; }
.pj-stop span { display: block; margin-top: 3px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--pg-slate); transition: color .3s ease; }
.pj-stop.is-active span { color: var(--pg-ink); }
.pj-stop.is-active b { color: var(--pg-maroon); }
.pj-stop.is-active::before { background: var(--pg-maroon); transform: scale(1.25); }
.pj-stop:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 4px; border-radius: 6px; }

/* ---------- ponsel & tablet ---------- */
@media (max-width: 991px) {
  .pj-track { gap: 72px; margin-top: 40px; }
  .pj-ch { grid-template-columns: 1fr; gap: 24px; }
  .pj-year { margin: 6px 0 12px; }
  .pj-scene { height: 300px; }
}
@media (max-width: 575px) {
  .pj-scene { height: 270px; border-radius: 18px; }
  .pj-docs { --dx: 82px; }
  .pj-doc { width: 128px; height: 168px; margin: -78px 0 0 -64px; padding: 14px 12px; }
  .pj-doc b { font-size: 12px; margin-bottom: 10px; }
  .pj-stamp { width: 92px; height: 92px; right: 5%; bottom: 10%; }
  .pj-stamp b { font-size: 14px; }
  .pj-logo { width: 300px; }
  .pj-apps { gap: 16px 10px; }
  .pj-app { width: 74px; font-size: 11px; }
  .pj-app .sm-ico { width: 48px; height: 48px; border-radius: 15px; }
  .pj-app .sm-ico svg { width: 24px; height: 24px; }
}
