/* ============================================
   CSS VARIABLES (Design System)
   ============================================ */
:root {
    --primary-purple: #491998;
    --secondary-gray: #6B7280;
    --accent-teal: #0D9488;
    --light-purple: #A773F0;
    --bg-gray: #F9FAFB;
    --text-dark: #1C2937;
    --border-gray: #E5E7EB;
    --white: #FFFFFF;
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --shadow-sm: 0 2px 8px rgba(73, 25, 152, 0.06);
    --shadow-md: 0 4px 12px rgba(73, 25, 152, 0.2);
    --shadow-lg: 0 8px 24px rgba(73, 25, 152, 0.12);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Safe defaults for headings to prevent mid-word breaks */
h1,
h2,
h3,
h4,
h5,
h6 {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-purple);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 var(--border-radius-sm) 0;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity var(--transition-medium);
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    position: absolute;
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    margin-top: 80px;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px clamp(20px, 4vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* Anchor offset for fixed navbar (e.g., /approach.html#ai) */
:target {
    scroll-margin-top: 96px;
}

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

.logo-image {
    height: clamp(24px, 1.8vw + 0.5rem, 28px);
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: clamp(16px, 2.5vw + 0.5rem, 32px);
    font-size: clamp(14px, 0.9vw + 0.5rem, 15px);
    font-weight: 500;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-purple);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--primary-purple);
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-purple);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--primary-purple);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 80px 40px 40px;
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 36px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-close:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 2px;
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    padding: 12px 0;
    display: block;
    transition: transform 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus {
    transform: translateX(8px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 64vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 60px;
    overflow: hidden;
    background: #FFFFFF;
    width: 100%;
    margin: 0;
}

/* Hero should not have margin-top from section spacing */
.hero+section {
    margin-top: 20px;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.176);
    transform-origin: center top;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.7) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0.3) 100%);
    mix-blend-mode: multiply;
    z-index: 1;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    pointer-events: none;
    opacity: 0.4;
    z-index: 2;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
}

.blob-1 {
    top: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(73, 25, 152, 0.3) 0%, rgba(167, 115, 240, 0.2) 50%, transparent 100%);
    animation-delay: 0s;
}

.blob-2 {
    top: 40%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, rgba(167, 115, 240, 0.15) 50%, transparent 100%);
    animation-delay: -7s;
}

.dot-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(73, 25, 152, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    animation: drift 30s linear infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes drift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
    padding: 0 clamp(20px, 4vw, 60px);
    box-sizing: border-box;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text-container {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-headline {
    font-size: clamp(1.75rem, 4vw + 1rem, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(73, 25, 152, 0.08);
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    box-sizing: border-box;
    width: 100%;
}

.hero-headline .highlight {
    color: var(--primary-purple);
}

/* Keep highlight together when there's room (desktop: ≥900px) */
.hero-headline .highlight {
    white-space: nowrap;
}

.hero-subhead {
    font-size: clamp(1rem, 1vw + 0.75rem, 1.25rem);
    line-height: 1.75;
    color: #1C2937;
    margin-bottom: 48px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.01em;
    font-weight: 400;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-subhead strong {
    color: var(--text-dark);
    font-weight: 600;
}

.hero-text-container .btn-primary {
    margin: 0 auto;
}

.cursor-animation {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-placeholder {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(73, 25, 152, 0.1) 0%, rgba(13, 148, 136, 0.05) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-gray);
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--border-gray);
    text-align: center;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-block;
    background: var(--primary-purple);
    color: white;
    padding: clamp(12px, 1.5vw + 0.5rem, 18px) clamp(24px, 3vw + 0.5rem, 40px);
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(16px, 1.5vw + 0.5rem, 18px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(73, 25, 152, 0.2);
    border: none;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    filter: brightness(0.85);
}

.btn-subscribe {
    display: inline-block;
    background: var(--accent-teal);
    color: white;
    padding: 12px 32px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    align-self: flex-start;
}

.btn-subscribe:hover {
    filter: brightness(0.85);
}

.text-link {
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.text-link:hover {
    color: #0A7A70;
    transform: scale(1.02);
}

.text-link:focus-visible {
    outline: 3px solid var(--accent-teal);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    width: 100%;
    position: relative;
    padding: 90px 0;
    overflow: hidden;
}

/* Panel fade overlay - purple gradient with multiply blend mode */
.panel-fade-overlay {
    background: white;
    position: relative;
}

.panel-fade-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(167, 115, 240, 0.2) 0%,
            rgba(167, 115, 240, 0.125) 50%,
            rgba(167, 115, 240, 0.05) 100%);
    mix-blend-mode: multiply;
    z-index: 0;
    pointer-events: none;
}

.panel-fade-overlay>* {
    position: relative;
    z-index: 1;
}

/* White space between sections - creates the gap */
section+section {
    margin-top: 20px;
}

/* Content wrapper inside sections to constrain text */
.section-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 clamp(20px, 4vw, 60px);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* Remove max-width from inline styles */
section[style*="max-width"] {
    max-width: none !important;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw + 1rem, 3.5rem);
    color: var(--primary-purple);
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(73, 25, 152, 0.08);
}

.section-header .intro {
    font-size: clamp(1rem, 1vw + 0.75rem, 1.25rem);
    color: var(--secondary-gray);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   FADE-IN ANIMATIONS FOR CARDS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay classes */
.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

.fade-in-delay-4 {
    transition-delay: 0.4s;
}

.fade-in-delay-5 {
    transition-delay: 0.5s;
}

.fade-in-delay-6 {
    transition-delay: 0.6s;
}

/* ============================================
   WHAT WE DO
   ============================================ */
.what-we-do-container {
    width: 100%;
    overflow: hidden;
}

.what-we-do-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 600px;
    align-items: stretch;
}

.what-we-do-text {
    padding: 90px clamp(20px, 4vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 80px;
}

.deliverable-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
}

.checkmark {
    color: var(--accent-teal);
    font-size: 8px;
    flex-shrink: 0;
    margin-top: 8px;
}

.subsection-header {
    text-align: center;
    margin: 80px 0 40px;
}

.subsection-header h3 {
    font-size: 36px;
    color: var(--primary-purple);
    margin-bottom: 16px;
    font-weight: 700;
}

.subsection-header p {
    font-size: 18px;
    color: var(--secondary-gray);
    max-width: 800px;
    margin: 0 auto;
}

.panels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.panel {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    /* Home page panels are clickable links */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
}

.panel:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--accent-teal);
}

.work-content h4 {
    font-size: clamp(22px, 2.5vw + 0.5rem, 28px);
    color: var(--primary-purple);
    margin-bottom: 16px;
    font-weight: 700;
}

.work-content .description {
    color: var(--secondary-gray);
    font-size: 18px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.panel h4 {
    font-size: clamp(22px, 2.5vw + 0.5rem, 28px);
    color: var(--primary-purple);
    margin-bottom: 16px;
    font-weight: 700;
}

.panel .description {
    color: var(--secondary-gray);
    font-size: 18px;
    margin-bottom: 32px;
}

.illustration-placeholder {
    background: linear-gradient(135deg, #F3E8FF 0%, #E0F2F1 100%);
    height: 256px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    border: 2px solid var(--border-gray);
    font-size: 14px;
    color: var(--secondary-gray);
    font-weight: 600;
    overflow: hidden;
    position: relative;
}

.illustration-placeholder:has(.panel-illustration) {
    background: none;
    border: 2px solid var(--border-gray);
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

.panel-illustration {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.panel-illustration[src*="buildtestlearn"] {
    transform: scale(1.2) translateY(10%);
    transform-origin: center;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    filter: contrast(1.05) brightness(1.02);
}

.panel h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--light-purple);
}

.panel ul {
    list-style: none;
}

.panel li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-dark);
}

.panel .bullet-icon {
    width: 28px;
    height: 28px;
    background: #E0F2F1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-teal);
    font-weight: 700;
    margin-top: 2px;
}

/* ============================================
   AI ADOPTION SECTION
   ============================================ */
.ai-adoption-section {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.ai-adoption-section h2 {
    font-size: clamp(1.75rem, 3vw + 1rem, 3rem);
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 32px;
    text-align: left;
}

.ai-adoption-section p {
    font-size: clamp(1rem, 1vw + 0.75rem, 1.25rem);
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0 0 40px 0;
}

.ai-illustration {
    background: linear-gradient(135deg, #F3E8FF 0%, #E0F2F1 100%);
    border-radius: 16px;
    padding: 80px;
    border: 2px solid var(--border-gray);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--secondary-gray);
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.ai-illustration:has(.whatwedo-illustration-img),
.ai-illustration:has(img) {
    padding: 24px;
    background: white;
    border: 2px solid var(--border-gray);
}

.ai-illustration img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

/* Home: AI adoption image should always fill its rounded container */
.ai-adoption-section .ai-illustration {
    /* Give the container a definite height so cover can work reliably */
    width: 90%;
    height: auto;
    aspect-ratio: auto;
    max-height: none;
    border: none;
    background: none;
    padding: 0;
    margin-right: 24px;
}

.ai-adoption-section .ai-illustration img {
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
}

/* What We Do illustration - fills container completely */
.ai-illustration:has(.whatwedo-illustration-img) {
    min-height: 400px;
    height: 100%;
    padding: 0;
    background: white;
    border: 2px solid var(--border-gray);
}

.whatwedo-illustration-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    display: block;
    max-height: none;
    /* Override the generic img max-height */
    transform: scale(1.95);
    transform-origin: center top;
    /* Zoom in to fill the space better */
}

/* ============================================
   TESTIMONIALS - Horizontal Scrolling
   ============================================ */
.testimonials-scroll-container {
    overflow: hidden;
    width: 100%;
    margin-top: 48px;
    padding: 0 60px;
}

.testimonials-scroll-track {
    display: flex;
    gap: 32px;
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.testimonials-scroll-track:active {
    cursor: grabbing;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    flex-shrink: 0;
    width: 420px;
    height: 400px;
    background: #ffffff;
    background: color-mix(in srgb, #F9FAFB 30%, #ffffff 70%);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.testimonial-avatar::before,
.testimonial-avatar::after {
    content: none;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-avatar img[src=""],
.testimonial-avatar img:not([src]) {
    display: none;
}

.testimonial-info {
    flex: 1;
}

.testimonial-logo {
    width: 120px;
    height: 40px;
    background: var(--bg-gray);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    color: var(--secondary-gray);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 6px 8px;
    line-height: 1.2;
}

/* When we don't have a company logo image, we put the PERSON NAME here instead. */
.testimonial-logo[data-has-text="true"] {
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    justify-content: flex-start;
    text-align: left;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
}

.testimonial-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 4px;
}

.testimonial-logo img[src=""],
.testimonial-logo img:not([src]) {
    display: none;
}

.testimonial-avatar img[src=""]::after,
.testimonial-avatar img:not([src])::after {
    content: none;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.testimonial-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    line-height: 1.25;
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

/* ============================================
   TRUST CARD
   ============================================ */
.trust-card {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.trust-card h3 {
    font-size: 28px;
    color: var(--primary-purple);
    margin-bottom: 24px;
    font-weight: 700;
    text-align: center;
}

.trust-card p {
    font-size: 18px;
    color: var(--secondary-gray);
    line-height: 1.7;
    margin-bottom: 32px;
    text-align: center;
}

/* ============================================
   LOGO CAROUSEL
   ============================================ */
.logo-carousel {
    --carousel-speed: 0.5;
    --carousel-gap: 60px;
    --logo-height: 60px;
    padding-top: 32px;
    border-top: 2px solid var(--border-gray);
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.logo-carousel-track {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-y pinch-zoom;
}

.logo-carousel-track:active {
    cursor: grabbing;
}

.logo-carousel-track:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

.logo-carousel-inner {
    display: flex;
    gap: var(--carousel-gap);
    align-items: center;
    will-change: transform;
    transform: translateX(0);
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--logo-height);
    background: white;
    padding: 8px 16px;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.logo-item:hover {
    transform: scale(1.05);
}

.client-logo {
    max-height: var(--logo-height);
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
}

/* ============================================
   CASE CARDS (Redesigned - Image Top)
   ============================================ */
.case-cards,
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Card Container */
.case-card {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    min-height: 440px;
    /* Ensures consistent height across cards */
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.case-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Image Section */
.card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

/* Fallback if no image */
.card-image-fallback {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #F3E8FF 0%, #E0F2F1 100%);
    flex-shrink: 0;
}

/* Content Section */
.card-content {
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Metric Headline */
.case-card .metric-headline {
    font-size: 32px;
    font-weight: 800;
    color: rgba(13, 148, 136, 0.6);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-top: 32px;
    margin-bottom: 20px;
    text-align: left;
    padding: 0;
    border: none;
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: border-box;
    -webkit-background-clip: border-box;
}

/* Teaser / Description */
.case-card .case-teaser {
    font-size: 16px;
    font-weight: 400;
    color: var(--secondary-gray);
    line-height: 1.6;
    margin-bottom: 32px;
    margin-top: 0;
}

/* Client Logo Container */
.case-card .card-footer {
    display: flex;
    flex-direction: column;
    padding: 0 32px 32px 32px;
    margin-top: auto;
}

.case-card .client-logo {
    width: auto;
    height: 48px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 160px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.case-card .client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
}

.case-card .client-name {
    display: none;
}

/* CTA Link (Hidden/Removed) */
.case-card .card-cta {
    display: none;
}

.case-card .card-cta:hover {
    color: #0A7A6F;
    text-decoration: underline;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.case-card .card-cta .arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.case-card .card-cta:hover .arrow {
    transform: translateX(4px);
}

/* Desktop-break shows on tablet and above (≥600px), hidden on mobile */
.desktop-break {
    display: inline;
}

/* ============================================
   INSIGHTS
   ============================================ */
.insights-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.featured-article {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.featured-article:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.tags {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-purple);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.featured-article h3 {
    font-size: 32px;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
}

.featured-article .excerpt {
    font-size: 18px;
    color: var(--secondary-gray);
    line-height: 1.7;
    margin-bottom: 32px;
}

.article-image-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #F3E8FF 0%, #E0F2F1 100%);
    border-radius: 12px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--light-purple);
    font-size: 14px;
    color: var(--secondary-gray);
    font-weight: 600;
}

.recent-articles {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.recent-articles:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.recent-articles h4 {
    font-size: 24px;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 32px;
}

.recent-articles ul {
    list-style: none;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin: 0 -16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recent-item:hover {
    background: #F9FAFB;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.recent-item:last-child {
    margin-bottom: 0;
}

.recent-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    background: #F3F4F6;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-gray);
}

.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-thumb.no-image {
    background: linear-gradient(135deg, #F3E8FF 0%, #E0F2F1 100%);
}

/* Recent articles title */
.recent-title {
    color: var(--primary-purple);
    font-weight: 700;
    line-height: 1.4;
    font-size: 15px;
}

.recent-item:hover .recent-title {
    color: #3a1477;
}

/* Legacy link styles */
.recent-articles a {
    color: var(--primary-purple);
    font-weight: 700;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

.recent-articles a:hover {
    color: #3a1477;
}

.recent-articles a:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    background: white;
    text-align: center;
    padding: 90px 0;
    width: 100%;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(167, 115, 240, 0.2) 0%,
            rgba(167, 115, 240, 0.125) 50%,
            rgba(167, 115, 240, 0.05) 100%);
    mix-blend-mode: multiply;
    z-index: 0;
    pointer-events: none;
}

.final-cta-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.final-cta h2 {
    font-size: clamp(1.75rem, 3vw + 1rem, 3rem);
    color: var(--primary-purple);
    margin-bottom: 24px;
    font-weight: 700;
}

.final-cta p {
    font-size: clamp(1rem, 1vw + 0.75rem, 1.25rem);
    color: var(--secondary-gray);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #251342;
    border-top: 2px solid var(--accent-teal);
    padding: 80px 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section h4 {
    font-size: 20px;
    color: var(--light-purple);
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input {
    padding: 12px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.footer-brand {
    align-items: flex-start;
}

.footer-logo-img {
    height: 75px;
    width: auto;
    margin-bottom: 20px;
    display: block;
    object-fit: contain;
    margin-left: -5px;
    margin-top: -30px;
}

.footer-mission {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.6;
    max-width: 280px;
}

.footer-heading {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--light-purple);
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 16px;
    font-size: 16px;
    color: white;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-purple);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid var(--border-gray);
    color: white;
    font-size: 14px;
}

/* ============================================
   MODAL
   ============================================ */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
    padding: 20px;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 48px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-medium);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-backdrop.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--secondary-gray);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.modal-close:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
}

.modal h2 {
    font-size: 32px;
    color: var(--primary-purple);
    margin-bottom: 24px;
    font-weight: 700;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-form label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: all var(--transition-fast);
    min-height: 44px;
}

.modal-form textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(73, 25, 152, 0.1);
}

.modal-form input.error,
.modal-form textarea.error {
    border-color: #DC2626;
}

.modal-form .error-message {
    color: #DC2626;
    font-size: 14px;
    margin-top: -4px;
    display: none;
}

.modal-form .error-message.show {
    display: block;
}

.modal-form .success-message {
    color: var(--accent-teal);
    font-size: 16px;
    padding: 16px;
    background: #E0F2F1;
    border-radius: var(--border-radius-sm);
    display: none;
}

.modal-form .success-message.show {
    display: block;
}

.modal-form .honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   IMAGE LAZY LOADING
   ============================================ */
img {
    opacity: 1;
    transition: opacity 0.4s ease;
}

img.loaded {
    opacity: 1;
}

/* ============================================
   FOCUS VISIBLE STYLES
   ============================================ */
*:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
}

/* ============================================
   PAGE HERO (For internal pages)
   ============================================ */
/* Base page hero (shared styles for all page heroes) */
.page-hero {
    padding: 140px 60px 100px;
    text-align: center;
    position: relative;
    background: center center / cover no-repeat;
    color: white;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(73, 25, 152, 0.7);
    z-index: 0;
}

.page-hero>* {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    letter-spacing: -0.02em;
}

.page-hero .hero-subhead {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 auto;
    opacity: 0.9;
    color: white;
    max-width: 700px;
}

/* Page-specific hero backgrounds - all use the same image as Insights */
.page-hero--approach,
.page-hero--work,
.page-hero--about {
    background-image: url('../images/bkgd_insights.avif');
}


/* About page intro styling */
.page-hero .about-intro {
    max-width: 900px;
    margin: 0 auto;
}

.page-hero .about-intro p {
    font-size: 24px;
    line-height: 1.7;
    color: white;
    opacity: 0.95;
}

/* ============================================
   APPROACH PAGE STYLES
   ============================================ */
.phase-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.phase-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.phase-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--accent-teal);
}

.phase-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.phase-card h3 {
    font-size: 24px;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 24px;
}

.phase-card .outcome-label,
.phase-card .approach-label,
.phase-card .deliverable-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    margin-top: 20px;
}

.phase-card .outcome-label:first-of-type {
    margin-top: 0;
}

.phase-card p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* AI Capabilities Grid */
.ai-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.ai-capability-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.ai-capability-card:hover {
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.ai-capability-card h4 {
    font-size: 20px;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 16px;
}

.ai-capability-card p {
    font-size: 16px;
    color: var(--secondary-gray);
    line-height: 1.6;
}

/* Principles Section */
.principles-section {
    background: var(--bg-gray);
    padding: 100px 60px;
    text-align: center;
}

/* Make "What never changes" match the Approach heading treatment
   (same as "When AI is part of the solution" / "Strategic. Collaborative. Proven.") */
.page-approach .principles-section .section-header h2 {
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    text-shadow: none;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.principle-item {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.principle-item h4 {
    font-size: 24px;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 12px;
}

.principle-item p {
    font-size: 18px;
    color: var(--secondary-gray);
}

/* Principles grid tablet adjustment moved to consolidated tablet breakpoint */

/* ============================================
   METHODOLOGY SECTION (Side-by-Side Layout)
   ============================================
   This pattern presents two methodologies in a balanced editorial layout.
   The left side uses a sequential step selector; the right is static.
   Designed to feel like consulting documentation, not product UI.

   Pattern Structure:
   - .methodology-section: Full-width container
   - .methodology-grid: Two-column layout (50/50)
   - .methodology-column: Individual columns
   - .step-selector: Horizontal step tabs with progress indicator
   - .step-content: Content panels for each step
   - .btl-content: Static checklist for Build, Test, Learn
*/

.methodology-section {
    background: var(--bg-gray);
}

/* Approach page: keep panel backgrounds consistent */
.page-approach #ai {
    background: var(--bg-gray);
}

/* AI section heading hierarchy:
   - "When AI is part of the solution" is an editorial kicker (h3)
   - "Our AI capabilities" is the primary section title (h2)
*/
.page-approach #ai .section-header h3 {
    /* Match .methodology-header h2 ("Strategic. Collaborative. Proven.") */
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    text-shadow: none;
}

.page-approach #ai .ai-capabilities-title {
    text-align: center;
    color: var(--primary-purple);
    font-size: clamp(1.375rem, 1.25vw + 1rem, 1.75rem);
    margin: 0 0 40px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(73, 25, 152, 0.08);
    max-width: min(28ch, 100%);
    margin-left: auto;
    margin-right: auto;
}

/* Two-column grid: balanced visual weight */
.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Match home page panels spacing */
    gap: 40px;
}

/* Individual column styling */
.methodology-column {
    /* Match home page panel treatment */
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--shadow-sm);
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

/* Column header with title and intro */
.methodology-header {
    margin-bottom: 24px;
    /* Tightened from 40px */
}

.methodology-header h2 {
    /* Match home page panel heading sizing */
    font-size: clamp(22px, 2.5vw + 0.5rem, 28px);
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    text-shadow: none;
}

.methodology-intro {
    font-size: 16px;
    color: var(--secondary-gray);
    line-height: 1.6;
    margin: 0;
}

/* Framing sentence above steps */
.step-framing {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.8;
}

/* ----------------------------------------
   STEP SELECTOR (Horizontal Tab Navigation)
   ----------------------------------------
   Text-based steps displayed horizontally.
   Features a progress rule that tracks the active step.
*/
.step-selector {
    /* Reset global nav styles */
    position: relative;
    /* Context for progress bar */
    top: auto;
    left: auto;
    right: auto;
    background: none;
    backdrop-filter: none;
    padding: 0;
    z-index: auto;
    justify-content: flex-start;

    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-gray);
    /* The faint baseline */
    margin-bottom: 32px;
}

/* The Progress Indicator Line */
.step-selector::after {
    content: '';
    position: absolute;
    bottom: -1px;
    /* Overlap the border */
    left: var(--indicator-left, 0%);
    height: 2px;
    background: var(--primary-purple);
    width: 25%;
    /* 4 steps = 25% each */
    transition: left 0.3s ease;
    z-index: 1;
}

/* Map active step to left position (assuming 4 steps = 25% each) */
.step-selector[data-active-step="1"] {
    --indicator-left: 0%;
}

.step-selector[data-active-step="2"] {
    --indicator-left: 25%;
}

.step-selector[data-active-step="3"] {
    --indicator-left: 50%;
}

.step-selector[data-active-step="4"] {
    --indicator-left: 75%;
}

.step-selector__step {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px 20px 0;
    /* Left aligned text, padding right */
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: color var(--transition-fast);
}

.step-selector__step:last-child {
    padding-right: 0;
}

/* Step number: small uppercase label */
.step-selector__number {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    transition: color var(--transition-fast);
}

/* Step label: the phase name */
.step-selector__label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-gray);
    /* Grey out inactive */
    line-height: 1.2;
    margin-bottom: 4px;
    transition: color var(--transition-fast);
}

/* Step descriptor: secondary context line */
.step-selector__descriptor {
    display: block;
    font-size: 13px;
    color: var(--secondary-gray);
    font-weight: 400;
    line-height: 1.3;
    opacity: 0.8;
}

/* Hide individual underlines in favor of the progress bar */
.step-selector__step::after {
    display: none;
}

/* Active step state */
.step-selector__step--active .step-selector__number {
    color: var(--accent-teal);
}

.step-selector__step--active .step-selector__label {
    color: var(--primary-purple);
    font-weight: 700;
}

.step-selector__step--active .step-selector__descriptor {
    color: var(--primary-purple);
    opacity: 1;
    font-weight: 500;
}

/* Hover state for non-active steps */
.step-selector__step:not(.step-selector__step--active):hover .step-selector__label {
    color: var(--primary-purple);
}

/* Focus state for accessibility */
.step-selector__step:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ----------------------------------------
   STEP CONTENT PANELS
   ----------------------------------------
   Content area below the step selector.
   Only one panel visible at a time.
   Fades in/out on step change (200ms).
*/
.page-approach .methodology-section {
    /* Unify copy color to match .methodology-intro */
    color: var(--secondary-gray);
}

.page-approach .methodology-section .methodology-header h2 {
    /* Ensure the card headings match home page panels */
    color: var(--primary-purple);
    text-shadow: none;
}

.step-content-area {
    position: relative;
    flex-grow: 1;
    /* Ensure consistent height behavior */
}

.step-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 250ms ease, visibility 250ms ease;
}

.step-content--active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Individual content sections (Outcome, How, What) */
.step-content__section {
    margin-bottom: 24px;
    /* Restored breathing room */
    padding-bottom: 0;
    border-bottom: none;
    /* Removed internal separators */
}

.step-content__section:last-child {
    margin-bottom: 0;
}

/* Content labels: strengthened hierarchy */
.step-content__label {
    font-size: 11px;
    font-weight: 800;
    color: var(--secondary-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.step-content__section p {
    font-size: 16px;
    color: var(--secondary-gray);
    line-height: 1.6;
    margin: 0;
}

/* Phase framing paragraph */
.phase-framing {
    /* Match .btl-positioning (same voice + hierarchy) */
    font-size: 16px;
    color: var(--secondary-gray);
    margin-bottom: 24px;
    line-height: 1.5;
    font-weight: 400;
    padding: 0;
    border: none;
}

/* Phase question micro-copy */
.phase-question {
    font-size: 14px;
    color: var(--secondary-gray);
    margin-bottom: 24px;
    font-style: italic;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 16px;
}

.phase-question .label {
    font-style: normal;
    font-weight: 700;
    color: var(--primary-purple);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

/* ----------------------------------------
   BUILD, TEST, LEARN CONTENT (Static)
   ----------------------------------------
*/
.btl-content {
    padding-top: 12px;
    /* Reduce space above the diagram */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.btl-lead {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 12px;
}

.btl-positioning {
    font-size: 16px;
    color: var(--secondary-gray);
    margin-bottom: 24px;
    line-height: 1.5;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btl-checklist {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 24px 0;
    border-top: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.btl-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 17px;
    color: var(--secondary-gray);
    line-height: 1.5;
    margin-bottom: 16px;
}

.btl-checklist__item:last-child {
    margin-bottom: 0;
}

.btl-checklist__icon {
    color: var(--secondary-gray);
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
    /* Align bullet vertically with text cap-height */
    margin-top: 0;
}

.btl-closing {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    margin-top: auto;
    font-style: italic;
    opacity: 0.9;
}

/* BTL structured sections - matches Think, Research, Execute style */
.btl-sections {
    margin-top: 8px;
}

/* ============================================
   APPROACH PAGE V2 STYLES
   ============================================
   Visual variant with numbered circles and cycle diagram.
   Uses .methodology-section--v2 modifier to scope styles.
*/

/* ----------------------------------------
   V2: STEPS VISUAL (Numbered Circles)
   ----------------------------------------
   Horizontal row of numbered circles with arrows.
   Clickable to switch content panels below.
*/
.steps-visual {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin: 32px 0 40px;
}

.steps-visual__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    min-width: 0;
}

/* Numbered circle */
.steps-visual__circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-teal);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-teal);
    margin-bottom: 12px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

/* Step name */
.steps-visual__name {
    font-size: 16px;
    /* Smaller so it never wraps */
    /* Slightly smaller so "Understand" stays on one line */
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 4px;
    transition: color var(--transition-fast);
    width: 100%;
    word-wrap: normal;
    white-space: nowrap;
    /* Prevent awkward breaks like "Underst" / "and" */
    line-height: 1.2;
}

/* Step description */
.steps-visual__desc {
    font-size: 14px;
    color: var(--secondary-gray);
    line-height: 1.4;
    width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

/* Arrow between steps */
.steps-visual__arrow {
    font-size: 24px;
    color: var(--accent-teal);
    margin-top: 4px;
    margin-left: 8px;
    margin-right: 8px;
    flex-shrink: 0;
    opacity: 0.4;
    align-self: flex-start;
}

/* Active step state */
.steps-visual__step--active .steps-visual__circle {
    border-color: var(--accent-teal);
    background: var(--accent-teal);
    color: white;
}

.steps-visual__step--active .steps-visual__name {
    color: var(--primary-purple);
}

.steps-visual__step--active .steps-visual__desc {
    color: var(--text-dark);
}

/* Hover state */
.steps-visual__step:not(.steps-visual__step--active):hover .steps-visual__circle {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.steps-visual__step:not(.steps-visual__step--active):hover .steps-visual__name {
    color: var(--primary-purple);
}

/* Focus state */
.steps-visual__step:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 4px;
    border-radius: 8px;
}

/* ----------------------------------------
   V2: CYCLE DIAGRAM (Build-Test-Learn)
   ----------------------------------------
   Triangular layout with curved SVG arrows.
   Shows iterative cycle visually.
*/
.cycle-diagram {
    position: relative;
    width: 100%;
    max-width: 252px;
    height: auto;
    margin: 7px auto 11px;
    /* Sized to balance against the steps column */
}

.cycle-diagram-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* SVG arrows container */
.cycle-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cycle-arrows path {
    stroke: var(--accent-teal);
    stroke-width: 2px;
    fill: none;
}

/* Cycle boxes */
.cycle-box {
    position: absolute;
    border: 2px solid var(--accent-teal);
    border-radius: 8px;
    background: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.cycle-box--build {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.cycle-box--test {
    bottom: 0;
    left: 5%;
}

.cycle-box--learn {
    bottom: 0;
    right: 5%;
}

/* ----------------------------------------
   REDUCED MOTION SUPPORT
   ----------------------------------------
*/
@media (prefers-reduced-motion: reduce) {
    .step-content {
        transition: none;
    }

    .step-selector::after {
        transition: none;
    }

    .steps-visual__circle,
    .steps-visual__name {
        transition: none;
    }
}

/* Legacy BTL styles - kept for backwards compatibility */
.btl-bullets {
    list-style: none;
    max-width: 600px;
    margin: 40px auto;
}

.btl-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.btl-bullets .bullet-icon {
    color: var(--accent-teal);
    font-size: 24px;
    flex-shrink: 0;
}

/* ============================================
   WORK PAGE STYLES
   ============================================ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Case Study Page */
.case-study-hero {
    padding: 160px 60px 80px;
    background: radial-gradient(circle at 75% 50%, #F3F4F6 0%, #FFFFFF 70%);
    width: 100%;
}

.case-study-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
}

/* Sticky Right Column (Image) */
.case-study-right {
    position: relative;
    /* Logo stays aligned with metric (non-sticky) */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.case-study-logo-wrap {
    width: min(340px, 100%);
    height: 72px;
    /* Normalizes logo scale across clients */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align logo in its slot */
    margin: 0 0 24px;
    /* Space below logo before metric */
}

.case-study-left {
    padding-right: 0;
}

.case-study-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    margin: 0;
    transform: scale(1);
    transform-origin: center center;
}

/* Logo normalization overrides
   Note: Some source logos include very different whitespace/cropping.
   These small, template-level adjustments keep visual weight consistent. */
.case-study-logo[alt*="Broad"] {
    transform: scale(0.85);
}

.case-study-logo[alt*="Fidelity"] {
    transform: scale(1.2);
}

.case-study-logo[alt*="Biopharmaceutical"] {
    transform: scale(1.18);
}

.case-study-artifact-wrap {
    position: sticky;
    top: 120px;
    /* Pinned artifact while reading */
    height: fit-content;
    width: 100%;
    align-self: stretch;
    /* Artifact remains full-width under centered logo */
}

.case-study-hero .metric {
    font-size: 32px;
    font-weight: 800;
    color: rgba(13, 148, 136, 0.6);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
    -webkit-text-fill-color: initial;
}

.case-study-hero h1,
.case-study-hero .client-name {
    display: none;
}

.case-study-artifact {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 80vh;
    /* Prevent image from being taller than viewport */
}

/* Typography Adjustments */
.case-study-content {
    padding: 0;
    margin: 0;
    max-width: none;
}

.case-study-content h2 {
    font-size: 28px;
    /* Slightly reduced from 32px */
    color: var(--primary-purple);
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 20px;
}

.case-study-content h2:first-child {
    margin-top: 0;
}

.case-study-content h3 {
    font-size: 22px;
    color: var(--primary-purple);
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
}

.case-study-content p {
    font-size: 18px;
    /* Reduced from 20px */
    color: var(--text-dark);
    line-height: 1.7;
    /* Increased line height for better readability */
    margin-bottom: 24px;
}

.case-study-content ul {
    list-style: none;
    margin: 24px 0;
}

.case-study-content li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 18px;
    /* Reduced from 20px/inherited */
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Case study responsive - moved to consolidated tablet breakpoint */

.case-study-content ul {
    list-style: none;
    margin: 8px 0 24px 0;
    /* Reduced top margin to closer to header */
}

.case-study-content li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 16px;
}

.case-study-content li::before {
    content: '•';
    color: var(--accent-teal);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 24px;
    /* Increased size */
    line-height: 1.2;
    /* Adjust line height for better alignment */
}

/* ============================================
   INSIGHTS PAGE STYLES
   ============================================ */
.insights-all-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.article-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.article-card h3 {
    font-size: 20px;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-card .excerpt {
    font-size: 16px;
    color: var(--secondary-gray);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.article-card .read-more {
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.article-card .read-more:hover {
    transform: translateX(4px);
}

/* Featured Article (Large) */
.featured-article-large {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    padding: 48px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.featured-article-large:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.featured-article-large h2 {
    font-size: 32px;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 24px;
}

.featured-article-large .excerpt {
    font-size: 18px;
    color: var(--secondary-gray);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 800px;
}

/* Speaking/Media Section */
.speaking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.speaking-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-sm);
    padding: 24px;
    transition: all var(--transition-fast);
}

.speaking-card:hover {
    border-color: var(--accent-teal);
}

.speaking-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.speaking-card .publication {
    font-size: 14px;
    color: var(--secondary-gray);
    margin-bottom: 12px;
}

.speaking-card a {
    color: var(--accent-teal);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

/* Article Full Page */
.article-hero {
    padding: 160px 60px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.article-hero h1 {
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.article-meta {
    font-size: 16px;
    color: var(--secondary-gray);
    margin-bottom: 40px;
}

.article-lead {
    font-size: 22px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 40px;
}

.article-body {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 60px 80px;
}

.article-body p {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 32px;
    color: var(--primary-purple);
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 24px;
}

.article-body h3 {
    font-size: 24px;
    color: var(--primary-purple);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-body blockquote {
    font-size: 24px;
    color: var(--primary-purple);
    font-style: italic;
    font-weight: 500;
    border-left: 4px solid var(--accent-teal);
    padding-left: 32px;
    margin: 40px 0;
}

.article-body ul {
    list-style: none;
    margin: 24px 0;
}

.article-body li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-body li::before {
    content: '•';
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
.about-intro {
    text-align: center;
    padding: 80px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.about-intro p {
    font-size: 24px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.7;
}

/* Bio Section Layout */
.bio-section {
    padding: 100px 60px;
    background: var(--white);
}

.bio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.bio-grid {
    display: grid;
    grid-template-columns: 25% 75%;
    gap: 48px;
    align-items: start;
}

/* Bio Photo */
.bio-photo-column {
    display: flex;
    justify-content: flex-start;
}

.bio-photo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    /* Centered in column instead of pushed right */
    flex-shrink: 0;
    /* Prevent squishing */
    border-radius: 50%;
}

.bio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* Circle */
    border: 4px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Bio Content */
.bio-content-column {
    text-align: left;
}

.bio-section h2 {
    font-size: 40px;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 32px;
    text-align: left;
    max-width: 700px;
}

.bio-text {
    font-size: 18px;
    color: #1C2937;
    line-height: 1.7;
    text-align: left;
    max-width: 650px;
}

.bio-text p {
    margin-bottom: 24px;
}

/* Logo Grid in Bio */
.logo-grid-section {
    margin-top: 48px;
    text-align: left;
    max-width: 800px;
}

.logo-grid-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-gray);
    margin-bottom: 24px;
    font-weight: 600;
}

.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    align-items: center;
}

.client-logo-grid img {
    max-height: 60px;
    max-width: 100%;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-fast);
    padding: 8px;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
}

.client-logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.logo-caption {
    display: none;
    /* Hide caption as per new design */
}

/* Differentiators Section */
.differentiators-section {
    background: var(--bg-gray);
    padding: 100px 60px;
}

.differentiators-container {
    max-width: 1200px;
    margin: 0 auto;
}

.differentiators-section h2 {
    font-size: 48px;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: -0.02em;
}

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

.differentiator-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.differentiator-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.differentiator-card p {
    font-size: 22px;
    font-weight: 600;
    color: #1C2937;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    letter-spacing: -0.01em;
}

.differentiator-card strong {
    font-weight: 700;
    color: #1C2937;
}

/* Hide old styles */
.differentiators-list {
    display: none;
}

.card-number {
    display: none;
}

/* About page responsive - moved to consolidated breakpoints */


/* ============================================
   PAGE CTA SECTION
   ============================================ */
.page-cta {
    background: var(--bg-gray);
    text-align: center;
    padding: 100px 60px;
}

.page-cta h2 {
    font-size: 40px;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 16px;
}

.page-cta p {
    font-size: 20px;
    color: var(--secondary-gray);
    margin-bottom: 40px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================

   Breakpoint Structure:
   - Desktop: ≥900px (base styles, side-by-side layouts)
   - Tablet: 600-899px (@media max-width: 899px)
   - Mobile: <600px (@media max-width: 599px)

   Navigation hamburger menu switches at <600px only.
   ============================================ */

/* ----------------------------------------
   TABLET STYLES (600-899px)
   ----------------------------------------
   Layouts may stack, but nav remains desktop-style.
   Side-by-side layouts transition to stacked.
*/
@media (max-width: 899px) {

    /* Hero adjustments */
    .hero-headline {
        font-size: clamp(1.875rem, 3vw + 1rem, 3rem);
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-subhead {
        max-width: 100%;
        font-size: clamp(1rem, 1vw + 0.75rem, 1.25rem);
        padding: 0 20px;
    }

    /* Grid layouts stack to single column */
    .hero-grid,
    .panels-grid,
    .methodology-grid,
    .case-cards,
    .work-grid,
    .insights-grid,
    .footer-grid,
    .testimonial-grid,
    .ai-adoption-section {
        grid-template-columns: 1fr;
        gap: clamp(24px, 4vw, 32px);
    }

    .ai-adoption-section .ai-illustration {
        max-height: none;
        min-height: auto;
        aspect-ratio: auto;
    }

    /* Home: remove ONLY the "What we do" illustration block under 900px */
    .ai-illustration--whatwedo {
        display: none;
    }

    .ai-illustration:has(.whatwedo-illustration-img) {
        min-height: 280px;
        aspect-ratio: 4/3;
    }

    .ai-illustration:has(.whatwedo-illustration-img) {
        min-height: auto;
    }

    /* Section spacing */
    section {
        padding: clamp(45px, 8vw, 70px) 0;
    }

    .section-content {
        padding: 0 clamp(20px, 4vw, 40px);
    }

    /* Typography scaling */
    .ai-adoption-section h2,
    .section-header h2,
    .final-cta h2 {
        font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
    }

    /* Testimonials */
    .testimonials-scroll-container {
        padding: 0 clamp(20px, 4vw, 40px);
    }

    .testimonial-card {
        width: clamp(300px, 80vw, 380px);
    }

    /* Logo carousel */
    .logo-carousel-container {
        gap: clamp(30px, 5vw, 50px);
    }

    /* Multi-column grids to 2 columns */
    .phase-cards,
    .ai-capabilities-grid,
    .insights-all-grid,
    .speaking-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Principles grid to 2 columns */
    .principles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        max-width: 900px;
    }

    /* Methodology section */
    .methodology-column {
        padding: clamp(32px, 5vw, 48px);
        min-height: 480px;
    }

    .methodology-header {
        margin-bottom: 32px;
    }

    .step-selector__step {
        padding: 12px 6px 16px;
    }

    .step-selector__number {
        font-size: 10px;
    }

    .step-selector__label {
        font-size: 14px;
    }

    /* Steps visual */
    .steps-visual {
        gap: 6px;
    }

    .steps-visual__circle {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .steps-visual__name {
        font-size: 16px;
        white-space: nowrap;
    }

    .steps-visual__desc {
        font-size: 13px;
    }

    .steps-visual__arrow {
        font-size: 20px;
        margin-left: 6px;
        margin-right: 6px;
    }

    /* Cycle diagram */
    .cycle-diagram {
        max-width: 216px;
        height: auto;
        margin: 6px auto 10px;
    }

    .cycle-box {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Case study hero */
    .case-study-hero {
        grid-template-columns: 1fr;
        padding: 120px clamp(24px, 4vw, 40px) 60px;
        gap: 40px;
    }

    .case-study-right {
        position: static;
        order: -1;
        margin-bottom: 40px;
    }

    .case-study-artifact-wrap {
        position: static;
        top: auto;
    }

    .case-study-artifact {
        max-height: 50vh;
    }

    .case-study-grid-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* About page */
    .bio-grid {
        gap: 32px;
    }

    .client-logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    /* Page hero */
    .page-hero {
        padding: 120px clamp(24px, 4vw, 40px) 80px;
    }

    .page-hero h1 {
        font-size: clamp(32px, 5vw, 42px);
    }

    .page-hero .hero-subhead {
        font-size: clamp(16px, 2vw, 20px);
    }
}

/* ----------------------------------------
   MOBILE STYLES (<600px)
   ----------------------------------------
   Fully stacked/compact layouts.
   Hamburger menu activates here.
*/
@media (max-width: 599px) {

    /* Navigation switches to hamburger menu */
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Desktop-break hides on mobile */
    .desktop-break {
        display: none;
    }

    /* Hero highlight can wrap on mobile */
    .hero-headline .highlight {
        white-space: normal;
    }

    /* Hero adjustments */
    .hero {
        padding: 120px 0 clamp(40px, 8vw, 60px);
        min-height: auto;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-headline {
        font-size: clamp(1.375rem, 5vw + 0.5rem, 2rem);
        max-width: 100%;
        padding: 0 16px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-subhead {
        font-size: clamp(0.875rem, 2.5vw + 0.5rem, 1.125rem);
        max-width: 100%;
        padding: 0 16px;
        line-height: 1.7;
        margin-bottom: 28px;
    }

    /* Section spacing */
    section {
        padding: clamp(30px, 6vw, 45px) 0;
    }

    section+section {
        margin-top: clamp(12px, 2vw, 15px);
    }

    .section-content {
        padding: 0 16px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    /* Typography */
    .section-header h2,
    .ai-adoption-section h2,
    .final-cta h2 {
        font-size: clamp(1.25rem, 4vw + 0.5rem, 1.75rem);
    }

    .ai-adoption-section p,
    .final-cta p {
        font-size: clamp(0.875rem, 2.5vw + 0.5rem, 1.125rem);
    }

    /* Deliverables grid */
    .deliverables-grid {
        grid-template-columns: 1fr;
    }

    /* Cards and panels */
    .panel,
    .case-card,
    .testimonial-card,
    .trust-card {
        padding: clamp(24px, 4vw, 32px) clamp(16px, 3vw, 24px);
    }

    .case-card {
        min-height: 480px;
    }

    .card-content {
        padding: 0 24px;
    }

    .case-card .metric-headline {
        font-size: clamp(24px, 5vw, 28px);
        margin-top: 24px;
    }

    .case-card .case-teaser {
        font-size: 15px;
    }

    .case-card .client-logo {
        width: auto;
        height: 48px;
        padding: 0;
    }

    .case-card .card-cta {
        padding: 0 24px;
    }

    .case-card h4 {
        font-size: clamp(0.938rem, 2vw + 0.5rem, 1.125rem);
    }

    .metric-headline {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }

    /* Final CTA */
    .final-cta {
        padding: clamp(30px, 6vw, 45px) 0;
    }

    .final-cta-content {
        padding: 0 16px;
    }

    /* Footer */
    footer {
        padding: clamp(45px, 8vw, 60px) 16px;
    }

    /* Testimonials */
    .testimonials-scroll-container {
        padding: 0 20px;
    }

    .testimonials-scroll-track {
        gap: 24px;
    }

    .testimonial-card {
        width: 90%;
        max-width: 400px;
        height: auto;
        min-height: 280px;
    }

    /* Logo carousel */
    .logo-carousel-container {
        gap: 30px;
    }

    .logo-item {
        width: 120px;
        height: 70px;
        font-size: 12px;
    }

    /* Buttons */
    .btn-primary {
        padding: 16px 32px;
        font-size: 16px;
    }

    /* Page hero */
    .page-hero {
        padding: 100px 20px 60px;
    }

    .page-hero h1 {
        font-size: clamp(28px, 6vw, 36px);
    }

    .page-hero .hero-subhead {
        font-size: clamp(14px, 3vw, 18px);
    }

    .page-hero .about-intro p {
        font-size: clamp(16px, 3vw, 20px);
    }

    /* Multi-column grids stack to single column */
    .phase-cards,
    .ai-capabilities-grid,
    .work-grid,
    .insights-all-grid,
    .speaking-grid {
        grid-template-columns: 1fr;
    }

    /* Methodology section */
    .methodology-column {
        padding: 24px 20px;
        min-height: auto;
    }

    .methodology-header {
        margin-bottom: 24px;
    }

    .methodology-header h2 {
        font-size: clamp(1.25rem, 4vw + 0.5rem, 1.5rem);
    }

    .methodology-intro {
        font-size: 15px;
    }

    /* Step framing */
    .step-framing {
        font-size: 13px;
        margin-bottom: 16px;
    }

    /* Step selector: 2x2 grid for better touch targets */
    .step-selector {
        flex-wrap: wrap;
        border-bottom: none;
        gap: 8px;
        margin-bottom: 24px;
    }

    .step-selector::after {
        display: none;
    }

    .step-selector__step {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        padding: 12px 12px 14px;
        border: 1px solid var(--border-gray);
        border-radius: 8px;
        text-align: center;
    }

    .step-selector__step--active {
        border-color: var(--primary-purple);
        background: rgba(73, 25, 152, 0.04);
    }

    .step-selector__number {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .step-selector__label {
        font-size: 13px;
    }

    .step-selector__descriptor {
        display: none;
    }

    .step-content-area {
        min-height: auto;
    }

    /* Phase framing */
    .phase-framing {
        font-size: 15px;
        margin-bottom: 16px;
        padding: 0;
    }

    .step-content__section {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .step-content__label {
        font-size: 10px;
    }

    .step-content__section p {
        font-size: 15px;
    }

    /* BTL content */
    .btl-lead {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .btl-checklist {
        padding: 16px 0;
        margin-bottom: 16px;
    }

    .btl-positioning {
        padding-top: 12px;
    }

    .btl-checklist__item {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .btl-checklist__icon {
        font-size: 18px;
    }

    .btl-sections {
        margin-top: 0;
    }

    .btl-sections .step-content__section {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    /* Steps visual - vertical list */
    .steps-visual {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        margin: 24px 0 32px;
    }

    .steps-visual__step {
        width: 100%;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-gray);
        position: relative;
        display: grid;
        grid-template-columns: 32px 1fr;
        grid-template-rows: auto auto;
        gap: 0 16px;
        align-items: start;
    }

    .steps-visual__step:last-of-type {
        border-bottom: none;
    }

    .steps-visual__step--active {
        background: transparent;
    }

    .steps-visual__arrow {
        display: none;
    }

    .steps-visual__circle {
        grid-row: 1 / 3;
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-bottom: 0;
        margin-top: 4px;
    }

    .steps-visual__name {
        font-size: 16px;
        margin-bottom: 4px;
        grid-column: 2;
        white-space: nowrap;
    }

    .steps-visual__desc {
        font-size: 14px;
        grid-column: 2;
        display: block;
    }

    .steps-visual__step:not(:last-of-type)::after {
        content: '';
        position: absolute;
        left: 15px;
        bottom: -1px;
        width: 2px;
        height: 20px;
        background: var(--accent-teal);
        opacity: 0.3;
    }

    /* Cycle diagram */
    .cycle-diagram {
        max-width: 192px;
        height: auto;
        margin: 6px auto 10px;
    }

    .cycle-box {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Principles and other sections */
    .principles-section,
    .differentiators-section,
    .page-cta {
        padding: clamp(45px, 8vw, 60px) 20px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }

    .principle-item {
        padding: 32px 24px;
    }

    /* Case study */
    .case-study-hero,
    .article-hero {
        padding: 100px 20px 40px;
    }

    .case-study-content,
    .article-body {
        padding: 40px 20px;
    }

    /* About page */
    .about-intro,
    .bio-section {
        padding: clamp(45px, 8vw, 60px) 20px;
    }

    .bio-section,
    .differentiators-section {
        padding: clamp(60px, 10vw, 80px) 20px;
    }

    .bio-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .bio-photo-column {
        justify-content: center;
        margin-bottom: 16px;
    }

    .bio-photo-wrapper {
        width: 160px;
        height: 160px;
    }

    .bio-content-column {
        text-align: center;
    }

    .bio-section h2,
    .bio-text {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .logo-grid-section {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .client-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bio-section h2,
    .differentiators-section h2 {
        font-size: clamp(28px, 6vw, 36px);
        margin-bottom: clamp(32px, 6vw, 48px);
        text-align: center;
    }

    .differentiators-grid {
        grid-template-columns: 1fr;
    }

    .differentiator-card {
        padding: clamp(32px, 5vw, 40px);
        min-height: 140px;
    }

    .differentiator-card p {
        font-size: clamp(18px, 3vw, 20px);
    }

    .differentiator-item {
        font-size: 18px;
    }

    /* Modal */
    .modal {
        padding: 24px 20px;
        margin: 16px;
    }

    .modal h2 {
        font-size: clamp(24px, 5vw, 28px);
    }
}