/* Self-hosted Inter with local bold fallbacks for Lockdown Mode */
/* Named 'DSFont' to avoid conflicts with cached Google Fonts 'Inter' declarations */
@font-face {
    font-family: 'DSFont';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Helvetica Neue'), local('HelveticaNeue'), local('Arial'),
         url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'DSFont';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Helvetica Neue Medium'), local('HelveticaNeue-Medium'), local('Arial'),
         url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'DSFont';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Helvetica Neue Bold'), local('HelveticaNeue-Bold'), local('Arial Bold'), local('Arial-BoldMT'),
         url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'DSFont';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Helvetica Neue Bold'), local('HelveticaNeue-Bold'), local('Arial Bold'), local('Arial-BoldMT'),
         url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'DSFont';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Helvetica Neue'), local('Arial'),
         url('/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'DSFont';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Helvetica Neue Bold'), local('HelveticaNeue-Bold'), local('Arial Bold'),
         url('/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: light;
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-900: #0f172a;
    --blue: #094DB2;
    --blue-dark: #073a87;
    --blue-light: #1a6fd9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 19px;
    overflow-x: hidden;
}

body {
    font-family: 'DSFont', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Nav */
body > nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--gray-100);
}

body > nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 22px;
    width: auto;
}

@media (min-width: 769px) {
    .logo img {
        height: 28px;
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--black); }

.nav-links .btn {
    color: var(--white);
}

.nav-links .btn:hover {
    color: var(--white);
}

.nav-links .btn-ghost {
    color: var(--blue);
}

.nav-links .btn-ghost:hover {
    color: var(--blue);
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: -1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.5rem;
    min-width: 340px;
    white-space: nowrap;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s ease;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 400;
    border-radius: 6px;
    transition: all 0.15s;
}

.nav-dropdown-menu a:hover {
    background: var(--blue);
    color: var(--white);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-900);
    margin: 5px 0;
    border-radius: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--white);
    color: var(--blue);
    border: 2px solid transparent;
    padding: calc(0.875rem - 2px) calc(1.75rem - 2px);
}

.btn-ghost:hover {
    background: var(--white);
    border-color: var(--blue);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--black);
}

/* Footer */
footer {
    padding: 3rem 0;
    background: var(--gray-900);
    color: var(--gray-400);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

footer p {
    font-size: 0.875rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
}

.footer-nav a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--white);
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    background: var(--gray-50);
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--blue);
}

.hero-sub {
    font-size: 1.375rem;
    color: var(--gray-600);
    max-width: 600px;
    line-height: 1.5;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Philosophy */
.philosophy {
    padding: 8rem 0;
    background: var(--gray-50);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.philosophy-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--blue);
}

.philosophy-item p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.7;
}

/* Services "See all" link */
.services-more {
    margin-top: 3rem;
    text-align: center;
}

.services-more .btn-outline {
    border-color: rgba(255,255,255,0.2);
    color: var(--gray-400);
}

.services-more .btn-outline:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

/* Belief */
.belief-section {
    padding: 6rem 0;
}

/* About */
.about-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

/* Belief */
.belief {
    padding-bottom: 3rem;
}

.belief-content {
    text-align: center;
}

.belief h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.belief p {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

/* About */
.about {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    max-width: 850px;
    margin: 0 auto;
    align-items: center;
}

.about-photo {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    overflow: hidden;
    position: relative;
    margin-right: -80px;
    z-index: 1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-photo::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--blue);
    opacity: 0.3;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    background: var(--blue);
    padding: 2.5rem 2.5rem 2.5rem 5rem;
    border-radius: 12px;
    margin-left: -20px;
    box-shadow: 0 4px 24px rgba(9, 77, 178, 0.15);
}

.about-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.about-work-link {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.5rem 1.25rem;
    color: var(--white);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.8125rem;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    transition: border-color 0.2s, background 0.2s;
}

.about-work-link:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

/* Services */
.services {
    padding: 8rem 0;
    background: var(--gray-900);
    color: var(--white);
}

.services-header {
    margin-bottom: 4rem;
}

.services-header h2 {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.services-header p {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-item {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: border-color 0.3s, background 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
    background: rgba(255,255,255,0.03);
}

.service-item:hover {
    border-color: rgba(255,255,255,0.3);
}

.service-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--blue-light);
}

.service-item p {
    color: var(--gray-400);
    font-size: 1rem;
    line-height: 1.7;
}

/* Results */
.results {
    padding-top: 4rem;
    display: none;
}

.results-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.results-header h2 {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.result-item {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    border-left: 3px solid var(--blue);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.result-quote {
    font-size: 1rem;
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.result-author {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Credentials */
.credentials {
    padding: 4rem 0 3rem;
    background: var(--white);
    overflow: hidden;
    border-bottom: 1px solid var(--gray-100);
}

.credentials-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
    text-decoration: none;
    margin-bottom: 2.5rem;
    transition: color 0.2s;
}

.credentials-label:hover {
    color: var(--blue);
}

.credentials-scroll {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    overflow: hidden;
}

.credentials-track {
    display: flex;
    align-items: center;
    gap: 7rem;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style;
}

.credentials-track a {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.credentials-track img {
    height: 2.85rem;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.3s, opacity 0.3s;
}

.credentials-track img.logo-itil {
    height: 2.55rem;
}

.credentials-track img.logo-meta {
    height: 1.96rem;
}

.credentials-track img.logo-oracle {
    height: 1.7rem;
}

.credentials-track img.logo-lpi {
    height: 4.56rem;
}

.credentials-track img.logo-scrum {
    height: 3.42rem;
}

.credentials-track img.logo-salesforce {
    height: 5rem;
    margin-top: 0.4rem;
}

.credentials-track a:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* CTA */
.cta {
    padding: 8rem 0;
    text-align: center;
    background: var(--white);
}

.cta h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-box: trim-start cap alphabetic;
}

.cta p {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    margin: 0 0.5rem;
}

.cta .btn + .btn {
    margin-top: 0;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children within grids */
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.35s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 0.4s; }

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-100);
        box-shadow: 0 8px 30px rgba(0,0,0,0.06);
        flex-direction: column;
        padding: 1rem 2rem 1.5rem;
        gap: 0;
    }

    .nav-links.open { display: flex; }

    .nav-links > a,
    .nav-dropdown > a {
        padding: 0.75rem 0;
        font-size: 1rem;
        display: block;
    }

    .nav-links .btn {
        margin-top: 0.75rem;
        text-align: center;
        display: block;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0.5rem 1rem;
        min-width: auto;
        background: transparent;
    }

    .nav-dropdown-menu a {
        padding: 0.375rem 0;
        font-size: 0.875rem;
        color: var(--gray-500);
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
    }

    .footer-nav {
        order: -1;
        gap: 1.5rem;
    }

    footer .back-to-top {
        align-self: flex-start;
    }

    .cta .btn {
        display: block;
        margin: 0;
    }

    .cta .btn + .btn {
        margin-top: 1rem;
    }

    .philosophy-grid,
    .services-grid,
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero { min-height: 100vh; padding: 7rem 0 4rem; }
    .philosophy, .belief, .services, .cta { padding: 5rem 0; }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-photo {
        margin: 0 auto 1rem;
        width: 200px;
        height: 200px;
    }

    .about-text {
        margin-left: 0;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .philosophy-grid,
    .services-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }

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

/* =========================================================
   Inner pages: shared hero (credentials, work, salesforce, approach, case study)
   ========================================================= */
.page-hero { padding: 10rem 0 2rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.page-hero .lead { font-size: 1.25rem; color: var(--gray-600); line-height: 1.6; }
.page-hero .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8125rem; font-weight: 600; color: var(--blue); margin-bottom: 1rem; }

/* Section label + entries shared by credentials, work, and salesforce */
.cred-group { padding: 4rem 0; }
.cred-group + .cred-group { border-top: 1px solid var(--gray-100); }
.cred-group-title { font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); margin-bottom: 2.5rem; }
.cred-item[id] { scroll-margin-top: 6rem; }
.cred-list { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.cred-item { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; align-items: start; }
.cred-item img { width: 80px; height: 80px; object-fit: contain; }
.cred-item h4 { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.25rem; }
.cred-item .cred-issuer { font-size: 0.875rem; color: var(--blue); font-weight: 500; margin-bottom: 0.5rem; }
.cred-item p:last-child { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.6; }
a.cred-item { text-decoration: none; color: inherit; }
a.cred-item:hover h4 { color: var(--blue); }
.cred-github { width: 80px; height: 80px; color: var(--gray-900); }
.see-work { padding: 4rem 0; border-top: 1px solid var(--gray-100); text-align: center; }
.see-work a { color: var(--blue); text-decoration: none; font-weight: 500; font-size: 1rem; }
.see-work a:hover { text-decoration: underline; }

/* Work and salesforce pages: label column + content column */
.work-section { padding: 4rem 0; }
.work-section.gray { background: var(--gray-50); }
.work-section.white { background: var(--white); }
.work-section > .container { display: grid; grid-template-columns: 140px 1fr; gap: 2.5rem; align-items: start; }
.work-section .cred-group-title { margin: 0.4rem 0 0 0; grid-column: 1; }
.work-section > .container > .work-entry { grid-column: 2; }
.work-section > .container > .cred-list { grid-column: 2; }
.work-entry + .work-entry { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--gray-100); }
.work-entry h4 { font-size: 1.25rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }
.work-entry h4 a { color: inherit; text-decoration: none; }
.work-entry h4 a:hover { color: var(--gray-600); }
.work-entry .entry-meta { font-size: 0.875rem; color: var(--blue); font-weight: 500; margin-bottom: 1.25rem; }
.work-entry .entry-meta a { color: inherit; text-decoration: none; }
.work-entry .entry-meta a:hover { opacity: 0.7; }
.work-entry p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 1rem; }
.work-entry p:last-of-type { margin-bottom: 0; }
a.work-entry { display: block; text-decoration: none; color: inherit; }
a.work-entry:hover h4 { color: var(--blue); }

/* Salesforce page */
.sf-capabilities { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 3rem; }
.sf-capabilities h4 { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.375rem; }
.sf-capabilities p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.65; }
.sf-badges { grid-column: 2; display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: center; }
.sf-badges a { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-decoration: none; }
.sf-badges img { width: 96px; height: 96px; object-fit: contain; }
.sf-badges span { font-size: 0.8125rem; color: var(--gray-600); font-weight: 500; }
.sf-badges a:hover span { color: var(--blue); }
.more-work { grid-column: 2; }
.more-work a { color: var(--blue); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.more-work a:hover { text-decoration: underline; }
.case-feature { grid-column: 2; background: var(--white); border: 1px solid var(--gray-200); border-left: 4px solid var(--blue); border-radius: 8px; padding: 2.25rem 2.5rem; box-shadow: 0 4px 24px rgba(9, 77, 178, 0.08); }
.case-feature h4 { font-size: 1.5rem; }
.case-feature .btn { margin-top: 1.5rem; }

/* Case study pages */
.page-case-study .page-hero { padding: 10rem 0 3rem; }
.page-case-study .page-hero h1 { margin-bottom: 1rem; max-width: 820px; }
.page-case-study .page-hero .lead { max-width: 820px; }
.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gray-200); border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; margin: 2.5rem 0 0; max-width: 1036px; }
.glance > div { background: var(--white); padding: 1.125rem; }
.glance dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); margin-bottom: 0.375rem; }
.glance dd { margin: 0; font-weight: 600; font-size: 0.9375rem; line-height: 1.4; color: var(--gray-900); }
.case-section { padding: 3.5rem 0; }
.case-section.gray { background: var(--gray-50); }
.case-article { max-width: 820px; }
.case-article h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1rem; }
.case-article h3 { font-size: 1.125rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.case-steps { counter-reset: step; }
.case-steps h3 { counter-increment: step; margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.case-steps h3:first-of-type { margin-top: 1rem; padding-top: 0; border-top: none; }
.case-steps h3::before { content: counter(step, decimal-leading-zero); color: var(--blue); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.05em; margin-right: 0.875rem; }
.case-article p { font-size: 1rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 1rem; }
.case-article p:last-child { margin-bottom: 0; }
.case-article ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.case-article li { font-size: 1rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 0.625rem; }
.case-article strong { color: var(--gray-900); }
.pull { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; color: var(--gray-900); border-left: 4px solid var(--blue); padding: 0.375rem 0 0.375rem 1.375rem; margin: 0; max-width: 820px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-200); border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; max-width: 820px; }
.metric { background: var(--white); padding: 1.375rem 1.125rem; }
.metric .num { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; color: var(--gray-900); }
.metric .lbl { font-size: 0.875rem; color: var(--gray-600); margin-top: 0.25rem; }

/* Approach page */
.page-approach .page-hero { padding: 10rem 0 4rem; }
.page-approach .page-hero p { font-size: 1.25rem; color: var(--gray-600); max-width: 600px; line-height: 1.5; }
.approach-detail { background: var(--gray-50); padding: 5rem 0 8rem; }
.approach-detail-grid { display: grid; gap: 4rem; max-width: 800px; }
.approach-detail-item h3 { font-size: 1.375rem; font-weight: 600; margin-bottom: 1rem; color: var(--blue); letter-spacing: -0.01em; }
.approach-detail-item p { color: var(--gray-600); font-size: 1.0625rem; line-height: 1.8; }
.approach-detail-item p + p { margin-top: 1rem; }

/* Service pages */
.service-detail { padding: 10rem 0 5rem; background: var(--gray-50); }
.service-detail h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.service-detail .lead { font-size: 1.25rem; margin-bottom: 3rem; color: var(--gray-600); max-width: 640px; line-height: 1.6; }
.service-detail-intro { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: start; }
.service-detail-body p { font-size: 1.0625rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 1.25rem; }
.service-detail-body p:last-child { margin-bottom: 0; }
.service-detail-aside { background: var(--blue); border-radius: 16px; padding: 2.5rem; }
.service-detail-aside p { font-size: 1.0625rem; color: rgba(255,255,255,0.9); line-height: 1.6; margin-bottom: 2rem; }
.service-detail-aside .btn { width: 100%; text-align: center; background: var(--white); color: var(--blue); font-weight: 600; }
.service-detail-aside .btn:hover { background: var(--gray-50); }
.capabilities-section { background: var(--white); padding: 5rem 0; }
.capabilities-header { font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); margin-bottom: 2.5rem; }
.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.capability h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.375rem; color: var(--gray-900); }
.capability p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.7; }

/* Contact page */
.page-contact { background: var(--gray-50); }
.contact { min-height: 100vh; display: flex; align-items: center; padding: 8rem 0 6rem; }
.contact-header { text-align: center; margin-bottom: 3rem; }
.contact-header h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.contact-header p { font-size: 1.125rem; color: var(--gray-600); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-card { background: var(--white); border-radius: 12px; padding: 3rem; border: 1px solid var(--gray-200); display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s; }
/* Default: Calendly highlighted; hover moves the highlight temporarily; focus makes it sticky */
.contact-card.featured { border-color: var(--blue); box-shadow: 0 4px 24px rgba(9, 77, 178, 0.1); }
.contact-card:hover { border-color: var(--blue); box-shadow: 0 4px 24px rgba(9, 77, 178, 0.1); }
.contact-grid:has(.contact-card:hover) .contact-card.featured:not(:hover) { border-color: var(--gray-200); box-shadow: none; }
.contact-card:focus-within { border-color: var(--blue); box-shadow: 0 4px 24px rgba(9, 77, 178, 0.1); }
.contact-grid:has(.contact-card:focus-within) .contact-card:not(:focus-within) { border-color: var(--gray-200); box-shadow: none; }
.contact-card .btn,
.contact-card form { margin-top: auto; }
.contact-card h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.01em; color: var(--blue); }
.contact-card .intro-text { color: var(--gray-600); font-size: 1rem; line-height: 1.6; margin-bottom: 2rem; }
.contact-card .btn { width: 100%; height: 3.25rem; padding: 0 1.75rem; font-size: 0.9375rem; line-height: 1; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--gray-900); margin-bottom: 0.5rem; }
.form-group input,
.form-group textarea { width: 100%; padding: 0.75rem 1rem; font-size: 0.9375rem; font-family: inherit; border: 1px solid var(--gray-200); border-radius: 6px; background: var(--white); color: var(--gray-900); transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9, 77, 178, 0.1); }
.form-group textarea { min-height: 100px; resize: vertical; }
.call-details { margin-bottom: 2rem; }
.call-details li { list-style: none; color: var(--gray-600); font-size: 0.9375rem; padding: 0.5rem 0; padding-left: 1.5rem; position: relative; }
.call-details li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 600; }
.form-extra { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s ease, opacity 0.3s ease; }
.form-extra.visible { max-height: 200px; opacity: 1; }

/* 404 page */
.page-404 { background: var(--gray-50); }
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.error-page { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6rem 2rem 2rem; }
.error-page h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.error-page p { color: var(--gray-600); font-size: 1.125rem; margin-bottom: 2rem; }

/* Inner pages: mobile */
@media (max-width: 768px) {
    .page-hero { padding: 7rem 0 2rem; }
    .page-approach .page-hero { padding: 7rem 0 3rem; }
    .approach-detail { padding: 3rem 0 5rem; }
    .cred-list { grid-template-columns: 1fr; gap: 2.5rem; }
    .work-section > .container { grid-template-columns: 1fr; gap: 1rem; }
    .work-section .cred-group-title { margin: 0 0 1rem 0; }
    .work-section > .container > .work-entry,
    .work-section > .container > .cred-list,
    .sf-capabilities,
    .sf-badges,
    .case-feature,
    .more-work { grid-column: 1; }
    .sf-capabilities { grid-template-columns: 1fr; }
    .case-feature { padding: 1.5rem; }
    .glance { grid-template-columns: repeat(2, 1fr); }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .service-detail { padding: 7rem 0 3rem; }
    .service-detail-intro { grid-template-columns: 1fr; gap: 2rem; }
    .capabilities { grid-template-columns: 1fr; }
    .contact { padding: 7rem 0 4rem; }
    .contact-grid { grid-template-columns: 1fr; }
}
