
/* ===== one chip on a picture (chipmark.py) ===== */
/* Matt, 21 October: "Let's do new A please." The label brings
   its own ground, so it is 12.6 : 1 on every photograph rather
   than 1.4 : 1 on the pale ones. Where the chip SITS is each
   rail's own business and is not set here. */
html body .rl-tag{background:var(--aqua,#00eecc);color:#0b0f2e;border-radius:999px;padding:7px 14px 5px;font-size:11px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;line-height:1.25;}


/* ===== the call to action asks a question (ctabox.py), the air above it ===== */
html body section#contact{padding-top:26px !important;}


/* ===== the footer's own floor (footerdark.py) ===== */
/* The first stop is the page's own ground, so there is nothing to see
   where the two meet. Everything after it is the floor. */
html body footer{background:linear-gradient(180deg,
  #0b0f2e 0,
  #090c26 28%,
  #07091e 62%,
  #06081a 100%);}

/* AND THE PAGE DOES NOT FALL SO FAR INTO IT. Matt, 19 October, with a
   shot of the join: "This gap about 15% smaller above footer."

   Measured at 1840 before: 166px from the bottom of the call to action
   card to the top of the footer logo, made of the CTA section's 96px of
   bottom padding and the footer's own 96px on top. A fifth of the first
   number is below the card and the rest is inside it, so the number to
   move is the footer's.

   AND THE 15 PER CENT IS OFF THE GAP, NOT OFF THE PADDING. The first
   version took 15 per cent off 96 and moved the gap by 14px, which is
   8 per cent of what Matt was looking at. He pointed at the white space
   and said make it 15 per cent smaller: 166 less 15 per cent is 141, so
   the footer loses the whole 25px and goes to 71. Measured after: 141.

   WHY HERE AND NOT IN THE SOURCE. The 96 is written as
   `footer{...padding-top:96px !important}` in _master/index.html and in
   two case study sources, and it arrives on 79 pages by being lifted
   out of those. Changing it in three places would work today and would
   be wrong the first time a fourth source appears. This module already
   owns how every footer on the site looks, so it owns this too, and it
   needs the !important to beat the one it is overriding. */
html body footer{padding-top:71px !important;}


/* ============ 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;}
}


/* ===== snow, until January (snow.py) ===== */
#snowc{position:fixed;inset:0;z-index:80;pointer-events:none;
  display:block;opacity:0;transition:opacity .6s ease;}
#snowc.on{opacity:1;}
/* ROOM UNDER THE FOOTER FOR THE SNOW TO LIE IN.
   --snowband is published by size() and is the taller of the near tier
   and the deepest drift, in CSS pixels. 24 more so the last line of the
   footer clears the snow rather than touching it.
   SCOPED TO html.xmas, so the padding arrives and leaves with the
   switch and nothing has to undo it. On a phone the landscape and the
   flakes do not run at all, so there is nothing to clear. */
/* THE SELECTOR WAS WRONG FOR FIVE DAYS AND THE GUARD SAID IT WAS
   FINE. It read `html.xmas body > footer`, and this site's footer is
   not a child of body: it is inside <main class="sheet">. So the rule
   matched nothing, the padding never arrived once, and the snow has
   been lying over the last four lines of the footer the whole time.
   The guard checked that the string "html.xmas body > footer{" was in
   the page, which it always was. A guard that checks a rule EXISTS
   and not that it MATCHES is a guard that cannot fail, and this is the
   third time that has cost something on this site.
   Both shapes are covered now, and check() reads the markup rather
   than the stylesheet. Measured after the change at 1440, 1920 and
   1280: the snow reaches 110, 119 and 98 CSS pixels at its highest,
   and --snowband publishes 130, 140 and 116, so the padding clears it
   everywhere with the 24 to spare that it was always meant to have. */
html.xmas main > footer,
html.xmas body > footer{
  padding-bottom:calc(var(--snowband, 150px) + 24px);
}
@media (max-width:700px){
  html.xmas main > footer,
  html.xmas body > footer{padding-bottom:0;}
}
/* THE SWITCH. Bottom left, as asked, which is also the corner the Ask
   us dock is not in. No border: the ring is a background behind a gap,
   per the standing rule. */
#snowt{position:fixed;left:18px;bottom:18px;z-index:95;
  display:inline-flex;align-items:center;gap:9px;
  padding:9px 15px 9px 12px;border-radius:999px;
  background:rgba(255,255,255,.08);color:rgba(255,255,255,.72);
  font:600 12px/1 'Gotham',system-ui,sans-serif;letter-spacing:1.4px;
  text-transform:uppercase;cursor:pointer;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  transition:background .3s ease,color .3s ease,transform .3s ease;}
#snowt:hover{background:rgba(255,255,255,.14);transform:translateY(-2px);}
/* DRAWN, NOT TYPED. The obvious snowflake is U+2744 and Gotham has no
   glyph for it, so the switch showed whatever the system fell back to,
   which on this machine was a boxy sans-serif asterisk. A mark the
   brand font cannot draw is not a mark this site can use. */
#snowt b{display:block;width:15px;height:15px;line-height:0;
  transition:transform .6s ease;}
#snowt b svg{width:100%;height:100%;display:block;}
/* AND THE SWITCH GETS A GROUND OF ITS OWN ONCE THE DRIFT IS DEEP.
   The pill is a translucent white film over a backdrop blur, which
   is right over the page and wrong over snow: the bank at the left
   edge climbs behind this button, the film goes near white, and aqua
   on white is about 1.6 to 1. The control that turns the snow OFF is
   the last thing that should become unreadable when it is on. A
   solid dark base under the same aqua film, so it reads against the
   page and against a drift. */
#snowt.on{color:var(--aqua,#00eecc);
  background:linear-gradient(var(--aquafilm,rgba(0,238,204,.12)),
                             var(--aquafilm,rgba(0,238,204,.12))),
             var(--ink,#0b0f2e);}
#snowt.on b{transform:rotate(90deg);}
@media (max-width:700px){
  #snowt{left:12px;bottom:12px;padding:8px 12px 8px 10px;font-size:11px;}
}
/* NOT ON A PHONE, switch or snow. Michael, 27 October, on a Pixel: the
   switch sat over the content in the bottom corner of every page, and on
   a 360px screen the flakes read as dust on the glass rather than snow.
   It is a trial for Matt to show on a desk; the script stops drawing too
   (see "phone" below), so a hidden canvas is not burning the battery. */
@media (max-width:700px),(pointer:coarse){
  #snowt,#snowc{display:none !important;}
}
