/* ==========================================================================
   Home page: diagrams

   Every structure and sequence on the page is drawn in HTML and CSS. The
   connecting line is the brand's teal rule: grey at rest, filling with teal
   as the reader reaches it.

     .xh-gain   what separating intelligence from authority gives: the roles
                with nothing missing, and governance over time (.xh-gv, drawn
                in SVG)
     .xh-vs     two architectures side by side, in panes that share their
                rows (the first pair's drawings, .xh-bd, are in moves.css)
     .xh-dual   one block and the two things it is at once
     .xh-ruled  a governance record whose rules take turns, on the clock the
                drawing above it shares (.xh-cut, in moves.css)
     .xh-org    the enterprise's roles, and the one that lacks authority and control
     .xh-weave  an execution with policy and authority wound into it (drawn in SVG)
     .xh-after  the other way: the action goes through, and a monitor notices later
     .xh-print  what the kernel records, as a fingerprint that formulas turn into a measure
     .xh-rail   a horizontal sequence; the line fills once, on entry, or
                step by step with the scroll position (.xh-rail--step)
     .xh-path   a call path with a check beside it or inside it

   Without JavaScript every line is drawn filled and every node is lit.
   ========================================================================== */

/* What separating intelligence from authority gives -----------------------
   Two statements, each beside its picture, on alternating sides. Delegation
   is chapter 01's opening figure again (.xh-org), with nothing missing now:
   the agent's authority and control are named where they were missing.
   Accumulation is authority and governance over time (.xh-gv), drawn wide
   and tall from one table (gen/gain.py), each lane in its own band under a
   centred title, with a dashed line through the first agent of both and a
   key for an agent shipping: rebuilt from nothing for every agent, where
   each agent glows as it ships and goes hollow as what it held drops away,
   or kept, so that they climb and each agent ships sooner than the last. A
   line sweeps across as the clock both share, each time the drawing comes
   on screen (is-seen, set by home.js). Without the script, or with reduced
   motion, it is drawn whole. */
.xh .xh-gain {
  display: grid;
  gap: 5rem;
}

.xh .xh-gain__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4.5rem;
  align-items: center;
}

.xh .xh-gain__say .xh-say {
  max-width: 30ch;
  margin: 0;
}

/* Side by side, a statement takes no more than four lines of its half. */
@media screen and (min-width: 60.0625em) {
  .xh .xh-gain__say .xh-say { font-size: 1.55rem; }
}

/* The agent's authority and control, named where they were missing, and lit
   above the rest: a flash and a sheen as it is named, then a slow breath of
   light round it. */
.xh .xh-org__ac.xh-org__ac--now > b {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--xh-teal-2);
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--xh-teal) 38%, transparent),
              color-mix(in srgb, var(--xh-teal) 16%, transparent));
  box-shadow: inset 0 0 0.55rem -0.1rem color-mix(in srgb, var(--xh-teal-2) 60%, transparent);
  font-weight: 680;
  color: var(--xh-fg);
}

.xh .xh-org__ac--now > b::before,
.xh .xh-org__ac--now > b::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
}

.xh .xh-org__ac--now > b::before {
  z-index: -1;
  box-shadow: 0 0 1.1rem 0.12rem color-mix(in srgb, var(--xh-teal-2) 70%, transparent),
              0 0 2.6rem 0.3rem color-mix(in srgb, var(--xh-teal) 35%, transparent);
}

.xh .xh-org__ac--now > b::after {
  background: linear-gradient(105deg, transparent 35%,
              color-mix(in srgb, #fff 60%, transparent) 50%, transparent 65%) no-repeat;
  background-size: 260% 100%;
  background-position: 130% 0;
  opacity: 0;
}

.xh-js .xh .xh-org__ac--now > b {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.5s ease 1.2s, transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 1.2s;
}

.xh-js .xh .xh-org.is-in .xh-org__ac--now > b {
  opacity: 1;
  transform: none;
}

/* Governance over time. */
.xh .xh-gv {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}

.xh .xh-gv__art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: inherit;
}

.xh .xh-gv__art--tall { display: none; }

.xh .xh-gv__lane {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  fill: var(--xh-fg-2);
  paint-order: stroke;
  stroke: var(--xh-sec-bg, var(--xh-bg));
  stroke-width: 6px;
  stroke-linejoin: round;
}

.xh .xh-gv__lane--b { fill: var(--xh-fg); }

.xh .xh-gv__key {
  font-size: 13px;
  font-weight: 520;
  fill: var(--xh-fg-2);
}

.xh .xh-gv__keydot,
.xh .xh-gv__dot--b {
  fill: var(--xh-teal-2);
  filter: drop-shadow(0 0 4px var(--xh-teal-2));
}

.xh .xh-gv__dot--a {
  fill: var(--xh-sec-bg, var(--xh-bg));
  stroke: color-mix(in srgb, var(--xh-fg) 70%, transparent);
  stroke-width: 1.6;
}

.xh .xh-gv__guide {
  stroke: color-mix(in srgb, var(--xh-fg) 30%, transparent);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.xh .xh-gv__base,
.xh .xh-gv__axis {
  stroke: color-mix(in srgb, var(--xh-fg) 32%, transparent);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xh .xh-gv__saw {
  fill: color-mix(in srgb, var(--xh-fg) 9%, transparent);
  stroke: color-mix(in srgb, var(--xh-fg) 50%, transparent);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.xh .xh-gv__f0 { stop-color: color-mix(in srgb, var(--xh-teal) 40%, transparent); }
.xh .xh-gv__f1 { stop-color: color-mix(in srgb, var(--xh-teal) 6%, transparent); }

.xh .xh-gv__edge {
  stroke: var(--xh-teal-2);
  stroke-width: 2.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--xh-teal) 70%, transparent));
}

.xh .xh-gv__foot {
  font-family: var(--md-code-font);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--xh-fg-2);
}

.xh .xh-gv__now {
  stroke: var(--xh-teal-2);
  stroke-width: 1.4;
  opacity: 0;
  filter: drop-shadow(0 0 4px var(--xh-teal-2));
}

@media screen and (max-width: 60em) {
  .xh .xh-gain { gap: 3.5rem; }
  .xh .xh-gain__row { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .xh .xh-gain__say { order: -1; }
}

@media screen and (max-width: 38em) {
  .xh .xh-gv__art--wide { display: none; }
  .xh .xh-gv__art--tall { display: block; }
}

/* Played each time it comes on screen. */
@media (prefers-reduced-motion: no-preference) {
  .xh-js .xh .xh-gv__run { clip-path: inset(0 100% 0 0); }

  .xh-js .xh .xh-gv__dot {
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: center;
  }

  .xh-js .xh .xh-gv.is-seen .xh-gv__run {
    animation: xh-gv-sweep 3.2s linear 0.4s forwards;
  }

  .xh-js .xh .xh-gv.is-seen .xh-gv__dot {
    animation: xh-gv-pop 0.35s ease-out forwards;
    animation-delay: calc(0.4s + var(--t) * 3.2s);
  }

  .xh-js .xh .xh-gv.is-seen .xh-gv__dot--a {
    animation: xh-gv-ship 0.8s ease-out forwards;
    animation-delay: calc(0.4s + var(--t) * 3.2s);
  }


  .xh-js .xh .xh-org.is-in .xh-org__ac--now > b::before {
    animation: xh-now-flash 1.2s ease-out 1.25s both,
               xh-now-breathe 3s ease-in-out 2.45s infinite alternate;
  }

  .xh-js .xh .xh-org.is-in .xh-org__ac--now > b::after {
    animation: xh-now-sheen 1.1s ease-in-out 1.45s both;
  }

  .xh-js .xh .xh-gv.is-seen .xh-gv-now-wide { animation: xh-gv-now-wide 3.2s linear 0.4s; }
  .xh-js .xh .xh-gv.is-seen .xh-gv-now-tall { animation: xh-gv-now-tall 3.2s linear 0.4s; }
}

@media (prefers-reduced-motion: reduce) {
  .xh-js .xh .xh-org__ac--now > b { opacity: 1; transform: none; transition: none; }
}

@keyframes xh-gv-sweep {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes xh-gv-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* Rebuilt: the agent ships, lit, and goes hollow as soon as what it held
   drops away. */
@keyframes xh-gv-ship {
  0% { transform: scale(0); fill: var(--xh-teal-2); stroke: var(--xh-teal-2); filter: drop-shadow(0 0 6px var(--xh-teal-2)); }
  15% { transform: scale(1.5); }
  25% { transform: scale(1); }
  28% { fill: var(--xh-teal-2); stroke: var(--xh-teal-2); filter: drop-shadow(0 0 6px var(--xh-teal-2)); }
  38%, 100% { transform: scale(1); fill: var(--xh-sec-bg, var(--xh-bg)); stroke: color-mix(in srgb, var(--xh-fg) 70%, transparent); filter: drop-shadow(0 0 0 transparent); }
}

@keyframes xh-now-flash {
  0% { box-shadow: 0 0 2.4rem 0.9rem color-mix(in srgb, var(--xh-teal-2) 95%, transparent),
                   0 0 4.6rem 1.4rem color-mix(in srgb, var(--xh-teal) 60%, transparent); }
  100% { box-shadow: 0 0 1.1rem 0.12rem color-mix(in srgb, var(--xh-teal-2) 70%, transparent),
                     0 0 2.6rem 0.3rem color-mix(in srgb, var(--xh-teal) 35%, transparent); }
}

@keyframes xh-now-breathe {
  from { opacity: 1; }
  to { opacity: 0.45; }
}

@keyframes xh-now-sheen {
  0% { opacity: 1; background-position: 130% 0; }
  85% { opacity: 1; }
  100% { opacity: 0; background-position: -30% 0; }
}

@keyframes xh-gv-now-wide {
  0% { transform: translateX(0); opacity: 0; }
  4% { opacity: 1; }
  94% { opacity: 1; }
  100% { transform: translateX(528px); opacity: 0; }
}

@keyframes xh-gv-now-tall {
  0% { transform: translateX(0); opacity: 0; }
  4% { opacity: 1; }
  94% { opacity: 1; }
  100% { transform: translateX(332px); opacity: 0; }
}

/* Two architectures, side by side -------------------------------------------
   Two panes that share their rows, so the two sides are read level with
   each other. The first pair's drawings, the application as its own
   authority and XCK with the authority boundary underneath the application,
   are drawn in moves.css (.xh-bd). */

.xh .xh-vs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 1rem;
}

.xh .xh-vs > .xh-pane {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 1.15rem;
}

.xh .xh-vs .xh-pane__d {
  margin-top: 0;
}

/* The same pair with five rows: what it is, the drawing, what the execution
   system sees, what governance says about it, and the verdict. Each row sits
   level with its opposite, so the two sides are read line for line. */
.xh .xh-vs--tail {
  grid-template-rows: repeat(5, auto);
}

.xh .xh-vs--tail > .xh-pane {
  grid-row: span 5;
}

.xh .xh-vs--tail .xh-pane__foot {
  margin-top: 0;
  padding-top: 0.1rem;
}

@media screen and (max-width: 60em) {
  .xh .xh-vs {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    row-gap: 1rem;
  }

  .xh .xh-vs > .xh-pane {
    grid-row: auto;
    grid-template-rows: none;
  }
}

/* Horizontal sequence ------------------------------------------------------ */

.xh .xh-rail {
  --n: 5;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 0.7rem;
  padding-top: 1.75rem;
}

.xh .xh-rail::before,
.xh .xh-rail::after {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: calc(50% / var(--n));
  right: calc(50% / var(--n));
  height: 2px;
  border-radius: 2px;
}

.xh .xh-rail::before {
  background: var(--xh-line);
}

.xh .xh-rail::after {
  background: linear-gradient(90deg, var(--xr-teal-deep), var(--xr-teal-bright));
  box-shadow: 0 0 14px color-mix(in srgb, var(--xh-teal) 60%, transparent);
  transform-origin: 0 50%;
}

.xh-js .xh .xh-rail::after {
  transform: scaleX(0);
  transition: transform calc(var(--n) * 0.27s) cubic-bezier(0.4, 0, 0.3, 1) 0.3s;
}

.xh-js .xh .xh-rail.is-in::after {
  transform: scaleX(1);
}

.xh .xh-rail__n {
  position: relative;
  text-align: center;
}

.xh .xh-rail__n::before {
  content: "";
  position: absolute;
  top: calc(-1.75rem + 0.4rem + 1px - 0.33rem);
  left: 50%;
  width: 0.66rem;
  height: 0.66rem;
  margin-left: -0.33rem;
  border: 2px solid var(--xh-teal);
  border-radius: 50%;
  background: var(--xh-teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--xh-teal) 18%, transparent);
}

.xh-js .xh .xh-rail .xh-rail__n::before {
  border-color: var(--xh-line);
  background: var(--xh-sec-bg, var(--xh-bg));
  box-shadow: none;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  transition-delay: calc(0.32s + var(--k, 0) * 0.27s);
}

.xh-js .xh .xh-rail.is-in .xh-rail__n::before {
  border-color: var(--xh-teal);
  background: var(--xh-teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--xh-teal) 18%, transparent);
}

.xh .xh-rail__t {
  display: block;
  font-size: 0.78rem;
  font-weight: 630;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--xh-fg);
}

.xh .xh-rail__s {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--xh-fg-2);
}

.xh .xh-rail--mono .xh-rail__t {
  font-family: var(--md-code-font);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

/* A sequence that is one artifact sits in one dashed outline, named on its
   top edge. */
.xh .xh-art {
  position: relative;
  padding: 2.1rem 1.4rem 1.6rem;
  border: 1.5px dashed color-mix(in srgb, var(--xh-teal) 62%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--xh-teal) 5%, transparent);
}

.xh .xh-art__k {
  position: absolute;
  top: 0;
  left: 1.2rem;
  padding: 0 0.55rem;
  transform: translateY(-50%);
  background: var(--xh-sec-bg, var(--xh-bg));
  font-family: var(--md-code-font);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--xh-teal-text);
}

/* Each step in a card of its own. */
.xh .xh-rail--cards .xh-rail__n {
  padding: 1rem 0.95rem 1.1rem;
  border: 1px solid var(--xh-line);
  border-radius: 12px;
  background: var(--xh-bg-card);
  text-align: left;
}

.xh .xh-rail--cards .xh-rail__n--key {
  border-color: color-mix(in srgb, var(--xh-teal) 55%, var(--xh-line));
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--xh-teal) 10%, var(--xh-bg-card)) 0,
              var(--xh-bg-card) 75%);
}

.xh .xh-rail__k {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--md-code-font);
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xh-teal-text);
}

/* A stepped rail: the scroll position draws the line, and one card after
   another lights as the line reaches its point. Until then a card waits,
   dimmed, with its label grey; the label fills with teal from the left as
   the card lights. The last card, the one the rail leads to, lights hardest.
   home.js sets `--xh-rp` and `is-on`; without it every card is lit. */

.xh-js .xh .xh-rail.xh-rail--step::after,
.xh-js .xh .xh-rail.xh-rail--step.is-in::after {
  transform: scaleX(var(--xh-rp, 0));
  transition: transform 0.28s ease-out;
}

.xh-js .xh .xh-rail.xh-rail--step .xh-rail__n::before {
  transition-delay: 0s;
}

.xh-js .xh .xh-rail.xh-rail--step.is-in .xh-rail__n:not(.is-on)::before {
  border-color: var(--xh-line);
  background: var(--xh-sec-bg, var(--xh-bg));
  box-shadow: none;
}

.xh-js .xh .xh-rail.xh-rail--step .xh-rail__n.is-on::before {
  border-color: var(--xh-teal);
  background: var(--xh-teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--xh-teal) 18%, transparent);
}

.xh-js .xh .xh-rail--step .xh-rail__n {
  transition: border-color 0.45s ease, box-shadow 0.6s ease;
}

.xh-js .xh .xh-rail--step .xh-rail__n > span {
  opacity: 0.3;
  transition: opacity 0.45s ease;
}

.xh-js .xh .xh-rail--step .xh-rail__n.is-on > span {
  opacity: 1;
}

.xh-js .xh .xh-rail--step.xh-rail--cards .xh-rail__n:not(.is-on) {
  border-color: var(--xh-line);
}

.xh-js .xh .xh-rail--step.xh-rail--cards .xh-rail__n.is-on {
  border-color: color-mix(in srgb, var(--xh-teal) 30%, var(--xh-line));
}

.xh-js .xh .xh-rail--step.xh-rail--cards .xh-rail__n--key.is-on {
  border-color: color-mix(in srgb, var(--xh-teal) 80%, var(--xh-line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--xh-teal) 18%, transparent),
              0 20px 54px -24px color-mix(in srgb, var(--xh-teal) 95%, transparent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .xh-js .xh .xh-rail--step .xh-rail__k {
    width: -moz-fit-content;
    width: fit-content;
    background-image: linear-gradient(var(--xh-teal-text), var(--xh-teal-text)),
                      linear-gradient(var(--xh-fg-2), var(--xh-fg-2));
    background-repeat: no-repeat;
    background-size: 0% 100%, 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: opacity 0.45s ease, background-size 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
  }

  .xh-js .xh .xh-rail--step .xh-rail__n.is-on .xh-rail__k {
    background-size: 100% 100%, 100% 100%;
  }
}

@media screen and (max-width: 60em) {
  .xh .xh-rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    padding-top: 0;
    padding-left: 2.15rem;
  }

  .xh .xh-rail::before,
  .xh .xh-rail::after {
    top: 0.62rem;
    bottom: 0.62rem;
    left: 0.56rem;
    right: auto;
    width: 2px;
    height: auto;
  }

  .xh .xh-rail::after { transform-origin: 50% 0; }
  .xh-js .xh .xh-rail::after { transform: scaleY(0); }
  .xh-js .xh .xh-rail.is-in::after { transform: scaleY(1); }

  .xh-js .xh .xh-rail.xh-rail--step::after,
  .xh-js .xh .xh-rail.xh-rail--step.is-in::after {
    transform: scaleY(var(--xh-rp, 0));
  }

  .xh .xh-rail__n { text-align: left; }

  .xh .xh-rail__n::before {
    top: 0.3rem;
    left: calc(-2.15rem + 0.61rem - 0.33rem - 1px);
    margin-left: 0;
  }

  .xh .xh-rail--cards .xh-rail__n::before { top: 1.05rem; }

  .xh .xh-art { padding: 1.9rem 1rem 1.2rem; }
  .xh .xh-art__k { left: 0.7rem; padding: 0 0.4rem; letter-spacing: 0.06em; }
}

/* A call path, with the check beside it or inside it ------------------------ */

.xh .xh-path {
  display: grid;
  grid-template-columns: auto minmax(1.6rem, 1fr) auto;
  align-items: center;
  margin: 1.5rem 0 0.2rem;
  font-family: var(--md-code-font);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0;
}

.xh .xh-path--gate {
  grid-template-columns: auto minmax(1rem, 1fr) auto minmax(1rem, 1fr) auto;
}

.xh .xh-path__node {
  padding: 0.52rem 0.72rem;
  border: 1px solid var(--xh-line);
  border-radius: 8px;
  background: var(--xh-bg);
  line-height: 1.2;
  white-space: nowrap;
  color: var(--xh-fg-2);
}

/* The check holds a phrase, not a word: it wraps, so the outcomes after it
   stay inside the card. */
.xh .xh-path__node--gate {
  white-space: normal;
  text-align: center;
  border-color: var(--xh-teal);
  background: color-mix(in srgb, var(--xh-teal) 14%, var(--xh-bg));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--xh-teal) 14%, transparent),
              0 0 30px -4px color-mix(in srgb, var(--xh-teal) 70%, transparent);
  color: var(--xh-teal-text);
}

.xh .xh-path__seg {
  position: relative;
  height: 2px;
  background: var(--xh-fg-3);
}

.xh .xh-path__seg::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.21rem;
  border-top: 2px solid var(--xh-fg-3);
  border-right: 2px solid var(--xh-fg-3);
  transform: rotate(45deg);
}

.xh .xh-path--gate .xh-path__seg {
  background: var(--xh-line);
}

.xh .xh-path--gate .xh-path__seg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--xr-teal-deep), var(--xr-teal-bright));
  transform-origin: 0 50%;
}

.xh .xh-path--gate .xh-path__seg::after {
  border-color: var(--xh-teal);
}

.xh-js .xh .xh-path--gate .xh-path__seg::before {
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(0.4s + var(--k, 0) * 0.75s);
}

.xh-js .xh .is-in .xh-path--gate .xh-path__seg::before {
  transform: scaleX(1);
}

.xh .xh-path__out {
  display: grid;
  gap: 0.3rem;
}

.xh .xh-path__out > span {
  padding: 0.38rem 0.62rem;
  border: 1px solid color-mix(in srgb, var(--xh-teal) 50%, var(--xh-line));
  border-radius: 7px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--xh-teal-text);
}

.xh .xh-path__out > span + span {
  border-color: color-mix(in srgb, var(--xh-warn) 50%, var(--xh-line));
  color: var(--xh-warn);
}

/* The watcher hangs under the path on a dashed line: beside it, not in it. */
.xh .xh-path__watch,
.xh .xh-path__in {
  position: relative;
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 1.5rem;
  padding: 0.48rem 0.72rem;
  border: 1px dashed color-mix(in srgb, var(--xh-warn) 65%, var(--xh-line));
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  color: var(--xh-warn);
}

.xh .xh-path__watch::before,
.xh .xh-path__in::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  height: 1.5rem;
  border-left: 1.5px dashed color-mix(in srgb, var(--xh-warn) 65%, var(--xh-line));
}

.xh .xh-path__in {
  grid-column: 2 / 5;
  border: 1px solid color-mix(in srgb, var(--xh-teal) 50%, var(--xh-line));
  color: var(--xh-teal-text);
}

.xh .xh-path__in::before {
  border-left: 1.5px solid color-mix(in srgb, var(--xh-teal) 70%, var(--xh-line));
}

/* Who supplies what: three lines, the last one the answer ------------------- */

.xh .xh-trio {
  display: grid;
  border-top: 1px solid var(--xh-line);
}

.xh .xh-trio > div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--xh-line);
}

.xh .xh-trio span {
  font-family: var(--md-code-font);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xh-fg-3);
}

.xh .xh-trio b {
  font-size: 1.5rem;
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--xh-fg-2);
}

.xh .xh-trio .is-key span { color: var(--xh-teal-text); }

.xh .xh-trio .is-key b {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--xh-teal-text);
}

/* intelligence is not authority --------------------------------------------- */

.xh .xh-neq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 1.5rem;
  font-size: 3.3rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--xh-fg);
}

.xh .xh-neq i {
  font-family: var(--md-code-font);
  font-size: 0.7em;
  font-style: normal;
  font-weight: 500;
  color: var(--xh-warn);
}

.xh .xh-neq b {
  font-weight: 700;
  color: var(--xh-teal-text);
}

/* The turn down from one thing to what it leads to --------------------------- */

.xh .xh-drop {
  position: relative;
  width: 2px;
  height: 2.4rem;
  margin: 0.6rem auto;
  background: linear-gradient(180deg, var(--xr-teal-deep), var(--xr-teal-bright));
}

.xh .xh-drop::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0.46rem;
  height: 0.46rem;
  margin-left: -0.23rem;
  border-right: 2px solid var(--xr-teal-bright);
  border-bottom: 2px solid var(--xr-teal-bright);
  transform: rotate(45deg);
}

.xh-js .xh .xh-drop {
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
}

.xh-js .xh .xh-drop.is-in,
.xh-js .xh .is-in > .xh-drop {
  transform: scaleY(1);
}

/* One block, two readings ------------------------------------------------------
   A block, and the two things it is at the same time, as the two branches of
   one line. The way to the second fills with teal: that is the property XCK
   is built on. The figure stands in the middle of the page. */

.xh .xh-dual {
  --xh-dual-sp: 2.8rem;    /* from the block to where the line divides */
  --xh-dual-in: 6rem;      /* from the block to the words */
  --xh-dual-end: 1.15rem;  /* left clear between a line's end and the words */
  --xh-dual-gap: 1.5rem;   /* between the two properties */
  --xh-dual-c: color-mix(in srgb, var(--xh-fg-3) 55%, var(--xh-line));
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  justify-content: center;
}

.xh .xh-dual__b {
  position: relative;
  grid-row: 1 / 3;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.6rem;
  height: 4.8rem;
  padding-left: 0.2em;
  border-radius: 12px;
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--xh-teal) 16%, var(--xh-bg-card)) 0,
              color-mix(in srgb, var(--xh-teal) 6%, var(--xh-bg-card)) 100%);
  /* The edge is drawn inside the box, so the line leaves from its true edge. */
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--xh-teal) 70%, var(--xh-line)),
              0 0 0 1px color-mix(in srgb, var(--xh-teal) 14%, transparent),
              0 24px 60px -30px color-mix(in srgb, var(--xh-teal) 85%, transparent);
  font-family: var(--md-code-font);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--xh-teal-text);
}

/* From the block to where the line divides: grey at rest, teal over it. */
.xh .xh-dual__b::before,
.xh .xh-dual__b::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 100%;
  width: calc(var(--xh-dual-sp) + 2px);
  height: 2px;
}

.xh .xh-dual__b::before {
  background: var(--xh-dual-c);
}

.xh .xh-dual__b::after {
  background: var(--xh-teal);
  transform-origin: 0 50%;
}

/* A property. Its line leaves the upright level with its first line of
   words, so it stays true when the words wrap: `0.59em` is the middle of
   that line, half of a line-height of 1.18. */
.xh .xh-dual__t {
  position: relative;
  grid-column: 2;
  padding-left: var(--xh-dual-in);
  font-size: 1.5rem;
  font-weight: 660;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--xh-fg);
}

.xh .xh-dual__t--key {
  margin-top: var(--xh-dual-gap);
  color: var(--xh-teal-text);
}

/* The upright, in two halves. They meet half-way between the properties,
   where the line from the block arrives, and each runs a pixel past the
   meeting point so no seam opens between them. */
.xh .xh-dual__t::before,
.xh .xh-dual__t--key::after {
  content: "";
  position: absolute;
  left: var(--xh-dual-sp);
  width: 2px;
}

.xh .xh-dual__t::before {
  top: calc(0.59em - 1px);
  bottom: calc(var(--xh-dual-gap) / -2 - 1px);
  background: var(--xh-dual-c);
}

.xh .xh-dual__t--key::before,
.xh .xh-dual__t--key::after {
  top: calc(var(--xh-dual-gap) / -2 - 1px);
  bottom: auto;
  height: calc(var(--xh-dual-gap) / 2 + 0.59em + 2px);
}

.xh .xh-dual__t--key::after {
  background: var(--xh-teal);
  transform-origin: 50% 0;
}

/* Its own line, from the upright out to the words. */
.xh .xh-dual__t > i {
  position: absolute;
  top: calc(0.59em - 1px);
  left: var(--xh-dual-sp);
  width: calc(var(--xh-dual-in) - var(--xh-dual-sp) - var(--xh-dual-end));
  height: 2px;
  background: var(--xh-dual-c);
}

.xh .xh-dual__t > i::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.34rem;
  z-index: 1;
  width: 0.68rem;
  height: 0.68rem;
  margin-top: -0.34rem;
  border: 2px solid var(--xh-dual-c);
  border-radius: 50%;
  background: var(--xh-sec-bg, var(--xh-bg));
}

.xh .xh-dual__t--key > i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--xh-teal);
  transform-origin: 0 50%;
}

.xh .xh-dual__t--key > i::before {
  border-color: var(--xh-teal);
  background: var(--xh-teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--xh-teal) 20%, transparent);
}

/* On entry the teal runs from the block, down the upright and out along the
   second branch, and the property lights when the line reaches it. */

.xh-js .xh .xh-dual__b::after {
  transform: scaleX(0);
  transition: transform 0.36s linear 0.4s;
}

.xh-js .xh .xh-dual__t--key::after {
  transform: scaleY(0);
  transition: transform 0.2s linear 0.76s;
}

.xh-js .xh .xh-dual__t--key > i::after {
  transform: scaleX(0);
  transition: transform 0.28s linear 0.96s;
}

.xh-js .xh .xh-dual__t--key > i::before {
  border-color: var(--xh-dual-c);
  background: var(--xh-sec-bg, var(--xh-bg));
  box-shadow: none;
  transition: border-color 0.3s ease 1.22s, background-color 0.3s ease 1.22s,
              box-shadow 0.3s ease 1.22s;
}

.xh-js .xh .xh-dual__t--key {
  color: var(--xh-fg);
  transition: color 0.45s ease 1.26s;
}

.xh-js .xh .xh-dual.is-in .xh-dual__b::after,
.xh-js .xh .xh-dual.is-in .xh-dual__t--key::after,
.xh-js .xh .xh-dual.is-in .xh-dual__t--key > i::after {
  transform: none;
}

.xh-js .xh .xh-dual.is-in .xh-dual__t--key > i::before {
  border-color: var(--xh-teal);
  background: var(--xh-teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--xh-teal) 20%, transparent);
}

.xh-js .xh .xh-dual.is-in .xh-dual__t--key {
  color: var(--xh-teal-text);
}

/* A rule in a governance record ----------------------------------------------
   The Blocks section's two panes each end in a record of three rules. While
   a pane is on screen its rules take turns, each lit for its own third of the
   loop (--xh-rl-t), the first once the drawing above has played (--xh-rl-o);
   before then, and between turns, a rule stands back. The drawing above
   lights what each rule names on the same clock (.xh-cut, in moves.css). */

.xh .xh-ruled {
  --xh-rl-t: 10.5s;
  --xh-rl-o: 2.8s;
}

.xh .xh-grant {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .xh-js .xh .xh-ruled.is-seen .xh-grant {
    opacity: 0.5;
    animation: xh-rl-on var(--xh-rl-t) linear infinite;
    animation-delay: calc(var(--r, 0) * var(--xh-rl-t) / 3 + var(--xh-rl-o));
    animation-fill-mode: none;
    animation-play-state: paused;
  }

  .xh-js .xh .xh-ruled.is-seen.is-live .xh-grant {
    animation-play-state: running;
  }
}

/* Lit for its own third of the loop. */
@keyframes xh-rl-on {
  0%, 30% { opacity: 1; }
  33.3%, 97% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Who acts now -----------------------------------------------------------------
   The enterprise delegates work to its roles, and the new one among them is
   an agent. It sits in the same seat as the employees either side of it.
   Each seat says whether authority and control is in place: it is for an
   employee, and for the agent it is missing. That is the whole picture; what
   an agent can now do follows as the sentence it is. */

.xh .xh-org {
  --xh-org-g: 0.8rem;      /* between two roles */
  --xh-org-d1: 2.3rem;     /* from the enterprise down to its roles */
  --xh-org-c: color-mix(in srgb, var(--xh-fg-3) 55%, var(--xh-line));
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 27rem;
  margin: 0 auto;
}

/* Light behind the agent. */
.xh .xh-org::before {
  content: "";
  position: absolute;
  top: -4.6rem;
  right: 0;
  left: 0;
  height: 26rem;
  background: radial-gradient(circle 13rem,
              color-mix(in srgb, var(--xh-teal) 15%, transparent) 0,
              transparent 64%);
  pointer-events: none;
}

.xh .xh-org__top,
.xh .xh-org__roles {
  position: relative;
  z-index: 1;
}

/* The enterprise, and its line down to the agent. */
.xh .xh-org__top {
  display: flex;
  justify-content: center;
}

.xh .xh-org__top::before,
.xh .xh-org__top::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - 1px);
  width: 2px;
  height: var(--xh-org-d1);
}

.xh .xh-org__top::before { background: var(--xh-org-c); }

.xh .xh-org__top::after {
  background: var(--xh-teal);
  transform-origin: 50% 0;
}

.xh .xh-org__ent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.36rem;
  padding: 0.66rem 1.35rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--xh-fg-3) 40%, var(--xh-line));
  border-radius: 10px;
  background: var(--xh-bg-card);
}

.xh .xh-org__ent > b,
.xh .xh-org__role > span {
  font-family: var(--md-code-font);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.xh .xh-org__ent > b {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--xh-fg);
}

.xh .xh-org__ent > span {
  font-size: 0.7rem;
  line-height: 1;
  color: var(--xh-fg-2);
}

/* Its roles. The two employees branch off the line. */
.xh .xh-org__roles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr) minmax(0, 1fr);
  gap: var(--xh-org-g);
  margin-top: var(--xh-org-d1);
}

.xh .xh-org__roles::before,
.xh .xh-org__roles::after {
  content: "";
  position: absolute;
  bottom: 100%;
  height: calc(var(--xh-org-d1) / 2);
  border: 0 solid var(--xh-org-c);
  border-top-width: 1.5px;
  pointer-events: none;
}

.xh .xh-org__roles::before {
  right: 50%;
  left: calc((100% - 2 * var(--xh-org-g)) / 6.44 - 0.75px);
  border-left-width: 1.5px;
  border-top-left-radius: 0.75rem;
}

.xh .xh-org__roles::after {
  right: calc((100% - 2 * var(--xh-org-g)) / 6.44 - 0.75px);
  left: 50%;
  border-right-width: 1.5px;
  border-top-right-radius: 0.75rem;
}

.xh .xh-org__role {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.15rem 0.5rem 0.9rem;
  border: 1px solid var(--xh-line);
  border-radius: 12px;
  background: var(--xh-bg-card);
  text-align: center;
}

/* Who holds the role. */
.xh .xh-org__role > i {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--xh-line);
  border-radius: 50%;
  background: var(--xh-bg);
  color: var(--xh-fg-3);
}

.xh .xh-org__role > i::before {
  content: "";
  width: 56%;
  height: 56%;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.6' r='4.1'/%3E%3Cpath d='M3.6 21.5c0-4.9 3.8-8 8.4-8s8.4 3.1 8.4 8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.6' r='4.1'/%3E%3Cpath d='M3.6 21.5c0-4.9 3.8-8 8.4-8s8.4 3.1 8.4 8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xh .xh-org__role > b {
  margin-top: 0.7rem;
  font-size: 0.84rem;
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--xh-fg-2);
}

.xh .xh-org__role > span {
  margin-top: 0.42rem;
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  color: var(--xh-fg-3);
}

/* What the role acts under, and whether it is there. */
.xh .xh-org__ac {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
  align-self: stretch;
  margin-top: auto;
}

.xh .xh-org__ac::before {
  content: "";
  align-self: stretch;
  height: 1px;
  margin: 0.95rem 0.3rem 0.38rem;
  background: var(--xh-line);
}

.xh .xh-org__ac > span {
  font-size: 0.6rem;
  line-height: 1.3;
  color: var(--xh-fg-3);
}

/* In place: a quiet light of its own, well short of the agent's. */
.xh .xh-org__ac > b {
  padding: 0.26rem 0.62rem 0.28rem;
  border: 1px solid color-mix(in srgb, var(--xh-teal) 50%, var(--xh-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--xh-teal) 9%, transparent);
  box-shadow: 0 0 0.9rem -0.15rem color-mix(in srgb, var(--xh-teal) 55%, transparent);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1;
  color: var(--xh-teal-text);
}

/* The agent: the same seat, lit, with that one thing missing. */
.xh .xh-org__role--agent {
  border: 1.5px solid color-mix(in srgb, var(--xh-teal) 78%, var(--xh-line));
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--xh-teal) 22%, var(--xh-bg-card)) 0,
              color-mix(in srgb, var(--xh-teal) 7%, var(--xh-bg-card)) 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--xh-teal) 16%, transparent),
              0 20px 54px -22px color-mix(in srgb, var(--xh-teal) 95%, transparent);
}

.xh .xh-org__role--agent > i {
  border-color: color-mix(in srgb, var(--xh-teal) 65%, var(--xh-line));
  background: color-mix(in srgb, var(--xh-teal) 20%, var(--xh-bg));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--xh-teal) 13%, transparent);
  color: var(--xh-teal-2);
}

.xh .xh-org__role--agent > i::before {
  width: 54%;
  height: 54%;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.2c.9 6.2 4.6 9.9 10.8 10.8-6.2.9-9.9 4.6-10.8 10.8C11.1 16.6 7.4 12.9 1.2 12 7.4 11.1 11.1 7.4 12 1.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.2c.9 6.2 4.6 9.9 10.8 10.8-6.2.9-9.9 4.6-10.8 10.8C11.1 16.6 7.4 12.9 1.2 12 7.4 11.1 11.1 7.4 12 1.2z'/%3E%3C/svg%3E");
}

.xh .xh-org__role--agent > b {
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: var(--xh-fg);
}

.xh .xh-org__role--agent > span {
  color: var(--xh-teal-text);
}

.xh .xh-org__role--agent .xh-org__ac::before {
  background: color-mix(in srgb, var(--xh-teal) 35%, var(--xh-line));
}

.xh .xh-org__ac--none > span {
  color: var(--xh-fg-2);
}

.xh .xh-org__ac--none > b {
  border: 1px dashed color-mix(in srgb, var(--xh-warn) 85%, transparent);
  background: color-mix(in srgb, var(--xh-warn) 10%, transparent);
  box-shadow: none;
  color: var(--xh-warn);
}

/* What an agent can now do, as the sentence it is. */
.xh .xh-org__can {
  position: relative;
  z-index: 1;
  max-width: 25rem;
  margin: 1.7rem auto 0;
  font-size: 0.8rem;
  line-height: 1.62;
  text-align: center;
  text-wrap: balance;
  color: var(--xh-fg-2);
}

.xh .xh-org__can > b {
  font-weight: 620;
  color: var(--xh-fg);
}

/* On entry the teal runs from the enterprise down to the agent, the agent
   lights, and then what it lacks is named. */

.xh-js .xh .xh-org__top::after {
  transform: scaleY(0);
  transition: transform 0.4s linear 0.3s;
}

.xh-js .xh .xh-org__role--agent {
  border-color: var(--xh-line);
  box-shadow: none;
  transition: border-color 0.5s ease 0.65s, box-shadow 0.7s ease 0.65s;
}

.xh-js .xh .xh-org__role--agent > i {
  border-color: var(--xh-line);
  box-shadow: none;
  color: var(--xh-fg-3);
  transition: border-color 0.5s ease 0.65s, box-shadow 0.5s ease 0.65s, color 0.5s ease 0.65s;
}

.xh-js .xh .xh-org__ac--none > b {
  opacity: 0;
  transition: opacity 0.5s ease 1.2s;
}

.xh-js .xh .xh-org.is-in .xh-org__top::after {
  transform: none;
}

.xh-js .xh .xh-org.is-in .xh-org__role--agent {
  border-color: color-mix(in srgb, var(--xh-teal) 78%, var(--xh-line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--xh-teal) 16%, transparent),
              0 20px 54px -22px color-mix(in srgb, var(--xh-teal) 95%, transparent);
}

.xh-js .xh .xh-org.is-in .xh-org__role--agent > i {
  border-color: color-mix(in srgb, var(--xh-teal) 65%, var(--xh-line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--xh-teal) 13%, transparent);
  color: var(--xh-teal-2);
}

.xh-js .xh .xh-org.is-in .xh-org__ac--none > b {
  opacity: 1;
}

/* An execution with its policy wound into it -----------------------------------
   The agent's request is a thin grey thread that ends on XCK's edge. Inside
   XCK the execution is XCK's own line, thick and teal, and policy and
   authority are two strands wound round it for its whole length: they are in
   the execution, never across it. The line leaves XCK for the real effect,
   and evidence comes off it.

   Nothing in the drawing stands across the line. A bar across a path is a
   check; a strand wound into it is enforcement as part of execution, which
   is the claim this chapter makes. */

.xh .xh-weave {
  --xh-weave-c: color-mix(in srgb, var(--xh-fg-3) 60%, var(--xh-line));
  --xh-weave-s: color-mix(in srgb, var(--xh-teal) 80%, var(--xh-line));
  container-type: inline-size;
  width: 100%;
  max-width: 27rem;
  margin: 0 auto;
}

.xh .xh-weave__pic {
  position: relative;
  aspect-ratio: 520 / 620;
}

.xh .xh-weave__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* XCK: lit from inside. */
.xh .xh-weave__g0 { stop-color: color-mix(in srgb, var(--xh-teal) 26%, transparent); }
.xh .xh-weave__g1 { stop-color: color-mix(in srgb, var(--xh-teal) 4%, transparent); }

.xh .xh-weave__core {
  fill: url(#xh-weave-glow);
  stroke: color-mix(in srgb, var(--xh-teal) 80%, var(--xh-line));
  stroke-width: 1.5;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--xh-teal) 38%, transparent));
}

.xh .xh-weave__halo {
  stroke: color-mix(in srgb, var(--xh-teal) 26%, transparent);
  stroke-width: 1;
}

.xh .xh-weave__ring {
  stroke: color-mix(in srgb, var(--xh-teal) 15%, transparent);
  stroke-width: 1;
}

/* The agent and its request. */
.xh .xh-weave__orb {
  fill: var(--xh-bg-card);
  stroke: var(--xh-weave-c);
  stroke-width: 1.5;
}

.xh .xh-weave__glyph {
  fill: var(--xh-fg-2);
  stroke: none;
}

.xh .xh-weave__ask {
  stroke: var(--xh-weave-c);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.xh .xh-weave__end {
  fill: var(--xh-sec-bg, var(--xh-bg));
  stroke: var(--xh-weave-c);
  stroke-width: 1.6;
}

/* Policy and authority: in from outside, then round the execution. */
.xh .xh-weave__in,
.xh .xh-weave__s {
  stroke: var(--xh-teal-2);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Authority is the paler of the two, so the eye can follow each strand. */
.xh .xh-weave__in--a,
.xh .xh-weave__s--a {
  stroke: color-mix(in srgb, var(--xh-teal) 45%, var(--xh-fg-2));
}

.xh .xh-weave__wind--back {
  opacity: 0.42;
}

/* The execution. */
.xh .xh-weave__run {
  stroke: var(--xh-teal);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--xh-teal) 75%, transparent));
}

.xh .xh-weave__start {
  fill: var(--xh-teal);
  stroke: color-mix(in srgb, var(--xh-teal) 26%, transparent);
  stroke-width: 9;
}

/* Evidence, and the effect. */
.xh .xh-weave__ev {
  stroke: var(--xh-weave-s);
  stroke-width: 2;
  stroke-linecap: round;
}

.xh .xh-weave__rec {
  stroke: var(--xh-teal-text);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.xh .xh-weave__hit {
  stroke: var(--xh-teal);
  stroke-width: 1.5;
}

.xh .xh-weave__hit--far {
  stroke-opacity: 0.32;
  stroke-width: 1;
}

.xh .xh-weave__dot {
  fill: var(--xh-teal);
  stroke: none;
}

/* The travelling points are drawn only while they travel. */
.xh .xh-weave__ask--go,
.xh .xh-weave__run--go {
  opacity: 0;
}

/* The words, placed over the drawing in its own proportions. */
.xh .xh-weave__l {
  position: absolute;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
  transform: translateY(-50%);
}

.xh .xh-weave__l--who,
.xh .xh-weave__l--does {
  display: flex;
  flex-direction: column;
}

.xh .xh-weave__l--who {
  top: 6.45%;
  left: 57%;
  gap: 0.36rem;
}

.xh .xh-weave__l--who > b,
.xh .xh-weave__out > b {
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: -0.016em;
  color: var(--xh-fg);
}

.xh .xh-weave__l--who > span,
.xh .xh-weave__l--does > span {
  font-family: var(--md-code-font);
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--xh-fg-3);
}

.xh .xh-weave__l--p,
.xh .xh-weave__l--a,
.xh .xh-weave__l--ev {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--xh-teal-text);
}

.xh .xh-weave__l--p { top: 30.6%; right: 83.3%; }
.xh .xh-weave__l--a { top: 30.6%; left: 83.3%; }
.xh .xh-weave__l--ev { top: 82.6%; left: 79.2%; }

.xh .xh-weave__l--k {
  top: 51.9%;
  right: 59.6%;
  font-size: clamp(1.3rem, 7.2cqw, 1.95rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--xh-teal-text);
}

.xh .xh-weave__l--does {
  top: 51.9%;
  left: 59.6%;
  gap: 0.42rem;
}

.xh .xh-weave__l--does > span:first-child {
  color: var(--xh-fg);
}

.xh .xh-weave__out {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  text-align: center;
}

.xh .xh-weave__out > span {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--xh-fg-2);
}

/* On entry the request comes down and ends. XCK lights, its execution starts
   inside it, policy and authority come in and wind round it as it runs, and
   it leaves for the effect, with evidence coming off on the way. */

.xh-js .xh .xh-weave__ask:not(.xh-weave__ask--go),
.xh-js .xh .xh-weave__in,
.xh-js .xh .xh-weave__run:not(.xh-weave__run--go),
.xh-js .xh .xh-weave__ev {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.xh-js .xh .xh-weave__ask:not(.xh-weave__ask--go) { transition: stroke-dashoffset 0.4s linear 0.3s; }
.xh-js .xh .xh-weave__in { transition: stroke-dashoffset 0.35s linear 1.08s; }
.xh-js .xh .xh-weave__run:not(.xh-weave__run--go) { transition: stroke-dashoffset 1.5s linear 1.3s; }
.xh-js .xh .xh-weave__ev { transition: stroke-dashoffset 0.35s linear 2.35s; }

.xh-js .xh .xh-weave__wind {
  clip-path: inset(-6px -6px 100% -6px);
  transition: clip-path 0.83s linear 1.43s;
}

.xh-js .xh .xh-weave__end,
.xh-js .xh .xh-weave__halo,
.xh-js .xh .xh-weave__ring,
.xh-js .xh .xh-weave__start,
.xh-js .xh .xh-weave__rec,
.xh-js .xh .xh-weave__hit,
.xh-js .xh .xh-weave__dot {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.xh-js .xh .xh-weave__end { transition-delay: 0.68s; }
.xh-js .xh .xh-weave__halo,
.xh-js .xh .xh-weave__ring { transition-delay: 0.85s; }
.xh-js .xh .xh-weave__start { transition-delay: 1.2s; }
.xh-js .xh .xh-weave__rec { transition-delay: 2.7s; }
.xh-js .xh .xh-weave__hit,
.xh-js .xh .xh-weave__dot { transition-delay: 2.8s; }

.xh-js .xh .xh-weave__core {
  fill-opacity: 0;
  stroke: var(--xh-line);
  filter: none;
  transition: fill-opacity 0.7s ease 0.85s, stroke 0.6s ease 0.85s, filter 0.8s ease 0.85s;
}

.xh-js .xh .xh-weave__l--k,
.xh-js .xh .xh-weave__l--does,
.xh-js .xh .xh-weave__l--p,
.xh-js .xh .xh-weave__l--a,
.xh-js .xh .xh-weave__l--ev,
.xh-js .xh .xh-weave__out {
  opacity: 0.28;
  transition: opacity 0.45s ease;
}

.xh-js .xh .xh-weave__l--k,
.xh-js .xh .xh-weave__l--does { transition-delay: 0.9s; }
.xh-js .xh .xh-weave__l--p,
.xh-js .xh .xh-weave__l--a { transition-delay: 1.05s; }
.xh-js .xh .xh-weave__l--ev { transition-delay: 2.7s; }
.xh-js .xh .xh-weave__out { transition-delay: 2.8s; }

.xh-js .xh .xh-weave.is-in .xh-weave__ask:not(.xh-weave__ask--go),
.xh-js .xh .xh-weave.is-in .xh-weave__in,
.xh-js .xh .xh-weave.is-in .xh-weave__run:not(.xh-weave__run--go),
.xh-js .xh .xh-weave.is-in .xh-weave__ev {
  stroke-dashoffset: 0;
}

.xh-js .xh .xh-weave.is-in .xh-weave__wind {
  clip-path: inset(-6px);
}

.xh-js .xh .xh-weave.is-in .xh-weave__end,
.xh-js .xh .xh-weave.is-in .xh-weave__halo,
.xh-js .xh .xh-weave.is-in .xh-weave__ring,
.xh-js .xh .xh-weave.is-in .xh-weave__start,
.xh-js .xh .xh-weave.is-in .xh-weave__rec,
.xh-js .xh .xh-weave.is-in .xh-weave__hit,
.xh-js .xh .xh-weave.is-in .xh-weave__dot,
.xh-js .xh .xh-weave.is-in .xh-weave__l,
.xh-js .xh .xh-weave.is-in .xh-weave__out {
  opacity: 1;
}

.xh-js .xh .xh-weave.is-in .xh-weave__core {
  fill-opacity: 1;
  stroke: color-mix(in srgb, var(--xh-teal) 80%, var(--xh-line));
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--xh-teal) 38%, transparent));
}

/* After that it keeps running: a request comes down, and an execution leaves.
   Only the two travelling points move. */
@media (prefers-reduced-motion: no-preference) {
  .xh-js .xh .xh-weave.is-in .xh-weave__ask--go {
    stroke: var(--xh-fg);
    stroke-width: 2.2;
    stroke-dasharray: 0.2 2;
    animation: xh-weave-ask 5.2s linear 3.6s infinite;
  }

  .xh-js .xh .xh-weave.is-in .xh-weave__run--go {
    stroke: #fff;
    stroke-width: 4;
    stroke-dasharray: 0.07 2;
    animation: xh-weave-run 5.2s linear 3.6s infinite;
  }
}

@keyframes xh-weave-ask {
  0% { stroke-dashoffset: 0.2; opacity: 0.9; }
  14% { stroke-dashoffset: -1; opacity: 0.9; }
  14.1%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

@keyframes xh-weave-run {
  0%, 17% { stroke-dashoffset: 0.07; opacity: 0; }
  17.1% { stroke-dashoffset: 0.07; opacity: 0.95; }
  58% { stroke-dashoffset: -1; opacity: 0.95; }
  58.1%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

/* The other way, in the same hand ------------------------------------------------
   Post-hoc governance: the agent's action is one plain line straight to its
   effect, with nothing wound into it, and a monitor beside the path notices
   afterwards. The line of sight is dashed, as everything beside a path is on
   this page. */

.xh .xh-after {
  --xh-after-c: color-mix(in srgb, var(--xh-fg-3) 60%, var(--xh-line));
  --xh-after-w: color-mix(in srgb, var(--xh-warn) 80%, var(--xh-line));
  width: 100%;
  max-width: 23rem;
}

.xh .xh-after__pic {
  position: relative;
  aspect-ratio: 520 / 310;
}

.xh .xh-after__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.xh .xh-after__orb {
  fill: var(--xh-bg-card);
  stroke: var(--xh-after-c);
  stroke-width: 1.5;
}

.xh .xh-after__glyph {
  fill: var(--xh-fg-2);
  stroke: none;
}

.xh .xh-after__act {
  stroke: var(--xh-after-c);
  stroke-width: 2;
  stroke-linecap: round;
}

.xh .xh-after__hit {
  stroke: var(--xh-after-w);
  stroke-width: 1.5;
}

.xh .xh-after__dot {
  fill: var(--xh-warn);
  stroke: none;
}

.xh .xh-after__see {
  stroke: var(--xh-after-c);
  stroke-width: 1.5;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.xh .xh-after__scr {
  fill: color-mix(in srgb, var(--xh-warn) 14%, transparent);
  stroke: var(--xh-after-w);
  stroke-width: 1.5;
}

.xh .xh-after__std {
  stroke: var(--xh-after-c);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.xh .xh-after__alert {
  stroke: var(--xh-warn);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.xh .xh-after__l {
  position: absolute;
  font-family: var(--md-code-font);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--xh-fg-2);
  transform: translateY(-50%);
}

.xh .xh-after__l--who { top: 12.3%; left: 28.5%; }
.xh .xh-after__l--act { top: 41.5%; left: 25.5%; }

.xh .xh-after__l--hit,
.xh .xh-after__l--see,
.xh .xh-after__l--red {
  transform: translate(-50%, -50%);
}

.xh .xh-after__l--hit { top: 84.5%; left: 21.15%; color: var(--xh-warn); }
.xh .xh-after__l--see { top: 86%; left: 64.8%; }
.xh .xh-after__l--red { top: 94%; left: 64.8%; color: var(--xh-warn); }

/* On entry the action goes straight through, the money moves, and only then
   does anything look. */

.xh-js .xh .xh-after__act {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.45s linear 0.35s;
}

.xh-js .xh .xh-after__hit,
.xh-js .xh .xh-after__dot,
.xh-js .xh .xh-after__see,
.xh-js .xh .xh-after__alert,
.xh-js .xh .xh-after__l--hit,
.xh-js .xh .xh-after__l--see,
.xh-js .xh .xh-after__l--red {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.xh-js .xh .xh-after__hit,
.xh-js .xh .xh-after__dot,
.xh-js .xh .xh-after__l--hit { transition-delay: 0.8s; }
.xh-js .xh .xh-after__see,
.xh-js .xh .xh-after__l--see { transition-delay: 1.6s; }
.xh-js .xh .xh-after__alert,
.xh-js .xh .xh-after__l--red { transition-delay: 2.1s; }

.xh-js .xh .xh-after__scr {
  fill: transparent;
  stroke: var(--xh-after-c);
  transition: fill 0.4s ease 2.1s, stroke 0.4s ease 2.1s;
}

.xh-js .xh .xh-after.is-in .xh-after__act {
  stroke-dashoffset: 0;
}

.xh-js .xh .xh-after.is-in .xh-after__hit,
.xh-js .xh .xh-after.is-in .xh-after__dot,
.xh-js .xh .xh-after.is-in .xh-after__see,
.xh-js .xh .xh-after.is-in .xh-after__alert,
.xh-js .xh .xh-after.is-in .xh-after__l {
  opacity: 1;
}

.xh-js .xh .xh-after.is-in .xh-after__scr {
  fill: color-mix(in srgb, var(--xh-warn) 14%, transparent);
  stroke: var(--xh-after-w);
}

/* The fingerprint -------------------------------------------------------------
   What the kernel records, drawn as what it adds up to. Twelve kinds of fact
   run in as twelve lines and become the twelve ridges of a fingerprint, the
   execution evidence graph. One line leaves it, passes the formulas, and
   becomes the agent's performance: a bar for each step. */

.xh .xh-print {
  --xh-print-row: 1.55rem;   /* the height of one fact */
  --xh-print-c: color-mix(in srgb, var(--xh-fg-3) 55%, var(--xh-line));
  --xh-print-s: color-mix(in srgb, var(--xh-teal) 75%, var(--xh-line));
  display: grid;
  grid-template-columns: auto 7rem 11rem minmax(1.4rem, 3.4rem) auto minmax(1.4rem, 3.4rem) auto;
  grid-template-areas:
    "k    .     .    .  . .  ."
    "list wires mark l1 f l2 score";
  justify-content: center;
  align-items: center;
  row-gap: 0.75rem;
}

.xh .xh-print__k,
.xh .xh-print__mark > span,
.xh .xh-print__f > span,
.xh .xh-print__score > span {
  font-family: var(--md-code-font);
  font-size: 0.54rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--xh-fg-3);
}

.xh .xh-print__k { grid-area: k; }

/* The facts: each one a name and the start of its line. */
.xh .xh-print__list {
  grid-area: list;
  display: grid;
  grid-auto-rows: var(--xh-print-row);
  align-items: center;
  font-size: 0.74rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--xh-fg);
}

.xh .xh-print__list > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.xh .xh-print__list > div::after {
  content: "";
  flex: 1;
  min-width: 0.9rem;
  height: 1.5px;
  background: var(--xh-print-s);
  transform-origin: 0 50%;
}

/* Their lines, running together into the fingerprint. */
.xh .xh-print__wires {
  grid-area: wires;
  width: 7rem;
  height: calc(12 * var(--xh-print-row));
  overflow: visible;
}

.xh .xh-print__w {
  stroke: var(--xh-print-s);
  stroke-width: 0.75;
}

.xh .xh-print__w--go {
  stroke: var(--xh-teal-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0;
}

/* The fingerprint. */
.xh .xh-print__mark {
  grid-area: mark;
  position: relative;
  width: 11rem;
  height: 12.32rem;
  margin-left: -0.45rem;
}

.xh .xh-print__art {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--xh-teal) 36%, transparent));
}

.xh .xh-print__r {
  stroke: var(--xh-teal);
  stroke-width: 2.6;
  stroke-linecap: round;
}

/* What each part is called, under it. */
.xh .xh-print__mark > b,
.xh .xh-print__f > b,
.xh .xh-print__score > b,
.xh .xh-print__mark > span,
.xh .xh-print__f > span,
.xh .xh-print__score > span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.xh .xh-print__mark > b,
.xh .xh-print__f > b,
.xh .xh-print__score > b {
  top: calc(100% + 0.7rem);
  font-size: 0.86rem;
  font-weight: 660;
  line-height: 1;
  letter-spacing: -0.016em;
  white-space: nowrap;
  color: var(--xh-teal-text);
}

.xh .xh-print__mark > span,
.xh .xh-print__f > span,
.xh .xh-print__score > span {
  top: calc(100% + 1.95rem);
}

/* From the fingerprint, through the formulas, to the measure. */
.xh .xh-print__link {
  height: 2px;
  background: var(--xh-teal);
  transform-origin: 0 50%;
}

.xh .xh-print__link--1 { grid-area: l1; }
.xh .xh-print__link--2 { grid-area: l2; }

.xh .xh-print__f {
  grid-area: f;
  position: relative;
  display: grid;
  place-items: center;
  width: 3.7rem;
  height: 3.7rem;
  border: 1.5px solid var(--xh-teal);
  border-radius: 50%;
  background: color-mix(in srgb, var(--xh-teal) 15%, var(--xh-sec-bg, var(--xh-bg)));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--xh-teal) 12%, transparent),
              0 0 2.2rem -0.3rem color-mix(in srgb, var(--xh-teal) 65%, transparent);
}

.xh .xh-print__f > i {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
  color: var(--xh-teal-2);
}

.xh .xh-print__score {
  grid-area: score;
  position: relative;
}

.xh .xh-print__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.34rem;
  height: 6.6rem;
  padding: 0 0.25rem;
  border-bottom: 1.5px solid var(--xh-print-c);
}

.xh .xh-print__bars > i {
  width: 0.6rem;
  height: calc(var(--h) * 100%);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--xh-teal-2), color-mix(in srgb, var(--xh-teal) 45%, transparent));
  transform-origin: 50% 100%;
}

/* On entry the facts light one after another, their lines run in, and each
   line becomes a ridge. Then the fingerprint is read: the line runs on through
   the formulas, and the performance rises a step at a time. */

.xh-js .xh .xh-print__list > div {
  opacity: 0.3;
  transition: opacity 0.4s ease calc(0.3s + var(--k) * 70ms);
}

.xh-js .xh .xh-print__list > div::after {
  transform: scaleX(0);
  transition: transform 0.3s linear calc(0.36s + var(--k) * 70ms);
}

.xh-js .xh .xh-print__w:not(.xh-print__w--go),
.xh-js .xh .xh-print__r {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.xh-js .xh .xh-print__w:not(.xh-print__w--go) { transition: stroke-dashoffset 0.45s linear calc(0.6s + var(--k) * 70ms); }
.xh-js .xh .xh-print__r { transition: stroke-dashoffset 0.75s ease calc(1.05s + var(--k) * 80ms); }

.xh-js .xh .xh-print__mark > b,
.xh-js .xh .xh-print__mark > span,
.xh-js .xh .xh-print__f,
.xh-js .xh .xh-print__score > b,
.xh-js .xh .xh-print__score > span {
  opacity: 0.3;
  transition: opacity 0.5s ease 2.2s;
}

.xh-js .xh .xh-print__f { transition-delay: 2.6s; }

.xh-js .xh .xh-print__score > b,
.xh-js .xh .xh-print__score > span { transition-delay: 3.7s; }

.xh-js .xh .xh-print__link {
  transform: scaleX(0);
  transition: transform 0.3s linear 2.3s;
}

.xh-js .xh .xh-print__link--2 { transition-delay: 2.75s; }

.xh-js .xh .xh-print__bars > i {
  transform: scaleY(0);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) calc(3.05s + var(--k) * 80ms);
}

.xh-js .xh .xh-print.is-in .xh-print__list > div,
.xh-js .xh .xh-print.is-in .xh-print__mark > b,
.xh-js .xh .xh-print.is-in .xh-print__mark > span,
.xh-js .xh .xh-print.is-in .xh-print__f,
.xh-js .xh .xh-print.is-in .xh-print__score > b,
.xh-js .xh .xh-print.is-in .xh-print__score > span {
  opacity: 1;
}

.xh-js .xh .xh-print.is-in .xh-print__list > div::after,
.xh-js .xh .xh-print.is-in .xh-print__link,
.xh-js .xh .xh-print.is-in .xh-print__bars > i {
  transform: none;
}

.xh-js .xh .xh-print.is-in .xh-print__w:not(.xh-print__w--go),
.xh-js .xh .xh-print.is-in .xh-print__r {
  stroke-dashoffset: 0;
}

/* After that the facts keep arriving: a point runs in along each line in turn. */
@media (prefers-reduced-motion: no-preference) {
  .xh-js .xh .xh-print.is-in .xh-print__w--go {
    stroke-dasharray: 0.06 2;
    animation: xh-print-in 6s linear calc(4.4s + var(--k) * 0.5s) infinite;
  }
}

@keyframes xh-print-in {
  0% { stroke-dashoffset: 0.06; opacity: 1; }
  20% { stroke-dashoffset: -1; opacity: 1; }
  20.1%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

/* Narrow screens ----------------------------------------------------------- */

/* Too narrow for the block beside its properties: the block stands on top,
   and the line runs down from it, past the first property, to the second. */
@media screen and (max-width: 50em) {
  .xh .xh-dual {
    --xh-dual-sp: 1.3rem;
    --xh-dual-in: 3.3rem;
    --xh-dual-end: 0.8rem;
    --xh-dual-gap: 1.1rem;
    --xh-dual-top: 1rem;   /* between the block and the first property */
    grid-template-columns: minmax(0, auto);
    justify-content: start;
  }

  .xh .xh-dual__b {
    grid-row: auto;
    justify-self: start;
    width: 6.6rem;
    height: 3.7rem;
    margin-bottom: var(--xh-dual-top);
  }

  .xh .xh-dual__b::before,
  .xh .xh-dual__b::after {
    display: none;
  }

  .xh .xh-dual__t {
    grid-column: 1;
  }

  .xh .xh-dual__t {
    font-size: 1.3rem;
  }

  .xh .xh-dual__t::before {
    top: calc(-1 * var(--xh-dual-top));
    bottom: calc(-1 * var(--xh-dual-gap));
  }

  .xh .xh-dual__t:not(.xh-dual__t--key)::after {
    content: "";
    position: absolute;
    top: calc(-1 * var(--xh-dual-top));
    bottom: calc(-1 * var(--xh-dual-gap));
    left: var(--xh-dual-sp);
    width: 2px;
    background: var(--xh-teal);
    transform-origin: 50% 0;
  }

  .xh .xh-dual__t--key::before,
  .xh .xh-dual__t--key::after {
    top: calc(-1 * var(--xh-dual-gap));
    bottom: auto;
    height: calc(var(--xh-dual-gap) + 0.59em + 1px);
  }

  .xh-js .xh .xh-dual__t:not(.xh-dual__t--key)::after {
    transform: scaleY(0);
    transition: transform 0.3s linear 0.4s;
  }

  .xh-js .xh .xh-dual.is-in .xh-dual__t:not(.xh-dual__t--key)::after {
    transform: none;
  }

  .xh-js .xh .xh-dual__t--key::after { transition-delay: 0.7s; }
  .xh-js .xh .xh-dual__t--key > i::after { transition-delay: 0.9s; }
}

@media screen and (max-width: 60em) {
  .xh .xh-neq { font-size: 2.3rem; }
  .xh .xh-trio b { font-size: 1.22rem; }
  .xh .xh-trio .is-key b { font-size: 1.7rem; }

  /* The fingerprint: the same story, top to bottom. */
  .xh .xh-print {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "k" "list" "mark" "l1" "f" "l2" "score";
    justify-items: center;
    row-gap: 0;
  }

  .xh .xh-print__k {
    justify-self: start;
    margin-bottom: 0.9rem;
  }

  .xh .xh-print__list {
    justify-self: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 0.6rem 1rem;
    margin-bottom: 1.8rem;
    line-height: 1.3;
    white-space: normal;
  }

  .xh .xh-print__list > div { align-items: baseline; }

  .xh .xh-print__list > div::after { display: none; }

  .xh .xh-print__list > div::before {
    content: "";
    flex: none;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: var(--xh-teal);
    transform: translateY(-0.12em);
  }

  .xh .xh-print__wires { display: none; }

  .xh .xh-print__mark { margin: 0 0 3.5rem; }
  .xh .xh-print__f { margin-bottom: 3.4rem; }
  .xh .xh-print__score { margin-bottom: 3.2rem; }

  .xh .xh-print__link {
    width: 2px;
    height: 1.7rem;
    transform-origin: 50% 0;
  }

  .xh-js .xh .xh-print__link { transform: scaleY(0); }
}

@media screen and (max-width: 38em) {
  .xh .xh-trio > div { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .xh .xh-neq { font-size: 1.7rem; }
  .xh .xh-path { font-size: 0.56rem; }
  .xh .xh-path--gate { grid-template-columns: auto minmax(0.5rem, 1fr) auto minmax(0.5rem, 1fr) auto; }
  .xh .xh-path__node { padding: 0.45rem 0.5rem; white-space: normal; }
  /* The narrowest phones: the checked path keeps inside its card. */
  @media (max-width: 24em) {
    .xh .xh-path--gate { font-size: 0.5rem; }
    .xh .xh-path--gate .xh-path__node,
    .xh .xh-path--gate .xh-path__out > span { padding-right: 0.35rem; padding-left: 0.35rem; }
  }
  .xh .xh-path__out > span { white-space: normal; }
  .xh .xh-dual__t { font-size: 1.2rem; }

  /* The seats stay three across; what is under each may take two lines. */
  .xh .xh-org { --xh-org-g: 0.5rem; }
  .xh .xh-org__role { padding: 0.9rem 0.3rem 0.75rem; }
  .xh .xh-org__role > b { font-size: 0.74rem; }
  .xh .xh-org__role--agent > b { font-size: 0.88rem; }
  .xh .xh-org__ac > span { font-size: 0.56rem; }
  .xh .xh-org__ac > b { padding: 0.24rem 0.5rem 0.26rem; font-size: 0.62rem; }

  /* The words on the drawings keep their places; they only get smaller. */
  .xh .xh-weave__l--who > b { font-size: 0.8rem; }
  .xh .xh-weave__l--who > span { font-size: 0.5rem; letter-spacing: 0.08em; }
  .xh .xh-weave__l--p,
  .xh .xh-weave__l--a,
  .xh .xh-weave__l--ev { font-size: 0.62rem; }
  .xh .xh-weave__l--does > span { font-size: 0.48rem; letter-spacing: 0.08em; }
  .xh .xh-after__l { font-size: 0.56rem; }
}

@media (prefers-reduced-motion: reduce) {
  .xh-js .xh .xh-rail.xh-rail--step::after,
  .xh-js .xh .xh-rail.xh-rail--step.is-in::after {
    transform: none;
    transition: none;
  }

  .xh-js .xh .xh-rail--step .xh-rail__n,
  .xh-js .xh .xh-rail--step .xh-rail__n > span,
  .xh-js .xh .xh-rail--step .xh-rail__k {
    transition: none;
  }

  .xh-js .xh .xh-rail::after,
  .xh-js .xh .xh-path--gate .xh-path__seg::before,
  .xh-js .xh .xh-card--line::before,
  .xh-js .xh .xh-drop {
    transform: none;
    transition: none;
  }

  .xh-js .xh .xh-dual__b::after,
  .xh-js .xh .xh-dual__t::after,
  .xh-js .xh .xh-dual__t:not(.xh-dual__t--key)::after,
  .xh-js .xh .xh-dual__t--key > i::after {
    transform: none;
    transition: none;
  }

  .xh-js .xh .xh-dual__t--key > i::before {
    border-color: var(--xh-teal);
    background: var(--xh-teal);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--xh-teal) 20%, transparent);
    transition: none;
  }

  .xh-js .xh .xh-dual__t--key {
    color: var(--xh-teal-text);
    transition: none;
  }

  .xh-js .xh .xh-org__top::after {
    transform: none;
    transition: none;
  }

  .xh-js .xh .xh-org__role--agent {
    border-color: color-mix(in srgb, var(--xh-teal) 78%, var(--xh-line));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--xh-teal) 16%, transparent),
                0 20px 54px -22px color-mix(in srgb, var(--xh-teal) 95%, transparent);
    transition: none;
  }

  .xh-js .xh .xh-org__role--agent > i {
    border-color: color-mix(in srgb, var(--xh-teal) 65%, var(--xh-line));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--xh-teal) 13%, transparent);
    color: var(--xh-teal-2);
    transition: none;
  }

  .xh-js .xh .xh-org__ac--none > b {
    opacity: 1;
    transition: none;
  }

  .xh-js .xh .xh-weave__ask:not(.xh-weave__ask--go),
  .xh-js .xh .xh-weave__in,
  .xh-js .xh .xh-weave__run:not(.xh-weave__run--go),
  .xh-js .xh .xh-weave__ev,
  .xh-js .xh .xh-after__act {
    stroke-dashoffset: 0;
    transition: none;
  }

  .xh-js .xh .xh-weave__wind {
    clip-path: none;
    transition: none;
  }

  .xh-js .xh .xh-weave__end,
  .xh-js .xh .xh-weave__halo,
  .xh-js .xh .xh-weave__ring,
  .xh-js .xh .xh-weave__start,
  .xh-js .xh .xh-weave__rec,
  .xh-js .xh .xh-weave__hit,
  .xh-js .xh .xh-weave__dot,
  .xh-js .xh .xh-weave__l,
  .xh-js .xh .xh-weave__out,
  .xh-js .xh .xh-after__hit,
  .xh-js .xh .xh-after__dot,
  .xh-js .xh .xh-after__see,
  .xh-js .xh .xh-after__alert,
  .xh-js .xh .xh-after__l {
    opacity: 1;
    transition: none;
  }

  .xh-js .xh .xh-weave__core {
    fill-opacity: 1;
    stroke: color-mix(in srgb, var(--xh-teal) 80%, var(--xh-line));
    filter: drop-shadow(0 0 30px color-mix(in srgb, var(--xh-teal) 38%, transparent));
    transition: none;
  }

  .xh-js .xh .xh-after__scr {
    fill: color-mix(in srgb, var(--xh-warn) 14%, transparent);
    stroke: var(--xh-after-w);
    transition: none;
  }

  .xh-js .xh .xh-print__list > div,
  .xh-js .xh .xh-print__mark > b,
  .xh-js .xh .xh-print__mark > span,
  .xh-js .xh .xh-print__f,
  .xh-js .xh .xh-print__score > b,
  .xh-js .xh .xh-print__score > span {
    opacity: 1;
    transition: none;
  }

  .xh-js .xh .xh-print__list > div::after,
  .xh-js .xh .xh-print__link,
  .xh-js .xh .xh-print__bars > i {
    transform: none;
    transition: none;
  }

  .xh-js .xh .xh-print__w:not(.xh-print__w--go),
  .xh-js .xh .xh-print__r {
    stroke-dashoffset: 0;
    transition: none;
  }
}
