
.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;}
}
