/* LUSTROUS CORPORATE SOLUTIONS — visual system v2.0
   Strong editorial typography, high-contrast panels, replaceable image slots.
   Page-specific styles can be registered in config/pages.php and are loaded by the shared PHP head. */
:root {
    --navy: #102f49;
    --navy-deep: #071e2d;
    --forest: #123f32;
    --forest2: #1c5942;
    --gold: #e9aa2d;
    --gold-bright: #ffc94a;
    --lime: #d7ff3f;
    --ivory: #f8f6f0;
    --paper: #fffefa;
    --ink: #101c22;
    --muted: #65717a;
    --line: #dce2df;
    --white: #fff;
    --shadow: 0 24px 70px rgba(7, 30, 45, .14);
    --serif: 'Libre Baskerville', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
    --wrap: 1320px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --header-h: 88px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 112px
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 500 16px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

img {
    display: block;
    max-width: 100%
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
textarea,
select {
    font: inherit
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

::selection {
    background: var(--lime);
    color: var(--navy-deep)
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px
}

.skip-link {
    position: fixed;
    z-index: 3000;
    top: 12px;
    left: 12px;
    transform: translateY(-150%);
    background: var(--navy);
    color: #fff;
    padding: 12px 18px
}

.skip-link:focus {
    transform: none
}

/* progress system */
.reading-progress {
    position: fixed;
    z-index: 2000;
    inset: 0 0 auto;
    height: 4px;
    background: rgba(16, 47, 73, .08)
}

.reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--lime));
    box-shadow: 0 0 18px rgba(215, 255, 63, .6)
}

/* micro bar and navigation */
.topline {
    min-height: 32px;
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .72);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 5px max(calc((100vw - var(--wrap))/2), 28px);
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase
}

.topline strong {
    color: var(--lime);
    font-weight: 900
}

.topline-right {
    display: flex;
    gap: 18px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(255, 254, 250, .94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(16, 47, 73, .09);
    transition: box-shadow .35s, background .35s
}

.site-header.scrolled {
    box-shadow: 0 14px 40px rgba(7, 30, 45, .12);
    background: rgba(255, 254, 250, .98)
}

.nav-wrap {
    max-width: var(--wrap);
    height: var(--header-h);
    padding: 0 28px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 215px
}

.brand img {
    width: 62px;
    height: 62px;
    object-fit: contain
}

.brand-word {
    display: grid;
    line-height: 1.08
}

.brand-word strong {
    font: 800 15px var(--sans);
    letter-spacing: -.045em;
    color: var(--navy)
}

.brand-word small {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-top: 6px;
    font-weight: 700
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 27px;
    height: 100%
}

.nav-link,
.nav-trigger {
    font-size: 12px;
    font-weight: 800;
    color: #263b49;
    background: none;
    border: 0;
    padding: 14px 0;
    cursor: pointer;
    position: relative;
    letter-spacing: .01em
}

.nav-link:after,
.nav-trigger:after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 5px;
    height: 3px;
    border-radius: 5px;
    background: var(--gold);
    transition: right .3s var(--ease)
}

.nav-link:hover:after,
.nav-trigger:hover:after,
.nav-link.active:after,
.nav-item.current-group>.nav-trigger:after {
    right: 0
}

.nav-link.active,
.nav-item.current-group>.nav-trigger {
    color: var(--navy);
    font-weight: 900
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center
}

.nav-trigger .chevron {
    display: inline-block;
    margin-left: 6px;
    font-size: 13px;
    transition: transform .25s
}

.nav-item.open .chevron {
    transform: rotate(180deg)
}

/* Compact, no-scroll mega menu: categories, not all 66 child links. */
.mega-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    transform: translate(-50%, 14px);
    width: min(1160px, calc(100vw - 48px));
    max-height: none;
    overflow: visible;
    background: #fff;
    border: 1px solid rgba(16, 47, 73, .11);
    box-shadow: 0 30px 90px rgba(7, 30, 45, .2);
    border-radius: 0 0 20px 20px;
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .23s, transform .23s, visibility .23s
}

.nav-item.open .mega-menu,
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0)
}

.mega-head {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 12px 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px
}

.mega-head strong {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.04em;
    color: var(--navy)
}

.mega-head small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600
}

.mega-head a {
    font-size: 11px;
    font-weight: 900;
    color: var(--forest);
    border-bottom: 2px solid var(--lime);
    padding: 8px 0
}

.mega-card {
    position: relative;
    min-height: 92px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f5f6f1;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .25s var(--ease), background .25s, border-color .25s
}

.mega-card:hover {
    background: var(--lime);
    border-color: rgba(16, 47, 73, .1);
    transform: translateY(-3px)
}

.mega-card strong {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 900;
    color: var(--navy)
}

.mega-card small {
    font-size: 9px;
    color: #52616a;
    font-weight: 700
}

.mega-card b {
    position: absolute;
    right: 14px;
    bottom: 13px;
    color: var(--forest);
    font-size: 17px
}

.nav-cta {
    white-space: nowrap
}

.mobile-toggle {
    display: none;
    border: 0;
    background: var(--navy);
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 22px;
    cursor: pointer
}

/* ShiftEMI-inspired animated CTA: fixed geometry + sliding curved arrow tab. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 58px;
    padding: 0 31px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .005em;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    white-space: nowrap;
    transition: background .32s var(--ease), color .32s, border-color .32s, transform .32s var(--ease), box-shadow .32s
}

.btn:hover {
    transform: translateY(-3px)
}

.btn-label {
    position: relative;
    z-index: 2;
    display: inline-block;
    transform: translateX(0);
    transition: transform .36s var(--ease);
    will-change: transform
}

.btn-arrow {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    height: 100%;
    width: 62px;
    border-radius: 100px 0 0 100px;
    background: var(--lime);
    color: var(--navy-deep);
    font-style: normal;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(102%);
    transition: transform .36s var(--ease);
    will-change: transform
}

.btn:hover .btn-label {
    transform: translateX(-18px)
}

.btn:hover .btn-arrow {
    transform: translateX(0)
}

.btn-primary {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 28px rgba(16, 47, 73, .18);
    padding-right: 42px
}

.btn-primary:hover {
    background: var(--forest);
    box-shadow: 0 18px 36px rgba(16, 47, 73, .22)
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: rgba(16, 47, 73, .34)
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy)
}

.btn-light {
    background: var(--lime);
    color: var(--navy-deep)
}

.btn-light:hover {
    background: var(--gold-bright)
}

/* shared type and blocks */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--forest)
}

.eyebrow i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 9px 0 0 var(--navy);
    margin-right: 8px;
    flex: 0 0 auto
}

.section {
    padding: clamp(78px, 9vw, 140px) max(calc((100vw - var(--wrap))/2), 28px)
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2 {
    font-family: var(--sans);
    font-weight: 900;
    letter-spacing: -.065em;
    line-height: .99;
    color: var(--navy)
}

h1 {
    font-size: clamp(54px, 7.5vw, 112px)
}

h2 {
    font-size: clamp(42px, 5.4vw, 76px)
}

h3 {
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.08;
    color: var(--navy)
}

h1 em,
h2 em,
h3 em {
    font-style: normal;
    color: var(--forest)
}

.lead {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.8
}

.large-copy {
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.5;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.025em
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 58px;
    text-align: left
}

.section-heading p {
    max-width: 650px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 17px
}

.section-heading.two-col {
    display: grid;
    grid-template-columns: .5fr 1.5fr;
    text-align: left;
    max-width: none;
    gap: 55px;
    align-items: start
}

.section-heading.two-col p {
    margin-left: 0
}

.section-heading.two-col .section-index {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    color: var(--gold);
    margin-top: 14px
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--gold);
    padding: 0 0 8px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 900
}

.text-link b {
    font-size: 19px;
    transition: transform .25s
}

.text-link:hover b {
    transform: translate(5px, -2px)
}

/* Photo placeholders: visually obvious, consistent and easy to replace with img. */
.image-slot {
    position: relative;
    display: block;
    margin: 0;
    overflow: hidden;
    isolation: isolate;
    min-height: 240px;
    background: linear-gradient(135deg, #e5e9e3 0%, #f6f2e8 52%, #d8e4dc 100%);
    border: 1px solid rgba(16, 47, 73, .11);
    color: var(--navy);
    box-shadow: 0 24px 60px rgba(7, 30, 45, .12)
}

.image-slot:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(16, 47, 73, .1)), repeating-linear-gradient(135deg, transparent 0 23px, rgba(16, 47, 73, .045) 24px 25px);
    z-index: -1
}

.image-slot:after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 17px;
    font-size: 27px;
    font-weight: 300;
    color: rgba(16, 47, 73, .42)
}

.image-slot-index {
    position: absolute;
    top: 20px;
    left: 22px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .17em;
    color: var(--forest)
}

.image-slot-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    display: grid;
    gap: 6px
}

.image-slot-caption strong {
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.04em
}

.image-slot-caption small {
    max-width: 360px;
    font-size: 11px;
    line-height: 1.5;
    color: #56646b;
    font-weight: 600
}

.image-slot-corner {
    position: absolute;
    right: 22px;
    bottom: 22px;
    font-weight: 900;
    letter-spacing: .08em;
    font-size: 11px;
    color: var(--gold)
}

.image-slot:hover {
    transform: translateY(-4px);
    transition: transform .4s var(--ease)
}

.image-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.page-hero-image {
    min-height: 440px;
    border-radius: 28px 28px 28px 8px;
    background: linear-gradient(135deg, #dfebe2, #f7f1e2 55%, #b9d1c3)
}

.page-hero-image .image-slot-caption {
    left: 30px;
    bottom: 30px
}

.page-hero-image .image-slot-caption strong {
    font-size: 28px
}

.page-hero-image .image-slot-caption small {
    font-size: 12px
}

.image-slot.is-filled {
    background: #ddd
}

.image-slot.is-filled:before,
.image-slot.is-filled:after,
.image-slot.is-filled .image-slot-index,
.image-slot.is-filled .image-slot-caption,
.image-slot.is-filled .image-slot-corner {
    display: none
}

/* Home hero */
.home-hero {
    position: relative;
    isolation: isolate;
    background: var(--navy-deep);
    color: #fff;
    min-height: min(780px, calc(100svh - 120px));
    padding: clamp(70px, 8vw, 120px) max(calc((100vw - var(--wrap))/2), 28px) 78px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
    overflow: hidden
}

.home-hero:before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 66vw;
    height: 66vw;
    right: -17vw;
    top: -38vw;
    border: 1px solid rgba(215, 255, 63, .28);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(215, 255, 63, .035), 0 0 0 110px rgba(215, 255, 63, .025)
}

.home-hero:after {
    content: 'LUSTROUS';
    position: absolute;
    z-index: -1;
    right: 4vw;
    bottom: -.2em;
    font-size: clamp(100px, 19vw, 260px);
    font-weight: 900;
    letter-spacing: -.09em;
    line-height: 1;
    color: rgba(255, 255, 255, .035)
}

.home-hero .eyebrow {
    color: var(--lime)
}

.home-hero h1 {
    color: #fff;
    max-width: 700px;
    margin: 0 0 29px;
    font-size: clamp(60px, 7.6vw, 116px)
}

.home-hero h1 em {
    color: var(--lime)
}

.hero-lead {
    max-width: 600px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.7
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.home-hero .btn-outline {
    border-color: rgba(255, 255, 255, .44);
    color: #fff
}

.home-hero .hero-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 52px;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    font-weight: 700
}

.hero-proof i {
    width: 44px;
    height: 2px;
    background: var(--gold)
}

.hero-collage {
    position: relative;
    min-height: 550px;
    isolation: isolate
}

.hero-collage .image-slot {
    position: absolute
}

.collage-main {
    left: 2%;
    top: 0;
    width: 70%;
    height: 80%;
    border-radius: 180px 180px 18px 18px;
    background: linear-gradient(145deg, #dde7df, #a9c3b2 60%, #f3ead7)
}

.collage-secondary {
    right: 100px;
    bottom: -62px;
    width: 52%;
    height: 48%;
    border: 8px solid var(--navy-deep);
    border-radius: 18px 110px 18px 18px;
    background: linear-gradient(145deg, #f1e8d3, #b5cbb9 60%, #446d5d)
}

.collage-stamp {
    position: absolute;
    z-index: 4;
    left: 0;
    bottom: 12%;
    max-width: 200px;
    padding: 18px 20px;
    background: var(--lime);
    color: var(--navy-deep);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
    transform: rotate(-4deg)
}

.hero-collage .image-slot-caption strong {
    font-size: clamp(18px, 2.1vw, 27px)
}

.hero-collage .image-slot-caption small {
    color: #304740
}

/* Energy ticker */
.ticker {
    overflow: hidden;
    background: var(--lime);
    color: var(--navy-deep);
    padding: 19px 0;
    white-space: nowrap;
    border-bottom: 1px solid rgba(16, 47, 73, .1)
}

.ticker-track {
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 1400px;
    gap: 38px;
    animation: ticker 34s linear infinite
}

.ticker-track span {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase
}

.ticker-track i {
    font-size: 24px;
    font-style: normal;
    color: var(--forest)
}

@keyframes ticker {
    to {
        transform: translateX(-32%)
    }
}

/* Pathways */
.pathways {
    background: var(--ivory)
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px
}

.path-card {
    position: relative;
    min-height: 350px;
    padding: 27px 25px;
    background: #fff;
    border: 1px solid rgba(16, 47, 73, .1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    transition: transform .4s var(--ease), background .35s, border-color .35s
}

.path-card:before {
    content: '';
    position: absolute;
    inset: auto -10% -38% 35%;
    height: 75%;
    border-radius: 50%;
    background: var(--lime);
    opacity: 0;
    transform: scale(.65);
    transition: transform .6s var(--ease), opacity .4s
}

.path-card:hover {
    transform: translateY(-8px);
    background: #fff;
    border-color: var(--gold)
}

.path-card:hover:before {
    opacity: .65;
    transform: scale(1)
}

.path-card>* {
    position: relative;
    z-index: 1
}

.path-card>span {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    color: var(--forest)
}

.path-card h3 {
    font-size: clamp(25px, 2.25vw, 34px);
    margin: 45px 0 16px
}

.path-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 24px
}

.path-card>b {
    margin-top: auto;
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 6px
}

/* About slice */
.about-slice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(45px, 7vw, 100px);
    align-items: center;
    background: #fff
}

.about-art {
    position: relative
}

.about-image-slot {
    min-height: 560px;
    border-radius: 190px 18px 18px 18px;
    background: linear-gradient(135deg, #e6e9df, #c0d1c4 56%, #f5ecd9)
}

.vertical-label {
    position: absolute;
    right: -29px;
    top: 30px;
    writing-mode: vertical-rl;
    font-size: 9px;
    letter-spacing: .2em;
    font-weight: 900;
    color: var(--gold)
}

.about-copy h2 {
    margin: 0 0 27px
}

.about-copy>p:not(.eyebrow) {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.9
}

.about-copy .text-link {
    margin-top: 12px
}

/* Services section */
.service-section {
    background: var(--forest);
    color: #fff;
    position: relative;
    overflow: hidden
}

.service-section:before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, transparent 0 42px, rgba(255, 255, 255, .035) 43px 44px);
    pointer-events: none
}

.service-section .eyebrow {
    color: var(--lime)
}

.service-section h2 {
    color: #fff
}

.service-section h2 em {
    color: var(--lime)
}

.service-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    max-width: none;
    text-align: left;
    position: relative
}

.service-heading>div {
    max-width: 760px
}

.service-heading p:not(.eyebrow) {
    color: rgba(255, 255, 255, .65);
    font-size: 17px
}

.division-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.division-card {
    position: relative;
    min-height: 310px;
    padding: 29px;
    background: #1c5240;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s
}

.division-card:before {
    content: '';
    position: absolute;
    right: -70px;
    top: -90px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(215, 255, 63, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 26px rgba(215, 255, 63, .025), 0 0 0 52px rgba(215, 255, 63, .02)
}

.division-card:hover {
    background: var(--lime);
    color: var(--navy);
    transform: translateY(-8px);
    border-color: var(--lime)
}

.division-card>* {
    position: relative
}

.division-card h3 {
    font-size: clamp(23px, 2.3vw, 31px);
    color: #fff;
    margin: 48px 0 13px;
    max-width: 360px
}

.division-card p {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    line-height: 1.75
}

.division-card .division-count {
    font-size: 9px;
    color: var(--lime);
    font-weight: 900;
    letter-spacing: .13em
}

.division-card .division-icon {
    position: absolute;
    right: 25px;
    top: 22px;
    border: 1px solid rgba(215, 255, 63, .5);
    border-radius: 50%;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    color: var(--lime);
    font-size: 17px
}

.division-card .text-link {
    margin-top: auto;
    color: #fff;
    border-color: var(--gold)
}

.division-card:hover h3,
.division-card:hover .text-link {
    color: var(--navy)
}

.division-card:hover p {
    color: #385149
}

.division-card:hover .division-count,
.division-card:hover .division-icon {
    color: var(--navy);
    border-color: var(--navy)
}

/* How we work — sticky editorial column and scroll-progress journey */
.method-section {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(45px, 8vw, 120px);
    align-items: start;
    background: var(--ivory)
}

.method-intro {
    position: sticky;
    top: 145px
}

.method-intro h2 {
    margin-bottom: 25px
}

.method-intro>p:not(.eyebrow) {
    max-width: 490px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8
}

.method-steps {
    position: relative;
    padding-left: 44px;
    --process-progress: 0%
}

.method-steps:before,
.method-steps:after {
    content: '';
    z-index: -1;
    position: absolute;
    left: 9px;
    top: 15px;
    bottom: 35px;
    width: 2px;
    background: #d5ddd5
}

.method-steps:after {
    bottom: auto;
    height: var(--process-progress);
    max-height: calc(100% - 50px);
    background: var(--gold);
    transition: height .15s linear
}

.method-step {
    position: relative;
    min-height: 285px;
    padding: 8px 0 58px 38px;
    border-bottom: 1px solid rgba(16, 47, 73, .15);
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    transition: opacity .45s, transform .6s var(--ease)
}

.method-step:before {
    content: '';
    position: absolute;
    left: -43px;
    top: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ivory);
    border: 4px solid #cad3ca;
    z-index: 1;
    transition: background .3s, border-color .3s, transform .3s
}

.method-step.active:before {
    background: var(--lime);
    border-color: var(--forest);
    transform: scale(1.14)
}

.method-step>span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    color: var(--gold)
}

.method-step h3 {
    font-size: clamp(30px, 3.5vw, 48px);
    margin: 0
}

.method-step p {
    max-width: 570px;
    color: var(--muted);
    font-size: 15px
}

.method-step>b {
    display: none
}

.method-image-slot {
    min-height: 145px;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: none;
    background: linear-gradient(130deg, #e0e8df, #f5eee0)
}

.method-image-slot .image-slot-caption {
    left: 16px;
    bottom: 14px
}

.method-image-slot .image-slot-caption strong {
    font-size: 17px
}

/* Values and SaaS */
.values-section {
    background: #fff
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

.values-grid article {
    min-height: 235px;
    background: var(--navy);
    color: #fff;
    padding: 25px;
    border-radius: 13px;
    position: relative;
    overflow: hidden
}

.values-grid article:after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(215, 255, 63, .2);
    border-radius: 50%;
    right: -60px;
    bottom: -70px;
    box-shadow: 0 0 0 20px rgba(215, 255, 63, .03)
}

.values-grid article>span {
    color: var(--lime);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em
}

.values-grid h3 {
    color: #fff;
    font-size: 24px;
    margin: 42px 0 12px
}

.values-grid p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, .68);
    font-size: 13px
}

.software-slice {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(40px, 7vw, 100px);
    align-items: center;
    padding: clamp(75px, 9vw, 130px) max(calc((100vw - var(--wrap))/2), 28px);
    background: var(--lime);
    overflow: hidden
}

.product-image-slot {
    min-height: 460px;
    border-radius: 24px;
    background: linear-gradient(140deg, #0b2634, #1c5942 60%, #c7e75b);
    color: #fff
}

.product-image-slot .image-slot-index,
.product-image-slot .image-slot-caption small {
    color: rgba(255, 255, 255, .75)
}

.software-copy h2 {
    color: var(--navy-deep)
}

.software-copy h2 em {
    color: var(--forest)
}

.software-copy>p:not(.eyebrow) {
    max-width: 580px;
    color: #33483d;
    font-size: 17px;
    line-height: 1.8
}

.cta-band {
    margin: 0;
    padding: 78px max(calc((100vw - var(--wrap))/2), 28px);
    background: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    color: #fff
}

.cta-band .eyebrow {
    color: var(--lime)
}

.cta-band h2 {
    max-width: 850px;
    color: #fff;
    font-size: clamp(40px, 5.4vw, 72px);
    margin-bottom: 18px
}

.cta-band p:not(.eyebrow) {
    max-width: 640px;
    color: rgba(255, 255, 255, .7);
    font-size: 16px
}

.cta-band .btn-light {
    flex: 0 0 auto
}

/* Page/category hero */
.page-hero {
    position: relative;
    isolation: isolate;
    min-height: 550px;
    background: var(--navy-deep);
    color: #fff;
    padding: 78px max(calc((100vw - var(--wrap))/2), 28px);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(35px, 6vw, 90px);
    align-items: center;
    overflow: hidden
}

.page-hero:before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 900px;
    height: 900px;
    border: 1px solid rgba(215, 255, 63, .2);
    border-radius: 50%;
    right: -450px;
    top: -450px;
    box-shadow: 0 0 0 60px rgba(215, 255, 63, .025), 0 0 0 120px rgba(215, 255, 63, .02)
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(48px, 6.4vw, 90px);
    margin: 0 0 25px
}

.page-hero h1 em {
    color: var(--lime)
}

.page-hero .eyebrow {
    color: var(--lime)
}

.page-hero .lead {
    color: rgba(255, 255, 255, .72);
    font-size: clamp(16px, 1.35vw, 19px)
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, .56);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 30px
}

.breadcrumbs a {
    color: var(--lime)
}

.breadcrumbs a:hover {
    text-decoration: underline
}

.page-hero.compact {
    min-height: 480px
}

.page-hero .image-slot-index {
    color: var(--forest)
}

/* Generic page sections */
.story-section,
.approach-section,
.audiences,
.commitment,
.directory-note,
.category-overview,
.scope-section,
.service-intro,
.service-boundary,
.candidate-section,
.software-detail,
.contact-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(38px, 7vw, 100px);
    align-items: start
}

.story-section h2,
.category-overview h2,
.service-intro h2,
.scope-section h2,
.service-boundary h2 {
    font-size: clamp(36px, 4.7vw, 64px)
}

.story-section p:not(.eyebrow),
.category-overview p:not(.eyebrow),
.service-intro p:not(.eyebrow),
.scope-section p:not(.eyebrow),
.service-boundary p:not(.eyebrow) {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85
}

.about-pillars,
.approach-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px
}

.about-pillars article,
.approach-cards article {
    padding: 27px;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 12px
}

.about-pillars h3,
.approach-cards h3 {
    font-size: 23px;
    margin: 22px 0 10px
}

.about-pillars p,
.approach-cards p {
    font-size: 13px;
    color: var(--muted)
}

.approach-cards article>span {
    font-size: 11px;
    font-weight: 900;
    color: var(--gold)
}

.audiences {
    background: var(--ivory)
}

.audiences ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0
}

.audiences li {
    padding: 20px;
    background: #fff;
    border-left: 4px solid var(--gold);
    font-weight: 700
}

.commitment {
    background: var(--forest);
    color: #fff
}

.commitment h2 {
    color: #fff
}

.commitment p {
    color: rgba(255, 255, 255, .7)
}

.commitment-mark {
    font-size: clamp(100px, 16vw, 200px);
    font-weight: 900;
    letter-spacing: -.1em;
    color: var(--lime);
    border-right: 1px solid rgba(255, 255, 255, .2)
}

/* Directory and service listings */
.directory-section {
    background: var(--ivory)
}

.directory-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 35px
}

.search-box {
    width: min(460px, 100%);
    position: relative
}

.search-box input {
    width: 100%;
    height: 58px;
    border: 1px solid #cad3cd;
    background: #fff;
    border-radius: 999px;
    padding: 0 22px 0 54px;
    outline: none
}

.search-box:before {
    content: '⌕';
    position: absolute;
    left: 21px;
    top: 6px;
    font-size: 30px;
    color: var(--forest)
}

.category-facts {
    display: flex;
    gap: 25px;
    /* border-left: 1px solid var(--line); */
    padding-left: 24px;
    flex-direction: column;
    height: -webkit-fill-available;
}

.category-facts strong {
    display: block;
    font-size: 27px;
    font-weight: 900;
    color: var(--navy)
}

.category-facts small {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    font-weight: 800
}

.directory-grid,
.division-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
}

.division-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.directory-card {
    min-height: 280px;
    background: #fff;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    transition: transform .4s var(--ease), box-shadow .4s, border-color .3s
}

.directory-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--gold)
}

.directory-card .division-count {
    font-size: 9px;
    font-weight: 900;
    color: var(--forest);
    letter-spacing: .14em
}

.directory-card h3 {
    font-size: 27px;
    margin: 32px 0 13px
}

.directory-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7
}

.directory-card .text-link {
    margin-top: auto
}

.service-listing {
    background: #fff
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px
}

.service-card {
    position: relative;
    min-height: 240px;
    padding: 23px;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    transition: transform .35s var(--ease), background .3s, border-color .3s
}

.service-card:hover {
    background: var(--lime);
    border-color: var(--lime);
    transform: translateY(-6px)
}

.service-card .service-number {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    color: var(--gold)
}

.service-card h3 {
    font-size: 24px;
    margin: 29px 0 11px
}

.service-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65
}

.service-card b {
    margin-top: auto;
    font-size: 12px;
    color: var(--forest)
}

/* Process rail */
.engagement-section {
    background: var(--navy-deep);
    color: #fff
}

.engagement-section h2,
.engagement-section h3 {
    color: #fff
}

.engagement-section p {
    color: rgba(255, 255, 255, .7)
}

.process-rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    margin-top: 45px
}

.process-rail:before {
    content: '';
    position: absolute;
    left: 4%;
    right: 8%;
    top: 19px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, .2))
}

.process-rail article {
    position: relative;
    padding: 0 25px 18px 0
}

.process-rail article>span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--lime);
    border-radius: 50%;
    color: var(--navy);
    font-weight: 900;
    font-size: 12px;
    position: relative;
    z-index: 1
}

.process-rail h3 {
    font-size: 28px;
    margin: 22px 0 9px
}

.process-rail p {
    font-size: 14px;
    max-width: 330px
}

.engagement-section .process-rail article.active>span {
    background: var(--gold);
    transform: scale(1.08)
}

/* Individual service page content */
.service-intro {
    grid-template-columns: .76fr 1.1fr 280px;
    gap: 35px;
    align-items: start
}

.service-intro>div:last-of-type {
    max-width: 700px
}

.audience-callout {
    padding: 18px 20px;
    background: var(--ivory);
    border-left: 4px solid var(--gold);
    font-size: 14px !important;
    color: var(--navy) !important
}

.service-compass {
    position: sticky;
    top: 118px;
    background: var(--navy);
    color: #fff;
    padding: 23px;
    border-radius: 15px;
    box-shadow: 0 18px 46px rgba(7, 30, 45, .16)
}

.service-compass .compass-kicker {
    color: var(--lime);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase
}

.service-compass h3 {
    font-size: 21px;
    line-height: 1.16;
    color: #fff;
    margin: 12px 0 7px
}

.service-compass>p {
    font-size: 11px;
    color: rgba(255, 255, 255, .62);
    margin-bottom: 18px
}

.compass-links {
    display: grid;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding-top: 12px
}

.compass-links a {
    padding: 8px 9px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, .68);
    transition: background .2s, color .2s
}

.compass-links a:before {
    content: '↗';
    margin-right: 8px;
    color: var(--gold)
}

.compass-links a.active,
.compass-links a:hover {
    background: rgba(215, 255, 63, .12);
    color: #fff
}

.compass-current {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: 9px;
    color: rgba(255, 255, 255, .6)
}

.compass-current i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 5px rgba(215, 255, 63, .12)
}

.scope-section {
    background: var(--ivory)
}

.scope-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px
}

.scope-list li {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid rgba(16, 47, 73, .08);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700
}

.scope-list li span {
    color: var(--forest);
    font-size: 17px;
    font-weight: 900
}

.service-process {
    background: var(--forest);
    color: #fff;
    padding: 90px max(calc((100vw - var(--wrap))/2), 28px)
}

.service-process h2 {
    color: #fff
}

.service-process h2 em {
    color: var(--lime)
}

.service-process .eyebrow {
    color: var(--lime)
}

.service-process .process-rail:before {
    background: linear-gradient(90deg, var(--lime), rgba(255, 255, 255, .24))
}

.service-boundary {
    background: var(--lime);
    align-items: center
}

.service-boundary h2 {
    color: var(--navy-deep)
}

.service-boundary h2 em {
    color: var(--forest)
}

.service-boundary p {
    color: #30443c !important
}

.related-section {
    background: #fff
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.related-card {
    padding: 25px;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform .3s var(--ease), background .3s
}

.related-card:hover {
    transform: translateY(-5px);
    background: var(--lime)
}

.related-card small {
    font-size: 10px;
    color: var(--gold);
    font-weight: 900
}

.related-card h3 {
    font-size: 23px;
    margin: 22px 0 10px
}

.related-card p {
    font-size: 13px;
    color: var(--muted)
}

.related-card b {
    margin-top: auto;
    font-size: 12px;
    color: var(--forest)
}

/* FAQs and form */
.faq-section {
    background: var(--ivory)
}

.faq-list {
    max-width: 930px;
    margin: auto;
    border-top: 1px solid #cdd6cf
}

.faq-list details {
    border-bottom: 1px solid #cdd6cf;
    padding: 0 4px
}

.faq-list summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 40px 24px 0;
    font-size: 17px;
    font-weight: 900;
    color: var(--navy);
    position: relative
}

.faq-list summary::-webkit-details-marker {
    display: none
}

.faq-list summary:after {
    content: '+';
    position: absolute;
    right: 7px;
    top: 18px;
    font-size: 28px;
    color: var(--forest);
    transition: transform .25s
}

.faq-list details[open] summary:after {
    transform: rotate(45deg)
}

.faq-list details p {
    max-width: 800px;
    color: var(--muted);
    font-size: 14px;
    padding: 0 0 20px;
    line-height: 1.75
}

.contact-section {
    background: var(--ivory)
}

.contact-form {
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px
}

.form-field {
    display: grid;
    gap: 7px
}

.form-field.full {
    grid-column: 1/-1
}

.form-field label {
    font-size: 11px;
    font-weight: 900;
    color: var(--navy)
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #cfd8d1;
    border-radius: 7px;
    background: #fff;
    padding: 14px 15px;
    color: var(--ink);
    outline: none
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(28, 89, 66, .1)
}

.form-field textarea {
    min-height: 145px;
    resize: vertical
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px
}

.form-note {
    font-size: 11px;
    color: var(--muted)
}

.toast {
    position: fixed;
    z-index: 1800;
    right: 24px;
    bottom: 24px;
    max-width: 350px;
    padding: 16px 19px;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .3s, transform .3s
}

.toast.visible {
    opacity: 1;
    transform: none
}

/* Footer */
.site-footer {
    position: relative;
    background: var(--navy-deep);
    color: #fff;
    padding: 78px max(calc((100vw - var(--wrap))/2), 28px) 22px;
    overflow: hidden
}

.site-footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--lime), var(--forest2))
}

.footer-top {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 45px;
    padding-bottom: 48px
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px
}

.footer-brand img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 3px
}

.footer-brand span {
    display: grid;
    line-height: 1.15
}

.footer-brand strong {
    font-size: 15px;
    font-weight: 900
}

.footer-brand small {
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-top: 5px
}

.footer-about p {
    max-width: 370px;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .58)
}

.footer-col {
    display: grid;
    align-content: start;
    gap: 10px
}

.footer-col h3 {
    color: var(--lime);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 6px 0 10px
}

.footer-col a,
.footer-legal a {
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
    transition: color .2s, transform .2s
}

.footer-col a:hover,
.footer-legal a:hover {
    color: var(--lime);
    transform: translateX(3px)
}

.footer-note {
    border-top: 1px solid rgba(255, 255, 255, .13);
    padding: 20px 0;
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
    line-height: 1.65
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .13);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, .5);
    font-size: 10px
}

.footer-legal {
    display: flex;
    gap: 18px
}

.back-top {
    position: fixed;
    z-index: 1500;
    right: 23px;
    bottom: 23px;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: var(--lime);
    color: var(--navy);
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(7, 30, 45, .22);
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: opacity .3s, transform .3s
}

.back-top.visible {
    opacity: 1;
    transform: none;
    pointer-events: auto
}

.back-top:hover {
    transform: translateY(-4px)
}

/* Scroll in/out reveal. Directional re-entry mirrors the reference journey behavior. */
.scroll-section {
    opacity: 0;
    transform: translateY(55px) scale(.99);
    transition: opacity .8s var(--ease), transform .9s var(--ease);
    will-change: opacity, transform
}

.scroll-section.is-visible {
    opacity: 1;
    transform: none
}

.scroll-section.is-above {
    transform: translateY(-45px) scale(.99)
}

.reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity .7s var(--ease), transform .75s var(--ease)
}

.reveal.in-view {
    opacity: 1;
    transform: none
}

.division-card,
.path-card,
.values-grid article,
.service-card,
.related-card {
    transition-delay: var(--delay, 0ms)
}

.scroll-section.is-visible .division-card,
.scroll-section.is-visible .path-card,
.scroll-section.is-visible .values-grid article,
.scroll-section.is-visible .service-card {
    animation: card-rise .7s var(--ease) both;
    animation-delay: var(--delay, 0ms)
}

@keyframes card-rise {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.985)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.page-hero>.image-slot,
.hero-collage {
    animation: hero-in 1s .15s var(--ease) both
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(34px) scale(.97)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.home-hero .hero-copy>* {
    animation: copy-in .8s var(--ease) both
}

.home-hero .hero-copy>*:nth-child(1) {
    animation-delay: .05s
}

.home-hero .hero-copy>*:nth-child(2) {
    animation-delay: .14s
}

.home-hero .hero-copy>*:nth-child(3) {
    animation-delay: .25s
}

.home-hero .hero-copy>*:nth-child(4) {
    animation-delay: .38s
}

.home-hero .hero-copy>*:nth-child(5) {
    animation-delay: .5s
}

@keyframes copy-in {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* Responsive */
@media(max-width:1100px) {
    .main-nav {
        gap: 17px
    }

    .nav-wrap {
        gap: 14px
    }

    .brand {
        min-width: 180px
    }

    .brand img {
        width: 54px;
        height: 54px
    }

    .nav-link,
    .nav-trigger {
        font-size: 11px
    }

    .path-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .service-intro {
        grid-template-columns: .7fr 1fr 250px;
        gap: 22px
    }

    .division-card h3 {
        font-size: 25px
    }
}

@media(max-width:900px) {
    :root {
        --header-h: 76px
    }

    .topline {
        padding-inline: 20px
    }

    .topline-right {
        display: none
    }

    .nav-wrap {
        padding-inline: 22px
    }

    .brand {
        min-width: 0
    }

    .main-nav {
        position: fixed;
        z-index: 1300;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(88vw, 440px);
        height: 100svh;
        background: var(--navy-deep);
        padding: 100px 27px 35px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        transform: translateX(105%);
        transition: transform .48s var(--ease);
        box-shadow: -25px 0 70px rgba(7, 30, 45, .22)
    }

    .main-nav.mobile-open {
        transform: translateX(0)
    }

    .nav-link,
    .nav-trigger {
        width: 100%;
        text-align: left;
        color: #fff;
        font-size: 17px;
        padding: 19px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .14)
    }

    .nav-link:after,
    .nav-trigger:after {
        display: none
    }

    .nav-item {
        height: auto;
        display: block
    }

    .nav-item .chevron {
        float: right
    }

    .mega-menu {
        display: none;
        position: static;
        transform: none !important;
        width: 100%;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, .06);
        padding: 12px;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto
    }

    .nav-item.open .mega-menu {
        display: grid
    }

    .mega-head {
        grid-column: 1/-1;
        padding: 6px 5px 12px;
        border-color: rgba(255, 255, 255, .16)
    }

    .mega-head strong {
        color: #fff
    }

    .mega-head small {
        color: rgba(255, 255, 255, .55)
    }

    .mega-head a {
        color: var(--lime)
    }

    .mega-card {
        min-height: 82px;
        padding: 11px;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .08)
    }

    .mega-card strong {
        color: #fff;
        font-size: 11px
    }

    .mega-card small {
        color: rgba(255, 255, 255, .55)
    }

    .mega-card b {
        color: var(--lime)
    }

    .mobile-toggle {
        display: block;
        z-index: 1400
    }

    .nav-cta {
        margin-left: auto
    }

    .home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 80px
    }

    .hero-collage {
        min-height: 500px;
        max-width: 760px;
        width: 100%;
        margin: auto
    }

    .page-hero {
        grid-template-columns: 1fr;
        min-height: auto
    }

    .page-hero-image {
        min-height: 390px
    }

    .about-slice,
    .software-slice {
        grid-template-columns: 1fr
    }

    .about-art {
        max-width: 650px
    }

    .method-section {
        grid-template-columns: 1fr
    }

    .method-intro {
        position: relative;
        top: auto
    }

    .service-intro {
        grid-template-columns: 1fr 1fr
    }

    .service-compass {
        grid-column: 1/-1;
        position: sticky;
        top: 80px;
        z-index: 40;
        display: grid;
        grid-template-columns: 1fr 1.7fr;
        gap: 8px;
        align-items: center
    }

    .service-compass h3 {
        margin: 6px 0
    }

    .service-compass>p {
        margin: 0
    }

    .compass-links {
        grid-column: 1/-1;
        display: flex;
        flex-wrap: wrap
    }

    .compass-current {
        display: none
    }

    .footer-top {
        grid-template-columns: 1fr 1fr
    }

    .footer-about {
        grid-column: 1/-1
    }
}

@media(max-width:640px) {
    body {
        font-size: 15px
    }

    .topline {
        font-size: 8px;
        padding-inline: 15px
    }

    .topline-message {
        display: none
    }

    .nav-wrap {
        padding-inline: 16px
    }

    .brand img {
        width: 48px;
        height: 48px
    }

    .brand-word strong {
        font-size: 13px
    }

    .brand-word small {
        font-size: 8px
    }

    .nav-cta {
        display: none !important
    }

    .home-hero {
        padding: 65px 20px 54px
    }

    .home-hero h1 {
        font-size: clamp(50px, 13vw, 76px)
    }

    .hero-lead {
        font-size: 16px
    }

    .hero-actions .btn {
        width: 100%
    }

    .hero-collage {
        min-height: 360px
    }

    .collage-main {
        width: 78%;
        height: 82%;
        left: 0
    }

    .collage-secondary {
        width: 53%;
        height: 43%;
        border-width: 5px
    }

    .collage-stamp {
        bottom: 9%;
        max-width: 165px;
        padding: 12px;
        font-size: 8px
    }

    .section {
        padding: 70px 20px
    }

    .section-heading {
        margin-bottom: 35px
    }

    .section-heading.two-col {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .section-index {
        margin: 0 !important
    }

    .section-heading h2,
    .method-intro h2 {
        font-size: clamp(37px, 10vw, 55px)
    }

    .path-grid,
    .division-grid,
    .directory-grid,
    .service-grid,
    .related-grid {
        grid-template-columns: 1fr
    }

    .path-card {
        min-height: 260px
    }

    .path-card h3 {
        margin: 28px 0 12px
    }

    .about-image-slot {
        min-height: 360px;
        border-radius: 120px 14px 14px
    }

    .vertical-label {
        right: -15px
    }

    .service-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .division-card {
        min-height: 265px
    }

    .method-section {
        gap: 28px
    }

    .method-steps {
        padding-left: 28px
    }

    .method-steps:before,
    .method-steps:after {
        left: 7px
    }

    .method-step {
        padding-left: 25px;
        min-height: 265px
    }

    .method-step:before {
        left: -29px;
        width: 18px;
        height: 18px
    }

    .method-image-slot {
        min-height: 130px
    }

    .values-grid {
        grid-template-columns: 1fr
    }

    .values-grid article {
        min-height: 185px
    }

    .values-grid h3 {
        margin: 24px 0 10px
    }

    .software-slice {
        padding: 70px 20px;
        gap: 34px
    }

    .product-image-slot {
        min-height: 300px
    }

    .cta-band {
        padding: 60px 20px;
        align-items: flex-start;
        flex-direction: column
    }

    .cta-band .btn {
        width: 100%
    }

    .page-hero {
        padding: 57px 20px 55px;
        gap: 30px
    }

    .page-hero h1 {
        font-size: clamp(45px, 12vw, 66px)
    }

    .page-hero-image {
        min-height: 300px;
        border-radius: 18px 18px 18px 5px
    }

    .story-section,
    .approach-section,
    .audiences,
    .commitment,
    .directory-note,
    .category-overview,
    .scope-section,
    .service-intro,
    .service-boundary,
    .candidate-section,
    .software-detail,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .service-intro {
        display: flex;
        flex-direction: column
    }

    .service-compass {
        position: relative;
        top: auto;
        display: block;
        width: 100%;
        order: 3
    }

    .compass-links {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .scope-list ul {
        grid-template-columns: 1fr
    }

    .process-rail {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 28px
    }

    .process-rail:before {
        left: 19px;
        top: 20px;
        bottom: 25px;
        width: 2px;
        height: auto;
        right: auto
    }

    .process-rail article {
        padding: 0 0 20px 58px
    }

    .process-rail article>span {
        position: absolute;
        left: 0;
        top: 0
    }

    .process-rail h3 {
        font-size: 24px;
        margin: 4px 0 8px
    }

    .service-process {
        padding: 70px 20px
    }

    .audiences ul {
        grid-template-columns: 1fr
    }

    .about-pillars,
    .approach-cards {
        grid-template-columns: 1fr
    }

    .directory-tools {
        align-items: stretch;
        flex-direction: column
    }

    .category-facts {
        border-left: 0;
        padding-left: 0
    }

    .service-card {
        min-height: 200px
    }

    .related-grid {
        grid-template-columns: 1fr
    }

    .contact-form {
        padding: 22px 17px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .form-field.full {
        grid-column: auto
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column
    }

    .form-actions .btn {
        width: 100%
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .footer-about {
        grid-column: auto
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column
    }

    .footer-legal {
        flex-wrap: wrap
    }

    .site-footer {
        padding: 62px 20px 20px
    }

    .back-top {
        right: 15px;
        bottom: 15px
    }

    .ticker-track {
        animation-duration: 25s
    }

    .image-slot-caption {
        left: 17px;
        right: 17px;
        bottom: 17px
    }

    .image-slot-caption strong {
        font-size: 19px
    }

    .service-compass h3 {
        font-size: 19px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }

    .scroll-section,
    .reveal {
        opacity: 1 !important;
        transform: none !important
    }

    .scroll-section.is-above {
        transform: none !important
    }
}

/* v2 refinements */
.nav-wrap {
    position: relative
}

.nav-item {
    position: static
}

.mega-menu {
    left: 50%;
    right: auto
}

.category-image-slot {
    grid-column: 1/-1;
    min-height: 270px;
    max-height: 340px;
    border-radius: 14px;
    box-shadow: none;
    height: -webkit-fill-available;
}

.compass-related {
    display: grid;
    gap: 7px;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, .15)
}

.compass-related small {
    font-size: 9px;
    letter-spacing: .13em;
    color: var(--lime);
    font-weight: 900
}

.compass-related a {
    font-size: 11px;
    color: rgba(255, 255, 255, .72);
    font-weight: 700
}

.compass-related a:hover {
    color: #fff
}

@media(max-width:900px) {
    .nav-item {
        position: relative
    }

    .mega-menu {
        left: auto;
        right: auto
    }
}

/* Persistent service compass: appears after the service hero and stays alongside the page content. */
@media(min-width:1101px) {
    .service-intro {
        grid-template-columns: .78fr 1.22fr;
        position: relative
    }

    .service-compass {
        position: fixed;
        z-index: 1050;
        top: 132px;
        right: max(calc((100vw - var(--wrap))/2), 24px);
        width: 252px;
        max-height: none;
        overflow: visible;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(20px);
        transition: opacity .32s var(--ease), transform .4s var(--ease), visibility .32s
    }

    .service-compass.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none
    }

    main:has(.service-compass) .section {
        padding-right: max(calc((100vw - var(--wrap))/2 + 300px), 340px)
    }

    main:has(.service-compass) .service-process {
        padding-right: max(calc((100vw - var(--wrap))/2 + 300px), 340px)
    }

    main:has(.service-compass) .cta-band {
        padding-right: max(calc((100vw - var(--wrap))/2 + 300px), 340px)
    }
}

/* Progressive enhancement: content remains visible if JavaScript is unavailable. */
.scroll-section,
.reveal {
    opacity: 1;
    transform: none
}

.motion-ready .scroll-section {
    opacity: 0;
    transform: translateY(55px) scale(.99)
}

.motion-ready .scroll-section.is-visible {
    opacity: 1;
    transform: none
}

.motion-ready .scroll-section.is-above {
    transform: translateY(-45px) scale(.99)
}

.motion-ready .reveal {
    opacity: 0;
    transform: translateY(38px)
}

.motion-ready .reveal.in-view {
    opacity: 1;
    transform: none
}

@media(max-width:1100px) {
    .service-compass {
        position: sticky;
        top: 88px;
        z-index: 1050;
        display: grid;
        grid-template-columns: .8fr 1.2fr;
        align-items: center;
        gap: 8px;
        width: auto;
        max-height: none;
        overflow: visible;
        margin: 0 28px 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto
    }

    .service-compass h3 {
        margin: 6px 0
    }

    .service-compass>p {
        margin: 0
    }

    .compass-links {
        grid-column: 1/-1;
        display: flex;
        flex-wrap: wrap
    }

    .compass-current {
        display: none
    }

    .compass-related {
        grid-column: 1/-1;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 7px 14px
    }

    .compass-related small {
        width: 100%
    }
}

@media(max-width:900px) {
    .service-compass {
        margin-inline: 22px
    }
}

@media(max-width:640px) {
    .service-compass {
        top: 78px;
        display: block;
        margin: 0 16px 16px;
        padding: 14px 15px
    }

    .service-compass h3 {
        font-size: 19px
    }

    .service-compass>p {
        font-size: 10px;
        margin-bottom: 10px
    }

    .compass-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3px
    }

    .compass-links a {
        font-size: 10px;
        padding: 7px 6px
    }

    .compass-related {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 9px;
        padding-top: 8px
    }

    .compass-related small {
        grid-column: 1/-1
    }

    .compass-related a {
        font-size: 10px
    }
}



/* Centralized PHP edition: configurable navigation, search, forms, insights and tools */
body.header-static .site-header {
    position: relative;
    top: auto
}

body.header-sticky .site-header {
    position: sticky;
    top: 0
}

.search-open {
    border: 1px solid rgba(16, 47, 73, .18);
    background: transparent;
    color: var(--navy);
    width: 43px;
    height: 43px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s, transform .2s
}

.search-open:hover {
    background: var(--lime);
    transform: translateY(-2px)
}

.nav-wrap {
    gap: 18px
}

.main-nav {
    gap: clamp(11px, 1.35vw, 22px)
}

.resource-mega {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.tools-mega {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(1120px, calc(100vw - 40px))
}

.tools-mega .mega-card {
    min-height: 105px
}

.resource-mega .mega-card {
    min-height: 92px
}

.site-search-overlay,
.lead-popup {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px
}

.site-search-overlay[hidden],
.lead-popup[hidden] {
    display: none !important
}

.site-search-backdrop,
.lead-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 20, 31, .72);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px)
}

/* Stable search backdrop — avoids GPU blur compositing glitches */
.site-search-backdrop {
    position: absolute !important;
    inset: 0;
    background: rgba(5, 20, 31, 0.78);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.site-search-panel {
    position: relative;
    z-index: 1;
    width: min(880px, 100%);
    max-height: min(86vh, 900px);
    overflow: auto;
    background: var(--paper);
    border-radius: 20px;
    padding: clamp(24px, 5vw, 58px);
    box-shadow: 0 40px 110px rgba(0, 0, 0, .35)
}

.site-search-panel h2 {
    font-size: clamp(38px, 6vw, 70px);
    margin: 0 55px 25px 0
}

.search-close,
.popup-close {
    position: absolute;
    right: 20px;
    top: 18px;
    border: 0;
    background: var(--navy);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 27px;
    cursor: pointer
}

.site-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #cad3cd;
    border-radius: 14px;
    padding: 0 20px;
    height: 68px;
    color: var(--forest)
}

.site-search-input-wrap span {
    font-size: 30px
}

.site-search-input-wrap input {
    border: 0;
    outline: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: var(--ink);
    font-size: 17px
}

.search-hint,
.search-start {
    font-size: 12px;
    color: var(--muted);
    margin: 12px 0 18px
}

.site-search-results {
    display: grid;
    gap: 8px
}

.site-search-result {
    position: relative;
    display: block;
    padding: 17px 48px 17px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: transform .2s, border-color .2s
}

.site-search-result:hover {
    transform: translateX(4px);
    border-color: var(--gold)
}

.site-search-result-meta {
    display: block;
    color: var(--forest);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em
}

.site-search-result strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
    margin: 4px 0
}

.site-search-result p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6
}

.site-search-result>b {
    position: absolute;
    right: 18px;
    top: 23px;
    color: var(--forest);
    font-size: 20px
}

body.search-open,
body.popup-open {
    overflow: hidden
}

.lead-popup {
    z-index: 3100
}

.lead-popup-card {
    position: relative;
    z-index: 1;
    width: min(540px, 100%);
    max-height: 88vh;
    overflow: auto;
    padding: clamp(24px, 4vw, 42px);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 40px 110px rgba(0, 0, 0, .35)
}

.lead-popup-card h2 {
    font-size: clamp(36px, 5vw, 53px);
    margin: 8px 45px 13px 0
}

.lead-popup-card>p {
    color: var(--muted);
    font-size: 14px
}

.popup-kicker {
    font-size: 10px;
    letter-spacing: .16em;
    font-weight: 900;
    color: var(--forest)
}

.popup-form {
    display: grid;
    gap: 12px
}

.popup-form>label {
    display: grid;
    gap: 6px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 900
}

.popup-form input:not([type=checkbox]),
.popup-form select {
    width: 100%;
    min-height: 45px;
    border: 1px solid #cfd8d1;
    border-radius: 7px;
    padding: 10px 12px;
    background: #fff
}

.popup-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 11px;
    color: var(--muted)
}

.popup-consent input {
    margin-top: 3px
}

.popup-form .btn {
    width: 100%
}

.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important
}

.captcha-slot {
    grid-column: 1/-1;
    min-height: 0
}

.captcha-slot:empty {
    display: none
}

.form-status {
    min-height: 18px;
    font-size: 12px;
    color: var(--forest);
    font-weight: 700
}

.js-ajax-form button[disabled] {
    opacity: .65;
    cursor: wait
}

.contact-form .form-grid>label,
.cv-form .form-grid>label {
    display: grid;
    gap: 7px;
    font-size: 11px;
    font-weight: 900;
    color: var(--navy)
}

.contact-form .form-grid input:not([type=checkbox]),
.contact-form .form-grid select,
.contact-form .form-grid textarea,
.cv-form .form-grid input:not([type=checkbox]),
.cv-form .form-grid select,
.cv-form .form-grid textarea {
    width: 100%;
    border: 1px solid #cfd8d1;
    border-radius: 7px;
    background: #fff;
    padding: 14px 15px;
    color: var(--ink);
    outline: none
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.cv-form input:focus,
.cv-form select:focus,
.cv-form textarea:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(28, 89, 66, .1)
}

.contact-form .consent,
.cv-form .consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted)
}

.contact-form .consent input,
.cv-form .consent input {
    margin-top: 4px
}

.contact-form .form-heading span,
.cv-form .form-heading span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    color: var(--gold)
}

.contact-form .form-heading p,
.cv-form .form-heading p {
    color: var(--muted);
    font-size: 12px
}

.trusted-by {
    background: var(--ivory);
    padding: 60px max(calc((100vw - var(--wrap))/2), 28px);
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
    align-items: center;
    overflow: hidden
}

.trusted-by-heading h2 {
    font-size: clamp(32px, 4vw, 54px);
    margin: 0 0 12px
}

.trusted-by-heading p {
    color: var(--muted);
    font-size: 13px
}

.trusted-logo-window {
    overflow: hidden;
    position: relative;
    display: flex;
    gap: 18px;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent)
}

.trusted-logo-track {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
    animation: trusted-scroll 32s linear infinite
}

.trusted-logo-window:hover .trusted-logo-track {
    animation-play-state: paused
}

.trusted-logo-track:nth-child(2) {
    position: absolute;
    left: 100%;
    top: 0
}

.trusted-logo-placeholder {
    width: 158px;
    height: 84px;
    flex: 0 0 158px;
    border: 1px dashed rgba(16, 47, 73, .26);
    border-radius: 12px;
    background: rgba(255, 255, 255, .8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--navy)
}

.trusted-logo-placeholder span {
    font-size: 8px;
    letter-spacing: .14em;
    color: var(--gold);
    font-weight: 900
}

.trusted-logo-placeholder strong {
    font-size: 11px;
    letter-spacing: .08em
}

.trusted-logo-track {
    animation-name: trusted-scroll
}

@keyframes trusted-scroll {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-100%)
    }
}

.resource-category-grid,
.tools-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
}

.resource-category-card,
.tool-directory-card {
    padding: 25px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform .3s, box-shadow .3s
}

.resource-category-card:hover,
.tool-directory-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow)
}

.resource-category-card>span,
.tool-directory-card>span,
.insight-number {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    color: var(--gold)
}

.resource-category-card h3,
.tool-directory-card h3 {
    font-size: 22px;
    margin: 27px 0 9px
}

.resource-category-card p,
.tool-directory-card p {
    font-size: 13px;
    color: var(--muted)
}

.resource-category-card b,
.tool-directory-card b {
    margin-top: auto;
    font-size: 11px;
    color: var(--forest)
}

.insights-listing {
    background: var(--ivory)
}

.insight-category {
    padding: 35px 0 45px;
    border-top: 1px solid #d4dcd5;
    scroll-margin-top: 110px
}

.insight-category-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px
}

.insight-category-heading h3 {
    font-size: clamp(25px, 3vw, 38px);
    margin: 0
}

.insight-category-heading .eyebrow {
    margin-bottom: 10px
}

.insight-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px
}

.insight-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 22px;
    min-height: 255px;
    display: flex;
    flex-direction: column
}

.insight-card h3 {
    font-size: 21px;
    line-height: 1.2;
    margin: 22px 0 10px
}

.insight-card h3 a:hover {
    color: var(--forest)
}

.insight-card p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7
}

.insight-card .text-link {
    margin-top: auto;
    align-self: start
}

.resource-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: var(--lime)
}

.resource-cta h2 {
    font-size: clamp(38px, 5vw, 64px)
}

.resource-cta p:not(.eyebrow) {
    max-width: 650px;
    color: #36483c
}

.article-hero h1 {
    font-size: clamp(42px, 6vw, 82px);
    max-width: 850px
}

.article-meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    margin-top: 25px
}

.article-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 65px;
    align-items: start
}

.article-body {
    max-width: 850px
}

.article-intro {
    font-size: clamp(19px, 2vw, 25px);
    line-height: 1.55;
    font-weight: 700;
    color: var(--navy)
}

.article-body section {
    padding: 25px 0;
    border-bottom: 1px solid var(--line)
}

.article-body h2 {
    font-size: clamp(27px, 3vw, 38px);
    margin: 0 0 14px
}

.article-body p {
    color: #4e5c63;
    line-height: 1.9
}

.article-sidebar {
    position: sticky;
    top: 115px;
    padding: 24px;
    background: var(--navy);
    color: #fff;
    border-radius: 14px
}

.article-sidebar>span {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    color: var(--lime)
}

.article-sidebar h3 {
    color: #fff;
    font-size: 24px;
    margin: 15px 0 10px
}

.article-sidebar p {
    font-size: 12px;
    color: rgba(255, 255, 255, .67)
}

.article-sidebar hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    margin: 24px 0
}

.article-related-link {
    display: block;
    padding: 10px 0;
    color: #fff;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .13)
}

.article-sidebar .text-link {
    margin-top: 18px;
    color: #fff
}

.article-disclaimer {
    margin-top: 35px;
    padding: 20px;
    background: var(--ivory);
    border-left: 4px solid var(--gold)
}

.article-disclaimer strong {
    color: var(--navy);
    font-size: 12px
}

.article-disclaimer p {
    font-size: 12px;
    margin: 7px 0 0
}

.tools-directory {
    background: var(--ivory)
}

.tools-workspace {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 45px;
    align-items: start;
    scroll-margin-top: 100px
}

.tools-workspace.alternate {
    background: #f0f2ec
}

.tool-section-heading h2 {
    font-size: clamp(36px, 4.5vw, 60px)
}

.tool-section-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8
}

.tool-panel {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 45px rgba(7, 30, 45, .06)
}

.tool-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

.tool-fields label,
.tool-select-label,
.interview-practice label {
    display: grid;
    gap: 7px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 900
}

.tool-fields label.full {
    grid-column: 1/-1
}

.tool-fields input,
.tool-fields textarea,
.tool-select-label select,
.interview-practice textarea {
    width: 100%;
    border: 1px solid #cfd8d1;
    border-radius: 7px;
    padding: 12px 13px;
    background: #fff;
    color: var(--ink);
    font-weight: 500
}

.tool-result {
    margin-top: 22px;
    padding: 22px;
    border-radius: 12px;
    background: var(--navy);
    color: #fff
}

.tool-result>span {
    display: block;
    color: var(--lime);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em
}

.tool-result>strong {
    display: block;
    font-size: 36px;
    margin: 8px 0 13px
}

.tool-result>div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-size: 12px
}

.tool-result small {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, .65);
    font-size: 10px
}

.tool-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 18px 0
}

.resume-preview {
    margin-top: 24px;
    padding: 35px;
    border: 1px solid var(--line);
    background: #fff;
    min-height: 300px
}

.resume-preview h3 {
    font-size: 32px;
    margin-bottom: 6px
}

.resume-preview h4 {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--forest);
    margin: 23px 0 7px
}

.resume-preview p {
    font-size: 13px;
    white-space: pre-wrap;
    color: #4e5c63
}

.planner-progress {
    margin-bottom: 20px
}

.planner-progress strong {
    display: block;
    color: var(--navy);
    font-size: 13px;
    margin-bottom: 8px
}

.planner-progress>div {
    height: 8px;
    background: var(--ivory);
    border-radius: 20px;
    overflow: hidden
}

.planner-progress>div span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--forest);
    transition: width .25s
}

.onboarding-checklist,
.compliance-checklist {
    display: grid;
    gap: 10px
}

.onboarding-checklist label,
.compliance-checklist label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 12px;
    color: #47575f;
    background: #fff
}

.onboarding-checklist input,
.compliance-checklist input {
    margin-top: 3px;
    accent-color: var(--forest)
}

.compliance-checklist h3 {
    margin: 20px 0 2px;
    font-size: 19px
}

.generated-output {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #f6f7f3;
    border: 1px solid var(--line);
    padding: 22px;
    border-radius: 10px;
    color: var(--ink);
    font: 500 12px/1.8 var(--sans)
}

.tool-select-label {
    max-width: 380px;
    margin-bottom: 20px
}

.interview-question-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.interview-question {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 9px;
    padding: 13px;
    font-size: 12px;
    color: var(--navy);
    cursor: pointer
}

.interview-question span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900
}

.interview-practice {
    margin-top: 20px
}

.interview-practice p,
.tool-helper {
    font-size: 11px;
    color: var(--muted)
}

.career-portal-panel {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 25px;
    align-items: center
}

.career-portal-panel h3 {
    font-size: 28px;
    margin: 13px 0
}

.career-portal-panel p {
    color: var(--muted);
    font-size: 13px
}

.career-status {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    color: var(--forest)
}

.career-portal-note {
    padding: 22px;
    background: var(--ivory);
    border-radius: 10px
}

.career-portal-note strong {
    font-size: 13px;
    color: var(--navy)
}

.career-portal-note p {
    margin: 8px 0 0
}

.tools-legal-note {
    padding-top: 35px;
    padding-bottom: 35px;
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .72);
    font-size: 12px
}

.tools-legal-note p {
    max-width: 1100px;
    margin: 0 auto
}

.tools-legal-note strong {
    color: var(--lime)
}

.cv-application-section {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 45px;
    align-items: start;
    background: var(--ivory);
    scroll-margin-top: 110px
}

.cv-application-copy h2 {
    font-size: clamp(38px, 4.8vw, 62px)
}

.cv-application-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 14px
}

.cv-file-guidance {
    padding-left: 18px;
    color: var(--muted);
    font-size: 12px
}

.cv-form {
    padding: 28px
}

.cv-form .form-grid {
    grid-template-columns: 1fr 1fr
}

.cv-form label.full {
    grid-column: 1/-1
}

.cv-form .form-grid small {
    font-size: 10px;
    color: var(--muted);
    font-weight: 500
}

.cv-form .form-actions {
    margin-top: 4px
}

.sitemap-dynamic-intro {
    margin-bottom: 45px
}

.sitemap-group {
    margin-bottom: 32px
}

.sitemap-group>div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px
}

.sitemap-group>div a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy)
}

.sitemap-group>div a:hover {
    border-color: var(--gold);
    background: var(--lime)
}

@media(max-width:1200px) {
    .main-nav {
        gap: 12px
    }

    .nav-link,
    .nav-trigger {
        font-size: 10px
    }

    .nav-wrap {
        gap: 12px
    }

    .brand {
        min-width: 180px
    }

    .brand-word strong {
        font-size: 13px
    }

    .nav-cta {
        padding-inline: 20px
    }

    .tools-workspace {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .tool-section-heading {
        max-width: 760px
    }
}

@media(max-width:900px) {
    .trusted-by {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .site-search-panel {
        max-height: 90vh
    }

    .tools-mega {
        grid-template-columns: 1fr 1fr
    }

    .article-content {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .article-sidebar {
        position: relative;
        top: auto
    }

    .cv-application-section {
        grid-template-columns: 1fr;
        gap: 26px
    }

    .resource-category-grid,
    .tools-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .insight-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .sitemap-group>div {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .career-portal-panel {
        grid-template-columns: 1fr
    }
}

@media(max-width:640px) {
    .search-open {
        width: 40px;
        height: 40px;
        font-size: 26px
    }

    .nav-wrap {
        gap: 8px
    }

    .search-open {
        margin-left: auto
    }

    .site-search-overlay,
    .lead-popup {
        padding: 10px
    }

    .site-search-panel {
        padding: 24px 17px;
        border-radius: 14px;
        max-height: 94vh
    }

    .site-search-panel h2 {
        font-size: 38px;
        margin-top: 8px
    }

    .site-search-input-wrap {
        height: 56px;
        padding-inline: 12px
    }

    .site-search-input-wrap input {
        font-size: 14px
    }

    .search-close,
    .popup-close {
        right: 12px;
        top: 12px;
        width: 36px;
        height: 36px
    }

    .lead-popup-card {
        max-height: 96vh;
        padding: 24px 17px;
        border-radius: 14px
    }

    .lead-popup-card h2 {
        font-size: 38px
    }

    .trusted-by {
        padding: 50px 18px
    }

    .trusted-logo-placeholder {
        width: 130px;
        flex-basis: 130px;
        height: 70px
    }

    .resource-category-grid,
    .tools-card-grid,
    .insight-card-grid {
        grid-template-columns: 1fr
    }

    .insight-category-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .insight-card {
        min-height: 215px
    }

    .resource-cta {
        align-items: flex-start;
        flex-direction: column
    }

    .tool-panel {
        padding: 18px 14px
    }

    .tool-fields {
        grid-template-columns: 1fr
    }

    .tool-fields label.full {
        grid-column: auto
    }

    .interview-question-list {
        grid-template-columns: 1fr
    }

    .cv-form {
        padding: 22px 15px
    }

    .cv-form .form-grid {
        grid-template-columns: 1fr
    }

    .cv-form label.full {
        grid-column: auto
    }

    .sitemap-group>div {
        grid-template-columns: 1fr
    }

    .article-meta {
        gap: 8px;
        flex-direction: column
    }

    .article-body h2 {
        font-size: 28px
    }

    .tools-workspace {
        padding-inline: 20px
    }

    .tool-actions .btn {
        width: 100%
    }
}

@media print {
    body.print-mode * {
        visibility: hidden !important
    }

    body.print-mode .print-target,
    body.print-mode .print-target * {
        visibility: visible !important
    }

    body.print-mode .print-target {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 22px !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: none !important
    }

    body.print-mode .print-target button {
        display: none !important
    }
}


/* Corrections / accessibility hardening */
/* The header shell includes the topline, so both move together in sticky mode. */
#site-header.site-header-shell {
    position: relative;
    z-index: 1250
}

body.header-sticky #site-header.site-header-shell {
    position: sticky;
    top: 0;
    z-index: 1250
}

body.header-static #site-header.site-header-shell {
    position: relative;
    top: auto;
    z-index: 1250
}

#site-header .site-header {
    position: relative;
    top: auto;
    z-index: 1
}

/* Native hidden must win over display:grid/flex declarations. */
[hidden],
.directory-grid[hidden],
.search-results[hidden],
.site-search-overlay[hidden],
.lead-popup[hidden] {
    display: none !important
}

#service-search-results {
    display: grid;
    gap: 10px;
    margin-top: 22px
}

.service-search-empty {
    padding: 22px 24px;
    margin: 0;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px
}

#service-search-results .search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--navy)
}

#service-search-results .search-result:hover {
    border-color: var(--gold);
    background: #fbfcf7
}

/* Form controls use the same visual language as the site CTA. */
.contact-form .form-grid>label.consent,
.cv-form .form-grid>label.consent,
.tool-fields>label.consent,
.popup-form>label.popup-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    grid-column: 1/-1;
    line-height: 1.55
}

.contact-form .consent input,
.cv-form .consent input,
.tool-fields .consent input,
.popup-consent input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--forest)
}

.contact-form .consent span,
.cv-form .consent span,
.tool-fields .consent span,
.popup-consent span {
    display: block;
    flex: 1
}

.contact-form .form-actions .btn,
.cv-form .form-actions .btn,
.business-requirement-form .tool-actions .btn,
.popup-form>.btn {
    min-width: 215px;
    min-height: 58px
}

.cv-form input[type=file]::file-selector-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    padding: 12px 19px;
    margin: 0 14px 0 0;
    font: 800 11px/1 var(--sans);
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .2s, transform .2s
}

.cv-form input[type=file]::file-selector-button:hover {
    background: var(--forest);
    transform: translateY(-1px)
}

.cv-form input[type=file] {
    padding: 9px 10px !important;
    border: 1px dashed #aabbb1 !important;
    background: #fbfcf8 !important;
    min-height: 54px;
    cursor: pointer
}

.contact-form .form-actions,
.cv-form .form-actions {
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap
}

.contact-form .form-actions small,
.cv-form .form-actions small {
    flex: 1 1 240px;
    max-width: 480px;
    color: var(--muted);
    font-size: 10px
}

/* Full website directory in the footer. */
.footer-brand-row {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .13)
}

.footer-directory {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
    padding: 36px 0 42px
}

.footer-directory-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px
}

.footer-directory-group>h3 {
    color: var(--lime);
    font-size: 12px;
    letter-spacing: .11em;
    text-transform: uppercase;
    margin: 0 0 9px
}

.footer-directory-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .62);
    overflow-wrap: anywhere;
    transition: color .2s, transform .2s
}

.footer-directory-link:hover,
.footer-directory-link.active {
    color: var(--lime)
}

.footer-directory-link.active {
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 4px
}

.footer-service-group {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 8px
}

.footer-service-group summary {
    list-style: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    line-height: 1.4;
    padding: 2px 15px 2px 0;
    position: relative
}

.footer-service-group summary::-webkit-details-marker {
    display: none
}

.footer-service-group summary:after {
    content: '+';
    position: absolute;
    right: 0;
    color: var(--lime);
    font-size: 15px;
    top: 0
}

.footer-service-group[open] summary:after {
    content: '−'
}

.footer-service-group>.footer-directory-link {
    margin: 7px 0 0 10px
}

.footer-bottom .footer-directory-link {
    font-size: 10px
}

/* Trusted-by marquee: two equal content groups create an exact seamless loop. */
.trusted-logo-window {
    display: block;
    min-width: 0
}

.trusted-logo-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    will-change: transform;
    animation: trusted-marquee 42s linear infinite
}

.trusted-logo-group {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
    padding-right: 18px
}

.trusted-logo-track .trusted-logo-placeholder {
    flex: 0 0 158px;
    width: 158px
}

.trusted-logo-window:hover .trusted-logo-track {
    animation-play-state: paused
}

@keyframes trusted-marquee {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* Editable list controls in the HR tools. */
.tool-list-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 4px
}

.tool-list-controls .btn {
    min-height: 44px;
    padding-inline: 19px;
    font-size: 11px
}

.tool-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative
}

.tool-item-text {
    flex: 1;
    min-width: 0;
    outline: none;
    border-radius: 4px
}

.tool-item-text[contenteditable="true"] {
    background: #f4f7ed;
    box-shadow: 0 0 0 2px var(--gold);
    padding: 2px 4px
}

.tool-item-edit-hint {
    font-size: 10px;
    color: var(--muted);
    margin: 8px 0 13px
}

.tool-item-remove {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #a0463b;
    font-weight: 900;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1.4
}

.tool-item-remove:hover {
    color: #d02f24
}

.tool-preference-section {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 28px 24px
}

.tool-preference-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f4f5ef;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer
}

.tool-preference-toggle input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--forest)
}

.tool-preference-toggle span {
    display: grid;
    gap: 4px
}

.tool-preference-toggle strong {
    font-size: 12px;
    color: var(--navy)
}

.tool-preference-toggle small,
.tool-preference-note {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.55
}

.tool-preference-note {
    margin: 8px 4px 0
}

.site-cookie-notice {
    position: fixed;
    z-index: 3200;
    left: 22px;
    right: 22px;
    bottom: 20px;
    max-width: 1050px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 17px 20px;
    border-radius: 14px;
    background: var(--navy-deep);
    color: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .13)
}

.site-cookie-notice[hidden] {
    display: none !important
}

.site-cookie-notice strong {
    display: block;
    color: var(--lime);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 4px
}

.site-cookie-notice p {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
    line-height: 1.55
}

.site-cookie-notice a {
    color: var(--lime);
    text-decoration: underline;
    text-underline-offset: 3px
}

.site-cookie-notice .btn {
    min-height: 45px;
    flex: 0 0 auto;
    font-size: 11px;
    padding-inline: 22px
}

@media(max-width:900px) {
    .footer-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px
    }

    .footer-service-directory {
        grid-column: 1/-1;
        columns: 2;
        display: block
    }

    .footer-service-directory>h3 {
        column-span: all
    }

    .footer-service-group {
        break-inside: avoid;
        margin: 0 0 14px
    }

    .footer-service-group>.footer-directory-link {
        display: block
    }

    .trusted-by {
        grid-template-columns: 1fr
    }

    .trusted-logo-window {
        max-width: 100%
    }
}

@media(max-width:640px) {
    .footer-directory {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .footer-service-directory {
        columns: 1;
        grid-column: auto
    }

    .footer-service-directory>h3 {
        column-span: none
    }

    .trusted-logo-group {
        gap: 12px;
        padding-right: 12px
    }

    .trusted-logo-track .trusted-logo-placeholder {
        flex-basis: 130px;
        width: 130px;
        height: 70px
    }

    .site-cookie-notice {
        left: 10px;
        right: 10px;
        bottom: 10px;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 15px
    }

    .site-cookie-notice .btn {
        width: 100%
    }

    .tool-preference-section {
        padding-inline: 18px
    }
}


/* Semantic checklist row layout: the remove control is a sibling of the checkbox label. */
.onboarding-checklist .tool-check-item,
.compliance-checklist .tool-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: #47575f
}

.onboarding-checklist .tool-check-label,
.compliance-checklist .tool-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 12px;
    font-weight: 500
}

.onboarding-checklist .tool-check-label input,
.compliance-checklist .tool-check-label input {
    flex: 0 0 auto;
    margin: 3px 0 0;
    accent-color: var(--forest)
}

/* ==========================================
   INDEPENDENT FULL-SCREEN SEARCH
   ========================================== */

#site-search-overlay {
    position: fixed !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;

    margin: 0 !important;
    padding: 24px !important;

    display: grid;
    place-items: center;

    z-index: 2147483647 !important;

    isolation: isolate !important;
    overflow: auto !important;

    background: transparent !important;

    transform: none !important;
    filter: none !important;
}

#site-search-overlay[hidden] {
    display: none !important;
}

/* Covers the entire viewport and blocks background interaction */
#site-search-overlay .site-search-backdrop {
    position: absolute !important;
    inset: 0 !important;

    z-index: 0 !important;

    background: rgba(5, 20, 31, .82) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    pointer-events: auto !important;
}

/* Search window */
#site-search-overlay .site-search-panel {
    position: relative !important;
    z-index: 1 !important;

    width: min(880px, 100%);
    max-height: calc(100dvh - 48px);

    margin: auto !important;

    overflow-y: auto;
    overscroll-behavior: contain;

    pointer-events: auto !important;

    transform: none !important;
    filter: none !important;
}

/* Prevent background scrolling without moving the navbar */
body.search-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

/* =====================================================
   LUSTROUS FOOTER — COMPANY LEFT / DIRECTORY RIGHT
   No dropdowns. All links remain visible.
   ===================================================== */
.site-footer.footer-directory-layout {
    padding-top: 62px;
    padding-bottom: 22px;
}

.footer-main-layout {
    display: grid;
    grid-template-columns: minmax(220px, .78fr) minmax(0, 2.22fr);
    gap: clamp(34px, 5vw, 76px);
    align-items: start;
    padding-bottom: 42px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.footer-company-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-company-column .footer-brand {
    margin-bottom: 22px;
}

.footer-company-tagline {
    margin: 0 0 9px;
    color: var(--lime);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .015em;
}

.footer-company-description {
    max-width: 330px;
    margin: 0 0 21px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    line-height: 1.8;
}

.footer-company-links,
.footer-contact-links,
.footer-social-links,
.footer-link-list {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 8px;
}

.footer-company-links {
    margin-bottom: 21px;
}

.footer-contact-links {
    gap: 6px;
    margin-bottom: 16px;
}

.footer-contact-links a,
.footer-social-links a {
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    overflow-wrap: anywhere;
}

.footer-contact-links a:hover,
.footer-social-links a:hover {
    color: var(--lime);
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 22px;
}

.footer-social-links a {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
}

.footer-company-cta {
    min-height: 48px;
    padding-inline: 22px;
    font-size: 11px;
}

.footer-navigation-column {
    min-width: 0;
}

.footer-utility-row {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(145px, .78fr) minmax(145px, .78fr);
    gap: clamp(20px, 2.7vw, 38px);
    align-items: start;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.footer-utility-group {
    min-width: 0;
}

.footer-group-heading {
    margin-bottom: 12px;
}

.footer-group-heading>span {
    display: block;
    margin-bottom: 7px;
    color: var(--gold);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .16em;
}

.footer-group-heading h3 {
    margin: 0;
    color: var(--lime);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -.02em;
}

.footer-feature-link {
    display: inline-block;
    margin: 0 0 13px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 4px;
}

.footer-directory-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    transition: color .2s, transform .2s;
}

.footer-directory-link:hover,
.footer-directory-link.active {
    color: var(--lime);
}

.footer-directory-link.active {
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.footer-resource-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 18px;
    align-items: start;
}

.footer-resource-topic {
    min-width: 0;
}

.footer-topic-title {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .91);
    font-size: 9px;
    font-weight: 900;
    line-height: 1.4;
}

.footer-topic-title:hover {
    color: var(--lime);
}

.footer-resource-topic>.footer-directory-link {
    margin: 0 0 5px 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(215, 255, 63, .2);
    font-size: 9px;
    line-height: 1.4;
}

.footer-link-list {
    gap: 9px;
}

.footer-tools-group .footer-directory-link,
.footer-guides-group .footer-directory-link {
    font-size: 10px;
}

.footer-services-section {
    padding-top: 31px;
}

.footer-services-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.footer-services-heading>a {
    flex: 0 0 auto;
    color: var(--lime);
    font-size: 10px;
    font-weight: 900;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;
}

.footer-services-heading .footer-group-heading {
    margin: 0;
}

.footer-services-heading .footer-group-heading h3 {
    font-size: 22px;
}

.footer-services-grid {
    columns: 3;
    column-gap: clamp(20px, 2.5vw, 36px);
    column-fill: balance;
}

.footer-service-category {
    display: inline-block;
    width: 100%;
    min-width: 0;
    margin: 0 0 22px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.footer-service-category-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-service-category-heading>a {
    color: #fff;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 900;
}

.footer-service-category-heading>a:hover,
.footer-service-category-heading>a.active {
    color: var(--lime);
}

.footer-service-category-heading>span {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .4);
    font-size: 8px;
    white-space: nowrap;
}

.footer-service-links {
    display: grid;
    gap: 5px;
}

.footer-service-links .footer-directory-link {
    padding-left: 8px;
    border-left: 1px solid rgba(215, 255, 63, .18);
    font-size: 9px;
    line-height: 1.4;
}

.footer-note {
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
    color: rgba(255, 255, 255, .43);
    font-size: 9px;
    line-height: 1.65;
}

.site-footer.footer-directory-layout .footer-bottom {
    padding-top: 18px;
    border-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
}

.site-footer.footer-directory-layout .footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.site-footer.footer-directory-layout .footer-legal .footer-directory-link {
    font-size: 9px;
}

@media (max-width: 1100px) {
    .footer-main-layout {
        grid-template-columns: minmax(190px, .7fr) minmax(0, 2fr);
        gap: 28px;
    }

    .footer-utility-row {
        grid-template-columns: minmax(0, 1.3fr) minmax(125px, .8fr) minmax(125px, .8fr);
        gap: 18px;
    }

    .footer-resource-categories {
        gap: 12px;
    }

    .footer-services-grid {
        columns: 2;
    }
}

@media (max-width: 760px) {
    .site-footer.footer-directory-layout {
        padding-top: 48px;
    }

    .footer-main-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-company-column {
        padding-bottom: 27px;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .footer-company-description {
        max-width: 540px;
    }

    .footer-utility-row {
        grid-template-columns: 1.3fr .8fr;
        gap: 26px 20px;
    }

    .footer-resources-group {
        grid-column: 1/-1;
    }

    .footer-resource-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-services-grid {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .footer-utility-row {
        grid-template-columns: 1fr 1fr;
    }

    .footer-resources-group {
        grid-column: 1/-1;
    }

    .footer-resource-categories {
        grid-template-columns: 1fr 1fr;
        gap: 14px 12px;
    }

    .footer-services-grid {
        columns: 1;
    }

    .footer-services-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .site-footer.footer-directory-layout .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==========================================================
   NATIVE MODAL SEARCH — BROWSER TOP LAYER
   The dialog is opened with showModal(). The browser promotes
   it above all page stacking contexts and makes the page inert.
   ========================================================== */
#site-search-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: clamp(12px, 3vh, 28px);
    border: 0;
    box-sizing: border-box;
    background: transparent;
    color: inherit;
    overflow: auto;
    overscroll-behavior: contain;
}

#site-search-overlay:not([open]) {
    display: none;
}

#site-search-overlay[open] {
    display: grid;
    place-items: center;
}

#site-search-overlay::backdrop {
    background: rgba(5, 20, 31, .82);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#site-search-overlay .site-search-panel {
    position: relative;
    width: min(880px, 100%);
    max-height: calc(100dvh - 48px);
    margin: auto;
    overflow: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
}


/* =====================================================
   LUSTROUS — COMPACT FOOTER SYSTEM
   ===================================================== */

.site-footer.footer-compact {
    padding-top: 60px;
    padding-bottom: 22px;
}

/* Primary footer layout */

.footer-compact-top {
    display: grid;
    grid-template-columns: 1.3fr .75fr 1.15fr .85fr;
    gap: clamp(24px, 3.5vw, 52px);
    padding-bottom: 42px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.footer-compact-top>section {
    min-width: 0;
}

.footer-compact-brand p {
    max-width: 340px;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    line-height: 1.8;
    margin: 16px 0 22px;
}

.footer-compact-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
}

.footer-compact-column>h3 {
    color: var(--lime);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .11em;
    margin: 5px 0 12px;
}

/* Shared links */

.footer-compact-link,
.footer-accordion-links a,
.footer-service-links a {
    width: fit-content;
    max-width: 100%;
    color: rgba(255, 255, 255, .65);
    font-size: 11px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    transition: color .2s, transform .2s;
}

.footer-compact-link:hover,
.footer-accordion-links a:hover,
.footer-service-links a:hover,
.footer-compact-link.active {
    color: var(--lime);
}

.footer-compact-link.active,
.footer-service-links a.active {
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 4px;
}

/* Resource accordion */

.footer-compact-accordions {
    display: grid;
    gap: 5px;
    margin-top: 4px;
}

.footer-link-accordion {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 7px;
}

.footer-link-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    color: rgba(255, 255, 255, .8);
    font-size: 11px;
    font-weight: 700;
}

.footer-link-accordion summary::-webkit-details-marker,
.footer-service-accordion summary::-webkit-details-marker {
    display: none;
}

.footer-accordion-icon {
    flex: 0 0 auto;
    color: var(--lime);
    font-size: 17px;
    line-height: 1;
    transition: transform .25s;
}

.footer-link-accordion[open] .footer-accordion-icon,
.footer-service-accordion[open] .footer-accordion-icon {
    transform: rotate(45deg);
}

.footer-accordion-links {
    display: grid;
    gap: 8px;
    padding: 12px 0 7px 12px;
    border-left: 2px solid rgba(215, 255, 63, .3);
    margin-top: 8px;
}

/* Services directory */

.footer-services-compact {
    padding: 35px 0 38px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.footer-services-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-kicker {
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.footer-services-heading h3 {
    color: #fff;
    font-size: 28px;
    margin: 5px 0 0;
}

.footer-services-heading>a {
    color: var(--lime);
    font-size: 11px;
    font-weight: 900;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 6px;
}

/* Three-column, closed-by-default service directory */

.footer-service-accordion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 9px;
}

.footer-service-accordion {
    min-width: 0;
    align-self: start;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    overflow: hidden;
    transition: background .2s, border-color .2s;
}

.footer-service-accordion:hover,
.footer-service-accordion[open] {
    background: rgba(255, 255, 255, .085);
    border-color: rgba(215, 255, 63, .35);
}

.footer-service-accordion.has-active-page:not([open]) {
    border-color: rgba(215, 255, 63, .55);
    background: rgba(215, 255, 63, .07);
}

.footer-service-accordion summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 12px 15px;
    cursor: pointer;
    list-style: none;
}

.footer-service-title {
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.4;
}

.footer-service-count {
    color: rgba(255, 255, 255, .43);
    font-size: 9px;
    white-space: nowrap;
}

.footer-service-accordion.has-active-page .footer-service-title {
    color: var(--lime);
}

.footer-service-links {
    display: grid;
    gap: 9px;
    padding: 13px 15px 16px;
    border-top: 1px solid rgba(255, 255, 255, .11);
}

.footer-service-links a {
    padding-left: 10px;
    border-left: 2px solid rgba(215, 255, 63, .22);
}

.footer-service-links a.active {
    border-left-color: var(--gold);
    color: var(--lime);
}

/* Footer note and bottom */

.site-footer.footer-compact .footer-note {
    margin: 22px 0;
}

.site-footer.footer-compact .footer-bottom {
    flex-wrap: wrap;
}

/* Tablet */

@media(max-width:1100px) {
    .footer-compact-top {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .footer-compact-brand {
        grid-column: 1/-1;
        max-width: 650px;
    }
}

/* Mobile */

@media(max-width:700px) {
    .site-footer.footer-compact {
        padding-top: 45px;
    }

    .footer-compact-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    .footer-compact-brand {
        grid-column: 1/-1;
    }

    .footer-compact-column {
        gap: 10px;
    }

    .footer-service-accordion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-services-heading h3 {
        font-size: 24px;
    }
}

@media(max-width:430px) {
    .footer-compact-top {
        grid-template-columns: 1fr;
    }

    .footer-service-accordion-grid {
        grid-template-columns: 1fr;
    }

    .footer-services-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .footer-service-accordion summary {
        min-height: 54px;
    }
}


/* =====================================================
   LUSTROUS — COMPACT FOOTER SYSTEM
   ===================================================== */

.site-footer.footer-compact {
    padding-top: 60px;
    padding-bottom: 22px;
}

/* Primary footer layout */

.footer-compact-top {
    display: grid;
    grid-template-columns: 1.3fr .75fr 1.15fr .85fr;
    gap: clamp(24px, 3.5vw, 52px);
    padding-bottom: 42px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.footer-compact-top>section {
    min-width: 0;
}

.footer-compact-brand p {
    max-width: 340px;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    line-height: 1.8;
    margin: 16px 0 22px;
}

.footer-compact-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
}

.footer-compact-column>h3 {
    color: var(--lime);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .11em;
    margin: 5px 0 12px;
}

/* Shared links */

.footer-compact-link,
.footer-accordion-links a,
.footer-service-links a {
    width: fit-content;
    max-width: 100%;
    color: rgba(255, 255, 255, .65);
    font-size: 11px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    transition: color .2s, transform .2s;
}

.footer-compact-link:hover,
.footer-accordion-links a:hover,
.footer-service-links a:hover,
.footer-compact-link.active {
    color: var(--lime);
}

.footer-compact-link.active,
.footer-service-links a.active {
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 4px;
}

/* Resource accordion */

.footer-compact-accordions {
    display: grid;
    gap: 5px;
    margin-top: 4px;
}

.footer-link-accordion {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 7px;
}

.footer-link-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    color: rgba(255, 255, 255, .8);
    font-size: 11px;
    font-weight: 700;
}

.footer-link-accordion summary::-webkit-details-marker,
.footer-service-accordion summary::-webkit-details-marker {
    display: none;
}

.footer-accordion-icon {
    flex: 0 0 auto;
    color: var(--lime);
    font-size: 17px;
    line-height: 1;
    transition: transform .25s;
}

.footer-link-accordion[open] .footer-accordion-icon,
.footer-service-accordion[open] .footer-accordion-icon {
    transform: rotate(45deg);
}

.footer-accordion-links {
    display: grid;
    gap: 8px;
    padding: 12px 0 7px 12px;
    border-left: 2px solid rgba(215, 255, 63, .3);
    margin-top: 8px;
}

/* Services directory */

.footer-services-compact {
    padding: 35px 0 38px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.footer-services-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-kicker {
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.footer-services-heading h3 {
    color: #fff;
    font-size: 28px;
    margin: 5px 0 0;
}

.footer-services-heading>a {
    color: var(--lime);
    font-size: 11px;
    font-weight: 900;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 6px;
}

/* Three-column, closed-by-default service directory */

.footer-service-accordion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 9px;
}

.footer-service-accordion {
    min-width: 0;
    align-self: start;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    overflow: hidden;
    transition: background .2s, border-color .2s;
}

.footer-service-accordion:hover,
.footer-service-accordion[open] {
    background: rgba(255, 255, 255, .085);
    border-color: rgba(215, 255, 63, .35);
}

.footer-service-accordion.has-active-page:not([open]) {
    border-color: rgba(215, 255, 63, .55);
    background: rgba(215, 255, 63, .07);
}

.footer-service-accordion summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 12px 15px;
    cursor: pointer;
    list-style: none;
}

.footer-service-title {
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.4;
}

.footer-service-count {
    color: rgba(255, 255, 255, .43);
    font-size: 9px;
    white-space: nowrap;
}

.footer-service-accordion.has-active-page .footer-service-title {
    color: var(--lime);
}

.footer-service-links {
    display: grid;
    gap: 9px;
    padding: 13px 15px 16px;
    border-top: 1px solid rgba(255, 255, 255, .11);
}

.footer-service-links a {
    padding-left: 10px;
    border-left: 2px solid rgba(215, 255, 63, .22);
}

.footer-service-links a.active {
    border-left-color: var(--gold);
    color: var(--lime);
}

/* Footer note and bottom */

.site-footer.footer-compact .footer-note {
    margin: 22px 0;
}

.site-footer.footer-compact .footer-bottom {
    flex-wrap: wrap;
}

/* Tablet */

@media(max-width:1100px) {
    .footer-compact-top {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .footer-compact-brand {
        grid-column: 1/-1;
        max-width: 650px;
    }
}

/* Mobile */

@media(max-width:700px) {
    .site-footer.footer-compact {
        padding-top: 45px;
    }

    .footer-compact-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    .footer-compact-brand {
        grid-column: 1/-1;
    }

    .footer-compact-column {
        gap: 10px;
    }

    .footer-service-accordion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-services-heading h3 {
        font-size: 24px;
    }
}

@media(max-width:430px) {
    .footer-compact-top {
        grid-template-columns: 1fr;
    }

    .footer-service-accordion-grid {
        grid-template-columns: 1fr;
    }

    .footer-services-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .footer-service-accordion summary {
        min-height: 54px;
    }
}

/* =====================================================
   SERVICE COMPASS — COMPACT DESKTOP / HIDDEN MOBILE
   ===================================================== */

/* Desktop: compact floating navigation */
@media (min-width: 1101px) {

    .service-compass {
        position: fixed !important;

        top: 135px !important;
        right: max(calc((100vw - var(--wrap))/2), 24px) !important;

        width: 218px !important;
        max-height: min(390px, calc(100vh - 165px)) !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        padding: 15px !important;
        border-radius: 13px !important;

        z-index: 1050;
    }

    /* Remove redundant information */
    .service-compass>p,
    .service-compass .compass-related {
        display: none !important;
    }

    .service-compass .compass-kicker {
        font-size: 8px;
    }

    .service-compass h3 {
        font-size: 16px !important;
        line-height: 1.3;
        margin: 8px 0 11px !important;
    }

    /* Two-column navigation */
    .service-compass .compass-links {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px !important;
        padding-top: 9px !important;
    }

    .service-compass .compass-links a {
        min-width: 0;
        padding: 7px 6px !important;
        font-size: 9px !important;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .service-compass .compass-links a:before {
        margin-right: 4px;
    }

    .service-compass .compass-current {
        margin-top: 9px !important;
        padding-top: 8px !important;
        font-size: 8px !important;
    }

    /* Reserve less room for the smaller card */
    main:has(.service-compass) .section {
        padding-right:
            max(calc((100vw - var(--wrap))/2 + 260px), 280px) !important;
    }

    main:has(.service-compass) .service-process {
        padding-right:
            max(calc((100vw - var(--wrap))/2 + 260px), 280px) !important;
    }

    main:has(.service-compass) .cta-band {
        padding-right:
            max(calc((100vw - var(--wrap))/2 + 260px), 280px) !important;
    }
}

/* Tablet and mobile: completely remove the compass */
@media (max-width: 1100px) {
    .service-compass {
        display: none !important;
    }
}

/* ==========================================================
   FINAL SCROLL REVEAL OVERRIDES
   Re-entering sections animate from the direction they enter.
   Keep this block at the very end of site.css.
   ========================================================== */
.scroll-section {
    opacity: 1;
    transform: none;
}

html.motion-ready .scroll-section {
    opacity: 0;
    transform: translate3d(0, 55px, 0) scale(.99);
    transition: opacity .8s var(--ease), transform .9s var(--ease);
    will-change: opacity, transform;
}

html.motion-ready .scroll-section.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

html.motion-ready .scroll-section.is-above {
    opacity: 0;
    transform: translate3d(0, -45px, 0) scale(.99);
}

html.motion-ready .scroll-section.is-below {
    opacity: 0;
    transform: translate3d(0, 55px, 0) scale(.99);
}

/* Individual reveals remain one-time animations. */
.reveal {
    opacity: 1;
    transform: none;
}

html.motion-ready .reveal:not(.scroll-section) {
    opacity: 0;
    transform: translate3d(0, 38px, 0);
    transition: opacity .7s var(--ease), transform .75s var(--ease);
}

html.motion-ready .reveal:not(.scroll-section).in-view {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    margin-bottom: 10px;
}

@media (prefers-reduced-motion: reduce) {

    html.motion-ready .scroll-section,
    html.motion-ready .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================
   HERO: BUILDING BREAKOUT VISUAL
========================================= */

.hero-collage .collage-main {
    overflow: visible;
    isolation: isolate;
    z-index: 1;
}

/* Keep the original arch as the background */
.hero-collage .collage-main::before {
    z-index: -1;
}

/* Hide the placeholder plus symbol */
.hero-collage .collage-main::after {
    display: none;
}

/* Building image */
.hero-collage .building-visual {
    position: absolute;
    z-index: 2;

    width: 145%;
    height: 145%;

    max-width: none;

    left: -20%;
    bottom: -5%;

    object-fit: contain;
    object-position: center bottom;

    pointer-events: none;

    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .18));
}

/* Keep the image label visible above the building */
.hero-collage .collage-main .image-slot-index {
    z-index: 4;
    color: var(--navy-deep);
}

/* Caption sits above the bottom of the image */
.hero-collage .collage-main .image-slot-caption {
    z-index: 5;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(221, 231, 223, .94);
    backdrop-filter: blur(8px);
}

/* Secondary card stays above the building */
.hero-collage .collage-secondary {
    z-index: 3;
}

.hero-collage .collage-stamp {
    z-index: 5;
}

/* =========================================
   BUSINESS IN MOTION — IMAGE BREAKOUT
========================================= */

.hero-collage .collage-secondary {
    overflow: visible !important;
    isolation: isolate;
    z-index: 5;
    background: linear-gradient(145deg,
            #f1e8d3,
            #b5cbb9 60%,
            #446d5d);
}

/* Retain the original frame styling */
.hero-collage .collage-secondary::before {
    z-index: -1;
}

/* Remove the placeholder plus sign */
.hero-collage .collage-secondary::after {
    display: none;
}

/* Wide city illustration */
.hero-collage .business-motion-visual {
    position: absolute;
    z-index: 2;

    width: 175%;
    height: 175%;

    max-width: none;

    left: -38%;
    bottom: -18%;

    object-fit: contain;
    object-position: center bottom;

    pointer-events: none;

    filter: drop-shadow(0 16px 25px rgba(0, 0, 0, .2));
}

/* Keep label above the image */
.hero-collage .collage-secondary .image-slot-index {
    z-index: 6;
    color: var(--navy-deep);
}

/* Caption stays readable */
.hero-collage .collage-secondary .image-slot-caption {
    z-index: 6;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(220, 231, 219, .90);
    backdrop-filter: blur(7px);
}

/* Keep the card border visible */
.hero-collage .collage-secondary {
    border: 8px solid var(--navy-deep);
}

/* =========================================
   ABOUT LUSTROUS — CONTAINED IMAGE
========================================= */

.about-image-slot {
    position: relative;
    overflow: hidden !important;
    isolation: isolate;
    display: block;
}

/* Preserve existing figure background */
.about-image-slot::before {
    z-index: 0;
}

/* Remove placeholder decoration */
.about-image-slot::after {
    display: none;
}

/* Building illustration */
.about-image-slot .about-building-visual {
    position: absolute;
    inset: 0;
    z-index: 1;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    object-fit: contain;
    object-position: center center;

    display: block;
    pointer-events: none;
}

/* Image identifier */
.about-image-slot .image-slot-index {
    position: absolute;
    z-index: 3;
    top: 16px;
    left: 16px;
}

/* Caption */
.about-image-slot .image-slot-caption {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 14px 16px;

    background: rgba(220, 231, 219, .92);
    backdrop-filter: blur(7px);
}

/* Filled image slots — keep the original frame labels and captions visible. */
.about-image-slot.is-filled {
    background: linear-gradient(135deg, #e6e9df, #c0d1c4 56%, #f5ecd9);
}

.about-image-slot.is-filled::before {
    display: block !important;
    z-index: 0;
}

.about-image-slot.is-filled::after {
    display: none !important;
}

.about-image-slot.is-filled .image-slot-index,
.about-image-slot.is-filled .image-slot-caption {
    display: block !important;
    position: absolute;
    z-index: 5;
}

.about-image-slot.is-filled .image-slot-caption {
    display: grid !important;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Home hero collage — retain the layered desktop composition. */
.hero-collage .collage-main.is-filled .image-slot-index,
.hero-collage .collage-secondary.is-filled .image-slot-index {
    display: block !important;
    z-index: 8;
}

.hero-collage .collage-main.is-filled .image-slot-caption,
.hero-collage .collage-secondary.is-filled .image-slot-caption {
    display: grid !important;
    position: absolute;
    top: auto;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 8;
    max-width: fit-content;
    max-height: none;
    margin: 0;
    padding: 11px 13px;
    border-radius: 9px;
    background: rgba(221, 231, 223, .94);
    color: var(--navy-deep);
}

/* Page hero illustration — reserve a dedicated caption band below the art. */
.page-hero-image {
    position: relative;
    overflow: hidden;
}

.page-hero-image .page-hero-visual {
    position: absolute;
    inset: 12px 12px 118px;
    width: calc(100% - 24px);
    height: calc(100% - 130px);
    max-width: none;
    object-fit: contain;
    object-position: center;
    z-index: 1;
}

.page-hero-image .image-slot-index {
    position: absolute;
    top: 20px;
    left: 22px;
    z-index: 4;
}

.page-hero-image .image-slot-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 4;
    display: grid !important;
    gap: 5px;
    padding-top: 8px;
}

.page-hero-image .image-slot-caption strong {
    font-size: 28px;
}

.page-hero-image .image-slot-caption small {
    font-size: 12px;
}

.page-hero-image .image-slot-corner {
    position: absolute;
    right: 22px;
    bottom: 20px;
    z-index: 5;
}

.page-hero-image.is-filled .image-slot-index,
.page-hero-image.is-filled .image-slot-caption,
.page-hero-image.is-filled .image-slot-corner {
    display: block !important;
}

.page-hero-image.is-filled .image-slot-caption {
    display: grid !important;
}

/* Category/division illustration — image and caption use separate vertical space. */
.category-image-slot {
    position: relative;
    min-height: 270px;
    max-height: 340px;
    height: auto !important;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: none;
}

.category-image-slot .category-image-visual {
    position: absolute;
    inset: 10px 10px 110px;
    width: calc(100% - 20px);
    height: calc(100% - 120px);
    max-width: none;
    object-fit: contain;
    object-position: center;
    z-index: 1;
}

.category-image-slot .image-slot-index,
.category-image-slot .image-slot-caption,
.category-image-slot .image-slot-corner {
    z-index: 4;
}

.category-image-slot.is-filled .image-slot-index,
.category-image-slot.is-filled .image-slot-caption,
.category-image-slot.is-filled .image-slot-corner {
    display: block !important;
}

.category-image-slot.is-filled .image-slot-caption {
    display: grid !important;
}

/* WHAT WE DO — STICKY EDITORIAL LAYOUT */
@media (min-width: 1101px) {

    .about-pillars {
        display: grid;
        grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.65fr);
        align-items: start;
        column-gap: clamp(40px, 6vw, 100px);
    }

    .about-pillars>.section-heading {
        position: sticky;
        top: 125px;
        align-self: start;
        margin-bottom: 0;
        padding-top: 20px;
    }

    .about-pillars>.pillar-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 22px;
    }
}

/* Tablet and mobile: restore normal document flow */
@media (max-width: 1100px) {
    .about-pillars {
        display: block;
    }

    .about-pillars>.section-heading {
        position: static;
        margin-bottom: 35px;
    }

    .about-pillars>.pillar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .about-pillars>.pillar-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   MOBILE HARDENING — navigation, viewport overflow and imagery
   Consolidated responsive overrides; desktop visual system is unchanged.
   ========================================================== */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow: clip) {

    html,
    body {
        overflow-x: hidden;
    }
}

@media (max-width: 900px) {
    .nav-wrap {
        min-width: 0;
    }

    /* Drawer stays inside the viewport; its own content can scroll. */
    .main-nav {
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(88vw, 420px);
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        box-sizing: border-box;
        padding: calc(var(--header-h) + 24px) clamp(18px, 5vw, 27px) max(28px, env(safe-area-inset-bottom));
        gap: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .main-nav.mobile-open {
        transform: translate3d(0, 0, 0);
    }

    /* Dim the page behind the drawer and keep the close control above it. */
    body.nav-open {
        position: fixed;
        top: var(--nav-lock-top, 0px);
        left: 0;
        right: 0;
        width: 100%;
        overflow: hidden;
        overscroll-behavior: none;
    }

    html.nav-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.nav-open .site-header::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 1290;
        background: rgba(3, 14, 22, .62);
        pointer-events: auto;
    }

    .main-nav {
        z-index: 1300;
    }

    .mobile-toggle {
        position: relative;
        z-index: 1400;
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
    }

    body.nav-open .mobile-toggle {
        position: fixed;
        top: max(12px, env(safe-area-inset-top));
        right: 16px;
        z-index: 1401;
    }

    /* Correct a later .tools-mega width declaration that otherwise exceeds the drawer. */
    .main-nav .mega-menu,
    .main-nav .tools-mega {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .main-nav .mega-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-nav .tools-mega {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-nav .mega-head,
    .main-nav .mega-card {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .main-nav .mega-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .main-nav .mega-head>div {
        min-width: 0;
    }

    .main-nav .mega-card strong,
    .main-nav .mega-card small {
        overflow-wrap: anywhere;
    }

    /* Tablet collage: keep both complete illustrations inside their own frames. */
    .hero-collage {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
        grid-template-rows: clamp(300px, 42vw, 390px);
        gap: 14px;
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    .hero-collage .image-slot {
        position: relative !important;
        inset: auto !important;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden !important;
    }

    .hero-collage .collage-main {
        grid-column: 1;
        grid-row: 1;
        border-radius: 140px 140px 16px 16px;
    }

    .hero-collage .collage-secondary {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        height: 80%;
        border-width: 6px;
        border-radius: 16px 82px 16px 16px;
    }

    .hero-collage .building-visual,
    .hero-collage .business-motion-visual {
        position: absolute;
        inset: 12px 10px 68px;
        width: calc(100% - 20px);
        height: calc(100% - 80px);
        max-width: none;
        max-height: none;
        left: auto;
        bottom: auto;
        object-fit: contain;
        object-position: center;
    }

    .hero-collage .collage-main .image-slot-caption,
    .hero-collage .collage-secondary .image-slot-caption {
        top: auto;
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 8px 10px;
        gap: 3px;
    }

    .hero-collage .image-slot-caption strong {
        font-size: 14px;
    }

    .hero-collage .image-slot-caption small {
        font-size: 9px;
    }

    .hero-collage .collage-stamp {
        left: 8px;
        bottom: 8px;
        max-width: 150px;
        padding: 12px 13px;
        font-size: 8px;
    }
}

@media (max-width: 640px) {
    .nav-wrap {
        gap: 8px;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 112px);
    }

    .brand-word {
        min-width: 0;
    }

    .brand-word strong {
        overflow-wrap: anywhere;
    }

    .search-open {
        flex: 0 0 40px;
    }

    /* Stack the hero images on phones instead of forcing them to overlap. */
    .hero-collage {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        min-height: 0;
        height: auto;
        padding: 0 0 18px;
        overflow: visible;
    }

    .hero-collage .image-slot {
        position: relative !important;
        inset: auto !important;
        flex: 0 0 auto;
        min-height: 0;
        overflow: hidden !important;
    }

    .hero-collage .collage-main {
        width: 90%;
        height: clamp(220px, 64vw, 260px);
        border-radius: 112px 112px 14px 14px;
    }

    .hero-collage .collage-secondary {
        align-self: flex-end;
        width: 84%;
        height: clamp(195px, 56vw, 225px);
        border-width: 5px;
        border-radius: 15px 76px 15px 15px;
    }

    .hero-collage .building-visual,
    .hero-collage .business-motion-visual {
        position: absolute;
        inset: 12px 10px 66px;
        width: calc(100% - 20px);
        height: calc(100% - 78px);
        max-width: none;
        max-height: none;
        left: auto;
        bottom: auto;
        object-fit: contain;
        object-position: center;
    }

    .hero-collage .collage-main .image-slot-caption,
    .hero-collage .collage-secondary .image-slot-caption {
        top: auto;
        left: 10px;
        right: 10px;
        bottom: 9px;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 8px 10px;
        gap: 3px;
    }

    .hero-collage .image-slot-caption strong {
        font-size: 13px;
    }

    .hero-collage .image-slot-caption small {
        font-size: 9px;
    }

    .hero-collage .collage-stamp {
        position: relative;
        left: auto;
        bottom: auto;
        align-self: flex-start;
        max-width: 175px;
        margin: 0;
        padding: 11px 13px;
        font-size: 8px;
        transform: rotate(-3deg);
    }

    /* Give illustrations extra room above the caption band on small screens. */
    .page-hero-image {
        min-height: 360px;
        border-radius: 18px 18px 18px 5px;
    }

    .page-hero-image .page-hero-visual {
        inset: 14px 14px 132px;
        width: calc(100% - 28px);
        height: calc(100% - 146px);
        object-fit: contain;
    }

    .page-hero-image .image-slot-index {
        top: 16px;
        left: 16px;
    }

    .page-hero-image .image-slot-caption {
        left: 16px;
        right: 16px;
        bottom: 18px;
        padding-top: 6px;
    }

    .page-hero-image .image-slot-caption strong {
        font-size: 19px;
        line-height: 1.12;
    }

    .page-hero-image .image-slot-caption small {
        font-size: 10px;
        line-height: 1.45;
    }

    .page-hero-image .image-slot-corner {
        right: 15px;
        bottom: 14px;
        font-size: 9px;
    }

    .category-image-slot {
        min-height: 320px;
        max-height: none;
        height: auto !important;
    }

    .category-image-slot .category-image-visual {
        inset: 12px 12px 122px;
        width: calc(100% - 24px);
        height: calc(100% - 134px);
        object-fit: contain;
    }

    .category-image-slot .image-slot-index {
        top: 15px;
        left: 16px;
    }

    .category-image-slot .image-slot-caption {
        left: 15px;
        right: 15px;
        bottom: 14px;
        gap: 4px;
    }

    .category-image-slot .image-slot-caption strong {
        font-size: 17px;
    }

    .category-image-slot .image-slot-caption small {
        font-size: 10px;
    }

    .about-image-slot {
        min-height: 360px;
    }

    .about-image-slot .about-building-visual {
        inset: 0 0 76px;
        width: 100%;
        height: calc(100% - 76px);
        object-fit: contain;
        object-position: center bottom;
    }

    .about-image-slot.is-filled .image-slot-caption {
        padding: 12px 14px;
    }
}

@media (max-width: 380px) {
    .main-nav {
        width: 92vw;
        padding-inline: 16px;
    }

    .main-nav .mega-menu,
    .main-nav .tools-mega {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-collage .collage-main {
        width: 94%;
    }

    .hero-collage .collage-secondary {
        width: 90%;
    }
}

/* =========================================================
   HOME HERO COLLAGE — PROPORTIONAL MOBILE GROUP + ADJUSTABLE LABELS
   Adjust the four variables below to reposition each label independently.
   Negative Y values move labels upward; positive values move them downward.
========================================================= */
.hero-collage {
    --hero-main-label-x: 0px;
    --hero-main-label-y: -100px;
    --hero-secondary-label-x: 0px;
    --hero-secondary-label-y: 15vh;
}

.hero-collage .collage-main .image-slot-caption {
    transform: translate(var(--hero-main-label-x), var(--hero-main-label-y));
}

.hero-collage .collage-secondary .image-slot-caption {
    transform: translate(var(--hero-secondary-label-x), var(--hero-secondary-label-y));
}

/* Keep the two-frame collage as one composition on phones. It scales with
   available width instead of becoming two independent stacked cards. */
@media (max-width: 640px) {
    .hero-collage {
        position: relative;
        display: block;
        width: 100%;
        max-width: 430px;
        min-height: 0;
        height: auto;
        aspect-ratio: 0.78 / 1;
        margin: 12px auto 0;
        padding: 0;
        overflow: visible;
        --hero-main-label-y: clamp(-100px, -23vw, -58px);
        --hero-secondary-label-y: clamp(-100px, -23vw, -58px);
    }

    .hero-collage .image-slot {
        position: absolute !important;
        min-width: 0;
        min-height: 0;
        margin: 0;
        overflow: visible !important;
    }

    .hero-collage .collage-main {
        inset: auto !important;
        left: 2% !important;
        top: 0 !important;
        right: auto !important;
        bottom: auto !important;
        width: 72% !important;
        height: 80% !important;
        border-radius: 120px 120px 15px 15px;
    }

    .hero-collage .collage-secondary {
        inset: auto !important;
        right: 20% !important;
        bottom: -8% !important;
        left: auto !important;
        top: auto !important;
        width: 52% !important;
        height: 48% !important;
        border-width: 5px;
        border-radius: 15px 72px 15px 15px;
    }

    .hero-collage .building-visual {
        position: absolute;
        z-index: 2;
        width: 145%;
        height: 145%;
        max-width: none;
        max-height: none;
        left: -20%;
        top: auto;
        right: auto;
        bottom: -5%;
        object-fit: contain;
        object-position: center bottom;
    }

    .hero-collage .business-motion-visual {
        position: absolute;
        z-index: 2;
        width: 175%;
        height: 175%;
        max-width: none;
        max-height: none;
        left: -38%;
        top: auto;
        right: auto;
        bottom: -18%;
        object-fit: contain;
        object-position: center bottom;
    }

    .hero-collage .collage-main .image-slot-caption,
    .hero-collage .collage-secondary .image-slot-caption {
        position: absolute;
        top: auto;
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 8px 10px;
        gap: 3px;
        z-index: 8;
        transform: none;
    }

    .hero-collage .collage-main .image-slot-caption {
        transform: translate(var(--hero-main-label-x), var(--hero-main-label-y));
    }

    .hero-collage .collage-secondary .image-slot-caption {
        transform: translate(var(--hero-secondary-label-x), var(--hero-secondary-label-y));
    }

    .hero-collage .image-slot-caption strong {
        font-size: clamp(12px, 3.4vw, 15px);
    }

    .hero-collage .image-slot-caption small {
        font-size: clamp(8px, 2.35vw, 10px);
        line-height: 1.35;
    }

    .hero-collage .collage-stamp {
        position: absolute;
        z-index: 9;
        left: 0;
        top: auto;
        right: auto;
        bottom: 12%;
        align-self: auto;
        width: max-content;
        max-width: 46%;
        margin: 0;
        padding: clamp(8px, 2.4vw, 12px);
        font-size: clamp(7px, 2vw, 9px);
        line-height: 1.3;
        transform: rotate(-3deg);
    }
}

@media (max-width: 380px) {
    .hero-collage {
        max-width: 100%;
    }

    .hero-collage .collage-main {
        width: 72% !important;
    }

    .hero-collage .collage-secondary {
        width: 52% !important;
    }
}

/* ==========================================================
   DIVISION OVERVIEW + ENGAGEMENT LAYOUT REFINEMENT
   Scope: nine division landing pages only. Existing palette and
   typography are retained; this replaces the stacked fact rail.
   ========================================================== */

/* AT A GLANCE — three concise stages, with the illustration below. */
.category-overview > .category-facts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    align-items: stretch;
    gap: 0;
    height: auto;
    min-width: 0;
    padding: 0;
}

.category-overview > .category-facts > .category-fact {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 0 15px 18px 0;
    border-bottom: 1px solid var(--line);
}

.category-overview > .category-facts > .category-fact + .category-fact {
    padding-left: 15px;
    border-left: 1px solid var(--line);
}

.category-overview > .category-facts > .category-fact > span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1;
}

.category-overview > .category-facts > .category-fact > strong {
    display: block;
    margin: 2px 0 0;
    color: var(--navy);
    font-size: clamp(16px, 1.55vw, 22px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.04em;
    overflow-wrap: normal;
}

.category-overview > .category-facts > .category-fact > small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
}

/* The illustration follows the three-stage row and determines its own height. */
.category-overview > .category-facts > .category-image-slot {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 220px;
    max-height: none;
    height: auto !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 24px 0 0;
    padding: 12px 0 0;
    overflow: hidden;
}

.category-overview > .category-facts > .category-image-slot > .category-image-visual {
    position: relative !important;
    inset: auto !important;
    display: block;
    align-self: center;
    flex: 0 1 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: clamp(250px, 34vw, 430px);
    margin: 0 auto;
    padding: 8px 18px 0;
    object-fit: contain;
    object-position: center;
    z-index: 1;
}

.category-overview > .category-facts > .category-image-slot > .image-slot-index {
    position: absolute;
    top: 16px;
    left: 18px;
    z-index: 4;
}

.category-overview > .category-facts > .category-image-slot > .image-slot-caption {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    gap: 5px;
    max-width: none;
    margin: auto 0 0;
    padding: 17px 78px 20px 20px;
    z-index: 4;
}

.category-overview > .category-facts > .category-image-slot > .image-slot-caption strong {
    font-size: clamp(17px, 1.8vw, 23px);
    line-height: 1.12;
}

.category-overview > .category-facts > .category-image-slot > .image-slot-caption small {
    max-width: 440px;
    font-size: 11px;
    line-height: 1.5;
}

.category-overview > .category-facts > .category-image-slot > .image-slot-corner {
    z-index: 5;
    right: 18px;
    bottom: 18px;
}

.category-overview > .category-facts > .category-image-slot.is-filled > .image-slot-index,
.category-overview > .category-facts > .category-image-slot.is-filled > .image-slot-caption,
.category-overview > .category-facts > .category-image-slot.is-filled > .image-slot-corner {
    display: block !important;
}

.category-overview > .category-facts > .category-image-slot.is-filled > .image-slot-caption {
    display: grid !important;
}

/* HOW AN ENGAGEMENT WORKS — heading and three steps share one row. */
.engagement-section {
    display: grid;
    grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: clamp(32px, 5.5vw, 78px);
}

.engagement-section > .engagement-intro {
    min-width: 0;
    align-self: start;
}

.engagement-section > .engagement-steps {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.engagement-section .engagement-step {
    min-width: 0;
    margin: 0;
    padding: 20px 18px 12px 0;
    border-right: 1px solid rgba(255, 255, 255, .2);
}

.engagement-section .engagement-step + .engagement-step {
    padding-left: 18px;
}

.engagement-section .engagement-step:last-child {
    padding-right: 0;
    border-right: 0;
}

.engagement-section .engagement-step > span {
    display: block;
    margin-bottom: 15px;
    color: var(--lime);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

.engagement-section .engagement-step > h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(16px, 1.5vw, 21px);
    line-height: 1.18;
    letter-spacing: -.035em;
}

.engagement-section .engagement-step > p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    line-height: 1.7;
}

/* Tablet: keep the original overlapping hero composition, scaled as one group. */
@media (min-width: 641px) and (max-width: 900px) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr);
        row-gap: clamp(38px, 6vh, 70px);
    }

    .hero-collage {
        position: relative;
        display: block;
        width: min(100%, 640px);
        max-width: 640px;
        min-height: 0;
        height: clamp(390px, 54vw, 480px);
        margin: 0 auto clamp(32px, 5vh, 54px);
        overflow: visible;
    }

    .hero-collage .image-slot {
        position: absolute !important;
        inset: auto !important;
        min-width: 0;
        min-height: 0;
        margin: 0;
    }

    .hero-collage .collage-main {
        top: 0 !important;
        left: 2% !important;
        right: auto !important;
        bottom: auto !important;
        width: 70% !important;
        height: 80% !important;
    }

    .hero-collage .collage-secondary {
        top: auto !important;
        right: 0 !important;
        bottom: -3% !important;
        left: auto !important;
        width: 52% !important;
        height: 48% !important;
        border-width: 6px;
    }

    .hero-collage .building-visual {
        position: absolute;
        left: -20%;
        right: auto;
        top: auto;
        bottom: -5%;
        width: 145%;
        height: 145%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: center bottom;
    }

    .hero-collage .business-motion-visual {
        position: absolute;
        left: -38%;
        right: auto;
        top: auto;
        bottom: -18%;
        width: 175%;
        height: 175%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: center bottom;
    }
}

/* Phone: add viewport-height-aware breathing room around the complete collage. */
@media (max-width: 640px) {
    .home-hero {
        padding-bottom: clamp(60px, 10vh, 88px);
    }

    .hero-collage {
        margin-top: clamp(38px, 10vh, 64px);
        margin-bottom: clamp(52px, 9vh, 80px);
        /* padding-top: 174px; */
    }

    .hero-collage .collage-secondary {
        bottom: -5% !important;
    }

    .category-overview > .category-facts > .category-fact {
        padding-right: 9px;
        padding-bottom: 13px;
        gap: 5px;
    }

    .category-overview > .category-facts > .category-fact + .category-fact {
        padding-left: 9px;
    }

    .category-overview > .category-facts > .category-fact > strong {
        font-size: clamp(14px, 3.9vw, 17px);
    }

    .category-overview > .category-facts > .category-fact > small {
        font-size: 9px;
        line-height: 1.4;
    }

    .category-overview > .category-facts > .category-image-slot {
        margin-top: 18px;
        padding-top: 9px;
    }

    .category-overview > .category-facts > .category-image-slot > .category-image-visual {
        max-height: clamp(220px, 58vw, 360px);
        padding: 8px 12px 0;
    }

    .category-overview > .category-facts > .category-image-slot > .image-slot-caption {
        padding: 14px 66px 17px 15px;
    }

    .category-overview > .category-facts > .category-image-slot > .image-slot-caption strong {
        font-size: 17px;
    }

    .category-overview > .category-facts > .category-image-slot > .image-slot-caption small {
        font-size: 10px;
    }

    .category-overview > .category-facts > .category-image-slot > .image-slot-corner {
        right: 13px;
        bottom: 15px;
        font-size: 9px;
    }

    .engagement-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .engagement-section > .engagement-steps {
        grid-template-columns: minmax(0, 1fr);
        border-top: 1px solid rgba(255, 255, 255, .2);
    }

    .engagement-section .engagement-step,
    .engagement-section .engagement-step + .engagement-step {
        padding: 17px 0 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .2);
    }

    .engagement-section .engagement-step:last-child {
        border-bottom: 0;
    }

    .engagement-section .engagement-step > span {
        margin-bottom: 8px;
    }

    .engagement-section .engagement-step > h3 {
        margin-bottom: 7px;
        font-size: 19px;
    }

    .engagement-section .engagement-step > p {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .category-overview > .category-facts > .category-fact > strong {
        font-size: 13px;
    }

    .category-overview > .category-facts > .category-fact > small {
        font-size: 8px;
    }
}

/* =========================================================
   CONTENT-LED PAGE HERO FRAMES
   Applies to inner-page/service hero figures that contain a
   .page-hero-visual. The homepage collage is intentionally excluded.
   Images retain their natural aspect ratio; the frame grows with
   the image and caption instead of cropping or forcing a fixed box.
========================================================= */
.page-hero-image:has(> .page-hero-visual) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 58px 0 0;
    overflow: hidden;
    box-sizing: border-box;
}

.page-hero-image:has(> .page-hero-visual) > .page-hero-visual {
    position: relative !important;
    inset: auto !important;
    display: block;
    flex: 0 1 auto;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    max-height: clamp(260px, 36vw, 480px);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    z-index: 1;
}

.page-hero-image:has(> .page-hero-visual) > .image-slot-index {
    top: 19px;
    left: 24px;
    z-index: 4;
}

.page-hero-image:has(> .page-hero-visual) > .image-slot-caption {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    flex: 0 0 auto;
    gap: 6px;
    margin: 18px 0 0;
    padding: 18px 76px 26px 28px;
    z-index: 4;
}

.page-hero-image:has(> .page-hero-visual) > .image-slot-caption strong {
    font-size: clamp(19px, 2.1vw, 28px);
    line-height: 1.08;
}

.page-hero-image:has(> .page-hero-visual) > .image-slot-caption small {
    max-width: 440px;
    font-size: 12px;
    line-height: 1.5;
}

.page-hero-image:has(> .page-hero-visual) > .image-slot-corner {
    right: 22px;
    bottom: 22px;
    z-index: 5;
}

/* Keep the illustration prominent without letting it overwhelm the copy on tablets. */
@media (min-width: 641px) and (max-width: 1100px) {
    .page-hero-image:has(> .page-hero-visual) {
        padding-top: 54px;
    }

    .page-hero-image:has(> .page-hero-visual) > .page-hero-visual {
        max-height: clamp(250px, 39vw, 390px);
        padding-inline: 20px;
    }

    .page-hero-image:has(> .page-hero-visual) > .image-slot-caption {
        padding: 16px 68px 23px 22px;
    }
}

@media (max-width: 640px) {
    .page-hero-image:has(> .page-hero-visual) {
        padding-top: 48px;
        border-radius: 18px 18px 18px 5px;
    }

    .page-hero-image:has(> .page-hero-visual) > .page-hero-visual {
        width: 100%;
        max-height: none;
        padding-inline: 12px;
    }

    .page-hero-image:has(> .page-hero-visual) > .image-slot-index {
        top: 15px;
        left: 16px;
    }

    .page-hero-image:has(> .page-hero-visual) > .image-slot-caption {
        margin-top: 12px;
        padding: 14px 62px 22px 16px;
    }

    .page-hero-image:has(> .page-hero-visual) > .image-slot-caption strong {
        font-size: clamp(18px, 5vw, 22px);
    }

    .page-hero-image:has(> .page-hero-visual) > .image-slot-caption small {
        font-size: 10px;
        line-height: 1.45;
    }

    .page-hero-image:has(> .page-hero-visual) > .image-slot-corner {
        right: 14px;
        bottom: 15px;
        font-size: 9px;
    }
}

/* =========================================
   SOFTWARE PRODUCT IMAGE FRAME
   Separate illustration and caption areas
========================================= */

.product-image-slot.is-filled {
    display: flex;
    flex-direction: column;

    min-height: 0;
    height: auto;

    overflow: hidden;
    border-radius: 24px;

    background: #ffffff;
    color: var(--navy);

    border: 1px solid rgba(16, 47, 73, .12);
    box-shadow: 0 20px 50px rgba(7, 30, 45, .12);
}

/* Remove placeholder decorations */
.product-image-slot.is-filled::before,
.product-image-slot.is-filled::after {
    display: none !important;
}

/* Product illustration */
.product-image-slot.is-filled > img {
    display: block;

    position: relative;
    inset: auto;

    width: 100%;
    height: auto;

    max-width: 100%;
    max-height: 520px;

    object-fit: contain;
    object-position: center;

    flex: 0 0 auto;

    background: #f1f3f0;
}

/* Product identifier */
.product-image-slot.is-filled > .image-slot-index {
    display: block !important;

    position: static !important;

    padding: 17px 28px 0;
    margin: 0;

    color: var(--forest);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

/* Caption panel */
.product-image-slot.is-filled > .image-slot-caption {
    display: grid !important;

    position: static !important;

    left: auto;
    right: auto;
    bottom: auto;

    gap: 7px;

    margin: 0;
    padding: 8px 28px 25px;

    background: #ffffff;
    color: var(--navy);
}

/* Caption heading */
.product-image-slot.is-filled .image-slot-caption strong {
    color: var(--navy);

    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.15;
    font-weight: 900;
}

/* Caption description */
.product-image-slot.is-filled .image-slot-caption small {
    display: block;

    max-width: 540px;

    color: #65717a;

    font-size: 12px;
    line-height: 1.6;
    font-weight: 600;
}

/* No additional corner label needed */
.product-image-slot.is-filled > .image-slot-corner {
    display: none !important;
}

/* Mobile adjustment */
@media (max-width: 700px) {
    .product-image-slot.is-filled {
        border-radius: 17px;
    }

    .product-image-slot.is-filled > .image-slot-index {
        padding: 14px 17px 0;
    }

    .product-image-slot.is-filled > .image-slot-caption {
        padding: 7px 17px 20px;
    }

    .product-image-slot.is-filled .image-slot-caption strong {
        font-size: 21px;
    }
}


/* ==========================================================
   MOBILE NAVIGATION RECOVERY
   Keep the header in the normal document flow while the
   drawer is open; only prevent background scrolling.
========================================================== */
@media (max-width: 900px) {
    html.nav-open,
    body.nav-open {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    body.nav-open {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
    }

    #site-header,
    #site-header .site-header {
        z-index: 1250;
    }

    #site-header .main-nav {
        z-index: 1300;
        visibility: hidden;
        pointer-events: none;
    }

    #site-header .main-nav.mobile-open {
        visibility: visible;
        pointer-events: auto;
    }

    #site-header .mobile-toggle {
        z-index: 1401;
    }

    body.nav-open #site-header .mobile-toggle {
        position: fixed;
        top: max(12px, env(safe-area-inset-top));
        right: 16px;
    }

    body.nav-open #site-header .site-header::before {
        z-index: 1290;
    }
}

/* Contact details are available in the shared footer on every page. */
.footer-contact-links a {
    display: block;
    line-height: 1.55;
}

/* ==========================================================
   MOBILE HEADER FIX — KEEP NAVIGATION VISIBLE WHILE SCROLLING
   Use a fixed shell on mobile so sticky positioning is not
   affected by html/body overflow handling in mobile browsers.
   The reserved body padding keeps the first page section clear.
========================================================== */
@media (max-width: 900px) {
    body.header-sticky {
        padding-top: calc(var(--header-h, 76px) + 32px) !important;
    }

    #site-header.site-header-shell,
    body.header-sticky #site-header.site-header-shell {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 2500 !important;
        transform: none !important;
        overflow: visible !important;
        isolation: isolate;
    }

    #site-header > .topline,
    #site-header > .site-header {
        position: relative;
        z-index: 1;
    }

    /* A viewport backdrop behind the header and the open drawer. */
    #site-header::after {
        content: '';
        display: none;
        position: fixed;
        inset: 0;
        z-index: 0;
        background: rgba(3, 14, 22, .62);
        pointer-events: auto;
    }

    body.nav-open #site-header::after {
        display: block;
    }

    /* Replace the older overlay attached to the inner header. */
    body.nav-open #site-header .site-header::before {
        display: none !important;
        content: none !important;
    }

    #site-header .main-nav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(88vw, 420px) !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        box-sizing: border-box !important;
        z-index: 3 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(105%, 0, 0) !important;
        transition: transform .38s cubic-bezier(.22, 1, .36, 1), visibility .38s;
    }

    #site-header .main-nav.mobile-open {
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate3d(0, 0, 0) !important;
    }

    #site-header .mobile-toggle {
        position: relative !important;
        z-index: 4 !important;
        flex: 0 0 46px;
    }

    body.nav-open #site-header .mobile-toggle {
        position: fixed !important;
        top: max(12px, env(safe-area-inset-top)) !important;
        right: 16px !important;
        z-index: 5 !important;
    }

    html.nav-open,
    body.nav-open {
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    body.nav-open {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
    }
}

/* TRUSTED CLIENT LOGO CARDS */

.trusted-logo-placeholder.trusted-logo-card {
    height: 96px;
    width: 158px;
    flex: 0 0 158px;

    padding: 12px 15px;
    gap: 5px;

    border: 1px solid rgba(16, 47, 73, .08);
    border-radius: 12px;

    background: #fff;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.trusted-logo-card img {
    display: block;
    width: 100%;
    height: 49px;

    object-fit: contain;
    object-position: center;
}

.trusted-logo-card strong {
    display: block;
    color: var(--navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .025em;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 640px) {
    .trusted-logo-placeholder.trusted-logo-card {
        height: 78px;
        width: 130px;
        flex-basis: 130px;
        padding: 9px 12px;
    }

    .trusted-logo-card img {
        height: 37px;
    }
}
