
/* ===== what it is also called (searchfit.py) ===== */
/* The naming paragraph sits under the lede in the same block, a step down
   in size and colour so it reads as a note rather than as a second
   introduction. No rule above it: on this project a line is a gap over a
   ground, and here the size change does the separating. */
html body .sh2-words .lede-also{margin:22px 0 0;max-width:72ch;
  font-size:16.5px;line-height:1.66;color:rgba(255,255,255,.58);}
@media (max-width:720px){
  html body .sh2-words .lede-also{font-size:15.5px;}
}


/* ===== the naming block has something to look at (wordsart.py) ===== */
/* Two columns from 1100px: the words narrower than they were, the art
   beside them. Below that the art drops under the text and the two sub
   images go, because three overlapping pictures in a phone's width is a
   pile rather than a composition. */
/* ON THE SITE'S OWN TWELVE COLUMNS, which is option A of four and Matt's
   pick on 13 October. The first version set the two blocks as 1fr and
   .86fr with a clamped gap, which came out 671px and 577px: 6.17 and 5.34
   columns against a grid of 85.3px columns with a 28px gap. Nineteen
   pixels past six, so the text ended in the gutter rather than on a line.
   Matt could see it without being able to name it: "not sure where it
   ends on the grid."

   Six columns of text, column seven empty as the gutter, five of art.
   Spans rather than fractions, so it is the page's own grid doing the
   work and the numbers come out whole: measured after, 652px and 539px,
   exactly 6.00 and 5.00. */
@media (min-width:1100px){
  html body .sh2-words > .wrap{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    column-gap:var(--col-gap,28px);
    align-items:start;}
  html body .sh2-words .wa-text{min-width:0;grid-column:span 6;}
  html body .sh2-words .wa-art{grid-column:8 / span 5;}
  html body .sh2-words .wa-text .lede,
  html body .sh2-words .wa-text .lede-also{max-width:none;}
  html body .sh2-words .wa-art{
    position:relative;min-width:0;
    aspect-ratio:1.04;
    margin-top:6px;}
}
/* AND THE SECTION GETS AIR. Matt, 13 October: "the section needs more
   breathing space above and below." Not a judgement call: it was 4px top
   and 26px bottom, which is effectively zero, and it is why the block ran
   straight out of the stat bar above it. */
html body .sh2-words{padding:clamp(64px,6vh,96px) 0 clamp(76px,7.4vh,116px);}
html body .sh2-words .wa-art figure{margin:0;}
/* the frames. No border anywhere on this project: the lift comes from a
   shadow and the ground showing through the radius. */
html body .sh2-words .wa-art img{
  display:block;width:100%;height:100%;object-fit:cover;
  border-radius:20px;background:#0b0f2e;}
/* THE WORDS HOLD WHILE THE PICTURES GO PAST. Matt, 16 October: "the
   text has to be sticky to allow the images more space. We can make the
   main image bigger too. Then the images can start a bit higher - the
   text sticks - images carry on until all moves up."

   All four of those are one change, because they depend on each other.
   Sticky does nothing unless the column beside it is taller, and the
   column is only taller if the pictures have somewhere to go, so the
   art box gets the height first and everything else follows from it.

   Measured before: text 635 tall, art 795. A hundred and sixty pixels
   of difference is a hundred and sixty pixels of pinning, which nobody
   would notice. The art is now 1124, so the words hold for 433px and it
   reads as a deliberate hold rather than a rounding error.

   THE PICTURES START ABOVE THE FIRST LINE, by 56px, which is the "start
   a bit higher". It is a negative margin on the art rather than padding
   on the text, so the text keeps its own position on the grid and only
   the pictures move.

   top:108px is the fixed nav's 80 plus the grid's own 28 gutter. The
   secondary nav sits at 138 when it is showing, so the held text passes
   under it rather than colliding with it.

   AND THE MAIN PICTURE FILLS THE COLUMN. It was 84 per cent wide and
   inset 8 per cent from the left, which on a column this size left it
   535 across inside a 652 box. Full width now, 652 by 674 against 535
   by 604, a third more picture. The two small frames drop below it
   rather than overlapping it, which they have room for now. */
/* AND THE FIGURE CARRIES THE RADIUS TOO, not only the picture inside
   it. The shadow is cast from the figure's box, so an unrounded figure
   throws a sharp cornered shadow behind a rounded picture. It only
   shows where one frame overlaps another, which is why it survived
   this long. Matt spotted it on the sister block on 5 November and it
   was here first. */
html body .sh2-words .wa-main{
  position:absolute;left:8%;top:4%;width:84%;height:74%;
  border-radius:20px;
  box-shadow:0 38px 70px rgba(0,0,0,.46);
  will-change:transform;}
html body .sh2-words .wa-s1{
  position:absolute;left:0;top:46%;width:44%;height:34%;
  border-radius:16px;
  box-shadow:0 26px 48px rgba(0,0,0,.5);
  will-change:transform;}
html body .sh2-words .wa-s2{
  position:absolute;right:0;bottom:0;width:38%;height:30%;
  border-radius:16px;
  box-shadow:0 26px 48px rgba(0,0,0,.5);
  will-change:transform;}
html body .sh2-words .wa-s1 img,
html body .sh2-words .wa-s2 img{border-radius:16px;}
/* the travel. --p runs -1 to 1 as the block crosses the window. */
/* and the travel grows with the column it crosses. The three numbers
   were drawn for a 795px art box; at 1304 the same travel is a third of
   what it reads as, so each is scaled by the same 1.64 and rounded.
   The ratios between them are untouched, because the ratios are what
   make the three move as one group rather than three pictures. */
html body .sh2-words .wa-main{transform:translate3d(0,calc(var(--p,0) * -56px),0);}
html body .sh2-words .wa-s1  {transform:translate3d(0,calc(var(--p,0) *  95px),0);}
html body .sh2-words .wa-s2  {transform:translate3d(0,calc(var(--p,0) * -138px),0);}

@media (max-width:1099px){
  /* AND NONE OF IT BELOW 1100, where the two columns stack. A sticky
     element in a single column has nothing to be sticky beside and just
     parks itself over whatever comes next. */
  html body .sh2-words .wa-text{position:static;top:auto;}
  html body .sh2-words .wa-art{position:relative;margin:34px 0 0;}
  html body .sh2-words .wa-main{position:static;width:100%;height:auto;}
  html body .sh2-words .wa-main img{height:auto;aspect-ratio:1.5;}
  html body .sh2-words .wa-s1,
  html body .sh2-words .wa-s2{display:none;}
}
@media (prefers-reduced-motion:reduce){
  html body .sh2-words .wa-main,
  html body .sh2-words .wa-s1,
  html body .sh2-words .wa-s2{transform:none !important;}
}


/* ===== the two column naming block, taller (wordsart.py) ===== */
@media (min-width:1100px){
  /* AND THE TWO COLUMNS CENTRE ON EACH OTHER. Matt, 19 October: "Can
     the copy on the left be [aligned] as a block it sits centrally on
     the vertical to the images as a block on the right... I THINK the
     copy just needs moving down about 90px?"

     It is 80, and it is not a number this has to hold. The base sheet
     aligns the two columns on their TOPS, which is right when they are
     the same height and wrong here: the art is 795 and the words 635,
     so the words finish 160px above the pictures and the block reads as
     top heavy on the left. align-items:center is the whole fix, and it
     keeps working when the copy changes length or the window changes
     width, which a 90px margin would not.

     The pictures' parallax does not disturb it. Each one moves on a
     transform, and a transform does not change the box the grid is
     measuring. */
  html body .sh2-words > .wrap{align-items:center;}
  html body .sh2-words .wa-text{grid-column:span 5;}
  html body .sh2-words .wa-art{grid-column:7 / span 6;aspect-ratio:.82;}
  /* the main picture, portrait */
  html body .sh2-words .wa-main{left:9%;top:2%;width:82%;height:76%;}
  /* B clears the taller main and still overlaps its bottom left corner */
  html body .sh2-words .wa-s1{left:0;top:62%;width:40%;height:22%;}
  /* C is cut to the shape of the photograph in it rather than the other
     way round: a view down the looming floor is 1.86 wide, so the slot
     is wide and short and the crop keeps the boards */
  /* AND C IS BIGGER. Matt, 19 October: "Image C - I think can be 10-20%
     bigger also". 46 by 22 of the art box is 300 by 175; 53 by 25 is
     345 by 199, which is 15 per cent on each edge and keeps the frame's
     1.73 shape so the crop does not have to change with it.
     It now overlaps the main picture's foot by 24px. That is the
     composition already: slot A overlaps it by 127. */
  html body .sh2-words .wa-s2{right:0;bottom:2%;width:53%;height:25%;}
}
/* AND THE PHONE GETS THE PORTRAIT TOO. Under 1100px the block drops to
   one column, the two small pictures go and the main one goes full
   width at the base rule's aspect-ratio:1.5. That is right for a
   landscape main and wrong for this one: a 0.89 photograph in a 1.5
   frame is a centre band with the top and bottom of the board cut off,
   which on this page is most of the harness. Measured at 390: 326x217
   before, 326x362 after. */
@media (max-width:1099px){
  html body .sh2-words .wa-main img{aspect-ratio:.9;}
}


/* ===== the bento tier's own words (homecopy.py) ===== */
/* A HEADING FOUR TIMES THE LENGTH NEEDS A SIZE OF ITS OWN. The family
   size is clamp(46px,4.6vw,72px), set for "Built / not to fail". The cap
   here is 46 because the heading column stops growing at 764px and
   "electronics manufacturer" draws 815px at 52, which wrapped it onto a
   third line and pushed the block into the note beside it. Scoped to this
   tier, so every other .ind-h on the site keeps the family size. */
html body #industries .ind-h{font-size:clamp(32px,3.1vw,46px);
  letter-spacing:-1.3px;line-height:1.0;}
@media (max-width:900px){
  html body #industries .ind-h{font-size:30px;letter-spacing:-.6px;
    line-height:1.08;}
}


/* ===== home's tiers, on the verticals (whtiers.py), the tall tile ===== */
html body #industries .bx-img.bx-b > .bx-par{height:auto;aspect-ratio:3 / 4;top:50%;transform:translate3d(0,calc(-50% + var(--py,0px)),0);--par-k:1;}


/* ===== home's tiers, on the verticals (whtiers.py), the tall tile ===== */
html body #industries .bx-img.bx-f > .bx-par{height:auto;aspect-ratio:1 / 1;top:50%;transform:translate3d(0,calc(-50% + var(--py,0px)),0);--par-k:1;}
