/* ==========================================================================
   BasketGo -- the home page journey
   The instrument, entered. Eight glass strata stand on the zero plane of a
   dark calibrated stage; scrolling walks the camera into them until they lie
   flat as the exact 2D chart. Same palette, same Plex pair, same 2px corners
   as the rest of the site -- this is the lab with the lights turned on, not a
   second brand.

   Default (no script, or the script chose "static") is plain document flow.
   .jr--live turns on the pinned stage; .jr--nogl is the pinned stage without
   WebGL, where the chart card itself does the tilting.
   ========================================================================== */

.jr {
  --nav-h: 69px;
  --stage-h: calc(100vh - var(--nav-h));
  --chrome: 0;          /* 0..1  chart panel and its controls */
  --tilt: 1;            /* 1..0  card tilt for the no-WebGL path */
  --glass: rgba(9, 11, 14, 0.88);
  --hair: rgba(255, 255, 255, 0.075);
  --up: #3fb950;
  position: relative;
  background: var(--ink-900);
}
@supports (height: 100svh) { .jr { --stage-h: calc(100svh - var(--nav-h)); } }

.jr section { padding-block: 0; }
.jr .sr-only, .sc .sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- copy ---------------------------------------------------------------- */

.jr-scene--hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }
.jr-copy { max-width: 35rem; }
.jr-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin: 0 0 1.15rem; color: var(--amber);
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0;
}
.jr-eyebrow::before { content: ''; width: 30px; height: 1px; background: currentColor; opacity: 0.75; }
.jr-copy h1 {
  font-size: clamp(1.7rem, 7.6vw, 3.25rem);
  line-height: 1.17; margin-bottom: 1.25rem; white-space: nowrap;
}
.jr-copy h1 .lit { color: var(--amber); }
.jr-copy .hero-lede { margin-bottom: 1.7rem; max-width: 30rem; }
.jr-copy .hero-cta { margin-bottom: 1.5rem; }
.jr-copy .hero-sub { color: var(--faint); font-size: 0.86rem; line-height: 1.8; max-width: 33rem; }
.jr-copy .hero-sub a { color: var(--dim); border-bottom: 1px solid var(--line-hi); }
.jr-copy .hero-sub a:hover { color: var(--amber); border-color: var(--amber); }

.jr-skip {
  font: inherit; font-size: 0.9rem; color: var(--dim); background: none; border: 0;
  padding: 0.78rem 0.2rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid transparent;
}
.jr-skip:hover, .jr-skip:focus-visible { color: var(--text); border-bottom-color: var(--amber); }
.jr-skip svg { width: 14px; height: 14px; }

/* the live public reading: real, delayed, and labelled as such */
.jr-now {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 1.1rem;
  padding: 0.7rem 0.95rem; margin-bottom: 1.15rem;
  border: 1px solid var(--line-hi); border-inline-start: 2px solid var(--amber);
  background: linear-gradient(90deg, rgba(255, 176, 0, 0.06), rgba(6, 7, 9, 0.86) 40%);
  border-radius: 2px; font-size: 0.88rem; max-width: 33rem;
}
.jr-now-k { color: var(--amber); font-weight: 500; }
.jr-now-v { display: inline-flex; align-items: center; gap: 0.38rem; color: var(--dim); white-space: nowrap; }
.jr-now-v i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.jr-now-v b { color: var(--text); font-weight: 600; }
.jr-now .up { color: var(--up); }
.jr-now .dn { color: var(--limit); }
.jr-now-meta { flex-basis: 100%; color: var(--faint); font-size: 0.78rem; }
.jr-now.is-stale { border-inline-start-color: var(--limit); }
.jr-now.is-stale .jr-now-meta, .jr-now.is-off .jr-now-meta { color: var(--limit); }

.jr-step {
  max-width: 23rem; margin-bottom: 2rem; padding: 1.25rem 1.35rem 1.3rem;
  border: 1px solid var(--hair); border-radius: 3px;
  background: var(--glass);
  box-shadow: 0 30px 60px -34px #000, inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.jr-step .jr-n { font-family: var(--mono); font-size: 0.72rem; color: var(--amber); direction: ltr; unicode-bidi: isolate; display: block; margin-bottom: 0.55rem; }
.jr-step h2 { font-size: 1.28rem; margin-bottom: 0.5rem; }
.jr-step p { color: var(--dim); font-size: 0.95rem; }

/* --- stage: hidden until the script has something true to put on it -------- */

.jr-stage { display: none; position: relative; }
.jr--static .jr-stage, .jr--live .jr-stage { display: block; }

.jr-plate, .jr-stage::before, .jr-stage::after { position: absolute; inset: 0; pointer-events: none; }
/* The lit layers arrive with the data (.is-ready), not with the first paint:
   measured, two full-stage gradients cost the headline ~0.3 s on a slow CPU. */
.is-ready .jr-stage::before {
  content: ''; z-index: 0;
  background:
    radial-gradient(110% 80% at 18% 0%, rgba(126, 156, 198, 0.13), transparent 62%),
    radial-gradient(70% 55% at 92% 100%, rgba(255, 176, 0, 0.05), transparent 70%),
    linear-gradient(180deg, #0B0D11 0%, #08090B 70%);
}
/* A canvas, not a background image: it is atmosphere, and painted this way it
   can never be mistaken for the page's largest CONTENT paint. */
.jr-plate {
  z-index: 0; opacity: 0; width: 100%; height: 100%;
  transform: scale(1.02);
  transform-origin: 28% 58%;
  transition: opacity 1.4s ease;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.has-plate .jr-plate { opacity: 0.58; transition: none; }
.is-ready .jr-stage::after {
  content: ''; z-index: 0;
  background:
    linear-gradient(270deg, rgba(8, 9, 11, 0.9) 0%, rgba(8, 9, 11, 0.72) 30%, rgba(8, 9, 11, 0) 52%),
    radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(4, 5, 7, 0.72) 100%);
  opacity: calc(1 - var(--chrome) * 0.5);
}

.jr-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; opacity: 0; }

/* The chart panel is two boxes on the same rectangle: the glass sits UNDER the
   canvas so the strata are never dimmed by it, the controls sit over it. */
.jr-panel, .jr-chart {
  position: absolute; z-index: 1;
  inset-inline: max(var(--gut), calc((100% - 1180px) / 2));
  top: clamp(0.7rem, 3vh, 2rem); bottom: clamp(2.6rem, 7vh, 4rem);
}
.jr-panel {
  opacity: var(--chrome);
  border: 1px solid var(--hair); border-radius: 5px;
  background: linear-gradient(180deg, rgba(17, 20, 26, 0.86) 0%, rgba(9, 11, 14, 0.9) 100%);
  box-shadow: 0 46px 90px -46px #000, 0 0 120px -70px rgba(120, 150, 200, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.jr-chart { z-index: 3; display: flex; flex-direction: column; padding: clamp(0.85rem, 1.6vw, 1.35rem); pointer-events: none; }
.is-chart .jr-chart { pointer-events: auto; }
.jr-fade { opacity: var(--chrome); }

.jr-chart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.8rem 1.5rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.jr-chart-head h2 { font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.45rem); margin-bottom: 0.3rem; }
.jr-chart-sub { color: var(--faint); font-size: 0.8rem; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; }
.jr-badge {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.12rem 0.5rem;
  border: 1px solid var(--amber-2); border-radius: 2px; color: var(--amber);
  background: var(--amber-8); font-size: 0.74rem; white-space: nowrap;
}
.jr-badge svg { width: 11px; height: 11px; }

.jr-seg { display: inline-flex; border: 1px solid var(--line-hi); border-radius: 3px; overflow: hidden; flex: none; }
.jr-seg button {
  font: inherit; font-size: 0.84rem; color: var(--dim); background: transparent; border: 0;
  padding: 0.5rem 0.85rem; cursor: pointer; min-height: 40px; white-space: nowrap;
  border-inline-start: 1px solid var(--line); transition: color .16s, background .16s;
}
.jr-seg button:first-child { border-inline-start: 0; }
.jr-seg button:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.jr-seg button[aria-pressed="true"] { color: var(--amber); background: var(--amber-8); font-weight: 600; }
.jr-seg button:disabled { color: var(--faint); opacity: 0.5; cursor: not-allowed; }

.jr-plot { position: relative; flex: 1 1 auto; min-height: 0; direction: ltr; touch-action: pan-y; outline: 0; border-radius: 2px; }
.is-chart .jr-plot:focus-visible, .jr--static .jr-plot:focus-visible, .cmp-plot:focus-visible { box-shadow: 0 0 0 1px var(--amber); }
.jr-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.jr-g-bands, .jr-g-grid { opacity: var(--chrome); transition: opacity .18s; }
.jr-t-sess { fill: #6B7684; font-size: 10px; font-family: var(--sans); }
.jr-t-axis { fill: #8794A1; font-size: 11px; font-family: var(--mono); }
.jr-l-grid { stroke: #1B2028; stroke-width: 1; }
.jr-l-zero { stroke: var(--amber); stroke-width: 1.1; opacity: 0.85; }
.jr-l-cross { stroke: #93A0AD; stroke-width: 1; opacity: 0.5; }
.jr-line { stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; transition: opacity .22s, stroke-width .22s; }
.jr-line.is-dim { opacity: 0.14; }
.jr-line.is-focus { stroke-width: 2.7; }

.jr-hud { position: absolute; inset: 0; pointer-events: none; }
.jr-tag {
  position: absolute; left: 0; top: 0; opacity: 0;
  display: inline-flex; align-items: center; gap: 0.3rem;
  font: 500 0.7rem/1 var(--mono); color: var(--text);
  background: rgba(8, 9, 11, 0.62); border: 0; border-radius: 2px;
  padding: 0.22rem 0.36rem; cursor: pointer; pointer-events: auto; white-space: nowrap;
  will-change: transform;
}
.jr-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.jr-tag b { font-weight: 600; color: var(--c); }
.jr-tag span { color: var(--dim); }
.jr-tag.is-focus { box-shadow: inset 0 0 0 1px var(--c); }
.jr-tag.is-focus span { color: var(--text); }
@media (max-width: 519px) { .jr-tag span { display: none; } }

.jr-tip {
  position: absolute; top: 22px; z-index: 4; pointer-events: none; min-width: 118px;
  background: rgba(10, 12, 16, 0.95); border: 1px solid var(--line-hi); border-radius: 3px;
  padding: 0.5rem 0.62rem; font-size: 0.74rem; box-shadow: 0 18px 40px -18px #000;
}
.jr-tip b { display: block; text-align: center; color: var(--dim); margin-bottom: 0.3rem; font-weight: 500; }
.jr-tip span { display: flex; align-items: center; gap: 0.42rem; color: var(--dim); line-height: 1.6; }
.jr-tip span.on { color: var(--text); font-weight: 600; }
.jr-tip span i { width: 10px; height: 3px; border-radius: 2px; flex: none; }
.jr-tip span em { margin-inline-start: auto; padding-inline-start: 0.8rem; font-style: normal; color: var(--text); }

.jr-state { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 0.9rem; flex-direction: column; color: var(--dim); font-size: 0.92rem; direction: rtl; }
.jr-state.is-loading, .jr-state.is-error { display: flex; }
.jr-state.is-error { pointer-events: auto; color: var(--limit); }
.is-failed .jr-seg, .is-failed .jr-chart-foot, .is-failed .jr-chart-sub, .is-failed .jr-ui { display: none; }
.is-failed.jr--static .jr-chart { height: 15rem; }
.jr-skel { width: min(62%, 420px); height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--amber), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: jr-scan 1.3s linear infinite; }
@keyframes jr-scan { from { background-position: -60% 0; } to { background-position: 160% 0; } }

.jr-chart-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem 1.5rem; flex-wrap: wrap; margin-top: 0.7rem; }
.jr-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; direction: ltr; }
.jr-leg {
  font: 500 0.76rem/1 var(--mono); color: var(--dim); background: transparent;
  border: 1px solid var(--line); border-radius: 2px; padding: 0.5rem 0.6rem; min-height: 36px;
  display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; transition: color .16s, border-color .16s, background .16s;
}
.jr-leg i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.jr-leg:hover { color: var(--text); border-color: var(--line-hi); }
.jr-leg[aria-pressed="true"] { color: var(--text); border-color: var(--c); background: rgba(255, 255, 255, 0.04); }
.jr-src { margin: 0; color: var(--faint); font-size: 0.8rem; }
.jr-src a { color: var(--amber); border-bottom: 1px solid var(--amber-2); white-space: nowrap; }

/* the archived-day chip: what the reader is looking at, from the first frame */
.jr-chip {
  position: absolute; z-index: 3; top: 1.05rem; inset-inline-end: var(--gut);
  display: inline-flex; flex-direction: column; gap: 0.2rem; margin: 0;
  padding: 0.5rem 0.75rem; border: 1px solid var(--hair); border-radius: 2px;
  background: rgba(10, 12, 16, 0.6); font-size: 0.8rem; color: var(--text);
  pointer-events: none;
}
.jr-chip b { font-weight: 500; color: var(--text); font-size: 0.8rem; margin-inline-start: 0.25rem; }
.jr-chip-k { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--amber); font-size: 0.76rem; }
.jr-chip-k svg { width: 12px; height: 12px; }
.jr-chip small { color: var(--dim); font-size: 0.72rem; }
.jr-chip-hint { display: none; margin-top: 0.25rem; padding-top: 0.3rem; border-top: 1px solid var(--hair); color: var(--probe) !important; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .jr--live:not(.jr--nogl) .jr-chip-hint { display: block; } }
.jr-time {
  position: absolute; left: 0; top: 0; z-index: 3; opacity: 0; pointer-events: none; white-space: nowrap;
  font-size: 0.72rem; font-weight: 600; color: #0B0D11; background: #D6E2F2; border-radius: 2px; padding: 0.18rem 0.4rem;
}

.jr-ui { position: absolute; z-index: 4; left: 5.2rem; right: var(--gut); bottom: 0.7rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; pointer-events: none; }
.jr-motion {
  pointer-events: auto; font: inherit; font-size: 0.76rem; color: var(--faint); background: rgba(8, 9, 11, 0.5);
  border: 1px solid var(--line); border-radius: 2px; padding: 0.4rem 0.6rem; min-height: 32px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.4rem; order: 2;
}
.jr-motion:hover, .jr-motion:focus-visible { color: var(--text); border-color: var(--line-hi); }
.jr-motion svg { width: 12px; height: 12px; }
.jr-motion[aria-pressed="true"] { color: var(--amber); border-color: var(--amber-2); }
.jr-cue { color: var(--dim); font-size: 0.8rem; display: inline-flex; align-items: center; gap: 0.55rem; }
.jr-cue i { width: 1px; height: 26px; background: linear-gradient(180deg, var(--amber), transparent); animation: jr-cue 1.9s ease-in-out infinite; transform-origin: top; }
@keyframes jr-cue { 0%, 100% { transform: scaleY(0.35); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }

/* --- static: no pinning, no travel ------------------------------------------ */

.jr--static .jr-stage { padding: 0 0 clamp(2rem, 5vw, 3.5rem); }
.jr--static .jr-stage::before, .jr--static .jr-stage::after, .jr--static .jr-plate,
.jr--static .jr-gl, .jr--static .jr-chip, .jr--static .jr-cue, .jr--static .jr-panel { display: none; }
.jr--static .jr-chart {
  position: relative; inset: auto; width: min(1180px, 100% - var(--gut) * 2); margin-inline: auto;
  height: clamp(440px, 74vh, 660px); pointer-events: auto;
  border: 1px solid var(--hair); border-radius: 5px;
  background: linear-gradient(180deg, rgba(17, 20, 26, 0.9), rgba(9, 11, 14, 0.94));
}
.jr--static .jr-ui { position: relative; inset: auto; width: min(1180px, 100% - var(--gut) * 2); margin: 0.7rem auto 0; }
.jr--static .jr-steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); padding-bottom: 1.6rem; }
.jr--static .jr-step { max-width: none; margin: 0; box-shadow: none; }
/* wide screens: the copy and the chart stand side by side, nothing moves */
@media (min-width: 1100px) {
  .jr--static {
    display: grid; align-items: start; column-gap: clamp(1.5rem, 3vw, 3rem);
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    width: min(1180px, 100% - var(--gut) * 2); margin-inline: auto;
    padding-block: clamp(2.5rem, 5vw, 4rem);
  }
  .jr--static .wrap { width: 100%; }
  .jr--static .jr-scene--hero { padding-block: 0 1.6rem; }
  .jr--static .jr-steps { grid-template-columns: 1fr; padding-bottom: 0; }
  .jr--static .jr-stage { position: sticky; top: calc(var(--nav-h) + 1rem); padding: 0; }
  .jr--static .jr-chart { width: 100%; height: clamp(460px, calc(100vh - var(--nav-h) - 5rem), 640px); }
  .jr--static .jr-ui { width: 100%; }
}

/* --- live: one pinned stage, the copy scrolls over it ------------------------ */

.jr--live { display: grid; }
.jr--live > .jr-scenes, .jr--live > .jr-stage { grid-area: 1 / 1; min-width: 0; }
.jr--live > .jr-stage {
  position: sticky; top: var(--nav-h); height: var(--stage-h); align-self: start;
  overflow: hidden; z-index: 1; isolation: isolate;
}
.jr--live > .jr-scenes { position: relative; z-index: 2; pointer-events: none; }
.jr--live .jr-copy, .jr--live .jr-step { pointer-events: auto; }
.jr--live .jr-scene--hero { min-height: var(--stage-h); display: flex; align-items: flex-start; padding-block: clamp(1.6rem, calc((var(--stage-h) - 36rem) / 2), 9rem) 3.4rem; }
.jr--live .jr-scene--dive { height: calc(var(--stage-h) * 2.4); }
.jr--live .jr-steps { padding-top: calc(var(--stage-h) * 0.1); }
.jr--live .jr-step { margin-bottom: calc(var(--stage-h) * 0.3); }

/* without WebGL the chart is there from the first frame, and it is the card
   that turns to face the reader */
.jr--nogl .jr-panel { display: none; }
.jr--nogl .jr-chart {
  border: 1px solid var(--hair); border-radius: 5px;
  background: linear-gradient(180deg, rgba(17, 20, 26, 0.9), rgba(9, 11, 14, 0.94));
  box-shadow: 0 46px 90px -46px #000;
  transform-origin: 0% 50%;
  transform: perspective(1500px) translateX(calc(var(--tilt) * -3%)) scale(calc(1 - var(--tilt) * 0.46)) rotateY(calc(var(--tilt) * 19deg)) rotateX(calc(var(--tilt) * 4deg));
}
.jr--nogl { --chrome: 1; }
.jr--nogl .jr-fade, .jr--nogl .jr-g-bands, .jr--nogl .jr-g-grid { opacity: 1; }
.jr--static .jr-motion, .jr-motion { transition: opacity .2s; }

@media (max-width: 899px) {
  .jr--live .jr-scene--hero { align-items: flex-start; padding-block: calc(var(--stage-h) * 0.43) 2.5rem; }
  .jr--live .jr-step { max-width: none; margin-inline: 0; }
  .jr--live .jr-steps { padding-top: calc(var(--stage-h) * 0.22); }
  .jr--live .jr-step { margin-bottom: calc(var(--stage-h) * 0.26); }
  .jr-copy h1 { margin-bottom: 0.9rem; }
  .jr-copy .hero-lede { margin-bottom: 1.2rem; font-size: 1rem; }
  .jr-chip { top: 0.5rem; inset-inline-end: 0.6rem; padding: 0.36rem 0.55rem; gap: 0.1rem; }
  .jr-chip b { font-size: 0.74rem; }
  .jr-chip small { font-size: 0.68rem; }

  /* On a phone the strata get a window of their own at the top of the stage,
     and the copy scrolls UNDER it instead of across it. --win is the bottom
     edge of that window; it opens fully as the chart forms. */
  .jr--live > .jr-stage { z-index: 3; pointer-events: none; --win: 42%; }
  .jr--live > .jr-scenes { z-index: 2; pointer-events: auto; }
  .jr--live.is-ready > .jr-stage::before {
    background: linear-gradient(180deg, #0B0D11 0, #08090B calc(var(--win) - 9%), rgba(8, 9, 11, 0.7) calc(var(--win) - 2%), rgba(8, 9, 11, 0) calc(var(--win) + 5%));
  }
  .jr--live > .jr-stage::after { display: none; }
  .jr--live .jr-plate { -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--win) - 14%), transparent calc(var(--win) + 3%)); mask-image: linear-gradient(180deg, #000 calc(var(--win) - 14%), transparent calc(var(--win) + 3%)); }
  .jr--live .jr-motion { pointer-events: auto; }
  /* between the opening and the chart the corner belongs to the copy */
  .jr--live .is-mid .jr-motion { opacity: 0; pointer-events: none; }
  .jr-chart-head { margin-bottom: 0.45rem; }
  .jr-chart-sub { font-size: 0.72rem; }
  .jr-seg { width: 100%; }
  .jr-seg button { flex: 1 1 0; padding-inline: 0.3rem; font-size: 0.8rem; }
  .jr-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .jr-leg { justify-content: center; padding-inline: 0.2rem; }
  .jr-src { font-size: 0.74rem; }
  .jr-cue { display: none; }
  .jr-panel, .jr-chart { top: 0.5rem; bottom: 4.6rem; inset-inline: 0.6rem; }
  .jr-ui { bottom: 1.5rem; }
}

/* short laptop screens: keep the whole opening inside one stage */
@media (min-width: 900px) and (max-height: 780px) {
  .jr--live .jr-scene--hero { padding-block: clamp(0.8rem, calc((var(--stage-h) - 31rem) / 2), 4rem) 2.4rem; }
  .jr--live .jr-copy h1 { font-size: clamp(1.9rem, 1rem + 2vw, 2.7rem); margin-bottom: 0.8rem; }
  .jr--live .jr-eyebrow { margin-bottom: 0.7rem; }
  .jr--live .jr-copy .hero-lede { margin-bottom: 1.1rem; font-size: 1rem; }
  .jr--live .jr-copy .hero-cta { margin-bottom: 1rem; }
  .jr--live .jr-now { margin-bottom: 0.8rem; padding-block: 0.5rem; }
  .jr-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .jr-cue i, .jr-skel { animation: none; }
  .jr-line, .jr-seg button, .jr-leg { transition: none; }
}

/* --- the section after the journey: the public ranking, in full -------------- */
.jr-live-now .head { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.jr-live-now .pub-widget { max-width: 46rem; }

/* ==========================================================================
   The scenes after the journey: ranking, compare, and the way out to the
   product. Same instrument language; ordinary sections, nothing pinned.
   ========================================================================== */
.sc { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sc-grid { display: grid; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.sc-grid--flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.sc-grid--flip .sc-copy { order: 2; }
@media (max-width: 999px) { .sc-grid, .sc-grid--flip { grid-template-columns: minmax(0, 1fr); } .sc-grid--flip .sc-copy { order: 0; } }
.sc-copy h2 { font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.45rem); margin-bottom: 1rem; }
.sc-copy p { color: var(--dim); max-width: 30rem; }
.sc-note { font-size: 0.86rem; color: var(--faint) !important; border-inline-start: 2px solid var(--line-hi); padding-inline-start: 0.8rem; }

.sc-card {
  min-width: 0; padding: clamp(0.9rem, 1.6vw, 1.3rem);
  border: 1px solid rgba(255, 255, 255, 0.075); border-radius: 5px;
  background: linear-gradient(180deg, rgba(17, 20, 26, 0.9) 0%, rgba(9, 11, 14, 0.94) 100%);
  box-shadow: 0 40px 80px -46px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sc-card[hidden] { display: none; }
.sc-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem 1rem; margin-bottom: 0.9rem; }
.sc-card-head .jr-badge { white-space: normal; min-width: 0; }
.sc-card-head--wrap { flex-wrap: wrap; }
.sc-card .jr-badge { font-size: 0.72rem; }
.sc-clock { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 600; color: var(--text); line-height: 1; letter-spacing: 0.01em; }
.sc-foot { margin: 0.8rem 0 0; color: var(--faint); font-size: 0.78rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; }

/* ranking: rows keep their identity and slide to their new place */
.rk-list { --rk-h: 2.5rem; list-style: none; margin: 0; padding: 0; position: relative; height: calc(var(--rk-h) * 8); direction: ltr; }
.rk-list li { position: absolute; inset-inline: 0; top: 0; height: var(--rk-h); transition: transform .38s cubic-bezier(.22, .61, .36, 1); }
.rk-list button {
  width: 100%; height: calc(100% - 4px); display: grid; align-items: center; gap: 0.6rem;
  grid-template-columns: 1.3rem 3.6rem minmax(0, 1fr) 3.6rem;
  font: inherit; color: var(--text); background: transparent; border: 0; border-radius: 2px; padding: 0 0.4rem; cursor: pointer;
  transition: opacity .2s, background .16s;
}
.rk-list button:hover { background: rgba(255, 255, 255, 0.035); }
.rk-list button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.05); box-shadow: inset 2px 0 0 var(--c); }
.rk-list button.is-dim { opacity: 0.32; }
.rk-list button.is-void { opacity: 0.3; }
.rk-n { color: var(--faint); font-size: 0.74rem; text-align: center; }
.rk-c { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.86rem; font-weight: 600; }
.rk-c i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.rk-t { position: relative; height: 9px; background: #12161C; border-radius: 2px; }
.rk-t::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--amber); opacity: 0.7; }
.rk-t em { position: absolute; top: 0; bottom: 0; width: 0; border-radius: 1px; transition: width .3s cubic-bezier(.22, .61, .36, 1); }
.rk-t em.up { left: 50%; background: var(--c); }
.rk-t em.dn { right: 50%; background: var(--c); opacity: 0.62; }
.rk-v { text-align: end; font-size: 0.84rem; color: var(--dim); }
.sc-card:not(.is-in) .rk-t em { width: 0 !important; }
.rk-ctl { display: flex; align-items: flex-start; gap: 0.9rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); direction: ltr; }
.rk-play {
  flex: none; font: inherit; font-size: 0.82rem; color: var(--text); background: transparent; cursor: pointer; direction: rtl;
  border: 1px solid var(--line-hi); border-radius: 2px; padding: 0.45rem 0.7rem; min-height: 40px; display: inline-flex; align-items: center; gap: 0.4rem;
}
.rk-play svg { width: 12px; height: 12px; }
.rk-play:hover { border-color: var(--amber); }
.rk-play[aria-pressed="true"] { color: var(--amber); border-color: var(--amber-2); background: var(--amber-8); }
.rk-slide { flex: 1 1 auto; min-width: 0; }
.rk-slide input { width: 100%; margin: 0; height: 40px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; direction: ltr; }
.rk-slide input::-webkit-slider-runnable-track { height: 3px; background: var(--line-hi); border-radius: 2px; }
.rk-slide input::-moz-range-track { height: 3px; background: var(--line-hi); border-radius: 2px; }
.rk-slide input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 22px; margin-top: -10px; border-radius: 2px; background: var(--amber); border: 0; }
.rk-slide input::-moz-range-thumb { width: 16px; height: 22px; border-radius: 2px; background: var(--amber); border: 0; }
.rk-slide input:focus-visible { outline: 1px solid var(--amber); outline-offset: 2px; }
.rk-ends { display: flex; justify-content: space-between; color: var(--faint); font-size: 0.68rem; margin-top: -0.2rem; }
@media (prefers-reduced-motion: reduce) { .rk-list li, .rk-t em { transition: none; } .rk-play { display: none; } }

/* compare */
.cmp-pick { display: flex; align-items: center; gap: 0.45rem; direction: ltr; }
.cmp-pick select {
  font-size: 0.95rem; font-weight: 600; color: var(--text); background: #0C0E12; border: 1px solid var(--line-hi); border-radius: 2px;
  padding: 0.45rem 0.6rem; min-height: 40px; cursor: pointer;
}
.cmp-pick select:focus-visible, .cmp-swap:focus-visible { outline: 1px solid var(--amber); outline-offset: 1px; }
.cmp-swap { width: 40px; height: 40px; display: grid; place-items: center; color: var(--dim); background: transparent; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
.cmp-swap:hover { color: var(--amber); border-color: var(--amber-2); }
.cmp-swap svg { width: 16px; height: 16px; }
.cmp-pair { color: var(--faint); font-size: 0.74rem; margin-inline-start: 0.3rem; }
.cmp-say { margin: 0 0 0.6rem; color: var(--text); font-size: 0.95rem; min-height: 1.75em; }
.cmp-plot { height: clamp(220px, 34vh, 320px); flex: none; }
.cmp-plot .jr-line { stroke-width: 2.1; }
.cmp-area { fill: rgba(190, 205, 225, 0.12); stroke: none; }
.cmp-gap { stroke: #D6E2F2; stroke-width: 2; opacity: 0.55; }
.cmp-end { font: 600 11px var(--mono); }
.sc-card:not(.is-in) .cmp-plot .jr-line, .sc-card:not(.is-in) .cmp-area { opacity: 0; }
.cmp-plot .jr-line, .cmp-area { transition: opacity .6s ease .1s; }
.cmp-table-wrap { overflow-x: auto; margin-top: 0.7rem; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.cmp-table th, .cmp-table td { padding: 0.5rem 0.55rem; text-align: start; border-top: 1px solid var(--line); white-space: nowrap; }
.cmp-table thead th { color: var(--faint); font-weight: 400; font-size: 0.74rem; border-top: 0; }
.cmp-table td { direction: ltr; text-align: end; }
.cmp-table td span { color: var(--faint); font-size: 0.74rem; margin-inline-start: 0.3rem; }
.cmp-table tbody th { font-weight: 400; }
.cmp-table tbody button { font: inherit; color: var(--dim); background: none; border: 0; padding: 0.2rem 0; cursor: pointer; border-bottom: 1px solid transparent; }
.cmp-table tbody button:hover { color: var(--text); border-bottom-color: var(--amber); }
.cmp-table tr.on { background: var(--amber-8); }
.cmp-table tr.on button { color: var(--amber); font-weight: 600; }

/* the way out */
.sc-out { overflow: hidden; border-block: var(--rule); background: linear-gradient(180deg, #0A0C10, #08090B); }
.sc-out-plate { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; background: center left / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 78%); mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 78%); }
.sc-out-plate.is-on { opacity: 0.5; }
.sc-out-in { position: relative; max-width: 46rem; margin-inline-start: max(var(--gut), calc((100% - 1180px) / 2)); margin-inline-end: auto; width: auto; padding-inline-end: var(--gut); }
.sc-out h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.7rem); margin-bottom: 1.4rem; }
.sc-points { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: 0.7rem; }
.sc-points li { color: var(--dim); padding-inline-start: 1rem; border-inline-start: 2px solid var(--amber-2); }
.sc-points b { display: block; color: var(--text); font-weight: 600; margin-bottom: 0.1rem; }
.sc-out .close-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.3rem; }
@media (max-width: 899px) { .sc-out-plate { -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); } .sc-out-plate.is-on { opacity: 0.3; } }

/* English (LTR): same composition -- strata on the left, copy on the right. */
html[dir="ltr"] .jr--live .jr-copy, html[dir="ltr"] .jr--live .jr-step { margin-inline-start: auto; }
html[dir="ltr"] .jr-chip { inset-inline-end: auto; left: var(--gut); }
html[dir="ltr"] .jr-copy h1 { font-size: clamp(1.5rem, 5.6vw, 2.75rem); }
@media (max-width: 519px) { html[dir="ltr"] .jr-copy h1 { white-space: normal; } }
html[dir="ltr"] .jr-state { direction: ltr; }
html[dir="ltr"] .rk-play { direction: ltr; }
html[dir="ltr"] .sc-out-plate { transform: scaleX(-1); }
html[dir="ltr"] .jr-ui { left: var(--gut); }
@media (max-width: 899px) { html[dir="ltr"] .jr-chip { left: 0.6rem; } }
