
/* ===== THE SERVICES INDEX HEADER, ON THE SIX VERTICALS (svchero.py) ===== */
/* Every number here was measured off services.html in the browser, not
   chosen. Same header means the same header: the band, the mesh, the
   object's box, the chips' glass and the type are all its values. */
/* AND THE BAND GAINS HEIGHT AS IT GAINS WIDTH. Same height at twice the
   width flattens the composition and leaves the object nowhere to go but
   sideways, which is the other half of what Matt saw at 2000px. Clamped at
   both ends so it cannot get silly on an ultrawide. */
.hero.svch{position:sticky;top:0;z-index:0;display:flex;align-items:flex-end;
  overflow:clip;min-height:min(clamp(760px,52vw,1320px),80vh);
  /* THE SAME CLEARANCE THE HOME PAGE GIVES ITSELF. Matt, 8 October: "on
     laptop the left side content on 6 vertical pages is a little high now."
     It was, by exactly 64px, and the 64 has a name.

     The content is bottom aligned, so on a laptop, where the band is sized
     by its content rather than by 80vh, the top padding IS the space above
     the heading. These headers were taking --hero-top, which subnav.py sets
     to 214px: the clearance an interior header needs to miss the six
     capability buttons. The home page does not use that token. It works its
     own out as the buttons' top plus their height plus 76, which comes to
     278, and the extra 64 is what makes its header look centred rather than
     bottom heavy.

     Measured at Matt's laptop, 1840x1071: above the heading against below it
     was 305 to 352 here and 380 to 363 on home. Taking home's own sum gives
     369 to 352, a ratio of 1.05, which is home's to two decimal places.

     NOTHING CHANGES ON THE WIDESCREEN, where the band is 80vh rather than
     content height, so the top padding is not what sets the gap. That one
     was fixed by the band height and stays where it was. */
  padding:calc(var(--snav-top,138px) + var(--snav-h,64px) + 76px) 0 156px;
  background:#0b0f2e;}
.hero.svch::before{content:"";position:absolute;inset:0;z-index:0;
  background:radial-gradient(120% 90% at 78% 8%,rgba(0,238,204,.16),
    rgba(11,15,46,0) 62%);}

/* the mesh: three blurred blobs, two of them drifting */
.hero.svch .mesh{position:absolute;inset:0;z-index:0;overflow:hidden;}
.hero.svch .mesh span{position:absolute;display:block;opacity:.95;}
.hero.svch .mesh .m1{top:-240px;right:-100px;width:760px;height:660px;
  filter:blur(64px);
  border-radius:46% 54% 43% 57% / 58% 45% 54% 44%;
  background:linear-gradient(140deg,rgba(0,238,204,.58),
    rgba(0,238,204,.13) 55%,transparent);
  animation:xblobA 6.5s ease-in-out infinite;}
.hero.svch .mesh .m2{bottom:-260px;left:-120px;width:680px;height:600px;
  filter:blur(70px);
  border-radius:52% 48% 51% 49% / 50% 51% 50% 49%;
  background:linear-gradient(30deg,rgba(0,238,204,.26),
    rgba(38,50,110,.95) 45%,transparent);
  animation:xblobB 8.5s ease-in-out infinite;}
.hero.svch .mesh .m3{top:26%;left:32%;width:420px;height:400px;
  filter:blur(84px);display:none;
  background:linear-gradient(120deg,rgba(0,238,204,.18),rgba(30,40,85,.55) 80%);}
@keyframes xblobA{
  0%,100%{transform:translate(-146px,86px) rotate(13deg) scale(1.11);}
  50%{transform:translate(-110px,40px) rotate(6deg) scale(1.03);}}
@keyframes xblobB{
  0%,100%{transform:translate(92px,-57px) rotate(-8.5deg) scale(1.06);}
  50%{transform:translate(50px,-16px) rotate(-3deg) scale(1.01);}}

/* THE OBJECT BLEEDS OFF THE RIGHT EDGE, but it is not sized the way the
   index sizes its own. The index photograph is a box shot on a big white
   artboard, so `auto 122%` crops the margin away and leaves the object at a
   sensible size. These six are keyed cut-outs cropped hard to the object's
   own bounding box, with no margin at all, so the same 122% renders them
   enormous: the first build put a wall of connectors across the navigation
   and the heading. So they are contained and anchored to the right edge,
   which is the same intent expressed for a different source file. */
/* THE OBJECT IS SIZED BY THE BAND, NOT BY THE WINDOW. Matt, 24 September,
   with screenshots at 2000px and at laptop width: "the new header in wide
   screen and my laptop views, I think they need adjusting."

   The first version pinned the photograph from 46% to just past the right
   edge, so its box grew with the viewport and the object grew with it. At
   laptop width that was right, which is why it looked finished; at 2000px
   the connectors ran off the right edge and off the bottom and the cabinets
   were cut in half. A max-width stops it growing once the band is wide
   enough, and the object then sits in a frame of a known size rather than
   in whatever is left over.

   THE TOP INSET IS THE SUB NAV. The six capability buttons sit at the top
   of this band, and an object that runs up behind them reads as a mistake
   however good the scrim is. The photograph starts below them. */
/* WHAT THE HOME PAGE DOES, AND WHY IT LOOKS RIGHT. Matt, 8 October, with
   the six headers at two window sizes: "too far right and too small", and
   "images are still not right, too small / cropped at the bottom... We had
   this issue on home page - What can we learn from home page build maybe?"

   Home draws its object at `auto 122%` of the frame height, anchored to the
   left edge and bleeding past the right. Two things follow from that and
   both are the lesson:

     IT IS SIZED BY HEIGHT, NOT BY A PIXEL CAP. The band is always wide and
     never very tall, so height is the real constraint and width is not. This
     header had `min(54%,880px)`, and above about 1630px the 880 took over:
     the object stopped growing while the band kept widening, so it ended up
     both smaller AND further right. At 2560 it was drawing at 34 per cent of
     the band's width with a dead strip between the copy and the photograph.

     THE CROP HAPPENS AT AN EDGE. Home's object runs off the frame, so where
     it is cut it reads as continuing past the page rather than as stopping.
     This header floated the object inside a box with 4 per cent of air under
     it, so the three cut-outs that are themselves cut at the frame (box
     build at the bottom and the right, control panels at the right, the
     harness at the bottom) ended in a hard flat line in mid air with navy
     underneath. That is the "cropped at the bottom" and no amount of sizing
     fixes it: the pixels are not in the file. Anchoring the object to the
     bottom right corner puts those cuts ON the band's edges, where the same
     flat line reads as a bleed.

   So: no pixel cap, the box runs to the bottom of the band and 5 per cent
   past its right edge, and the object sits in that corner. The band's own
   ceiling goes 960 to 1120, held under 96vh so a short wide window cannot
   end up with a header taller than the screen.

   AND THE TOP INSET GOES, which is the third thing the index was already
   doing. The original note here said an object running up behind the six
   capability buttons reads as a mistake however good the scrim is, so it
   started the photograph 206px down. The index does not: measured at 3440
   by 1440 its own object box runs the FULL height of the band, 0 to 1152,
   and the enclosure's lid sits behind the tab row with nothing but the
   scrim over it. That is the page Matt says looks right. Holding 206px of
   the band back was costing a fifth of the only dimension that limits how
   big the object can be, to avoid something the index proves is fine.

   WHAT IT COMES TO, measured across both of Matt's windows. The object was
   34 per cent of the band's width on his ultrawide and is now 38 to 53;
   on the laptop it was 42 to 57 and is now 53 to 58. Nothing is cut by
   this stylesheet at any width: `contain` cannot overflow its box and the
   box now ends exactly on the band's bottom edge, so the three cut-outs
   that are themselves cut flat at the frame put that flat edge ON the
   band's edge rather than in mid air with navy underneath. */
.hero.svch .hero-photo{position:absolute;top:0;
  bottom:0;right:-4%;left:auto;
  width:56%;
  z-index:1;animation:fadeScale 1.1s cubic-bezier(.22,1,.36,1) .3s 1 both;}
/* ON A VERY WIDE SCREEN THE OBJECT STOPS SHARING THE COPY'S COLUMN. The
   band is full width but the content is a 1332px column centred in it, so
   at 3552 there is 1110px of empty band either side. Below about 2400 the
   band is barely wider than the column and the object HAS to overlap it;
   above that there is room not to, and the index does not. The box is
   right-anchored, so narrowing it moves its left edge right, and the object
   is height-bound at these widths so it does not shrink: it simply stops
   crossing the heading. Measured at 3552 by 1397, Matt's window: the object
   now starts 241px clear of the longest headline instead of 145px into it. */
@media (min-width:2400px){
  .hero.svch .hero-photo{width:44%;}
}
.hero.svch .hp{position:absolute;inset:0;
  background-repeat:no-repeat;background-position:0% 100%;
  background-size:contain;
  filter:drop-shadow(0 44px 56px rgba(0,0,0,.45));
  animation:xfloat 5.5s ease-in-out infinite alternate;}

/* AND A SCRIM UNDER THE NAVIGATION. The object runs up behind the bar and
   the six capability buttons, and a bright chrome connector behind white
   nav text is unreadable. A short gradient off the top of the band puts the
   navigation back on a dark ground without darkening the object itself. */
/* AND THE SCRIM HAS TO DO MORE NOW THAT THE OBJECT RUNS THE FULL HEIGHT.
   It was 230px tall and down to 55 per cent opacity by the time it reached
   the six capability buttons, which was plenty over a band of navy and not
   nearly enough over a pale gold connector or a light grey moulding: with
   the top inset gone, the first render had the Cornelius logo sitting on a
   vacuum formed part and the tab row unreadable on two of the six.
   260px, and it holds above 60 per cent all the way past the buttons. */
.hero.svch::after{content:"";position:absolute;left:0;right:0;top:0;
  height:260px;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,rgba(11,15,46,.96) 0%,
    rgba(11,15,46,.90) 40%,rgba(11,15,46,.74) 62%,
    rgba(11,15,46,.38) 82%,rgba(11,15,46,0) 100%);}
@keyframes fadeScale{from{opacity:0;transform:scale(.96);}
  to{opacity:1;transform:none;}}
/* THE OBJECT'S DRIFT IS THE INDEX'S OWN, NOT A REDUCED COPY. Matt, 24
   September: "these are not floating the chips or the image, like they do on
   home or manufacturing overview."

   I wrote a weaker xfloat here than the one the index uses: 10px straight up
   and down, against the index's 7px across and 16px up. At this size 10px of
   vertical is close enough to nothing that the object reads as pinned. These
   are the index's numbers, read out of its stylesheet. */
@keyframes xfloat{from{transform:translate(0,0);}
  to{transform:translate(7px,-16px);}}

/* the glass chips, the index's own geometry */
/* width:max-content, for the same reason the bento chips needed it: an
   absolutely positioned box with `left` set takes its available width from
   the container edge, so the chip nearest the right side shrink-wraps into
   whatever is left and stacks its label. "Port Talbot" was coming out on
   three lines at left:90%. */
/* THE BOB, AND WHY IT NEEDS TWO PROPERTIES RATHER THAN ONE. The chip asked
   for `animation: svchUp, xbob` and xbob was never defined here. It exists
   only in the services index's own stylesheet, which these pages do not
   load, and an undefined animation-name fails silently: no error, no
   fallback, no movement. Measured on cable assemblies, the chip's y was
   constant at 221.6 over two seconds while the index's moved 246.9 to 239.5.

   Naming it is not the whole fix, because the index's xbob animates
   `transform` and this chip's transform is load-bearing: it carries the
   translate(-50%,-50%) that centres the chip on its coordinates. Borrowing
   xbob as written would have wiped that and thrown all five chips half
   their own size down and to the right.

   So the three jobs are split across the two properties that can do them:

     transform   centring, and the scroll parallax folded into its y term,
                 declared once and never animated
     translate   the entry lift and then the bob, in that order, which is
                 safe because the bob's delay starts after the entry ends

   Same lesson as the bento chips in September, where the fix was the other
   way round. A component's transform is not a free surface. */
.hero.svch .fchip{position:absolute;z-index:2;
  transform:translate(-50%,calc(-50% + var(--sy,0)*0.30px));
  padding:18px 22px 15px;border-radius:18px;width:max-content;max-width:270px;
  /* THE GLASS NEEDS SOMETHING TO SIT ON. The index's chip is two whites at
     16% and 4%, which works because the box build photograph behind it is
     dark. Matt's box build cut-out is a row of pale grey enclosures, and
     white text on white glass on a white cabinet is unreadable. A navy
     underlayer goes beneath the same two whites: identical on a dark
     object, legible on a light one. */
  background:linear-gradient(145deg,rgba(255,255,255,.16),
    rgba(255,255,255,.04)),rgba(11,15,46,.52);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:0 18px 44px -18px rgba(0,0,0,.5);
  opacity:0;animation:svchUp .8s cubic-bezier(.22,1,.36,1) forwards,
    svchBob 5.7s ease-in-out infinite;}
/* THE CORNER MARKS. The tick is home's own, copied by its numbers
   rather than by eye: 20px, half a radius, aqua on ink, 14 in from the
   top right. The flag sits in the same corner at the same size and is
   left as a picture rather than tinted, because a flag that is one
   colour is not a flag. The chip's padding on the right makes room for
   both so a long title cannot run under one.

   ONLY THE MARKED ONES GET THE PADDING, which is why the class exists
   rather than a :has(). Put it on every chip and the one long label on
   the page wraps to two lines to make room for a corner that is empty,
   and that chip stands 16px taller than the other four for nothing. */
/* ONLY THE NAME MAKES ROOM FOR THE MARK, not the whole chip. The mark
   is 20px tall at top:14px, so it is beside the name and nothing else;
   padding on the chip reserves that column down the label's lines too
   and wraps them 30px early against empty glass. Same rule as the bento
   header's, 16 October. */
.hero.svch .fchip-mk .n{padding-right:30px;}
.hero.svch .fchip .tick,
.hero.svch .fchip .cflag{position:absolute;top:14px;right:14px;
  width:20px;height:20px;border-radius:50%;pointer-events:none;}
.hero.svch .fchip .tick{display:grid;place-items:center;
  background:#00eecc;color:#0b0f2e;
  font-size:12px;font-weight:900;line-height:1;}
/* THE FLAG IS ROUND AND IT IS THE SAME ROUND EVERYWHERE. Matt: "same
   flag for all chips using it - let's go round version." Home's was a
   20x11 rounded rectangle, the flag's own 25:14, and this one was a
   20px circle, so the two headers carried two different marks. Round
   wins on Matt's call, and the crop is object-fit rather than a squash:
   a 25:14 flag squared by force is a stretched flag. */
.hero.svch .fchip .cflag{object-fit:cover;display:block;}
.hero.svch .fchip .n{font-family:'Gotham','Inter',Arial,sans-serif;
  font-weight:900;font-size:23px;letter-spacing:-.5px;color:#fff;
  line-height:1.2;}
.hero.svch .fchip .l{font-size:11.5px;font-weight:500;line-height:1.35;
  color:rgba(255,255,255,.72);margin-top:4px;}
.hero.svch .fs1{animation-delay:.75s,1.6s;}
.hero.svch .fs2{animation-delay:.90s,1.9s;}
.hero.svch .fs3{animation-delay:1.05s,2.2s;}
.hero.svch .fs4{animation-delay:1.20s,2.5s;}
.hero.svch .fs5{animation-delay:1.35s,2.8s;}
/* Both of these move `translate`, never `transform`, for the reason set out
   above the .fchip rule. svchBob is the index's own xbob, 9px at the top of
   the arc, renamed so it can never collide with the index's version of the
   name on a page that happens to load both. */
@keyframes svchUp{from{opacity:0;translate:0 14px;}
  to{opacity:1;translate:0 0;}}
@keyframes svchBob{0%,100%{translate:0 0;}50%{translate:0 -9px;}}

/* the copy side, on home's twelve column grid */
.hero.svch .hero-grid{position:relative;z-index:3;display:grid;
  grid-template-columns:repeat(12,1fr);gap:var(--gut,32px);align-items:center;}
.hero.svch .hero-grid > div:first-child{grid-column:1 / span 7;}
.hero.svch .hero-visual{grid-column:8 / -1;}
.hero.svch .crumb{margin-bottom:18px;font-size:13px;
  color:rgba(255,255,255,.55);}
.hero.svch .crumb a{color:rgba(255,255,255,.72);}
.hero.svch .crumb span{margin:0 8px;opacity:.5;}
.hero.svch .kicker{margin-bottom:22px;}
.hero.svch h1{margin:0;font-family:'Gotham','Inter',Arial,sans-serif;
  font-weight:900;font-size:clamp(40px,4.7vw,70px);line-height:1.02;
  letter-spacing:-1.5px;color:#fff;text-transform:uppercase;}
/* the ghost line is white like every other title (akit) */
.hero.svch .hero-sub{margin:26px 0 0;max-width:520px;font-size:19px;
  line-height:1.65;color:rgba(255,255,255,.78);}
.hero.svch .hero-sub b{color:#fff;font-weight:700;}
.hero.svch .hero-ctas{display:flex;gap:14px;margin-top:34px;flex-wrap:wrap;}

/* the parallax the index has: the object and the chips move at different
   rates against the scroll, using --sy, which subnav.py writes on every
   page already */
/* AND THE OBJECT'S PARALLAX WAS DEAD TOO, for a different reason. It was
   written on `transform`, and .hero-photo runs fadeScale with fill-mode
   `both`, whose last keyframe is transform:none. A filled animation keeps
   overriding the declared value for as long as the element lives, so the
   scroll offset was thrown away on every frame: measured, the photo's
   transform was the identity matrix at every scroll position. Moved to
   `translate`, which fadeScale does not touch.

   The chip's parallax is not here any more. It is folded into the transform
   on the .fchip rule above, because `translate` is carrying the bob. */
.hero.svch .hero-photo{translate:0 calc(var(--sy,0)*0.22px);}

@media (max-width:1180px){
  .hero.svch .hero-grid > div:first-child{grid-column:1 / span 8;}
  .hero.svch .hero-photo{width:min(58%,640px);right:-3%;opacity:.62;}
  .hero.svch .fchip{max-width:220px;padding:14px 16px 12px;}
  .hero.svch .fchip .n{font-size:19px;}
}
@media (max-width:900px){
  .hero.svch{min-height:0;padding:calc(var(--hero-top,278px) - 40px) 0 64px;}
  .hero.svch .hero-grid > div:first-child{grid-column:1 / -1;}
  .hero.svch .hero-photo{position:relative;left:auto;right:auto;
    height:300px;margin:28px -24px 0;opacity:1;grid-column:1 / -1;}
  .hero.svch .hp{position:absolute;inset:0;background-position:50% 50%;
    background-size:contain;}
  .hero.svch .fchip{position:static;transform:none;translate:none;
    max-width:none;margin-top:10px;display:inline-block;animation:none;
    opacity:1;}
  .hero.svch .hero-sub{max-width:none;}
}
/* ===== ON A PHONE THE HEADLINE WAS OFF THE SCREEN ======================= */
/* Michael, 27 October, on a Pixel: the first screen of every service page
   was stars and nothing else. Measured at 360px the h1 sat at x=509.

   The rules above take the photo and the five chips out of absolute
   positioning, which is right, and put them in "grid-column:1 / -1", which
   assumes they are inside .hero-grid. They are not. They are siblings of
   .wrap directly under the header, and the header is display:flex in a
   row, so all six landed in the row AHEAD of the copy: the photo took the
   first 300-odd px, the chips squeezed in after it, and the copy column
   started at x=477, clipped away by the header's overflow. The squashed
   chips are the overlapping stat cards at the foot of the screen.

   So the row wraps on a phone and the order is set: copy first at full
   width, the photo under it at full width, the chips after that as a row
   of their own that wraps. Nothing above 900px changes. */
@media (max-width:900px){
  .hero.svch{flex-flow:row wrap;align-content:flex-start;}
  .hero.svch > .wrap{order:1;flex:0 0 100%;}
  .hero.svch > .hero-photo{order:2;flex:0 0 100%;margin:28px 0 0;}
  .hero.svch > .fchip{order:3;flex:0 1 auto;margin:10px 0 0 10px;}
  .hero.svch > .fchip.fs1{margin-left:24px;}
  .hero.svch > .sdh{order:4;}
}
/* AND THE LONGEST WORD FITS. At 360px "manufacturing," on the harness page
   is 366px at 40px and "Overmoulding." 340px, wider than the screen less
   its padding, so the ends were cut. Below 400px the headline scales with
   the screen, about 33px at 360. Same rule as home's (homehero.py). */
@media (max-width:400px){
  .hero.svch h1{font-size:min(40px,9.2vw);}
}
/* ===== THE COPY COLUMN WAS SHRINK-WRAPPING ============================== */
/* Matt, 24 September, with the three overview pages beside services.html:
   "these new headers are shrunk down."

   Measured at 1600px, the same .wrap on the two pages:

       services.html   x 134, width 1332   (its max-width)
       these           x 346, width  909

   Both compute max-width:1332px, so the narrower one is not being told to
   be narrow, it is failing to fill. .hero.svch is display:flex, which makes
   .wrap a flex item, and a flex item sizes to its content rather than to
   its max-width unless it is told otherwise. So the twelve column grid was
   laid out across 909px and the seven column copy block with it, which is
   why the heading sat 212px further in than the index's and read as
   shrunken even though it is set at exactly the same 70px.

   This applies to all eight svch pages, not just the three. The six
   verticals have the same flex item and the same narrow grid; nobody had
   put them beside the index at the same width. */
.hero.svch > .wrap{width:100%;}

/* ===== AND THE THREE OVERVIEW PAGES TAKE THE INDEX'S OWN FRAME ========== */
/* The six verticals' photograph is capped at min(54%,880px) with a 206px
   top inset, and that cap is right for them: they carry cut-outs cropped
   hard to the object's own bounding box, which render enormous in an
   uncapped frame. That was the 24 September fix and it stands.

   These three do not carry a cut-out. They carry svc-hero-panel.webp, which
   is the services index's own master, prepared to the index's own frame at
   3000x2000 with a declared safe zone. Putting a frame-prepared master into
   a cut-out's box is what halved it: measured at 2000px, 845x687 against
   the index's 1286x960, about 47% of the area.

   So .verb takes the index's LOCKED frame values verbatim, cover and
   left-centre included, because the master was prepared for them. Below
   1100px the index's own rule stops applying too, and the stacked mobile
   treatment further down takes over for both. */
@media (min-width:1100px){
  .hero.svch.verb .hero-photo{top:0;bottom:0;left:calc(50vw - 166px);
    right:-120px;width:auto;height:auto;}
  /* AND THE BLEED THE SIX GOT ON 6 NOVEMBER, in the form `cover` can
     take. xfloat lifts .hp by 16px and a background cannot paint
     outside its own box, so a box that stops on the band's edge
     uncovers a 16px strip of navy at the top of every float cycle.
     Measured here before the change at 3440 by 1322, 1720 by 900 and
     1440 by 900: the layer's bottom sat 16px, 15.6px and 16px ABOVE
     the band. After: 8px below it at all three.

     NOT the content-box trick svchfit uses on the six. That one holds
     the positioning area still while the paint box grows, which is
     right for a background sized in pixels and wrong for `cover`:
     cover would size to the content box and leave the extra strip
     empty, which is the gap again. Here the box simply grows and
     cover grows with it, 2.3 per cent on an image that is already
     cropping. */
  /* THE POSITION IS THE PAGE'S OWN NOW (9 November). It was `left
     center` for all three, which was right while all three carried
     svc-hero-panel.webp, a master prepared for this frame with a safe
     zone at the top. The three pictures that replaced it were framed
     for other places, so centred they ran up behind the six pills.
     Each page sets its own in the markup; this keeps the size and the
     bleed and stops claiming the position. */
  .hero.svch.verb .hp{background-size:cover;inset:0 0 -24px 0;}
}

/* AND THE SCRIM HAS MORE TO DO NOW. With the object starting at the top of
   the band rather than 206px down, it runs the full height behind the bar
   and the six capability buttons instead of clearing them. The gradient
   that was covering a 206px gap is now the only thing keeping white nav
   text off a bright photograph, so it reaches as far as the buttons do. */
.hero.svch.verb::after{height:300px;
  background:linear-gradient(180deg,rgba(11,15,46,.94),rgba(11,15,46,.62) 48%,
    rgba(11,15,46,0));}

@media (prefers-reduced-motion:reduce){
  .hero.svch .mesh span,.hero.svch .hp,.hero.svch .hero-photo,
  .hero.svch .fchip{animation:none !important;opacity:1 !important;}
}


/* ===== THE SECOND TIER SCROLLS UP AND OVER THE HEADER (rollover.py) ==== */
/* The same three pieces as hero.py's sh2 sheet, with the same numbers, so
   a guide behaves like a service page and a case study behaves like an
   industry page. 36px radius, the shadow cast upwards, the header's words
   dropping at 0.26 of the scroll and gone by 560. */
header.ihero{position:sticky;top:0;z-index:0;}
/* THE FADE IS SLOWER HERE THAN ON THE SERVICE PAGES, on purpose. Those
   headers carry their words at the top, so by the time the sheet has
   covered 560px the words have already gone under it. These headers centre
   their words, so the same curve emptied the header while a third of it was
   still on screen: a blank navy band with nothing in it. 900 is the cap
   --sy is written to, so the words are still readable at the point the
   sheet reaches them and gone by the time it passes. */
header.ihero > .wrap,header.ihero > div{
  transform:translateY(calc(var(--sy,0)*0.18px));
  opacity:calc(1 - var(--sy,0)/900);}
/* AND THE SERVICES HEADER WHEN IT IS THE ONE ON THE PAGE. Only its words
   move: the mesh and the photograph are the header's own ground and they
   belong to the band, not to the sentence, so dropping those as well would
   pull the picture away from under the type while both are still on screen.
   This sheet is only ever on a page that has .rsheet, so the six service
   pages carrying the same header and hero.py's own sheet never see it. */
header.hero.svch > .wrap{
  transform:translateY(calc(var(--sy,0)*0.18px));
  opacity:calc(1 - var(--sy,0)/900);}
.rsheet{position:relative;z-index:5;
  background:radial-gradient(1000px 500px at 50% -100px,
    rgba(0,238,204,.05),transparent 60%),#0b0f2e;
  border-radius:36px 36px 0 0;box-shadow:0 -30px 90px rgba(0,0,0,.33);}
/* THE CURVE HAS TO BE ON THE CHILD AS WELL. The sheet carries the radius
   but not overflow:hidden, because a clipping ancestor would kill the
   sticky contents table of the ten guides. So the first band inside it,
   which paints its own background, gets the same radius: without this the
   band's square corner paints straight over the sheet's rounded one and the
   join reads as the hard line it was meant to replace. */
.rsheet > *:first-child{border-top-left-radius:36px;
  border-top-right-radius:36px;}
.rsheet > section:first-of-type{padding-top:clamp(64px,7vh,92px);
  border-top-left-radius:36px;border-top-right-radius:36px;}
@media (max-width:900px){
  .rsheet,.rsheet > *:first-child,.rsheet > section:first-of-type{
    border-radius:24px 24px 0 0;}
  header.ihero,header.hero.svch{position:static;}
  header.ihero > .wrap,header.ihero > div,
  header.hero.svch > .wrap{transform:none;opacity:1;}
}
@media (prefers-reduced-motion:reduce){
  header.ihero > .wrap,header.ihero > div,
  header.hero.svch > .wrap{transform:none;opacity:1;}
}
