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