section {
    position:relative;
    isolation: isolate;
    overflow-x:clip;
    float:left;
    clear:left;
    width:100%;
}

.pad_top {
    padding-top:var(--global_padding);
}
.pad_bottom {
    padding-bottom:var(--global_padding);
}
.pad_left {
    padding-left:var(--global_padding);
}
.pad_right {
    padding-right:var(--global_padding);
}

.light-text {
    color:#fff;
}

main :is(.rs,.rslides) {
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}
  
  main :is(.rslides,.rs) > li {
    -webkit-backface-visibility: hidden;
    position: absolute;
    display: none;
    width: 100vw;
    height:100%;
    max-width:100%;
    left: 0;
    top: 0;
    padding:0;
    margin:0;
  }
  
  :is(.rslides,.rs) > li:first-child {
    position: relative;
    display: block;
    float: left;
  }
  
  .rs img {
    display: block;
    height: auto;
    float: left;
    width: 100%;
    border: 0;
    user-select: none;
  }

  .bgimg,
  main .bgrs {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    max-width:100%;
    object-fit:cover;
    object-position: center;
    z-index:0;
    padding:0;
    margin:0;
    /* mask-image:linear-gradient(90deg, rgba(0,0,0,0.1) 20%, rgba(0,0,0,1) 70%); */
  }

    .bgrs img {
        height:100%;
        object-fit: cover;
    }

.bg_size1 :is(.bgimg, main .bgrs) {
    width:50%;
    mask-image:linear-gradient(90deg, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.bg_size2 :is(.bgimg, main .bgrs) {
    width:75%;
    mask-image:linear-gradient(90deg, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.bg_size4 :is(.bgimg, main .bgrs) {
    width:50%;
    left:50%;
    mask-image:linear-gradient(270deg, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.bg_size5 :is(.bgimg, main .bgrs) {
    width:75%;
    left:25%;
    mask-image:linear-gradient(270deg, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.stylise-grey :is(.bgimg, main .bgrs) {
    filter:grayscale(1);
    opacity:0.3;
}

.hero {
    display:grid;
    align-items:center;
    background-color:#000;
    padding-inline:var(--global_padding);
}

    .hero.full-height {
        min-height:calc(100vh - 93px);
    }

    .hero .text {
        color:#fff;
        width:50%;
    }

    .hero h1 {
        font-size:3.5rem;
        font-weight:600;
        margin-bottom:1rem;
        line-height:1.1;
        text-wrap:balance;
        text-wrap:pretty;
    }

    .hero h2 {
        font-size:1.3rem;
        line-height:1.4;
        font-weight:300;
        text-wrap:pretty;
    }

.carousel-cell {
    height:75px;
    width:75px;
    margin-inline:2rem;
}

    .logo-carousel img {
        filter:grayscale(1);
        opacity:0.5;
        transition:filter 0.5s ease-in-out, opacity 0.5s ease-in-out;
    }

    .logo-carousel .carousel-cell:hover img {
        opacity:1;
        filter:grayscale(0);
    }

    .carousel-cell.wide {
        width:100px;
    }
    .carousel-cell.vwide {
        width:150px;
    }

    .carousel-cell img {
        width:100%;
        height:100%;
        object-fit: contain;
    }

.col1-text :is(p,li){
    max-width:70ch;
}

:is(p,li).align_center {
    margin-inline:auto;
}

.image {
    container-type: inline-size;
}

.two-col,
.three-col,
.four-col {
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-gap:var(--global_padding);
    align-items: center;
}

    .two-col .text h2 {
        margin-bottom:1rem;
    }

.three-col {
    grid-template-columns:repeat(3,1fr);
    grid-gap:3rem;
    align-items: top;
}

.four-col {
    grid-template-columns:repeat(4,1fr);
    grid-gap:3rem;
    align-items: top;
}

    .col {
        align-self:flex-start;
    }

    .col .image {
        height:70px;
        margin-bottom:2rem;
    }

        .col img {
            max-height:100%;
        }

        .match-height .image {
            height:100%;
        }

        .match-height .image img  {
            height:100%;
            width:100%;
            object-fit:cover;
            border-radius:0.5rem;
        }

    .col h2 {
        font-size:1.6rem;
        margin-bottom:1rem;
    }

.heading {
    grid-column: 1/-1;
    margin:0;
    text-align: center;
}

    .heading h2 {
        display:inline-block;
        position:relative;
        padding-left:1rem;
    }

    .head-only .heading h2 {
        margin:0;
    }

    .heading h2::before {
        position:absolute;
        content:url('../img/heading-dots.svg');
        width:2rem;
        height:100%;
        right:100%;
        top:0;
    }

.flip .text {
    order:1;
}

.flip .image {
    order:2;
}

:is(.flip,.flip2) .slide_from_left.run,
:is(.flip,.flip2).slide_from_left.run {
    animation-name:slide_from_right;
}
:is(.flip,.flip2) .slide_from_right.run,
:is(.flip,.flip2).slide_from_right.run {
    animation-name:slide_from_left;
}

.serv {
    position:relative;
    margin-bottom:1rem;
}

    .serv .head {
        position:Relative;
        display:grid;
        align-items:center;
        padding:5%;
        background-color:#222;
        transition:padding 0.5s ease-out;
    }

        .serv .head img {
            position:absolute;
            inset:0;
            width:100%;
            height:100%;
            object-fit:cover;
            z-indeX:0;
            opacity:0.5;
        }

        .serv .head .text {
            position:Relative;
            z-index:1;
            color:#fff;
            display:grid;
            grid-template-columns: 3rem 1fr;
            grid-gap:1rem;
            align-items: center;
        }

        .serv .head h2 {
            margin:0;
        }

    .serv .content {
        overflow-y:hidden;
        max-height:0;
        transition:max-height 0.5s ease-out;
    }

    .serv .content .text,
    .serv .content .rslides > li {
        padding:5%;
        border:1px solid #ddd;
        border-top:0;
    }

    .serv:has(.expand input:checked) .content {
        max-height:unset;
    }

.checkbox-btn {
    position:relative;
    cursor: pointer;
}

    .checkbox-btn input {
        position:absolute;
        width:100%;
        height:100%;
        inset:0;
        opacity:0;
        cursor: pointer;
    }

    .checkbox-btn p {
        text-align: center;
        font-size:1.4rem;
        margin:0;
        padding:0;
        line-height:1;
    }

    .minus {
        display:none;
    }

    .checkbox-btn:has(input:checked) .minus{
        display:block;
    }
    .checkbox-btn:has(input:checked) .plus{
        display:none;
    }

    .expand {
        background-color:var(--red);
        width:3rem;
        height:3rem;
        border-radius:100rem;
        padding:0.75rem;
        color:#fff;
    }

.mems {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    grid-gap:3rem;
    align-items: start;
}

    .mems:has(>:nth-child(3):last-child) { /* has exactly 3 children */
        grid-template-columns:repeat(3,1fr);
    }
    .mems:has(>:nth-child(4)) { /* has 4 or more children */
        grid-template-columns:repeat(4,1fr);
    }

    .tmem .image {
        width:min(100px,100%);
        margin-bottom:1rem;
    }

        .tmem .image img {
            border-radius:100%;
            filter:grayscale(1);
            opacity:0.5;
            transition:filter 0.5s ease-out,opacity 0.5s ease-out;
        }

        .tmem h2 {
            font-size:1.6rem;
            margin-bottom:0;
        }

        .tmem .role {
            color:var(--red);
            text-transform: uppercase;
            font-weight:bold;
            font-size:0.8rem;
            letter-spacing: 0.1em;
        }

        .tmem:hover .image img {
            filter:grayscale(0);
            opacity:1;
        }

.sg-wrap {
    border-block-end: 1px solid #ddd;
    min-height:5rem;
}

.sg-btn {
    display:grid;
    grid-template-columns: 1fr 6rem;
    grid-gap:1rem;
    text-decoration: none;
    align-items:center;
}

    .flip2 .sg-btn {
        grid-template-columns: 6rem 1fr;
    }

    .flip2 .sg-btn .txt {
        order:2;
    }

    .flip2 .sg-btn .exp {
        order:1;
    }

    .sg-btn .heading {
        text-align: left;
        padding-inline:0;
    }

        .flip2 .sg-btn .heading {
            text-align:right;
        }

        .sg-btn .heading h2 {
            margin:0 0 0 2rem;
        }

        .sg-btn p {
            margin:0;
        }

        .sg-btn .exp {
            display:grid;
            grid-template-columns: 1fr 3rem;
            grid-gap:0.5rem;
            align-items: center;
        }

        .exp p:first-of-type {
            opacity:0.5;
        }

    .sg-btn .arrow {
        font-size:3.5rem;
        font-weight:200;
        font-style:italic;
        margin:0;
        line-height:0.7;
        width:3rem;
        height:3rem;
        transform:rotate(0deg);
        text-align: center;
        transition:transform 0.25s ease-in-out;
    }

    .open .sg-btn .arrow {
        transform:rotate(-180deg);
    }

.sg-content {
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-gap:5vw;
    margin-block-end:5vw;
}

    .sg-content:last-of-type {
        margin-block-end:0;
    }

    .sg-content .image img {
        width:100%;
        border-radius:0.5rem;
    }

.sg-services {
    padding-block:5vw;
    display:none;
}

form {
    box-shadow:0 0.5rem 2rem #0001;
    padding:2rem;
    border-radius:0.5rem;

    & h2 {
        font-size:1.6rem;
    }

    & input,
    & textarea {
        border:none;
        outline:none;
        padding:1rem;
        border-radius:0.25rem;
    }

    & label {
        font-size:0.8rem;
        margin-bottom:0.25rem;
    }

    & label span {
        color:var(--red);
    }

    & button {
        background-color: var(--red);
        padding:0.75rem 1.5rem;
        border:none;
        outline:none;
        cursor:pointer;
        color:#fff;
        border-radius:0.25rem;

        &:hover {
            background-color:#ddd;
            color:#333;
        }
    }

    .tick {
        display: inline-block;
        background-color: var(--red);
        padding: 0.85rem;
        width: 3rem;
        height: 3rem;
        text-align: center;
        color: #fff;
        font-weight: bold;
        border-radius: 100rem;
        margin-right: 1rem;
    }

}

.dls {
    margin-top:2rem;
}

    .dl {
        display:grid;
        grid-template-columns: 2.5rem 1fr 3rem;
        grid-gap:1rem;
        padding-bottom:1rem;
        margin-bottom:1rem;
        border-bottom:1px dotted #aaa;
        align-items: center;

        & h3 {
            font-size:1.6rem;
            margin:0;
        }

        & p {
            margin:0;
        }

        & .dl-btn {
            display:block;
            background-color:var(--red);
            width:100%;
            aspect-ratio: 1;
            text-align: center;
            font-size:2rem;
            color:#fff;

            &:hover {
                background-color:#ddd;
                color:#333;
            }
        }
    }

/* .np,
.np * {
    opacity:0.75;
    pointer-events: none;
    user-select: none;
    filter:grayscale(1);
} */

.rslides_tabs,
.content .rslides {
    float:left;
    clear:left;
    width:100%;
}

.rslides :is(ul,ol) {
    list-style-image: url('../img/bullet.svg');
}

.rslides_tabs {
    list-style: none;
    padding:0;
    margin:1rem 0;

    & li {
        float:left;
        clear:none;
        margin:0 0.25rem 0;
        padding-left:0;
        
        & a {
            float:left;
            text-decoration: none;
            padding:0.75rem 1rem;
            border:1px solid var(--red);
            background-color:#fff;
            transition:all 0.5s ease;
        }

        &.rslides_here a,
        & a:hover {
            background-color:var(--red);
            color:#fff;
        }
    }
}

@media screen and (max-width:1300px) {
    section .wrap {
        padding-inline:0;
    }

    .hero h1:only-child {
        margin:0;
    }
}

@media screen and (max-width:900px) {
    .two-col,
    .sg-content,
    .three-col {
        grid-template-columns: 1fr;

        & .text {
            order:-1;
        }
    }

    :is(.bg_size1,.bg_size2,.bg_size4,.bg_size5) :is(.bgimg, main .bgrs) {
        width:100%;
    }

    .four-col {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width:700px) {

    .hero {
        min-height:30vh;
    }

    .hero h1 {
        font-size:2.5rem;
        text-shadow:0 0 2rem #000;
    }

    .hero h2 {
        text-shadow:0 0 1rem #000;
    }

    .hero .text {
        width:75%;
    }

    main h2 {
        font-size:1.8rem;
    }

    .heading h2 {
        max-width:calc(100% - 3rem);
    }

    .sg-btn .heading h2 {
        font-size:1.5rem;
        margin: 0 0 0 1.5rem;
    }

    .heading h2:before {
        width:1.5rem;
    }

    .serv .head h2 {
        font-size: 1.5rem;
    }

    .serv .head img {
        opacity:0.3;
    }

    .dl {
        grid-template-columns: 2rem 1fr 2.5rem;

        & h3 {
            font-size:1.3rem;
        }

        & .dl-btn {
            line-height: 1;
        }
    }

    .dl:has(p){
        align-items: start;
    }
}

@media screen and (max-width:500px){

    .hero h1 {
        font-size:2rem;
    }

    .hero h2 {
        font-size:1rem;
    }

    .four-col {
        grid-template-columns: 1fr;
    }

    .logos .heading {
        float:left;
        clear:left;
        width:100%;
        padding-inline:var(--global_padding);
    }

    .heading h2 {
        float:left;
        text-align:left;
        margin-left:1.5rem;
    }

    .downloads p {
        clear:left;
        text-align: left;
    }

    .pad_top {
        padding-block-start:3rem;
    }

    .pad_bottom {
        padding-block-end:3rem;
    }

}

@media screen and (max-width:400px) {
    .hero .text {
        width:100%;
    }
}