.elementor-kit-5833{--e-global-color-primary:#272D31;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#FCFF3C;--e-global-color-dbbf0ad:#FFFFFF;--e-global-color-4b8188f:#A5F9FF;--e-global-color-ca3c727:#000CFF;--e-global-typography-primary-font-family:"Geologica";--e-global-typography-primary-font-weight:700;--e-global-typography-secondary-font-family:"Geologica";--e-global-typography-secondary-font-weight:700;--e-global-typography-text-font-family:"Instrument Sans";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Instrument Sans";--e-global-typography-accent-font-weight:400;font-family:"Instrument Sans", Sans-serif;}.elementor-kit-5833 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1604px;}.e-con{--container-max-width:1604px;--container-default-padding-top:0px;--container-default-padding-right:0px;--container-default-padding-bottom:0px;--container-default-padding-left:0px;}.elementor-widget:not(:last-child){--kit-widget-spacing:0px;}.elementor-element{--widgets-spacing:0px 0px;--widgets-spacing-row:0px;--widgets-spacing-column:0px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:575px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}:root { --cg-dark:#272D31; --cg-grey:#54595F; --cg-yellow:#FCFF3C; --cg-blue-light:#A5F9FF; --cg-white:#FFFFFF; --cg-font-heading:Geologica; --cg-font-body:Instrument Sans; --cg-pale-blue:#E9FEFF; --cg-pale-pink:#FFDAFF; --work-card-top:#FF8CDF; --e-gv-6d887ef:#D860D8; --work-card-bottom:#000BDD; --work-card-photo-wash:#000BDD; }
/* Start custom CSS *//* Arrow on buttons: accent buttons and every Atomic link button (tags are <button>, so unaffected) */
.cg-btn-accent::after,
.elementor a.e-button-base::after {
  content: "";
  font-family: "neuron-icons";
  font-style: normal;
  font-weight: normal;
  speak: never;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1;
}
/* Keep the arrow from adding height, so Atomic buttons match the homepage buttons (55px) */
.elementor a.e-button-base::after {
  margin-top: -4px;
  margin-bottom: -2px;
}

.m-neuron-post, 
.m-neuron-post__thumbnail, 
.m-neuron-post__thumbnail img {
    border-radius: 15px !important;
    overflow: hidden !important;
}

/* Atomic headings: a span inside a heading is the yellow accent full stop */
.e-heading-base span {
    color: #FCFF3C;
}

/* Atomic headings: bold text inside a heading (e.g. the full stop) shows in yellow */
.elementor .e-heading-base strong,
.elementor .e-heading-base b {
    color: #FCFF3C;
    font-weight: inherit;
}

/* Atomic headings: underlined text gets the hand-drawn yellow underline, matching the homepage hero */
.e-heading-base u {
    text-decoration: none;
    position: relative;
    z-index: 0;
    white-space: nowrap;
}
.e-heading-base u::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 150' preserveAspectRatio='none'%3E%3Cpath d='M7.7,145.6C109,125,299.9,116.2,401,121.3c42.1,2.2,87.6,11.8,87.3,25.7' fill='none' stroke='%23FCFF3C' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    animation: cg-underline-draw 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}
@keyframes cg-underline-draw {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
    .e-heading-base u::after {
        animation: none;
    }
}

/* Atomic logo strip: constantly scrolling logos with faded edges.
   The track must hold the same set of logos THREE times, in the same order,
   so the loop is seamless on wide screens. */
.cg-logo-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 80%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 80%, transparent 100%);
}
.cg-logo-track {
    animation: cg-logo-scroll 35s linear infinite;
}
.cg-logo-track > * {
    flex: 0 0 auto;
    margin: 0 40px;
}
.cg-logo-track img {
    display: block;
    width: 140px;
    height: 56px;
    object-fit: contain;
}
@keyframes cg-logo-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-33.3333%); }
}
@media (max-width: 767px) {
    .cg-logo-track > * {
        margin: 0 25px;
    }
    .cg-logo-track img {
        width: 100px;
        height: 40px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .cg-logo-track {
        animation: none;
    }
}

/* Heroes: full height on short desktop screens (13" and 14" MacBooks etc.)
   so the headline and buttons aren't squashed. Taller monitors keep the editor setting.
   Homepage hero (classic container), MWB work post hero and Insights archive hero
   (Atomic background video content). */
@media (min-width: 1025px) and (max-height: 900px) {
    .elementor-1670 .elementor-element.elementor-element-c05bd07 {
        --min-height: 100vh;
        min-height: 100vh;
    }
    .elementor-11012 [data-id="3de03e8a"],
    .elementor-16973 [data-id="4bf900b4"] {
        min-height: 100vh !important;
    }
}

/* Homepage services (horizontal scroll cards): on short desktop screens the headline and
   520px cards didn't fit the pinned screen, so the headline sat under the header and the
   cards were cut off. Shorter cards, less gap and room for the header on these screens.
   The news section below gets extra top space so the gap after the cards matches desktop. */
@media (min-width: 1025px) and (max-height: 900px) {
    .elementor-element-eacdc04 .hsc-3dbc8ed6-inner-layout {
        box-sizing: border-box;
        padding-top: 70px;
    }
    .elementor-element-eacdc04 .hsc-3dbc8ed6-headline-wrap {
        margin-bottom: 40px !important;
    }
    .elementor-element-eacdc04 .hsc-3dbc8ed6-wrapper,
    .elementor-element-eacdc04 .hsc-3dbc8ed6-track,
    .elementor-element-eacdc04 .hsc-3dbc8ed6-card {
        height: 440px !important;
    }
    .elementor-1670 .elementor-element.elementor-element-c74eb0e {
        --padding-top: 30px;
        padding-top: 30px !important;
    }
}

/* Atomic FAQ accordion: plus icon that turns into a minus when the question is open,
   matching the homepage FAQs. Add the cg-faq-icon class to an accordion item's icon. */
.cg-faq-icon,
.g-554a1ad {
    position: relative;
    transform: none !important;
}
.cg-faq-icon svg,
.g-554a1ad svg {
    display: none !important;
}
.cg-faq-icon::before,
.cg-faq-icon::after,
.g-554a1ad::before,
.g-554a1ad::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 13px;
    height: 2.5px;
    border-radius: 2px;
    background: #272D31;
    transform: translateY(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.cg-faq-icon::after,
.g-554a1ad::after {
    transform: translateY(-50%) rotate(90deg);
}
details[open] .cg-faq-icon::after,
details[open] .g-554a1ad::after {
    transform: translateY(-50%) rotate(0deg);
    opacity: 0;
}

/* Atomic FAQ answers: links in pink, as on the homepage */
.cg-faq-answer a,
.g-477030a a {
    color: #FF5D9E;
}

/* Insights archive (Theme Builder template 16973)
   Tag filter pills come from the [cg_insights_filter] shortcode (mu-plugin cg-insights.php).
   Elementor strips classes from shortcode output, so the active pill is wrapped in <strong>. */
.elementor-16973 [data-id="1ae2fda0"] > span {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.elementor-16973 [data-id="1ae2fda0"] {
    width: 100%;
}

/* Insights AJAX filtering: fade while loading */
.elementor-16973 [data-id="13013325"] {
    transition: opacity 0.2s ease;
}

.elementor-16973 .cg-ins-loading [data-id="13013325"] {
    opacity: 0.4;
}
.elementor-16973 [data-id="1ae2fda0"] a {
    display: inline-block;
    padding: 10px 22px;
    border: 1.5px solid #272D31;
    border-radius: 50px;
    font-family: "Instrument Sans", sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    color: #272D31;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.elementor-16973 [data-id="1ae2fda0"] a:hover,
.elementor-16973 [data-id="1ae2fda0"] strong a {
    background-color: #272D31;
    color: #FFFFFF;
}
.elementor-16973 [data-id="1ae2fda0"] strong {
    font-weight: inherit;
}

/* Insights cards: tag pills over the image, from the [cg_post_tags] shortcode.
   Yellow with dark text, matching the site's accent buttons. */
.elementor-16973 [data-interaction-id="9325d3"] > span {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.elementor-16973 [data-interaction-id="9325d3"] span span {
    padding: 5px 14px;
    border-radius: 50px;
    background-color: #FCFF3C;
    color: #272D31;
    font-family: "Instrument Sans", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
}

/* Insights: the first (newest) article on page one is the featured post, full width */
body:not(.paged) .elementor-16973 [data-id="7c9e7b4a"] > :first-child {
    grid-column: 1 / -1;
}
body:not(.paged) .elementor-16973 [data-id="7c9e7b4a"] > :first-child img {
    aspect-ratio: 21 / 9;
}
body:not(.paged) .elementor-16973 [data-id="7c9e7b4a"] > :first-child h2 {
    max-width: 900px;
    font-size: 48px;
    line-height: 50px;
    letter-spacing: -2px;
}
@media (max-width: 767px) {
    body:not(.paged) .elementor-16973 [data-id="7c9e7b4a"] > :first-child img {
        aspect-ratio: 4 / 3;
    }
    body:not(.paged) .elementor-16973 [data-id="7c9e7b4a"] > :first-child h2 {
        font-size: 30px;
        line-height: 32px;
        letter-spacing: -1px;
    }
}

/* Insights pagination: hide the Newer/Older button when there's no page in that direction */
.elementor-16973 [data-id="7e39a59c"] [aria-disabled="true"] {
    visibility: hidden;
}

/* =====================================================================
   PROCESS CAROUSEL (stepped cards with pills, e.g. "WordPress development journey")
   Behaviour (pills, swipe, sliding) comes from the CGD Process Carousel plugin (JS only).
   Build it in Atomic with these global classes:
     cg-process          the carousel container
     cg-process-card     one per step (set the card colour/background on each card)
     cg-process-main     left column: cg-process-title (also used as the pill label) + cg-process-desc
     cg-process-points   right column (optional), one cg-process-point per bullet,
                         each holding cg-process-point-title + cg-process-point-desc
   Quick settings are the variables at the top of the first rule below.
   ===================================================================== */
.elementor .cg-process {
    --cgpc-card-max: 860px;
    --cgpc-peek: 140px;
    /* Match the page content wrapper (cg-wrap-wide) so the active card lines up with sections above */
    --cgpc-wrap-max: 1400px;
    --cgpc-wrap-pad: 40px;
    --cgpc-align: start; /* start = line up with content edge, center = centred card */
    --cgpc-gap: 40px;
    --cgpc-card-h: 440px;
    /* Card layout: intro column / bullets column, and the gap between them */
    --cgpc-cols: minmax(0, 1.5fr) minmax(0, 2fr);
    --cgpc-col-gap: 60px;
    --cgpc-radius: 20px;
    --cgpc-dim: 0.4;
    --cgpc-dark: var(--cg-dark, #272D31);
    --cgpc-yellow: var(--cg-yellow, #FCFF3C);
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    overflow: clip; /* stops focus/scrollIntoView shifting the row sideways */
    container-type: inline-size;
}

/* ---------- Step pills ---------- */
.cg-process .cgpc-steps {
    position: relative;
    margin: 0 0 60px;
    padding: 4px 20px 4px max(var(--cgpc-wrap-pad), calc((100cqw - var(--cgpc-wrap-max)) / 2 + var(--cgpc-wrap-pad)));
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cg-process .cgpc-steps::-webkit-scrollbar {
    display: none;
}

.cg-process .cgpc-steps-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    margin: 0;
}

.cg-process .cgpc-pill {
    flex: 0 0 auto;
    margin: 0;
    padding: 12px 22px;
    border: 0;
    border-radius: 40px;
    background: var(--cgpc-dark); /* inactive pills: dark grey with white text */
    color: #FFFFFF;
    font-family: var(--cg-font-body, "Instrument Sans"), sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cg-process .cgpc-pill:hover,
.cg-process .cgpc-pill:focus {
    background: #FEFFB8;
    color: var(--cgpc-dark);
}

.cg-process .cgpc-pill.is-active,
.cg-process .cgpc-pill.is-active:hover {
    background: var(--cgpc-yellow);
    color: var(--cgpc-dark);
}

.cg-process .cgpc-pill:focus-visible,
.cg-process .cgpc-arrow:focus-visible {
    outline: 2px solid var(--cgpc-dark);
    outline-offset: 3px;
}


/* ---------- Stage & track ---------- */
.cg-process .cgpc-stage {
    position: relative;
    container-type: inline-size;
    --cgpc-inset: max(var(--cgpc-wrap-pad), calc((100cqw - var(--cgpc-wrap-max)) / 2 + var(--cgpc-wrap-pad)));
    --cgpc-card-w: min(var(--cgpc-card-max), calc(100cqw - var(--cgpc-inset) - var(--cgpc-gap) - var(--cgpc-peek)));
}

.cg-process .cgpc-track {
    display: flex;
    gap: var(--cgpc-gap);
    align-items: stretch;
    width: max-content;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    touch-action: pan-y;
}

.cg-process .cgpc-track.is-dragging,
.cg-process .cgpc-track.no-anim {
    transition: none;
}

/* ---------- Cards ---------- */
.elementor .cg-process .cg-process-card {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--cgpc-col-gap);
    align-items: start;
    align-content: start;
    width: var(--cgpc-card-w, 80vw);
    min-width: 0;
    min-height: var(--cgpc-card-h);
    margin: 0;
    padding: 60px;
    box-sizing: border-box;
    border-radius: var(--cgpc-radius);
    overflow: hidden;
    color: #FFFFFF;
    background-color: var(--cgpc-dark);
    background-size: cover;
    background-position: center;
    opacity: var(--cgpc-dim);
    cursor: pointer;
    user-select: none;
    transition: opacity 0.6s ease;
}

.elementor .cg-process .cg-process-card:has(.cg-process-points) {
    grid-template-columns: var(--cgpc-cols);
}

.elementor .cg-process .cg-process-card.is-active {
    opacity: 1;
    cursor: default;
    user-select: auto;
}

.elementor .cg-process .cg-process-main,
.elementor .cg-process .cg-process-points {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.elementor .cg-process .cg-process-points {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 12px;
}

.elementor .cg-process .cg-process-title {
    margin: 0 0 20px;
    font-family: var(--cg-font-heading, "Geologica"), sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 50px;
    letter-spacing: -2px;
    color: #FFFFFF;
}

.elementor .cg-process .cg-process-desc {
    max-width: 440px;
    margin: 0;
    font-family: var(--cg-font-body, "Instrument Sans"), sans-serif;
    font-size: 18px;
    line-height: 29px;
    color: #FFFFFF;
    opacity: 0.9;
}

.elementor .cg-process .cg-process-point {
    position: relative;
    margin: 0;
    padding-left: 40px;
    font-family: var(--cg-font-body, "Instrument Sans"), sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 26px;
    color: #FFFFFF;
}

.elementor .cg-process .cg-process-point::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    /* Yellow tick, no circle */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 20.42 2.79 14.21l2.83-2.83L9 14.77l9.88-9.89 2.83 2.83z' fill='%23FCFF3C'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
}

/* Bullet icons: add an SVG widget to a cg-process-point and it replaces the tick.
   Upload icons in any colour; they show in yellow (change the colour here). */
.elementor .cg-process .cg-process-point > .e-svg-base {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    margin: 0;
    color: var(--cgpc-yellow);
}
.elementor .cg-process .cg-process-point > .e-svg-base svg,
.elementor .cg-process .cg-process-point > .e-svg-base svg * {
    fill: currentColor;
}
.elementor .cg-process .cg-process-point:has(> .e-svg-base)::before {
    display: none;
}

/* ---------- Arrows ---------- */
.cg-process .cgpc-arrow {
    display: none !important; /* add class cg-process-arrows to the container to show arrows */
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 64px;
    height: 64px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--cgpc-dark);
    box-shadow: 0 7px 40px rgba(87, 94, 98, 0.18);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.cg-process .cgpc-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.cg-process .cgpc-prev {
    left: max(36px, calc(var(--cgpc-inset) - var(--cgpc-gap) / 2));
}

.cg-process .cgpc-next {
    left: calc(var(--cgpc-inset) + var(--cgpc-card-w) + var(--cgpc-gap) / 2);
}

.cg-process.cg-process-arrows .cgpc-arrow { display: inline-flex !important; }

.cg-process .cgpc-arrow:hover,
.cg-process .cgpc-arrow:focus {
    background: var(--cgpc-yellow);
    color: var(--cgpc-dark);
}

.cg-process .cgpc-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

/* Before the script runs: keep cards in a row so nothing jumps much */
.elementor .cg-process:not(.cgpc-ready) {
    display: flex;
    gap: var(--cgpc-gap);
    padding-left: max(var(--cgpc-wrap-pad), calc((100vw - var(--cgpc-wrap-max)) / 2 + var(--cgpc-wrap-pad)));
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .elementor .cg-process { --cgpc-peek: 60px; --cgpc-gap: 24px; --cgpc-card-h: 420px; --cgpc-wrap-pad: 30px; }
    .elementor .cg-process .cg-process-card { padding: 50px; gap: 36px; }
    .elementor .cg-process .cg-process-title { font-size: 42px; line-height: 44px; letter-spacing: -1.5px; }
    .cg-process .cgpc-arrow { width: 52px; height: 52px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .elementor .cg-process { --cgpc-peek: 24px; --cgpc-gap: 12px; --cgpc-card-h: 0px; --cgpc-wrap-pad: 20px; }
    .cg-process .cgpc-steps { margin-bottom: 30px; }
    .cg-process .cgpc-pill { padding: 10px 16px; font-size: 14px; }
    .cg-process .cgpc-steps-inner { gap: 8px; }
    .elementor .cg-process .cg-process-card,
    .elementor .cg-process .cg-process-card:has(.cg-process-points) { grid-template-columns: 1fr; padding: 32px 26px; gap: 24px; }
    .elementor .cg-process .cg-process-title { font-size: 32px; line-height: 34px; letter-spacing: -1px; margin-bottom: 14px; }
    .elementor .cg-process .cg-process-desc { font-size: 16px; line-height: 25px; }
    .elementor .cg-process .cg-process-point { font-size: 16px; line-height: 24px; padding-left: 36px; }
    .elementor .cg-process .cg-process-point::before { width: 22px; height: 22px; background-size: 22px 22px; }
    .elementor .cg-process .cg-process-point > .e-svg-base { width: 22px; height: 22px; }
    .elementor .cg-process .cg-process-points { gap: 14px; padding-top: 0; }
    .cg-process.cg-process-arrows .cgpc-stage { padding-bottom: 90px; }
    .cg-process .cgpc-arrow { top: auto; bottom: 14px; width: 52px; height: 52px; transform: none; box-shadow: 0 4px 14px rgba(87, 94, 98, 0.15); }
    .cg-process .cgpc-prev { left: calc(50% - 60px); }
    .cg-process .cgpc-next { left: calc(50% + 8px); }
    .cg-process .cgpc-arrow:disabled { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
    .cg-process .cgpc-track,
    .elementor .cg-process .cg-process-card { transition: none; }
}

/* ---------- Elementor editor: plain scrollable row, every card editable ---------- */
.elementor-editor-active .elementor .cg-process {
    display: flex;
    gap: 24px;
    padding: 0 40px 20px;
    overflow-x: auto;
}

.elementor-editor-active .elementor .cg-process .cg-process-card {
    width: 900px;
    max-width: 85vw;
    opacity: 1;
    cursor: auto;
    user-select: auto;
}
/* ===== End process carousel ===== */

/* === CG RELATED TITLE START === */
/* "Explore more projects" titles: heading font on the link, yellow full stop after the name */
.elementor .cg-related-title a { font: inherit; letter-spacing: inherit; line-height: inherit; color: inherit; text-decoration: none; }
.elementor .cg-related-title a::after { content: "."; color: #FCFF3C; margin-left: -0.2em; } /* pulls back over the space the template adds after the title */
/* === CG RELATED TITLE END === */

/* === CG WORK GRID START === */
/* Featured work page: repeating 9-card rhythm, sized to match the Featured Work component
   (large card about 63% wide, smaller cards about 37%).
   Column lines: 1 |472fr| 2 |gap| 3 |128fr| 4 |gap| 5 |128fr| 6 |gap| 7 |472fr| 8
   1 big left + 2 stacked right / 2 halves / 2 stacked left + 1 big right / 1 full width */
.cg-work-grid > .cg-work-item { grid-column: 1 / -1; grid-row: span 3; }
.cg-work-grid > .cg-work-item:nth-child(9n+1) { grid-column: 1 / 6; grid-row: span 4; }
.cg-work-grid > .cg-work-item:nth-child(9n+2),
.cg-work-grid > .cg-work-item:nth-child(9n+3) { grid-column: 7 / 8; grid-row: span 2; }
.cg-work-grid > .cg-work-item:nth-child(9n+4) { grid-column: 1 / 4; grid-row: span 3; }
.cg-work-grid > .cg-work-item:nth-child(9n+5) { grid-column: 5 / 8; grid-row: span 3; }
.cg-work-grid > .cg-work-item:nth-child(9n+6),
.cg-work-grid > .cg-work-item:nth-child(9n+7) { grid-column: 1 / 2; grid-row: span 2; }
.cg-work-grid > .cg-work-item:nth-child(9n+8) { grid-column: 3 / 8; grid-row: span 4; }
.cg-work-grid > .cg-work-item:nth-child(9n) { grid-column: 1 / -1; grid-row: span 3; }
/* Tidy endings when the count doesn't fill a pattern */
.cg-work-grid > .cg-work-item:nth-child(9n+1):last-child { grid-column: 1 / -1; grid-row: span 3; }
.cg-work-grid > .cg-work-item:nth-child(9n+2):last-child { grid-row: span 4; }
.cg-work-grid > .cg-work-item:nth-child(9n+4):last-child { grid-column: 1 / -1; }
.cg-work-grid > .cg-work-item:nth-child(9n+6):last-child { grid-column: 1 / -1; grid-row: span 3; }
.cg-work-grid > .cg-work-item:nth-child(9n+6):nth-last-child(2) { grid-column: 1 / 4; grid-row: span 3; }
.cg-work-grid > .cg-work-item:nth-child(9n+7):last-child { grid-column: 5 / 8; grid-row: span 3; }

/* Photo cards: full-colour photo with a fade to the wash colour at the bottom */
.cg-work-card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.8;
  background: linear-gradient(180deg, color-mix(in srgb, var(--work-card-photo-wash, #000BDD) 0%, transparent) 0%, var(--work-card-photo-wash, #000BDD) 80%); }
.cg-work-title::after { content: "."; color: #FCFF3C; }

/* Big cards: gradient, headline at the top, image set in below */
.cg-work-item:nth-child(9n+1) .cg-work-card,
.cg-work-item:nth-child(9n+8) .cg-work-card { justify-content: flex-start; padding: 50px 50px 0; background: linear-gradient(180deg, var(--work-card-top, #FF8CDF) 0%, var(--work-card-bottom, #000BDD) 70%); }
.cg-work-item:nth-child(9n+1) .cg-work-card::before,
.cg-work-item:nth-child(9n+8) .cg-work-card::before { display: none; }
.cg-work-item:nth-child(9n+1) .cg-work-img,
.cg-work-item:nth-child(9n+8) .cg-work-img { top: auto; bottom: 0; left: 50px; width: calc(100% - 100px); height: 65%; border-radius: 15px 15px 0 0; object-position: left top; border: 2px solid rgba(253, 254, 255, 0.25); border-bottom: 0; }
.cg-work-item:nth-child(9n+1) .cg-work-client,
.cg-work-item:nth-child(9n+8) .cg-work-client { padding-bottom: 0; }
.cg-work-item:nth-child(9n+1) .cg-work-title,
.cg-work-item:nth-child(9n+8) .cg-work-title { font-size: 48px; line-height: 50px; letter-spacing: -2px; padding-top: 40px; }
.cg-work-item:nth-child(9n) .cg-work-title { font-size: 48px; line-height: 50px; letter-spacing: -2px; }
.cg-work-item:nth-child(9n+1):last-child .cg-work-card { justify-content: flex-end; padding: 40px; }

@media (max-width: 1366px) {
  .cg-work-item:nth-child(9n+1) .cg-work-card, .cg-work-item:nth-child(9n+8) .cg-work-card { padding: 40px 40px 0; }
  .cg-work-item:nth-child(9n+1) .cg-work-img, .cg-work-item:nth-child(9n+8) .cg-work-img { left: 40px; width: calc(100% - 80px); }
}
@media (max-width: 1199px) {
  .cg-work-item:nth-child(9n+1) .cg-work-card, .cg-work-item:nth-child(9n+8) .cg-work-card { padding: 35px 35px 0; }
  .cg-work-item:nth-child(9n+1) .cg-work-img, .cg-work-item:nth-child(9n+8) .cg-work-img { left: 35px; width: calc(100% - 70px); }
  .cg-work-item:nth-child(9n+1) .cg-work-title, .cg-work-item:nth-child(9n+8) .cg-work-title, .cg-work-item:nth-child(9n) .cg-work-title { font-size: 40px; line-height: 42px; letter-spacing: -1.5px; }
  .cg-work-item:nth-child(9n+1) .cg-work-title, .cg-work-item:nth-child(9n+8) .cg-work-title { padding-top: 30px; }
}
/* Tablet: two equal columns (lines 1 | gap | 3), same pattern as desktop, like the component */
@media (max-width: 1024px) {
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item { grid-column: 1 / -1; grid-row: span 3; }
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+1) { grid-column: 1 / 2; grid-row: span 4; }
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+2),
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+3) { grid-column: 3 / 4; grid-row: span 2; }
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+4) { grid-column: 1 / 2; grid-row: span 3; }
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+5) { grid-column: 3 / 4; grid-row: span 3; }
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+6),
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+7) { grid-column: 1 / 2; grid-row: span 2; }
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+8) { grid-column: 3 / 4; grid-row: span 4; }
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n) { grid-column: 1 / -1; grid-row: span 3; }
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+1):last-child,
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+4):last-child,
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+6):last-child { grid-column: 1 / -1; grid-row: span 3; }
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+2):last-child { grid-row: span 4; }
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+6):nth-last-child(2) { grid-column: 1 / 2; grid-row: span 3; }
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+7):last-child { grid-column: 3 / 4; grid-row: span 3; }
  .cg-work-item:nth-child(9n+1) .cg-work-card, .cg-work-item:nth-child(9n+8) .cg-work-card { padding: 30px 30px 0; }
  .cg-work-item:nth-child(9n+1) .cg-work-img, .cg-work-item:nth-child(9n+8) .cg-work-img { left: 30px; width: calc(100% - 60px); height: 58%; }
  .cg-work-item:nth-child(9n+1) .cg-work-title, .cg-work-item:nth-child(9n+8) .cg-work-title, .cg-work-item:nth-child(9n) .cg-work-title { font-size: 34px; line-height: 36px; letter-spacing: -1px; }
  .cg-work-item:nth-child(9n+1) .cg-work-title, .cg-work-item:nth-child(9n+8) .cg-work-title { padding-top: 24px; }
}
/* Mobile: one column */
@media (max-width: 767px) {
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item,
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(n),
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(n):last-child,
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(n):nth-last-child(2) { grid-column: 1 / -1; grid-row: span 2; }
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+1),
  .cg-work-grid.cg-work-grid > .cg-work-item.cg-work-item:nth-child(9n+8) { grid-row: span 3; }
  .cg-work-item:nth-child(9n+1) .cg-work-title, .cg-work-item:nth-child(9n+8) .cg-work-title, .cg-work-item:nth-child(9n) .cg-work-title { font-size: 36px; line-height: 38px; }
}
@media (max-width: 575px) {
  .cg-work-item:nth-child(9n+1) .cg-work-card, .cg-work-item:nth-child(9n+8) .cg-work-card { padding: 25px 25px 0; }
  .cg-work-item:nth-child(9n+1) .cg-work-img, .cg-work-item:nth-child(9n+8) .cg-work-img { left: 25px; width: calc(100% - 50px); }
  .cg-work-item:nth-child(9n+1) .cg-work-title, .cg-work-item:nth-child(9n+8) .cg-work-title, .cg-work-item:nth-child(9n) .cg-work-title { font-size: 30px; line-height: 32px; letter-spacing: -1px; }
  .cg-work-item:nth-child(9n+1) .cg-work-title, .cg-work-item:nth-child(9n+8) .cg-work-title { padding-top: 20px; }
}
/* === CG WORK GRID END === */

/* === WORK POST LAYOUT VARIANTS (add the class to a work post row) === */
/* cg-split-21: large item left (two thirds), small item right (one third) */
.elementor .cg-split-21.cg-split-21 { display: grid !important; grid-template-columns: 2fr 1fr; align-items: stretch; }
.elementor .cg-split-21.cg-split-21 > * { width: 100% !important; max-width: 100% !important; min-width: 0 !important; height: 100% !important; flex: none !important; object-fit: cover !important; }
.elementor .cg-split-21.cg-split-21 > :first-child { aspect-ratio: 16 / 10 !important; height: auto !important; }
.elementor .cg-split-21.cg-split-21 > :last-child { aspect-ratio: auto !important; }
/* cg-split-12: small item left, large item right */
.elementor .cg-split-12.cg-split-12 { display: grid !important; grid-template-columns: 1fr 2fr; align-items: stretch; }
.elementor .cg-split-12.cg-split-12 > * { width: 100% !important; max-width: 100% !important; min-width: 0 !important; height: 100% !important; flex: none !important; object-fit: cover !important; }
.elementor .cg-split-12.cg-split-12 > :last-child { aspect-ratio: 16 / 10 !important; height: auto !important; }
.elementor .cg-split-12.cg-split-12 > :first-child { aspect-ratio: auto !important; }
/* cg-bleed: row runs to the browser edges, media 2:1 */
.elementor .cg-bleed.cg-bleed { width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
.elementor .cg-bleed.cg-bleed > * { width: 100% !important; max-width: 100% !important; flex: none !important; aspect-ratio: 2 / 1 !important; height: auto !important; border-radius: 0 !important; object-fit: cover !important; }
@media (max-width: 767px) {
  .elementor .cg-split-21.cg-split-21, .elementor .cg-split-12.cg-split-12 { grid-template-columns: 1fr; }
  .elementor .cg-split-21.cg-split-21 > :last-child, .elementor .cg-split-12.cg-split-12 > :first-child { aspect-ratio: 4 / 5 !important; height: auto !important; }
  .elementor .cg-bleed.cg-bleed > * { aspect-ratio: 4 / 3 !important; }
}
/* cg-bleed-gap: extra space below a band that sits directly above another item in the same block */
.elementor .cg-bleed.cg-bleed-gap { margin-bottom: 100px !important; }
@media (max-width: 1024px) { .elementor .cg-bleed.cg-bleed-gap { margin-bottom: 60px !important; } }
@media (max-width: 767px) { .elementor .cg-bleed.cg-bleed-gap { margin-bottom: 40px !important; } }
/* === WORK POST LAYOUT VARIANTS END === */

/* CG: services carousel short screens */
@media (min-width: 1025px) and (max-height: 780px) {
    .elementor-element-eacdc04 .hsc-3dbc8ed6-inner-layout {
        padding-top: 40px;
    }
    .elementor-element-eacdc04 .hsc-3dbc8ed6-headline-wrap {
        margin-bottom: 28px !important;
    }
    .elementor-element-eacdc04 .hsc-3dbc8ed6-wrapper,
    .elementor-element-eacdc04 .hsc-3dbc8ed6-track,
    .elementor-element-eacdc04 .hsc-3dbc8ed6-card {
        height: 380px !important;
    }
}
@media (min-width: 1025px) and (max-height: 680px) {
    .elementor-element-eacdc04 .hsc-3dbc8ed6-inner-layout {
        padding-top: 24px;
    }
    .elementor-element-eacdc04 .hsc-3dbc8ed6-headline-wrap {
        margin-bottom: 20px !important;
    }
    .elementor-element-eacdc04 .hsc-3dbc8ed6-wrapper,
    .elementor-element-eacdc04 .hsc-3dbc8ed6-track,
    .elementor-element-eacdc04 .hsc-3dbc8ed6-card {
        height: 330px !important;
    }
}


/* ==========================================================
   Insights posts (Single (Post) Atomic template, ID 17679)
   ========================================================== */
/* Hide the background video play/pause controls */
.elementor-17679 .e-background-video-controls-base {
    display: none !important;
}
/* Hide the featured image box when a post has no featured image */
.elementor-17679 img.cg-img-rounded:not([src]),
.elementor-17679 img.cg-img-rounded[src=""] {
    display: none;
}
/* Article body typography */
.elementor-17679 .elementor-widget-theme-post-content {
    font-family: "Instrument Sans", sans-serif;
    font-size: 18px;
    line-height: 30px;
    color: #272D31;
}
.elementor-17679 .elementor-widget-theme-post-content p {
    margin: 0 0 24px;
}
.elementor-17679 .elementor-widget-theme-post-content h2 {
    font-family: "Geologica", sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -1px;
    color: #272D31;
    margin: 56px 0 20px;
}
.elementor-17679 .elementor-widget-theme-post-content h3,
.elementor-17679 .elementor-widget-theme-post-content h4 {
    font-family: "Geologica", sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 28px;
    letter-spacing: -0.5px;
    color: #272D31;
    margin: 36px 0 12px;
}
.elementor-17679 .elementor-widget-theme-post-content ul,
.elementor-17679 .elementor-widget-theme-post-content ol {
    margin: 0 0 24px;
    padding-left: 22px;
}
.elementor-17679 .elementor-widget-theme-post-content li {
    margin-bottom: 10px;
}
.elementor-17679 .elementor-widget-theme-post-content li::marker {
    color: #54595F;
}
.elementor-17679 .elementor-widget-theme-post-content strong {
    font-weight: 600;
}
.elementor-17679 .elementor-widget-theme-post-content a {
    color: #272D31;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
    text-decoration-color: #FCFF3C;
    background-color: transparent;
    transition: background-color 0.3s;
}
.elementor-17679 .elementor-widget-theme-post-content a:hover {
    background-color: #FCFF3C;
}
.elementor-17679 .elementor-widget-theme-post-content > .elementor-widget-container > *:first-child,
.elementor-17679 .elementor-widget-theme-post-content > *:first-child {
    margin-top: 0;
}
@media (max-width: 767px) {
    .elementor-17679 .elementor-widget-theme-post-content {
        font-size: 17px;
        line-height: 28px;
    }
    .elementor-17679 .elementor-widget-theme-post-content h2 {
        font-size: 28px;
        line-height: 32px;
        margin: 40px 0 16px;
    }
    .elementor-17679 .elementor-widget-theme-post-content h3,
    .elementor-17679 .elementor-widget-theme-post-content h4 {
        font-size: 20px;
        line-height: 26px;
    }
}

/* Insights posts: larger opening paragraph (standfirst) */
.elementor-17679 .elementor-widget-theme-post-content p:first-of-type {
    font-size: 22px;
    line-height: 34px;
    font-weight: 500;
    margin-bottom: 40px;
}
@media (max-width: 767px) {
    .elementor-17679 .elementor-widget-theme-post-content p:first-of-type {
        font-size: 19px;
        line-height: 30px;
        margin-bottom: 32px;
    }
}

/* SERVICE CLIP: no side padding on tablet and mobile */
body [data-id="4f16aa4"]{padding-left:0!important;padding-right:0!important}


/* Related services: WordPress icon in card 1 (slot is sized for the woo logo) */
a[href$="/wordpress-websites/"] > .e-svg-base:first-child {
    width: 40px;
    height: 40px;
}


/* Header menu: no flash of the desktop menu on phones and tablets before Elementor's script switches it to the dropdown */
@media (max-width: 1024px) {
    .elementor-widget-n-menu.e-n-menu-tablet .e-n-menu:not([data-layout="dropdown"]) .e-n-menu-wrapper {
        display: none !important;
    }
}


/* Moved out of element custom CSS (Elementor writes a stray n there, which made
   FlyingPress drop the whole rule from its used CSS, so the layout jumped on first scroll).
   Post author text block and the yellow pill on work posts. */
.elementor .e-3df43e4f-704a { text-align: left; }
.elementor .e-68962311-6d1e { white-space: nowrap; }


/* Cookie banner (Beautiful Cookie Banner): rounded corners to match the site */
.cc-window { border-radius: 15px !important; overflow: hidden; }
.cc-window .cc-btn { border-radius: 100px !important; }

/* Cookie banner on phones: float it 10px in from the edges, in line with the header */
@media (max-width: 767px) {
    .cc-window.cc-floating {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* Work page on phones: big cards put the screenshot under the headline instead of
   pinning it to the bottom, so long titles can't run into it. Rows grow to fit.
   Space below the grid before the CTA band. */
@media (max-width: 767px) {
    .cg-work-grid.cg-work-grid { grid-auto-rows: minmax(170px, auto) !important; }
    .cg-work-item:nth-child(9n+1) .cg-work-img.cg-work-img,
    .cg-work-item:nth-child(9n+8) .cg-work-img.cg-work-img {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        width: 100%;
        height: 260px;
        margin-top: auto;
        flex-shrink: 0;
        order: 2;
    }
    .cg-work-item:nth-child(9n+1) .cg-work-text,
    .cg-work-item:nth-child(9n+8) .cg-work-text { padding-bottom: 25px; }
    .elementor-17222 .elementor-element-5abed828 { padding-bottom: 60px !important; }
}

/* Moved out of element Custom CSS boxes (15 Nov). Elementor writes a stray "n" into
   those rules, FlyingPress then drops the whole rule from its used CSS and the element
   jumps on first scroll. Don't use the element Custom CSS box: add rules here instead. */
/* Work posts: Visit Website button stays on one line */
.elementor .e-5c561bbf-2f78875.e-5c561bbf-2f78875 { white-space: nowrap; flex: 0 0 auto; }
/* Single post template: button on one line */
.elementor .e-107550c-2bd0.e-107550c-2bd0 { white-space: nowrap; }
/* Service, sector and location pages: left-aligned text block */
.elementor .e-ed1d928-f86b.e-ed1d928-f86b { text-align: left; }
/* Work posts: background settings */
.elementor .e-2f7ee26a-291b.e-2f7ee26a-291b { background-repeat: repeat; background-attachment: scroll; background-size: auto auto; background-position: 0% 0%; }
/* Latest Articles component grid gaps */
.elementor .e-79cc84fc-400c.e-79cc84fc-400c { gap: 60px 30px; }
@media (max-width: 1366px) { .elementor .e-79cc84fc-400c.e-79cc84fc-400c { gap: 60px 20px; } }
@media (max-width: 1024px) { .elementor .e-79cc84fc-400c.e-79cc84fc-400c { gap: 50px 20px; } }
/* Insights archive grid gaps */
.elementor .e-451b1ebf-261f.e-451b1ebf-261f { gap: 60px 30px; }
@media (max-width: 1199px) { .elementor .e-451b1ebf-261f.e-451b1ebf-261f { gap: 50px 30px; } }

/* More insights on news posts (single post template): on phones the heading was
   picking up the cg-h2 class padding (40px top and bottom) on top of the section padding. */
@media (max-width: 767px) {
    .elementor .e-658af5e1-a195.e-658af5e1-a195 { padding: 0; }
}

/* Homepage MWB card headline link: the card's gradient layer (::before) sat on top of
   the headline, so it couldn't be clicked. Lift it above, like the other cards. */
.elementor .e-f0afb01-4e5cd71.e-f0afb01-4e5cd71 { position: relative; z-index: 1; }/* End custom CSS */