/* Jasa family map (2026-11-19) — homepage and /projects/ · source jasa-site-ops/ux/family-20261119/ */
.jf{--jf-bank:#21806c;--jf-money:#8e3a6c;--jf-jex:#4f7a00;--jf-air:#0284c7;--jf-hotels:#c2410c}
html[data-theme="dark"] .jf{--jf-bank:#7fd3bf;--jf-money:#eba2cb;--jf-jex:#c8ee5c;--jf-air:#38bdf8;--jf-hotels:#f97316}
.jf [data-k="bank"]{--c:var(--jf-bank)}.jf [data-k="money"]{--c:var(--jf-money)}.jf [data-k="jex"]{--c:var(--jf-jex)}
.jf [data-k="air"]{--c:var(--jf-air)}.jf [data-k="hotels"]{--c:var(--jf-hotels)}
.jf-shared{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0;padding:0;list-style:none}
.jf-shared li{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;font-size:14px;background:var(--paper)}
.jf-shared li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--jf-bank)}
.jf-map{position:relative;margin-top:28px;aspect-ratio:1000/650;width:100%;max-width:1180px;margin-inline:auto}
.jf-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.jf-edge path{fill:none;stroke:var(--line);stroke-width:2;transition:stroke .3s,opacity .3s}
.jf-edge.spoke path{stroke-width:2.5}
.jf-edge .flow{stroke:var(--c,var(--accent));stroke-width:2.5;stroke-dasharray:3 14;opacity:.55;animation:jf-flow 2.4s linear infinite}
.jf-edge text{font-size:15px;fill:var(--muted);paint-order:stroke;stroke:var(--bg);stroke-width:7px;stroke-linejoin:round;text-anchor:middle;dominant-baseline:middle;transition:fill .3s,opacity .3s}
.jf-map.paused .flow,html[data-motion="off"] .jf .flow{animation:none}
@keyframes jf-flow{to{stroke-dashoffset:-34}}
@media (prefers-reduced-motion:reduce){.jf .flow{animation:none}}
.jf-node{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:min(23%,250px);padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:var(--paper);
  box-shadow:0 0 0 0 transparent;transition:border-color .3s,opacity .3s,transform .35s var(--ease,ease),box-shadow .3s}
.jf-node[data-k="bank"]{width:min(25%,270px);border-color:color-mix(in srgb,var(--c) 55%,var(--line))}
.jf-node .jf-top{display:flex;align-items:center;gap:10px}
.jf-ic{flex:none;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;color:var(--c);background:color-mix(in srgb,var(--c) 14%,transparent)}
.jf-ic svg{width:30px;height:30px}
.jf-ic.mark{background:none}.jf-ic.mark svg{width:38px;height:38px}
.jf-node h3{margin:0;font-size:17px;line-height:1.25}
.jf-node p{margin:8px 0 10px;font-size:13.5px;line-height:1.55;color:var(--muted)}
.jf-go{display:flex;gap:14px;font-size:13.5px}
.jf-go a{color:var(--c);text-decoration:none;font-weight:600}
.jf-go a:hover,.jf-go a:focus-visible{text-decoration:underline;text-underline-offset:3px}
.jf-go a.jf-about{color:var(--muted);font-weight:500}
/* highlight one service and its links */
.jf-map[data-on] .jf-edge{opacity:.18}
.jf-map[data-on] .jf-edge.on{opacity:1}
.jf-map[data-on] .jf-edge.on path:not(.flow){stroke:var(--c)}
.jf-map[data-on] .jf-edge.on text{fill:var(--ink)}
.jf-map[data-on] .jf-node{opacity:.45}
.jf-map[data-on] .jf-node.on,.jf-map[data-on] .jf-node.near{opacity:1}
.jf-map[data-on] .jf-node.on{border-color:var(--c);transform:translate(-50%,-50%) scale(1.03);box-shadow:0 0 0 4px color-mix(in srgb,var(--c) 16%,transparent)}
.jf-hint{margin:14px 0 0;text-align:center;font-size:13px;color:var(--muted)}
.jf-relh{margin:34px 0 0;font-size:15px;font-weight:600;color:var(--muted)}
.jf-rels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 28px;margin:10px 0 0;padding:0;list-style:none}
.jf-rels li{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:baseline;padding:10px 0;border-top:1px solid var(--line);transition:opacity .3s}
.jf-rels .pair{display:inline-flex;gap:5px;align-items:center;font-size:12.5px;color:var(--muted);white-space:nowrap}
.jf-rels .pair i{width:9px;height:9px;border-radius:50%;background:var(--c)}
.jf-rels b{font-size:15px}
.jf-rels span.d{grid-column:2;font-size:13.5px;color:var(--muted);line-height:1.5}
.jf.has-on .jf-rels li{opacity:.4}.jf.has-on .jf-rels li.on{opacity:1}
.jf .hx-jwb{margin-top:44px}
/* reveal */
.jf-map .jf-node{animation:jf-in .7s var(--ease,ease) both;animation-delay:calc(var(--i,0) * 90ms)}
.jf-map .jf-edge path:not(.flow){stroke-dasharray:100;stroke-dashoffset:0;animation:jf-draw 1.2s var(--ease,ease) both;animation-delay:.25s}
@keyframes jf-in{from{opacity:0;transform:translate(-50%,-42%)}to{opacity:1}}
@keyframes jf-draw{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
html[data-motion="off"] .jf-map .jf-node,html[data-motion="off"] .jf-map .jf-edge path{animation:none}
@media (prefers-reduced-motion:reduce){.jf-map .jf-node,.jf-map .jf-edge path{animation:none}}
/* phones and narrow windows: stacked */
@media (max-width:860px){
  .jf-map{aspect-ratio:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .jf-lines,.jf-hint{display:none}
  .jf-node{position:static;transform:none;width:auto;animation:none}
  .jf-node[data-k="bank"]{grid-column:1/-1;width:auto}
  .jf-map[data-on] .jf-node.on{transform:none}
  .jf-rels{grid-template-columns:1fr}
}
@media (max-width:520px){.jf-map{grid-template-columns:1fr}}
/* on /projects/ */
.jf-pj{margin-top:48px}
.jf-pj .section-head h2{font-size:clamp(26px,3.2vw,40px);line-height:1.2;margin:6px 0 10px}
.jf-pj .kicker{font-size:13px;color:var(--muted);margin:0}
.jf-pj .sub{color:var(--muted);max-width:62ch}
.jf-tiles{margin-top:30px}
/* 2026-11-21 phone: "Open / About" links get a 44px tap area */
.jf-go{gap:4px 10px;flex-wrap:wrap}
.jf-go a{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;margin:-8px -6px}
@media (max-width:860px){.jf-node{padding:14px 16px 8px}}
