:root {
    /* Brand palette — semantic tokens named by role */

    /* Brand — lavender (primary brand accent) */
    --brand:      #c695f2;
    --brand-dark: #a976d9;
    --brand-rgb:  198, 149, 242;

    /* Accent — mint/teal (bright highlight) */
    --accent:     #37eaca;
    --accent-rgb: 55, 234, 202;

    /* Accent (alt) — cyan */
    --accent-alt:      #16d4cc;
    --accent-alt-dark: #12aaa3;
    --accent-dark:     var(--accent-alt-dark);

    /* Surface — dark indigo family used for section backgrounds.
       Stepped to stay distinguishable but kept close to the brand indigo
       (green-channel lightness ≈ 69 / 53 / 40 / 23). */
    --surface:       #343579;
    --surface-dark:  #262850;
    --surface-deep:  #161740;
    --surface-light: #41459a;
    --surface-rgb:   52, 53, 121;

    /* Neutrals */
    --white:      #ffffff;
    --black:      #111111;
    --grey-light: #f5f5f7;

    /* Text */
    --text-dark: var(--surface);

    /* Static dark-section background (no animated mesh) */
    --grid-line: rgba(255, 255, 255, 0.07);
    --grid-size: 72px;
    --bg-deep:   linear-gradient(135deg, #15173f 0%, #1d2055 48%, #272c6e 100%);

    /* Branded fallback panel for cards without a featured image */
    --card-fallback-bg:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        radial-gradient(90% 90% at 85% -10%, rgba(55, 234, 202, 0.14) 0%, transparent 55%),
        radial-gradient(100% 100% at 0% 110%, rgba(198, 149, 242, 0.18) 0%, transparent 60%),
        linear-gradient(135deg, #1d2055 0%, #272c6e 55%, #343988 100%);
    --card-fallback-bg-size: 36px 36px, 36px 36px, auto, auto, auto;

    /* Glass / blur surfaces */
    --glass-bg-light:  rgba(255, 255, 255, 0.07);
    --glass-bg-mid:    rgba(255, 255, 255, 0.10);
    --glass-border:    rgba(255, 255, 255, 0.13);
    --glass-blur:      blur(18px);

    /* Brand gradients */
    --grad-brand:      linear-gradient(135deg, var(--brand) 0%, var(--accent-alt) 100%);
    --grad-brand-full: linear-gradient(90deg, var(--brand) 0%, var(--accent) 50%, var(--accent-alt) 100%);
    --grad-brand-soft: linear-gradient(135deg, rgba(198,149,242,0.6) 0%, rgba(22,212,204,0.6) 100%);
    --grad-surface:    linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-light) 100%);
    --grad-overlay:    linear-gradient(160deg,
        rgba(42,43,99,0.97) 0%,
        rgba(52,53,121,0.92) 50%,
        rgba(68,73,156,0.85) 100%
    );

    font-size: 18px;

    @media(max-width: 1400px) {
        font-size: 17px;
    }

    @media(max-width: 800px) { 
        font-size: 16px;
    }

    @media(max-width: 500px) { 
        font-size: 15px;
    }
}

/* Basic reset and styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(198, 149, 242, 0.35) var(--surface-deep);
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.8;
    font-family: 'Mona Sans', 'Inter', system-ui, sans-serif;
    background: var(--surface-dark);
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Contain slide-ins so they can't cause horizontal scroll */
section {
    overflow: hidden;
}

/* Aurora wash on dark sections — background-image only, so block bg-color is untouched */
section.bg-surface,
section.bg-surface-dark {
    background-image:
        radial-gradient(110% 70% at 108% -8%,  rgba(55, 234, 202, 0.07)  0%, transparent 52%),
        radial-gradient(120% 85% at -12% 112%, rgba(198, 149, 242, 0.07) 0%, transparent 56%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.022) 0%, transparent 45%);
}

/* Global text selection colour */
::selection {
    background: rgba(198, 149, 242, 0.35);
    color: #fff;
}
::-moz-selection {
    background: rgba(198, 149, 242, 0.35);
    color: #fff;
}

/* Global background utilities */
.bg-black {
    background-color: #111111;
    color: white;
    
    h1, h2, h3, h4, h5, h6 { color: white; }
}

.bg-light-grey {
    background-color: #f5f5f7;
    color: var(--text-dark);
}

/* Surface backgrounds — global fallback so any block using a bg-surface*
   class (e.g. the Custom HTML block, which sets no background of its own)
   paints the right token. Block-specific rules with higher specificity
   still win; they use the same tokens, so this only fills the gaps. */
.bg-surface {
    background-color: var(--surface);
    color: #fff;
}

.bg-surface-dark {
    background-color: var(--surface-dark);
    color: #fff;
}

.bg-surface-light {
    background-color: var(--surface-light);
    color: #fff;
}

.bg-surface-deep {
    background-color: var(--surface-deep);
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-family: 'Hubot Sans', 'Mona Sans', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    text-wrap: pretty;
    color: inherit;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    
    @media (max-width: 768px) {
        font-size: 2.5rem;
    }
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;

    @media (max-width: 768px) {
        font-size: 2rem;
    }
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    
    @media (max-width: 768px) {
        font-size: 1.6rem;
    }
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    
    @media (max-width: 768px) {
        font-size: 1.3rem;
    }
}

h5 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    font-weight: 600;
}

h6 {
    font-size: 1.1rem;
    margin-bottom: 0.875rem;
    font-weight: 600;
}

/* Global Typography */
p {
    margin-bottom: 1.25rem;
    opacity: 0.9;
    line-height: 1.7;

    &.lead {
        font-size: 1.25rem;
        line-height: 1.6;
        font-weight: 500;
        opacity: 0.95;
        letter-spacing: -0.01em;
        margin-bottom: 0.6rem;
        
        @media (max-width: 768px) {
            font-size: 1.125rem;
        }
    }
    
    a {
        color: var(--brand);
        text-decoration: underline;
        font-weight: 500;
        transition: color 0.3s ease;
        
        &:hover {
            color: var(--brand-dark);
            text-decoration: none;
        }
        
        &:focus {
            outline: 2px solid var(--brand);
            outline-offset: 2px;
        }
    }
}

/* List Styles */
ul, ol {
    margin: 0 0 1.25rem 0;
    padding-left: 1.5rem;
    line-height: 1.7;
    color: inherit;
    list-style: none;

    li {
        margin-bottom: 0.5rem;
        color: inherit;

        &::marker {
            content: none;
        }

        &:last-child {
            margin-bottom: 0;
        }

        p {
            margin-bottom: 0.5rem;

            &:last-child {
                margin-bottom: 0;
            }
        }
    }
    
    a {
        color: var(--brand);
        text-decoration: underline;
        font-weight: 500;
        transition: color 0.3s ease;
        
        &:hover {
            color: var(--brand-dark);
            text-decoration: none;
        }
        
        &:focus {
            outline: 2px solid var(--brand);
            outline-offset: 2px;
        }
    }
}

ol {
    list-style: none;

    ol {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Text Emphasis */
strong, b {
    font-weight: 600;
    color: inherit;
}

em, i {
    font-style: italic;
    color: inherit;
}

/* Blockquote */
blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid transparent;
    background: rgba(var(--surface-rgb), 0.05);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;

    p {
        margin-bottom: 1rem;
        font-size: 1.1rem;
        opacity: 1;
        
        &:last-child {
            margin-bottom: 0;
        }
    }
    
    cite {
        display: block;
        margin-top: 1rem;
        font-size: 0.9rem;
        font-style: normal;
        color: var(--brand);
        font-weight: 500;

        &::before {
            content: '— ';
        }
    }
}

/* Gradient accent bar (not on case-study pull-quotes) */
blockquote:not(.case-study-quote)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(
        to bottom,
        var(--brand) 0%,
        var(--accent) 50%,
        var(--accent-alt) 100%
    );
}

/* Code */
code {
    background: #f4f4f4;
    color: var(--surface);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.875em;
}

pre {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    
    code {
        background: transparent;
        padding: 0;
    }
}

/* Tables */
table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    
    th, td {
        padding: 0.75rem 1rem;
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
    }
    
    th {
        background: var(--grad-surface);
        color: white;
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    tbody tr:hover {
        background: #f9fafb;
    }
    
    tbody tr:last-child {
        th, td {
            border-bottom: none;
        }
    }
}

/* Horizontal Rule */
hr,
.wp-block-separator {
    border: none;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(198, 149, 242, 0.4) 25%,
        rgba(55, 234, 202, 0.55) 50%,
        rgba(22, 212, 204, 0.4) 75%,
        transparent 100%
    );
    margin: 2.5rem 0;
    max-width: 100%;
}

/* Small Text */
small {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Mark/Highlight */
mark {
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--surface);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Button System */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.75rem 0.85rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-family: 'Hubot Sans', 'Mona Sans', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-variation-settings: 'wght' 610, 'wdth' 100;
    text-align: center;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.25s ease;
    font-size: 0.8rem;
    line-height: 1;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'tnum' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 -1px 0 rgba(0,0,0,0.18);
    position: relative;

    &::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    &:hover {
        transform: translateY(-2px);
    }

    &:active {
        transform: translateY(0);
        transition-duration: 0.1s;
    }

    &.button-primary {
        background: var(--brand);
        color: white;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);

        &::after {
            background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%, rgba(0,0,0,0.05) 100%);
        }

        &:hover {
            background: var(--brand-dark);
            box-shadow:
                0 6px 20px rgba(198, 149, 242, 0.40),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);

            &::after { opacity: 1; }
        }
    }

    &.button-secondary {
        background: var(--accent-alt);
        color: white;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);

        &::after {
            background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%, rgba(0,0,0,0.05) 100%);
        }

        &:hover {
            background: var(--accent-alt-dark);
            box-shadow:
                0 6px 20px rgba(22, 212, 204, 0.40),
                inset 0 1px 0 rgba(255, 255, 255, 0.14);

            &::after { opacity: 1; }
        }
    }

    &.button-white {
        background: white;
        color: var(--text-dark);
        text-shadow: 0 1px 0 rgba(255,255,255,0.85), 0 -1px 0 rgba(0,0,0,0.08);

        &:hover {
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        }
    }

    &.button-outline {
        background: transparent;
        color: white;
        border: none;
        box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);

        &:hover {
            background: rgba(255, 255, 255, 0.08);
            box-shadow: inset 0 0 0 1.5px white, 0 6px 20px rgba(255, 255, 255, 0.1);
        }
    }

    &.button-dark {
        background: #111111;
        color: white;

        &::after {
            background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
        }

        &:hover {
            background: #1a1a1a;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);

            &::after { opacity: 1; }
        }
    }

    &.button-sm {
        padding: 0.65rem 1.1rem 0.55rem;
        font-size: 0.72rem;
        letter-spacing: 0.085em;
    }

    &.button-lg {
        padding: 1.15rem 2.4rem 1.05rem;
        font-size: 0.9rem;
    }

    &.button-cta-teal {
        background: var(--accent-alt);
        color: var(--surface-deep, var(--surface-dark));
        font-variation-settings: 'wght' 720, 'wdth' 100;
        font-weight: 700;
        text-shadow: 0 1px 0 rgba(255,255,255,0.18), 0 -1px 0 rgba(0,0,0,0.1);

        &:hover {
            background: var(--accent-alt-dark, #1fc9b0);
            box-shadow: 0 6px 20px rgba(22, 212, 204, 0.4);
        }
    }
}

/* Header button sizing */
#masthead .button {
    padding: 0.85rem 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.075em;
}

/* Masthead — frosted-glass floating bar */
#masthead {
    background: linear-gradient(135deg,
        rgba(30, 31, 77, 0.90) 0%,
        rgba(42, 43, 99, 0.88) 100%
    );
    color: #fff;
    padding: 0.65rem 1rem;
    position: fixed;
    height: auto;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 1000;
    border-radius: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Active/scrolled header — boost opacity slightly */
#masthead.scrolled,
#masthead.is-scrolled {
    background: linear-gradient(135deg,
        rgba(30, 31, 77, 0.97) 0%,
        rgba(42, 43, 99, 0.96) 100%
    );
}

#masthead .site-logo {
    display: block;
    text-decoration: none;
}

#masthead .site-logo img {
    height: 1.75rem;
    width: auto;
    display: block;
    margin-top: -0.15rem;
    margin-left: 0.35rem;
}

#masthead .site-logo:hover {
    opacity: 0.9;
}

/* Main Navigation - Desktop */
#masthead .main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    align-self: stretch;     /* fill full header height */
}

/* Stretch WP's menu-container wrapper to full height */
#masthead .main-navigation > div {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: stretch;
}

#masthead .main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
    opacity: 1;
    line-height: normal;
}

/* Stretch top-level items to full header height (primary menu only) */
#masthead .main-navigation > div > ul,
#masthead .main-navigation > ul {
    align-items: stretch;    /* stretch top-level li elements full height */
}

/* Extend hover box through masthead padding to kill the dead zone above the mega panel */
#masthead .main-navigation > div > ul > li,
#masthead .main-navigation > ul > li {
    display: flex;
    align-items: center;
    margin-top: -0.65rem;
    margin-bottom: -0.65rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

/* Fill the full-height li for a continuous hover area */
#masthead .main-navigation > div > ul > li > a,
#masthead .main-navigation > ul > li > a {
    display: flex;
    align-items: center;
    height: 100%;
}

#masthead .main-navigation ul li {
    margin-bottom: 0;
}

#masthead .main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#masthead .main-navigation a:hover {
    color: var(--accent-alt);
}

#masthead .main-navigation a:focus {
    color: var(--accent-alt);
    outline: 2px solid var(--accent-alt);
    outline-offset: 3px;
    border-radius: 3px;
}

#masthead .main-navigation a:focus:not(:focus-visible) {
    outline: none;
}

#masthead .main-navigation a:focus-visible {
    color: var(--accent-alt);
    outline: 2px solid var(--accent-alt);
    outline-offset: 3px;
    border-radius: 3px;
}

#masthead .main-navigation .current-menu-item > a,
#masthead .main-navigation .current_page_item > a,
#masthead .main-navigation .current-page-ancestor > a {
    color: var(--brand);
    position: relative;
}

/* Desktop dropdown arrow */
#masthead .main-navigation .menu-item-has-children {
    position: relative;
}

#masthead .main-navigation .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

#masthead .main-navigation .menu-item-has-children:hover > a::after,
#masthead .main-navigation .menu-item-has-children.focus > a::after {
    transform: rotate(180deg);
}

/* Desktop submenu — frosted glass panel */
#masthead .main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(28, 29, 70, 0.94);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    margin-top: 1rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    display: block;
}

#masthead .main-navigation .sub-menu li {
    width: 100%;
}

#masthead .main-navigation .sub-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

#masthead .main-navigation .sub-menu a:hover {
    background: var(--glass-bg-light);
    color: var(--accent-alt);
}

#masthead .main-navigation .sub-menu a:focus {
    background: var(--surface);
    color: var(--accent-alt);
    outline: 2px solid var(--accent-alt);
    outline-offset: -2px;
}

#masthead .main-navigation .sub-menu a:focus:not(:focus-visible) {
    outline: none;
}

#masthead .main-navigation .sub-menu a:focus-visible {
    background: var(--surface);
    color: var(--accent-alt);
    outline: 2px solid var(--accent-alt);
    outline-offset: -2px;
}

#masthead .main-navigation .sub-menu .current-menu-item a {
    background: rgba(255, 74, 111, 0.1);
}

#masthead .main-navigation .menu-item-has-children:hover > .sub-menu,
#masthead .main-navigation .menu-item-has-children.focus > .sub-menu,
#masthead .main-navigation .menu-item-has-children.submenu-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*=============================================
  MEGA MENU — desktop 3-column panel
=============================================*/

/* Contain the panel within the fixed #masthead */
#masthead .main-navigation .troi-mega-menu {
    position: static;
}

/* Top padding is a transparent hover bridge; the visual card lives on ::before */
#masthead .main-navigation .troi-mega-menu > .sub-menu {
    left: 50%;
    min-width: unset;
    width: 100%;
    max-width: 80rem;
    top: 100%;
    margin-top: 0;           /* flush — no dead-zone gap */
    padding: 0.75rem 2rem 2rem; /* top pad = transparent hover bridge */
    border-radius: 0;        /* rounding handled by ::before */
    background: transparent; /* bg handled by ::before */
    border: none;            /* cancel glass border */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;        /* shadow handled by ::before */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    overflow: visible;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

/* Visual card — starts below the bridge padding */
#masthead .main-navigation .troi-mega-menu > .sub-menu::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(
            ellipse 50% 120% at 50% 50%,
            rgba(22, 212, 204, 0.14) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 40% 80% at 0% 100%,
            rgba(198, 149, 242, 0.12) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 40% 80% at 100% 0%,
            rgba(198, 149, 242, 0.10) 0%,
            transparent 60%
        ),
        var(--surface-dark);
    border-radius: 1rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
    z-index: -1;
    pointer-events: none;
}

/* Show: hover (CSS fallback) | mega-hover (JS-managed) | focus (keyboard) */
#masthead .main-navigation .troi-mega-menu:hover > .sub-menu,
#masthead .main-navigation .troi-mega-menu.mega-hover > .sub-menu,
#masthead .main-navigation .troi-mega-menu.focus > .sub-menu,
#masthead .main-navigation .troi-mega-menu.submenu-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Each column (depth-1 list item) */
#masthead .main-navigation .troi-mega-menu > .sub-menu > li {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 2rem 1.5rem 0;
    width: auto;
    list-style: none;
    margin: 0;
    position: relative; /* creates stacking context above ::before */
    z-index: 0;
}

#masthead .main-navigation .troi-mega-menu > .sub-menu > ul,
#masthead .main-navigation .troi-mega-menu > .sub-menu > li > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#masthead .main-navigation .troi-mega-menu > .sub-menu > li:not(:first-child) {
    padding-left: 2rem;
}

#masthead .main-navigation .troi-mega-menu > .sub-menu > li:last-child {
    padding-right: 0;
}

/* Column label: depth-1 link becomes a section heading */
#masthead .main-navigation .troi-mega-menu > .sub-menu > li > a {
    display: block;
    font-family: 'Hubot Sans', 'Mona Sans', system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand);
    padding: 0 0 0.875rem 0;
    margin-bottom: 0.875rem;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    transition: color 0.2s ease;
}

#masthead .main-navigation .troi-mega-menu > .sub-menu > li > a:hover,
#masthead .main-navigation .troi-mega-menu > .sub-menu > li > a:focus {
    color: var(--accent-alt);
    background: transparent;
    outline: none;
}

/* No caret on column labels */
#masthead .main-navigation .troi-mega-menu > .sub-menu > li.menu-item-has-children > a::after {
    display: none;
}

/* Column items list (depth-2 sub-menu) — always visible inside the panel */
#masthead .main-navigation .troi-mega-menu > .sub-menu > li > .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    border: none;           /* cancel glass border */
    backdrop-filter: none;  /* cancel glass blur */
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
    display: block;
    list-style: none;
}

#masthead .main-navigation .troi-mega-menu > .sub-menu > li > .sub-menu li {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

#masthead .main-navigation .troi-mega-menu > .sub-menu > li > .sub-menu li:last-child {
    border-bottom: none;
}

/* Column item links — flex-column so title and subtitle stack cleanly */
#masthead .main-navigation .troi-mega-menu > .sub-menu > li > .sub-menu a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.9rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    white-space: normal;
    background: transparent !important; /* cancel glass + regular sub-menu hover bg */
    transition: color 0.2s ease;
    outline: none;
    box-shadow: none;
}

/* No dot bullets */
#masthead .main-navigation .troi-mega-menu > .sub-menu > li > .sub-menu a::before {
    display: none;
    content: none;
}

#masthead .main-navigation .troi-mega-menu > .sub-menu > li > .sub-menu li:hover > a,
#masthead .main-navigation .troi-mega-menu > .sub-menu > li > .sub-menu a:hover,
#masthead .main-navigation .troi-mega-menu > .sub-menu > li > .sub-menu a:focus,
#masthead .main-navigation .troi-mega-menu > .sub-menu > li > .sub-menu a:focus-visible {
    color: white;
    background: transparent !important;
    outline: none;
    box-shadow: none;
}

/* Active item indicator inside mega panel */
#masthead .main-navigation .troi-mega-menu > .sub-menu > li > .sub-menu .current-menu-item > a {
    color: var(--brand);
    background: transparent !important;
}

/* Subtitle inside the <a> */
#masthead .main-navigation .troi-mega-menu > .sub-menu > li > .sub-menu .mega-menu-desc {
    display: block;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    margin-top: 0.2rem;
    transition: color 0.2s ease;
}

#masthead .main-navigation .troi-mega-menu > .sub-menu > li > .sub-menu a:hover .mega-menu-desc,
#masthead .main-navigation .troi-mega-menu > .sub-menu > li > .sub-menu a:focus .mega-menu-desc {
    color: rgba(255, 255, 255, 0.6);
}

/* Hide mobile elements on desktop */
#masthead .main-navigation .submenu-toggle {
    display: none;
}

#masthead .main-navigation .mobile-cta {
    display: none;
}

/* Header actions */
#masthead .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 450px) {
    #masthead .header-cta {
        display: none;
    }
}

/* Hamburger toggle */
#masthead .hamburger-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
    position: relative;
}

#masthead .hamburger-toggle span {
    display: block;
    position: relative;
    width: 1.5rem;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease-in-out;
    margin: 3px 0;
}

#masthead .hamburger-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#masthead .hamburger-toggle.active span:nth-child(2) {
    opacity: 0;
}

#masthead .hamburger-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

#masthead .hamburger-toggle:focus {
    outline: 2px solid var(--accent-alt);
    outline-offset: 2px;
    border-radius: 4px;
}

#masthead .hamburger-toggle:focus:not(:focus-visible) {
    outline: none;
}

#masthead .hamburger-toggle:focus-visible {
    outline: 2px solid var(--accent-alt);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 1350px) {
    #masthead .hamburger-toggle {
        display: flex;
    }
}

/*=============================================
  MOBILE — hide desktop nav, hamburger triggers
  the off-canvas drawer below.
=============================================*/
@media (max-width: 1350px) {
    #masthead .main-navigation {
        display: none;
    }
}

/*=============================================
  MOBILE OFF-CANVAS DRAWER
=============================================*/

/* Hidden by default at all breakpoints */
.mobile-drawer,
.mobile-drawer-backdrop {
    display: none;
}

/* Lock body scroll when drawer is open */
body.mobile-drawer-open {
    overflow: hidden;
}

@media (max-width: 1350px) {
    /* Backdrop */
    .mobile-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 30, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1100;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    body.mobile-drawer-open .mobile-drawer-backdrop {
        opacity: 1;
        visibility: visible;
    }

    /* Drawer panel */
    .mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(420px, 92vw);
        z-index: 1200;
        background:
            radial-gradient(
                ellipse 60% 40% at 100% 0%,
                rgba(22, 212, 204, 0.18) 0%,
                transparent 65%
            ),
            radial-gradient(
                ellipse 70% 50% at 0% 100%,
                rgba(198, 149, 242, 0.15) 0%,
                transparent 70%
            ),
            linear-gradient(160deg, var(--surface-deep) 0%, var(--surface-dark) 60%, var(--surface) 100%);
        box-shadow: -16px 0 48px rgba(0, 0, 0, 0.4);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overscroll-behavior: contain;
    }

    body.mobile-drawer-open .mobile-drawer {
        transform: translateX(0);
    }

    .mobile-drawer-inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
    }

    /* Header bar inside drawer */
    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
    }

    .mobile-drawer-logo img {
        height: 1.75rem;
        width: auto;
        display: block;
    }

    .mobile-drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.6rem;
        color: white;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .mobile-drawer-close:hover {
        background: rgba(255, 255, 255, 0.14);
    }

    .mobile-drawer-close:active {
        transform: scale(0.94);
    }

    .mobile-drawer-close:focus-visible {
        outline: 2px solid var(--accent-alt);
        outline-offset: 2px;
    }

    /* Scrollable nav region */
    .mobile-drawer-nav {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0.5rem 0 1rem;
        -webkit-overflow-scrolling: touch;
    }

    /* Reset all menu lists inside drawer */
    .mobile-drawer .mobile-menu,
    .mobile-drawer .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        opacity: 1;
    }

    .mobile-drawer .mobile-menu li {
        display: block;
        margin: 0;
        padding: 0;
        position: relative;
    }

    /* All anchors/labels base */
    .mobile-drawer .mobile-menu a,
    .mobile-drawer .mobile-menu .mobile-menu-label {
        display: block;
        text-decoration: none;
        color: white;
        font-weight: 500;
        line-height: 1.35;
        transition: color 0.2s ease, background 0.2s ease;
    }

    /* TOP LEVEL items */
    .mobile-drawer .mobile-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mobile-drawer .mobile-menu > li:last-child {
        border-bottom: none;
    }

    .mobile-drawer .mobile-menu > li > a,
    .mobile-drawer .mobile-menu > li > .mobile-menu-label {
        padding: 1.1rem 4rem 1.1rem 1.75rem;
        font-size: 1.15rem;
        font-weight: 600;
        font-family: 'Hubot Sans', 'Mona Sans', system-ui, sans-serif;
    }

    /* Toggle chevron button (added by JS) */
    .mobile-drawer .submenu-toggle {
        position: absolute;
        top: 0.5rem;
        right: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.6rem;
        height: 2.6rem;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0.55rem;
        color: white;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.3s ease;
    }

    .mobile-drawer .submenu-toggle:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    .mobile-drawer .submenu-toggle:focus-visible {
        outline: 2px solid var(--accent-alt);
        outline-offset: 2px;
    }

    .mobile-drawer .submenu-toggle svg {
        width: 14px;
        height: 14px;
        transition: transform 0.3s ease;
    }

    .mobile-drawer .submenu-open > .submenu-toggle {
        background: rgba(22, 212, 204, 0.12);
        border-color: rgba(22, 212, 204, 0.3);
    }

    .mobile-drawer .submenu-open > .submenu-toggle svg {
        transform: rotate(180deg);
    }

    /* Submenu (collapsed by default) */
    .mobile-drawer .mobile-menu .sub-menu {
        display: none;
        background: rgba(0, 0, 0, 0.18);
    }

    .mobile-drawer .mobile-menu .submenu-open > .sub-menu {
        display: block;
    }

    /* Position adjustments per depth */

    /* Depth 2 — direct children of top-level */
    .mobile-drawer .mobile-menu > li > .sub-menu > li > a,
    .mobile-drawer .mobile-menu > li > .sub-menu > li > .mobile-menu-label {
        padding: 0.95rem 4rem 0.95rem 2.5rem;
        font-size: 1rem;
        font-weight: 500;
    }

    /* Mega-menu column labels */
    .mobile-drawer .mobile-menu .troi-mega-menu > .sub-menu > li > a,
    .mobile-drawer .mobile-menu .troi-mega-menu > .sub-menu > li > .mobile-menu-label {
        padding: 1.25rem 1.75rem 0.45rem;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: var(--brand);
        font-family: 'Hubot Sans', 'Mona Sans', system-ui, sans-serif;
        cursor: default;
    }

    .mobile-drawer .mobile-menu .troi-mega-menu > .sub-menu > li > a:hover,
    .mobile-drawer .mobile-menu .troi-mega-menu > .sub-menu > li > a:focus-visible {
        background: transparent;
        color: var(--brand);
    }

    /* Column item children — always visible */
    .mobile-drawer .mobile-menu .troi-mega-menu > .sub-menu > li > .sub-menu {
        display: block;
        background: transparent;
    }

    /* Depth 3 — column items inside mega menus */
    .mobile-drawer .mobile-menu .troi-mega-menu > .sub-menu > li > .sub-menu > li > a {
        padding: 0.65rem 1.75rem 0.85rem;
        font-size: 1.02rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.92);
        background: transparent;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }

    .mobile-drawer .mobile-menu .troi-mega-menu > .sub-menu > li > .sub-menu > li:first-child > a {
        border-top: none;
    }

    /* Tap/hover states for real links inside drawer */
    .mobile-drawer .mobile-menu a:active,
    .mobile-drawer .mobile-menu a:hover,
    .mobile-drawer .mobile-menu a:focus-visible {
        background: rgba(22, 212, 204, 0.08);
        color: var(--accent-alt);
        outline: none;
    }

    .mobile-drawer .mobile-menu .current-menu-item > a {
        color: var(--brand);
        background: rgba(198, 149, 242, 0.06);
    }

    /* Excerpt subtitle on mobile */
    .mobile-drawer .mobile-menu .mega-menu-desc {
        display: block;
        font-size: 0.78rem;
        font-weight: 400;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.5);
        margin-top: 0.2rem;
    }

    /* Footer with Contact CTA */
    .mobile-drawer-footer {
        padding: 1rem 1.5rem 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
        background: rgba(0, 0, 0, 0.18);
    }

    .mobile-drawer-footer .button {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 0.95rem;
        padding: 1rem 1.5rem;
    }
}

/* Even smaller phones */
@media (max-width: 480px) {
    .mobile-drawer {
        width: 100vw;
    }

    .mobile-drawer-header {
        padding: 1rem 1.25rem;
    }

    .mobile-drawer .mobile-menu > li > a,
    .mobile-drawer .mobile-menu > li > .mobile-menu-label {
        padding-left: 1.25rem;
        font-size: 1.1rem;
    }

    .mobile-drawer .mobile-menu > li > .sub-menu > li > a,
    .mobile-drawer .mobile-menu > li > .sub-menu > li > .mobile-menu-label {
        padding-left: 1.5rem;
    }

    .mobile-drawer .mobile-menu .troi-mega-menu > .sub-menu > li > a,
    .mobile-drawer .mobile-menu .troi-mega-menu > .sub-menu > li > .mobile-menu-label {
        padding-left: 1.5rem;
    }

    .mobile-drawer .mobile-menu .troi-mega-menu > .sub-menu > li > .sub-menu > li > a {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .mobile-drawer-footer {
        padding: 0.75rem 1.25rem 1.25rem;
    }
}

/* Footer */
.site-footer {
    background:
        radial-gradient(ellipse at top right, rgba(55, 234, 202, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(198, 149, 242, 0.14) 0%, transparent 60%),
        linear-gradient(135deg, var(--surface-deep) 0%, var(--surface-dark) 50%, var(--surface) 100%);
    color: white;

    .footer-main {
        padding: 5rem 0 4rem 0;
    }
    
    .footer-columns {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr 2fr;
        gap: 4rem;
        
        @media (max-width: 1200px) {
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
        }
        
        @media (max-width: 768px) {
            grid-template-columns: 1fr;
            gap: 2.5rem;
        }
    }
    
    .footer-about {
        .footer-logo {
            display: block;
            margin-bottom: 1.5rem;
            
            img {
                height: 2.75rem;
                width: auto;
            }
        }
        
        .footer-blurb {
            margin: 0 0 2rem 0;
            font-size: 0.9rem;
            line-height: 1.7;
            opacity: 0.8;
        }
        
        .footer-actions {
            display: flex;
            align-items: center;
            gap: 1.25rem;
        }
    }
    
    .footer-nav {
        padding-top: 0.25rem;
    }
    
    .footer-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        
        li {
            margin-bottom: 0;
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            
            &:first-child { padding-top: 0; }
            &:last-child { border-bottom: none; }
        }
        
        a {
            color: white;
            text-decoration: none;
            opacity: 0.75;
            transition: all 0.3s ease;
            display: block;
            font-weight: 500;
            font-size: 0.9rem;
            
            &:hover {
                opacity: 1;
                color: var(--accent-alt);
                transform: translateX(2px);
            }
        }
    }
    
    .footer-offices {
        @media (max-width: 1200px) {
            grid-column: 1 / -1;
        }
    }
    
    .offices-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 0.75rem;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    }
    
    .office-card {
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.04);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition: background 0.3s ease;

        &:hover {
            background: rgba(255, 255, 255, 0.08);
        }
        
        h4 {
            color: white;
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin: 0 0 0.75rem 0;
        }
        
        address {
            font-style: normal;
            font-size: 0.85rem;
            line-height: 1.6;
            opacity: 0.7;
        }
        
        @media (max-width: 480px) {
            padding: 1.25rem;
        }
    }
    
    .social-links {
        display: flex;
        align-items: center;
        
        .social-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.5rem;
            color: white;
            text-decoration: none;
            background: rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            
            &:hover {
                background: var(--grad-brand);
                color: white;
                transform: translateY(-2px);
            }

            svg {
                width: 18px;
                height: 18px;
            }
        }
    }
    
    .footer-bottom {
        /* gradient hairline (border-box) */
        border-top: 1px solid transparent;
        background:
            linear-gradient(var(--surface-deep), var(--surface-deep)) padding-box,
            linear-gradient(90deg, transparent 0%, rgba(198, 149, 242, 0.35) 30%, rgba(55, 234, 202, 0.45) 50%, rgba(22, 212, 204, 0.35) 70%, transparent 100%) border-box;
        padding: 1.5rem 0;
        
        .footer-bottom-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            
            @media (max-width: 768px) {
                flex-direction: column;
                gap: 0.75rem;
                text-align: center;
            }
        }
        
        .copyright p {
            margin: 0;
            font-size: 0.8rem;
            opacity: 0.5;
        }
        
        .footer-legal {
            a {
                color: white;
                text-decoration: none;
                font-size: 0.8rem;
                opacity: 0.5;
                transition: all 0.3s ease;
                
                &:hover {
                    opacity: 1;
                    color: var(--accent-alt);
                }
            }
        }
    }
}

.partner-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.partner-logo {
    flex-shrink: 0;
}

.partner-logo img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 0.5rem;
}

.partner-details {
    flex: 1;
}

.partner-details p {
    margin-bottom: 1.25rem;
    color: var(--surface);
    line-height: 1.7;
    opacity: 0.9;
}

.partner-details .button {
    margin-top: 1rem;
}

/* Responsive video wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 8px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .post-content iframe,
    .blog-post-content iframe,
    .entry-content iframe {
        margin: 1rem 0;
        border-radius: 6px;
    }
    
    .post-content iframe[src*="youtube.com"],
    .post-content iframe[src*="youtu.be"],
    .post-content iframe[src*="vimeo.com"],
    .blog-post-content iframe[src*="youtube.com"],
    .blog-post-content iframe[src*="youtu.be"],
    .blog-post-content iframe[src*="vimeo.com"],
    .entry-content iframe[src*="youtube.com"],
    .entry-content iframe[src*="youtu.be"],
    .entry-content iframe[src*="vimeo.com"] {
        min-height: 200px;
    }
}

/* Page-specific overrides */
.page-id-20 {
    --brand: var(--accent);
    --brand-dark: var(--accent);
}


/* ============================================================
   ADJACENT SAME-BG SECTION COLLAPSE
   ============================================================ */
.bg-white + .bg-white {
    padding-top: 0;
}

.bg-light-grey + .bg-light-grey {
    padding-top: 0;
}

/* ============================================================
   GLOBAL UTILITIES — scrollbars, footer accents, motion, checklist
   ============================================================ */

/* ---- Custom scrollbar (WebKit) ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-deep);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        rgba(198,149,242,0.35),
        rgba(55,234,202,0.35)
    );
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        to bottom,
        rgba(198,149,242,0.55),
        rgba(55,234,202,0.55)
    );
}

/* Two-column-text divider line with gradient */
@media (min-width: 993px) {
    .two-column-text-block .two-column-text-content::after {
        content: '';
        position: absolute;
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 80%;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(198, 149, 242, 0.30) 25%,
            rgba(22, 212, 204, 0.30) 75%,
            transparent 100%
        );
    }
}

/* ============================================================
   FOOTER NAV COLUMN  — gradient divider on left edge (desktop)
   ============================================================ */
@media (min-width: 1201px) {
    .site-footer .footer-nav {
        position: relative;
    }

    .site-footer .footer-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: -2rem;
        width: 1px;
        height: 100%;
        pointer-events: none;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(198,149,242,0.20) 20%,
            rgba(55,234,202,0.25) 50%,
            rgba(22,212,204,0.20) 80%,
            transparent 100%
        );
    }
}

/* ============================================================
   FOOTER SECTION HEADING STYLE ("Navigation", etc.)
   ============================================================ */
.site-footer .footer-nav h4,
.site-footer .footer-offices h4,
.site-footer .footer-about h4 {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================================
   Reduce motion: respect user preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .page-title-block::before,
    .single-case-study .case-study-header::before,
    .single-blog-post .blog-post-header::before,
    .single-case-study .case-study-testimonial::before {
        display: none;
    }
    .hero-block__bg-orb,
    .hero-block__carousel-track { animation: none !important; }
}

/* ==========================================================================
   Reusable Checklist (.checklist on any ul)
   ========================================================================== */
ul.checklist {
    list-style: none !important;
    padding: 0 !important;
    margin: 1rem 0 1.5rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
ul.checklist li {
    position: relative;
    list-style: none !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem;
    padding: 0.55rem 0 !important;
    padding-left: 0 !important;
    margin: 0 !important;
    color: inherit;
    line-height: 1.55;
    border-bottom: 1px solid currentColor;
    border-bottom-color: rgba(52, 53, 121, 0.12);
}
ul.checklist li::before {
    content: '✓' !important;
    position: static !important;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 1.4rem !important;
    height: 1.4rem !important;
    min-width: 1.4rem;
    margin-top: 0.1rem;
    top: auto !important;
    left: auto !important;
    padding-left: 0 !important;
    transform: none !important;
    border-radius: 50% !important;
    background: var(--checklist-icon-bg, var(--brand)) !important;
    color: white !important;
    font-size: 0.7rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    font-style: normal !important;
    font-family: sans-serif !important;
}
/* On dark surfaces use teal accent + lighter rule */
.bg-surface-dark ul.checklist li,
.bg-surface ul.checklist li,
.bg-surface-light ul.checklist li,
.bg-brand ul.checklist li,
.bg-black ul.checklist li {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}
.bg-surface-dark ul.checklist,
.bg-surface ul.checklist,
.bg-surface-light ul.checklist,
.bg-brand ul.checklist,
.bg-black ul.checklist {
    --checklist-icon-bg: var(--accent);
}
@keyframes hero-carousel-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-block__container { padding-left: 2rem; padding-right: 2rem; }
    .hero-block { --hero-carousel-h: 8rem; }
}

/* Landscape phone / short laptop */
@media (max-height: 1000px) and (min-width: 900px) {
    .hero-block { padding-top: 6rem; }
    .hero-block__visual { max-width: min(56rem, 64svh); max-height: 64svh; }
    .hero-block__title { font-size: clamp(2rem, 3.8vw, 3.2rem); }
    .hero-block__description { font-size: 1.15rem; margin-bottom: 1.5rem; }
}

/* ============================================================
   Gutenberg colour classes (block editor: posts / case studies)
   ------------------------------------------------------------
   Current editor palette (see functions.php) plus back-compat for
   the previous palette slugs, so colours chosen in older content
   keep rendering after the palette was renamed. Same hexes, via
   the semantic tokens above.
   ============================================================ */
.has-brand-color{color:var(--brand)}
.has-brand-background-color{background-color:var(--brand)}
.has-accent-color{color:var(--accent)}
.has-accent-background-color{background-color:var(--accent)}
.has-accent-alt-color{color:var(--accent-alt)}
.has-accent-alt-background-color{background-color:var(--accent-alt)}
.has-surface-color{color:var(--surface)}
.has-surface-background-color{background-color:var(--surface)}
.has-surface-light-color{color:var(--surface-light)}
.has-surface-light-background-color{background-color:var(--surface-light)}
.has-white-color{color:var(--white)}
.has-white-background-color{background-color:var(--white)}
/* --- previous palette slugs (same colours) --- */
.has-pastel-lavender-color{color:var(--brand)}
.has-pastel-lavender-background-color{background-color:var(--brand)}
.has-vivid-turquoise-color{color:var(--accent)}
.has-vivid-turquoise-background-color{background-color:var(--accent)}
.has-vivid-cyan-color{color:var(--accent-alt)}
.has-vivid-cyan-background-color{background-color:var(--accent-alt)}
.has-darker-blue-color{color:var(--surface)}
.has-darker-blue-background-color{background-color:var(--surface)}
.has-mid-blue-color{color:var(--surface-light)}
.has-mid-blue-background-color{background-color:var(--surface-light)}
