/* =====================================================================
   HAZLEWOOD CALL TO ACTION BAND  (.hz-cta). Version 1, signed off 12 November 2026.
   Needs hazlewood-web.css (the design system web stylesheet) on the page.
   Always navy. Sits directly above the footer as one navy block.
   Colour, type, spacing, buttons and the keyline size come from the system tokens.
   Literal values left: the 768px breakpoint, the keyline's 44 per cent share of the
   window and its 16 per cent bleed (web.md), and the entrance distance from web-base.
   ===================================================================== */
.hz-cta{position:relative;overflow:hidden;background:var(--hz-surface-dark);color:var(--hz-text-on-dark);font-family:var(--hz-font-sans)}
.hz-cta :is(h2,p){margin:0}
.hz-cta__band{position:relative;z-index:1;padding-block:var(--hz-section-y)}
.hz-cta .hz-head{margin-bottom:0}
.hz-cta__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--hz-space-3) var(--hz-space-4);margin-top:var(--hz-block-web)}
.hz-cta:not([data-kicker="off"]) .hz-kicker{display:block}
.hz-cta[data-kicker="off"] .hz-kicker{display:none}
.hz-cta[data-standfirst="off"] .hz-standfirst{display:none}

/* Actions. link (default): primary button and an arrow link. buttons: primary and the secondary outline. single: primary only. */
.hz-cta__alt-btn{display:none}
.hz-cta[data-actions="buttons"] .hz-cta__alt-link{display:none}
.hz-cta[data-actions="buttons"] .hz-cta__alt-btn{display:inline-flex}
.hz-cta[data-actions="single"] :is(.hz-cta__alt-link,.hz-cta__alt-btn){display:none}

/* Keyline: the supplied graphic, bleeding off the right edge from 768px. Text keeps to the left half. */
.hz-cta__keyline{display:none;position:absolute;top:50%;right:0;height:auto;transform:translate(16%,-50%);pointer-events:none;user-select:none}
@media (min-width:768px){
  .hz-cta:not([data-graphic="none"]):not([data-align="centre"]) .hz-cta__keyline{display:block;width:min(44vw,var(--hz-graphic-keyline-width-web))}
  .hz-cta:not([data-graphic="none"]):not([data-align="centre"]) :is(.hz-head,.hz-cta__actions){max-width:50%}
}

/* Centred: no graphic, the header and actions centred */
.hz-cta[data-align="centre"] .hz-head{align-items:center;text-align:center;margin-inline:auto}
.hz-cta[data-align="centre"] .hz-cta__actions{justify-content:center}

/* Entrance: the header and actions rise into place */
.hz-cta:not([data-entrance="off"]).is-armed :is(.hz-head,.hz-cta__actions){opacity:0;transform:translateY(var(--hz-rise))}
.hz-cta:not([data-entrance="off"]).is-armed.is-in :is(.hz-head,.hz-cta__actions){opacity:1;transform:none;transition:opacity var(--hz-dur-entrance) var(--hz-ease-out),transform var(--hz-dur-entrance) var(--hz-ease-out)}
.hz-cta:not([data-entrance="off"]).is-armed.is-in .hz-cta__actions{transition-delay:var(--hz-stagger)}

/* Keyline motion. The supplied file is never redrawn: draw reveals it with a sweeping mask
   around its ring centre each time the band comes into view, drift moves it against the scroll.
   data-motion: both (default) | draw | drift | off. Reduced motion: none.
   Durations and the drift distance are dur-draw and drift in web-base.css. */
@property --hz-kl-sweep{syntax:"<angle>";inherits:false;initial-value:384deg}
.hz-cta__keyline{--hz-kl-sweep:384deg;--hz-kl-shift:0px;
  -webkit-mask-image:conic-gradient(from 0deg at 54.3% 50%,#000 calc(var(--hz-kl-sweep) - 24deg),transparent var(--hz-kl-sweep));
          mask-image:conic-gradient(from 0deg at 54.3% 50%,#000 calc(var(--hz-kl-sweep) - 24deg),transparent var(--hz-kl-sweep));
  transform:translate(16%,calc(-50% + var(--hz-kl-shift)))}
.hz-cta:is(:not([data-motion]),[data-motion="draw"],[data-motion="both"]).is-kl-armed .hz-cta__keyline{--hz-kl-sweep:0deg}
.hz-cta:is(:not([data-motion]),[data-motion="draw"],[data-motion="both"]).is-kl-armed.is-kl-in .hz-cta__keyline{--hz-kl-sweep:384deg;transition:--hz-kl-sweep var(--hz-dur-draw) var(--hz-ease-out) var(--hz-stagger)}
@media (prefers-reduced-motion:reduce){.hz-cta .hz-cta__keyline{--hz-kl-sweep:384deg!important;--hz-kl-shift:0px!important}}
@media (prefers-reduced-motion:reduce){.hz-cta *{transition:none!important}.hz-cta.is-armed :is(.hz-head,.hz-cta__actions){opacity:1;transform:none}}
