


/* VARS ----------------------------------------------- */

    :root {
        /* COLOURS (all themes) */
        --colour-black: #000;
        --colour-white: #fff;
        --colour-indigo: #181B34;
        --colour-offwhite: #EBEDF1;
        --colour-mint: #7FE5B1;
        --colour-mint-dk: #365E55;
        --colour-grey-lt: #D8DBEC;
        --colour-red: #FF7575;

    

        /* theme */
        --colour-background: var(--colour-indigo);
        --colour-foreground: var(--colour-offwhite);
        --colour-accent1: var(--colour-mint);
        --colour-accent2: var(--colour-mint-dk);
        --colour-link: var(--colour-mint);
        --colour-link-hover: var(--colour-offwhite);
        --colour-header-link: var(--colour-mint);
        --colour-header-link-hover: var(--colour-mint);
        --colour-footer-link: var(--colour-offwhite);
        --colour-footer-link-hover: var(--colour-mint);
        --colour-mobile-menu: var(--colour-mint);
        --focus-ring-color: var(--colour-red);
    }



    :root:not(.no-anim) { transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out; }
    :root { background-color: var(--colour-background); color: var(--colour-foreground); }

    /* other manual dark theme overrides */
    /*:root[data-theme="dark"] header { background: red; }*/



    :root {
        --body-font: 'Manrope', sans-serif;
        --headline-font: 'Red Hat Display', sans-serif;

        /* 8px Grid (1rem = 16px) */
        --space-2xs: 0.25rem;  /*  4px */
        --space-xs:  0.5rem;   /*  8px */
        --space-sm:  0.75rem;  /* 12px */
        --space-md:  1rem;     /* 16px */
        --space-lg:  1.5rem;   /* 24px */
        --space-xl:  2rem;     /* 32px */
        --space-2xl: 3rem;     /* 48px */
        --space-3xl: 4rem;     /* 64px */
        --space-4xl: 5rem;     /* 80px */

        /* font sizes */
        --fontsize-sm:  0.875rem;                        /* 14px */
        --fontsize-md:  1.0rem;                          /* 16px default body text mobile */
        --fontsize-lg:  1.125rem;                        /* 18px default body text desktop */
        --fontsize-xl:  clamp(1.20rem, 2.81vw, 1.4rem);  /* 22px-19px H4 */
        --fontsize-2xl: clamp(1.25rem, 3.81vw, 2.0rem);  /* 32px-20px H3 */
        --fontsize-3xl: clamp(1.37rem, 4.76vw, 2.375rem);/* 38px-22px H2 */
        --fontsize-4xl: clamp(1.6rem, 5.72vw, 3.0rem);   /* 48px-25px H1 */
        --fontsize-bq:  clamp(1.25rem, 3.0vw, 1.70rem);  /* Blockquotes */
        
        --line-height-tight: 1.2;                        /* Headings */
        --line-height-base:  1.5;                        /* Body text */
        
        /* block sizes */
        --theWidth: 1450px;                             /* width of widest content, also edit responsive section */
        --block-medium: 940px;                          /* med width block about 75% of theWidth */
        --block-narrow: 625px;                          /* narrow blocks (mainly for text) about 50% of theWidth */
        --gutters: var(--space-lg);                     /* left + right content padding on main, header, footer, width-full */
        --min-col-width: 350px;                         /* min width of a column in a group */
    }


/* FONTS FOR THIS SITE -------------------------------- */

    @font-face {
      font-display: swap;
      font-family: 'Red Hat Display';
      font-style: normal;
      font-weight: 400;
      src: url('/fonts/red-hat-display-v21-latin-regular.woff2') format('woff2');
    }

    @font-face {
      font-display:
      font-family: 'Red Hat Display';
      font-style: normal;
      font-weight: 600;
      src: url('/fonts/red-hat-display-v21-latin-600.woff2') format('woff2');
    }

    @font-face {
      font-display: swap;
      font-family: 'Red Hat Display';
      font-style: normal;
      font-weight: 700;
      src: url('/fonts/red-hat-display-v21-latin-700.woff2') format('woff2');
    }


    @font-face {
      font-display: swap;
      font-family: 'Manrope';
      font-style: normal;
      font-weight: 400;
      src: url('/fonts/manrope-v20-latin-regular.woff2') format('woff2');
    }

    @font-face {
      font-display: swap;
      font-family: 'Manrope';
      font-style: normal;
      font-weight: 600;
      src: url('/fonts/manrope-v20-latin-600.woff2') format('woff2');
    }

    @font-face {
      font-display: swap;
      font-family: 'Manrope';
      font-style: normal;
      font-weight: 700;
      src: url('/fonts/manrope-v20-latin-700.woff2') format('woff2');
    }


/* COLOURS -------------------------------------------- */

	.c-black, .bull-black li::marker { color: var(--colour-black); }
    .c-white, .bull-white li::marker {color: var(--colour-white); }
    .c-grey-lt, .bull-grey-lt li::marker {color: var(--colour-grey-lt); }
    .c-indigo,
    .c-background, .bull-background li::marker { color: var(--colour-background); }
    .c-foreground, .bull-foreground li::marker { color: var(--colour-foreground); }
    .c-accent1, .bull-accent1 li::marker { color: var(--colour-accent1); }
    .c-accent2, .bull-accent2 li::marker { color: var(--colour-accent2); }
    .c-red, .bull-red li::marker { color: var(--colour-red); }

	.bg-black { background-color: var(--colour-black); }
    .bg-white {background-color: var(--colour-white); }
    .bg-grey-lt {background-color: var(--colour-grey-lt); }
    .bg-indigo,
    .bg-background { background-color: var(--colour-background); }
    .bg-foreground { background-color: var(--colour-foreground); }
    .bg-accent1 { background-color: var(--colour-accent1); }
    .bg-accent2 { background-color: var(--colour-accent2); }
    .bg-red { background-color: var(--colour-red); }

	.border-black { border-color: var(--colour-black); }
    .border-white { border-color: var(--colour-white); }
    .border-grey-lt { border-color: var(--colour-grey-lt); }
    .border-background { border-color: var(--colour-background); }
    .border-foreground { border-color: var(--colour-foreground); }
    .border-accent1 { border-color: var(--colour-accent1); }
    .border-accent2 { border-color: var(--colour-accent2); }
    .border-red { border-color: var(--colour-red); }


/* BASIC --------------------------------------------- */

    /* Box sizing rule for easier sizing calculations */
    *, *::before, *::after { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }

    /* Make responsive media display predictably */
    img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }


    html, body { height: auto; width: 100%; }
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
    body { min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
        display: flex; flex-direction: column; margin: 0; 
    }

/* Default Body Font and Text Colour */
    body, select, input, button, textarea { font-family: var(--body-font); font-weight: 400; font-size: var(--fontsize-lg); }
    select, input, textarea, li { color: inherit; }
    hr { border: none; color: inherit; border-top: 2px solid currentColor; opacity: 0.66; }
    hr.half { width: 50%; margin-inline: auto; }

/* accessibility */
    button:focus-visible,
    summary:focus-visible,
    a:focus-visible,
    textarea:focus-visible,
    input:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 2px; }
    dialog:focus { outline: none; } /* Safari ios fix */

    .skip-link.button {
      position: absolute; z-index: 9999; transform: translateY(-250%);
      background: var(--colour-background); color: var(--colour-foreground); border-color: var(--colour-foreground);
    }
    .skip-link.button:focus-visible { transform: translate(0px, 50px); }    
    @media (prefers-reduced-motion: reduce) {
        html,body { scroll-behavior: auto; }
        .marquee-group { animation: none !important; transform: translate(0) !important; }
        .marquee-group[aria-hidden="true"] { display: none; } /* hide dupes */
        #menu-main-mobile li,
        #mobile-menu-wrap { transition: none !important; }
    }


/* HEADER --------------------------------------------- */

    header { padding-inline: var(--gutters); }
    header > .content-wrapper { width: var(--theWidth); margin-inline: auto; }
    .theme-icon { background: none; border: none; padding: 0; }
    .theme-icon svg { height: 20px; width: auto; margin-left: auto; cursor: pointer; stroke: none; fill: var(--colour-header-link); }
    .theme-icon svg:hover { fill: var(--colour-header-link-hover); }
    .tagline { font-weight: 600; }

    .logo-wrapper { display: flex; position: absolute; left: 50%; height: 100%; transform: translateX(-50%); }
    .logo-wrapper a,
    .logo-wrapper img { width: auto; height: 100%; }


/* MAIN MENU ------------------------------------------ */

    .menu-main-container { width: 100%; transition: none; transform: none; position: relative; }
    #menu-main { display: flex; flex-flow: row nowrap; position: relative; z-index: 1200; width: 100%; height: 130px; gap: var(--space-xl); list-style-type: none; text-transform: uppercase; font-size: var(--fontsize-md); font-weight: 600; }
    #menu-main li:nth-child(1n):not(.logo-wrapper) { padding-top: 2.25rem; }
    #menu-main li:nth-child(2) { margin-left: 0;}
    #menu-main li:nth-child(3) {}
    #menu-main li:nth-child(4) { margin-left: auto; }
    #menu-main li a { color: var(--colour-header-link); padding-block-end: var(--space-2xs); border-bottom: 2px solid transparent; }
    #menu-main li:not(.logo-wrapper) a[aria-current="page"],
    #menu-main li:not(.logo-wrapper) a:hover { color: var(--colour-header-link-hover); border-bottom: 2px solid currentColor; }

    .menu-icons { display: none; flex-flow: column; gap: var(--space-md); }
    .menuicon-wrapper { border: none; background: none; display: flex; align-items: flex-start; padding: 0; }
    .menuicon-wrapper > span.bars-wrapper { cursor: pointer; transition: all 0.33s ease;
     display: flex; flex-flow: row nowrap; gap: var(--space-sm); align-items: center; }
    .menuicon-wrapper span.menu-text { color: var(--colour-header-link); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15rem; }
    .menuicon-wrapper .bars { position: relative; top: 0; width: 26px; height: 21px; display: flex; flex-flow: column wrap; justify-content: space-between; }
    .menuicon-wrapper .bar { width: 100%; height: 2px; transition: transform 0.25s linear; transform-origin: left; background-color: var(--colour-header-link); }
    .menuicon-wrapper .bar.mid { transition: opacity 0.2s linear; }
    .menuicon-wrapper:hover .bar { background-color: var(--colour-header-link-hover); }
    .menuicon-wrapper:hover span { color: var(--colour-header-link-hover); }

    #mobile-menu-wrap { transform: translateX(-200vw); display: none;
    width: 100vw; left: calc(0px - var(--space-md)); position: absolute; top: 90px; z-index: 1000;
    background: var(--colour-accent1); }
    #menu-main-mobile { display: flex; flex-flow: row nowrap; gap: var(--space-lg); justify-content: center; }


/* FOOTER --------------------------------------------- */

    footer { padding-inline: var(--gutters); background-image:url('/media/bg-pattern.webp');background-size: 150px; }
    footer > .content-wrapper { width: var(--theWidth); margin-inline: auto; }
    footer .content-wrapper { align-items: flex-start; }
    footer .logo-footer { height: 90px; width: auto; }
    .footer-socials { margin-inline-start: auto; }
    .footer-socials li a { display: inline-flex; }
    footer ul svg { height: 28px; width: auto; fill: var(--colour-header-link); }
    .footer-socials li a:hover svg { fill: var(--colour-header-link-hover); }
    footer li a { color: var(--colour-header-link); border-bottom: 2px solid transparent; padding-block-end: var(--space-2xs); }
    footer li a:hover { color: var(--colour-header-link-hover); border-bottom: 2px solid currentColor; }
    .footer-last-row { flex: 1 1 100%; display: flex; flex-flow: row nowrap; justify-content: space-between; }
    .footer-last-row p img { height: 1.25rem; width: auto; }
    
    
    
/* OTHER ---------------------------------------------- */

    .toplink { position: fixed; z-index: 500; right: 0; bottom: 3rem; background: var(--colour-foreground); transition: transform 0.3s ease, visibility 0s 0.3s linear; transform: translateX(100px); opacity: 0.66; visibility: hidden; }
    .toplink a { display: block; padding: var(--space-xs); }
    .toplink svg { max-width: var(--space-lg); height: auto; }
    .toplink.show { transform: translateX(0); visibility: visible; transition: transform 0.3s ease, visibility 0s linear; }

    dialog::backdrop,
    #overlay { background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
    #overlay { display: none; height: 100%; opacity: 0; transition: opacity 0.5s ease, display 0.5s ease; transition-behavior: allow-discrete; }
    #overlay, #modal { position: fixed; z-index: 750; top: 0; left: 0; width: 100%; }
    #modal.show { display: flex; }

    #modal { max-width: max(350px, calc(var(--theWidth) / 2)); height: fit-content; max-height: 75vh; flex-flow: column nowrap;inset: 0; margin: auto; box-shadow: 0px 0px var(--space-xl) var(--colour-black); border: 1px solid var(--colour-black); }
    #modal[open] { display: flex; }
    .modal-open { cursor: pointer; }
    .modal-close-wrap { flex-shrink: 0; align-self: flex-end; }
    .modal-close { border: none; background: none; cursor: pointer; }
    .modal-close svg { width: var(--space-xl); height: var(--space-xl); }
    .modal-inner { overflow-y: auto; -webkit-overflow-scrolling: touch; }
    html:has(dialog[open]),
    body:has(dialog[open]) { overflow: hidden; }


    .accordion-header {
        display: flex; justify-content: space-between; gap: var(--space-md);
        align-items: center; padding: var(--space-md);
        cursor: pointer; font-weight: 600; list-style: none;
    }
    .accordion-header::-webkit-details-marker { display: none; }
    .accordion-item[open] .accordion-content { padding: 0 var(--space-md) var(--space-md); }
    .accordion-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; transition: transform 0.3s ease-out; }
    .accordion-item[open] .accordion-icon { transform: rotate(45deg); }

    .marquee { display: flex; flex-direction: row; width: 100%; overflow: hidden;
        /*max-width: 1920px; margin-inline: auto;*/ }
    .marquee:hover .marquee-group { animation-play-state: paused; }
    .marquee-group { 
        animation: marquee var(--marquee-duration) linear reverse infinite; 
        display: flex; flex: none; flex-direction: row; align-items: center;
        will-change: transform; 
    }


/* CAROUSELS ------------------------------------------ */

    /*
    can have no pagination, dots and arrows, dots or arrows
    (add .has-dots and/or .has-arrows to .swiper
    add captions except for dots
    */

    .swiper { margin: 0 auto var(--marginVert); position: relative; overflow: hidden; padding: 0; z-index: 1; width: 100%; 
        max-width: 2500px; margin-inline: auto; }
    .swiper.has-dots,
    .swiper.has-arrows { padding-block-end: var(--space-sm); }
    .swiper.has-border { padding-block-end: 0; }

    .swiper .swiper-wrapper
     { position: relative; width: 100%; z-index: 1; display: flex; transition-property: transform;
        box-sizing: content-box; align-items: flex-start; }

    .swiper-slide { width: 100%; height: auto; position: relative; flex-shrink: 0; display: flex; flex-flow: row wrap; margin-bottom: 0; cursor: ew-resize; }
    .swiper-slide img { width: 100%; height: auto; }


    .swiper-buttons button { width: 2.5rem; height: 2.5rem; cursor: pointer; position: relative; padding: 0; }
    .swiper-buttons button.swiper-none { opacity: 0.5; pointer-events: none; }
    .swiper-buttons button.swiper-prev { transform: rotate(180deg); }
    .swiper-notification { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; z-index: -1000; }


/* HEADER + FOOTER RESPONSIVE -------------------------------------------------- */


    /* this breakpoint = theWidth + h. padding  */
    @media only screen and (max-width: 1500px) {
        :root {
            --theWidth: 100%;
        }

    }



    @media only screen and (max-width : 899px) {
        :root {
            --space-lg:  1.25rem;  /* 28px */
            --space-xl:  1.5rem;  /* 28px */
            --space-2xl: 1.75rem;     /* 32px */
            --space-3xl: 2.5rem;     /* 48px */
            --space-4xl: 3rem;     /* 64px */
        }
        
        footer .content-wrapper { flex-flow: column wrap; }
        .footer-socials { margin-inline-start: 0; }
        .footer-last-row { flex-flow: column; gap: var(--space-md); }
    }



    @media only screen and (max-width : 699px) {
        body, select, input, button { font-size: var(--fontsize-md); }
        #menu-main { height: 90px; }
        .home h1 br { display: none; }
        
    /* MOBILE MENU */
        .menu-icons { position: absolute; display: flex; flex-flow: row nowrap; margin-left: auto; z-index: 1250; }
        .menu-main-container { display: flex; flex-flow: column; }
        #menu-main { gap: 0; }
        #menu-main li:nth-child(1n):not(.logo-wrapper) { padding-top: 0; font-size: 0.75rem; letter-spacing: 0.15rem; }
        #menu-main li:nth-child(1),
        #menu-main li:nth-child(2),
        #menu-main li:nth-child(4) { display: none; }
        #menu-main li:nth-child(5) { margin-left: auto; height: 23px; display: flex; flex-flow: column; justify-content: center; }
        #menu-main li a { padding-block-end: 0; }
        .logo-wrapper { transition: all 0.25s linear; transition-delay: 0.3s; }

        #mobile-menu-wrap { display: block; transition: transform 0.3s ease-in-out; transition-delay: 0.3s; }
        #menu-main-mobile li { font-size: 0.75rem; letter-spacing: 0.15rem; font-weight: 700; text-transform: uppercase; transition: transform 0.3s 0.2s ease-in-out; transform: translateX(-100vw); }
        #menu-main-mobile a { color: var(--colour-background); }
        #menu-main-mobile a img { width: 120px; padding-block-start: var(--space-2xs); }

        /* main menu visible */
        html.menushow  { overflow: hidden; }
        html.menushow body { overflow: auto; }
        .menushow .logo-wrapper { height: 70px; transition-delay: 0s; }
        .menushow .bar.top { transform: rotate(45deg); }
        .menushow .bar.bot { transform: rotate(-45deg); }
        .menushow .bar.mid { opacity: 0; }
        .menushow #menu-main { gap: var(--space-xl); }
        .menushow #mobile-menu-wrap { transform: translateX(0); transition-delay: 0s; }
        .menushow #menu-main-mobile li { transform: translateX(0); }
        .menushow #menu-main-mobile li:nth-child(1) { transition-delay: 0.4s; }
        .menushow #menu-main-mobile li:nth-child(2) { transition-delay: 0.3s; }
        .menushow #overlay.show { display: block; opacity: 1; 
            @starting-style { opacity: 0; }
        }
    /* MOBILE MENU */
    }    

    @media only screen and (max-width : 599px) {  }









/* THIS SITE ------------------------------------------------------------------- */






/* TYPOGRAPHY ------------------------------------------ */

    body { letter-spacing: 0.05rem; line-height: var(--line-height-base); }

    h1, h2, h3, h4, h5, h6 { font-family: var(--headline-font); line-height: var(--line-height-tight); font-weight: 700; }
    h1, .h1 { font-size: var(--fontsize-4xl); }
    h2, .h2 { font-size: var(--fontsize-3xl); }
    h3, .h3 { font-size: var(--fontsize-2xl); }
    h4, .h4 { font-size: var(--fontsize-xl);  }
    h5, .h5 { font-size: var(--fontsize-lg);  }
    .h1, .h2, .h3, .h4, .h5 { font-family: var(--body-font); line-height: var(--line-height-base); }
    
    .font-small { font-size: var(--fontsize-sm); }
    p, li, th, td, label, select {  }
    cite,
    address { font-style: normal; }

    .not-bold { font-weight: 400; }
    
    .text-centre { text-align: center; }
    .text-upper { text-transform: uppercase; }
    
    .tab { position: relative; margin-bottom: var(--space-xl); }
    .tab:after { content: ""; height: 3px; background: var(--colour-accent1); width: clamp(40px, 5.95vw, 50px);
    position: absolute; bottom: -19px; left: 0; }
    
    .sub-head { align-self: flex-start; font-size: var(--fontsize-sm); font-weight: bold; text-transform: uppercase; padding: var(--space-xs) var(--space-md); }

    blockquote { }
    blockquote p { position: relative; padding-left: var(--space-xl); font-size: var(--fontsize-bq); }
    blockquote p:before { content: ""; width: 3px; height: calc((var(--fontsize-bq) * 1.5) * 1); background: var(--colour-accent1); position: absolute; top: 0; left: 0;}
    

/* LINKS ----------------------------------------------- */

    a { color: var(--colour-link); text-decoration: none; }
    main a:not(.button) { font-weight: 600; }
    main a:not(.button):hover { color: var(--colour-link-hover); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15rem; }
    a img { border: none; }

    .bg-accent1 a,
    .bg-grey-lt a { color: var(--colour-background); }
    

/* LISTS --------------------------------------- */

    ul, ol { margin-block: 0; padding-inline-start: 0; list-style: none; }
    ol { list-style: decimal; }
    li { margin-block: 0; padding-inline: 0; }

    .bullets { list-style: disc; padding-inline-start: var(--space-lg); }
    .tags { display: inline-flex; flex-flow: row wrap; }
    .tags li { color: var(--colour-foreground); border: 2px solid var(--colour-foreground); padding: var(--space-sm); text-transform: uppercase; width: fit-content; flex: 0 0 auto}
    /*.tags li a { text-decoration: none; }
    .tags li:hover { color: var(--colour-background); background: var(--colour-accent1); }*/
    
    

/* IMAGES AND BACKGROUNDS ----------------------------- */

    .cover { width: 100%; height: 100%; object-fit: cover; object-position: center; }
    .pos-left { object-position: left; }
    .pos-right { object-position: right; }


    .video-container { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
    .video-container iframe,
    .video-container video { width: 100%; height: 100%; border: 0; object-fit: cover; }    
    

/* CONTAINERS + SPACING ------------------------------- */

    main { flex: 1; }

    main .content-wrapper:not(.width-restrict) > *:not(.width-full, .width-restrict) { width: var(--theWidth); margin-inline: auto; position: relative; }

    .width-large { max-width: var(--theWidth); }
    .width-medium { max-width: var(--block-medium); }
    .width-narrow { max-width: var(--block-narrow); }
    .width-full {  }
    .width-restrict,
    .width-restrict { margin-inline: calc((100% - var(--theWidth)) / 2); }


    main,
    .block-col { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; }
    .block-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0; }
    .grid { display: grid; grid-template-columns: 1fr; }

    .block-col.centre { align-items: center; }
    .block-row.centre { justify-content: center; }
    .block-col.block-h-centre,
    .block-row.block-h-centre { margin-inline: auto; }
        
    /* Flexbox & Grid Gaps */
    .gap-2xs { gap: var(--space-2xs); }
    .gap-xs { gap: var(--space-xs); }
    .gap-sm { gap: var(--space-sm); }
    .gap-md { gap: var(--space-md); }
    .gap-lg { gap: var(--space-lg); }
    .gap-xl { gap: var(--space-xl); }
    .gap-2xl { gap: var(--space-2xl); }
    .gap-3xl { gap: var(--space-3xl); }
    .gap-4xl { gap: var(--space-4xl); }

    /* grid cols */
    .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
    .grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
    .grid.cols-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min-col-width)), 1fr)); }

    /* flexbox cols */
    .block-row.cols-2 { align-items: stretch; }
    .block-row.cols-2 > * { flex: 1 1 var(--min-col-width); }
    .block-row.cols-2.order-reverse { flex-wrap: wrap-reverse; }

    .self-centre { align-self: center; }

    /* Vertical Margin */
    .mt-xl { margin-block-start: var(--space-xl); }
    .mt-2xl { margin-block-start: var(--space-2xl); }
    .mt-3xl { margin-block-start: var(--space-3xl); }

    .mb-xs { margin-block-end: var(--space-xs); }
    .mb-sm { margin-block-end: var(--space-sm); }
    .mb-md { margin-block-end: var(--space-md); }
    .mb-lg { margin-block-end: var(--space-lg); }
    .mb-xl { margin-block-end: var(--space-xl); }
    .mb-2xl { margin-block-end: var(--space-2xl); }
    .mb-3xl { margin-block-end: var(--space-3xl); }
    .mb-4xl { margin-block-end: var(--space-4xl); }
    
    .my-xl { margin-block: var(--space-xl); }
    .my-2xl { margin-block: var(--space-2xl); }
    .my-3xl { margin-block: var(--space-3xl); }
    .my-4xl { margin-block: var(--space-4xl); }

    /* Horizontal Padding */
    .px-md { padding-inline: var(--space-md); } /* 16px */
    .px-lg { padding-inline: var(--space-lg); } /* 24px */
    .px-xl { padding-inline: var(--space-xl); } /* 32px */

    /* Vertical Padding */
    .py-md { padding-block: var(--space-md); }
    .py-lg { padding-block: var(--space-lg); }
    .py-xl { padding-block: var(--space-xl); }
    .py-2xl { padding-block: var(--space-2xl); }
    .py-3xl { padding-block: var(--space-3xl); }
    .py-4xl { padding-block: var(--space-4xl); }

    /* all sides padding */
    .p-sm { padding: var(--space-sm); }
    .p-md { padding: var(--space-md); }
    .p-lg { padding: var(--space-lg); }
    .p-xl { padding: var(--space-xl); }

    .centre-v { justify-content: center; }

    .flex1 { flex: 1; }
    
    .prose :is(h2, h3, h4, h5, h6) { margin-block-start: var(--space-lg); }


/* ITEMS ---------------------------------------------- */

    .button { background: none; color: var(--colour-link); font-family: var(--headline-font); font-weight: 700; 
        border: 2px solid var(--colour-link); padding: var(--space-xs) var(--space-md); width: fit-content;
        display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); cursor: pointer;
        text-transform: uppercase; line-height: normal; position: relative; transition: all 0.33s ease-in-out;
    }
    .button:after { content: ""; height: 15px; width: 24px;
        background-color: var(--colour-mint); transition: background-color 0.3s ease;
        mask: url("/media/arrow-right.svg") center / contain no-repeat;
        -webkit-mask: url("/media/arrow-right.svg") center / contain no-repeat;
    }
    .button:hover { background: var(--colour-link); color: var(--colour-background); }
    .button.solid { }
    .button:hover:after { background-color: var(--colour-indigo); }

    #what-we-do { display: flex; flex-flow: row nowrap; }
    #what-we-do > div { flex: 1; background-size: 90px; background-position: right top; background-repeat: no-repeat; }
    #what-we-do > div:nth-child(1) { background-image: url('/media/bg-touch.png'); }
    #what-we-do > div:nth-child(2) { background-image: url('/media/bg-circuit.png'); }
    #what-we-do > div:nth-child(3) { background-image: url('/media/bg-physical.png'); }

   
    .portrait-only { display: none; }
    

    .contact-icons svg { width: 30px; height: 30px; fill: var(--colour-background); background: var(--colour-offwhite); padding: 4px; }


/* FORMS -------------------------------------------------- */

    #form_contact input,
    #form_contact textarea { background: none; border: none; }
    #form_contact input::placeholder,
    #form_contact textarea::placeholder { color: var(--colour-offwhite); opacity: 0.66; }
    #form_contact textarea:focus-visible,
    #form_contact input:focus-visible { outline: 2px solid var(--colour-accent1); }
    .check,
    #form_contact label { font-weight: bold; display: flex; align-items: center; gap: var(--space-sm); }
    #form_contact label svg { fill: var(--colour-offwhite); opacity: 0.66; }
    
    .check svg { fill: var(--colour-red); }
    .check.hide,
    #form_success.hide { display: none; }
    #form_success p { display: flex; align-items: center; gap: var(--space-md); }
    #form_success svg { fill: var(--colour-mint); }
    .form-block { border: 2px solid transparent; }
    .form-block.error { border: 2px solid var(--colour-red); }
    

/* CAROUSELS ---------------------------------------------- */

    #swiper-home { background-image: url(/media/bg-pattern.webp); background-size: 150px auto; }
    #swiper-home .swiper-slide { height: clamp(300px, 50vh, 600px); width: auto; align-items: center; justify-content: center; }
    #swiper-home .swiper-slide a { width: auto; height: 100%; display: flex; align-items: center; }
    #swiper-home .swiper-slide img,
    #swiper-home .swiper-slide video { width: auto; height: 100%; pointer-events: none; }
    #swiper-home .swiper-slide.landscape img,
    #swiper-home .swiper-slide.landscape video,
    #swiper-home .swiper-slide.square img { width: auto; height: 75%; }
    #swiper-home::after {
      content: ''; z-index: 2; pointer-events: none; 
      position: absolute; top: 0; right: 0; bottom: 0; width: 24px;
      background: linear-gradient(to right, transparent, var(--colour-background));
    }    
    #swiper-home .swiper-slide .mobile { display: none; }
    
    #swiper-work { width: calc(100vw - ((100vw - var(--theWidth)) / 2)); margin-left: calc((100vw - var(--theWidth)) / 2); overflow: visible; }
    #swiper-work .swiper-wrapper { align-items: stretch; }
    #swiper-work .swiper-slide { width: 300px; }
    #swiper-work .swiper-slide figure { display: flex; flex-flow: column; }
    #swiper-work .swiper-slide img { width: 100%; height: auto; }
    #swiper-work figcaption { background: var(--colour-accent2); padding: var(--space-sm); font-size: var(--fontsize-md); display: flex; flex: 1; }
    
    
/* PAGES ---------------------------------------------- */


/* ANIMATIONS ----------------------------------------- */

    .swiper-button.swiper-next { animation: arrowPulseRight 0.5s ease infinite alternate; }
    @keyframes arrowPulseRight {
        0% { transform: translateX(0); }
        100% { transform: translateX(0.25rem); }
    }

    @keyframes marquee {
        0% { transform: translate(0); }
        100% { transform: translate(-100%); }
    }

    .no-transition { transition: none !important; }

    [data-id="002"] { opacity: 0; transform: translateY(100px); transition: all 0.5s ease-in; transform-origin: center; }
    [data-id="002"].apply { opacity: 1; transform: translateX(0); }
    #expertise > figure:nth-child(2),
    #what-we-do > div:nth-child(2) { transition-delay: 0.25s; }
    #expertise > figure:nth-child(3),
    #what-we-do > div:nth-child(3) { transition-delay: 0.5s; }



    #swiper-home { opacity: 0; animation: home-swiper 0.66s ease-in forwards; }
    @keyframes home-swiper {
        0% { transform: translateX(75vw); }
        100% { transform: translateX(0vw); opacity: 1; }
    }





/* THIS SITE RESPONSIVE -------------------------------------------------------- */

/* this breakpoint = theWidth + h. padding  */
@media only screen and (max-width : 1500px) {
    main .content-wrapper.width-restrict > *,
    main .content-wrapper:not(.width-restrict) > *:not(.width-full) { width: auto; margin-inline: var(--gutters); }
    /*.width-full .content-wrapper { padding-inline: var(--gutters); }*/
    
    #swiper-work { width: 100%; margin-left: 0; padding-left: var(--space-lg); }
}


   
@media only screen and (orientation : portrait) {
    #swiper-home .swiper-slide { height: clamp(300px, 47vh, 500px); }
}

@media only screen and (max-width : 1023px) {
    /*main .content-wrapper > *.width-full-mobile.width-full-mobile { margin-inline: 0; }*/
    #swiper-home { background: none; }
    #swiper-home .swiper-slide { height: clamp(320px, 52vh, 500px); } 
    #swiper-home .swiper-slide .desktop { display: none; }
    #swiper-home .swiper-slide .mobile { display: block; }
    #swiper-home .swiper-slide .mobile,
    #swiper-home .swiper-slide.square .mobile,
    #swiper-home .swiper-slide.landscape .mobile,
    #swiper-home .swiper-slide.slim .mobile { height: 100%; }
}

@media only screen and (max-width : 899px) {
    :root {
        --gutters: var(--space-md);
    }
    #what-we-do { flex-flow: column; }
    #what-we-do > div:nth-child(2),
    #what-we-do > div:nth-child(3) { transition-delay: 0s; }
    
    #swiper-work { padding-left: var(--space-md); }
    
}


@media only screen and (max-width : 599px) { 
    .landscape-only { display: none; }
    .portrait-only { display: flex; }
    .sub-head { padding: var(--space-2xs) var(--space-xs); }
    .footer-last-row p { align-items: flex-start; flex-flow: column wrap; }
}