/* General Styles */
.hero-block {
    position: relative;
    z-index: 2;
    overflow: hidden;
}
.hero-block .block-inner {
  position: relative;
  overflow: hidden;
}

.background-image-wrap {
    will-change: transform;
}

/* White fade-out gradient on left/right edges */
/*.hero-block .block-inner::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient( to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100% );
	height: 25%;
	min-height: 200px;
}*/

/* Text overlay container - positioned over media */
.hero-block .textarea-container {
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    color: var(--colour-white);
}

/* Gradient overlay for text readability */
.hero-block .textarea-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: -1;
    pointer-events: none;
}

.hero-block .textarea-container .inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
}

.hero-block .textarea-container .inner-width {
  display: flex;
  flex-flow: column;
    justify-content: center;
    align-items: center;
  max-width: 640px;
  margin: 0 auto;
}
.hero-block .textarea {
	color: var(--colour-white);
    text-wrap:balance;
    font-size: var(--font-l);
}
.overlay-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    height: 100%;
    margin: 0 auto;
    right: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}
.overlay-image-wrap img {
    margin: 0 auto;
    max-width: clamp(130px, 15vw, 280px);
}
.hero-block :is(h1, h2, h3, h4, h5, h6) {
    margin-bottom: 0;
    color: var(--colour-white);
}

/* Gradient already applied via ::before on textarea-container */
.hero-block .block-inner::before {
    display: none;
}


.hero-text .button-container {
margin-top: 35px;
}
.error404 .hero-block .hero-down-pointer {
display: none;
}

/* Height */
.hero-height-full-screen .background-image-wrap img {
    aspect-ratio: 1920/1080;
    height: 100%;
    max-height: 100svh;
    width: 100%;
    object-fit: cover;
    display: block;
    min-height: 530px;
}
.hero-height-full-screen.active-hero-menu .background-image-wrap img {
    max-height: calc(100svh - 64px);
}
.hero-block .video-player {
    height: 100svh;
    min-height: 530px;
}
.hero-block .video-player {
    height: calc(100svh - 64px);
}
.hero-height-medium .background-image-wrap img {
    aspect-ratio: 1920 / 630;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
    display: block;
}
.hero-height-narrow .background-image-wrap img {
    aspect-ratio: 1920 / 520;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
    max-height: 520px;
    display: block;
}

/* Buttons */
.hero-block .button-container {
    margin-top: var(--gutter-xl);
}

/* Pointer/arrow */
@keyframes heroArrowEntry {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-down-pointer {
    z-index: 10;
    position: absolute;
    bottom: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: fit-content;
}
.hero-down-pointer svg {
    width: 38px;
    color: var(--colour-white);
}
.hero-down-pointer a {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: background 0.3s ease, opacity 0.3s ease;
}
.hero-down-pointer a.hero-arrow--visible {
    animation: heroArrowEntry 1.4s ease-in-out forwards;
}
.hero-down-pointer a:hover,
.hero-down-pointer a:focus {
    background: rgba(255, 255, 255, 0.25);
}
.hero-down-pointer a:hover svg,
.hero-down-pointer a:focus svg {
    opacity: 1;
}
.hero-down-pointer a:focus-visible {
    outline: 2px solid var(--colour-white);
    outline-offset: 4px;
}

/* Video */
/*https://stackoverflow.com/a/51619871*/
.hero-block .video-player {
    overflow: hidden;
    position: relative;
    pointer-events: none;
}
.hero-block .video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-block .video-player iframe {
    width: 100%;
    height: calc((100vw*9) /16);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@media (max-aspect-ratio: 16/9) {
.hero-block .video-player{
    width: 100%;
    overflow: hidden;
}
.hero-block .video-player iframe{
    width: calc((100vh*16)/9);
    height: 100vh; /*old browser support*/
    height: 100svh;
}
}

/* Slider */
.hero-slider {
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.hero-slider .swiper {
  width: 100%;
  height: 100%;
}
.hero-slide {
    overflow: hidden;
    height: 100%;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-type-slider .single-btn-wrap[data-sal="slide-up"] {
transform: initial;
opacity: initial;
}

/* Slider pagination - bottom centre */
.hero-slider-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slider-pagination .swiper-pagination {
    position: relative;
    bottom: 0;
    top: 0;
    text-align: center;
    display: flex;
    gap: 10px;
    width: auto;
}
.hero-slider-pagination .swiper-pagination .swiper-pagination-bullet {
    margin: 0;
    background: transparent;
    border: 2px solid var(--colour-white);
    height: 15px;
    width: 15px;
    opacity: 1;
}
.hero-slider-pagination .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: var(--colour-white);
}

.hero-block .textarea {
  color: var(--colour-white);
  margin-top: var(--gutter);
}

/* Shared transition defaults for panel items */
.hero-block.hero-type-slider [data-hero-textarea-container] [data-sal]{
  transition-property: opacity, transform;
  transition-duration: var(--sal-duration, .8s);
  transition-timing-function: var(--sal-easing, ease-out-quart);
  transition-delay: 0s;
}

/* SLIDE-UP: off state when panel is NOT "in" */
.hero-block.hero-type-slider [data-hero-textarea-container]:not(.is-in) [data-sal="slide-up"]{
  opacity: 0;         /* win against SAL's .sal-animate */
  transform: translateY(30px);
}

/* SLIDE-UP: on state when panel IS "in" */
.hero-block.hero-type-slider [data-hero-textarea-container].is-in [data-sal="slide-up"]{
  opacity: 1;
  transform: none;
}

/* FADE: off state when panel is NOT "in" */
.hero-block.hero-type-slider [data-hero-textarea-container]:not(.is-in) [data-sal|="fade"]{
  opacity: 0;
}

/* FADE: on state when panel IS "in" */
.hero-block.hero-type-slider [data-hero-textarea-container].is-in [data-sal|="fade"]{
  opacity: 1;
}


@media all and (max-width: 1280px) {
.hero-height-medium .background-image-wrap img {
  aspect-ratio: 1920 / 720;
}
}
@media all and (max-width: 1212px) {
.hero-block .video-player {
    height: calc(100vh - 84px);
    height: calc(100svh - 84px);
}
}
@media all and (max-width: 1024px) {

}
@media all and (max-width: 1023px) {
.hero-block .textarea-container {
    justify-content: flex-end;
}
/* Stronger gradient on mobile for readability */
.hero-block .textarea-container .inner-width {
    max-width: 100%;
}
.hero-block .textarea-container .inner {
    padding-bottom: calc(var(--gutter-xl) + 30px);
}
.hero-slider-pagination .swiper-pagination .swiper-pagination-bullet {
    height: 12px;
    width: 12px;
  }
.hero-slider-pagination .swiper-pagination {
    gap: 8px;
}
.hero-slider-pagination {
    bottom: 20px;
}
}
@media all and (max-width: 860px) {
.hero-block .video-player {
    height: calc(100vh - 79px);
    height: calc(100svh - 79px);
}
}
@media all and (max-width: 640px) {
.hero-height-full-screen .background-image-wrap img {
    height: 100svh;
    min-height: 400px;
}
}
@media all and (max-width: 480px) {
.hero-block .video-player {
    height: calc(100vh - 74px);
    height: calc(100svh - 74px);
}
.hero-down-pointer {
    bottom: 16px;
}
.hero-slider-pagination {
    bottom: 15px;
}
}
@media all and (max-width: 413px) {
.hero-block .video-player {
    height: calc(100vh - 69px);
    height: calc(100svh - 69px);
}
.hero-down-pointer {
    bottom: 12px;
}
}

/* ==========================================
   Letter-by-letter text reveal animation
   ========================================== */

/* Hide heading initially to prevent flash before JS animation.
   JS adds .hero-heading--animated which removes this. */
.hero-block .heading:not(.hero-heading--animated) {
    opacity: 0;
}

/* Screen reader only text - hidden visually but accessible */
.hero-block .heading .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Visual text container */
.hero-block .heading .hero-heading-visual {
    display: block;
}

/* Individual letter styling */
.hero-block .heading .hero-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: heroLetterReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Space characters need special handling */
.hero-block .heading .hero-letter--space {
    width: 0.3em;
}

/* The reveal animation */
@keyframes heroLetterReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-block .heading .hero-letter {
        animation: heroLetterRevealReduced 0.3s ease forwards;
    }
    
    @keyframes heroLetterRevealReduced {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }
}

/* Kicker - frosted glass pill */
.hero-block .kicker {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	color: var(--colour-white);
	font-size: var(--font-xs);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: var(--gutter);
	opacity: 0;
	transform: translateY(-20px);
	transition-timing-function: ease-out-quart;
	transition-timing-function: var(--sal-easing, ease-out-quart);
	transition-duration: 0.8s;
	transition-duration: var(--sal-duration, 0.8s);
	transition-property: opacity, transform;
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-block .kicker.hero-kicker--visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-block .kicker {
        transform: none;
    }
}

/* Textarea animation - hidden by default until heading completes */
.hero-block .textarea {
    opacity: 0;
    transform: translateY(30px);
    transition-timing-function: ease-out-quart;
    transition-timing-function: var(--sal-easing, ease-out-quart);
    transition-duration: 0.8s;
    transition-duration: var(--sal-duration, 0.8s);
    transition-property: opacity, transform;
}

.hero-block .textarea.hero-textarea--visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-block .textarea {
        transform: none;
    }
}

/* No-JS fallback: if JS doesn't run, show heading, kicker and textarea normally */
.no-js .hero-block .heading:not(.hero-heading--animated),
.no-js .hero-block .kicker,
.no-js .hero-block .textarea {
    opacity: 1;
    transform: none;
}