
/* ===== twelve wires at true relative size (wiresizes.py) ===== */
/* NO PANEL AND GRID WIDTH, borrowed wholesale from procex.py along
   with .px-wide, .px-lede and .px-key, which this block reuses rather
   than restating. Matt asked for the eighteen processes treatment and
   that treatment is those three rules plus the label.

   ONE ROW, AND A CAROUSEL ONLY WHEN IT HAS TO BE. Matt: "make a single
   row - if we need more room it can be a sliding carousel." At grid
   width, 1332px, twelve tiles and eleven gaps leave 91px a tile, which
   is enough for the pictures and not for a label like "Coaxial, foil
   and braid".

   MEASURED, AND THE FIRST CUT DID NOT FIT. At 104px a tile and 28px a
   gap the row came to 1556 against a 1332 column, so the single row
   Matt asked for first was a row that scrolled on a desktop too. 86
   and 26 make 1318, which fits with 14px to spare, and the two coaxial
   labels take a third line rather than the pictures losing the room.

   The rail still scrolls, so below about 1200 it becomes the carousel
   he allowed for, with no breakpoint deciding which. */
/* THE RAIL MAKES ROOM FOR THE ANIMATION BELOW IT. Matt asked for the
   wires to slide up on arrival, and a tile that starts 44px lower than
   it ends needs somewhere to start. This rail is overflow-y:hidden,
   because it scrolls sideways, so without the room the twelve labels
   would be sliced off at the bottom edge for the first second of every
   visit. The padding is given and the same amount taken back as a
   negative margin, so nothing below the rail moves. */
.ws-rail{margin-top:44px;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;padding-bottom:62px;margin-bottom:-48px;}
.ws-row{display:flex;align-items:flex-start;gap:26px;
  margin:0;padding:0;list-style:none;min-width:min-content;}
.ws-c{flex:0 0 86px;scroll-snap-align:start;}
/* THE PICTURES SHARE A BASELINE, AND flex-end WAS THE WRONG WAY TO GET
   IT. Bottom-aligning the CELLS bottom-aligns their LABELS, so the two
   whose label takes an extra line pushed their wire 18.6px up: three
   different baselines across twelve pictures that are all the same
   box. Measured in the browser, not spotted by eye.

   Top-aligning is what works, because the twelve files are one box.
   Equal heights from a common top put their bottoms on one line by
   construction, and the labels hang below at whatever height they
   need. Height comes from the file's own ratio. */
.ws-art{width:100%;}
.ws-art img{display:block;width:100%;height:auto;}
/* procex's label, turned to sit under rather than beside. */
.ws-lab{margin-top:16px;font-size:14px;font-weight:500;line-height:1.3;
  color:rgba(255,255,255,.92);}
.ws-lab b{display:block;font-size:10px;font-weight:700;letter-spacing:1.2px;
  color:var(--aqua,#00eecc);margin-bottom:3px;}
.ws-lab i{display:block;font-style:normal;margin-top:3px;font-size:12px;
  color:rgba(255,255,255,.42);}
/* THE WIRES SLIDE UP ONE AT A TIME. Matt, 2 November: "add a slide up
   animation for these wire blocks plz, be cool if they slide up
   individually somehow on scroll arrival."

   ON THE SITE'S OWN REVEAL, NOT A SECOND ONE. Every .rv on the page is
   already watched by one IntersectionObserver that sets a 70ms
   transitionDelay per element in the order they arrive and then adds
   .on. Twelve tiles marked .rv therefore cascade left to right over
   770ms for free, in step with everything else that reveals on this
   site, and there is no new script to go out of sync with it.

   WHAT IS OVERRIDDEN IS ONLY THE DISTANCE AND THE EASING. The site's
   reveal rises 26px on an ease, which is right for a block of text and
   too polite for twelve objects being set down in a row. 44px and a
   curve that overshoots slightly reads as placing rather than fading.
   The travel is translateY alone, so it composes with anything that
   sets translate rather than transform. */
.ws-c.rv{transform:translateY(44px);
  transition:opacity .62s ease, transform .62s cubic-bezier(.22,1.1,.36,1);}
.ws-c.rv.on{transform:none;}
/* AND THE CROSS-SECTION ARRIVES A BEAT AFTER ITS WIRE, which is the
   half that makes it read as one object rather than a picture sliding.
   The picture and the label are the two parts of a tile, so the label
   trails its own wire by 90ms rather than every label waiting for
   every wire. */
.ws-c.rv .ws-lab{opacity:0;transform:translateY(10px);
  transition:opacity .5s ease .09s, transform .5s ease .09s;}
.ws-c.rv.on .ws-lab{opacity:1;transform:none;}

@media (max-width:760px){
  .ws-rail{margin-top:34px;padding-bottom:50px;margin-bottom:-40px;}
  .ws-row{gap:22px;}
  .ws-c{flex:0 0 88px;}
  .ws-lab{font-size:13px;}
  .ws-c.rv{transform:translateY(32px);}
}
/* NOBODY WHO ASKED FOR LESS MOTION GETS ANY OF THIS. The site's own
   reduced motion rule turns .rv off wholesale, and these overrides
   would otherwise outrank it on specificity and leave the tiles
   invisible rather than still. */
@media (prefers-reduced-motion:reduce){
  .ws-c.rv,.ws-c.rv .ws-lab{opacity:1 !important;transform:none !important;
    transition:none !important;}
}
