/* ------------------------------------------------------------------ *
 * Home page hero — dot-grid banner animation (see js/gridBanner.js)
 * Dark background with a faint dot grid + animated orthogonal lines.
 * ------------------------------------------------------------------ */

#home_section.frontSec1 {
    background: #0c0d12;                 /* dark backdrop behind the canvas */
}

/* Full-bleed animated canvas, painted behind the slide text */
#home_section .grid_canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    background: #0c0d12;
    pointer-events: none;
}

/* The old mouse-parallax particle layer would clash with the grid */
#home_section .particle_wrap {
    display: none;
}

/* Let the canvas show through the slides (default .slide has a black bg) */
.slide.gridSlide {
    background: transparent;
}

/* Keep the slide text/buttons above the canvas */
#home_section .header_content {
    position: relative;
    z-index: 1;
}

/* ------------------------------------------------------------------ *
 * Hero slider — manual navigation (arrows, dots, swipe)
 *
 * main.css animates the hero forward only (showSlide / hideSlide), so a
 * "previous" step had nowhere to come from. These rules replace those
 * keyframes for the grid banner with a mirrored pair, plus a settled
 * state that carries no animation — parking the visible slide there
 * means later class changes can never restart a transition mid-view.
 * ------------------------------------------------------------------ */

@keyframes gridSlideInRight  { from { left: 100%; }  to { left: 0; } }
@keyframes gridSlideInLeft   { from { left: -100%; } to { left: 0; } }
@keyframes gridSlideOutLeft  { from { left: 0; } to { left: -100%; } }
@keyframes gridSlideOutRight { from { left: 0; } to { left: 100%; } }

/* Parked off-screen to the right, waiting its turn */
#home_section .slide.gridSlide {
    animation: none;
    left: 100%;
}
#home_section .slide.gridSlide.active_slide {
    animation: gridSlideInRight 0.8s forwards;
}
#home_section .slide.gridSlide.active_slide.go_back {
    animation: gridSlideInLeft 0.8s forwards;
}
#home_section .slide.gridSlide.hide_slide {
    animation: gridSlideOutLeft 0.8s forwards;
}
#home_section .slide.gridSlide.hide_slide.go_back {
    animation: gridSlideOutRight 0.8s forwards;
}
/* Settled last so it wins over the in/out rules above */
#home_section .slide.gridSlide.active_slide.slide_settled,
#home_section .slide.gridSlide.active_slide.slide_settled.go_back {
    animation: none;
    left: 0;
}

/* Arrows sit against the hero edges, vertically centred on the slide */
.banner_arrow {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: none;
    opacity: 0.35;                       /* sits quietly over the slide */
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: opacity 0.25s;
}

.banner_arrow:hover {
    opacity: 0.85;
}

.banner_arrow::before {                  /* chevron drawn from two borders */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.banner_next {
    right: 30px;
}

.banner_next::before {
    -webkit-transform: translate(-65%, -50%) rotate(45deg);
    transform: translate(-65%, -50%) rotate(45deg);
}

.banner_prev {
    left: 30px;
}

.banner_prev::before {
    -webkit-transform: translate(-35%, -50%) rotate(-135deg);
    transform: translate(-35%, -50%) rotate(-135deg);
}

@media only screen and (max-width: 768px) {
    .banner_arrow {
        width: 36px;
        height: 36px;
    }
    .banner_next {
        right: 12px;
    }
    .banner_prev {
        left: 12px;
    }
}
