/* Scoped article figures; the site's existing layout and typography stay shared. */
.article-body .leap-figure { margin: 2.5rem 0 3rem; }
.leap-demo { --blue: #35798b; --gold: #b57d36; --edge: #dcd9ce; overflow: hidden; border: 1px solid var(--edge); border-radius: 10px; background: #faf9f5; }
.leap-demo__header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 21px 24px 19px; }
.leap-kicker { display: block; color: #6c6c63; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.article-body .leap-demo__header h3 { margin: 7px 0 0; font-size: 24px; font-weight: 400; letter-spacing: -.025em; line-height: 1.2; }
.leap-status { display: flex; align-items: center; gap: 6px; color: #666960; font: 9px var(--mono); white-space: nowrap; }
.leap-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #97998f; }
[data-state='ready'] .leap-status::before { background: #568474; }
.leap-stage { position: relative; height: 390px; background: #f0efe9; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.leap-stage__labels { position: absolute; z-index: 1; inset: 18px 0 auto; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none; }
.leap-stage__labels > div { position: relative; padding-left: 32px; }
.leap-stage__labels strong { font-size: 14px; font-weight: 400; }
.leap-stage__labels small { display: block; color: #73756d; font: 8px var(--mono); margin-top: 2px; }
.leap-dot { position: absolute; left: 20px; top: 9px; width: 5px; height: 5px; border-radius: 50%; }
.leap-dot--blue { background: var(--blue); }.leap-dot--gold { background: var(--gold); }
.leap-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.leap-canvas:active { cursor: grabbing; }
.leap-loading { position: absolute; z-index: 2; inset: 62px 0 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: #f0efe9; padding: 12px 24px 30px; }
.leap-loading__mark { color: #306f81; font: 46px var(--serif); letter-spacing: -.04em; }
.leap-loading__mark span { display: inline-block; color: #b2b0a4; margin: 0 17px; font-size: 25px; vertical-align: middle; }
.article-body .leap-loading p { margin: 10px 0 20px; font-size: 21px; line-height: 1.2; }
.leap-loading small { color: #6f7168; font: 9px/1.6 var(--mono); max-width: 380px; margin-top: 13px; }
.leap-demo button, .leap-demo select { font: 10px var(--mono); color: #43453d; background: transparent; border: 1px solid #d6d6ca; border-radius: 4px; padding: 9px 12px; cursor: pointer; }
.leap-demo button:hover, .leap-demo select:hover { border-color: #93988b; background: #efeee7; }
.leap-demo button:focus-visible, .leap-demo input:focus-visible, .leap-demo select:focus-visible, .leap-demo summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.leap-demo button:disabled, .leap-demo fieldset:disabled { cursor: wait; opacity: .55; }
.leap-demo [data-load], .leap-demo .leap-play { background: #294e54; color: #fff; border-color: #294e54; }
.leap-demo [data-load]:hover, .leap-demo .leap-play:hover { background: #36636b; color: #fff; }
.leap-orbit-hint { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #868779; font: 8px var(--mono); pointer-events: none; }
.leap-controls { border: 0; padding: 16px 22px; margin: 0; min-width: 0; }
.leap-transport { display: flex; align-items: center; gap: 12px; }
.leap-demo .leap-play { min-width: 77px; padding: 10px 12px; }
.leap-timeline { flex: 1; display: flex; min-width: 40px; }
.leap-timeline input { width: 100%; margin: 0; accent-color: var(--blue); cursor: pointer; }
.leap-time { font: 9px var(--mono); color: #656960; white-space: nowrap; font-variant-numeric: tabular-nums; }
.leap-demo [data-reset] { border: 0; padding: 8px 0 8px 5px; font-size: 9px; white-space: nowrap; }
.leap-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; }
.leap-fingers { display: flex; flex-wrap: wrap; gap: 4px; }
.leap-demo .leap-fingers button { padding: 6px 9px; border: 1px solid transparent; font-size: 9px; }
.leap-demo .leap-fingers button[aria-pressed='true'] { color: #2e6878; border-color: #c2d3d3; background: #e9f0ed; }
.leap-view-label { display: flex; align-items: center; gap: 6px; font: 9px var(--mono); color: #73756c; }
.leap-demo select { padding: 6px 5px; font-size: 9px; max-width: 130px; }
.leap-joints { border-top: 1px solid var(--edge); padding: 0 22px; }
.leap-joints summary { padding: 13px 0; cursor: pointer; color: #5d6359; font: 9px var(--mono); }
.leap-joints summary span { float: right; color: #95958a; font-size: 8px; }
.leap-joint-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 6px 0 20px; }
.leap-joint-column strong { display: block; margin-bottom: 10px; font: 10px var(--mono); color: #5c635b; }
.leap-joint { display: grid; grid-template-columns: 29px 1fr 29px; align-items: center; gap: 5px; margin-bottom: 8px; font: 8px var(--mono); color: #767a71; }
.leap-joint i { display: block; position: relative; height: 3px; background: #e4e2d8; border-radius: 2px; }
.leap-joint i b { display: block; position: absolute; width: 5px; height: 7px; top: -2px; border-radius: 1px; background: #648d91; }
.leap-joint output { text-align: right; color: #4e655f; }
.leap-demo__foot { display: flex; justify-content: space-between; gap: 12px; padding: 11px 22px; border-top: 1px solid var(--edge); background: #eeede5; color: #7e8175; font: 8px/1.5 var(--mono); }
.leap-demo__foot a { color: #62766b; text-decoration: none; white-space: nowrap; }
.leap-no-script { padding: 12px 22px; }
.leap-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.leap-loading[hidden] { display: none; }
.article-body .leap-pipeline { margin: 2.5rem 0; }
.article-body .leap-pipeline ol { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0; border-top: 1px solid #d5d7cb; border-bottom: 1px solid #d5d7cb; }
.article-body .leap-pipeline li { position: relative; padding: 21px 15px 23px 0; margin: 0; }
.article-body .leap-pipeline li + li { padding-left: 17px; border-left: 1px solid #dddcd0; }
.leap-pipeline li > span { display: block; color: #7c8475; font: 8px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.leap-pipeline li > strong { display: block; margin: 8px 0 5px; font-size: 16px; font-weight: 400; line-height: 1.2; }
.leap-pipeline li > small { display: block; color: #737467; font-size: 12px; line-height: 1.4; }
@media (min-width: 1100px) { .article-body .leap-figure { margin-left: -120px; margin-right: -120px; }.leap-stage { height: 440px; } }
@media (max-width: 560px) {
  .leap-demo__header { padding: 17px; }.article-body .leap-demo__header h3 { font-size: 22px; }.leap-status { font-size: 8px; }
  .leap-stage { height: 560px; }.leap-stage__labels { inset: 15px 0; display: block; }.leap-stage__labels > div:nth-child(2) { position: absolute; top: 50%; left: 0; right: 0; }
  .leap-stage__labels > div { padding-left: 29px; }.leap-dot { left: 17px; }
  .leap-controls { padding: 14px; }.leap-transport { gap: 8px; }.leap-demo .leap-play { min-width: 61px; padding: 10px 8px; }
  .leap-time { font-size: 8px; }.leap-demo [data-reset] { font-size: 8px; }.leap-options { flex-wrap: wrap; }
  .leap-fingers { gap: 0; }.leap-demo .leap-fingers button { padding: 7px 9px; }.leap-view-label { margin-left: auto; }
  .leap-joints { padding: 0 14px; }.leap-joint-grid { grid-template-columns: 1fr 1fr; gap: 16px 25px; }.leap-demo__foot { padding: 10px 14px; font-size: 7px; }
  .article-body .leap-pipeline ol { grid-template-columns: 1fr 1fr; }.article-body .leap-pipeline li { padding: 18px 15px; }.article-body .leap-pipeline li:nth-child(3) { border-left: 0; }.article-body .leap-pipeline li:nth-child(n+3) { border-top: 1px solid #dddcd0; }
}
@media (prefers-reduced-motion: reduce) { .leap-demo *, .leap-pipeline * { scroll-behavior: auto; } }

.rokoko-demo video { display: block; width: 100%; height: auto; background: #202522; }

.article-body .leap-captured .leap-demo__header h3 { margin: 0; }
.leap-captured .leap-controls { padding: 0 24px 20px; }
.leap-hand-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.leap-hand-options [data-reset] { margin-left: auto; }
.leap-hand-options button[aria-pressed='true'] { color: #294e54; border-color: #87aaa9; background: #e9f0ed; }
.leap-pose-options { display: flex; flex-wrap: wrap; gap: 8px; }
.leap-captured .leap-demo button { min-height: 38px; font-size: 11px; }
.leap-pose-options button[aria-pressed='true'] {
  background: #294e54;
  color: #fff;
  border-color: #294e54;
}
.leap-pose-options button[aria-pressed='true']:hover { background: #36636b; }
.leap-captured .leap-options { margin-top: 14px; flex-wrap: wrap; gap: 8px 18px; }
.leap-captured .leap-fingers { gap: 5px; }
.leap-captured .leap-loading { inset: 0; gap: 12px; padding: 18px; }
.leap-captured .leap-loading small { margin: 0; font: 12px/1.45 var(--sans, system-ui); }
.leap-captured .leap-canvas:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.leap-captured .leap-orbit-hint { font-size: 10px; }
.leap-captured .leap-demo:not([data-state='ready']) .leap-stage__labels,
.leap-captured .leap-demo:not([data-state='ready']) .leap-orbit-hint,
.leap-captured .leap-demo:not([data-state='ready']) .leap-canvas { visibility: hidden; }
.leap-captured .leap-stage__labels strong { font-weight: 600; }
.leap-captured .leap-stage__labels small { font-size: 10px; }

@media (max-width: 560px) {
  .leap-captured .leap-demo__header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .leap-captured .leap-controls { padding-inline: 14px; }
}
