/* token floor (vardef.py) */
:where(html){--surface:#eaecef;--f-logo-h:45px;--f-logo-gap:38px;}
/* the world map, lifted from home (map.py) */
/* ============ V30: where we supply ============
   Not a panel. The map runs the full width of the page with nothing around it,
   sits behind everything, drifts at its own speed as you scroll, and the band
   below climbs up over the top of it. The frame is cropped to the part of the
   world this band is actually about, so it can go full width without becoming
   a thousand pixels tall.

   Military without the dressing up: no grid, no radar sweep. What carries it is
   the reticle marks, the origin called out with its real coordinates typing in,
   the readout counting up, and routes that draw rather than fade.

   The routes do not cross each other, do not pass through a label and do not
   run over another destination's mark. Each one's bow is solved by search in
   the build script rather than set by eye. --------------------------------- */

/* No z-index here on purpose. It used to be 1, which made this whole section a
   stacking context and lifted the map above the band before it: that is why the
   map was covering the foot of the "Built not to fail" panel. position:relative
   with z-index auto does NOT create a stacking context, so the map inside can
   drop to a negative layer and land behind the page's content rather than behind
   its own section only. */
#supply{padding-top:0;padding-bottom:0;position:relative;}
#supply .sec-top{margin-bottom:22px;align-items:start;}
#supply .sec-top .sec-note-w{grid-column:8/span 5;}
/* the sixteen names, in the paragraph's old column, on the grid. The block
   starts level with the title rather than with the eyebrow above it, so the two
   headings share a top line. 52px is the pill's height plus its margin. */
#supply .sec-note-w{margin-top:52px;}
#supply .eu-head{display:flex;align-items:center;gap:14px;}
#supply .eu-head span{font-size:11px;font-weight:700;letter-spacing:1.8px;
  text-transform:uppercase;color:var(--aqua);}
#supply .eu-chev .chev{--h:12px;}
#supply .eu-cols{list-style:none;margin:18px 0 0;padding:0;display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));gap:0 16px;}
#supply .eu-cols li{font-size:13px;line-height:2;color:rgba(255,255,255,.6);
  font-family:ui-monospace,'SFMono-Regular',Menlo,monospace;letter-spacing:.2px;}
.wm-hud .hud{display:inline-flex;align-items:baseline;gap:10px;
  background:rgba(255,255,255,.055);border-radius:12px;padding:11px 16px 9px;
  font-size:13.5px;color:rgba(255,255,255,.82);}
.wm-hud .hud b{font-family:ui-monospace,'SFMono-Regular',Menlo,monospace;
  font-size:10px;font-weight:700;letter-spacing:1.4px;color:var(--aqua);}
.wm-hud .hud .cnt{font-style:normal;font-weight:700;color:#fff;
  font-variant-numeric:tabular-nums;}
/* full bleed. #supply is already page width, so the map only has to sit
   outside .wrap to run edge to edge */
/* The map used to end on a hard cut, which read as truncated. Both axes are
   masked so it dissolves into the page instead. The ramps are long and stepped
   through several stops rather than going straight from nothing to solid: a two
   stop fade over a short distance is what makes an edge look like a wipe rather
   than a horizon. The two gradients sit on different elements because one mask
   per element is the version that works everywhere. */
.wm-bleed{position:relative;}
/* On a very wide, short window the map's height is the window's width times the
   frame's aspect, so it grows until the Australia label falls off the bottom of
   the screen. Capping the width caps the height. The horizontal fade means the
   cap is invisible: the map dissolves before it reaches its own edge, so on a
   2560px screen it still reads as running off the sides. */
/* No mask on either axis any more. The long ramps existed because the old land
   gradient was at its lightest exactly where the frame cuts it, so the top edge
   showed as a bright straight line across northern Canada and Russia and had to
   be dissolved. Flat and dark, the sea IS the page colour, so the only thing the
   frame can cut is a landmass that is now a few points off the background. There
   is nothing left to hide, and the fades were the last blends on the band. */
/* No width cap either. The cap existed only to stop the map's height running away
   on a wide window, which was a problem when the whole band had to fit a screen.
   It does not have to any more, so the map is simply as wide as the page. */
/* -1 puts the map behind every piece of content on the page while still sitting
   above the page's own background colour. Negative layers paint after the canvas
   and before anything in the normal flow, which is exactly what a backdrop is. */
.wm-par{margin:0 auto;
  will-change:transform;transform:translateY(var(--py,0px));position:relative;z-index:-1;}
.wm{display:block;width:100%;height:auto;}
/* the map slides up behind the title and the eyebrow row, leaving 4px of clear
   page above it. The head's height is measured at runtime rather than guessed,
   because it changes with the width */
#supply .wrap{position:relative;z-index:2;}
/* The map is lifted by a further 102 units of its own drawing, which is exactly
   the strip that used to be cropped off the top. Without this the head did not
   move an inch but the map underneath it did: uncropping added 102 units above
   row 102, and since the map hangs from this point, everything on it dropped by
   that much. 148px at 1864 wide, which is why the eyebrow and title suddenly read
   as sitting too high.
   102/1280 of the map's width, and the map is now the width of the page, so the
   figure is a straight 7.96875vw. Expressed that way it holds at every width
   rather than at one. The strip it lifts is Arctic ocean and the top of Canada
   and Russia, and it passes up behind the band above. */
.wm-bleed{margin-top:calc(4px - var(--headh, 4px) - 7.96875vw);}
#supply .sec-note{margin-top:47px;}
/* one flat tone for the landmass, set on the path itself by the build script, and
   no vignette. Both were there to give the map depth, and both were also what
   kept it reading as a separate object sitting on the page. */
.rt{fill:none;stroke:rgba(0,238,204,.6);stroke-width:1.35;stroke-dasharray:5 6;}
.mk{color:var(--aqua);}
/* A comet per route rather than a dash. Two strokes run the same animation:
   a long faint blurred one and a short bright one, both starting at the path's
   origin, so the faint one trails behind the bright one as they travel. The gap
   in each dash pattern is the whole length of the path, so only ever one comet
   is on a route at a time.

   Direction, speed and start time are all per route and all scattered, written
   into each path by the build script. Three run out from the UK for every one
   running back into it, and there is no alternation and no ramp: two neighbouring
   routes can both be travelling the same way, which is exactly what stops it
   reading as a mechanism. The inbound ones are not this animation reversed, they
   are the same animation on a path drawn the other way round, so the glow sits on
   the same side of the bright point on every comet on the map. */
.rtp{fill:none;stroke-linecap:round;opacity:0;}
.rtp-tail{stroke:var(--aqua);stroke-width:3.4;
  stroke-dasharray:34 var(--len,900);filter:blur(3px);}
.rtp-head{stroke:#dffff8;stroke-width:2.6;
  stroke-dasharray:7 var(--len,900);
  filter:drop-shadow(0 0 5px rgba(0,238,204,.95)) drop-shadow(0 0 11px rgba(0,238,204,.6));}
#supply.anim.lit .rtp-tail{opacity:.55;
  animation:rtpulse var(--dur,5.6s) linear infinite var(--del,2300ms);}
#supply.anim.lit .rtp-head{opacity:1;
  animation:rtpulse var(--dur,5.6s) linear infinite var(--del,2300ms);}
/* the three pills, over the empty ocean west of the Americas. Positioned as a
   percentage of the map itself, not of the page, so they hold their place on the
   water at every window size. Gotham throughout. */
.wm-pills{position:absolute;left:9.5%;top:68%;margin-top:60px;
  display:flex;flex-wrap:wrap;gap:10px;z-index:2;}
.wm-pills .hud{display:inline-flex;align-items:baseline;gap:10px;
  background:rgba(255,255,255,.07);border-radius:12px;padding:11px 16px 9px;
  font-size:13.5px;color:rgba(255,255,255,.82);backdrop-filter:blur(6px);}
.wm-pills .hud b{font-size:10px;font-weight:700;letter-spacing:1.4px;
  color:var(--aqua);}
.wm-pills .hud .cnt{font-style:normal;font-weight:700;font-size:17px;color:#fff;
  font-variant-numeric:tabular-nums;}
.og-dot{fill:var(--aqua);}
.og-ring{fill:none;stroke:var(--aqua);stroke-width:1.3;opacity:.9;}
/* no stroke or shadow behind any of the type. It is not needed: the solver
   guarantees no route runs through a label, so the type can sit clean. */
.og-lb{fill:#fff;font-size:13px;font-weight:700;letter-spacing:.6px;}
.og-co{fill:rgba(0,238,204,.9);font-size:10px;letter-spacing:1.2px;
  font-family:ui-monospace,'SFMono-Regular',Menlo,monospace;}
.lb{fill:rgba(255,255,255,.92);font-size:15px;font-weight:600;letter-spacing:1px;}
/* the band below climbs over the map */
/* The band below still climbs over the map, but with flat page colour rather
   than a soft ramp. That ramp was the third and last blend on this band, and it
   goes for the same reason the masks could: what it was softening was the meeting
   of the map and the page, and those are now near enough the same tone that a
   straight edge does not read as one. */
/* The band below no longer climbs over the map. That overlap was worth having
   when the map faded out underneath it, but with a flat map all it does is cover
   the bottom 62px of the drawing, which is the cropped bottom edge still showing
   up. It costs 62px of page to take it off and there is no way around that: the
   only way to stop something covering the foot of the map is to not put it there. */
#supply + section{position:relative;z-index:3;margin-top:0;padding-top:0;
  background:#0b0f2e;}
/* ---- armed state ---- */
#supply.anim .wm-land{opacity:0;}
#supply.anim .rt{stroke-dashoffset:var(--len,900);stroke-dasharray:var(--len,900);}
#supply.anim .mkw{opacity:0;transform:scale(2.1);transform-origin:center;transform-box:fill-box;}
#supply.anim .lb,#supply.anim .wm-pills{opacity:0;}
#supply.anim .wm-origin,#supply.anim .og-lb,#supply.anim .og-co{opacity:0;}
#supply.anim.ready .wm-land{transition:opacity 1s ease .1s;}
#supply.anim.ready .wm-origin,
#supply.anim.ready .og-lb,
#supply.anim.ready .og-co{transition:opacity .55s ease .45s;}
#supply.anim.ready .rt{transition:stroke-dashoffset 1.1s cubic-bezier(.36,.66,.28,1)
             calc(620ms + var(--i) * 95ms);}
/* the mark does not fade in, it locks on: it drops from twice the size onto
   the point as its route lands */
#supply.anim.ready .mkw{transition:opacity .3s ease calc(1420ms + var(--i) * 95ms),
             transform .45s cubic-bezier(.22,1,.36,1) calc(1420ms + var(--i) * 95ms);}
#supply.anim.ready .lb{transition:opacity .55s ease calc(1560ms + var(--i) * 95ms);}
#supply.anim.ready .wm-pills{transition:opacity .8s ease 1900ms;}
#supply.anim.lit .wm-land{opacity:1;}
#supply.anim.lit .rt{stroke-dashoffset:0;}
#supply.anim.lit .mkw{opacity:1;transform:scale(1);}
#supply.anim.lit .lb{opacity:1;}
#supply.anim.lit .wm-pills{opacity:1;}
#supply.anim.lit .wm-origin,#supply.anim.lit .og-lb,#supply.anim.lit .og-co{opacity:1;}
#supply.anim.lit .og-ring{animation:ogpulse 3.4s ease-out infinite;}
#supply.anim.lit .og-ring2{animation:ogpulse 3.4s ease-out infinite 1.7s;}
/* ========= the sectors, out of the bento and into a tier =============== */
/* .chip ON ITS OWN IS THE LIGHT CHIP. It is background:var(--surface) and
   color:var(--ink), which on the certifications bar is overridden and on
   this dark ground is not: the first version of this tier came out as
   fourteen near-white pills with navy text, loud enough to pull the eye off
   the heading. The certs bar gets its look from .certs .chip, so the class
   alone carries the light palette and nothing else.

   Third time a token has meant two things on this project, after --e1 and
   --body, so these are literals: rgba(255,255,255,.07) is the resting
   surface the nav buttons use, and the hover is the aqua the current-sector
   chip uses on the industry pages. Same two values, now on a third
   component, rather than a fourth invention. */
/* THE TIER CARRIES THE GAP BECAUSE THE SECTION BELOW IT HAS NONE. #supply
   is padding:0 and leans on whatever came before it. The first version of
   this tier closed on 27px and put fourteen chips 27px under the next
   eyebrow; the page's own rhythm, measured on #proof, is 118 top and 120
   bottom. Same clamp as the process block, so the tier joins the rhythm
   rather than setting its own. */
/* AND THEN THE TWO ENDS STOPPED MATCHING. Matt, 8 October: "the gap above
   the tier maybe needs tighten as it gets higher it's a bit big, also the
   gap underneath feel tight, maybe make that bigger so the blend is
   smoother, OR maybe have the blend behind the map."

   Both ends were tied to the page's own 118/120 rhythm, which was right
   when the tier sat between two ordinary bands. It does not any more. Above
   it the tier arrives on a 36px curve that slides over the band before it,
   so the first thing under that curve is empty ground and 132px of it on a
   tall window reads as a hole rather than as air. Below it the map now
   fades up through the tier's own ground, and a fade needs room: 120px was
   the whole of it, so the land was still arriving as the heading started.

   So the two ends are no longer the same number, and they should not be.
   Tighter above, 64 to 92, because the curve is doing the work the padding
   used to. Twice as much below, 120 to 190, which is where Matt's other
   idea lands by itself: the map's SVG already starts 58px above this tier's
   bottom edge, so lengthening the bottom puts more of the tier's ground
   over the top of the map and the blend finishes behind it.

   BIGGER AGAIN, AND THE GROUND STAYS SOLID. Matt, 8 October: "this gap
   bigger again please", then, on the next pass, "I still want the map in
   front of the bg from the tier above. Don't block any of the map."

   For one build this tier's ground was a gradient that dissolved over its
   last 170px, so the map underneath could show through. That was the wrong
   half of the problem: it made this band fade instead of bringing the map
   forward, which is what Matt had asked for twice. The map now paints OVER
   this tier (mapfade.py), so there is nothing left for a dissolve to
   uncover and the ground is solid again.

   The padding stays at the bigger number, which Matt asked for on its own
   merits. It also still earns its keep: the map bleeds 148px up into this
   tier, and that bleed needs to land on empty ground rather than on the
   icons. */
html body .wy.ind-tier{padding:clamp(64px,6.5vh,92px) 0 clamp(150px,17vh,250px);}
/* ---- V49: ambient motion pauses when nobody is looking at it ---------------
   Measured, not guessed. An audit of the built page found 25 animations running
   at once and 14 of them off screen: the ten map comets and four of the five
   mesh blobs behind the services band, all turning frames for a viewport they
   were nowhere near.

   The map already had a gate, but a one-way one. Its observer adds .lit on first
   sight and then calls io.disconnect(), which is correct for the reveal (you
   only want the coordinates typing themselves once) and wrong for the comets,
   which then run for the rest of the session. The services mesh had no gate at
   all.

   So two different states, deliberately: .lit means HAS BEEN SEEN and stays on,
   .in-view means IS ON SCREEN NOW and toggles. Play-state rather than
   animation:none, because pausing resumes exactly where it left off; killing the
   animation would snap every comet back to the start of its path each time the
   band scrolled away.

   The origin rings pulsing over Port Talbot are on the list too. They are a
   separate selector from the comets and were still running on their own after
   the first fix, which is the sort of thing only a second measurement finds. */
/* Specificity matters here and the first attempt lost. The comets are driven by
   `#supply.anim.lit .rtp-tail`, which is an id plus three classes; a plain
   `#supply .rtp` is an id plus one and never got a look in. Worse, that rule
   uses the `animation` shorthand, which resets play-state to running every time
   it applies. Matching its weight and then adding one more class wins cleanly
   without reaching for !important. */
#supply.anim.lit:not(.in-view) .rtp,
#supply.anim.lit:not(.in-view) .og-ring,
#services:not(.in-view) .svc-mesh span{animation-play-state:paused;}
#supply .eu-chev .chev{--h:12px;}
#supply .eu-chev .chev{--h:12px;}
/* 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);}
/* ===== the map in front, and only its land fades (mapfade.py) ===== */

/* 1. THE MAP PAINTS IN FRONT OF THE TIER ABOVE.
   The sectors tier is z-index 2 with a solid ground and the map used to be
   z-index -1 inside a section with no z-index at all, so the tier covered
   the top 148px of the map. Both of those move, and nothing else does: the
   band's own words are z-index 2 inside #supply and stay above the map. */
html body #supply{position:relative;z-index:3;}
html body #supply .wm-par{z-index:0;}
html body #supply .wrap{position:relative;z-index:2;}
/* 2. AND ONLY THE LANDMASS FADES, ONLY ACROSS ITS OWN CUT.
   .wm-land is one path of twenty-nine. The routes, the dots, the UK
   marker and the labels are not in this selector and are never touched. */
html body svg.wm .wm-land{-webkit-mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.18) 7%,rgba(0,0,0,.62) 12%,#000 16.4%);
          mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.18) 7%,rgba(0,0,0,.62) 12%,#000 16.4%);
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-size:100% 100%;mask-size:100% 100%;}
@keyframes ogpulse{0%{r:8;opacity:.9;}70%{opacity:0;}100%{r:27;opacity:0;}}
@media (max-width:900px){#supply .eu-cols{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:900px){.wm-pills{position:static;margin-top:18px;}}
@media (max-width:900px){.wm-hud .hud{font-size:12.5px;padding:9px 13px 8px;}.lb{font-size:19px;}.og-lb{font-size:17px;}.og-co{font-size:13px;}}
@media (max-width:600px){.lb{font-size:25px;}.og-lb{font-size:22px;}.og-co{font-size:17px;}}
@media (prefers-reduced-motion:reduce){#supply.anim .wm-land,#supply.anim .mkw,#supply.anim .lb,#supply.anim .wm-pills,
  #supply.anim .wm-origin,#supply.anim .og-lb,#supply.anim .og-co{opacity:1 !important;transform:none !important;}#supply.anim .rt{stroke-dashoffset:0 !important;}#supply.anim.lit .rtp{animation:none;opacity:0;}#supply.anim.lit .og-ring{animation:none;}.wm-par{transform:none !important;}}
#supply.map-port{padding:0;margin-top:96px;position:relative;}
/* home's wrap has no side padding at this width and the interiors' has 28,
   which put the heading and the country list 28px inside home's column */
#supply.map-port .wrap{max-width:var(--max,1332px);margin:0 auto;
  padding:0;position:relative;z-index:2;}
@media (max-width:1412px){
  #supply.map-port .wrap{padding:0 28px;}
}
/* home's own section grid, home's own numbers */
#supply.map-port .sec-top{display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--gut,28px);
  align-items:start;margin-bottom:22px;}
#supply.map-port .sec-head{grid-column:1 / span 7;max-width:none;}
/* home's heading, home's numbers. The interiors size .sec-head h2 down to
   46px and the band's title is 54 on home, which is a visible difference on
   the one line of type the map carries. */
#supply.map-port .sec-head h2{font-family:'Gotham','Inter',Arial,sans-serif;
  font-weight:900;font-size:clamp(34px,3.9vw,54px);line-height:1.03;
  letter-spacing:-1.6px;max-width:none;}
#supply.map-port .sec-note-w{grid-column:8 / span 5;margin-top:52px;}
#supply.map-port + section{position:relative;z-index:3;background:#0b0f2e;}
@media (max-width:900px){
  #supply.map-port{margin-top:56px;}
  #supply.map-port .sec-head,#supply.map-port .sec-note-w{grid-column:1 / -1;}
}
