
/* ===================== the one palette, dark (dark.py) ================= */
:root{
  --paper:#111740;          /* the alternating section tint */
  --mist:rgba(255,255,255,.07);
  --head:#ffffff;           /* headings, now on a dark ground */
  --body:rgba(255,255,255,.74);
  --muted:rgba(255,255,255,.55);
  --line:rgba(255,255,255,.14);
  --aqua-dk:#00eecc;        /* aqua is legible on dark, so it is just aqua */
  --aqua-pale:rgba(0,238,204,.14);
  --e1:0 6px 30px rgba(0,0,0,.38);
  --e2:0 18px 44px rgba(0,0,0,.5);
}
body{background:#0b0f2e;color:var(--body);}
.alt{background:var(--paper);}

/* the card surfaces are painted by the one blue rule in akit.py, which
   runs on every page rather than only on the interiors this file converts.
   Only the hover lift that belongs to the dark palette stays here. */
.card:hover{box-shadow:var(--e2);}
/* the comparison table stripes the WHOLE row, label included, and its label
   is no longer a tinted panel: it is the same aqua label as every other
   table on the site (tables.py, 1 October) */
.spec tr:nth-child(odd),
.ctable tbody tr:nth-child(odd) th,
.ctable tbody tr:nth-child(odd) td{
  background:rgba(255,255,255,.04) !important;}
.ctable thead th{color:#fff;}
.btn-soft,.chips.lt .chip,.mtags span{
  background:rgba(255,255,255,.09) !important;color:#fff !important;}
.chips.lt .chip:hover{background:rgba(0,238,204,.18) !important;}

/* the form: fields have to read as fields on a dark ground */
.fin{background:rgba(255,255,255,.06) !important;color:#fff;}
.fin::placeholder{color:rgba(255,255,255,.45);}
.fin:focus{background:rgba(255,255,255,.1) !important;}

/* the quality chips were white pills, which is the one thing on these pages
   that still read as the light system */
.certs .chip{background:rgba(255,255,255,.08) !important;color:rgba(255,255,255,.82) !important;
  box-shadow:none !important;}
.certs .chip b{color:#fff;}
.certs .ukline{color:rgba(255,255,255,.82);}

/* THE REBUILT SERVICE AND INDUSTRY HEADERS (hero.py) are a third token set:
   a white plate over the photograph with the page title on it, and four
   white stat chips below. Same swap, different names. */
.shero-plate,.hs{background:linear-gradient(165deg,#181f4e,#111640) !important;
  color:#fff !important;box-shadow:0 10px 40px rgba(0,0,0,.45) !important;}
.shero-plate h1,.hs b{color:#fff !important;}
.hs i{color:rgba(255,255,255,.66) !important;}
.crumbs{color:rgba(255,255,255,.5) !important;}
.crumbs a{color:rgba(255,255,255,.72) !important;}
.crumbs a:hover{color:#fff !important;}
.crumbs span{color:rgba(255,255,255,.4) !important;}

/* three panels that named #fff or --white directly and are only on one page
   each: the About values cards, a case study's next card, and the home
   page's Knowledge Hub photo frame */
.vcard,.nextcard{background:linear-gradient(165deg,#181f4e,#111640) !important;
  box-shadow:0 6px 30px rgba(0,0,0,.38) !important;color:var(--body);}
.vcard p,.nextcard p{color:rgba(255,255,255,.74) !important;}
.vlist li{color:#fff !important;box-shadow:inset 0 -1px 0 rgba(255,255,255,.12) !important;}
.vk,.nextcard .n{color:var(--aqua) !important;}

/* three strings that were written as ink with an alpha rather than as a
   token, found by the contrast check rather than by eye: the timeline note
   on About, the certificate footnote on Quality, and the assistant's own
   small print, which at 11px was under AA even in white */
.tl-b p,.tl-b h3,.tl-i:not(.tl-open) .tl-b{color:rgba(255,255,255,.7) !important;}
.tl-b h3{color:#fff !important;}
.cr-foot,.cr-foot a{color:rgba(255,255,255,.72) !important;}
.cr-foot a{text-decoration:underline;}
.dk-note{color:rgba(255,255,255,.62) !important;}

/* prose and small print that was set against white */
.sec-head p,.lede,.ans,.card p,.step p,.newsrow p{color:var(--body);}
.crumb a{color:rgba(255,255,255,.6);}
.crumb{color:rgba(255,255,255,.5);}
a{color:inherit;}
/* a link inside prose has to look like one: the palette makes everything
   inherit, which is right for cards and wrong for a sentence */
p.lede a,.ans a,.sec-head p a,.vcard p a{color:var(--aqua) !important;
  text-decoration:underline;text-underline-offset:3px;
  text-decoration-thickness:1px;}
hr{background:var(--line);}

/* THE SPEC TABLE'S ROW LABELS. Matt, 23 September: "make titles same size
   text / spec as the sentences, but titles in aqua." They were sharing the
   .eyebrow rule, which is 11px, 700 and uppercase with letterspacing: a
   label shouting at the sentence beside it. Now they are the same type as
   the value they introduce, and the aqua is what tells them apart. */
.spec th{font-size:var(--fs-6) !important;font-weight:500 !important;
  text-transform:none !important;letter-spacing:normal !important;
  color:var(--aqua) !important;line-height:1.6;}


/* ============================ FAQ, one standard (faq.py) ============== */
#faq h2 .ghost,#faq h2 span{color:inherit !important;}
#faq h2{color:#fff;}
html body .faq details{background:none !important;box-shadow:none !important;
  border-radius:0 !important;margin:0 !important;overflow:hidden;
  background-image:linear-gradient(rgba(128,140,170,.28),rgba(128,140,170,.28)) !important;
  background-size:100% 1px !important;background-position:bottom left !important;
  background-repeat:no-repeat !important;}
html body .faq details>summary,html body .faq details>.ans{background:transparent;}
/* an open row is the same flat row, not a card: the palette layer gives
   .faq details[open] a panel and this is the standard putting it back */
html body .faq details[open]{background-image:linear-gradient(rgba(128,140,170,.28),rgba(128,140,170,.28)) !important;
  background-color:transparent !important;box-shadow:none !important;}
html body .faq summary{list-style:none;cursor:pointer;display:flex !important;
  align-items:center;justify-content:space-between;gap:28px;
  padding:26px 0 !important;margin:0 !important;text-align:left;
  font-weight:600;font-size:clamp(16px,1.25vw,18px);line-height:1.4;}
html body .faq summary::-webkit-details-marker{display:none;}

/* THE FIRST QUESTION STARTS LEVEL WITH THE TITLE. Matt, 1 October: "any
   time text / content is on the right it top aligns to top of title text
   ... IE where the FAQ's are currently locked in - we'll also need to
   adjust that alignment".

   The two columns of .faq-grid already start at the same y, which put the
   first question level with the EYEBROW and 24px above the title. The
   title's cap sits 50px down that column: 30px of eyebrow and the 20px gap
   locked earlier today. The question's own cap sits 25.6px down: the
   summary.s 26px of top padding and its own leading. 28px is the
   difference, and it is the only number in this block that is not already
   written somewhere above. Below 1081px the grid is one column and the
   question follows the title, so the rule stops there. */
@media (min-width:1081px){
  html body .faq-grid > :nth-child(2){margin-top:28px;}
}
html body .faq summary::after{content:"" !important;flex:0 0 18px;width:18px !important;
  height:18px !important;border-radius:0 !important;padding:0 !important;
  background:
    linear-gradient(var(--aqua,#00eecc),var(--aqua,#00eecc)) center/100% 2px no-repeat,
    linear-gradient(var(--aqua,#00eecc),var(--aqua,#00eecc)) center/2px 100% no-repeat !important;
  transition:transform .35s cubic-bezier(.22,1,.36,1) !important;}
html body .faq details[open]:not(.fq-shut)>summary::after{transform:rotate(45deg);}
html body .faq .ans{transition:none !important;animation:none !important;}
html body .faq .ans{padding:0 46px 28px 0 !important;margin:0 !important;
  text-align:left;max-width:760px;font-size:16px;line-height:1.7;}
html body .faq .ans p{margin:0 0 12px;}

/* the FAQ's two column shape, home's own proportions (faq.py) */
.faq-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:64px;
  align-items:start;}
.faq-grid h2{max-width:13ch;}
.faq-grid .sec-note{margin-top:18px;font-size:15.5px;line-height:1.7;
  color:var(--body,rgba(255,255,255,.74));max-width:44ch;}
@media (max-width:980px){
  .faq-grid{grid-template-columns:1fr;gap:34px;}
  .faq-grid h2{max-width:none;}
}


/* ============ the integration tree and the process flow (diagram.py) === */
.dg{--dg-line:rgba(0,238,204,.5);--dg-print:#ff4d6d;--dg-ink:#0b0f2e;
  --dg-gap:40px;}
.dg .dg-wrap{position:relative;}

/* nodes */
.dg-node{display:inline-flex;align-items:center;justify-content:center;
  text-align:center;padding:13px 22px 11px;border-radius:999px;
  background:rgba(255,255,255,.07);color:#fff;font-weight:700;font-size:12.5px;
  letter-spacing:1.6px;text-transform:uppercase;line-height:1.25;}
.dg-root{background:linear-gradient(120deg,rgba(0,238,204,.22),rgba(0,238,204,.08));}
.dg-brand{font-size:14px;padding:15px 26px 13px;}
.dg-brand.is-print{background:linear-gradient(120deg,rgba(255,77,109,.22),
  rgba(255,77,109,.08));}

/* the connectors are dashes drawn as backgrounds, never borders */
.dg-stem,.dg-rail{background-repeat:no-repeat;}
.dg-stem{width:1px;height:30px;margin:0 auto;
  background-image:repeating-linear-gradient(180deg,var(--dg-line) 0 5px,
    transparent 5px 11px);transform-origin:top;}
.dg-rail{height:1px;
  background-image:repeating-linear-gradient(90deg,var(--dg-line) 0 5px,
    transparent 5px 11px);transform-origin:center;}
/* THE PRINT COLOUR IS SET ON THE COLUMN, NOT ON TWO OF THE THINGS IN IT.
   It used to name .dg-col-print .dg-stem and .dg-col-print .dg-rail, which
   caught the drop to the brand chip and the rail under it and missed the
   three drops from that rail down to the icons, because those are drawn by
   .dg-leaf::before and nobody had added it to the list. Measured: the stem
   and the rail came back rgba(255,77,109,.55) and the leaf drops came back
   rgba(0,238,204,.5). Setting the variable on the column means every
   connector inside the print branch is red because it is inside the print
   branch, rather than because it was remembered. */
.dg-col-print,
.is-print .dg-stem,.is-print .dg-rail{--dg-line:rgba(255,77,109,.55);}

/* ===== THE HEADING NEEDS ROOM ========================================== */
/* Matt, 24 September: "we need to check the vertical spacing, the eyebrow /
   title / chart need more breathing space."

   Measured on the services index: eyebrow to title 0px, title to note 0px,
   and note to the top of the tree minus 26, so the chart was starting before
   the sentence introducing it had finished. Three things stacked with no air
   between them read as one block, which is why the eyebrow looked welded to
   the T of TRUE.

   Scoped to .dg so the shared .sec-head keeps its own rhythm everywhere
   else. The tree's own top padding carries the third gap, because that is
   the one that should be largest: the note is a sentence and the chart is a
   different kind of object, not the next paragraph. */
.dg .sec-head h2{margin:0;}
/* AND THE HEAD THAT CARRIES THE LINK SPANS THE ROW. .sec-top is a twelve
   column grid and .sec-head is capped at the 760px standfirst measure, so
   a head left at its default would put the right hand link in the middle
   of the page with the heading wrapping out of its way. Same two
   declarations the proof tier needed, for the same reason: lifting the cap
   is not enough on a grid, the column has to be told to span. */
html body .dg .sec-head.gocta-row{max-width:none;grid-column:1 / -1;}
/* the sentence now sits in the right hand column like every other tier on
   the site (Matt, 1 October: "should the para text be on the right like
   other tiers?"), so it is no longer a paragraph inside .sec-head and the
   rule that used to space it there has gone with it */
.dg .sec-top .sec-note{margin:0;}
.dg-tree{text-align:center;padding:clamp(58px,6.2vh,92px) 0 4px;}
/* THE RAIL RUNS BETWEEN THE TWO BRANCHES, not between two guessed
   percentages. Matt, 23 September: "horizontal line is out in centre."
   It was: the rail was drawn at 25% to 75% of the band while the columns
   below it are 2fr and 1fr, so neither end landed on a branch and the whole
   fork read as skewed. These margins are the column arithmetic instead. With
   columns 2fr and 1fr and a gap G across width W, the left branch sits at
   (W-G)/3 and the right at W-(W-G)/6, so those are the margins, and the root
   above is shifted by (W-G)/6 to sit over the middle of what it feeds. Change
   --dg-gap or the column ratio and all three still meet. */
.dg-top{margin-left:calc((100% - var(--dg-gap))/6);}
.dg-fork .dg-rail{margin-left:calc((100% - var(--dg-gap))/3);
  margin-right:calc((100% - var(--dg-gap))/6);}

/* ===== AND THE RIGHT HALF OF IT IS THE PRINT COMPANY ==================== */
/* Matt, 24 September: "the red dotted line looks great, can we make sure
   from centre of the first horizontal line, where the dots come down from
   the top tier, to the right of that is all red dots to show what is
   Cornelius Design To Print."

   The split point is exactly the middle of the rail, and that is arithmetic
   rather than luck. Writing u for (W - G)/6: the left branch sits at 2u, the
   right at W - u, and the root above is shifted by u so its stem falls at
   (W + u)/2, which is the midpoint of 2u and W - u. Measured to confirm
   rather than assumed: stem centre 908, rail centre 908.

   So one element, two gradients, each painting half its width. Kept as one
   element rather than split into two because the reveal animation scales the
   rail from its centre, and two elements would have needed two origins and
   would have met in the middle with a seam. The dash phase restarts at the
   halfway point, which is the one visible consequence and an honest one: the
   phase change is where one company ends and the other begins. */
.dg-fork .dg-rail{
  background-image:
    repeating-linear-gradient(90deg,var(--dg-line) 0 5px,
      transparent 5px 11px),
    repeating-linear-gradient(90deg,rgba(255,77,109,.55) 0 5px,
      transparent 5px 11px);
  background-size:50% 100%,50% 100%;
  background-position:left center,right center;
  background-repeat:no-repeat,no-repeat;}
.dg-cols{display:grid;grid-template-columns:2fr 1fr;gap:var(--dg-gap);
  align-items:start;}
.dg-col{text-align:center;}
.dg-leaves{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(var(--n,6),minmax(0,1fr));gap:0 12px;
  position:relative;}
.dg-leaves::before{content:"";position:absolute;top:0;height:1px;
  left:calc(50% / var(--n,6));right:calc(50% / var(--n,6));
  background-image:repeating-linear-gradient(90deg,var(--dg-line) 0 5px,
    transparent 5px 11px);transform-origin:center;}
.dg-col-print .dg-leaves::before{--dg-line:rgba(255,77,109,.55);}
.dg-leaf{padding-top:30px;position:relative;}
.dg-leaf::before{content:"";position:absolute;top:0;left:50%;width:1px;
  height:30px;background-image:repeating-linear-gradient(180deg,
    var(--dg-line) 0 5px,transparent 5px 11px);}
.dg-leaf a{display:block;font-size:12px;font-weight:700;letter-spacing:1.2px;
  text-transform:uppercase;line-height:1.35;color:#fff;padding:12px 6px 10px;
  border-radius:14px;transition:background .25s,transform .25s;}
.dg-leaf a:hover{background:rgba(255,255,255,.08);transform:translateY(-2px);}
/* ONE COLOUR FOR EVERY LABEL. Matt: "all text just the same colour not
   shades or tints as per rest of the site / chart." The print labels were
   pink at #ffd9e0, which made three of the nine capabilities read as
   secondary. The red belongs to the icon and the connector, not the word. */
.dg-col-print .dg-leaf a:hover{background:rgba(255,77,109,.14);}
.dg-lic{display:block;width:42px;height:42px;margin:0 auto 12px;
  color:#00eac8;transition:transform .35s cubic-bezier(.22,1,.36,1);}
.dg-lic svg{width:100%;height:100%;display:block;}
.dg-lic svg *{fill:currentColor;}
.dg-col-print .dg-lic{color:var(--dg-print);}
.dg-leaf a:hover .dg-lic{transform:scale(1.12);}

/* the draw-in: stems and rails scale from nothing, nodes fade up */
.dg.anim .dg-stem,.dg.anim .dg-rail,.dg.anim .dg-leaves::before{
  transform:scale3d(1,0,1);}
.dg.anim .dg-rail,.dg.anim .dg-leaves::before{transform:scale3d(0,1,1);}
.dg.anim .dg-node{opacity:0;transform:translateY(10px);}
.dg.anim.lit .dg-stem,.dg.anim.lit .dg-rail,.dg.anim.lit .dg-leaves::before{
  transform:none;transition:transform .5s cubic-bezier(.22,1,.36,1);}
.dg.anim.lit .dg-node{opacity:1;transform:none;
  transition:opacity .5s ease,transform .6s cubic-bezier(.22,1,.36,1);}
.dg.anim.lit .dg-brand{transition-delay:.25s;}
.dg.anim.lit .dg-leaf .dg-node,.dg.anim.lit .dg-leaf a{
  transition-delay:calc(.45s + var(--i,0) * 60ms);}
.dg.anim .dg-leaf a{opacity:0;}
.dg.anim.lit .dg-leaf a{opacity:1;transition:opacity .45s ease
  calc(.45s + var(--i,0) * 60ms),background .25s,transform .25s;}

/* ---------------------------------------------------------- the flow --- */
/* Matt, 23 September: "make the titles stronger (especially the main six),
   numbers can be bolder, need images? Bring it to life a bit, not
   excessive." So: the title is the biggest thing in the card, the number is
   a large ghost numeral behind it rather than a small label above it, and
   each step carries one CE library icon in aqua. An aqua rule runs the
   width of the row behind the cards, so six cards read as one journey. */
.dg-flow{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));
  gap:20px;align-items:stretch;position:relative;}
/* NO overflow:hidden ANY MORE. It was there to crop the big ghost numeral
   that used to sit in the corner; with that gone it did nothing but clip the
   chevron, which hangs 16px outside the card by design. That is why the
   arrows did not appear on the first build after Matt asked for them. */
/* HALF AS TALL AGAIN, AND THE CONTENT DOES NOT MOVE. Matt, 16 October:
   "making the top 6 taller say approx 50%, keep the content and arrows
   where they are so the boxes drop down lower."
   211 measured, so 317. A min-height rather than a height, because a
   title that wraps to three lines on a narrow window still has to fit.
   The content is top of the box already, so the box grows downward on
   its own and nothing in it needs touching. */
/* AND THE CONTENT SITS LOWER IN IT. Matt, 19 October: "move the content
   in the 6 blocks down a bit so less gap at the bottom." Measured at
   1840 before: the words ran 14 to 187 in a 317px card and left 130px
   of nothing under them. The icon and the title both grew in the same
   note, which takes about 22 of that on its own; the other 44 is this
   top padding, 34 to 78. Measured after: the words run 58 to 253 and
   the gap below is 64.

   The number stays in the corner: .dg-n is absolutely positioned at
   top:14px and is a corner mark rather than part of the stack. */
.dg-step{position:relative;z-index:1;border-radius:20px;padding:78px 18px 24px;
  min-height:317px;
  background:rgba(255,255,255,.06);text-align:center;
  transition:transform .3s cubic-bezier(.22,1,.36,1),background .3s ease;}

/* AND THE SIX READ AS ONE FIELD. Matt: "In the empty space we could have
   some mesh gradients shifting but maybe do that as if the six boxes
   were one."

   That last clause is the whole of it. Six boxes each with their own
   mesh is six meshes and looks like it. One mesh seen through six
   windows is a single thing the cards are cut out of.

   So every card carries the SAME layer, six card widths plus five gaps
   across, and slides it left by its own position in the row. The
   percentage in `left` resolves against the card, so the arithmetic
   holds at any width without a media query or a script:

     card n  left: -n * (100% + 20px)

   It clips to its own rounded box rather than to the card, because the
   card cannot have overflow:hidden: the arrow between two cards hangs
   16px outside and a clip there is what stopped the arrows appearing
   once before.

   THE DRIFT KEEPS THEM IN REGISTER because all six run the same
   animation with no delay, so they move as the one image they are
   pretending to be. Give one of them a delay and the illusion is gone.

   And it is masked to nothing at the top: the mesh is for the room the
   taller box opened up, not for the area behind the words. */
/* AND THE THREE SHORT BOXES ARE IN THE SAME FIELD, not a second one.
   Matt, 19 October: "put them in 3 columns of short bento boxes - same
   colour / gradient style as the 6 process ones above it."

   The arithmetic works out exactly, which is why this is one selector
   and not a second mesh with its own numbers. Six columns on a 20px gap
   and three columns on a 20px gap put a grid line in the same place: a
   short box is two step cards plus the gap between them, to the pixel.
   So 300% + 40px across three is the same width as 600% + 100px across
   six, both of them the width of the wrap, and the same five blobs land
   in the same places in both rows. One image, nine windows. */
.dg-step .dg-mesh,.dg-ben .dg-mesh{position:absolute;inset:0;
  border-radius:20px;
  overflow:hidden;z-index:0;pointer-events:none;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,
    rgba(0,0,0,.14) 24%,rgba(0,0,0,.62) 46%,#000 64%);
  mask-image:linear-gradient(180deg,transparent 0,
    rgba(0,0,0,.14) 24%,rgba(0,0,0,.62) 46%,#000 64%);}
.dg-step .dg-mesh > i,.dg-ben .dg-mesh > i{position:absolute;
  top:-30%;bottom:-30%;
  width:calc(600% + 100px);left:0;display:block;
  background:
    radial-gradient(40% 62% at 10% 40%,rgba(0,238,204,.34),transparent 70%),
    radial-gradient(36% 58% at 34% 82%,rgba(62,201,255,.30),transparent 68%),
    radial-gradient(46% 68% at 58% 26%,rgba(42,58,143,.80),transparent 72%),
    radial-gradient(34% 56% at 80% 74%,rgba(0,238,204,.26),transparent 66%),
    radial-gradient(30% 50% at 97% 34%,rgba(62,201,255,.22),transparent 64%);
  animation:dg-drift 34s ease-in-out infinite alternate;
  will-change:transform;}
.dg-step:nth-child(1) .dg-mesh > i{left:calc(0px);}
.dg-step:nth-child(2) .dg-mesh > i{left:calc(-1 * (100% + 20px));}
.dg-step:nth-child(3) .dg-mesh > i{left:calc(-2 * (100% + 20px));}
.dg-step:nth-child(4) .dg-mesh > i{left:calc(-3 * (100% + 20px));}
.dg-step:nth-child(5) .dg-mesh > i{left:calc(-4 * (100% + 20px));}
.dg-step:nth-child(6) .dg-mesh > i{left:calc(-5 * (100% + 20px));}
/* three windows on the same image: 100% is now two step cards and a gap,
   so one step of the offset is two steps of the row above it */
.dg-ben .dg-mesh > i{width:calc(300% + 40px);}
.dg-ben:nth-child(1) .dg-mesh > i{left:calc(0px);}
.dg-ben:nth-child(2) .dg-mesh > i{left:calc(-1 * (100% + 20px));}
.dg-ben:nth-child(3) .dg-mesh > i{left:calc(-2 * (100% + 20px));}
@keyframes dg-drift{
  from{transform:translate3d(0,0,0) scale(1.04);}
  to{transform:translate3d(-5%,3%,0) scale(1.12);}}
@media (prefers-reduced-motion:reduce){
  .dg-step .dg-mesh > i{animation:none;}
}
.dg-step:hover{transform:translateY(-4px);background:rgba(255,255,255,.09);}
/* THE ICON IS THE FULL AQUA, not the connector's half-strength version.
   Matt, 23 September: "icons full colour in the aqua." --dg-line is the
   dashes' colour and carries their opacity, so inheriting it here quietly
   dimmed every icon to half. */
/* THIRTY PER CENT BIGGER. Matt, 19 October: "Make 6 x icons 30%
   bigger." 46 times 1.3 is 59.8, so 60. They are line drawings at a
   single weight, so they scale without thickening. */
.dg-ic{display:block;width:60px;height:60px;margin:2px auto 18px;
  color:#00eac8;position:relative;z-index:1;
  transition:transform .35s cubic-bezier(.22,1,.36,1);}
.dg-ic svg{width:100%;height:100%;display:block;}
.dg-ic svg *{fill:currentColor;}
.dg-step:hover .dg-ic{transform:scale(1.1);}
/* AND THE TITLE IS BIGGER TOO. Matt: "Make title fonts bigger (I know
   it's getting tight but let's see)." 16 to 19, and he is right that it
   is tight. Measured rather than eyeballed, longest line against the
   column it has:

     window   column   "MANUFACTURE"   
     3552     169px    160px           9px spare
     1840     169px    160px           9px spare
     1280     150px    160px           overhangs the 18px padding by 5
                                       each side, still inside the card
     1100     120px    160px           overhang 20 each side, 2px past
                                       the card edge

   So it holds down to about 1340 and is snug from there to 1080, where
   the row goes three across and the columns open up again. Nothing
   wraps to a third line at any width: the <br> is written in, and the
   one word that cannot break is the one being measured here.

   LEFT AT A FLAT 19 RATHER THAN CLAMPED, because Matt asked to see it
   bigger and a clamp would quietly give him 16 again on the windows
   where it is tight. clamp(16px,1.05vw,19px) is the one line if he
   wants the band to back off. */
.dg-step h3{margin:0;position:relative;z-index:1;
  font-family:'Gotham','Inter',Arial,sans-serif;font-size:19px;font-weight:900;
  letter-spacing:.4px;text-transform:uppercase;line-height:1.2;color:#fff;}
.dg-step p{margin:10px 0 0;position:relative;z-index:1;
  font-size:13px;line-height:1.5;color:rgba(255,255,255,.62);}
/* THE NUMBER IS AN EYEBROW, NOT A BILLBOARD. Matt: "numbers small top left
   almost like in chip eyebrows." It was a 50px ghost numeral in the top
   right corner, which competed with the title it was meant to number. Same
   size, weight and letter-spacing as the chip eyebrow, so a step reads as
   one of six rather than as a poster. */
.dg-step .dg-n{position:absolute;top:14px;left:18px;z-index:2;
  font-size:11px;font-weight:700;letter-spacing:1.8px;line-height:1;
  color:#00eac8;pointer-events:none;}
/* AND THE ARROWS ARE BACK. Matt: "lose the dotted line go back to arrows
   please." Jon's slide runs a solid aqua chevron between every pair of
   cards and nothing behind them; the dashed rule I put across the row was
   my invention and it fought the cards it ran through. The chevron is
   centred on the card rather than pinned to a pixel height, so it stays put
   whatever the titles do. */
/* AND THE ARROW STAYS WITH THE CONTENT. It was centred on the card,
   which was right while the card was only as tall as its words. With
   the card half as tall again, 50 per cent is 53px below where the
   content ends, so it is pinned to a number instead. Matt: "keep the
   content and arrows where they are."
   106 was the middle of the words while they ran 14 to 187. On 19
   October they moved down and grew, to 58 and 253, so the middle is
   155 and the arrow follows it. This number is read off the words every
   time they change; it is not a constant, it is a measurement. */
.dg-step + .dg-step::before{content:"";position:absolute;left:-16px;
  top:155px;transform:translateY(-50%);
  width:12px;height:18px;z-index:2;background:#00eac8;
  clip-path:polygon(0 0,100% 50%,0 100%);}
/* THE THREE ABOVE ARE SHORT BOXES. Matt, 19 October: "the titles
   underneath - let's go back to three (lose the kitting one), then put
   them in 3 columns of short bento boxes - same colour / gradient style
   as the 6 process ones above it, they should then go above the 01>06
   row."

   They were four titles over a one pixel rule. Two things changed and
   stayed changed: the count and the treatment.

   THE ORDER WENT UP AND CAME BACK, and the round trip is on the record
   because the argument for putting them first was mine, not Matt's. He
   asked for above on the morning of 19 October, saw it, and asked for
   under the same day. Seeing it settles it: the six steps are the
   journey and the three are what makes it hold together, so the three
   read as a conclusion rather than as terms and conditions. The page
   goes heading, six tall cards, three short ones.

   AND THE BOX IS THE STEP CARD'S BOX, shorter. Same 20px radius, same
   six per cent ground, same mesh seen through it, same hover. The only
   numbers that differ are the ones that have to: the padding and the
   height, because there is a two line title in here and not an icon, a
   number, a title and a sentence.

   148 WAS TOO DEEP. Matt, 19 October: "boxes 20% shallower please." 118
   is 148 less a fifth. It is still a min-height rather than a height,
   so a title that wraps to three lines on a narrow window pushes the
   box down instead of spilling out of it: at 118 the padding takes 50
   and two lines of the title take 47, so the number governs and the
   shortest box is exactly a fifth shallower than it was.

   THE TITLE IS LEFT, NOT CENTRED, and the steps are centred. That is
   deliberate: a step card is a stack of four things on an axis and a
   short box is one label in a corner. Centring two short lines in a
   box three times as wide as it is tall leaves them floating with the
   glow doing nothing behind them. */
.dg-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;margin:20px 0 0;}
/* THE GROUND HERE NEVER WINS, AND IT IS WRITTEN ANYWAY, because it is
   .dg-step's ground and the point of this rule is to be .dg-step's rule.
   akit's panel sweep paints every panel on the site with one navy
   gradient and an !important, and .dg-ben is back in its list as of 19
   October; so is .dg-step, and so is the six per cent film underneath
   both of them. Taking it out here would make the two rules differ over
   a value neither of them renders. */
.dg-ben{position:relative;z-index:1;border-radius:20px;
  padding:26px 22px 24px;min-height:118px;
  background:rgba(255,255,255,.06);
  transition:transform .3s cubic-bezier(.22,1,.36,1),background .3s ease;}
.dg-ben:hover{transform:translateY(-4px);background:rgba(255,255,255,.09);}
.dg-ben h3{margin:0;position:relative;z-index:1;
  font-size:clamp(17px,1.5vw,21px);font-weight:900;
  text-transform:uppercase;letter-spacing:-.2px;line-height:1.12;
  color:#fff;}

@media (max-width:1080px){
  .dg-flow{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
  .dg-step + .dg-step::before{display:none;}
  /* AND THE SHARED MESH GOES, because it is only shared while the six
     are in one row. The offsets say "card n of six across"; at three
     across, cards four to six are on the second row still sliding the
     layer as though they were on the first, so the one field becomes
     two halves of one field stacked, which is worse than six separate
     ones. It comes back when the row does. */
  .dg-step .dg-mesh{display:none;}
  /* AND THE SHORT BOXES KEEP TRACK WITH THE ROW. At three across on a
     14px gap the step cards and the short boxes are one to one, so the
     grid lines still agree; the mesh goes with the row's, because the
     field it is a window on has stopped being one row wide. */
  .dg-benefits{gap:14px;margin-top:14px;}
  .dg-ben .dg-mesh{display:none;}
  .dg-cols{grid-template-columns:1fr;gap:28px;}
  .dg-leaves{--n:3 !important;grid-template-columns:repeat(3,minmax(0,1fr));}
  /* one column, so the fork has nothing to fork: the stems carry it, and
     the root goes back to the middle because there is nothing off-centre
     left for it to sit over */
  .dg-fork{display:none;}
  .dg-top{margin-left:0;}
}
@media (max-width:680px){
  .dg-flow{grid-template-columns:1fr 1fr;}
  /* two up, and the third spans the pair rather than sitting as an
     orphan beside a gap. Three into two columns has to land somewhere
     and a full width box reads as the end of the row. */
  .dg-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;
    margin-top:14px;}
  .dg-ben:last-child{grid-column:1 / -1;}
  .dg-ben{min-height:0;}
  .dg-step{min-height:0;}
  .dg-step .dg-mesh{display:none;}
  .dg-leaves{--n:2 !important;grid-template-columns:repeat(2,minmax(0,1fr));}
  .dg-leaves::before{display:none;}
  .dg-leaf::before{display:none;}
  .dg-leaf{padding-top:6px;}
}
@media (prefers-reduced-motion:reduce){
  .dg.anim .dg-stem,.dg.anim .dg-rail,.dg.anim .dg-node,.dg.anim .dg-leaf a,
  .dg.anim .dg-leaves::before{opacity:1 !important;transform:none !important;}
}


/* ============ the service page's own blocks (svcpage.py) =============== */
/* THE CAPTION IS UNDER THE PICTURE, NOT ON IT. Matt, 23 September: "no text
   over gradients on images." A scrim over a photograph costs you the bottom
   third of the composition and gives you a caption that is hard to read
   anyway. Under it, the photograph is whole and the words are at full
   contrast. */
.gal{display:grid;gap:18px;
  grid-template-columns:repeat(var(--n,3),minmax(0,1fr));}
.gfig{margin:0;}
.gfig i{display:block;aspect-ratio:4 / 3;border-radius:20px;
  background-size:cover;background-position:center;overflow:hidden;
  box-shadow:0 20px 44px -18px rgba(0,0,0,.6);
  transition:transform .6s cubic-bezier(.22,1,.36,1);}
.gfig:hover i{transform:translateY(-3px) scale(1.012);}
.gfig figcaption{margin-top:12px;font-size:14px;line-height:1.5;
  color:rgba(255,255,255,.7);}
.gfig b{display:block;color:#fff;font-size:15px;font-weight:700;
  margin-bottom:3px;}
/* the sector chips: the ground changes on hover, nothing else moves */
.chips.lt .chip{text-decoration:none;transition:background .25s ease;}

/* THE CHEVRON RUN IS ANCHORED TO THE TOP OF ITS TIER, NEVER STRADDLING ONE.
   Matt, 24 September. The site-wide .chev-band centres the run on the join
   between two bands with a negative margin top AND bottom, so half of it
   hangs in the tier above: on a colour change that reads as a mistake. Here
   the band keeps its height and pulls only the tier below up by the full
   run, so the chevrons sit inside the top edge of the tier they introduce.
   They start inside the content edge and travel right as it arrives. */
.chev-band-svc{text-align:left !important;padding:0 !important;
  margin:0 0 calc(var(--chev-md) * -1) 0 !important;
  position:relative;z-index:3;pointer-events:none;}
.chev-band-svc .svc-chev{transform:translate3d(var(--cx,-120px),0,0);
  will-change:transform;}
/* AND THE TIER IT INTRODUCES IS PAINTED INSIDE ITS OWN BOX. Matt, 27
   October, on the wire processing page: "Floating chevron issue
   again."

   MEASURED, NOT GUESSED, because the run has been accused of this
   twice and been innocent once. At 1512 with the sectors tier parked
   300px down the window: the section's box top is 300, the run is
   300 to 324, and .wy-bg is painted from 192. The panel carries
   translateY(-108px) as part of its drift, so the ground a reader sees
   starts 108px above the box the run is anchored to, and the run is
   sitting a third of the way into a panel that looks like it began
   well above it. The run is on the edge. The edge is not where the
   paint is.

   This is the same fault, and the same fix, as reshuffle.py's note of
   16 October, which clipped #industries, #proof, #sectors and #hub on
   the one page it owns. That left every other page on the site with
   the drift, which is why it has come back. Here it is scoped to the
   thing that makes it visible instead of to a list of ids: a tier gets
   clipped if and only if a chevron run is sitting on its edge. A tier
   with nothing up there to give the softness away keeps its drift.

   clip and not hidden: hidden on a section turns everything sticky
   inside it into something that is not, and these pages have the
   scroll-overs. */
.chev-band-svc + section{overflow:clip;}
.rel3{display:grid;gap:16px;grid-template-columns:repeat(3,minmax(0,1fr));}
.relc{display:block;text-decoration:none;border-radius:22px;padding:26px 26px 24px;
  background:rgba(255,255,255,.05);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);
  transition:transform .25s ease,background .25s ease;}
.relc:hover{transform:translateY(-3px);background:rgba(255,255,255,.08);}
.relc em{display:block;font-style:normal;font-size:11px;letter-spacing:1.6px;
  text-transform:uppercase;font-weight:700;color:var(--aqua,#00eecc);
  margin-bottom:10px;}
.relc h3{margin:0 0 8px;font-size:19px;color:#fff;}
.relc p{margin:0 0 14px;font-size:14.5px;line-height:1.6;
  color:rgba(255,255,255,.7);}
.relc span{font-size:13.5px;font-weight:700;color:var(--aqua,#00eecc);}
@media (max-width:900px){
  .gal{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rel3{grid-template-columns:1fr;}
}
@media (max-width:560px){
  .gal{grid-template-columns:1fr;}
}


/* ================= the six, under the bar (subnav.py) ================== */
:root{--snav-h:64px;--snav-top:138px;
  /* the interiors' own clearance token, raised by the height of the row */
  --hero-top:214px;}
.snav{position:fixed;top:var(--snav-top);left:0;right:0;z-index:40;
  display:block;   /* undoes HOLD, the head's display:none: see apply() */
  pointer-events:none;
  /* it fades, it does not travel: --sy is the scroll position, so the row
     is gone before it can reach the bar */
  opacity:calc(1 - var(--sy,0) / 110);
  transition:opacity .18s linear;}
.snav .wrap{display:flex;gap:10px;pointer-events:auto;}
.snav a{flex:1 1 0;text-align:center;text-decoration:none;
  padding:10px 10px 9px;border-radius:12px;
  /* THE ORIGINAL SPEC, RESTORED. Matt, 24 September: "these still don't
     look right, weren't they more white-ish not grey / black-ish. Look
     backwards a few versions please."

     Right, and this is the third state this rule has been in today, so it
     is worth writing down what each one was and why it was wrong.

       1  white 6%, blur 14px          the spec. Glass. Over a hero full of
                                       connectors you see the connectors
                                       through it, which read as the row
                                       being behind the image.
       2  + navy 58%                   stopped the show-through by stopping
                                       it being glass. Muddy.
       3  + navy 14%, saturate .62     kept the glass but the desaturation
                                       drained the colour behind it and the
                                       navy darkened it, so the pill came
                                       out grey rather than white.

     Back to 1, exactly. The show-through on the two busiest slides is the
     cost of glass being glass, and Matt would rather have the material look
     right than have it solved by making it something else. If it does need
     solving later, the lever is more white, not more navy and not less
     colour. */
  background:rgba(255,255,255,.06);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  transition:background .25s ease,transform .25s ease,box-shadow .25s ease;}

/* BRIGHTER ON HOVER. Matt, 6 October: "Can the tabs go brighter generally
   on hover to accentuate the action?"

   The lever is the one this file already names three rules up: more white,
   not more navy and not less colour. So .11 goes to .20, there is a shadow
   under the pill, and the travel goes from 2px to 3.

   AND NO RING. The first version added a one pixel inset ring as well, and
   Matt was straight back: "No outline on 6 tabs." He is right. The row is
   glass, and glass does not have an edge drawn on it; the ring made the
   hovered pill look like a different component from the five beside it.
   The brightness and the shadow do the work on their own.

   IT IS BRIGHTER THAN IT LOOKS ON ITS OWN, because by the time you are
   hovering a tab the nav scrim is lit and the ground behind the row is the
   dark panel rather than the photograph. The two were built in the same
   afternoon and they are meant to be read together. */
.snav a:hover{background:rgba(255,255,255,.20);transform:translateY(-3px);
  box-shadow:0 10px 26px rgba(4,8,30,.42);}
.snav b,.snav i{display:block;font-style:normal;
  font-family:'Gotham','Inter',Arial,sans-serif;font-weight:900;
  font-size:13px;letter-spacing:.5px;text-transform:uppercase;line-height:1.12;
  color:rgba(255,255,255,.72);transition:color .25s ease;}
.snav a:hover b,.snav a:hover i{color:#fff;}

/* THE ICON BESIDE THE TWO WORDS (9 November). The pill keeps its column
   of two: the icon is one flex child and the wrapped words are the
   other, so nothing about the stack changes. text-align:center above
   stops doing the centring once this is a flex box, so the centring is
   restated as justify-content.

   THE ICON TAKES THE TEXT'S OWN COLOUR rather than an opacity of its
   own. The two words go from white 72% to white on hover and the icon
   now does the same thing on the same transition, so the pill lights as
   one object. The specimen faded it separately and the icon and the
   words arrived a beat apart.

   IT GOES BEFORE THE WORDS SHRINK, NOT AFTER. The row is six pills
   sharing the width, and at 1180 the type is already down to 11.5px, so
   the icon is the first thing to go rather than the last. */
.snav a{display:flex;align-items:center;justify-content:center;gap:9px;}
.snav .sn-tx{display:block;}
/* AQUA, on Matt's word of 9 November. It was the text's own white 72%
   so the pill would light as one object; aqua reads better against six
   pills of grey glass and it is the colour every other icon on this
   site is. It still brightens with the words rather than on a timer of
   its own. */
.snav .sn-ico{flex:0 0 auto;width:24px;height:24px;
  color:rgba(0,238,204,.82);transition:color .25s ease;}
.snav .sn-ico svg{display:block;width:100%;height:100%;fill:currentColor;}
.snav a:hover .sn-ico{color:#00eecc;}
@media (max-width:1320px){.snav .sn-ico{width:21px;height:21px;}
  .snav a{gap:7px;}}
@media (max-width:1180px){.snav .sn-ico{display:none;}}
body.snav-gone .snav{pointer-events:none;}
body.snav-gone .snav .wrap{pointer-events:none;}

/* THE SCROLLED BAR, THE SAME EVERYWHERE, WITH AIR ABOVE IT. Matt, 24
   September: "should we add a small gap above the bar, maybe 10 to 20px?"
   Yes: a pill flush to the top edge of the window reads as stuck to it
   rather than floating over the page. 16px, which is the value the
   interiors already use, so this is one number rather than a new one.

   The collapse is stated here too. The rule that hides the phone and email
   row when scrolled lives in a stylesheet the interiors link and the home
   page does not, which is why the two behaved differently: home kept the
   row and the interiors dropped it. Now every page drops it. */
body.scrolled .navwrap{padding-top:16px;}
body.scrolled .navwrap .topbar{height:0;opacity:0;overflow:hidden;
  margin:0;pointer-events:none;}
/* AND IT HAS TO MOVE SMOOTHLY. Matt, 24 September: "the nav shrink and
   slide up animation has gone a bit glitchy." Two of the three things that
   change on scroll had nothing to animate them: the row's height and the
   bar's padding both snapped while the pill itself eased, so the bar
   appeared to jump and then settle. All three now share the bar's own
   duration (--mid, 0.3s) and the site's easing curve. */
html body .navwrap{transition:padding-top .3s cubic-bezier(.22,1,.36,1);}
html body .navwrap .topbar{overflow:hidden;
  transition:height .3s cubic-bezier(.22,1,.36,1),
             opacity .22s ease,
             margin .3s cubic-bezier(.22,1,.36,1);}
html body .navwrap nav{
  transition:height .3s cubic-bezier(.22,1,.36,1),
             background-color .3s ease,
             box-shadow .3s ease,
             padding .3s cubic-bezier(.22,1,.36,1);}
@media (prefers-reduced-motion:reduce){
  html body .navwrap,html body .navwrap .topbar,html body .navwrap nav{
    transition:none;}
}

/* the home page and the services index run their own hero, so they clear
   the row themselves */
body.snav-home .hero{padding-top:calc(var(--snav-top) + var(--snav-h) + 76px);}

@media (max-width:1080px){
  .snav a{padding:9px 6px 8px;}
  .snav b,.snav i{font-size:11.5px;letter-spacing:.3px;}
}
@media (max-width:900px){
  /* on a phone the bar is shorter and the burger holds the navigation, so
     the row becomes a single scrollable line of chips rather than six
     columns squeezed to nothing */
  :root{--snav-top:84px;--snav-h:52px;--hero-top:168px;}
  .snav .wrap{overflow-x:auto;overflow-y:hidden;overflow-y:clip;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;}
  .snav .wrap::-webkit-scrollbar{display:none;}
  .snav a{flex:0 0 auto;min-width:118px;}
  body.snav-home .hero{padding-top:calc(var(--snav-top) + var(--snav-h) + 30px);}
  /* AND IT SAYS IT SCROLLS. Michael, 27 October, on a Pixel at 360px:
     the third chip was cut through "CONTROL PANELS" at the screen edge,
     which reads as broken rather than as more to come. The right edge
     now fades over 56px, so the cut-off chip goes soft instead of being
     sliced, and the snap stops a swipe halfway through a chip. */
  .snav .wrap{scroll-snap-type:x proximity;scroll-padding:0 32px;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent);
    mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent);}
  .snav a{scroll-snap-align:start;}
}
@media (prefers-reduced-motion:reduce){
  .snav{transition:none;}
}
