/* AccuraTrials in Japan (/japan). Only this page's figures live here; the
   frame, type, sections, tables and FAQ are the shared world in site.css and
   home.css. Story figures are played by scroll.js ([data-seq] / [data-at]):
   at rest, or without the script, each shows its final frame. */

/* Buttons that open Nami are <button>s wearing the link styles. */
button.btn-solid, button.btn-ghost { cursor: pointer; }
button.btn-ghost { background: transparent; }
button.btn-solid:active, button.btn-ghost:active { transform: translateY(1px); }

/* A bar that grows from its left edge when its moment comes. */
.jp-meter i, .jp-lag__row b, .jp-heard__fill { transform-origin: left center; transition: transform 1.4s var(--ease-out); }
.jp-meter.is-armed i[data-at]:not(.is-on),
.jp-lag.is-armed b[data-at]:not(.is-on),
.jp-heard__list.is-armed .jp-heard__fill[data-at]:not(.is-on) { opacity: 1; transform: scaleX(0); }

/* ── why Japan, now: three dated facts ── */
.jp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 56px 0 0; padding: 0; list-style: none; }
.jp-fact {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 24px 22px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30, 120, 220, 0.11), transparent 70%), var(--well);
  box-shadow: 0 40px 90px -60px rgba(0, 0, 0, 0.95);
}
.jp-fact::before { content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, rgba(92, 200, 255, 0), rgba(92, 200, 255, 0.7), rgba(92, 200, 255, 0)); }
.jp-fact__when { margin: 0; font: 500 10.5px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: #9fd8ff; }
.jp-fact__fig { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 128px; margin: 20px 0 18px; }
.jp-fact__text { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.jp-fact__text b { font-weight: 600; color: var(--fg); }
.jp-fact__src { margin: auto 0 0; padding-top: 18px; font: 500 10px/1.6 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }

.jp-path__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.jp-path__row small { flex: none; width: 48px; font: 500 9.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.jp-path__chip { position: relative; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.03); font-size: 12.5px; font-weight: 500; color: var(--fg); white-space: nowrap; }
.jp-path__chip--jp { color: var(--muted); }
.jp-path__chip--jp::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: rgba(236, 239, 244, 0.75); transform: scaleX(0); transform-origin: left center; transition: transform 0.6s var(--ease-out); }
.jp-path.is-done .jp-path__chip--jp::after, .jp-path:not(.is-armed) .jp-path__chip--jp::after { transform: scaleX(1); }
.jp-path__chip--now { border-color: rgba(92, 200, 255, 0.5); background: rgba(92, 200, 255, 0.09); color: #fff; box-shadow: 0 0 26px -8px rgba(92, 200, 255, 0.7); }
.jp-path__arrow { position: relative; flex: none; width: 20px; height: 1px; background: rgba(255, 255, 255, 0.3); }
.jp-path__arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid rgba(255, 255, 255, 0.5); border-right: 1px solid rgba(255, 255, 255, 0.5); transform: rotate(45deg); }

.jp-fact__big { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.jp-fact__big .stat { padding: 0; border: 0; }
.jp-fact__big b { font: 500 68px/0.9 var(--font-display); letter-spacing: -0.035em; color: var(--fg); font-variant-numeric: tabular-nums; }
.jp-fact__big small { font: 500 13px var(--font-mono); letter-spacing: 0.08em; color: var(--muted); }
.jp-meter { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.jp-meter i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #1a7dff, #5cc8ff); box-shadow: 0 0 16px rgba(92, 200, 255, 0.55); }

.jp-lag { gap: 18px; }
.jp-lag__row { display: grid; grid-template-columns: 116px minmax(0, 1fr) 74px; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.jp-lag__row i { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); }
.jp-lag__row i b { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #1a7dff, #5cc8ff); box-shadow: 0 0 14px rgba(92, 200, 255, 0.5); }
.jp-lag__row:first-child i::after { content: ""; position: absolute; left: -1px; top: -1px; width: 10px; height: 10px; border-radius: 50%; background: #5cc8ff; box-shadow: 0 0 10px rgba(92, 200, 255, 0.8); }
.jp-lag__row .stat { padding: 0; border: 0; font: 500 11px var(--font-mono); letter-spacing: 0.06em; color: var(--muted); text-align: right; white-space: nowrap; }
.jp-lag__row .stat b { margin-right: 4px; font: 500 28px/1 var(--font-display); letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }

.jp-takeaway { margin: 40px 0 0; max-width: 40ch; font: 400 clamp(22px, 2.3vw, 31px)/1.28 var(--font-display); letter-spacing: -0.012em; color: var(--fg); text-wrap: balance; }

/* ── trials today: the relay, then the model ── */
.jp-relay { margin-top: 56px; }
.jp-relay__stage { position: relative; height: 430px; }
.jp-relay__doc {
  position: absolute;
  left: 0;
  top: 50%;
  width: 22%;
  padding: 18px 16px;
  border-radius: 10px;
  background: #f4f3f0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  transform: translateY(-50%);
}
.jp-relay__doc small { display: block; font: 600 9px var(--font-mono); letter-spacing: 0.14em; color: #7a7973; }
.jp-relay__doc b { display: block; margin-top: 10px; font: 500 34px/1 var(--font-display); letter-spacing: -0.02em; color: #1b1b1e; }
.jp-relay__doc span { display: block; margin-top: 10px; font-size: 12px; line-height: 1.5; color: #55544f; }
.jp-relay__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.jp-relay__lines path { fill: none; vector-effect: non-scaling-stroke; stroke-width: 1; }
.jp-relay__lines--a path { stroke: rgba(255, 255, 255, 0.24); }
.jp-relay__lines--friction path { stroke: rgba(255, 69, 58, 0.8); stroke-width: 1.6; }
.jp-relay__lines--friction { filter: drop-shadow(0 0 4px rgba(255, 69, 58, 0.55)); }
.jp-relay__lines--b path { stroke: rgba(92, 200, 255, 0.85); stroke-width: 1.4; }
.jp-relay__lines--b { filter: drop-shadow(0 0 4px rgba(92, 200, 255, 0.6)); }
/* Lines are drawn by a wipe from the protocol outward. */
.jp-relay__lines[data-at] { clip-path: inset(0 0 0 0); transition: opacity 0.5s ease, clip-path 1.4s var(--ease-out); }
.jp-relay.is-armed .jp-relay__lines[data-at]:not(.is-on) { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); }
.jp-relay__readers, .jp-relay__systems { position: absolute; top: 0; bottom: 0; display: grid; margin: 0; padding: 0; list-style: none; }
.jp-relay__readers { left: 32%; width: 24%; grid-template-rows: repeat(7, minmax(0, 1fr)); }
.jp-relay__systems { left: 68%; width: 25%; grid-template-rows: repeat(8, minmax(0, 1fr)); }
.jp-relay__readers li, .jp-relay__systems li {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1119;
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: 0.05em;
  text-align: center;
  color: rgba(255, 255, 255, 0.76);
  transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.jp-relay__systems i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #5cc8ff; box-shadow: 0 0 8px rgba(92, 200, 255, 0.85); }
.jp-relay__systems li:has(i.is-on) { border-color: rgba(92, 200, 255, 0.45); color: #fff; box-shadow: 0 0 22px -10px rgba(92, 200, 255, 0.8); }
.jp-relay__model {
  position: absolute;
  left: 32%;
  top: 50%;
  width: 24%;
  padding: 22px 18px;
  border: 1px solid rgba(92, 200, 255, 0.5);
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 0%, rgba(92, 200, 255, 0.18), transparent 70%), #08111c;
  box-shadow: 0 0 0 1px rgba(92, 200, 255, 0.08), 0 0 70px -12px rgba(92, 200, 255, 0.5);
  text-align: center;
  transform: translateY(-50%);
}
.jp-relay.is-armed .jp-relay__model[data-at]:not(.is-on) { transform: translateY(-50%) scale(0.94); }
.jp-relay__model small { display: block; font: 600 9px var(--font-mono); letter-spacing: 0.18em; color: #9fd8ff; }
.jp-relay__model b { display: block; margin-top: 10px; font: 500 22px/1.15 var(--font-display); color: #fff; }
.jp-relay__model span { display: block; margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.jp-relay__model em { display: block; margin-top: 12px; font: 500 9px var(--font-mono); font-style: normal; letter-spacing: 0.1em; color: rgba(159, 216, 255, 0.8); }
.jp-relay__legend { position: relative; min-height: 70px; margin-top: 22px; }
.jp-relay__legend p { margin: 0; max-width: 84ch; font-size: 14px; line-height: 1.6; color: var(--muted); }
.jp-relay__legend b { font-weight: 600; color: var(--fg); }
.jp-relay.is-armed .jp-relay__legend p { position: absolute; inset: 0 0 auto 0; }
.jp-costs { margin-top: 56px; }
.jp-costs .stat__num { font-size: clamp(30px, 3.2vw, 40px); }

/* ── six moments: each step's fragment arrives row by row ── */
.jp-moments { margin-top: 24px; }
.jp-frag ul { margin: 0; padding: 0; list-style: none; }
.jp-frag li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.jp-frag code { font: 500 13px var(--font-mono); color: #e6f6ff; overflow-wrap: anywhere; }
.jp-frag li > span { margin-left: auto; font: 500 11px var(--font-mono); letter-spacing: 0.04em; text-align: right; color: var(--label); }
.jp-frag li > em { flex: none; padding: 3px 8px; border-radius: 4px; font: 600 9px var(--font-mono); font-style: normal; letter-spacing: 0.14em; }
.jp-frag em.is-ok { border: 1px solid rgba(110, 231, 183, 0.32); background: rgba(110, 231, 183, 0.08); color: var(--live); }
.jp-frag em.is-flag { border: 1px solid rgba(255, 69, 58, 0.38); background: rgba(255, 69, 58, 0.08); color: #ff8a82; }
.jp-frag li.is-flag { background: linear-gradient(90deg, rgba(255, 69, 58, 0.08), rgba(255, 69, 58, 0) 72%); }
.jp-frag__kv li { flex-wrap: nowrap; }
.jp-frag__kv li > span { flex: none; order: -1; width: 96px; margin-left: 0; font-size: 10px; letter-spacing: 0.14em; text-align: left; text-transform: uppercase; }
.jp-frag__diff li > i { flex: none; width: 14px; font: 600 15px var(--font-mono); font-style: normal; }
.jp-frag__diff .is-mod > i { color: #9fd8ff; }
.jp-frag__diff .is-add > i { color: var(--live); }
.jp-frag__diff .is-del > i { color: #ff8a82; }
.jp-frag__diff .is-del code { text-decoration: line-through; text-decoration-color: rgba(255, 138, 130, 0.6); }
.jp-frag__diff + .jp-frag__kv { margin-top: 14px; }
.jp-frag__totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.jp-frag__totals div { padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.jp-frag__totals dt { font: 500 9.5px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
.jp-frag__totals dd { margin: 8px 0 0; font: 500 36px/1 var(--font-display); letter-spacing: -0.02em; color: var(--fg); }
.jp-frag__foot { margin: 16px 0 0; font: 500 10.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #9fd8ff; }
.jp-frag__foot--ok { color: var(--live); }
.jp-frag__foot--flag { color: #ff8a82; }
.jp-frag__foot--flag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--flag); box-shadow: 0 0 9px rgba(255, 69, 58, 0.8); vertical-align: middle; }
.jp-frag--dev { border-color: rgba(255, 69, 58, 0.22); }
.jp-frag li, .jp-frag__foot, .jp-frag__totals {
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms + 140ms);
}
html.gs .scrolly__pane:not(.is-active) .jp-frag li,
html.gs .scrolly__pane:not(.is-active) .jp-frag__foot,
html.gs .scrolly__pane:not(.is-active) .jp-frag__totals { opacity: 0; transform: translateY(8px); transition-delay: 0s; }
.jp-scope { margin: 56px 0 0; max-width: 84ch; padding: 18px 22px; border-left: 2px solid rgba(92, 200, 255, 0.55); background: linear-gradient(90deg, rgba(92, 200, 255, 0.07), rgba(92, 200, 255, 0) 80%); font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ── trust: two proposals through the same gates ── */
.jp-gates { margin-top: 56px; }
.jp-gates__row { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.jp-gates__row::before { content: ""; position: absolute; left: 3%; right: 3%; top: 54px; height: 1px; background: linear-gradient(90deg, rgba(92, 200, 255, 0.05), rgba(92, 200, 255, 0.45), rgba(92, 200, 255, 0.05)); }
.jp-gate {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 300px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #0a1019;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.jp-gate > small { font: 500 10px var(--font-mono); letter-spacing: 0.16em; color: var(--label); }
.jp-gate > b { margin-top: 10px; font: 500 20px/1.2 var(--font-display); color: var(--fg); }
.jp-gate > span { margin-top: 6px; font: 500 9.5px/1.5 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(159, 216, 255, 0.85); }
.jp-gate:has(.jp-gate__slot.is-on) { border-color: rgba(92, 200, 255, 0.5); box-shadow: 0 0 44px -14px rgba(92, 200, 255, 0.7); }
.jp-gate:has(.jp-gate__slot.is-flag.is-on) { border-color: rgba(255, 69, 58, 0.5); box-shadow: 0 0 44px -14px rgba(255, 69, 58, 0.6); }
.jp-gate__slot {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 118px;
  padding: 10px 11px;
  border: 1px solid rgba(92, 200, 255, 0.4);
  border-radius: 8px;
  background: rgba(92, 200, 255, 0.08);
  font: 500 10px/1.5 var(--font-mono);
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.jp-gate__slot code { display: block; font: 500 12px/1.45 var(--font-mono); color: #fff; overflow-wrap: anywhere; }
.jp-gate__slot.is-ok { border-color: rgba(110, 231, 183, 0.38); background: rgba(110, 231, 183, 0.07); color: var(--live); }
.jp-gate__slot.is-flag { border-color: rgba(255, 69, 58, 0.45); background: rgba(255, 69, 58, 0.09); color: #ffb0aa; }
.jp-gate__exit { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, 0.14); font-size: 12px; line-height: 1.5; color: var(--muted); }
.jp-gate__exit b { display: block; margin-bottom: 4px; font: 600 9.5px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(236, 239, 244, 0.8); }
.jp-gate__exit.is-flag b { color: #ff8a82; }
.jp-gate__exit i { display: inline-block; margin-left: 4px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; font: 600 8.5px var(--font-mono); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }

.jp-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin: 64px 0 0; padding: 0; list-style: none; }
.jp-principles li { padding-top: 22px; border-top: 1px solid var(--line); }
.jp-principles small { display: block; font: 500 34px/1 var(--font-display); letter-spacing: -0.02em; background: linear-gradient(to bottom, #9fd8ff, #1a7dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jp-principles h3 { margin: 16px 0 0; font: 500 21px/1.2 var(--font-display); letter-spacing: -0.012em; color: var(--fg); text-wrap: balance; }
.jp-principles p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ── built for Japan: one model above the stack ── */
.jp-fan { margin-top: 56px; }
.jp-fan__top { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 16px; padding: 18px 20px; border: 1px solid rgba(92, 200, 255, 0.5); border-radius: 12px; background: radial-gradient(ellipse at 50% 0%, rgba(92, 200, 255, 0.18), transparent 70%), #08111c; box-shadow: 0 0 70px -16px rgba(92, 200, 255, 0.55); text-align: center; }
.jp-fan__top b { font: 500 24px var(--font-display); color: #fff; }
.jp-fan__top span { font: 500 10.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #9fd8ff; }
.jp-fan__bus { position: relative; display: block; height: 30px; margin: 0 5%; }
.jp-fan__bus::before { content: ""; position: absolute; left: 50%; top: 0; height: 15px; width: 1px; background: rgba(92, 200, 255, 0.7); }
.jp-fan__bus::after { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 1px; background: linear-gradient(90deg, rgba(92, 200, 255, 0.35), rgba(92, 200, 255, 0.8), rgba(92, 200, 255, 0.35)); }
.jp-fan__systems { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.jp-fan__systems li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1119;
  font: 500 11.5px/1.3 var(--font-mono);
  letter-spacing: 0.03em;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}
.jp-fan__systems li::before { content: ""; position: absolute; left: 50%; top: -16px; height: 15px; width: 1px; background: rgba(92, 200, 255, 0.55); }
.jp-fan__systems li.is-more { border-style: dashed; color: var(--label); }
.jp-fan__systems li.is-more::before { background: rgba(92, 200, 255, 0.25); }
.jp-fan__systems li.is-live { border-color: rgba(110, 231, 183, 0.45); background: linear-gradient(180deg, rgba(110, 231, 183, 0.09), rgba(110, 231, 183, 0.02)), #0b1119; color: #fff; }
.jp-fan__systems li.is-live::before { background: rgba(110, 231, 183, 0.75); }
.jp-fan__systems li small { display: block; margin-top: 5px; font: 600 8px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--live); }
.jp-fan__legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.jp-fan__legend span { display: inline-flex; align-items: center; gap: 10px; }
.jp-fan__legend i { width: 22px; height: 2px; border-radius: 2px; background: rgba(92, 200, 255, 0.7); }
.jp-fan__legend i.is-live { background: var(--live); }

.jp-heard { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 32px 56px; align-items: start; margin-top: 80px; }
.jp-heard__head h3 { margin: 0; font: 500 25px var(--font-display); letter-spacing: -0.015em; color: var(--fg); }
.jp-heard__head p { margin: 10px 0 0; max-width: 280px; font-size: 13.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.jp-heard__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.jp-heard__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label level" "bar bar" "note note"; gap: 10px 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.jp-heard__label { grid-area: label; font-size: 15px; font-weight: 600; color: var(--fg); }
.jp-heard__level { grid-area: level; font: 500 10.5px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: #9fd8ff; }
.jp-heard__bar { grid-area: bar; position: relative; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.jp-heard__fill { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #1a7dff, #5cc8ff); box-shadow: 0 0 12px rgba(92, 200, 255, 0.5); }
.jp-heard__list li > p { grid-area: note; margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.jp-heard__list li.is-low .jp-heard__fill { background: rgba(236, 239, 244, 0.38); box-shadow: none; }
.jp-heard__list li.is-low .jp-heard__level { color: var(--label); }
.jp-heard__list li.is-low > p { font-weight: 600; color: var(--fg); }

/* ── the regulatory frame: a dated line ── */
.jp-timeline { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 18px; margin: 56px 0 0; padding: 0; list-style: none; }
.jp-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 32px; height: 1px; background: linear-gradient(90deg, rgba(92, 200, 255, 0.12), rgba(92, 200, 255, 0.6)); }
.jp-timeline li { position: relative; min-width: 0; padding-top: 54px; }
.jp-timeline li::before { content: ""; position: absolute; left: 0; top: 28px; width: 9px; height: 9px; border: 1px solid rgba(92, 200, 255, 0.85); border-radius: 50%; background: var(--bg); box-shadow: 0 0 10px rgba(92, 200, 255, 0.5); }
.jp-timeline time { position: absolute; left: 0; top: 0; font: 500 11px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #9fd8ff; }
.jp-timeline b { display: block; font: 500 18px/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--fg); }
.jp-timeline span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.jp-timeline li.is-now::before { border-color: #5cc8ff; background: #5cc8ff; animation: jpPulse 2.4s ease-out infinite; }
@keyframes jpPulse { 0% { box-shadow: 0 0 0 0 rgba(92, 200, 255, 0.6); } 100% { box-shadow: 0 0 0 12px rgba(92, 200, 255, 0); } }
.jp-timeline + .table-wrap { margin-top: 64px; }

/* ── the pilot ── */
.jp-poc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 64px; align-items: start; margin-top: 56px; }
.jp-poc__give h3 { margin: 0 0 14px; font: 500 22px/1.2 var(--font-display); letter-spacing: -0.012em; color: var(--fg); }
.jp-poc__give ul + h3 { margin-top: 40px; }
.jp-poc__give h3 small { display: block; margin-bottom: 8px; font: 600 10px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--label); }
.jp-poc__give ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.jp-poc__give li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; line-height: 1.5; color: rgba(236, 239, 244, 0.86); }
.jp-poc__give li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 9px; height: 1px; background: #5cc8ff; }
.jp-criteria { margin: 0; }
.jp-criteria ul { margin: 0; padding: 0; list-style: none; }
.jp-criteria li { display: grid; grid-template-columns: 20px minmax(0, 1fr); grid-template-areas: "box title" "box sub"; column-gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.jp-criteria li:last-child { border-bottom: 0; }
.jp-criteria li > i {
  grid-area: box;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid rgba(110, 231, 183, 0.6);
  border-radius: 5px;
  background: rgba(110, 231, 183, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4 5 8.8 9.6 3.4' fill='none' stroke='%236ee7b7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.jp-criteria.is-armed li > i[data-at]:not(.is-on) { opacity: 1; transform: scale(0.82); border-color: var(--line-strong); background-color: transparent; background-size: 0; }
.jp-criteria li > i { transition: transform 0.4s var(--ease-out), border-color 0.3s ease, background-color 0.3s ease, background-size 0.3s var(--ease-out); }
.jp-criteria li > b { grid-area: title; font-size: 14.5px; font-weight: 600; color: var(--fg); }
.jp-criteria li > span { grid-area: sub; margin-top: 2px; font: 500 10.5px var(--font-mono); letter-spacing: 0.06em; color: var(--label); }
.jp-criteria li.is-joint > i { border: 1px dashed rgba(92, 200, 255, 0.7); background: none; }
.jp-criteria li.is-joint > span { color: #9fd8ff; }

.jp-sources { max-width: 92ch; margin: 64px 0 0; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.jp-sources h3 { margin: 0; font: 500 10.5px var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--label); }
.jp-sources ol { margin: 12px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.jp-sources p { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--faint); }

.jp-cta__nami { display: block; width: 132px; height: 132px; margin: 0 auto 22px; filter: drop-shadow(0 18px 40px rgba(26, 125, 255, 0.45)); animation: jpBob 4.2s ease-in-out infinite; }
@keyframes jpBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 1100px) {
  .jp-fan__bus { display: none; }
  .jp-fan__systems { position: relative; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; padding-left: 28px; }
  .jp-fan__systems::before { content: ""; position: absolute; left: 8px; top: -14px; bottom: 32px; width: 1px; background: rgba(92, 200, 255, 0.55); }
  .jp-fan__systems li { flex-direction: row; justify-content: space-between; min-height: 44px; padding: 10px 14px; text-align: left; }
  .jp-fan__systems li::before { left: -20px; top: 50%; width: 19px; height: 1px; }
  .jp-fan__systems li small { margin-top: 0; }
  .jp-timeline { grid-template-columns: 1fr; gap: 0; }
  .jp-timeline::before { left: 4px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, rgba(92, 200, 255, 0.12), rgba(92, 200, 255, 0.6)); }
  .jp-timeline li { padding: 0 0 26px 30px; }
  .jp-timeline li::before { top: 3px; }
  .jp-timeline time { position: static; display: block; margin-bottom: 6px; }
}
@media (max-width: 980px) {
  .jp-facts { grid-template-columns: 1fr; }
  .jp-fact__fig { min-height: 0; }
  .jp-gates__row { grid-template-columns: 1fr; gap: 10px; }
  .jp-gates__row::before { display: none; }
  /* One gate per row: its name on the left, its proposal on the right, every
     proposal sharing one cell so nothing shifts as they come and go. */
  .jp-gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto auto 1fr auto; column-gap: 16px; min-height: 0; }
  .jp-gate > small { grid-area: 1 / 1; }
  .jp-gate > b { grid-area: 2 / 1; }
  .jp-gate > span { grid-area: 3 / 1; align-self: start; }
  .jp-gate__slot { position: static; grid-area: 1 / 2 / 4 / 3; align-self: center; }
  .jp-gate__exit { grid-area: 4 / 1 / 5 / 3; margin-top: 14px; }
  .jp-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
  .jp-heard, .jp-poc { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .jp-relay__stage { height: 500px; }
  .jp-relay__doc { width: 21%; padding: 10px 8px; }
  .jp-relay__doc small { font-size: 7.5px; letter-spacing: 0.08em; }
  .jp-relay__doc b { font-size: 20px; }
  .jp-relay__doc span, .jp-relay__model span, .jp-relay__model em { display: none; }
  .jp-relay__readers li, .jp-relay__systems li { padding: 4px 5px; font-size: 9.5px; letter-spacing: 0.01em; gap: 4px; }
  .jp-relay__model { padding: 14px 8px; }
  .jp-relay__model small { font-size: 7.5px; letter-spacing: 0.1em; }
  .jp-relay__model b { font-size: 15px; }
  .jp-relay__systems i { width: 5px; height: 5px; }
  .jp-relay__legend { min-height: 118px; }
  .jp-lag__row { grid-template-columns: 96px minmax(0, 1fr) 66px; gap: 10px; }
  .jp-fact__big b { font-size: 58px; }
  .jp-principles { grid-template-columns: 1fr; }
  .jp-frag__kv li > span { width: 78px; }
  .jp-cta__nami { width: 104px; height: 104px; }
}
@media (max-width: 900px) {
  html.gs .scrolly__pane:not(.is-active) .jp-frag li,
  html.gs .scrolly__pane:not(.is-active) .jp-frag__foot,
  html.gs .scrolly__pane:not(.is-active) .jp-frag__totals { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jp-cta__nami, .jp-timeline li.is-now::before { animation: none; }
  .jp-meter i, .jp-lag__row b, .jp-heard__fill, .jp-relay__lines[data-at], .jp-frag li, .jp-frag__foot, .jp-frag__totals, .jp-criteria li > i { transition: none; }
}
html[data-motion="paused"] .scrolly__pane .jp-frag li,
html[data-motion="paused"] .scrolly__pane .jp-frag__foot,
html[data-motion="paused"] .scrolly__pane .jp-frag__totals { opacity: 1; transform: none; transition: none; }

/* ══ The page's own world: the ringi-sho, the proposal circulated for
   approval. A document with seal boxes stamped in vermilion one approver at
   a time, one box left for the partner; section labels set vertically. ══ */
.page-ringi { --seal: #e2483c; --ringi-line: rgba(255, 255, 255, 0.16); }
.ringi-hero { padding: 136px 0 88px; }
.ringi-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.ringi-hero__for { margin: 0 0 18px; font: 500 11px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #ff9b91; }
.ringi { margin: 0; padding: 26px 28px 22px; border: 1px solid var(--ringi-line); border-radius: 4px; background: #0a0f17; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9); animation: heroUp 0.9s var(--ease-out) 0.15s both; }
.ringi__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 14px; border-bottom: 2px solid rgba(255, 255, 255, 0.7); }
.ringi__head b { font: 500 28px var(--font-display); color: #fff; }
.ringi__head span { font: 500 10px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.ringi__body { display: grid; margin: 0; }
.ringi__body div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ringi-line); }
.ringi__body dt { font: 600 10px var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.ringi__body dd { margin: 0; font-size: 14.5px; line-height: 1.45; color: #fff; }
.ringi__seals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 20px 0 0; padding: 0; list-style: none; border: 1px solid var(--ringi-line); }
.ringi__seals li { display: grid; border-left: 1px solid var(--ringi-line); }
.ringi__seals li:first-child { border-left: 0; }
.ringi__seals small { padding: 6px 4px; border-bottom: 1px solid var(--ringi-line); font: 600 9.5px var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; color: var(--label); }
.ringi__box { display: grid; place-items: center; height: 84px; }
.ringi__seal { display: grid; place-items: center; width: 50px; height: 50px; border: 2px solid var(--seal); border-radius: 50%; font: 600 15px var(--font-display); font-style: normal; color: var(--seal); transform: rotate(-8deg); box-shadow: inset 0 0 0 3px rgba(226, 72, 60, 0.15); mix-blend-mode: screen; }
.ringi .ringi__seal[data-at] { transition: transform 0.35s cubic-bezier(0.2, 1.25, 0.4, 1), opacity 0.2s ease; }
.ringi.is-armed .ringi__seal[data-at]:not(.is-on) { opacity: 0; transform: rotate(-8deg) scale(1.6); }
.ringi__seals .is-open .ringi__box { margin: 10px; border: 1px dashed rgba(226, 72, 60, 0.5); border-radius: 50%; width: 50px; height: 50px; justify-self: center; }
.ringi__seals .is-open small { color: #ff9b91; }
.ringi__foot { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* section labels set vertically, beside the heading */
.page-ringi .section-head { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 22px; max-width: 820px; }
.page-ringi .section-head > * { grid-column: 2; }
.page-ringi .section-head .kicker { grid-column: 1; grid-row: 1 / span 3; align-self: start; margin: 0; writing-mode: vertical-rl; color: #ff9b91; letter-spacing: 0.24em; }

@media (max-width: 1100px) { .ringi-hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ringi-hero { padding-top: 112px; }
  .ringi { padding: 18px 16px; }
  .ringi__body div { grid-template-columns: 1fr; gap: 4px; }
  .ringi__seals small { font-size: 8px; letter-spacing: 0.04em; }
  .ringi__seal, .ringi__seals .is-open .ringi__box { width: 40px; height: 40px; font-size: 13px; }
  .ringi__box { height: 66px; }
  .page-ringi .section-head { grid-template-columns: 1fr; }
  .page-ringi .section-head .kicker { grid-row: auto; writing-mode: horizontal-tb; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ringi .ringi__seal[data-at] { transition: opacity 0.2s ease; } }
