:root {
    --site-header-height: var(--header-height, 80px);
    --cm-steel-900: #1a2332;
    --cm-steel-800: #243044;
    --cm-steel-700: #2f3d52;
    --cm-steel-600: #4a5d73;
    --cm-steel-500: #6b7f96;
    --cm-steel-400: #94a3b8;
    --cm-steel-300: #cbd5e1;
    --cm-steel-200: #e2e8f0;
    --cm-steel-100: #f1f5f9;
    --cm-steel-50: #f8fafc;
    --cm-charcoal: #0f1419;
    --cm-blue: #2563eb;
    --cm-blue-dark: #1d4ed8;
    --cm-blue-light: #3b82f6;
    --cm-accent: #0ea5e9;
    --cm-white: #ffffff;
    --cm-font-ui: var(--font-body, 'Inter', system-ui, sans-serif);
    --cm-font-display: var(--font-heading, 'Manrope', system-ui, sans-serif);
    --cm-shadow: 0 4px 24px rgba(15, 20, 25, 0.08);
    --cm-shadow-lg: 0 12px 40px rgba(15, 20, 25, 0.12);
    --cm-radius: 0.5rem;
    --cm-radius-lg: 0.75rem;
    --cm-transition: 0.3s ease;
    --cm-blue: var(--theme-primary, #2563eb);
    --cm-blue-dark: var(--theme-secondary, #1d4ed8);
    --cm-accent: var(--theme-accent, #0ea5e9);
    --cm-charcoal: var(--theme-text, #0f1419);
    --cm-font-ui: var(--theme-body-font, var(--font-body, 'Inter', system-ui, sans-serif));
    --cm-font-display: var(--theme-heading-font, var(--font-heading, 'Manrope', system-ui, sans-serif));
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body, var(--cm-font-ui));
    color: var(--cm-steel-800);
    background: var(--theme-bg, var(--cm-steel-50));
    line-height: var(--line-height-body, var(--theme-line-height, 1.6));
    font-size: var(--font-size-body, var(--theme-body-size, 1rem));
}

h1, h2, h3, h4, h5, h6,
.display-brand {
    font-family: var(--font-heading, var(--cm-font-display));
    color: var(--cm-charcoal);
}

a { color: var(--cm-blue); text-decoration: none; transition: color var(--cm-transition); }
a:hover { color: var(--cm-blue-dark); }

/* Global navigation: see assets/css/components/navigation.css */

.cm-main > .hero-section:first-child {
    margin-top: calc(-1 * var(--site-header-height));
    padding-top: var(--site-header-height);
}

.site-footer .footer-logo { max-height: 32px; width: auto; }

.portal-hub-section {
    padding: 4.5rem 0 5rem;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(37, 99, 235, 0.08), transparent 45%),
        linear-gradient(180deg, var(--cm-white) 0%, var(--cm-steel-50) 100%);
}

.portal-hub-logo {
    font-family: var(--cm-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--cm-charcoal);
    margin-bottom: 0.75rem;
}

.portal-hub-logo span { color: var(--cm-blue); }

.portal-hub-header h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.5rem;
}

.portal-hub-header p {
    color: var(--cm-steel-500);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.portal-hub-card {
    height: 100%;
    background: var(--cm-white);
    border: 1px solid var(--cm-steel-200);
    border-radius: var(--cm-radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--cm-shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--cm-transition), box-shadow var(--cm-transition);
}

.portal-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--cm-shadow-lg);
}

.portal-hub-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--cm-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: var(--cm-blue);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.portal-hub-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.portal-hub-card .purpose {
    font-weight: 600;
    color: var(--cm-steel-700);
    margin-bottom: 0.5rem;
}

.portal-hub-card p {
    color: var(--cm-steel-500);
    font-size: 0.95rem;
    flex-grow: 1;
}

.btn-portal-card {
    margin-top: 1rem;
    background: var(--cm-blue);
    color: var(--cm-white);
    font-weight: 600;
    border: none;
    border-radius: var(--cm-radius);
    padding: 0.65rem 1rem;
}

.btn-portal-card:hover {
    background: var(--cm-blue-dark);
    color: var(--cm-white);
}

.btn-cta {
    background: var(--cm-blue);
    color: var(--cm-white) !important;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--cm-radius);
    transition: background var(--cm-transition), transform var(--cm-transition);
}

.btn-cta:hover {
    background: var(--cm-blue-dark);
    color: var(--cm-white) !important;
    transform: translateY(-1px);
}

.btn-outline-steel {
    border: 2px solid var(--cm-steel-300);
    color: var(--cm-steel-800);
    font-weight: 600;
    border-radius: var(--cm-radius);
    transition: all var(--cm-transition);
}

.btn-outline-steel:hover {
    border-color: var(--cm-blue);
    color: var(--cm-blue);
    background: transparent;
}

/* Hero */
.hero-section {
    position: relative;
    min-height: var(--hero-height, 500px);
    display: flex;
    align-items: center;
    background: var(--hero-background, linear-gradient(135deg, var(--cm-steel-900) 0%, var(--cm-steel-800) 50%, var(--cm-steel-700) 100%));
    color: var(--hero-paragraph-color, var(--hero-body-color, var(--cm-white)));
    overflow: hidden;
    --hero-heading-color: var(--theme-text-primary, var(--cm-white));
    --hero-body-color: var(--theme-text-secondary, rgba(255, 255, 255, 0.85));
    --hero-paragraph-color: var(--hero-body-color);
    --hero-overlay-color: var(--hero-overlay, rgba(15, 20, 25, 0.55));
    --hero-overlay-opacity: 0;
}

.hero-section.hero-dark {
    --hero-heading-color: #ffffff;
    --hero-body-color: rgba(255, 255, 255, 0.85);
}

.hero-section.hero-light {
    --hero-heading-color: #111827;
    --hero-body-color: #374151;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 20, 25, 0.85) 0%, rgba(15, 20, 25, 0.4) 60%, transparent 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.hero-section.hero-theme-driven:not(.has-bg-image):not(.hero-has-overlay):not(.has-bg-video):not(.has-bg-animation)::before {
    display: none;
}

.hero-section.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section.has-bg-image::before {
    background: linear-gradient(90deg, rgba(15, 20, 25, 0.88) 0%, rgba(15, 20, 25, 0.55) 100%);
}

.hero-section.hero-has-overlay::before {
    background: var(--hero-overlay-color);
    opacity: var(--hero-overlay-opacity, 1);
}

.hero-section.hero-has-overlay.has-bg-image::before {
    background: var(--hero-overlay-color);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--hero-content-max-width, none);
}

.hero-section.hero-has-typography .hero-content .hero-description,
.hero-section.hero-has-typography .hero-content .lead {
    max-width: var(--hero-content-max-width, 36rem);
}

.hero-section {
    --hero-heading-size: var(--hero-heading-size-mobile, var(--hero-heading-size-base, clamp(2.25rem, 5vw, 3.5rem)));
    --hero-subtitle-size: var(--hero-subtitle-size-mobile, var(--hero-subtitle-size-base, 1.125rem));
}

@media (min-width: 768px) {
    .hero-section {
        --hero-heading-size: var(--hero-heading-size-tablet, var(--hero-heading-size-mobile, var(--hero-heading-size-base, clamp(2.25rem, 5vw, 3.5rem))));
        --hero-subtitle-size: var(--hero-subtitle-size-tablet, var(--hero-subtitle-size-mobile, var(--hero-subtitle-size-base, 1.125rem)));
    }
}

@media (min-width: 992px) {
    .hero-section {
        --hero-heading-size: var(--hero-heading-size-desktop, var(--hero-heading-size-tablet, var(--hero-heading-size-mobile, var(--hero-heading-size-base, clamp(2.25rem, 5vw, 3.5rem)))));
        --hero-subtitle-size: var(--hero-subtitle-size-desktop, var(--hero-subtitle-size-tablet, var(--hero-subtitle-size-mobile, var(--hero-subtitle-size-base, 1.125rem))));
    }
}

.hero-content h1,
.hero-content .hero-title {
    font-family: var(--cm-font-display);
    color: var(--hero-heading-color);
    font-size: var(--hero-title-size, var(--hero-heading-size, var(--hero-heading-size-base, clamp(2.25rem, 5vw, 3.5rem))));
    font-weight: var(--hero-heading-weight, 700);
    line-height: var(--hero-heading-line-height, 1.15);
    margin-bottom: var(--hero-spacing, 1rem);
}

.hero-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hero-body-color);
    margin-bottom: 1rem;
}

.hero-section--height-extra_small,
.hero-section--height-tiny,
.hero-section--height-compact,
.hero-section--height-small,
.hero-section--height-medium,
.hero-section--height-large,
.hero-section--height-extra_large,
.hero-section--height-fullscreen,
.hero-section--height-custom {
    min-height: var(--hero-height, 500px);
    height: var(--hero-height, 500px);
}

.hero-section.hero-align-center .hero-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-section.hero-align-center .hero-content .lead,
.hero-section.hero-align-center .hero-content .hero-description {
    margin-left: auto;
    margin-right: auto;
}

.hero-section.hero-align-right .hero-content {
    text-align: right;
    margin-left: auto;
}

.hero-section.hero-align-right .hero-content .hero-actions {
    justify-content: flex-end;
}

.hero-section.hero-valign-top {
    align-items: flex-start;
    padding-top: clamp(2rem, 6vh, 4rem);
}

.hero-section.hero-valign-bottom {
    align-items: flex-end;
    padding-bottom: clamp(2rem, 6vh, 4rem);
}

.hero-section.hero-anim-fade-in .hero-content > * {
    animation: hero-anim-fade-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-section.hero-anim-slide-up .hero-content > * {
    animation: hero-anim-slide-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-section.hero-anim-slide-left .hero-content > * {
    animation: hero-anim-slide-left 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-section.hero-anim-zoom-in .hero-content > * {
    animation: hero-anim-zoom-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-section.hero-anim-fade-in .hero-content > *:nth-child(2),
.hero-section.hero-anim-slide-up .hero-content > *:nth-child(2),
.hero-section.hero-anim-slide-left .hero-content > *:nth-child(2),
.hero-section.hero-anim-zoom-in .hero-content > *:nth-child(2) {
    animation-delay: 0.1s;
}

.hero-section.hero-anim-fade-in .hero-content > *:nth-child(3),
.hero-section.hero-anim-slide-up .hero-content > *:nth-child(3),
.hero-section.hero-anim-slide-left .hero-content > *:nth-child(3),
.hero-section.hero-anim-zoom-in .hero-content > *:nth-child(3) {
    animation-delay: 0.2s;
}

.hero-section.hero-anim-fade-in .hero-content > *:nth-child(4),
.hero-section.hero-anim-slide-up .hero-content > *:nth-child(4),
.hero-section.hero-anim-slide-left .hero-content > *:nth-child(4),
.hero-section.hero-anim-zoom-in .hero-content > *:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes hero-anim-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hero-anim-slide-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-anim-slide-left {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes hero-anim-zoom-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.hero-content .lead,
.hero-content .hero-description {
    font-size: var(--hero-subtitle-size, var(--hero-subtitle-size-base, clamp(1rem, 2vw, 1.5rem)));
    font-weight: var(--hero-subtitle-weight, 400);
    color: var(--hero-body-color);
    max-width: 650px;
}

.hero-content .content-prose {
    font-size: var(--hero-content-size, var(--hero-content-size-base, 1rem));
    color: var(--hero-body-color);
}

.hero-section .btn-hero-primary {
    background-color: var(--hero-button-bg, var(--hero-theme-button-bg, var(--cm-blue)));
    color: var(--hero-button-color, var(--hero-theme-button-color, #fff));
    border-color: var(--hero-button-bg, var(--hero-theme-button-bg, var(--cm-blue)));
}

.hero-section .btn-hero-primary:hover {
    filter: brightness(1.08);
    color: var(--hero-button-color, #fff);
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section.has-bg-video .container {
    position: relative;
    z-index: 2;
}

.hero-section.has-bg-animation::before,
.hero-section.has-bg-video::before {
    z-index: 1;
}

.hero-section.has-bg-animation .container,
.hero-section.hero-section--animated .container {
    position: relative;
    z-index: 2;
}

.hero-animation-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-animation-bg canvas,
.hero-animation-bg video,
.hero-animation-bg lottie-player,
.hero-animation-bg img.hero-animation-image,
.hero-gradient-animation,
.hero-animation-mobile-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient-animation {
    background: linear-gradient(135deg, var(--cm-steel-900) 0%, var(--cm-blue) 50%, var(--cm-steel-700) 100%);
    background-size: 200% 200%;
    animation: hero-gradient-shift 18s ease infinite;
}

.hero-animation-image {
    object-fit: cover;
}

.hero-motion--floating .hero-animation-image,
.hero-motion--floating .hero-animation-bg video {
    animation: hero-motion-floating 22s ease-in-out infinite;
}

.hero-motion--slow_zoom .hero-animation-image,
.hero-motion--slow_zoom .hero-animation-bg video,
.hero-motion--slow_zoom .hero-animation-mobile-fallback {
    animation: hero-motion-slow-zoom 28s ease-in-out infinite alternate;
}

.hero-motion--parallax .hero-animation-bg canvas,
.hero-motion--parallax .hero-animation-image {
    animation: hero-motion-parallax 24s linear infinite;
}

.hero-motion--fade_transition .hero-animation-image,
.hero-motion--fade_transition .hero-gradient-animation {
    animation: hero-motion-fade 16s ease-in-out infinite alternate;
}

.hero-motion--ken_burns .hero-animation-image,
.hero-motion--ken_burns .hero-animation-mobile-fallback,
.hero-motion--ken_burns .hero-animation-bg video {
    animation: hero-motion-ken-burns 30s ease-in-out infinite alternate;
}

.hero-motion-speed--slow .hero-animation-image,
.hero-motion-speed--slow .hero-animation-bg video,
.hero-motion-speed--slow .hero-gradient-animation,
.hero-motion-speed--slow .hero-animation-mobile-fallback {
    animation-duration: 36s;
}

.hero-motion-speed--fast .hero-animation-image,
.hero-motion-speed--fast .hero-animation-bg video,
.hero-motion-speed--fast .hero-gradient-animation,
.hero-motion-speed--fast .hero-animation-mobile-fallback {
    animation-duration: 14s;
}

.hero-animation-reduced .hero-gradient-animation,
.hero-animation-reduced .hero-animation-image,
.hero-animation-reduced .hero-animation-bg video {
    animation: none !important;
}

.hero-animation-mobile-fallback {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@keyframes hero-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes hero-motion-floating {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -1.5%, 0) scale(1.03); }
}

@keyframes hero-motion-slow-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

@keyframes hero-motion-parallax {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-1.5%, -1%, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes hero-motion-fade {
    from { opacity: 0.88; }
    to { opacity: 1; }
}

@keyframes hero-motion-ken-burns {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-2%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-gradient-animation,
    .hero-animation-image,
    .hero-animation-bg video,
    .hero-animation-mobile-fallback,
    .hero-section[class*="hero-anim-"] .hero-content > *,
    .hero-section[class*="hero-motion--"] .hero-animation-image,
    .hero-section[class*="hero-motion--"] .hero-animation-bg video {
        animation: none !important;
    }
}

.hero-accent {
    display: inline-block;
    width: 3rem;
    height: 3px;
    background: var(--cm-accent);
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .hero-section--height-fullscreen {
        min-height: min(var(--hero-height, 100vh), 85vh);
    }

    .hero-content .hero-title {
        font-size: var(--hero-heading-size, var(--hero-heading-size-mobile, clamp(1.75rem, 8vw, 2.5rem)));
        word-wrap: break-word;
    }

    .hero-content .lead,
    .hero-content .hero-description {
        max-width: 100%;
    }

    .hero-section.hero-valign-top,
    .hero-section.hero-valign-bottom {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.hero-actions--center {
    justify-content: center;
}

.cta-band .hero-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.55);
}

/* Sections */
.section-block {
    padding: var(--section-medium, 4rem) 0;
}

.section-block.alt-bg { background: var(--cm-white); }

.section-header {
    margin-bottom: 2.5rem;
}

.section-header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

.section-header--start {
    text-align: left;
    max-width: 700px;
}

.section-header__label,
.section-header .eyebrow,
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cm-blue);
    margin-bottom: 12px;
}

.section-header__title {
    font-family: var(--font-heading, var(--cm-font-display));
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--cm-steel-900, #0f172a);
}

.section-header__description {
    color: var(--cm-steel-600);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 1.0625rem;
}

.section-header--center .section-header__description {
    margin-left: auto;
    margin-right: auto;
}

.section-header--compact {
    margin-bottom: 0;
}

.section-header--compact .section-header__title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    margin-bottom: 12px;
}

.section-block__content {
    margin-top: 0;
}

.portfolio-category + .portfolio-category {
    margin-top: 1rem;
}

.portfolio-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portfolio-badge--completed { background: #e2e8f0; color: #334155; }
.portfolio-badge--ongoing { background: #dbeafe; color: #1d4ed8; }
.portfolio-badge--upcoming { background: #fef3c7; color: #b45309; }

.cm-card--project .card-img-top {
    height: 220px;
    object-fit: cover;
}

.project-gallery-item img {
    height: 240px;
    object-fit: cover;
}

.sc-gallery-thumb {
    height: 180px;
    object-fit: cover;
}

.sc-gallery-lightbox-image {
    max-height: 75vh;
    object-fit: contain;
    background: #000;
}

.sc-video-embed iframe {
    border: 0;
    border-radius: var(--cm-radius-lg, 0.75rem);
}

.project-details-list dt {
    margin-top: 0.75rem;
    color: var(--cm-steel-500);
}

.project-details-list dt:first-child {
    margin-top: 0;
}

.project-details-list dd {
    margin-bottom: 0;
}

/* Legacy section-header child selectors */
.section-header h2 {
    font-family: var(--font-heading, var(--cm-font-display));
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header p:not(.section-header__label):not(.eyebrow) {
    color: var(--cm-steel-600);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Cards */
.cm-card {
    position: relative;
    background: var(--cm-white);
    border: 1px solid var(--cm-steel-200);
    border-radius: var(--cm-radius-lg);
    overflow: hidden;
    transition: transform var(--cm-transition), box-shadow var(--cm-transition);
    height: 100%;
}

.cm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cm-shadow-lg);
}

.cm-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.cm-card .card-body { padding: 1.5rem; }

.cm-card .card-title {
    font-family: var(--cm-font-ui);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--cm-charcoal);
}

.cm-card .card-text { color: var(--cm-steel-600); font-size: 0.9375rem; }

.cm-card-icon-wrap {
    padding: 1.5rem 1.5rem 0;
}

.cm-card--service .cm-card-icon-wrap,
.cm-card--industry .cm-card-icon-wrap {
    padding-bottom: 0;
}

.cm-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--cm-blue);
    margin-top: 0.75rem;
}

.cm-card .card-link:hover {
    color: var(--cm-blue-dark);
}

.cm-card .card-link i {
    transition: transform var(--cm-transition);
}

.cm-card:hover .card-link i {
    transform: translateX(3px);
}

.cm-card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cm-steel-100);
    border-radius: var(--cm-radius);
    color: var(--cm-blue);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Tech logos */
.tech-logo-grid img {
    max-height: 48px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter var(--cm-transition);
}

.tech-logo-grid img:hover { filter: grayscale(0%); }

/* Testimonials */
.testimonial-card {
    background: var(--cm-white);
    border-left: 4px solid var(--cm-blue);
    padding: 2rem;
    border-radius: 0 var(--cm-radius-lg) var(--cm-radius-lg) 0;
    box-shadow: var(--cm-shadow);
}

.testimonial-card blockquote {
    font-size: 1.0625rem;
    color: var(--cm-steel-700);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* CTA band */
.cta-band {
    background: var(--cm-steel-900);
    color: var(--cm-white);
    padding: 4rem 0;
}

.cta-band h2 { color: var(--cm-white); }

/* Page header */
.page-header {
    background: var(--cm-steel-900);
    color: var(--cm-white);
    padding: 4rem 0 3rem;
}

.page-header h1 {
    color: var(--cm-white);
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.page-header .breadcrumb-item a { color: var(--cm-steel-300); }
.page-header .breadcrumb-item.active { color: var(--cm-steel-400); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: var(--cm-steel-500); }

/* Content prose */
.content-prose { font-size: 1.0625rem; line-height: 1.75; }
.content-prose h2, .content-prose h3 { margin-top: 2rem; margin-bottom: 1rem; }
.content-prose img { max-width: 100%; border-radius: var(--cm-radius); }

/* Forms */
.form-control, .form-select {
    border-color: var(--cm-steel-300);
    border-radius: var(--cm-radius);
    padding: 0.625rem 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--cm-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Footer */
.site-footer {
    background: var(--cm-charcoal);
    color: var(--cm-steel-400);
    padding: 4rem 0 2rem;
}

.site-footer h5 {
    color: var(--cm-white);
    font-family: var(--cm-font-ui);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.site-footer a { color: var(--cm-steel-400); }
.site-footer a:hover { color: var(--cm-white); }

.site-footer .footer-brand {
    font-family: var(--cm-font-display);
    font-size: 1.375rem;
    color: var(--cm-white);
}

.site-footer .footer-brand span { color: var(--cm-accent); }

.footer-contact a { color: var(--cm-steel-400); }
.footer-contact a:hover { color: var(--cm-white); }

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--cm-radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--cm-steel-300);
    transition: background var(--cm-transition), color var(--cm-transition);
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--cm-white);
}

/* Team */
.team-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--cm-radius-lg);
}

/* Filters */
.filter-bar {
    background: var(--cm-white);
    border: 1px solid var(--cm-steel-200);
    border-radius: var(--cm-radius-lg);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

/* Blog */
.blog-meta { font-size: 0.875rem; color: var(--cm-steel-500); }
.blog-category-badge {
    background: var(--cm-steel-100);
    color: var(--cm-steel-700);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 2rem;
}

/* Animations */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeSlideUp 0.6s ease forwards;
}

.animate-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-in-delay-3 { animation-delay: 0.3s; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 991.98px) {
    .section-block { padding: 3.5rem 0; }
    .hero-section { min-height: var(--hero-height, 500px); }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header--center,
    .section-header--start {
        max-width: 100%;
        padding-inline: 0.25rem;
    }

    .section-header__title,
    .section-header h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .section-header__description {
        font-size: 1rem;
    }

    .hero-actions .hero-btn {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 9rem;
    }
}

@media (max-width: 575.98px) {
    .hero-actions,
    .hero-actions--center {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .hero-btn {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* Secure access login portal */
.auth-portal-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(37, 99, 235, 0.18), transparent 45%),
        radial-gradient(ellipse at 80% 80%, rgba(14, 165, 233, 0.12), transparent 40%),
        linear-gradient(145deg, var(--cm-steel-900) 0%, var(--cm-steel-800) 55%, var(--cm-steel-700) 100%);
}

.auth-portal-card {
    width: 100%;
    max-width: 440px;
    background: var(--cm-white);
    border-radius: var(--cm-radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--cm-shadow-lg);
}

.auth-portal-logo {
    font-family: var(--cm-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--cm-charcoal);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.auth-portal-logo span { color: var(--cm-blue); }

.auth-portal-title {
    font-family: var(--cm-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    color: var(--cm-charcoal);
    margin-bottom: 0.25rem;
}

.auth-portal-subtitle {
    text-align: center;
    color: var(--cm-steel-500);
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
}

.auth-portal-card .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--cm-steel-700);
}

.auth-portal-card .form-control {
    border-color: var(--cm-steel-200);
    padding: 0.65rem 0.85rem;
}

.auth-portal-card .form-control:focus {
    border-color: var(--cm-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.auth-portal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.auth-portal-actions a {
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-auth-signin {
    background: var(--cm-blue);
    color: var(--cm-white);
    border: none;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: var(--cm-radius);
    width: 100%;
    transition: background var(--cm-transition);
}

.btn-auth-signin:hover {
    background: var(--cm-blue-dark);
    color: var(--cm-white);
}

.auth-portal-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--cm-steel-500);
}

.auth-portal-back {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--cm-steel-500);
}

.auth-portal-back:hover { color: var(--cm-blue); }

/* ── Phase 4: Theme bridge & global professionalization ── */

.container {
    max-width: var(--container-width, var(--theme-container-width, 1200px));
}

.cm-main {
    min-height: 50vh;
}

.theme-btn-square .btn-cta,
.theme-btn-square .btn-login,
.theme-btn-square .btn-outline-steel,
.theme-btn-square .btn-portal-card {
    border-radius: 4px;
}

.theme-card-border .cm-card,
.theme-card-border .testimonial-card,
.theme-card-border .portal-hub-card {
    box-shadow: none;
    border: 1px solid var(--cm-steel-300);
}

.theme-card-border .cm-card:hover {
    box-shadow: var(--cm-shadow);
}

.theme-menu-centered .site-nav .navbar-collapse {
    justify-content: center;
}

.theme-logo-center .site-nav .container {
    flex-wrap: wrap;
    justify-content: center;
}

.theme-footer-minimal .site-footer {
    padding-top: 3rem;
}

/* Scroll reveal animation framework */
.cm-reveal:not(.cm-reveal--visible):not(.aos-animate) {
    opacity: 0;
    transition:
        opacity var(--cm-animation-duration, 0.6s) var(--cm-animation-easing, cubic-bezier(0.22, 1, 0.36, 1)),
        transform var(--cm-animation-duration, 0.6s) var(--cm-animation-easing, cubic-bezier(0.22, 1, 0.36, 1));
    will-change: opacity, transform;
}

.cm-animation-fade .cm-reveal:not(.cm-reveal--visible):not(.aos-animate) {
    transform: translateY(24px);
}

.cm-animation-slide .cm-reveal:not(.cm-reveal--visible):not(.aos-animate) {
    transform: translateX(-32px);
}

.cm-animation-zoom .cm-reveal:not(.cm-reveal--visible):not(.aos-animate) {
    transform: scale(0.94);
}

.cm-reveal--visible,
.cm-reveal.aos-animate,
.cm-animations-disabled .cm-reveal,
.hero-section .cm-reveal.cm-stagger-item {
    opacity: 1;
    transform: none;
}

.cm-stagger-item:nth-child(1) { transition-delay: 0.05s; }
.cm-stagger-item:nth-child(2) { transition-delay: 0.12s; }
.cm-stagger-item:nth-child(3) { transition-delay: 0.19s; }
.cm-stagger-item:nth-child(4) { transition-delay: 0.26s; }
.cm-stagger-item:nth-child(5) { transition-delay: 0.33s; }
.cm-stagger-item:nth-child(6) { transition-delay: 0.4s; }

.cm-animations-disabled .cm-reveal,
.cm-animations-disabled .cm-stagger-item {
    transition-delay: 0s !important;
}

/* Page transitions */
.cm-page-transitions.cm-page-enter .cm-main {
    opacity: 0;
    transform: translateY(12px);
}

.cm-page-transitions.cm-page-ready .cm-main {
    opacity: 1;
    transform: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Back to top */
.cm-back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 999px;
    background: var(--cm-blue);
    color: var(--cm-white);
    box-shadow: var(--cm-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.cm-back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cm-back-to-top:hover {
    background: var(--cm-blue-dark);
}

/* Responsive image system */
.cm-media {
    display: block;
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.cm-media--cover .cm-media__img,
.cm-media .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.cm-card--project .cm-media .cm-media__img,
.cm-card--project .card-img-top {
    height: 220px;
}

.blog-card-featured .cm-media .cm-media__img,
.blog-card-featured .card-img-top {
    height: 280px;
}

.cm-media--contain .cm-media__img {
    object-fit: contain;
}

.cm-media--logo .cm-media__img,
.cm-media--logo-client .cm-media__img {
    width: auto;
    height: auto;
    max-height: 36px;
}

.cm-media--logo-client .cm-media__img {
    max-height: 64px;
    max-width: 100%;
}

.cm-media--icon-wrap {
    width: 64px;
    height: 48px;
    flex-shrink: 0;
}

.cm-media--icon .cm-media__img {
    width: 100%;
    height: 100%;
    max-height: 48px;
    max-width: 80px;
    object-fit: contain;
}

.cm-media--avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    overflow: hidden;
}

.cm-media--avatar .cm-media__img {
    width: 48px;
    height: 48px;
}

.sc-card-cover .cm-media__img {
    height: 180px;
}

.cm-media__img {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.cm-media:not(.cm-media--blur) .cm-media__img {
    opacity: 1;
}

.cm-media--loaded .cm-media__img,
.cm-media--blur.cm-media--loaded .cm-media__img {
    opacity: 1;
}

.cm-media--blur::before {
    content: '';
    position: absolute;
    inset: -12px;
    background-image: var(--cm-media-blur);
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.08);
    opacity: 0.65;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.cm-media--blur.cm-media--loaded::before {
    opacity: 0;
}

.cm-media picture,
.cm-media .cm-media__img {
    position: relative;
    z-index: 1;
}

.team-card .cm-media .cm-media__img {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: var(--cm-radius-lg);
}

/* Enhanced card hover */
.cm-card,
.testimonial-card {
    transition:
        transform var(--cm-transition),
        box-shadow var(--cm-transition),
        border-color var(--cm-transition);
}

.cm-card:hover .cm-media__img {
    transform: scale(1.03);
}

.cm-media .cm-media__img {
    transition: transform 0.45s ease, opacity 0.35s ease;
}

.cm-card:hover {
    border-color: rgba(37, 99, 235, 0.18);
}

.testimonial-card.cm-reveal {
    transform: translateY(20px);
}

.cm-animation-slide .testimonial-card.cm-reveal {
    transform: translateX(-20px);
}

.cm-animation-zoom .testimonial-card.cm-reveal {
    transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
    .cm-reveal,
    .cm-stagger-item,
    .cm-page-transitions .cm-main,
    .site-header,
    .cm-back-to-top,
    .cm-media__img,
    .cm-card {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        animation-duration: 0.01ms !important;
    }

    .cm-reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .main-navigation .dropdown-menu,
    .site-header--drawer-open .main-navigation__panel {
        animation: none !important;
    }
}
