.hitlx {
  --hitlx-night: #061426;
  --hitlx-navy: #0c2340;
  --hitlx-blue: #8fc1f0;
  --hitlx-blue-deep: #2e64d9;
  --hitlx-gold: #e4c47f;
  --hitlx-white: #fff;
  --hitlx-silver: #d1d7df;
  --hitlx-stage-blue: #0033a0;
  --hitlx-stage-gold: #946818;
  --hitlx-stage-ink: #0c2340;
  --hitlx-stage-paper: #f6f6f4;
  margin: clamp(38px, 7vh, 68px) 0 0;
  overflow: hidden;
  border: 1px solid rgba(12, 35, 64, .12);
  border-radius: 16px;
  background: var(--hitlx-night);
  box-shadow: 0 28px 70px rgba(12, 35, 64, .18);
}

.hitlx,
.hitlx * {
  box-sizing: border-box;
}

.hitlx-stage {
  --hitlx-blue: var(--hitlx-stage-blue);
  --hitlx-blue-deep: #275d9c;
  --hitlx-gold: var(--hitlx-stage-gold);
  position: relative;
  width: 100%;
  aspect-ratio: 15 / 7;
  min-height: 360px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 21% 76%, rgba(0, 51, 160, .12), transparent 31%),
    radial-gradient(circle at 79% 24%, rgba(184, 137, 43, .11), transparent 29%),
    linear-gradient(180deg, #fff 0%, var(--hitlx-stage-paper) 100%);
}

.hitlx-grid-field,
.hitlx-x-signature,
.hitlx-svg,
.hitlx-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hitlx-grid-field {
  z-index: 0;
  opacity: .62;
  background-image:
    linear-gradient(rgba(0, 51, 160, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 51, 160, .075) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
}

.hitlx-x-signature {
  z-index: 1;
  right: 5%;
  left: auto;
  width: 25%;
  overflow: hidden;
  opacity: 0;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(circle at 52% 30%, #000 12%, rgba(0, 0, 0, .78) 38%, transparent 72%);
  mask-image: radial-gradient(circle at 52% 30%, #000 12%, rgba(0, 0, 0, .78) 38%, transparent 72%);
  pointer-events: none;
}

.hitlx-x-signature img {
  position: absolute;
  top: 7%;
  left: 0;
  width: auto;
  max-width: none;
  height: 45%;
  filter: grayscale(1) invert(1) contrast(1.35) brightness(1.06);
}

.hitlx-svg {
  z-index: 2;
  overflow: hidden;
}

.hitlx-vignette {
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 35, 64, .045), transparent 15%, transparent 85%, rgba(12, 35, 64, .055)),
    radial-gradient(ellipse at center, transparent 50%, rgba(12, 35, 64, .09) 100%);
}

.hitlx-stage-label {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 18px;
  color: rgba(12, 35, 64, .48);
  font: 600 9px/1 var(--mono);
  letter-spacing: .22em;
}

.hitlx-register path,
.hitlx-route-underlay,
.hitlx-route,
.hitlx-route-live,
.hitlx-route-return,
.hitlx-wake,
.hitlx-lead,
.hitlx-node-halo,
.hitlx-node-boundary,
.hitlx-brackets,
.hitlx-gate-line,
.hitlx-origin-ring,
.hitlx-origin-aperture,
.hitlx-silicon-frame,
.hitlx-silicon-die,
.hitlx-silicon-tiles rect,
.hitlx-silicon-bus,
.hitlx-judgment-ring,
.hitlx-judgment-mark,
.hitlx-label-rule {
  vector-effect: non-scaling-stroke;
}

.hitlx-register path {
  fill: none;
  stroke: rgba(12, 35, 64, .24);
  stroke-width: 1;
}

.hitlx-route-underlay {
  fill: none;
  stroke: rgba(12, 35, 64, .14);
  stroke-width: 5.2;
  stroke-linecap: round;
}

.hitlx-route {
  fill: none;
  stroke: url("#hitlxRouteTone");
  stroke-width: 1.7;
  stroke-linecap: round;
}

.hitlx-route-live,
.hitlx-route-return,
.hitlx-wake,
.hitlx-lead {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
}

.hitlx-route-live {
  stroke: var(--hitlx-blue);
  stroke-width: 2.5;
}

.hitlx-route-return {
  stroke: var(--hitlx-gold);
  stroke-width: 2.5;
}

.hitlx-wake--long { stroke-width: 1.5; }
.hitlx-wake--mid { stroke-width: 3; filter: url("#hitlxSignalGlow"); }
.hitlx-wake--hot { stroke-width: 5; filter: url("#hitlxSignalGlow"); }
.hitlx-lead { stroke-width: 2.8; filter: url("#hitlxSignalGlow"); }

.hitlx-node,
.hitlx-gate {
  color: var(--hitlx-blue);
}

.hitlx-gate {
  color: var(--hitlx-gold);
}

.hitlx-node-halo {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-dasharray: 2 6;
  opacity: .56;
}

.hitlx-node-boundary {
  fill: rgba(255, 255, 255, .94);
  stroke: currentColor;
  stroke-width: 2.2;
}

.hitlx-node-core {
  fill: currentColor;
  filter: url("#hitlxNodeGlow");
}

.hitlx-brackets,
.hitlx-gate-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.hitlx-brackets { opacity: .84; }
.hitlx-gate-line { stroke-dasharray: 2 7; }

.hitlx-node-name,
.hitlx-node-role,
.hitlx-payload text,
.hitlx-judgment-label {
  fill: currentColor;
  font-family: var(--mono);
  text-transform: uppercase;
}

.hitlx-node-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .23em;
}

.hitlx-node-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .25em;
  opacity: .94;
}

.hitlx-payload text,
.hitlx-judgment-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, .96);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.hitlx-signal { color: var(--hitlx-blue); }
.hitlx-signal-aura { fill: currentColor; }
.hitlx-signal-shell {
  fill: rgba(255, 255, 255, .96);
  stroke: currentColor;
  stroke-width: 1.65;
  vector-effect: non-scaling-stroke;
}
.hitlx-signal-core { fill: currentColor; }
.hitlx-signal-hotspot { fill: #fff; }
.hitlx-signal-flare {
  fill: none;
  stroke: currentColor;
  stroke-width: .9;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: url("#hitlxSignalGlow");
}

.hitlx-payload { color: var(--hitlx-blue); }
.hitlx-payload--direction { color: var(--hitlx-gold); }
.hitlx-label-rule {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  opacity: .82;
}

.hitlx-origin { color: var(--hitlx-blue); }
.hitlx-origin-ring,
.hitlx-origin-aperture {
  fill: none;
  stroke: currentColor;
}
.hitlx-origin-ring { stroke-width: 1.2; }
.hitlx-origin-ring--outer { stroke-dasharray: 3 8; }
.hitlx-origin-ring--inner { stroke-width: 1.7; filter: url("#hitlxSignalGlow"); }
.hitlx-origin-aperture { stroke-width: 1; stroke-linecap: round; }

.hitlx-silicon { color: var(--hitlx-blue-deep); }
.hitlx-ai-media {
  mix-blend-mode: multiply;
  filter: grayscale(1) invert(1) contrast(1.22);
  pointer-events: none;
}
.hitlx-silicon-frame,
.hitlx-silicon-die,
.hitlx-silicon-tiles rect,
.hitlx-silicon-bus {
  fill: none;
  stroke: currentColor;
}
.hitlx-silicon-frame { stroke-width: .8; stroke-dasharray: 2 9; }
.hitlx-silicon-die { fill: rgba(46, 100, 217, .06); stroke-width: 1.1; }
.hitlx-silicon-tiles rect { fill: rgba(46, 100, 217, .07); stroke-width: .65; }
.hitlx-silicon-bus { stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.hitlx-silicon-contacts circle { fill: currentColor; filter: url("#hitlxNodeGlow"); }

.hitlx-judgment { color: var(--hitlx-gold); }
.hitlx-judgment-ring,
.hitlx-judgment-mark {
  fill: none;
  stroke: currentColor;
}
.hitlx-judgment-ring {
  fill: rgba(255, 255, 255, .72);
  stroke-width: 1.5;
  stroke-dasharray: 2 6;
}
.hitlx-judgment-mark { stroke-width: 1.4; }

.hitlx-learning {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(460px, 1.28fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-top: 1px solid rgba(143, 193, 240, .14);
  background:
    radial-gradient(circle at 8% 25%, rgba(0, 51, 160, .16), transparent 35%),
    var(--hitlx-navy);
  color: #fff;
}

.hitlx-step-number,
.hitlx-control-topline,
.hitlx-stops button {
  font-family: var(--mono);
  text-transform: uppercase;
}

.hitlx-step-number {
  display: block;
  color: var(--hitlx-blue);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .19em;
}

.hitlx-readout h3 {
  margin-top: 11px;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(1.55rem, 2.8vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1;
}

.hitlx-readout p {
  max-width: 34em;
  margin-top: 14px;
  color: rgba(229, 237, 247, .72);
  font-size: .94rem;
  line-height: 1.65;
}

.hitlx-control-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(209, 215, 223, .58);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.hitlx-replay {
  border: 0;
  border-bottom: 1px solid rgba(143, 193, 240, .45);
  background: transparent;
  color: var(--hitlx-blue);
  padding: 4px 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.hitlx-replay:hover,
.hitlx-replay:focus-visible {
  color: #fff;
  border-color: #fff;
}

.hitlx-scrubber {
  width: 100%;
  margin: 22px 0 15px;
  accent-color: var(--hitlx-blue);
  cursor: ew-resize;
}

.hitlx-scrubber:focus-visible {
  outline: 2px solid var(--hitlx-blue);
  outline-offset: 5px;
}

.hitlx-stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.hitlx-stops button {
  min-height: 42px;
  border: 1px solid rgba(143, 193, 240, .18);
  border-radius: 5px;
  background: rgba(255, 255, 255, .025);
  color: rgba(209, 215, 223, .58);
  padding: 8px;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.35;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}

.hitlx-stops button:hover,
.hitlx-stops button:focus-visible,
.hitlx-stops button[aria-pressed="true"] {
  border-color: rgba(143, 193, 240, .72);
  background: rgba(143, 193, 240, .1);
  color: #fff;
}

.hitlx figcaption {
  padding: 15px clamp(28px, 4vw, 48px) 18px;
  border-top: 1px solid rgba(143, 193, 240, .1);
  background: #050f1e;
  color: rgba(209, 215, 223, .58);
  font-size: .78rem;
  line-height: 1.55;
}

.hitl-copy--explained {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(34px, 6vw, 72px);
  margin-top: clamp(38px, 6vh, 58px);
}

.hitl-copy--explained .keyline {
  grid-column: 1 / -1;
  max-width: 34em;
}

@media (max-width: 820px) {
  .hitlx-learning {
    grid-template-columns: 1fr;
  }

  .hitlx-stops {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .hitlx {
    margin-right: -10px;
    margin-left: -10px;
    border-radius: 12px;
  }

  .hitlx-stage {
    min-height: 300px;
    aspect-ratio: 5 / 4;
  }

  .hitlx-svg {
    right: auto;
    left: 50%;
    width: 136%;
    max-width: none;
    transform: translateX(-50%);
  }

  .hitlx-node-name {
    font-size: 23px;
  }

  .hitlx-node-role {
    font-size: 12px;
  }

  .hitlx-payload text,
  .hitlx-judgment-label {
    font-size: 15px;
  }

  .hitlx-stage-label {
    right: 15px;
    bottom: 13px;
    font-size: 7px;
  }

  .hitlx-learning {
    padding: 26px 22px 28px;
  }

  .hitlx-control-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hitlx-stops button {
    text-align: left;
  }

  .hitl-copy--explained {
    grid-template-columns: 1fr;
  }

  .hitl-copy--explained .keyline {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hitlx-replay {
    display: none;
  }
}

@media (forced-colors: active) {
  .hitlx-grid-field,
  .hitlx-vignette,
  .hitlx-x-signature,
  .hitlx-ai-media {
    display: none;
  }

  .hitlx-stage,
  .hitlx-learning {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }
}
