/* Homepage hero: the photograph of Poppy teaching outdoors.
   The copy is white over a scrim tinted from the garden's own dark foliage, so
   it stays readable at every width. The scrim fades out before it reaches
   Poppy and her learner, who are kept on the right of the frame. */
body[data-page="home"] main .clean-hero::after{
 content:'';
 display:block;
 position:absolute;
 inset:0;
 z-index:1;
 pointer-events:none;
 background:linear-gradient(90deg,rgba(9,24,20,.74) 0%,rgba(9,24,20,.56) 24%,rgba(9,24,20,.16) 43%,rgba(9,24,20,0) 55%);
}
body[data-page="home"] main .clean-hero .clean-hero-photo{z-index:0;object-position:right center}
/* Desktop: keep the pair against the right-hand side whatever the band's shape.
   The learner's back is 88% of the way across the photograph, so place that point
   on the band's right edge. The photograph is as wide as the band or 1.5 times its
   height, whichever is larger; min() stops it leaving a gap on the left. */
body[data-page="home"] main .hero-learning-photo{container-type:size}
@media (min-width:960px){
 @supports (width:1cqw){
  body[data-page="home"] main .clean-hero .clean-hero-photo{
   object-position:min(0px,calc(100cqw - .88 * max(100cqw,150cqh))) center;
  }
 }
}
body[data-page="home"] main .clean-hero>.hero-copy,
body[data-page="home"] main .clean-hero>.hero-enquiry{position:relative;z-index:2}
body[data-page="home"] main .clean-hero .hero-copy h1,
body[data-page="home"] main .clean-hero .hero-copy>p{
 color:var(--brand-shell,#faf7f0);
 text-shadow:0 1px 2px rgba(9,24,20,.6),0 2px 20px rgba(9,24,20,.5);
}
body[data-page="home"] main .clean-hero .hero-copy>p{font-weight:500}

/* Tablet: the frame is taller than the photograph is wide, so the pair sit
   closer to the copy. Keep the copy column narrow enough to clear Poppy. */
@media (min-width:701px) and (max-width:959px){
 body[data-page="home"] main .clean-hero::after{
  background:linear-gradient(90deg,rgba(9,24,20,.78) 0%,rgba(9,24,20,.6) 30%,rgba(9,24,20,.14) 50%,rgba(9,24,20,0) 62%);
 }
 body[data-page="home"] main .clean-hero>.hero-copy{width:min(42%,340px)}
 /* Show more of the left of the photograph so the pair move right, clear of the form. */
 body[data-page="home"] main .clean-hero .clean-hero-photo{object-position:42% center}
 body[data-page="home"] main .clean-hero .hero-copy>p{max-width:22ch}
}

/* Phone: the copy sits on the foliage at the top with Poppy and her learner
   centred beneath it, and the enquiry form anchors the bottom. */
@media (max-width:700px){
 body[data-page="home"] main .clean-hero::after{
  background:linear-gradient(180deg,rgba(9,24,20,.84) 0%,rgba(9,24,20,.7) 14%,rgba(9,24,20,.24) 25%,rgba(9,24,20,0) 32%);
 }
 body[data-page="home"] main .clean-hero .clean-hero-photo{object-position:66% center}
 body[data-page="home"] main .clean-hero .hero-copy>p{max-width:none}
}

/* The hero and the awards strip share one band. The photograph and its scrim
   span the whole band and dissolve into the wash colour, reaching the solid
   colour only at the foot of the awards, so the two sections read as one. */
body[data-page="home"] main .hero-band{position:relative;isolation:isolate;overflow:hidden;background-color:var(--brand-wash)}
/* The band does the clipping. The hero itself must not, or the enquiry card's
   shadow is cut off at the hero's lower edge and shows as a line above the awards. */
body[data-page="home"] main .hero-band .clean-hero{position:static;isolation:auto;overflow:visible;background-color:transparent!important}
body[data-page="home"] main .hero-band .clean-recognition{position:relative;z-index:2;background-color:transparent!important}
body[data-page="home"] main .hero-band .hero-learning-photo,
body[data-page="home"] main .hero-band .clean-hero::after{
 -webkit-mask-image:linear-gradient(180deg,#000 0,#000 46%,rgba(0,0,0,.8) 58%,rgba(0,0,0,.55) 69%,rgba(0,0,0,.3) 80%,rgba(0,0,0,.1) 90%,transparent 97%);
 mask-image:linear-gradient(180deg,#000 0,#000 46%,rgba(0,0,0,.8) 58%,rgba(0,0,0,.55) 69%,rgba(0,0,0,.3) 80%,rgba(0,0,0,.1) 90%,transparent 97%);
}
