/* =====================================================================
   HAZLEWOOD HERO COMPONENT  (.hz-hero)
   Needs hazlewood-web.css (the design system web stylesheet) on the page.
   Copy this CSS block and the HZHero script block into a site.
   Colour, type, spacing, radius and buttons come from the system tokens.
   The only literal values left are layout proportions (16 by 9, copy width)
   and hero motion, which web.md says is set in this component.
   ===================================================================== */
.hz-hero{
  --hz-copy-y:52%;
  position:relative;isolation:isolate;overflow:hidden;container-type:inline-size;
  width:100%;height:min(56.25vw,100vh);min-height:var(--hz-hero-min-height-web);
  background:var(--hz-surface-dark);color:var(--hz-text-on-dark);font-family:var(--hz-font-sans);
}
.hz-hero__bg{position:absolute;inset:0 0 var(--hz-mesh-cut,0px) 0;z-index:-1;pointer-events:none;overflow:hidden;background:var(--hz-surface-dark);transform:translate3d(0,var(--hz-bgp,0px),0);will-change:transform}
.hz-hero__mesh{position:absolute;inset:0;background:var(--hz-surface-dark) center/cover no-repeat;transform:translate3d(0,var(--hz-mesh-in,0px),0) scaleX(var(--hz-flip,1));will-change:transform}
.hz-hero__canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0}
.hz-hero--live.hz-hero--drawn .hz-hero__canvas{opacity:1}
.hz-hero[data-mirror="on"]{--hz-flip:-1}
/* Navy scrim (overlay-scrim): always on, radial, centred behind the copy */
.hz-hero{--hz-scrim:radial-gradient(ellipse 60% 55% at 50% var(--hz-copy-y),var(--hz-overlay-scrim) 0%,color-mix(in srgb,var(--hz-overlay-scrim) 55%,transparent) 55%,transparent 100%)}
.hz-hero__scrim{position:absolute;inset:0;transform:translate3d(0,var(--hz-scrim-in,0px),0);background:var(--hz-scrim)}
/* White fade: through pale blue into white. Off is the default when data-fade is missing. */
.hz-hero__fade{position:absolute;left:0;right:0;bottom:-1px;height:50%;display:none;
  background:linear-gradient(to bottom,
    color-mix(in srgb,var(--hz-pale-blue) 0%,transparent) 0%,
    color-mix(in srgb,var(--hz-pale-blue) 10%,transparent) 20%,
    color-mix(in srgb,var(--hz-pale-blue) 35%,transparent) 42%,
    color-mix(in srgb,color-mix(in srgb,var(--hz-pale-blue) 53%,var(--hz-surface-light)) 68%,transparent) 64%,
    color-mix(in srgb,color-mix(in srgb,var(--hz-pale-blue) 14%,var(--hz-surface-light)) 92%,transparent) 84%,
    var(--hz-surface-light) calc(100% - 16px),
    var(--hz-surface-light) 100%)}
.hz-hero:is([data-fade="short"],[data-fade="long"]){--hz-copy-y:44%}
.hz-hero:is([data-fade="short"],[data-fade="long"]) .hz-hero__fade{display:block}
.hz-hero[data-fade="short"] .hz-hero__fade{height:35%}
/* With a white fade, the bottom 12px of the mesh area are pure white. The mesh, its navy ground and the scrim stop above it,
   so no part of them can show at the lower edge however the browser rounds the scrolling layers. */
.hz-hero:is([data-fade="short"],[data-fade="long"]) .hz-hero__bg{background:linear-gradient(to bottom,var(--hz-surface-dark) calc(100% - 12px),transparent calc(100% - 12px))}
.hz-hero:is([data-fade="short"],[data-fade="long"]) .hz-hero__mesh{clip-path:inset(0 0 calc(var(--hz-mesh-in,0px) + 12px) 0)}
.hz-hero:is([data-fade="short"],[data-fade="long"]) .hz-hero__scrim{clip-path:inset(0 0 calc(var(--hz-scrim-in,0px) + 12px) 0)}

/* Copy. Text on the mesh is always text-on-dark (README, Graphic devices). */
.hz-hero__copy{position:absolute;left:50%;top:var(--hz-copy-y);transform:translate(-50%,-50%);width:min(62cqw,92%);text-align:center}
.hz-hero__kicker{margin:0 0 var(--hz-stack-web-tight);font-size:var(--hz-web-kicker-size);font-weight:var(--hz-web-kicker-weight);line-height:var(--hz-web-kicker-leading);letter-spacing:var(--hz-web-kicker-tracking);color:var(--hz-text-on-dark)}
.hz-hero__title{margin:0;font-size:var(--hz-web-display-size);font-weight:var(--hz-web-display-weight);letter-spacing:var(--hz-web-display-tracking);line-height:var(--hz-web-display-leading);text-wrap:balance}
.hz-hero__standfirst{margin:var(--hz-stack-web-standfirst) auto 0;max-width:44cqw;font-size:var(--hz-web-standfirst-size);font-weight:var(--hz-web-standfirst-weight);line-height:var(--hz-web-standfirst-leading);letter-spacing:var(--hz-web-standfirst-tracking);color:var(--hz-text-on-dark);text-wrap:balance}
.hz-hero__standfirst{max-width:min(var(--hz-measure-web),100%)}
.hz-hero__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--hz-space-2);margin-top:var(--hz-block-web)}
.hz-hero__visual:empty{display:none}
/* Visual below the copy (data-visual). The hero grows to fit, and the lower part of the visual hangs below the mesh onto the white page (data-overlap). */
.hz-hero.hz-hero--has-visual{height:auto;min-height:0;background:transparent;overflow:visible;display:flex;flex-direction:column;align-items:center;
  padding:calc(var(--hz-header-height) + var(--hz-section-y)) var(--hz-gutter) calc(var(--hz-section-y) * 2 / 3)}
.hz-hero--has-visual .hz-hero__copy{position:relative;z-index:1;left:auto;top:auto;width:min(62cqw,100%);transform:translate3d(0,var(--hz-par,0px),0) scale(var(--hz-cs,1));opacity:var(--hz-co,1);transform-origin:50% 30%}
.hz-hero--has-visual .hz-hero__visual{position:relative;z-index:2;width:min(var(--hz-visual-width-web),100%);margin-top:var(--hz-head-gap)}
.hz-hero__visual img{display:block;width:100%;height:auto;transform:var(--hz-vt,none);transform-origin:var(--hz-vo,50% 0);border-radius:var(--hz-radius-card);box-shadow:var(--hz-shadow-float-web)}
/* Hero motion, set in this component (web.md, Motion) */
.hz-hero__visual{transition:opacity .9s ease,transform 1.1s cubic-bezier(.22,1,.36,1)}
.hz-hero--visual-wait .hz-hero__visual{opacity:0;transform:translateY(48px);transition:none}
/* Buttons come from the stylesheet (.hz-btn). The hero is a navy ground, so the secondary button is the aqua outline. */
/* Title reveal internals */
.hz-hero__title .ln,.hz-hero__title .li,.hz-hero__title .bx,.hz-hero__title .bt{display:block}
.hz-hero__title .bx,.hz-hero__title .bt{transform-origin:50% 50%}

/* Small screens, under breakpoint-web-md: copy flows below the header and stays clear of the white fade */
@media (max-width:767.98px){
  .hz-hero{height:auto;min-height:var(--hz-hero-min-height-web-sm);display:flex;flex-direction:column;justify-content:center;
    padding:calc(var(--hz-header-height) + var(--hz-section-y)) max(var(--hz-gutter),env(safe-area-inset-right,0px)) var(--hz-space-7) max(var(--hz-gutter),env(safe-area-inset-left,0px));--hz-copy-y:50%;
    --hz-scrim:radial-gradient(ellipse 95% 50% at 50% var(--hz-copy-y),var(--hz-overlay-scrim) 0%,color-mix(in srgb,var(--hz-overlay-scrim) 55%,transparent) 55%,transparent 100%)}
  .hz-hero:is([data-fade="short"],[data-fade="long"]){--hz-copy-y:42%;padding-bottom:calc(var(--hz-space-8) + var(--hz-space-7))}
  .hz-hero[data-fade="short"]{padding-bottom:calc(var(--hz-space-8) + var(--hz-space-4))}
  .hz-hero:is([data-fade="short"],[data-fade="long"]) .hz-hero__fade{height:calc(var(--hz-space-8) * 2 + var(--hz-space-5))}
  .hz-hero[data-fade="short"] .hz-hero__fade{height:calc(var(--hz-space-8) + var(--hz-space-7))}
  .hz-hero__copy{position:relative;left:auto;top:auto;transform:none;width:100%}
  .hz-hero__standfirst{max-width:var(--hz-measure-web)}
  .hz-hero.hz-hero--has-visual{min-height:0;padding:calc(var(--hz-header-height) + var(--hz-section-y)) max(var(--hz-gutter),env(safe-area-inset-right,0px)) var(--hz-block-web) max(var(--hz-gutter),env(safe-area-inset-left,0px))}
  .hz-hero--has-visual .hz-hero__fade{height:50%}
  .hz-hero--has-visual[data-fade="short"] .hz-hero__fade{height:35%}
  .hz-hero--has-visual .hz-hero__copy{width:100%}
  .hz-hero--has-visual .hz-hero__visual{margin-top:var(--hz-block-web)}
}
/* ===================== end of hero component CSS ===================== */
