
/* ===== a hint that there is more below (scrollhint.py) ===== */
/* AT THE FOOT OF THE HEADER, INSIDE IT, and the detour this took is
   worth leaving on the record because the detour was my fault and the
   "fix" for it was worse than the thing it fixed.

   Every header on this site is position:sticky, which is a positioned
   element, so it gives an absolutely placed child the containing block
   it needs without any page being changed to suit it. That is all this
   ever needed.

   I then hit tested the button's own centre on all 79 pages and found
   ten where it rendered perfectly and reported as unclickable: about,
   approvals and its five approval pages, careers, onshoring and testing.
   I read that as a stacking problem, moved the button out of the header
   and fixed it to the viewport instead. That genuinely broke it: the
   headers run from 550px on contact to 979px on the case studies, all
   shorter than the window, so the foot of the VIEWPORT is inside the
   next block. Hit tested again, the hint was sitting on top of real
   copy on 45 pages.

   The ten were never blocked. Those pages carry the overview overlay,
   #ovmenu, which is visibility:visible on first paint and is hidden by
   script about 200ms later. My sweep sampled at 240ms, right on that
   boundary, so some pages caught the overlay still up and reported a
   blocker that is gone before anybody could click anything. Sampled at
   900ms, all 79 are clickable with the button where it always was.

   THIRD TIME TODAY a check has measured a page before it settled and
   reported the result as a finding: the stat bars with scrollIntoView
   against smooth scrolling, the count-up observer, and now this. The
   rule is the same every time: let the page settle, then measure, and
   when a result says ten pages are broken, check the measurement before
   changing the code. */
html body .sdh{
  position:absolute;left:50%;bottom:34px;
  transform:translateX(-50%);
  z-index:6;border:0;padding:10px 12px;margin:0;
  background:none;color:var(--aqua,#00eecc);
  cursor:pointer;line-height:0;
  opacity:.86;transition:opacity .45s ease;
  -webkit-tap-highlight-color:transparent;}
html body .sdh:hover{opacity:1;}
html body .sdh:focus-visible{outline:2px solid var(--aqua,#00eecc);
  outline-offset:6px;border-radius:999px;}
html body .sdh.sd-gone{opacity:0;pointer-events:none;}
@media (max-width:900px){html body .sdh{bottom:20px;}}

/* transform-box, because a transform on an SVG child resolves in user
   space otherwise and the origin lands outside the shape */
html body .sdh .sd-m{transform-box:fill-box;transform-origin:center;
  animation:sd-fardrop 2.1s cubic-bezier(.33,0,.25,1) infinite;}
/* THE LAG IS POSITIVE. At time t the dot is at f(t) and a ghost is at
   f(t-d), which is less far down, which is behind it. Negative would put
   the trail in front of the thing it is trailing. Sized off a render:
   85 and 170ms came out as a slightly oval dot and nothing anybody would
   call a trail, so 150, 300 and 450. */
html body .sdh .sd-g1{animation-delay:.15s;}
html body .sdh .sd-g2{animation-delay:.3s;}
html body .sdh .sd-g3{animation-delay:.45s;}
@keyframes sd-fardrop{
  0%{transform:translateY(-2px);opacity:0;}
  14%{opacity:1;}
  60%{opacity:1;}
  100%{transform:translateY(20px);opacity:0;}
}
@media (prefers-reduced-motion:reduce){
  html body .sdh .sd-m{animation:none;opacity:1;transform:none;}
}


/* ============ the icon tier, the services index's own (icontier.py) ===== */
.wy{position:relative;z-index:2;padding:104px 0 96px;border-radius:36px 36px 0 0;
  background:#0b0f2e;isolation:isolate;
  box-shadow:0 -40px 60px -20px rgba(0,0,0,.45);margin-top:-36px;}
/* ONCE THE BAND ABOVE IS PINNED, THE OVERLAP IS THE SLIDE. The -36px above
   is what a tier that cannot move uses to avoid a hard edge: it tucks under
   the band above by the height of its own corner radius and stops there.
   When the script pins the band above, the tier travels the full height of
   the window instead, and keeping the negative margin would just start that
   journey 36px early and crop the last line of the band above. .wy-over is
   set by the script, so a page where the pin does not apply, narrow windows
   and reduced motion, keeps the static overlap it has always had. */
.wy.wy-over{margin-top:0;}
/* AND THE TWO CORNERS ARE FILLED WITH THE GROUND. Matt, 20 October, on
   the sectors tier riding over the pinned gallery: "Top left corner of
   the scroll over tier is showing a tiny white section of the photo
   underneath."

   It was, and it is the radius doing what a radius does. The tier's own
   background is the page ground, but the border box is rounded, so the
   wedge OUTSIDE the arc and INSIDE the corner is transparent and
   whatever is behind shows through it. Everywhere else on the site what
   is behind is another dark band and the wedge is ground on ground.
   Over a photograph it is a bright crumb.

   NOT SOLVED WITH A FADE, and this is the part worth writing down. The
   obvious fix is a gradient above the tier taking the photograph down
   to the ground before the edge arrives. polish.py already carries Matt
   saying no to that four times, ending with "The scroll overs are
   always hard edged - what's this fade / graded edge??" A scroll over
   tier is meant to have a hard top edge, so the fix has to be as hard
   as the edge it is protecting.

   So the ground is painted on a square box behind the rounded one. The
   top edge stays hard, the arc stays an arc, and the two corners show
   the same ground they show on every other tier on the site. z-index -2
   sits it behind the panel, and .wy's isolation keeps both inside. */
.wy::before{content:"";position:absolute;inset:0;z-index:-2;
  background:#0b0f2e;pointer-events:none;}
.wy-bg{position:absolute;inset:0;z-index:-1;border-radius:inherit;
  overflow:hidden;pointer-events:none;
  background:
    radial-gradient(70% 60% at 92% 8%, rgba(0,238,204,.26), transparent 62%),
    radial-gradient(60% 55% at 6% 40%, rgba(70,96,230,.30), transparent 64%),
    radial-gradient(80% 70% at 60% 70%, rgba(26,36,84,.85), transparent 70%),
    radial-gradient(50% 40% at 30% -4%, rgba(0,238,204,.10), transparent 70%),
    #0d1236;
  -webkit-mask-image:linear-gradient(#000 0%,#000 58%,rgba(0,0,0,.9) 66%,
    rgba(0,0,0,.7) 74%,rgba(0,0,0,.45) 82%,rgba(0,0,0,.22) 89%,
    rgba(0,0,0,.07) 95%,transparent 100%);
  mask-image:linear-gradient(#000 0%,#000 58%,rgba(0,0,0,.9) 66%,
    rgba(0,0,0,.7) 74%,rgba(0,0,0,.45) 82%,rgba(0,0,0,.22) 89%,
    rgba(0,0,0,.07) 95%,transparent 100%);
  /* THE PARALLAX. The mesh moves a third of the distance the tier does, so
     the panel reads as a window onto something behind it rather than a
     painted rectangle. --wy is set on scroll by the script below. */
  transform:translate3d(0, calc(var(--wy,0) * -.18px), 0);}
.wy-bg::before{content:"";position:absolute;width:60%;aspect-ratio:1;
  left:30%;top:-20%;border-radius:50%;
  background:radial-gradient(closest-side,rgba(0,238,204,.14),transparent);
  animation:wyDrift 18s ease-in-out infinite alternate;}
@keyframes wyDrift{from{transform:translate3d(-6%,0,0) scale(1);}
  to{transform:translate3d(8%,4%,0) scale(1.12);}}
.wy-top{margin-bottom:72px;}
.wy-more{display:inline-block;margin-top:14px;color:var(--aqua);
  font-weight:600;text-decoration:none;}
/* The head row that carries one of these is gocta.py's .gocta-row, so
   there is nothing left here: the title's 760px measure, the alignment
   on the last baseline and the stack on a phone all belong to the
   component now. */
.wy-more:hover{text-decoration:underline;}
.wy-grid{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));gap:56px 24px;}
/* NO ROLL-OVER ON THE PROCESS TEN, AND IT STAYS ON THE SECTORS.
   Matt, 19 October: "These processes icons blocks don't need a hover at
   this stage." Then, seeing the sectors tier go cold with them: "I want
   to keep the hovers & links on the 'sectors' icon section, only on the
   individual process ones I grabbed were they to be removed."

   TWO TIERS, ONE CLASS, which is why the first version took the hover
   off both. .wy-i builds the ten things a vertical does AND the
   fourteen sectors, and the only thing that tells them apart is the
   section they sit in: the sectors tier carries .wy.ind-tier and the id
   sectors, and the process tier carries neither. So the rules come back
   scoped to .ind-tier rather than being deleted.

   AND NO TAG NAMES ARE SPELT OUT IN THIS COMMENT, which reads as
   fussiness and is not. This sheet is written into every page, and the
   build counts opening against closing containers on each one to catch
   a component spliced in half. The first draft of this note said the
   tier "is (angle)section class=..." and careers.html came out with 13
   openings against 12 closings. The guard was right and the comment
   was wrong.

   AND THE DIFFERENCE IS REAL, not a style preference. A sector cell is
   an anchor to that sector's page; a process cell is a span and goes
   nowhere. A roll-over on the first is a link telling you it is one. On
   the second it was an invitation to click something that does not
   click, which is what Matt was looking at.

   THREE RULES, not one: the tile's lift and lighter ground, the icon's
   1.08 scale with its aqua glow, and a fourth-class specificity rule
   written on 6 October to make that scale beat the reveal's
   transform:none. That last one is invisible on its own and a tidier
   edit would have left it behind doing nothing.

   AND THE TRANSITIONS ARE SCOPED TOO. A transition with nothing to
   transition to is not harmless: it is a promise the next person reads
   as a hover that has broken. The reveal has its own transitions
   further down and those stay on both tiers.

   .wy-more:hover stays everywhere. That is the text link under the
   grid, not one of the icons. */
.wy-i{display:flex;flex-direction:column;align-items:center;text-align:center;
  gap:18px;padding:14px 8px;border-radius:20px;}
.wy-ic{width:64px;height:64px;color:var(--aqua,#00eecc);}
.wy-ic svg{width:100%;height:100%;display:block;}
/* THE SECTORS' OWN HOVER LIVES WITH THE SECTORS, in
   industries.TIER_CSS, not here. It was written here first and 20 pages
   refused the build: the sector grid is on 46 pages and this sheet only
   reaches the ones that also carry a process icon tier, so on the
   approval pages and the capability pages the hover simply was not
   there. A rule belongs in the sheet that travels with the block it
   styles. */
.wy-t{font-size:16px;line-height:1.45;color:rgba(255,255,255,.82);}
.wy.anim .wy-ic,.wy.anim .wy-t{opacity:0;transform:translateY(18px);}
.wy.anim.lit .wy-ic,.wy.anim.lit .wy-t{opacity:1;transform:none;
  transition:opacity .7s ease, transform .9s cubic-bezier(.22,1,.36,1);}
.wy.anim.lit .wy-ic{transition-delay:calc(var(--i) * 55ms);}
.wy.anim.lit .wy-t{transition-delay:calc(var(--i) * 55ms + 130ms);}

@media (max-width:1080px){
  .wy-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:44px 20px;}
  .wy{padding:80px 0 72px;}
}
  /* ONE COLUMN ON A PHONE, AND THE LINE BREAK COMES BACK.
     29 November. Two 156px columns at 390 put "Integrated supply
     chain management" on three lines, and the rule that hid the <br>
     so it could reflow had a fault nobody had read on a phone: the
     source is "AS9100D &amp;<br>ISO 14001 certified" with no space
     either side of the break, because none is wanted when it breaks.
     Hide the break and the words join, so the site read "AS9100D
     &ISO 14001 certified", "200+ IPC-trainedoperatives", "50,000 sq
     fton one site" and "UK privately ownedsince 1983" on 31 pages.
     One column has room for the label as it was written, so the
     break stays and the join goes. */
  /* AND IT IS A ROW, NOT A CARD. Ten items stacked as icon-above-
     centred-text is 1,340px of scrolling for ten short labels. Icon
     left, label right, is 938px for the same ten and reads down the
     left edge like a list, which is what it is. */
@media (max-width:700px){
  .wy-grid{grid-template-columns:minmax(0,1fr);gap:22px 0;}
  .wy-i{display:flex;flex-direction:row;align-items:center;
    gap:18px;text-align:left;}
  .wy-ic{width:46px;height:46px;flex:0 0 auto;margin:0;}
  .wy-t{font-size:15px;text-align:left;}
}
@media (prefers-reduced-motion:reduce){
  .wy-bg{transform:none !important;}
  .wy-bg::before{animation:none;}
  .wy.anim .wy-ic,.wy.anim .wy-t{opacity:1;transform:none;}
}


/* THE NAV SCRIM (navscrim.py). Behind the bar and the tabs, in front of the
   hero: the bar is z-index 90 and the tab row is 40, so 30 puts this under
   both and over the picture. */
/* Nothing below 1100, where the bar is replaced by the overlay menu and the
   menu has its own ground. Declared off rather than simply unstyled: an
   empty div with no rules still exists in the layout, and a node that is
   doing nothing should say so. */
.navscrim{display:none;}
@media (min-width:1100px){
  .navscrim{
    display:block;
    position:fixed; inset:0; z-index:30;
    opacity:0; pointer-events:none;
    transition:opacity .26s ease;
    /* DARK AT THE TOP, MESH BELOW IT. Matt, 6 October: "Could we try so it
       has some gradients mid / bottom areas? Keep top dark."

       The top band is doing a job and cannot change: it is the ground under
       the topbar type, the bar and the six tabs, and that is the whole
       reason the scrim exists. Everything below the tabs is doing nothing
       except being dark, so that is where the colour goes.

       The blooms are the site's own mesh, the same two colours the hero and
       the icon tier use: aqua top right, indigo low left, over a deeper
       navy pool at the foot. All three are positioned at 70% and below, so
       none of them reaches the bar. Layer order matters here: in CSS the
       first background is the one on top, so the blooms tint the flat dark
       underneath them rather than being hidden by it.

       They do not drift. The hero mesh does, but that one is always there;
       this appears on hover and a moving background on something that
       arrives in a quarter of a second is noise. */
    background:
      radial-gradient(64% 50% at 86% 74%, rgba(0,238,204,.22), transparent 64%),
      radial-gradient(66% 54% at 8% 62%, rgba(70,96,230,.26), transparent 66%),
      radial-gradient(90% 56% at 48% 100%, rgba(26,36,84,.62), transparent 70%),
      linear-gradient(180deg,
        rgba(7,10,32,.90) 0%,
        rgba(7,10,32,.86) 15%,
        rgba(7,10,32,.80) 46%,
        rgba(9,13,40,.74) 100%);
  }
  /* the blur is the part that actually does the work: white type suffers
     from detail behind it more than from brightness */
  @supports (backdrop-filter:blur(6px)){
    /* 5px rather than the 7 the strip used: this covers the viewport now,
       and the difference is not visible while the cost is */
    .navscrim{backdrop-filter:blur(5px) saturate(106%);
      -webkit-backdrop-filter:blur(5px) saturate(106%);}
  }

  /* THE ASSISTANT RECEDES WITH THE PAGE. It is z-index 90, the same as the
     bar, so without this it is the one thing left fully lit in the bottom
     corner of a dimmed page. Not hidden and not disabled: still clickable,
     still there, just no longer the brightest thing on screen. An open
     panel is left alone. */
  body.navlit .dock:not(.open){opacity:.34;
    transition:opacity .26s ease;}
  .dock{transition:opacity .26s ease;}
  body.navlit .navscrim{opacity:1;}

  /* AND THE DROPDOWN STOPS BEING SEE-THROUGH WHILE IT IS OPEN. Matt asked
     for the dropdowns to be easier to read as well as the bar, and the
     scrim alone could not do it: the panel is rgba(13,18,48,.96) over a
     22px blur, and the 4% it lets through is white tab type on a dark
     panel, which is exactly the contrast the eye picks up. Opened over the
     six tabs you could read BOX BUILDS through the menu. Solid while open,
     and unchanged while closed, so nothing moves until you reach for it. */
  html body .nav-links .has-sub:hover > .dropdown .dd,
  html body .nav-links .has-sub:focus-within > .dropdown .dd{
    background:#0c1134;}
}
@media (prefers-reduced-motion:reduce){
  .navscrim{transition:none;}
}


/* the section title, back on --fs-2 (typescale.py) */
html body section h2,
html body .sec-head h2,
html body #supply.map-port .sec-head h2{font-size:clamp(34px,3.4vw,46px);
  letter-spacing:var(--ls-tight,-1.5px);line-height:var(--lh-tight,1.02);}
/* and the variable the see-all buttons measure their offset from, because
   that offset is .595 of the TITLE: a stale copy here puts every button a
   few pixels low at 1440 and nothing says so */
@media (min-width:1081px){
  html body .sec-top{--tfs:clamp(34px,3.4vw,46px);}
}
