/* ============================================================================
   The harness, drawn as a gantry crane.

   A line drawing on canvas with its part names laid over it in HTML, so the
   names stay selectable text and scale with the page. Two sizes: the large
   one names all twelve parts; the small one names nothing and is captioned by
   whatever you point at. Colours come from the site's own tokens; the canvas
   itself is painted by gantry.js, which carries the same values.
   ========================================================================= */

/* ---------- the large one ---------- */
.gy{position:relative;width:100%;margin-top:22px}
.gan{position:relative;width:100%;background:var(--paper);
  user-select:none;-webkit-user-select:none}
.gan-cv{position:absolute;inset:0;width:100%;height:100%;display:block}
.gan-labs{position:absolute;inset:0;isolation:isolate}
.gan-lab{position:absolute;padding:7px 9px;line-height:1;
  font-family:var(--mono);font-size:11px;letter-spacing:.06em;
  color:var(--muted);white-space:nowrap;cursor:default;
  transition:color .25s ease;-webkit-tap-highlight-color:transparent}
.gan-lab.a-end{transform:translate(-100%,-50%)}
.gan-lab.a-start{transform:translate(0,-50%)}
.gan-lab[data-on="true"]{color:var(--signal)}
/* The parts that arrive filled in for your industry carry the harness under
   the name. It survives pointing at them, which turns the whole name green. */
.gan-lab.dom{text-decoration:underline;text-underline-offset:4px;
  text-decoration-thickness:1px;
  text-decoration-color:color-mix(in srgb,var(--signal) 55%,transparent)}
.gan-note a{color:var(--muted);text-decoration:underline;text-underline-offset:4px;
  text-decoration-thickness:1px;
  text-decoration-color:color-mix(in srgb,var(--signal) 55%,transparent);
  transition:color .25s ease}
.gan-note a:hover,.gan-note a:focus-visible{color:var(--signal)}
/* the names arrive once the drawing has formed itself in */
.gan .gan-labs{opacity:0;transition:opacity .7s ease}
.gan.gan-in .gan-labs{opacity:1}

/* the pale tile that glides to whichever name is pointed at */
.gan-labs .tile{position:absolute;left:0;top:0;width:0;height:0;z-index:-1;
  pointer-events:none;opacity:0;background:var(--wash);
  border-left:2px solid var(--fill);
  will-change:transform,opacity;
  transition:transform .42s cubic-bezier(.22,1,.36,1),opacity .25s ease}

.gan-note{font-family:var(--mono);font-size:11px;letter-spacing:.06em;
  color:var(--faint);margin:10px 0 0}

/* ---------- the small one ---------- */
.gm{display:flex;flex-direction:column;width:100%}
.gm-cv{position:relative;display:block;width:100%;aspect-ratio:446 / 340;
  contain:strict;cursor:default;-webkit-tap-highlight-color:transparent}
.gm-cv canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.gm-row{display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:0 6%;font-family:var(--mono);font-size:11px;letter-spacing:.06em}
.gm-name{color:var(--faint);transition:color .25s ease}
.gm-cv:hover~.gm-row .gm-name{color:var(--muted)}
.gm-go{display:inline-flex;align-items:center;gap:10px;padding:8px 0;
  color:var(--signal);text-decoration:none;transition:opacity .25s ease;opacity:.85}
.gm-go:hover,.gm-go:focus-visible{opacity:1}
.gm-go svg{width:26px;height:10px;display:block;flex:none}

@media (prefers-reduced-motion: reduce){
  .gan-labs .tile{transition:opacity .25s ease}
}

/* The drawing keeps a width its names still fit at, and the box scrolls
   sideways instead. Squeezed into a phone column the lines would be a smudge
   and the names would sit on top of each other. */
@media (max-width:900px){
  .gy{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .gan{min-width:1180px}
  .gan-note::after{content:" Drag the drawing sideways to see all of it."}
}

/* the small one standing on its own, as the figure a band closes on */
.gmfig{margin:34px 0 0;display:flex;flex-direction:column;align-items:center;gap:14px}
.gmfig .gm{max-width:560px}
.gmfig figcaption{max-width:62ch;text-align:center;color:var(--faint)}

/* ---------- folded reference ----------
   Lists of connector and vendor names are reference, not reading: they stay on
   the page and stay indexable, but they do not sit in the way of the argument. */
details.cnx>summary{list-style:none;cursor:pointer;display:flex;flex-wrap:wrap;
  align-items:baseline;gap:4px 14px;padding:14px 0;border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule)}
details.cnx>summary::-webkit-details-marker{display:none}
details.cnx>summary b{font-family:var(--mono);font-size:11px;letter-spacing:.15em;
  text-transform:uppercase;font-weight:500;color:var(--ink)}
details.cnx>summary span{font-size:14px;color:var(--muted)}
details.cnx>summary::after{content:"show";margin-left:auto;font-family:var(--mono);
  font-size:11px;letter-spacing:.1em;color:var(--signal)}
details.cnx[open]>summary::after{content:"hide"}
details.cnx[open]>summary{border-bottom-color:transparent}

/* the drawing's own title: the name, and nothing else. It sits on the inner
   edge the drawing starts from, not in the index rail, so the two line up. */
.gan-name{margin:0 0 2px;line-height:1}

/* The forward deployed plate runs through the four phases of a build on a
   loop. Whichever is running lights its own name, the same green that a part
   of Gantry takes when you point at it. */
.gan-lab.live{color:var(--signal)}
.gan-lab.live::before{content:"";position:absolute;left:0;top:50%;width:5px;height:5px;
  margin-top:-2.5px;border-radius:50%;background:var(--signal)}
.gan-lab.live.a-end::before{left:auto;right:0}
.gan-lab.a-end.live{padding-right:16px}
.gan-lab.a-start.live{padding-left:16px}

/* ...and says, under the drawing, what is being done in it. The loop writes
   the running phase here; pointing at any part of the floor writes that
   instead. Two lines of height is kept whatever it says, so the page does
   not shift under the reader as the caption changes. */
.gan-task{font-family:var(--mono);font-size:11px;line-height:1.55;
  letter-spacing:.06em;color:var(--muted);max-width:76ch;
  margin:14px 0 0;min-height:34px;
  opacity:0;transition:opacity .7s ease}
.gan-task.on{opacity:1}
.gan-task b{font-weight:500;color:var(--signal)}
.gan-task span{transition:color .25s ease}
.gan-task+.gan-note{margin-top:6px}
/* narrow enough that the caption runs to three lines: reserve all three, so
   the page under it does not step every time the phase turns over */
@media (max-width:640px){
  .gan-task{min-height:52px}
}
@media (prefers-reduced-motion: reduce){
  .gan-task{transition:none}
}

/* The forward deployed plate is a room, not a machine that has to run the
   width of the page, so it sits a little smaller. Left edge kept, so the
   title above it still squares to the drawing. Below the breakpoint the
   drawing scrolls sideways at full size and must not be narrowed further. */
@media (min-width:901px){
  .gy.sm{max-width:86%}
}
