
.tl-track{--max-w:1332px;--gutter:32px;--node-w:430px;--node-gap:96px;}

/* head room for the bar and the six, which the prototype never had over it */
.tl-track .tl-stage{padding-top:clamp(104px,12vh,146px);}

/* ON THIS PAGE'S GRID, NOT ITS OWN. The prototype ran full bleed with a 32px
   gutter of its own; About runs a 1332 column that starts at the same x as
   every other heading on the site. Three things move onto it: the head, the
   progress bar and the first dot on the rail, so the eyebrow, the 1979 label
   and the opening node all line up under the section above.

   The head also needs width:100%. It is a flex item with auto side margins,
   and an auto margin cancels stretch, so without it the block shrinks to the
   width of its own longest line and floats to the middle. The progress bar
   carries width:100% already, which is why the two disagreed. */
.tl-track .tl-head{width:100%;padding:0;}
.tl-track .tl-prog{padding:0;}
.tl-track .tl-rail{padding:0 max(32px,calc((100vw - var(--max-w))/2));}

/* THE JOINS BLEND. Matt, 22 September, on exactly this: "can we remove these
   weird background joins, like a dark space where there's 2 borders?" The
   band has no background of its own, so the seam was never a colour change:
   it is the aurora wash being cut off square by the stage's overflow. This
   fades the wash out against the page at both ends. It sits above the wash
   (z-index 0) and below the rail (2) and the head (4), so it touches the
   light and nothing else. */
.tl-track .tl-stage::after{content:"";position:absolute;inset:0;z-index:1;
  pointer-events:none;
  background:linear-gradient(180deg,#0b0f2e 0,rgba(11,15,46,0) 17%,
             rgba(11,15,46,0) 83%,#0b0f2e 100%);}

/* AIR BETWEEN THE PATH AND THE WORDS, AND THE WORDS SET IN FROM THE DOT.
   Matt, 23 September: "can we add a little gap between the line and the text,
   also can we offset the title / para by approx 30px right."

   The prototype had the text 26px off the path and hard against the dot, so
   a title read as hanging from the line rather than sitting under it. 46px
   gives it room, and the 30px indent leaves the dot and the corner of the
   path visible to the left of the first letter, which is what makes the path
   read as a path rather than as a rule under a heading.

   The whole .tl-in block moves, so the ghost year keeps its position behind
   the title. The width comes back down by the same 30px so nothing runs past
   the node and into the gap. */
.tl-track .tl-in{left:30px;width:calc(100% - 30px);}
.tl-track .tl-low .tl-in{top:calc(var(--y) + 46px);}
.tl-track .tl-high .tl-in{bottom:calc(100% - var(--y) + 46px);}
.tl-track .tl-end .tl-in{bottom:calc(100% - var(--y) + 46px);top:auto;}

/* THE PHONE, WHERE NONE OF THE ABOVE APPLIES. The component drops the pin
   and becomes a row of cards you swipe, and every override up there has to
   come back off or it indents a card that is already indented and takes the
   page margin away from a layout that needs one. The media list is copied
   from the prototype's own, so the two switch on exactly the same line
   rather than nearly the same line. */
@media (max-width:900px),(prefers-reduced-motion:reduce),(pointer:coarse){
  /* The stage already clips the swipe rail. Clip at the track too, or its
     4,346px rail still leaves body.scrollWidth at 507px on a 390px phone. */
  .tl-track{overflow:clip;}
  .tl-track .tl-stage{padding-top:110px;}
  .tl-track .tl-stage::after{display:none;}
  .tl-track .tl-head,.tl-track .tl-prog{padding:0 20px;}
  .tl-track .tl-rail{padding:0 20px;}
  .tl-track .tl-in{left:auto;width:auto;}
  .tl-track .tl-low .tl-in,.tl-track .tl-high .tl-in,
  .tl-track .tl-end .tl-in{top:auto;bottom:auto;}
}

/* THE EYEBROW IS A PILL, NOT A BAR. Matt, 2 November: "The eyebrow bg is
   crazy wide." It is, and the reason is two rules fighting: the eyebrow is a
   <p>, so it is a block and fills its line, and the rule above gives .tl-head
   width:100% so the head matches the progress bar. The background then paints
   the whole 1332 column. Every other eyebrow on the site is a <span> inside a
   heading block, which is why none of them does this. Shrinking it to its own
   content is the fix, not narrowing the head, because the head has to stay
   the width of the bar for the 1979 label and the first dot to line up. */
.tl-track .tl-eyebrow{display:inline-flex;width:auto;align-self:flex-start;}

/* AND THE TITLE IS THE SITE'S TITLE, ALL WHITE. Matt, same message: "Main
   title should be standardised and all white." It was 34px with the second
   line in aqua, set by <em> in the prototype's own copy. The numbers here are
   the site's h2 spec, the one the bento and the sector tiers already use, so
   the timeline stops being the one heading on the page with a size of its
   own. The aqua comes off the <em> rather than out of the markup, so the
   emphasis is still in the content if it is ever wanted back. */
.tl-track .tl-title{font-size:clamp(32px,3.1vw,46px);letter-spacing:-1.3px;
  line-height:1.04;color:#fff;}
.tl-track .tl-title em{font-style:normal;color:#fff;}
@media (max-width:900px){
  .tl-track .tl-title{font-size:clamp(26px,6vw,34px);}
}
.tl-track{position:relative;}
.tl-stage{position:sticky;top:0;height:100vh;overflow:hidden;
  display:flex;flex-direction:column;justify-content:space-between;
  padding:clamp(50px,6vh,80px) 0 clamp(28px,4vh,44px);}
.tl-stage::before{content:"";position:absolute;left:-30%;top:-60%;width:160%;height:220%;
  pointer-events:none;z-index:0;opacity:.5;
  background:
    radial-gradient(closest-side at 20% 38%, rgba(0,238,204,.30), rgba(0,238,204,0) 100%),
    radial-gradient(closest-side at 58% 62%, rgba(62,201,255,.26), rgba(62,201,255,0) 100%),
    radial-gradient(closest-side at 84% 30%, rgba(255,255,255,.10), rgba(255,255,255,0) 100%),
    radial-gradient(closest-side at 40% 82%, rgba(120,110,255,.24), rgba(120,110,255,0) 100%);}
.tl-stage.viz::before{animation:tl-drift 34s ease-in-out infinite;}
@keyframes tl-drift{
  0%{transform:translate(0,0) rotate(0deg) scale(1);}
  33%{transform:translate(-6%,2%) rotate(30deg) scale(1.1);}
  66%{transform:translate(5%,-3%) rotate(-20deg) scale(1.04);}
  100%{transform:translate(0,0) rotate(0deg) scale(1);}}
.tl-head{position:relative;z-index:4;max-width:var(--max-w);margin:0 auto;
  padding:0 var(--gutter);flex:none;}
.tl-eyebrow{font-size:13px;font-weight:500;letter-spacing:1.1px;text-transform:uppercase;
  color:rgba(255,255,255,.42);margin-bottom:14px;}
.tl-title{font-size:40px;font-weight:900;text-transform:uppercase;letter-spacing:-1px;
  line-height:1.05;}
.tl-title em{font-style:normal;color:var(--aqua);}
.tl-view{position:relative;z-index:2;flex:1 1 auto;min-height:0;
  display:flex;align-items:center;overflow:hidden;}
.tl-rail{display:flex;align-items:stretch;gap:var(--node-gap);
  padding:0 max(var(--gutter),calc((100vw - var(--max-w))/2 + var(--gutter)));
  will-change:transform;height:100%;}
.tl-n{position:relative;flex:0 0 var(--node-w);
  opacity:.3;transition:opacity .25s ease;}
.tl-n.on{opacity:1;transition:opacity .55s ease;}
.tl-in{position:absolute;left:0;width:100%;z-index:3;}
.tl-high .tl-in{bottom:calc(100% - var(--y) + 26px);}
.tl-low  .tl-in{top:calc(var(--y) + 26px);}
.tl-dot{position:absolute;left:-6px;width:12px;height:12px;border-radius:50%;
  background:var(--aqua);z-index:3;transform:scale(.3);
  transition:transform .22s cubic-bezier(.5,0,1,1);}
.tl-n.on .tl-dot{transform:scale(1);
  transition:transform .45s cubic-bezier(.34,1.56,.64,1);}
.tl-dot::after{content:"";position:absolute;inset:0;border-radius:50%;
  box-shadow:0 0 0 2px var(--aqua);opacity:0;}
.tl-n.on .tl-dot::after{animation:tl-ring 1.1s ease-out .12s 1;}
@keyframes tl-ring{
  0%{transform:scale(1);opacity:.55;}
  100%{transform:scale(3.4);opacity:0;}}
.tl-dot{top:var(--y);margin-top:-6px;}
.tl-link{position:absolute;left:0;width:calc(100% + var(--node-gap));z-index:1;
  pointer-events:none;top:var(--ly);height:var(--lh);}
.tl-link b,.tl-link i{position:absolute;background:rgba(255,255,255,.15);}
.tl-link b{left:0;right:0;height:1px;}
.tl-link i{right:0;width:1px;top:0;bottom:0;}
.tl-dn .tl-link b{top:0;}
.tl-up .tl-link b{bottom:0;}
.tl-fill{position:absolute;inset:0;}
.tl-fill b,.tl-fill i{position:absolute;background:var(--aqua);
  box-shadow:0 0 9px rgba(0,238,204,.5);
  transition:transform .09s linear;}
.tl-fill b{left:0;right:0;height:1.5px;transform-origin:left center;
  transform:scaleX(var(--rf,0));}
.tl-fill i{right:0;width:1.5px;top:0;bottom:0;
  transform:scaleY(var(--vf,0));}
.tl-dn .tl-fill b{top:0;}
.tl-dn .tl-fill i{transform-origin:center top;}
.tl-up .tl-fill b{bottom:0;}
.tl-up .tl-fill i{transform-origin:center bottom;}
.tl-art{position:absolute;left:36%;width:var(--iw);z-index:2;pointer-events:none;
  opacity:0;transform:translateY(24px) scale(.95);
  transition:opacity .24s ease,transform .3s cubic-bezier(.5,0,1,1);}
.tl-n.on .tl-art{opacity:1;transform:none;
  transition:opacity .6s ease .06s,transform .7s cubic-bezier(.22,1,.36,1) .06s;}
.tl-high .tl-art{top:calc(var(--y) + 30px);}
.tl-low  .tl-art{bottom:calc(100% - var(--y) + 30px);}
.tl-art{height:var(--ih);display:flex;align-items:flex-start;}
.tl-art img{width:auto;max-width:100%;max-height:100%;}
.tl-cut img{filter:drop-shadow(0 22px 34px rgba(0,0,0,.5));}
.tl-tile img{border-radius:14px;box-shadow:0 20px 44px rgba(0,0,0,.42);}
.tl-yr{font-family:'Abolition',sans-serif;font-size:196px;line-height:.76;
  color:rgba(255,255,255,.10);letter-spacing:1px;pointer-events:none;
  margin-bottom:-52px;transform-origin:left bottom;
  opacity:0;transform:translateY(30px) scale(1.05);
  transition:opacity .26s ease,transform .32s cubic-bezier(.5,0,1,1);}
.tl-n.on .tl-yr{opacity:1;transform:none;
  transition:opacity .55s ease,transform .75s cubic-bezier(.22,1,.36,1);}
.tl-yr i{font-style:normal;}
.tl-yr-q{color:rgba(255,255,255,.07);}
.tl-h{font-size:31px;font-weight:900;text-transform:uppercase;letter-spacing:-.7px;
  line-height:1.06;position:relative;
  opacity:0;transform:translateY(18px);
  transition:opacity .22s ease,transform .28s cubic-bezier(.5,0,1,1);}
.tl-n.on .tl-h{opacity:1;transform:none;
  transition:opacity .5s ease .14s,transform .6s cubic-bezier(.22,1,.36,1) .14s;}
.tl-p{margin-top:15px;font-size:15px;font-weight:400;line-height:1.62;
  color:rgba(255,255,255,.66);max-width:33ch;
  opacity:0;transform:translateY(14px);
  transition:opacity .2s ease,transform .26s cubic-bezier(.5,0,1,1);}
.tl-n.on .tl-p{opacity:1;transform:none;
  transition:opacity .5s ease .24s,transform .6s cubic-bezier(.22,1,.36,1) .24s;}
.tl-end{flex:0 0 520px;}
.tl-end .tl-in{bottom:calc(100% - var(--y) + 26px);top:auto;}
.tl-end .tl-art{top:calc(var(--y) + 30px);bottom:auto;left:6%;}
.tl-end .tl-dot{margin-top:-7px;width:14px;height:14px;left:-7px;}
.tl-yr-end{color:rgba(0,238,204,.16);}
.tl-h-end{font-size:44px;}
.tl-h-end em{font-style:normal;color:var(--aqua);}
@media (max-height:880px){
  .tl-yr{font-size:150px;margin-bottom:-40px;}
  .tl-h{font-size:27px;}
  .tl-p{font-size:14px;}
  .tl-title{font-size:34px;}
  .tl-h-end{font-size:37px;}
  .tl-art{--iw:0;transform:translateY(24px) scale(.9);}
}
@media (max-height:760px) and (min-width:901px){
  .tl-track{height:auto !important;}
  .tl-stage{position:static;height:auto;padding:96px 0;}
  .tl-view{overflow-x:auto;overflow-y:hidden;overflow-y:clip;scroll-snap-type:x mandatory;margin-top:40px;}
  .tl-rail{transform:none !important;height:auto;}
  .tl-n{opacity:1;scroll-snap-align:center;padding:0 0 0 26px;}
  .tl-in,.tl-art{position:static;transform:none;opacity:1;}
  .tl-art{margin:22px 0 0;height:auto;}
  .tl-art img{max-height:220px;}
  .tl-dot{top:6px !important;margin-top:0 !important;left:0;transform:scale(1);}
  .tl-link,.tl-prog{display:none;}
  .tl-yr,.tl-h,.tl-p{opacity:1;transform:none;}
}
.tl-prog{position:relative;z-index:4;flex:none;max-width:var(--max-w);
  margin:0 auto;padding:0 var(--gutter);width:100%;}
.tl-prog-t{height:2px;background:rgba(255,255,255,.10);position:relative;}
.tl-prog-b{position:absolute;left:0;top:0;height:100%;width:0;
  background:linear-gradient(90deg,rgba(0,238,204,.5),var(--aqua));}
.tl-prog-l{display:flex;justify-content:space-between;margin-top:11px;
  font-size:12px;font-weight:500;letter-spacing:.9px;text-transform:uppercase;
  color:rgba(255,255,255,.34);}
@media (max-width:900px),(prefers-reduced-motion:reduce),(pointer:coarse){
  .tl-track{height:auto !important;}
  .tl-stage{position:static;height:auto;padding:110px 0;}
  .tl-stage.viz::before{animation:none;}
  .tl-view{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;margin-top:44px;}
  .tl-rail{transform:none !important;height:auto;}
  .tl-n{opacity:1;scroll-snap-align:center;
    flex:0 0 min(78vw,var(--node-w));padding:0 0 0 26px;}
  .tl-in,.tl-art{position:static;transform:none;opacity:1;}
  .tl-art{width:min(64vw,var(--iw));margin:22px 0 0;height:auto;}
  .tl-art img{max-height:200px;}
  .tl-dot{top:6px !important;margin-top:0 !important;left:0;transform:scale(1);}
  .tl-link,.tl-prog{display:none;}
  .tl-yr{font-size:120px;margin-bottom:-32px;}
  .tl-yr,.tl-h,.tl-p{opacity:1;transform:none;}
  .tl-title{font-size:31px;}
}
/* =============== Matt's pass over the timeline, 2 November ============ */

/* THE TEXT STEPS OFF THE GHOST YEAR. Matt: "leave the number in place
   but move the content (Title / Para) right slightly to offset it say
   15px. Apply to all date / text blocks." The year is drawn behind the
   title, so with both flush left the two fight for the same edge and
   the year reads as a mistake rather than as a watermark. The year does
   not move; only the words do.

   35, NOT 15. Matt asked for 15 off the artboard, looked at it
   built and said "content about another 20px offset". The first
   number was read off a crop, this one off the page. */
.tl-n .tl-in .tl-h,
.tl-n .tl-in .tl-p{margin-left:35px;}

/* THE DEAD SPACE ABOVE THE BLOCK. Matt, 2 November: "Gap feels way to
   big?" Measured at 210px before touching anything: 96 from the section
   padding every block on this site carries, and 114 again from the
   stage's own head room, stacked one on the other because the track IS
   a section and the stage sits inside it.

   The section padding goes and the stage's stays, which is the right
   way round. The stage's is load bearing: when the block pins, that
   padding is what holds "Garage to global" clear of the nav bar, so
   cutting it would slide the heading under the logo. The section's is
   doing nothing here but adding to it.

   100px instead of 210, and the head clears the nav by what it did
   before. */
html body section.tl-track{padding-top:0 !important;}
.tl-track .tl-stage{padding-top:clamp(96px,11vh,120px);}

.tl-n[data-i="0"] .tl-art:not(.tl-clip){--iw:698px !important;left:-85.1%;height:auto;z-index:2;top:auto;bottom:calc(100% - var(--y));transform-origin:62% 100%;transform:translateY(15%) rotate(-25deg) scale(.96);}
.tl-n[data-i="0"].on .tl-art:not(.tl-clip){transform:translateY(15%) rotate(-25deg);}
.tl-n[data-i="0"] .tl-art:not(.tl-clip) img{max-height:47vh;}
.tl-n[data-i="1"] .tl-art:not(.tl-clip){--iw:572px !important;left:29.4%;height:auto;z-index:2;top:auto;bottom:calc(100% - var(--y));transform-origin:62% 100%;transform:translateY(48%) rotate(-43deg) scale(.96);}
.tl-n[data-i="1"].on .tl-art:not(.tl-clip){transform:translateY(48%) rotate(-43deg);}
.tl-n[data-i="1"] .tl-art:not(.tl-clip) img{max-height:60vh;}
.tl-n[data-i="2"] .tl-art:not(.tl-clip){--iw:373px !important;left:9%;height:auto;z-index:2;top:auto;bottom:calc(100% - var(--y));transform-origin:62% 100%;transform:translateY(-11%) rotate(0deg) scale(.96);}
.tl-n[data-i="2"].on .tl-art:not(.tl-clip){transform:translateY(-11%) rotate(0deg);}
.tl-n[data-i="2"] .tl-art:not(.tl-clip) img{max-height:25vh;}
.tl-n[data-i="3"] .tl-art:not(.tl-clip){--iw:326px !important;left:67.2%;height:auto;z-index:2;top:auto;bottom:calc(100% - var(--y));transform-origin:62% 100%;transform:translateY(67%) rotate(-14deg) scale(.96);}
.tl-n[data-i="3"].on .tl-art:not(.tl-clip){transform:translateY(67%) rotate(-14deg);}
.tl-n[data-i="3"] .tl-art:not(.tl-clip) img{max-height:36vh;}
.tl-n[data-i="4"] .tl-art:not(.tl-clip){--iw:386px !important;left:31.7%;height:auto;z-index:2;top:auto;bottom:calc(100% - var(--y));transform-origin:62% 100%;transform:translateY(-7%) rotate(0deg) scale(.96);}
.tl-n[data-i="4"].on .tl-art:not(.tl-clip){transform:translateY(-7%) rotate(0deg);}
.tl-n[data-i="4"] .tl-art:not(.tl-clip) img{max-height:27vh;}
.tl-n[data-i="5"] .tl-art:not(.tl-clip){--iw:447px !important;left:30.4%;height:auto;z-index:2;top:auto;bottom:calc(100% - var(--y));transform-origin:62% 100%;transform:translateY(79%) rotate(0deg) scale(.96);}
.tl-n[data-i="5"].on .tl-art:not(.tl-clip){transform:translateY(79%) rotate(0deg);}
.tl-n[data-i="5"] .tl-art:not(.tl-clip) img{max-height:31vh;}
.tl-n[data-i="6"] .tl-art:not(.tl-clip){--iw:489px !important;left:-19.6%;height:auto;z-index:2;top:auto;bottom:calc(100% - var(--y));transform-origin:62% 100%;transform:translateY(30%) rotate(70deg) scale(.96);}
.tl-n[data-i="6"].on .tl-art:not(.tl-clip){transform:translateY(30%) rotate(70deg);}
.tl-n[data-i="6"] .tl-art:not(.tl-clip) img{max-height:47vh;}
.tl-n[data-i="7"] .tl-art:not(.tl-clip){--iw:466px !important;left:13.6%;height:auto;z-index:2;top:auto;bottom:calc(100% - var(--y));transform-origin:62% 100%;transform:translateY(115%) rotate(0deg) scale(.96);}
.tl-n[data-i="7"].on .tl-art:not(.tl-clip){transform:translateY(115%) rotate(0deg);}
.tl-n[data-i="7"] .tl-art:not(.tl-clip) img{max-height:21vh;}
.tl-n[data-i="8"] .tl-art:not(.tl-clip){--iw:238px !important;left:45.9%;height:auto;z-index:2;top:auto;bottom:calc(100% - var(--y));transform-origin:62% 100%;transform:translateY(6%) rotate(0deg) scale(.96);}
.tl-n[data-i="8"].on .tl-art:not(.tl-clip){transform:translateY(6%) rotate(0deg);}
.tl-n[data-i="8"] .tl-art:not(.tl-clip) img{max-height:30vh;}
.tl-n[data-i="10"] .tl-art:not(.tl-clip){--iw:867px !important;left:-14.5%;height:auto;z-index:2;top:auto;bottom:calc(100% - var(--y));transform-origin:62% 100%;transform:translateY(109%) rotate(0deg) scale(.96);}
.tl-n[data-i="10"].on .tl-art:not(.tl-clip){transform:translateY(109%) rotate(0deg);}
.tl-n[data-i="10"] .tl-art:not(.tl-clip) img{max-height:32vh;}/* THE PRESS CUTTING, placed in the lab like everything else
   and written in the same terms: bottom on the rail, then
   pushed back across it by a share of its own height. */
.tl-n[data-i="0"] .tl-clip{--iw:241px;left:32.8%;top:auto;bottom:calc(100% - var(--y));height:auto;z-index:1;opacity:.92;transform-origin:62% 100%;transform:translateY(-11%) rotate(0deg);}
.tl-n[data-i="0"] .tl-clip img{width:100%;max-height:none;border-radius:12px;box-shadow:0 18px 40px rgba(0,0,0,.5);}


/* THE PHOTOGRAPHS ARE NOT CUT-OUTS, so they keep a frame and a floor.
   Without a max-height the staff photograph and the archive hall run
   taller than their slot and push into the rail. */
.tl-n .tl-tile img{max-height:46vh;}

/* THE PHONE PUTS EVERYTHING BACK FLAT. Every rule above positions
   absolutely or rotates, and the mobile layout is a stack of static
   cards, so all of it has to come back off or a rotated harness lands
   on the heading below it. */
@media (max-width:900px),(prefers-reduced-motion:reduce),(pointer:coarse){
  .tl-n .tl-art,.tl-n .tl-clip{
    position:static !important;left:auto !important;bottom:auto !important;
    transform:none !important;--iw:auto !important;opacity:1 !important;}
  .tl-n .tl-art img,.tl-n .tl-clip img{max-height:220px !important;}
  .tl-n .tl-in .tl-h,.tl-n .tl-in .tl-p{margin-left:0 !important;}
}


/* ======== WHAT ELSE GOES INTO THIS (crosslink.py) ===================== */
.hubg.hubg-3{grid-template-columns:repeat(3,1fr);}
html body .hubg.hubg-3 > .hubc{grid-column:auto;}
.hubg.hubg-4{grid-template-columns:repeat(4,1fr);}
html body .hubg.hubg-4 > .hubc{grid-column:auto;}
@media (max-width:1080px){
  .hubg.hubg-3,.hubg.hubg-4{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:640px){
  .hubg.hubg-3,.hubg.hubg-4{grid-template-columns:1fr;}
}


/* the two buttons (akit.py, locked 24 September) */
/* THE HEIGHT IS THE BUTTON'S, NOT ITS CONTENTS'. 1 October, while checking
   every button on the site: line-height:normal let whatever was inside the
   pill decide how tall it was. The same .btn measured 42px with a plain
   label, 45px with an arrow after it, 45px again on two pages that set
   their own leading, and 49px on the contact page. Four heights for one
   button, and nobody chose any of them.

   line-height:1 with a pixel off the top padding keeps the 42px the site
   already had, and the two rules under it stop an arrow span or an icon
   from stretching the pill again. */
html body .btn,html body .btn.nav-cta{display:inline-flex;align-items:center;
  justify-content:center;gap:10px;
  min-height:42px;height:auto;padding:0 28px;border-radius:999px;
  font-size:14px;font-weight:600;letter-spacing:.4px;line-height:1;
  box-sizing:border-box;text-decoration:none;
  background:linear-gradient(100deg,#00eecc 0%,#19e6c4 55%,#5cf2dd 100%);
  color:#1e2855;transition:.25s;}
html body .btn:hover{transform:translateY(-1px);
  box-shadow:0 12px 32px rgba(0,238,204,.4);}
html body .btn-line{background:rgba(255,255,255,.11);color:#fff;
  box-shadow:none;}
html body .btn-line:hover{background:rgba(255,255,255,.18);
  box-shadow:none;}
html body .btn > *{line-height:1;font-size:inherit;}
html body .btn svg{width:16px;height:16px;flex:0 0 auto;}
/* the bar's own button is one setting too. It read 13px at 700 on 67 pages
   and 14px at 600 on the home page and the services index, for one
   component that is copied onto all 70. The 67 win: a slightly tighter
   label in the bar than on the page is a hierarchy worth keeping, and it
   is the setting almost the whole site already had. */
html body .btn.nav-cta,html body .navwrap .btn.nav-cta,
html body .navwrap a.btn.nav-cta{font-size:13px;font-weight:700;
  line-height:13px;}
/* ON A PHONE THE BAR'S BUTTON IS ONE LINE. Michael, 27 October, on a
   Pixel: "Start Your Project" broke onto two lines at 412px and three at
   360px. The 28px each side the pill carries on a desk left it 74px of
   label at 360. Tighter sides, a smaller gap in the bar and no wrap keep
   it to one line at 360 with the logo and the burger untouched. */
@media (max-width:480px){
  html body .navwrap nav{gap:12px;}
  html body .navwrap .btn.nav-cta,
  html body .navwrap a.btn.nav-cta{padding:0 14px;white-space:nowrap;
    font-size:12px;letter-spacing:.2px;}
}

/* THE BREADCRUMB IS A LINK, NOT A SENTENCE. Measured at 390px on 1 October:
   its links are 10 to 22px tall, and WCAG 2.2 asks for 24 unless a link is
   inline in a block of text, which a breadcrumb is not. The padding is paid
   back as negative margin, so the hit area grows to 24px and not one pixel
   on the page moves. */
html body .crumb a{display:inline-block;padding:7px 0;margin:-7px 0;}

/* ================= THE RADIUS AND SHADOW TOKENS, ENFORCED =============
   2 October, sweeping the whole site for drift. The design system names
   four radii and three shadows:

       --r-s  12px   inputs, small tiles
       --r-m  20px   cards, panels, tables
       --r-l  32px   full width bands, CTA
       --pill 999px  buttons, chips, tags
       --e1          the resting card
       --e2          lifted, on hover
       --e3          overlay, dropdown, floating nav

   Measured against that, with every reveal settled first, the site was
   using ten radii. Five of them were doing the job --r-m already owns:

       14px   the form inputs, and two panels on the walk page
       18px   the four benefit cards under the process block
       22px   three related-article cards
       24px   a band, a photo frame, and ONE knowledge card
       26px   the video rail frames and the gallery frames, 31 pages

   The last two are the argument on their own. .hubc is a knowledge card
   and it was drawing 20px on 32 pages and 24px on one. Nobody decided
   that; it is a component that got written twice.

   Shadows were the same story: a resting card shadow of 4px/24px at 21 per
   cent on 33 pages, next to --e1's 6px/30px at 38 per cent on 16. Two
   values for one state.

   WHAT IS DELIBERATELY NOT TOUCHED. 36px, which is the scroll-over sheet
   and the curve Matt signed off on 23 September; 50px, which is the mesh
   blobs and is a shape rather than a corner; the band glows, which are
   lighting rather than elevation and are each doing a different job; and
   26px with its own two-layer shadow on .bx and .sh2-shot, which is the
   Bento. The Bento is one signed-off component with one radius used
   consistently across every part of itself, which is the opposite of drift:
   pulling it to 20px would break a thing that agrees with itself in order
   to make it agree with something else.

   EACH CLASS IS WRITTEN TWICE so the rule carries three classes' worth of
   weight. Four of these are set by selectors like `.hubg .hubc` and
   `.vr .rl-ph`, which outrank a single class, and a rule that loses the
   cascade on the one page that needed it is not a rule. */
html body :is(.relc.relc,.osh-e.osh-e,.esg-card.esg-card,
  .lt-band.lt-band,.hshot.hshot,.hubc.hubc.hubc,.rl-ph.rl-ph,
  .gl-ph.gl-ph,
  .apr-card.apr-card,.wk-panel.wk-panel,.wk-shot.wk-shot,.svc.svc,
  .stats.stats,.railcard.railcard,.railfig.railfig,.scopecol.scopecol,
  .om-card.om-card,.br-band.br-band){border-radius:20px;}
html body :is(input,textarea,select,.fin.fin){border-radius:12px;}
/* the literal rather than var(--e1), because --e1 still means two things:
   the light token on the home page and the services index, which were
   always dark and never went through dark.py, and the dark one everywhere
   else. On a dark ground the light value is invisible, so a token here
   would have quietly removed the shadow from two pages instead of
   standardising it. */
html body :is(.hubc.hubc.hubc,.xpo.xpo,.apr-card.apr-card,.hshot.hshot,
  .wk-panel.wk-panel,.form.form,.rl-ph.rl-ph,.gl-ph.gl-ph,.svc.svc,
  .card.card,.mcard.mcard,.vcard.vcard,.specwrap.specwrap,
  .nextcard.nextcard,.person.person,
  .proc.proc){box-shadow:0 6px 30px rgba(0,0,0,.38);}
/* TWO THE FIRST PASS MISSED, found by walking every card on every page
   rather than the list of names the first pass was written from.

   .proc on the home page carried 0 6px 26px rgba(20,24,64,.08): a shadow
   mixed for a WHITE ground, left behind when home went dark. Eight per cent
   of navy on a navy page is not a soft shadow, it is no shadow, so six cards
   sat flat next to cards that lift. Same mistake as --e1 and found the same
   way: a light value surviving on a page that stopped being light.

   .relc on the ten service pages had the inset ring and nothing else, so the
   related-reading cards were the only cards on the site with no elevation.
   The ring stays, because it is drawn as a one pixel inset rather than a
   border and it gives the card its edge on a near black ground. The resting
   shadow goes under it. */
html body .relc.relc{
  box-shadow:0 6px 30px rgba(0,0,0,.38),inset 0 0 0 1px rgba(255,255,255,.07);}
/* a pill that is 42px tall whatever is in it. The height comes from the
   button, the label is centred in it, and a label long enough to wrap is
   still allowed to grow because the 42 is a minimum rather than a size. */
/* and the one page that drew the outline button two points lighter */
html body .btn-line{background:rgba(255,255,255,.11) !important;}
html body .btn-line:hover{background:rgba(255,255,255,.18) !important;}

/* ================== the knowledge hub (hub.py) ====================== */
.tier-top{display:flex;align-items:flex-end;justify-content:space-between;
  gap:40px;margin-bottom:34px;}
.tier-top .sec-head{flex:1 1 auto;min-width:0;max-width:none;}
.tier-top h2{max-width:20ch;}
/* THE SECOND COLOUR IS GONE. This rule deliberately put the fade back on
   the hub's own tier headings, because at the time the site-wide rule
   covered h2 and the hub wanted its two-tone heading. Matt, 25 September,
   looking at the whole site: "make sure all main titles are all white, not
   half white and half faded. This should appear nowhere in the titles
   anywhere." So the carve-out goes with the rest of them. */
html body .xpo-hd h2{text-transform:uppercase;}
.tier-side{display:flex;align-items:center;gap:18px;flex:none;}
html body a.tier-cta{display:inline-flex;align-items:center;gap:10px;
  white-space:nowrap;text-decoration:none;}

/* THE FOUR-WIDE GRID. Four that fit, not four that nearly fit: the columns
   are the width left after the three gaps, so the last card ends on the
   grid line the heading starts on. */
.hubg{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;
  align-items:stretch;}

/* home's card, settled */
html body .hubg .hubc,html body .hub-track .hubc{
  display:flex;flex-direction:column;padding:0;overflow:hidden;
  border-radius:var(--r,20px);text-decoration:none;
  background:linear-gradient(165deg,#151b47,#111640);
  box-shadow:0 4px 24px rgba(0,0,0,.21);
  transition:transform .28s ease,box-shadow .28s ease;}
html body .hubg .hubc:hover{transform:translateY(-4px);
  box-shadow:0 26px 56px rgba(0,0,0,.34);}
html body .hubg .hubc-ph{display:block;height:168px;background-size:cover;
  background-position:center;background-color:#151b47;}
html body .hubg .hubc-bd{display:flex;flex-direction:column;flex:1;
  align-items:flex-start;padding:24px 24px 26px;}
/* SENTENCE CASE, LIKE HOME. The interiors uppercase every h1 to h4 as a
   global rule, and a card title in caps is a headline rather than a link:
   three lines of shouting where home has two lines of a sentence. This is
   the card home ships, so it reads the way home's does. */
html body .hubg .hubc h3{font-size:19px;font-weight:700;line-height:1.24;
  letter-spacing:-.4px;color:#fff;margin:16px 0 0;min-height:2.5em;
  text-transform:none;}
html body .hubg .hubc p{font-size:13.5px;line-height:1.6;margin:12px 0 0;
  color:rgba(255,255,255,.62);flex:1;}
html body .hubg .hubc .go{display:inline-flex;align-items:center;gap:8px;
  margin-top:20px;font-size:13px;font-weight:700;color:var(--aqua,#00eecc);}
html body .hubg .hubc .go::after{content:"\2192";width:26px;height:26px;
  border-radius:50%;display:inline-flex;align-items:center;
  justify-content:center;font-size:13px;color:#fff;
  background:rgba(255,255,255,.12);transition:.25s;}
html body .hubg .hubc:hover .go::after{color:#0b0f2e;
  background:linear-gradient(110deg,#00eecc,#2fd9e0);}

/* THE RAIL'S CARDS, on a page whose stylesheet shouts at every h3. Same
   two corrections as the grid: sentence case, and the arrow sits on the
   bottom of the card so a two line title and a three line title still line
   their arrows up. */
html body .rl-card h3{text-transform:none;}
html body .rl-card p{flex:1 1 auto;}
html body .rl-card .rl-arw{margin-top:auto;margin-bottom:0;flex:none;}
html body .rl-card p{margin-bottom:28px;}

/* THE EXPO BAND */
.xpo{display:grid;grid-template-columns:1.05fr 1fr;gap:0;overflow:hidden;
  border-radius:var(--r,20px);background:linear-gradient(165deg,#151b47,#111640);
  box-shadow:0 4px 24px rgba(0,0,0,.21);}
.xpo-hd{padding:46px 44px 40px;}
.xpo-hd h2{margin:20px 0 0;font-size:clamp(26px,2.5vw,36px);font-weight:900;
  text-transform:uppercase;letter-spacing:-.02em;line-height:1.05;color:#fff;}
.xpo-hd h2 em{font-style:normal;color:var(--aqua,#00eecc);}
.xpo-hd p{margin:18px 0 26px;font-size:15px;line-height:1.62;
  color:rgba(255,255,255,.66);max-width:44ch;}
.xpo-list{grid-column:1/2;padding:0 44px 46px;}
.xpo-row{display:grid;grid-template-columns:1.5fr 1fr;gap:4px 18px;
  padding:16px 0 15px;position:relative;}
.xpo-row::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;
  background:rgba(255,255,255,.12);}
.xpo-n{font-size:16px;font-weight:700;color:#fff;letter-spacing:-.2px;}
.xpo-d{font-size:13px;color:var(--aqua,#00eecc);text-align:right;
  font-weight:600;letter-spacing:.2px;}
.xpo-v{font-size:13px;color:rgba(255,255,255,.58);}
.xpo-s{font-size:13px;color:rgba(255,255,255,.58);text-align:right;}
.xpo-ph{grid-column:2/3;grid-row:1/3;min-height:340px;background-size:cover;
  background-position:center;}

/* FOUR THAT FIT ON THE HOME RAIL TOO. Matt, 23 September: "should these on
   home page be 4 equal columns that fit or is it deliberate they're off
   page?" Not deliberate, a near miss: the card was 25% of the rail and the
   rail also has three 16px gaps in it, so the fourth card came up 48px short
   and got cut through a word. It reads as a bug rather than as a peek. The
   column is now what is left after the gaps, so four sit on the grid and the
   arrows are the thing that says there are more.

   AND THREE, NOT FOUR. Matt, 8 October, on the home page running order:
   "go with 3 columns not 4." The same move the Knowledge Hub itself made
   the day before, for the same reason: at a quarter of the rail the card
   is about 310px on a laptop and the photograph on it is a thumbnail,
   which makes a row of guides read as a list of file names. At a third it
   is about 430px and the picture is a picture. The arrows still say there
   are more, and there are more left to find now, which is what a rail is
   for. */
html body #hub .hub-track .hubc{flex:0 0 calc((100% - 2 * 16px) / 3);}

/* AND THE PHOTOGRAPH BECOMES A PHOTOGRAPH. Matt, 8 October: "images can be
   taller so more standard landscape image shape. It's OK for the block to
   be taller so just add height, no compression elsewhere needed."

   168px on a 433px card is 2.58:1, which is a letterbox, not a landscape
   frame, and it was cropping the top and bottom off every shot: the fork
   lift picture lost the racking above it and the floor below. 3:2 is the
   shape the camera took them in, so the crop is the one the photographer
   framed. aspect-ratio rather than a pixel height, because the card width
   changes with the window and a fixed height would go back to being a
   letterbox at a laptop and a square on a phone.

   Height is ADDED. Nothing above or below it is tightened to pay for it,
   which is what Matt asked for: the rail simply gets taller. */
html body #hub .hub-track .hubc-ph{height:auto;aspect-ratio:3 / 2;}
@media (max-width:1180px){
  .hubg{grid-template-columns:repeat(2,1fr);}
  html body #hub .hub-track .hubc{flex:0 0 calc((100% - 16px) / 2);}
}

/* THE RAIL IS SWIPED ON A PHONE, NOT ARROWED. Matt, 30 November: "Home
   hub rail on phone - 16 cards hidden behind two arrows. Make it
   swipe?"

   WHY IT WAS NOT ALREADY. The rail moves by transform: the arrows and
   the auto advance both set translateX on .hub-track, and the whole
   set is written out twice so it can come round silently. A finger
   drag does nothing to a transform, so on a phone fifteen of the
   sixteen cards were reachable only by hitting a 44px arrow, fifteen
   times.

   THE TWO CANNOT BOTH DRIVE IT, which is the thing to get right. A
   rail that is scrolled by the finger and moved by a transform fights
   itself: the transform drags the content out from under the scroll
   position and the card under the thumb jumps. So below 820px the
   transform is turned off outright, with !important because the JS
   writes it inline, and the rail becomes a plain overflow-x scroller.
   The arrows go with it: they would move a thing that no longer
   listens.

   SNAP, AND THE SCROLLBAR HIDDEN. Each card snaps to the left edge so
   a flick lands on a card rather than between two, and the bar itself
   is hidden because iOS shows none and Android's sits across the
   bottom of the photographs.

   820px, not 700, because that is where this rail is already down to
   two cards across and the arrows start to be most of what you see. */
@media (max-width:820px){
  html body #hub .hub-rail{overflow-x:auto;overflow-y:hidden;
    -webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;
    scrollbar-width:none;scroll-padding-left:0;}
  html body #hub .hub-rail::-webkit-scrollbar{display:none;}
  html body #hub .hub-track{transform:none !important;width:max-content;
    transition:none !important;}
  /* THE CARD IS NARROWER THAN THE RAIL ON PURPOSE, so the next one
     peeks and the rail looks like it continues. Measured first: at
     iPhone 13 width the rail's own box is 326px inside the wrap's
     padding, and the card was coming out 360 because the two column
     rule above still had hold of the flex basis. Doubled class and
     !important, which is this project's rule whenever extract_css
     could reorder the two. 78vw of a 390px screen is 304, which
     leaves 22px of the next card showing. */
  html body #hub .hub-track .hubc.hubc{scroll-snap-align:start;
    flex:0 0 78vw !important;max-width:none !important;}
  html body #hub .hub-a{display:none !important;}
}
@media (max-width:900px){
  .tier-top{flex-direction:column;align-items:flex-start;gap:22px;}
  .tier-side{width:100%;justify-content:space-between;
    flex-wrap:wrap;row-gap:16px;}
  html body a.tier-cta{max-width:100%;white-space:normal;}
  .hubg{grid-template-columns:1fr;}
  .xpo{grid-template-columns:1fr;}
  .xpo-hd{padding:34px 26px 26px;}
  .xpo-list{grid-column:1/-1;padding:0 26px 30px;}
  .xpo-ph{grid-column:1/-1;grid-row:auto;min-height:220px;}
}
