/* ============================================================
   OneChair — Hazel-Inspired Monochromatic Design
   Clean, minimal, editorial. Julius Sans One + Josefin Sans + Mulish.
   ============================================================ */

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

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
    --black: #171717;
    --white: #ffffff;
    --gray-light: #f7f7f7;
    --gray-bg: #efefef;
    --text-heading: #303030;
    --text-body: #595959;
    --text-sub: #3f3f3f;
    --text-muted: #999999;
    --border-dark: #101010;
    --border-light: #e5e5e5;
    --text-light: #ededed;
    --text-on-dark: #b0bec5;
    --accent: #C4953A;
    --accent-muted: rgba(196, 149, 58, 0.12);
    --accent-soft: rgba(196, 149, 58, 0.35);
}

    /* ============================================================
       Google Fonts — Load via HTML. These @import declarations
       serve as fallback reference:
       Julius Sans One 400
       Josefin Sans 300
       Hind 300 500 600
       Mulish 400
       Open Sans 700
       ============================================================ */

    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: 'Mulish', sans-serif;
        background: var(--white);
        color: var(--text-body);
        line-height: 1.6;
        overflow-x: hidden;
    }

    /* ============================================================
       Skip to Content — Accessibility
       ============================================================ */
    .skip-to-content {
        position: absolute;
        top: -100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--black);
        color: var(--white);
        padding: 0.75rem 1.5rem;
        font-family: 'Hind', sans-serif;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-decoration: none;
        z-index: 10000;
        border: 1px solid var(--border-dark);
    }

    .skip-to-content:focus {
        top: 1rem;
        outline: 2px solid var(--text-heading);
        outline-offset: 2px;
    }

    /* ============================================================
       Site Header (Fixed Navigation)
       ============================================================ */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        padding: 20px 40px;
        background: rgba(255, 255, 255, 0);
        transition: background 0.3s ease, border-bottom 0.3s ease;
        display: flex;
        justify-content: space-between;
        align-items: center;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .site-header.scrolled {
        background: var(--white);
        border-bottom: 1px solid var(--border-light);
    }

    .header-logo {
        font-family: 'Julius Sans One', serif;
        font-size: 18px;
        letter-spacing: 3px;
        text-transform: uppercase;
        text-decoration: none;
        color: var(--white);
        transition: color 0.3s ease;
    }

    .site-header.scrolled .header-logo {
        color: var(--black);
    }

    .header-logo .dev-suffix {
        color: var(--text-muted);
    }

    .header-nav {
        display: flex;
        gap: 30px;
        align-items: center;
    }

    .header-nav a {
        font-family: 'Mulish', sans-serif;
        font-size: 13px;
        text-decoration: none;
        color: var(--white);
        transition: color 0.3s ease;
        letter-spacing: 0.5px;
    }

    .site-header.scrolled .header-nav a {
        color: var(--text-body);
    }

    .header-nav a:hover {
        color: var(--text-muted);
    }

    /* Hamburger */
    .hamburger {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
        width: 25px;
        flex-direction: column;
        gap: 5px;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--white);
        transition: background 0.3s ease;
    }

    .site-header.scrolled .hamburger span {
        background: var(--black);
    }

    /* ============================================================
       Header Right — wraps font toggle + nav + hamburger
       ============================================================ */
    .header-right {
        display: flex;
        align-items: center;
        gap: 0;
    }

    /* Font Size Toggle */
    .font-toggle {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: baseline;
        gap: 3px;
        padding: 4px 6px;
        margin-right: 24px;
        color: var(--white);
        transition: color 0.3s ease, opacity 0.3s ease;
        opacity: 0.75;
        line-height: 1;
    }

    .font-toggle:hover {
        opacity: 1;
    }

    .site-header.scrolled .font-toggle {
        color: var(--text-body);
    }

    .font-toggle .a-small {
        font-family: 'Hind', sans-serif;
        font-size: 13px;
        font-weight: 300;
        line-height: 1;
    }

    .font-toggle .a-large {
        font-family: 'Hind', sans-serif;
        font-size: 19px;
        font-weight: 600;
        line-height: 1;
    }

    /* Active state: font-large mode — highlight the large A */
    html.font-large .font-toggle .a-large {
        text-decoration: underline;
        text-underline-offset: 3px;
        opacity: 1;
    }

    html.font-large .font-toggle {
        opacity: 1;
    }

    /* ============================================================
       Large Font Mode — Accessibility Text Scaling (~20% increase)
       Targets all body text, descriptions, paragraphs, and
       primary reading elements. Leaves nav links, badges, and
       small utility labels unchanged.
       ============================================================ */

    /* Body base */
    html.font-large body {
        font-size: 19px; /* 16px → 19px */
    }

    /* Hero section */
    html.font-large .hero-subtitle {
        font-size: 15px; /* 13px → 15px */
    }

    html.font-large .hero-title {
        font-size: clamp(43px, 6vw, 70px); /* clamp(36,5vw,58) → ~+20% */
    }

    html.font-large .hero-text {
        font-size: 18px; /* 15px → 18px */
    }

    /* Section titles */
    html.font-large .section-title {
        font-size: 38px; /* 32px → 38px */
    }

    html.font-large .section-subtitle {
        font-size: 18px; /* 15px → 18px */
    }

    html.font-large .testimonials-title {
        font-size: 29px; /* 24px → 29px */
    }

    html.font-large .services-title {
        font-size: 38px; /* 32px → 38px */
    }

    html.font-large .faq-title {
        font-size: 38px; /* 32px → 38px */
    }

    /* Features section */
    html.font-large .feature-item .feature-desc {
        font-size: 18px; /* 15px → 18px */
    }

    /* Why section */
    html.font-large .why-item .why-desc {
        font-size: 18px; /* 15px → 18px */
    }

    /* Statement section */
    html.font-large .statement-text {
        font-size: 48px; /* 40px → 48px */
    }

    html.font-large .statement-body {
        font-size: 18px; /* 15px → 18px */
    }

    /* Testimonials */
    html.font-large .testimonial-quote {
        font-size: 18px; /* 15px → 18px */
    }

    html.font-large .testimonial-role {
        font-size: 15px; /* 13px → 15px */
    }

    /* FAQ */
    html.font-large .faq-question {
        font-size: 18px; /* 15px → 18px */
    }

    html.font-large .faq-answer p {
        font-size: 18px; /* 15px → 18px */
    }

    /* Choose Your Path */
    html.font-large .path-audience {
        font-size: 18px; /* 15px → 18px */
    }

    html.font-large .path-description {
        font-size: 18px; /* 15px → 18px */
    }

    html.font-large .path-list {
        font-size: 18px; /* 15px → 18px */
    }

    /* Cortex / How We Build */
    html.font-large .cortex-step p {
        font-size: 18px; /* 15px → 18px */
    }

    html.font-large .cortex-flywheel {
        font-size: 18px; /* 15px → 18px */
    }

    /* Case Study popup */
    html.font-large .case-popup-desc {
        font-size: 18px; /* 15px → 18px */
    }

    html.font-large .cs-section-content {
        font-size: 17px; /* 14px → 17px */
    }

    html.font-large .cs-quote p {
        font-size: 18px; /* 15px → 18px */
    }

    html.font-large .cs-subtitle {
        font-size: 17px; /* 14px → 17px */
    }

    /* Estimate / Contact forms */
    html.font-large .form-input,
    html.font-large .form-textarea,
    html.font-large .estimate-form textarea,
    html.font-large .contact-form input,
    html.font-large .contact-form textarea {
        font-size: 18px; /* 15px → 18px */
    }

    html.font-large .question-input,
    html.font-large .question-select {
        font-size: 18px; /* 15px → 18px */
    }

    html.font-large .questions-header p {
        font-size: 18px; /* 15px → 18px */
    }

    html.font-large .estimate-subtitle {
        font-size: 18px; /* 15px → 18px */
    }

    html.font-large .result-content {
        font-size: 18px; /* 15px → 18px */
    }

    html.font-large .mvp-features li {
        font-size: 17px; /* 14px → 17px */
    }

    /* Responsive overrides for font-large — keep clamp values sane on mobile */
    @media (max-width: 768px) {
        html.font-large .hero-title {
            font-size: clamp(33px, 9.6vw, 50px); /* mobile clamp +20% */
        }

        html.font-large .statement-text {
            font-size: 33px; /* 28px → 33px */
        }

        html.font-large .section-title,
        html.font-large .testimonials-title,
        html.font-large .services-title,
        html.font-large .faq-title {
            font-size: 29px; /* 24px → 29px */
        }
    }

    @media (max-width: 480px) {
        html.font-large .hero-title {
            font-size: clamp(29px, 10.8vw, 43px); /* small mobile +20% */
        }

        html.font-large .section-title,
        html.font-large .testimonials-title,
        html.font-large .services-title,
        html.font-large .faq-title {
            font-size: 26px; /* 22px → 26px */
        }

        html.font-large .statement-text {
            font-size: 26px; /* 22px → 26px */
        }
    }

    /* Mobile Menu */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        z-index: 1001;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 30px;
    }

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

    .mobile-menu a {
        font-family: 'Hind', sans-serif;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 3px;
        text-transform: uppercase;
        text-decoration: none;
        color: var(--text-heading);
    }

    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 40px;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-heading);
    }

    /* ============================================================
       Legacy Ask Badge — Hidden (replaced by site-header)
       ============================================================ */
    .ask-badge {
        display: none;
    }

    /* ============================================================
       Legacy Floating CTA — Hidden (replaced by site-header)
       ============================================================ */
    .floating-cta {
        display: none;
    }

    /* ============================================================
       Hero Section
       ============================================================ */
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background-color: #0d0d0a;
        background-image: radial-gradient(ellipse at center, rgba(85, 62, 28, 0.58) 0%, rgba(13, 13, 10, 0.95) 75%);
        text-align: center;
        padding: 0 2rem;
        overflow: hidden;
    }

    /* Hide the old shape divs — not needed in new design */
    .hero-shapes,
    .shape,
    .shape-1,
    .shape-2,
    .shape-3 {
        display: none;
    }

    .hero-container {
        max-width: 900px;
        width: 100%;
        position: relative;
        z-index: 2;
    }

    /* Legacy hero-brand-wrapper — restyle as subtle tag */
    .hero-brand-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin-bottom: 32px;
        flex-wrap: wrap;
    }

    .hero-brand {
        display: inline-block;
        font-family: 'Julius Sans One', serif;
        font-size: 20px;
        color: var(--white);
        letter-spacing: 5px;
        text-transform: uppercase;
        cursor: default;
        background: none;
        border: none;
        box-shadow: none;
        transform: none;
        transition: none;
        overflow: visible;
        padding: 0;
        position: static;
    }

    .hero-brand::before {
        display: none;
    }

    .hero-brand:hover::before {
        display: none;
    }

    .brand-suffix {
        font-family: 'Mulish', sans-serif;
        font-weight: 400;
        color: var(--text-muted);
        font-size: 0.85em;
    }

    .hero-label {
        display: inline-block;
        padding: 5px 14px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: var(--text-light);
        font-family: 'Mulish', sans-serif;
        font-size: 11px;
        letter-spacing: 3px;
        text-transform: uppercase;
        transform: none;
        background: none;
    }

    .hero-content {
        position: relative;
        z-index: 2;
    }

    /* Hero top tag/badge */
    .hero-tag {
        display: inline-block;
        padding: 10px 24px;
        border: 1px solid rgba(184, 168, 138, 0.5);
        color: #c4b99a;
        font-family: 'Mulish', sans-serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 4px;
        text-transform: uppercase;
        margin-bottom: 48px;
    }

    /* Hero subtitle text (used as eyebrow) */
    .hero-subtitle {
        font-family: 'Mulish', sans-serif;
        font-size: 13px;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: #b8a88a;
        margin-bottom: 20px;
        opacity: 0.9;
    }

    /* The main h1 hero title */
    .hero-title {
        font-family: 'Josefin Sans', sans-serif;
        font-weight: 300;
        font-size: clamp(42px, 6vw, 72px);
        letter-spacing: 8px;
        text-transform: uppercase;
        color: #f5f0e8;
        line-height: 1.2;
        margin-bottom: 28px;
    }

    .title-line {
        display: block;
    }

    /* Remove gradient text effects — replace with clean white */
    .title-gradient-faster,
    .title-gradient-smarter {
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        background-clip: unset;
        animation: none;
        color: var(--white);
        opacity: 0.75;
    }

    /* Hero body text */
    .hero-text {
        font-family: 'Mulish', sans-serif;
        font-size: 16px;
        color: #c4b99a;
        max-width: 620px;
        margin: 0 auto 40px;
        line-height: 1.8;
        opacity: 0.85;
        font-style: italic;
    }

    /* Hero CTA wrapper */
    .hero-cta,
    .hero-buttons {
        display: flex;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 40px;
    }

    /* Hero buttons — outline style */
    .btn-hero,
    .hero-btn {
        display: inline-block;
        padding: 15px 40px;
        border: 2px solid #b8a88a;
        background: transparent;
        color: #c4b99a;
        font-family: 'Open Sans', sans-serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 5px;
        text-transform: uppercase;
        text-decoration: none;
        transition: all 0.3s ease;
        position: static;
        transform: none;
    }

    .btn-hero::after,
    .hero-btn::after {
        display: none;
    }

    .btn-hero:hover,
    .hero-btn:hover {
        background: #b8a88a;
        color: #0d0d0a;
        transform: none;
    }

    .btn-subtext {
        display: none;
    }

    /* ============================================================
       Features Section (replaces old Benefits Section)
       ============================================================ */
    .features-section {
        background: var(--white);
        padding: 110px 2rem 100px;
    }

    /* Section title used across multiple sections */
    .section-title {
        font-family: 'Hind', sans-serif;
        font-size: 38px;
        font-weight: 300;
        letter-spacing: 10px;
        text-transform: uppercase;
        text-align: center;
        color: var(--text-heading);
        margin-bottom: 60px;
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .feature-item {
        border-top: 1px solid var(--gray-bg);
        padding-top: 25px;
    }

    .feature-item .feature-number {
        display: block;
        font-family: 'Hind', sans-serif;
        font-size: 14px;
        font-weight: 300;
        color: var(--text-muted);
        margin-bottom: 15px;
    }

    .feature-item .feature-title {
        font-family: 'Hind', sans-serif;
        font-size: 17px;
        font-weight: 600;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--text-heading);
        margin-bottom: 10px;
    }

    .feature-item .feature-desc {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        color: var(--text-body);
        line-height: 1.7;
    }

    /* Legacy benefit classes — kept for any backward compat but hidden content */
    .benefits-section,
    .benefits-container,
    .benefits-cascade,
    .benefit-card,
    .benefit-badge,
    .benefit-body,
    .benefit-mini-list {
        /* kept empty for safety */
    }

    /* ============================================================
       Why AI-Orchestrated Section
       ============================================================ */
    .why-section {
        background: var(--white);
        padding: 100px 2rem;
    }

    .why-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .why-item {
        padding-top: 25px;
        border-top: 1px solid var(--gray-bg);
    }

    .why-item .why-number {
        display: block;
        font-family: 'Hind', sans-serif;
        font-size: 14px;
        font-weight: 300;
        color: var(--text-muted);
        margin-bottom: 10px;
    }

    .why-item .why-title {
        font-family: 'Hind', sans-serif;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--text-heading);
        margin-bottom: 10px;
    }

    .why-item .why-desc {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        color: var(--text-body);
        line-height: 1.7;
    }

    /* ============================================================
       Statement Section (replaces old Experience Section)
       ============================================================ */
    .statement-section {
        background: var(--white);
        padding: 120px 2rem;
        text-align: center;
        border-top: 1px solid var(--border-light);
        border-bottom: 1px solid var(--border-light);
    }

    .statement-content {
        max-width: 900px;
        margin: 0 auto;
    }

    .statement-text {
        font-family: 'Josefin Sans', sans-serif;
        font-size: 40px;
        font-weight: 300;
        letter-spacing: 10px;
        color: var(--text-heading);
        text-transform: uppercase;
        margin-bottom: 30px;
        line-height: 1.4;
    }

    .statement-body {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        color: var(--text-body);
        max-width: 700px;
        margin: 0 auto;
        line-height: 1.8;
    }

    /* Legacy experience classes kept for safety */
    .experience-section,
    .exp-container,
    .exp-left,
    .exp-right {
        /* retained as empty stubs */
    }

    /* ============================================================
       Portfolio Section (replaces old Case Studies Section)
       ============================================================ */
    .portfolio-section {
        padding-top: 100px;
        padding-bottom: 80px;
        background: var(--white);
    }

    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        padding: 0 40px;
    }

    .portfolio-item {
        position: relative;
        overflow: hidden;
        cursor: pointer;
        border-radius: 4px;
        display: flex;
        flex-direction: column;
    }

    .portfolio-item img {
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        transition: transform 0.5s ease;
        display: block;
    }

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

    .portfolio-overlay {
        position: static;
        width: 100%;
        padding: 16px 20px;
        background: rgba(23, 23, 23, 0.85);
        display: flex;
        flex-direction: column;
        pointer-events: none;
    }

    .portfolio-overlay .project-name {
        font-family: 'Hind', sans-serif;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 3px;
        color: white;
        text-transform: uppercase;
    }

    .portfolio-overlay .project-desc {
        font-family: 'Mulish', sans-serif;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.6);
        margin-top: 3px;
    }

    .portfolio-overlay .project-tag {
        font-family: 'Mulish', sans-serif;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.75);
        margin-top: 5px;
    }

    /* Portfolio "And more" CTA card */
    .portfolio-more {
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--gray-light);
        transition: background 0.3s ease;
        height: 100%;
        border-radius: 4px;
        cursor: pointer;
    }

    .portfolio-more:hover {
        background: var(--black);
    }

    .portfolio-more:hover .portfolio-more-title,
    .portfolio-more:hover .portfolio-more-desc,
    .portfolio-more:hover .portfolio-more-cta {
        color: var(--white);
    }

    .portfolio-more-content {
        text-align: center;
        padding: 40px 20px;
    }

    .portfolio-more-title {
        display: block;
        font-family: 'Hind', sans-serif;
        font-size: 22px;
        font-weight: 600;
        letter-spacing: 4px;
        color: var(--text-heading);
        margin-bottom: 12px;
        transition: color 0.3s ease;
        text-transform: uppercase;
    }

    .portfolio-more-desc {
        display: block;
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        color: var(--text-muted);
        margin-bottom: 20px;
        transition: color 0.3s ease;
    }

    .portfolio-more-cta {
        display: inline-block;
        font-family: 'Hind', sans-serif;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 3px;
        color: var(--text-heading);
        text-transform: uppercase;
        transition: color 0.3s ease;
    }

    /* Legacy case study classes — retained for popup functionality */
    .industry-tag {
        display: inline-block;
        padding: 4px 10px;
        font-family: 'Hind', sans-serif;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
        transform: none;
        margin-bottom: 12px;
        border: 1px solid var(--border-light);
        color: var(--text-muted);
        background: none;
    }

    .tag-cyan,
    .tag-purple,
    .tag-pink,
    .tag-green,
    .tag-yellow {
        background: none;
        color: var(--text-muted);
        border: 1px solid var(--border-light);
    }

    .case-study-name {
        font-family: 'Hind', sans-serif;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text-heading);
        margin-bottom: 8px;
    }

    .case-study-desc {
        font-family: 'Mulish', sans-serif;
        font-size: 13px;
        line-height: 1.6;
        color: var(--text-muted);
        margin-bottom: 14px;
    }

    .case-study-stack {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .tech-badge {
        padding: 4px 8px;
        background: none;
        border: 1px solid var(--border-light);
        color: var(--text-muted);
        font-family: 'Hind', sans-serif;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 1px;
    }

    /* ============================================================
       Case Study Popup — Restyled (functional CSS kept)
       ============================================================ */
    .case-popup-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(23, 23, 23, 0.85);
        z-index: 10000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .case-popup-overlay.active {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        animation: popupFadeIn 0.3s ease;
    }

    @keyframes popupFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .case-popup {
        width: 100%;
        max-width: 1000px;
        background: var(--white);
        margin: 2rem;
        position: relative;
        border: none;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    }

    .case-popup-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 10;
        background: var(--black);
        color: var(--white);
        border: none;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease;
    }

    .case-popup-close:hover {
        background: var(--text-muted);
    }

    /* Gallery */
    .case-popup-gallery {
        position: relative;
        background: var(--black);
        overflow: hidden;
    }

    .gallery-viewport {
        overflow: hidden;
        width: 100%;
    }

    .gallery-track {
        display: flex;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .gallery-track img {
        width: 100%;
        flex-shrink: 0;
        height: 500px;
        object-fit: contain;
        background: var(--black);
    }

    .gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        color: var(--black);
        border: 1px solid var(--border-light);
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease;
    }

    .gallery-prev { left: 1rem; }
    .gallery-next { right: 1rem; }

    .gallery-nav:hover {
        background: var(--white);
    }

    .gallery-dots {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.5rem;
    }

    .gallery-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .gallery-dot.active {
        background: var(--white);
        transform: scale(1.2);
    }

    /* Popup Body */
    .case-popup-body {
        padding: 2.5rem;
    }

    .case-popup-header {
        margin-bottom: 1.5rem;
    }

    .case-popup-title {
        font-family: 'Hind', sans-serif;
        font-size: clamp(1.5rem, 3vw, 2.25rem);
        font-weight: 600;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--text-heading);
        margin-top: 0.75rem;
    }

    .case-popup-desc {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        line-height: 1.8;
        color: var(--text-body);
        margin-bottom: 2rem;
    }

    .case-popup-meta {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-light);
    }

    .case-popup-meta-item {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .meta-label {
        font-family: 'Hind', sans-serif;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .meta-value {
        font-family: 'Hind', sans-serif;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-heading);
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        background-clip: unset;
    }

    .case-popup-stack {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Speed Comparison in Popup */
    .case-popup-speed {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem;
        background: var(--gray-light);
        margin-bottom: 2rem;
    }

    .popup-speed-item {
        text-align: center;
        flex: 1;
    }

    .popup-speed-item .speed-time {
        display: block;
        font-family: 'Hind', sans-serif;
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1;
        margin-bottom: 0.25rem;
    }

    .popup-speed-traditional .speed-time {
        color: var(--text-muted);
        text-decoration: line-through;
        text-decoration-color: var(--text-muted);
    }

    .popup-speed-ai .speed-time {
        color: var(--text-heading);
    }

    .popup-speed-item .speed-type {
        font-family: 'Mulish', sans-serif;
        font-size: 11px;
        font-weight: 600;
        color: var(--text-muted);
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .popup-speed-arrow {
        font-family: 'Hind', sans-serif;
        font-size: 1.5rem;
        color: var(--text-muted);
    }

    .popup-speed-multiplier {
        text-align: center;
    }

    .popup-speed-multiplier .speed-time {
        display: block;
        font-family: 'Hind', sans-serif;
        font-size: 1.75rem;
        font-weight: 600;
        color: var(--text-heading);
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        background-clip: unset;
        line-height: 1;
        margin-bottom: 0.25rem;
    }

    .popup-speed-multiplier .speed-type {
        font-family: 'Mulish', sans-serif;
        font-size: 11px;
        font-weight: 600;
        color: var(--text-muted);
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    /* ============================================================
       Two-Panel Case Study Layout
       ============================================================ */
    .case-popup-left {
        width: 100%;
        overflow-y: auto;
    }

    .case-popup-right {
        display: none;
    }

    .case-popup.has-case-study {
        max-width: 1400px;
        display: flex;
        flex-direction: row;
        max-height: 90vh;
        overflow: hidden;
    }

    .case-popup.has-case-study .case-popup-left {
        width: 50%;
        flex-shrink: 0;
        overflow-y: auto;
        border-right: 1px solid var(--border-light);
    }

    .case-popup.has-case-study .case-popup-right {
        display: block;
        width: 50%;
        flex-shrink: 0;
        overflow-y: auto;
        background: var(--white);
    }

    .case-popup-left-scroll {
        padding: 2.5rem;
    }

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

    .cs-title {
        font-family: 'Hind', sans-serif;
        font-size: clamp(1.25rem, 2.5vw, 1.75rem);
        font-weight: 600;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--text-heading);
        margin-top: 0.75rem;
        line-height: 1.2;
    }

    .cs-subtitle {
        font-family: 'Mulish', sans-serif;
        font-size: 14px;
        font-style: italic;
        color: var(--text-muted);
        line-height: 1.6;
        margin-top: 0.75rem;
    }

    .case-popup.has-case-study .case-popup-header {
        display: none;
    }

    /* Metrics Strip */
    .cs-metrics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .cs-metric {
        text-align: center;
        padding: 1.25rem 1rem;
        border: 1px solid var(--border-light);
        background: var(--gray-light);
    }

    .cs-metric:nth-child(1),
    .cs-metric:nth-child(2),
    .cs-metric:nth-child(3) {
        box-shadow: none;
    }

    .cs-metric-value {
        display: block;
        font-family: 'Hind', sans-serif;
        font-size: 1.75rem;
        font-weight: 600;
        color: var(--text-heading);
        line-height: 1.1;
    }

    .cs-metric-label {
        display: block;
        font-family: 'Mulish', sans-serif;
        font-size: 11px;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-top: 0.4rem;
    }

    /* Accordion */
    .cs-accordion {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .cs-section {
        border: 1px solid var(--border-light);
        background: var(--gray-light);
        transition: background 0.3s ease;
    }

    .cs-section.active {
        background: var(--white);
        box-shadow: none;
    }

    .cs-section-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 1rem 1.25rem;
        background: none;
        border: none;
        font-family: 'Hind', sans-serif;
        font-size: 13px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--text-heading);
        text-align: left;
    }

    .cs-section-icon {
        font-size: 0.65rem;
        display: none;
    }

    .cs-section-content {
        padding: 0 1.25rem 1.25rem;
        font-family: 'Mulish', sans-serif;
        font-size: 14px;
        line-height: 1.7;
        color: var(--text-body);
        transition: max-height 0.3s ease;
    }

    .cs-section-content p {
        margin-bottom: 1rem;
    }

    .cs-section-content p:last-child {
        margin-bottom: 0;
    }

    .cs-section-content ul {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .cs-section-content li {
        margin-bottom: 0.5rem;
    }

    .cs-section-content em {
        color: var(--text-muted);
    }

    .cs-section-content strong {
        color: var(--text-heading);
    }

    /* Quote Block */
    .cs-quote {
        position: relative;
        padding: 2rem 2.5rem;
        background: var(--gray-light);
        color: var(--text-body);
        border: none;
        margin: 0;
    }

    .cs-quote p {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        font-style: italic;
        line-height: 1.7;
        margin: 0 0 1rem;
        color: var(--text-body);
    }

    .cs-quote cite {
        font-family: 'Hind', sans-serif;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-style: normal;
        color: var(--text-muted);
        display: block;
    }

    /* Mobile popup panels */
    @media (max-width: 900px) {
        .case-popup.has-case-study {
            flex-direction: column;
            max-height: none;
            overflow: visible;
        }

        .case-popup.has-case-study .case-popup-left {
            width: 100%;
            border-right: none;
            border-bottom: 1px solid var(--border-light);
            overflow-y: visible;
        }

        .case-popup.has-case-study .case-popup-right {
            width: 100%;
            overflow-y: visible;
        }
    }

    /* ============================================================
       Compliance Section — Clean row layout
       ============================================================ */
    .compliance-section {
        background: var(--white);
        padding: 80px 2rem;
        text-align: center;
    }

    .compliance-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px 30px;
        max-width: 900px;
        margin: 0 auto;
    }

    .compliance-item {
        text-align: center;
        padding: 20px 10px;
    }

    .compliance-abbr {
        display: block;
        font-family: 'Hind', sans-serif;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--text-heading);
    }

    .compliance-name {
        display: block;
        font-family: 'Mulish', sans-serif;
        font-size: 13px;
        color: var(--text-muted);
        margin-top: 5px;
    }

    /* Legacy compliance badge classes — stubs retained */
    .compliance-wrapper,
    .compliance-intro,
    .compliance-badges,
    .compliance-badge-item,
    .badge-abbr,
    .badge-full,
    .badge-desc {
        /* retained as stubs */
    }

    /* ============================================================
       Testimonials Section — 3-column static grid layout
       ============================================================ */
    .testimonials-section {
        background: var(--gray-light);
        padding: 100px 2rem;
        text-align: center;
    }

    .testimonials-title {
        font-family: 'Hind', sans-serif;
        font-size: 24px;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text-heading);
        margin-bottom: 60px;
    }

    /* Old avatar/switcher classes — retained as stubs so any residual JS refs don't throw */
    .avatar-row { display: none; }
    .avatar-item { display: none; }
    .avatar-item.active { display: none; }
    .testimonial-content { display: none; }

    /* New 3-column grid */
    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
        text-align: left;
    }

    .testimonial-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .testimonial-quote {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        line-height: 1.8;
        color: var(--text-body);
        font-style: italic;
        margin-bottom: 30px;
    }

    .testimonial-author-info {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid var(--border-light);
        flex-shrink: 0;
    }

    .testimonial-author {
        font-family: 'Hind', sans-serif;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-heading);
    }

    .testimonial-role {
        font-family: 'Mulish', sans-serif;
        font-size: 13px;
        color: var(--text-muted);
    }

    /* Testimonial project tag */
    .testimonial-project-tag {
        position: absolute;
        top: -0.75rem;
        right: 1.5rem;
        padding: 4px 10px;
        font-family: 'Hind', sans-serif;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
        transform: none;
        border: 1px solid var(--border-light);
        z-index: 5;
        color: var(--text-muted);
        background: var(--white);
    }

    /* ============================================================
       Services Section — Grid-based layout
       ============================================================ */
    .services-section {
        background: #171717;
        padding: 100px 2rem;
        text-align: center;
    }

    .services-title {
        font-family: 'Hind', sans-serif;
        font-size: 32px;
        font-weight: 300;
        letter-spacing: 10px;
        text-transform: uppercase;
        color: white;
        margin-bottom: 50px;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        max-width: 1000px;
        margin: 0 auto 50px;
    }

    .service-item {
        font-family: 'Hind', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-light);
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    /* Services CTA */
    .services-cta {
        display: inline-block;
        padding: 15px 40px;
        border: 2px solid white;
        background: transparent;
        color: white;
        font-family: 'Open Sans', sans-serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 5px;
        text-transform: uppercase;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .services-cta:hover {
        background: white;
        color: #171717;
    }

    /* Legacy marquee classes — kept for any old HTML remnants */
    .services-container,
    .services-left,
    .services-right,
    .services-marquee,
    .marquee-content,
    .services-desc {
        /* retained as stubs */
    }

    /* ============================================================
       Estimate Section (replaces old CTA Section)
       ============================================================ */
    .estimate-section {
        display: none;
        background: var(--white);
        padding: 100px 2rem;
        text-align: center;
    }

    .estimate-container {
        max-width: 700px;
        margin: 0 auto;
    }

    .estimate-subtitle {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        color: var(--text-body);
        margin-bottom: 40px;
        line-height: 1.7;
    }

    /* Legacy cta classes — stubs retained */
    .cta-section,
    .cta-container,
    .cta-title,
    .cta-text {
        /* retained as stubs */
    }

    /* Estimate Form */
    .estimate-form {
        max-width: 700px;
        margin: 0 auto;
        text-align: left;
    }

    .form-group,
    .estimate-form .form-group {
        margin-bottom: 25px;
        text-align: left;
    }

    .form-label {
        display: block;
        font-family: 'Hind', sans-serif;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--text-sub);
        margin-bottom: 8px;
    }

    .form-input,
    .form-textarea,
    .estimate-form textarea,
    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 15px;
        border: 1px solid var(--gray-bg);
        background: var(--white);
        border-radius: 0;
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        color: var(--text-body);
        transition: border-color 0.3s ease;
        outline: none;
    }

    .form-input:focus,
    .form-textarea:focus,
    .estimate-form textarea:focus,
    .contact-form input:focus,
    .contact-form textarea:focus {
        border-color: var(--text-heading);
        transform: none;
        box-shadow: none;
    }

    .form-textarea,
    .estimate-form textarea,
    .contact-form textarea {
        resize: vertical;
        min-height: 150px;
    }

    .form-input::placeholder,
    .form-textarea::placeholder,
    .estimate-form textarea::placeholder,
    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        color: var(--text-muted);
        font-family: 'Mulish', sans-serif;
    }

    /* File Upload */
    .file-upload-wrapper {
        position: relative;
    }

    .file-input {
        display: none;
    }

    .file-upload-label {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2.5rem 2rem;
        background: var(--white);
        border: 1px dashed var(--border-light);
        cursor: pointer;
        transition: border-color 0.3s ease, background 0.3s ease;
        font-family: 'Hind', sans-serif;
        font-size: 14px;
        color: var(--text-sub);
        text-align: center;
        gap: 8px;
    }

    .file-upload-label:hover {
        background: var(--gray-light);
        border-color: var(--text-muted);
    }

    .file-hint {
        font-family: 'Mulish', sans-serif;
        font-size: 13px;
        color: var(--text-muted);
    }

    .upload-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        opacity: 0.5;
    }

    .upload-text {
        font-family: 'Hind', sans-serif;
        font-weight: 500;
        font-size: 14px;
        letter-spacing: 1px;
        color: var(--text-sub);
        margin-bottom: 0.4rem;
    }

    .upload-hint {
        font-family: 'Mulish', sans-serif;
        font-size: 13px;
        color: var(--text-muted);
    }

    .file-list {
        margin-top: 1rem;
    }

    .file-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        background: var(--white);
        margin-bottom: 6px;
        border: 1px solid var(--border-light);
        border-left: 2px solid var(--text-heading);
    }

    .file-name {
        font-family: 'Mulish', sans-serif;
        font-size: 14px;
        color: var(--text-body);
        font-weight: 500;
    }

    .file-remove {
        background: none;
        border: none;
        color: var(--text-muted);
        font-size: 1.25rem;
        cursor: pointer;
        padding: 0;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s ease;
    }

    .file-remove:hover {
        color: var(--text-heading);
        transform: none;
    }

    /* Submit Button */
    .submit-button {
        width: 100%;
        padding: 16px 2rem;
        background: transparent;
        color: var(--text-heading);
        border: 2px solid var(--border-dark);
        font-family: 'Open Sans', sans-serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 5px;
        text-transform: uppercase;
        cursor: pointer;
        transform: none;
        transition: all 0.3s ease;
        position: relative;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 24px;
    }

    .submit-button::after {
        display: none;
    }

    .submit-button:hover {
        background: var(--black);
        color: var(--white);
        border-color: var(--black);
        transform: none;
    }

    .submit-button:hover::after {
        display: none;
    }

    .submit-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .button-icon {
        font-size: 1rem;
    }

    .form-note {
        text-align: center;
        margin-top: 16px;
        font-family: 'Mulish', sans-serif;
        font-size: 12px;
        color: var(--text-muted);
        letter-spacing: 1px;
    }

    .form-privacy {
        text-align: center;
        margin-top: 10px;
        font-family: 'Mulish', sans-serif;
        font-size: 12px;
        color: var(--text-muted);
        padding: 8px 16px;
        background: var(--white);
        border: 1px solid var(--border-light);
    }

    /* AI Questions Step */
    .ai-questions {
        max-width: 700px;
        margin: 0 auto;
        text-align: left;
    }

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

    .questions-header h3 {
        font-family: 'Hind', sans-serif;
        font-size: 1.5rem;
        font-weight: 600;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--text-heading);
        margin-bottom: 10px;
        text-align: center;
    }

    .questions-header p {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        color: var(--text-body);
        text-align: center;
    }

    .questions-form {
        margin-top: 2rem;
    }

    .question-item {
        margin-bottom: 20px;
        padding: 20px;
        background: var(--white);
        border: 1px solid var(--border-light);
        border-left: 2px solid var(--text-heading);
    }

    .question-label {
        display: block;
        font-family: 'Hind', sans-serif;
        font-weight: 600;
        font-size: 14px;
        letter-spacing: 1px;
        color: var(--text-heading);
        margin-bottom: 6px;
    }

    .question-hint {
        display: block;
        font-family: 'Mulish', sans-serif;
        font-size: 13px;
        color: var(--text-muted);
        margin-bottom: 12px;
    }

    .question-input,
    .question-select {
        width: 100%;
        padding: 12px 14px;
        background: var(--gray-light);
        border: 1px solid var(--border-light);
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        color: var(--text-heading);
        transition: border-color 0.3s ease;
    }

    .question-input:focus,
    .question-select:focus {
        outline: none;
        border-color: var(--text-heading);
        transform: none;
    }

    /* Estimate Result */
    .estimate-result {
        max-width: 900px;
        margin: 3rem auto 0;
        padding: 2.5rem;
        background: var(--white);
        color: var(--text-heading);
        border: 1px solid var(--border-light);
        position: relative;
    }

    .result-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-light);
    }

    .result-header h3 {
        font-family: 'Hind', sans-serif;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 4px;
        text-transform: uppercase;
        color: var(--text-heading);
    }

    .result-close {
        background: none;
        border: none;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
        padding: 0;
        color: var(--text-muted);
        transition: color 0.2s ease;
    }

    .result-close:hover {
        color: var(--text-heading);
        transform: none;
    }

    .result-content {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        line-height: 1.8;
        color: var(--text-body);
    }

    .result-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem 0;
        border-bottom: 1px solid var(--border-light);
    }

    .result-stat:last-child {
        border-bottom: none;
    }

    .result-label {
        font-family: 'Hind', sans-serif;
        font-weight: 500;
        font-size: 13px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .result-value {
        font-family: 'Hind', sans-serif;
        font-size: 1.75rem;
        font-weight: 600;
        color: var(--text-heading);
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        background-clip: unset;
    }

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

    .result-section h4 {
        font-family: 'Hind', sans-serif;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--text-heading);
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border-light);
    }

    .architecture-diagram {
        padding: 1.5rem;
        background: var(--gray-light);
        border: 1px solid var(--border-light);
        margin: 1.25rem 0;
        font-family: 'Mulish', monospace;
        font-size: 13px;
        line-height: 1.8;
        color: var(--text-sub);
    }

    .user-story {
        padding: 1rem 1.25rem;
        background: var(--gray-light);
        border-left: 2px solid var(--border-dark);
        margin-bottom: 10px;
    }

    .user-story strong {
        display: block;
        margin-bottom: 0.4rem;
        color: var(--text-heading);
        font-family: 'Hind', sans-serif;
        font-size: 13px;
        letter-spacing: 1px;
    }

    .mvp-package {
        padding: 1.5rem;
        background: var(--gray-light);
        border: 1px solid var(--border-light);
        margin: 1.25rem 0;
    }

    .mvp-package h5 {
        font-family: 'Hind', sans-serif;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text-heading);
        margin-bottom: 1rem;
    }

    .mvp-features {
        list-style: none;
        padding: 0;
    }

    .mvp-features li {
        padding: 5px 0;
        padding-left: 20px;
        position: relative;
        font-family: 'Mulish', sans-serif;
        font-size: 14px;
        color: var(--text-body);
    }

    .mvp-features li::before {
        content: '—';
        position: absolute;
        left: 0;
        color: var(--text-muted);
        font-weight: 400;
    }

    .delivery-highlight {
        font-family: 'Hind', sans-serif;
        font-size: 2.5rem;
        font-weight: 600;
        text-align: center;
        margin: 2rem 0;
        color: var(--text-heading);
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        background-clip: unset;
    }

    .cta-button {
        display: inline-block;
        padding: 14px 36px;
        background: transparent;
        color: var(--text-heading);
        text-decoration: none;
        font-family: 'Open Sans', sans-serif;
        font-weight: 700;
        font-size: 11px;
        letter-spacing: 5px;
        text-transform: uppercase;
        border: 2px solid var(--border-dark);
        transform: none;
        transition: all 0.3s ease;
        position: static;
    }

    .cta-button::after {
        display: none;
    }

    .cta-button:hover {
        background: var(--black);
        color: var(--white);
        border-color: var(--black);
        transform: none;
    }

    .cta-button:hover::after {
        display: none;
    }

    /* ============================================================
       Contact Section
       ============================================================ */
    .contact-section {
        background: var(--gray-light);
        padding: 100px 2rem;
        text-align: center;
    }

    .contact-container {
        max-width: 700px;
        margin: 0 auto;
    }

    .contact-form {
        text-align: left;
    }

    .contact-form .form-group {
        margin-bottom: 25px;
        text-align: left;
    }

    /* Legacy contact-specific overrides — stubs retained */
    .contact-input,
    .contact-textarea {
        background: var(--white);
        border: 1px solid var(--border-light);
    }

    .contact-submit-button {
        background: transparent;
        color: var(--text-heading);
        border: 2px solid var(--border-dark);
    }

    .contact-submit-button:hover {
        background: var(--black);
        color: var(--white);
        border-color: var(--black);
    }

    .contact-submit-button::after {
        display: none;
    }

    /* ============================================================
       FAQ Section
       ============================================================ */
    .faq-section {
        padding: 100px 2rem;
        background: var(--white);
    }

    .faq-container {
        max-width: 900px;
        margin: 0 auto;
    }

    .faq-title {
        font-family: 'Hind', sans-serif;
        font-size: 32px;
        font-weight: 300;
        letter-spacing: 10px;
        text-transform: uppercase;
        color: var(--text-heading);
        margin-bottom: 50px;
    }

    .faq-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .faq-item {
        border-bottom: 1px solid var(--border-light);
    }

    .faq-item:first-child {
        border-top: 1px solid var(--border-light);
    }

    .faq-question {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 0;
        background: none;
        border: none;
        cursor: pointer;
        font-family: 'Hind', sans-serif;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 1px;
        color: var(--text-heading);
        text-align: left;
        transition: color 0.3s ease;
    }

    .faq-question:hover {
        color: var(--text-muted);
    }

    .faq-question:focus {
        outline: none;
    }

    .faq-question:focus-visible {
        outline: 2px solid var(--text-heading);
        outline-offset: 2px;
    }

    .faq-icon {
        font-size: 1.25rem;
        font-weight: 300;
        transition: transform 0.3s ease;
        flex-shrink: 0;
        margin-left: 1rem;
        color: var(--text-muted);
    }

    .faq-item.active .faq-icon {
        transform: rotate(45deg);
    }

    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .faq-answer p {
        padding: 0 0 20px;
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        line-height: 1.7;
        color: var(--text-body);
    }

    .faq-answer a {
        color: var(--text-heading);
        text-decoration: underline;
        font-weight: 600;
    }

    .faq-answer a:hover {
        color: var(--text-muted);
    }

    /* ============================================================
       Footer
       ============================================================ */
    .footer {
        padding: 60px 2rem;
        background: var(--black);
        color: var(--white);
        text-align: center;
        border-top: none;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer-brand,
    .footer-logo {
        font-family: 'Julius Sans One', serif;
        font-size: 18px;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--white);
        text-decoration: none;
    }

    .footer-brand .logo-suffix,
    .footer-brand .footer-suffix,
    .footer-logo .dev-suffix {
        color: var(--text-on-dark);
        font-family: 'Mulish', sans-serif;
        font-weight: 400;
        font-size: 0.85em;
    }

    .footer-copy,
    .footer-copyright {
        font-family: 'Mulish', sans-serif;
        font-size: 13px;
        color: var(--text-muted);
        opacity: 1;
    }

    /* ============================================================
       Section Subtitle — shared helper
       ============================================================ */
    .section-subtitle {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        color: var(--text-muted);
        text-align: center;
        margin-top: -40px;
        margin-bottom: 60px;
    }

    /* ============================================================
       Choose Your Path Section
       ============================================================ */
    .paths-section {
        background: var(--white);
        padding: 100px 2rem;
    }

    .paths-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .path-card {
        padding: 40px;
        border-top: 3px solid var(--text-heading);
        display: flex;
        flex-direction: column;
    }

    .path-number {
        display: block;
        font-family: 'Hind', sans-serif;
        font-size: 48px;
        font-weight: 300;
        color: var(--text-muted);
        margin-bottom: 16px;
        line-height: 1;
    }

    .path-title {
        font-family: 'Hind', sans-serif;
        font-size: 17px;
        font-weight: 600;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--text-heading);
        margin-bottom: 12px;
    }

    .path-audience {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        font-style: italic;
        color: var(--text-muted);
        margin-bottom: 20px;
    }

    .path-description {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        color: var(--text-body);
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .path-list {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        color: var(--text-body);
        list-style: disc;
        padding-left: 20px;
        line-height: 2;
        margin-bottom: 32px;
    }

    .btn-outline-dark {
        display: inline-block;
        padding: 15px 32px;
        border: 2px solid var(--border-dark);
        background: transparent;
        color: var(--text-heading);
        font-family: 'Open Sans', sans-serif;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 5px;
        text-transform: uppercase;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .btn-outline-dark:hover {
        background: var(--black);
        color: var(--white);
        border-color: var(--black);
    }

    .path-cta {
        margin-top: auto;
        align-self: flex-start;
    }

    /* ============================================================
       How We Build / Cortex Section
       ============================================================ */
    .cortex-section {
        background: var(--gray-light);
        padding: 100px 2rem;
    }

    .cortex-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .cortex-step {
        padding-top: 24px;
        border-top: 1px solid var(--border-light);
    }

    .cortex-number {
        display: block;
        font-family: 'Hind', sans-serif;
        font-size: 36px;
        font-weight: 300;
        color: var(--text-muted);
        margin-bottom: 12px;
        line-height: 1;
    }

    .cortex-step-title {
        font-family: 'Hind', sans-serif;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--text-heading);
        margin-bottom: 12px;
    }

    .cortex-step p {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        color: var(--text-body);
        line-height: 1.7;
    }

    .cortex-flywheel {
        font-family: 'Mulish', sans-serif;
        font-size: 15px;
        font-style: italic;
        color: var(--text-muted);
        text-align: center;
        margin-top: 48px;
    }

    /* ============================================================
       Animate-in — Scroll Observer (used by JS)
       ============================================================ */
    .animate-in {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* ============================================================
       Reduced Motion
       ============================================================ */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        .testimonial-card {
            transition: none;
        }

        .testimonial-card:hover {
            transform: none;
        }
    }

    /* ============================================================
       Responsive — 1024px (Tablet Landscape)
       ============================================================ */
    @media (max-width: 1024px) {
        .features-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }

        .why-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }

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

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

        .cortex-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }
    }

    /* ============================================================
       Responsive — 768px (Tablet Portrait / Mobile)
       ============================================================ */
    @media (max-width: 768px) {
        /* Header */
        .site-header {
            padding: 16px 20px;
        }

        .header-nav {
            display: none;
        }

        .hamburger {
            display: flex;
        }

        .font-toggle {
            margin-right: 16px;
        }

        /* Hero */
        .hero-section {
            padding: 100px 1.5rem 60px;
            min-height: 100svh;
        }

        .hero-title {
            font-size: clamp(28px, 8vw, 42px);
            letter-spacing: 6px;
        }

        .hero-brand {
            font-size: 16px;
            letter-spacing: 3px;
        }

        /* Features */
        .features-section {
            padding: 70px 1.5rem 60px;
        }

        .features-grid {
            grid-template-columns: 1fr;
            gap: 0;
        }

        .feature-item {
            padding: 24px 0;
            border-top: 1px solid var(--gray-bg);
        }

        /* Why */
        .why-section {
            padding: 70px 1.5rem;
        }

        .why-grid {
            grid-template-columns: 1fr;
            gap: 0;
        }

        .why-item {
            padding: 24px 0;
            border-top: 1px solid var(--gray-bg);
        }

        /* Statement */
        .statement-section {
            padding: 70px 1.5rem;
        }

        .statement-text {
            font-size: 28px;
            letter-spacing: 5px;
        }

        /* Choose Your Path */
        .paths-section {
            padding: 70px 1.5rem;
        }

        .paths-grid {
            grid-template-columns: 1fr;
            gap: 60px;
        }

        .path-card {
            padding: 30px 0 0;
        }

        .path-cta {
            display: block;
            text-align: center;
        }

        /* How We Build / Cortex */
        .cortex-section {
            padding: 70px 1.5rem;
        }

        .cortex-grid {
            grid-template-columns: 1fr;
            gap: 0;
        }

        .cortex-step {
            padding: 24px 0;
            border-top: 1px solid var(--border-light);
        }

        /* Portfolio */
        .portfolio-grid {
            grid-template-columns: repeat(2, 1fr);
            padding: 0 20px;
        }

        /* Mobile popup */
        .case-popup {
            margin: 0;
            min-height: 100vh;
            border: none;
            box-shadow: none;
        }

        /* Move close button to bottom-right on mobile for thumb reachability */
        .case-popup-close {
            position: fixed;
            top: auto;
            bottom: 28px;
            right: 24px;
            width: 52px;
            height: 52px;
            font-size: 1.5rem;
            border-radius: 50%;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
            z-index: 1000;
        }

        .gallery-track img {
            height: 280px;
        }

        .case-popup-body {
            padding: 1.5rem;
        }

        .gallery-nav {
            width: 36px;
            height: 36px;
            font-size: 1.25rem;
        }

        /* Metrics mobile */
        .cs-metrics {
            grid-template-columns: 1fr;
            gap: 0.5rem;
        }

        .cs-metric {
            padding: 1rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            text-align: left;
        }

        .cs-metric-value {
            font-size: 1.5rem;
            min-width: 70px;
        }

        .cs-metric-label {
            margin-top: 0;
        }

        .cs-section-header {
            padding: 1rem;
            font-size: 12px;
            min-height: 48px;
        }

        .cs-section-content {
            padding: 0 1rem 1rem;
            font-size: 13px;
        }

        .cs-quote {
            padding: 1.5rem;
        }

        .cs-quote p {
            font-size: 14px;
        }

        /* Testimonials */
        .testimonials-section {
            padding: 70px 1.5rem;
        }

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

        .testimonial-quote {
            font-size: 15px;
        }

        /* Services */
        .services-section {
            padding: 70px 1.5rem;
        }

        .services-title {
            font-size: 24px;
            letter-spacing: 6px;
            word-wrap: break-word;
        }

        .services-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        /* Compliance */
        .compliance-section {
            padding: 60px 1.5rem;
        }

        .compliance-row {
            grid-template-columns: repeat(2, 1fr);
            gap: 30px 20px;
        }

        /* Estimate */
        .estimate-section {
            padding: 70px 1.5rem;
        }

        /* FAQ */
        .faq-section {
            padding: 70px 1.5rem;
        }

        .faq-title {
            font-size: 24px;
            letter-spacing: 6px;
        }

        .faq-question {
            padding: 16px 0;
            font-size: 14px;
        }

        /* Contact */
        .contact-section {
            padding: 70px 1.5rem;
        }

        /* Footer */
        .footer {
            padding: 40px 1.5rem;
        }

        /* Speed comparison popup mobile */
        .case-popup-speed {
            flex-wrap: wrap;
            gap: 0.75rem;
            padding: 1rem;
        }

        .popup-speed-item .speed-time {
            font-size: 1.25rem;
        }

        .popup-speed-arrow {
            font-size: 1rem;
        }

        .popup-speed-multiplier .speed-time {
            font-size: 1.25rem;
        }
    }

    /* ============================================================
       Responsive — 480px (Small Mobile)
       ============================================================ */
    @media (max-width: 480px) {
        .hero-title {
            font-size: clamp(24px, 9vw, 36px);
            letter-spacing: 4px;
        }

        .hero-cta,
        .hero-buttons {
            flex-direction: column;
            align-items: center;
        }

        .btn-hero,
        .hero-btn {
            width: 100%;
            text-align: center;
        }

        .portfolio-grid {
            grid-template-columns: 1fr;
            padding: 0 16px;
        }

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

        .compliance-row {
            grid-template-columns: repeat(2, 1fr);
            gap: 24px 16px;
        }

        .section-title,
        .testimonials-title,
        .services-title,
        .faq-title {
            font-size: 22px;
            letter-spacing: 5px;
        }

        .statement-text {
            font-size: 22px;
            letter-spacing: 5px;
        }
    }

    /* ============================================================
       Print Optimization
       ============================================================ */
    @media print {
        *,
        *::before,
        *::after {
            animation-duration: 0s !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0s !important;
            opacity: 1 !important;
            transform: none !important;
        }

        .why-section * {
            opacity: 1 !important;
            visibility: visible !important;
        }

        .ask-badge,
        .floating-cta,
        .site-header {
            display: none !important;
        }
    }

/* ============================================================
   Google Fonts — Load via HTML. These @import declarations
   serve as fallback reference:
   Julius Sans One 400
   Josefin Sans 300
   Hind 300 500 600
   Mulish 400
   Open Sans 700
   ============================================================ */

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

body {
    font-family: 'Mulish', sans-serif;
    background: var(--white);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* ============================================================
   Skip to Content — Accessibility
   ============================================================ */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    font-family: 'Hind', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    z-index: 10000;
    border: 1px solid var(--border-dark);
}

.skip-to-content:focus {
    top: 1rem;
    outline: 2px solid var(--text-heading);
    outline-offset: 2px;
}

/* ============================================================
   Site Header (Fixed Navigation)
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease, border-bottom 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.site-header.scrolled {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
}

.header-logo {
    font-family: 'Julius Sans One', serif;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    transition: color 0.3s ease;
}

.site-header.scrolled .header-logo {
    color: var(--black);
}

.header-logo .dev-suffix {
    color: var(--text-muted);
}

.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-nav a {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    text-decoration: none;
    color: var(--white);
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.site-header.scrolled .header-nav a {
    color: var(--text-body);
}

.header-nav a:hover {
    color: var(--text-muted);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 25px;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: background 0.3s ease;
}

.site-header.scrolled .hamburger span {
    background: var(--black);
}

/* ============================================================
   Header Right — wraps font toggle + nav + hamburger
   ============================================================ */
.header-right {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Font Size Toggle */
.font-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 3px;
    padding: 4px 6px;
    margin-right: 24px;
    color: var(--white);
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.75;
    line-height: 1;
}

.font-toggle:hover {
    opacity: 1;
}

.site-header.scrolled .font-toggle {
    color: var(--text-body);
}

.font-toggle .a-small {
    font-family: 'Hind', sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1;
}

.font-toggle .a-large {
    font-family: 'Hind', sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
}

/* Active state: font-large mode — highlight the large A */
html.font-large .font-toggle .a-large {
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 1;
}

html.font-large .font-toggle {
    opacity: 1;
}

/* ============================================================
   Large Font Mode — Accessibility Text Scaling (~20% increase)
   Targets all body text, descriptions, paragraphs, and
   primary reading elements. Leaves nav links, badges, and
   small utility labels unchanged.
   ============================================================ */

/* Body base */
html.font-large body {
    font-size: 19px; /* 16px → 19px */
}

/* Hero section */
html.font-large .hero-subtitle {
    font-size: 15px; /* 13px → 15px */
}

html.font-large .hero-title {
    font-size: clamp(43px, 6vw, 70px); /* clamp(36,5vw,58) → ~+20% */
}

html.font-large .hero-text {
    font-size: 18px; /* 15px → 18px */
}

/* Section titles */
html.font-large .section-title {
    font-size: 38px; /* 32px → 38px */
}

html.font-large .section-subtitle {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .testimonials-title {
    font-size: 29px; /* 24px → 29px */
}

html.font-large .services-title {
    font-size: 38px; /* 32px → 38px */
}

html.font-large .faq-title {
    font-size: 38px; /* 32px → 38px */
}

/* Features section */
html.font-large .feature-item .feature-desc {
    font-size: 18px; /* 15px → 18px */
}

/* Why section */
html.font-large .why-item .why-desc {
    font-size: 18px; /* 15px → 18px */
}

/* Statement section */
html.font-large .statement-text {
    font-size: 48px; /* 40px → 48px */
}

html.font-large .statement-body {
    font-size: 18px; /* 15px → 18px */
}

/* Testimonials */
html.font-large .testimonial-quote {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .testimonial-role {
    font-size: 15px; /* 13px → 15px */
}

/* FAQ */
html.font-large .faq-question {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .faq-answer p {
    font-size: 18px; /* 15px → 18px */
}

/* Choose Your Path */
html.font-large .path-audience {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .path-description {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .path-list {
    font-size: 18px; /* 15px → 18px */
}

/* Cortex / How We Build */
html.font-large .cortex-step p {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .cortex-flywheel {
    font-size: 18px; /* 15px → 18px */
}

/* How It Works */
html.font-large .hiw-subhead {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .hiw-step-desc {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .hiw-cta-text {
    font-size: 18px; /* 15px → 18px */
}

/* Case Study popup */
html.font-large .case-popup-desc {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .cs-section-content {
    font-size: 17px; /* 14px → 17px */
}

html.font-large .cs-quote p {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .cs-subtitle {
    font-size: 17px; /* 14px → 17px */
}

/* Estimate / Contact forms */
html.font-large .form-input,
html.font-large .form-textarea,
html.font-large .estimate-form textarea,
html.font-large .contact-form input,
html.font-large .contact-form textarea {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .question-input,
html.font-large .question-select {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .questions-header p {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .estimate-subtitle {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .result-content {
    font-size: 18px; /* 15px → 18px */
}

html.font-large .mvp-features li {
    font-size: 17px; /* 14px → 17px */
}

/* Responsive overrides for font-large — keep clamp values sane on mobile */
@media (max-width: 768px) {
    html.font-large .hero-title {
        font-size: clamp(33px, 9.6vw, 50px); /* mobile clamp +20% */
    }

    html.font-large .statement-text {
        font-size: 33px; /* 28px → 33px */
    }

    html.font-large .section-title,
    html.font-large .testimonials-title,
    html.font-large .services-title,
    html.font-large .faq-title {
        font-size: 29px; /* 24px → 29px */
    }
}

@media (max-width: 480px) {
    html.font-large .hero-title {
        font-size: clamp(29px, 10.8vw, 43px); /* small mobile +20% */
    }

    html.font-large .section-title,
    html.font-large .testimonials-title,
    html.font-large .services-title,
    html.font-large .faq-title {
        font-size: 26px; /* 22px → 26px */
    }

    html.font-large .statement-text {
        font-size: 26px; /* 22px → 26px */
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

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

.mobile-menu a {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-heading);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 40px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-heading);
}

/* ============================================================
   Legacy Ask Badge — Hidden (replaced by site-header)
   ============================================================ */
.ask-badge {
    display: none;
}

/* ============================================================
   Legacy Floating CTA — Hidden (replaced by site-header)
   ============================================================ */
.floating-cta {
    display: none;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #0d0d0a;
    background-image: radial-gradient(ellipse at center, rgba(85, 62, 28, 0.58) 0%, rgba(13, 13, 10, 0.95) 75%);
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
}

/* Hide the old shape divs — not needed in new design */
.hero-shapes,
.shape,
.shape-1,
.shape-2,
.shape-3 {
    display: none;
}

.hero-container {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Legacy hero-brand-wrapper — restyle as subtle tag */
.hero-brand-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-brand {
    display: inline-block;
    font-family: 'Julius Sans One', serif;
    font-size: 20px;
    color: var(--white);
    letter-spacing: 5px;
    text-transform: uppercase;
    cursor: default;
    background: none;
    border: none;
    box-shadow: none;
    transform: none;
    transition: none;
    overflow: visible;
    padding: 0;
    position: static;
}

.hero-brand::before {
    display: none;
}

.hero-brand:hover::before {
    display: none;
}

.brand-suffix {
    font-family: 'Mulish', sans-serif;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85em;
}

.hero-label {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transform: none;
    background: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Hero top tag/badge */
.hero-tag {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid rgba(184, 168, 138, 0.5);
    color: #c4b99a;
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 48px;
}

/* Hero subtitle text (used as eyebrow) */
.hero-subtitle {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b8a88a;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* The main h1 hero title */
.hero-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #f5f0e8;
    line-height: 1.2;
    margin-bottom: 28px;
}

.title-line {
    display: block;
}

/* Remove gradient text effects — replace with clean white */
.title-gradient-faster,
.title-gradient-smarter {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    animation: none;
    color: #f5f0e8;
    opacity: 0.75;
}

/* Hero body text */
.hero-text {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    color: #c4b99a;
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.8;
    opacity: 0.85;
    font-style: italic;
}

/* Hero CTA wrapper */
.hero-cta,
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Hero buttons — outline style */
.btn-hero,
.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid #b8a88a;
    background: transparent;
    color: #c4b99a;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    position: static;
    transform: none;
}

.btn-hero::after,
.hero-btn::after {
    display: none;
}

.btn-hero:hover,
.hero-btn:hover {
    background: #b8a88a;
    color: #0d0d0a;
    transform: none;
}

.btn-subtext {
    display: none;
}

/* ============================================================
   Features Section (replaces old Benefits Section)
   ============================================================ */
.features-section {
    background: var(--white);
    padding: 110px 2rem 100px;
}

/* Section title used across multiple sections */
.section-title {
    font-family: 'Hind', sans-serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 10px;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-heading);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    border-top: 1px solid var(--gray-bg);
    padding-top: 25px;
}

.feature-item .feature-number {
    display: block;
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.feature-item .feature-title {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.feature-item .feature-desc {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

/* Legacy benefit classes — kept for any backward compat but hidden content */
.benefits-section,
.benefits-container,
.benefits-cascade,
.benefit-card,
.benefit-badge,
.benefit-body,
.benefit-mini-list {
    /* kept empty for safety */
}

/* ============================================================
   Why AI-Orchestrated Section
   ============================================================ */
.why-section {
    background: var(--white);
    padding: 100px 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-item {
    padding-top: 25px;
    border-top: 1px solid var(--gray-bg);
}

.why-item .why-number {
    display: block;
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.why-item .why-title {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.why-item .why-desc {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

/* ============================================================
   Statement Section (replaces old Experience Section)
   ============================================================ */
.statement-section {
    background: var(--white);
    padding: 120px 2rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.statement-content {
    max-width: 900px;
    margin: 0 auto;
}

.statement-text {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 10px;
    color: var(--text-heading);
    text-transform: uppercase;
    margin-bottom: 30px;
    line-height: 1.4;
}

.statement-body {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--text-body);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Legacy experience classes kept for safety */
.experience-section,
.exp-container,
.exp-left,
.exp-right {
    /* retained as empty stubs */
}

/* ============================================================
   Portfolio Section (replaces old Case Studies Section)
   ============================================================ */
.portfolio-section {
    padding-top: 100px;
    padding-bottom: 80px;
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 40px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.portfolio-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

.portfolio-overlay {
    position: static;
    width: 100%;
    padding: 16px 20px;
    background: rgba(23, 23, 23, 0.85);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.portfolio-overlay .project-name {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: white;
    text-transform: uppercase;
}

.portfolio-overlay .project-desc {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
}

.portfolio-overlay .project-tag {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 5px;
}

/* Legacy case study classes — retained for popup functionality */
.industry-tag {
    display: inline-block;
    padding: 4px 10px;
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: none;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    background: none;
}

.tag-cyan,
.tag-purple,
.tag-pink,
.tag-green,
.tag-yellow {
    background: none;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.case-study-name {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.case-study-desc {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.case-study-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-badge {
    padding: 4px 8px;
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ============================================================
   Case Study Popup — Restyled (functional CSS kept)
   ============================================================ */
.case-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(23, 23, 23, 0.85);
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.case-popup-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.case-popup {
    width: 100%;
    max-width: 1000px;
    background: var(--white);
    margin: 2rem;
    position: relative;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.case-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: var(--black);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.case-popup-close:hover {
    background: var(--text-muted);
}

/* Gallery */
.case-popup-gallery {
    position: relative;
    background: var(--black);
    overflow: hidden;
}

.gallery-viewport {
    overflow: hidden;
    width: 100%;
}

.gallery-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-track img {
    width: 100%;
    flex-shrink: 0;
    height: 500px;
    object-fit: contain;
    background: var(--black);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--black);
    border: 1px solid var(--border-light);
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

.gallery-nav:hover {
    background: var(--white);
}

.gallery-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Popup Body */
.case-popup-body {
    padding: 2.5rem;
}

.case-popup-header {
    margin-bottom: 1.5rem;
}

.case-popup-title {
    font-family: 'Hind', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-top: 0.75rem;
}

.case-popup-desc {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 2rem;
}

.case-popup-meta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.case-popup-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.meta-value {
    font-family: 'Hind', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-heading);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.case-popup-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Speed Comparison in Popup */
.case-popup-speed {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-light);
    margin-bottom: 2rem;
}

.popup-speed-item {
    text-align: center;
    flex: 1;
}

.popup-speed-item .speed-time {
    display: block;
    font-family: 'Hind', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.popup-speed-traditional .speed-time {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--text-muted);
}

.popup-speed-ai .speed-time {
    color: var(--text-heading);
}

.popup-speed-item .speed-type {
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.popup-speed-arrow {
    font-family: 'Hind', sans-serif;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.popup-speed-multiplier {
    text-align: center;
}

.popup-speed-multiplier .speed-time {
    display: block;
    font-family: 'Hind', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-heading);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.popup-speed-multiplier .speed-type {
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================================
   Two-Panel Case Study Layout
   ============================================================ */
.case-popup-left {
    width: 100%;
    overflow-y: auto;
}

.case-popup-right {
    display: none;
}

.case-popup.has-case-study {
    max-width: 1400px;
    display: flex;
    flex-direction: row;
    max-height: 90vh;
    overflow: hidden;
}

.case-popup.has-case-study .case-popup-left {
    width: 50%;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid var(--border-light);
}

.case-popup.has-case-study .case-popup-right {
    display: block;
    width: 50%;
    flex-shrink: 0;
    overflow-y: auto;
    background: var(--white);
}

.case-popup-left-scroll {
    padding: 2.5rem;
}

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

.cs-title {
    font-family: 'Hind', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-top: 0.75rem;
    line-height: 1.2;
}

.cs-subtitle {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.75rem;
}

.case-popup.has-case-study .case-popup-header {
    display: none;
}

/* Metrics Strip */
.cs-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.cs-metric {
    text-align: center;
    padding: 1.25rem 1rem;
    border: 1px solid var(--border-light);
    background: var(--gray-light);
}

.cs-metric:nth-child(1),
.cs-metric:nth-child(2),
.cs-metric:nth-child(3) {
    box-shadow: none;
}

.cs-metric-value {
    display: block;
    font-family: 'Hind', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.1;
}

.cs-metric-label {
    display: block;
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.4rem;
}

/* Accordion */
.cs-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.cs-section {
    border: 1px solid var(--border-light);
    background: var(--gray-light);
    transition: background 0.3s ease;
}

.cs-section.active {
    background: var(--white);
    box-shadow: none;
}

.cs-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    font-family: 'Hind', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-heading);
    text-align: left;
}

.cs-section-icon {
    font-size: 0.65rem;
    display: none;
}

.cs-section-content {
    padding: 0 1.25rem 1.25rem;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-body);
    transition: max-height 0.3s ease;
}

.cs-section-content p {
    margin-bottom: 1rem;
}

.cs-section-content p:last-child {
    margin-bottom: 0;
}

.cs-section-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.cs-section-content li {
    margin-bottom: 0.5rem;
}

.cs-section-content em {
    color: var(--text-muted);
}

.cs-section-content strong {
    color: var(--text-heading);
}

/* Quote Block */
.cs-quote {
    position: relative;
    padding: 2rem 2.5rem;
    background: var(--gray-light);
    color: var(--text-body);
    border: none;
    margin: 0;
}

.cs-quote p {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 1rem;
    color: var(--text-body);
}

.cs-quote cite {
    font-family: 'Hind', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-style: normal;
    color: var(--text-muted);
    display: block;
}

/* View Full Case Study Link */
.view-full-link {
    display: block;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    font-family: 'Hind', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-heading);
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-full-link:hover {
    color: var(--text-muted);
}

/* Portfolio item as anchor tag */
a.portfolio-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Mobile popup panels */
@media (max-width: 900px) {
    .case-popup.has-case-study {
        flex-direction: column;
        max-height: none;
        overflow: visible;
    }

    .case-popup.has-case-study .case-popup-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        overflow-y: visible;
    }

    .case-popup.has-case-study .case-popup-right {
        width: 100%;
        overflow-y: visible;
    }
}

/* ============================================================
   Compliance Section — Clean row layout
   ============================================================ */
.compliance-section {
    background: var(--white);
    padding: 80px 2rem;
    text-align: center;
}

.compliance-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
    max-width: 900px;
    margin: 0 auto;
}

.compliance-item {
    text-align: center;
    padding: 20px 10px;
}

.compliance-abbr {
    display: block;
    font-family: 'Hind', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-heading);
}

.compliance-name {
    display: block;
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Legacy compliance badge classes — stubs retained */
.compliance-wrapper,
.compliance-intro,
.compliance-badges,
.compliance-badge-item,
.badge-abbr,
.badge-full,
.badge-desc {
    /* retained as stubs */
}

/* ============================================================
   Testimonials Section — 3-column static grid layout
   ============================================================ */
.testimonials-section {
    background: var(--gray-light);
    padding: 100px 2rem;
    text-align: center;
}

.testimonials-title {
    font-family: 'Hind', sans-serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 60px;
}

/* Old avatar/switcher classes — retained as stubs so any residual JS refs don't throw */
.avatar-row { display: none; }
.avatar-item { display: none; }
.avatar-item.active { display: none; }
.testimonial-content { display: none; }

/* New 3-column grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Delivery metric badge — shown above the quote */
.testimonial-metric {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-heading);
    border: 1px solid var(--border-dark);
    padding: 5px 12px;
    margin-bottom: 20px;
    background: var(--white);
}

.testimonial-quote {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-body);
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}

.testimonial-author {
    font-family: 'Hind', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-heading);
}

.testimonial-role {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
}

/* Testimonial project tag */
.testimonial-project-tag {
    position: absolute;
    top: -0.75rem;
    right: 1.5rem;
    padding: 4px 10px;
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: none;
    border: 1px solid var(--border-light);
    z-index: 5;
    color: var(--text-muted);
    background: var(--white);
}

/* ============================================================
   Services Section — Grid-based layout
   ============================================================ */
.services-section {
    background: #171717;
    padding: 100px 2rem;
    text-align: center;
}

.services-title {
    font-family: 'Hind', sans-serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.service-item {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Services CTA */
.services-cta {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.services-cta:hover {
    background: white;
    color: #171717;
}

/* Legacy marquee classes — kept for any old HTML remnants */
.services-container,
.services-left,
.services-right,
.services-marquee,
.marquee-content,
.services-desc {
    /* retained as stubs */
}

/* ============================================================
   Standards Inline Row — compact horizontal badges
   ============================================================ */
.standards-inline-section {
    background: var(--white);
    padding: 28px 2rem;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.standards-inline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.standards-inline-label {
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 4px;
}

.standards-inline-badge {
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-sub);
    padding: 4px 10px;
    border: 1px solid var(--border-light);
    background: var(--gray-light);
}

/* ============================================================
   Trust Strip — narrow dark band beneath hero
   ============================================================ */
.trust-strip {
    background: var(--black);
    padding: 22px 2rem;
    border-top: 1px solid #2a2a2a;
}

.trust-strip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-strip-item {
    font-family: 'Hind', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-light);
}

.trust-strip-sep {
    color: var(--accent);
    font-size: 14px;
    line-height: 1;
    user-select: none;
}

@media (max-width: 720px) {
    .trust-strip { padding: 18px 1rem; }
    .trust-strip-row { gap: 6px 12px; }
    .trust-strip-item { font-size: 10.5px; letter-spacing: 1.8px; }
}

/* ============================================================
   Problem Section — "You already know this story"
   ============================================================ */
.problem-section {
    background: var(--gray-light);
    padding: 100px 2rem 90px;
}

.problem-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.problem-headline {
    font-family: 'Hind', sans-serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 10px;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-heading);
    margin-bottom: 60px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 50px;
}

.problem-card {
    border-top: 1px solid var(--border-light);
    padding-top: 25px;
}

.problem-card-title {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 14px;
}

.problem-card-body {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-body);
}

.problem-closer {
    margin-top: 70px;
    text-align: center;
    font-family: 'Hind', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-heading);
}

.problem-closer .accent {
    color: var(--accent);
}

@media (max-width: 820px) {
    .problem-grid { grid-template-columns: 1fr; gap: 30px; }
    .problem-section { padding: 70px 1.25rem 60px; }
    .problem-headline { font-size: 22px; letter-spacing: 6px; margin-bottom: 40px; }
    .problem-closer { font-size: 13px; letter-spacing: 3px; margin-top: 45px; }
}

/* ============================================================
   OneSpark — engine block (extends visual-divider--agents pattern)
   ============================================================ */
.onespark-section {
    background: var(--white);
    padding: 110px 2rem 100px;
    text-align: center;
}

.onespark-inner {
    max-width: 980px;
    margin: 0 auto;
}

.onespark-eyebrow {
    font-family: 'Hind', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.onespark-headline {
    font-family: 'Hind', sans-serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 30px;
}

.onespark-body {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 800px;
    margin: 0 auto 50px;
}

.onespark-diagram {
    margin-top: 30px;
    padding: 50px 0 10px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.onespark-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 8px;
    max-width: 760px;
    margin: 0 auto 30px;
}

.onespark-dot {
    width: 100%;
    aspect-ratio: 1;
    background: var(--border-light);
    border-radius: 50%;
    animation: onespark-pulse 3.6s ease-in-out infinite;
}

@keyframes onespark-pulse {
    0%, 100% { background: var(--border-light); transform: scale(1); }
    50% { background: var(--accent); transform: scale(1.25); }
}

.onespark-diagram-label {
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 18px;
}

@media (max-width: 820px) {
    .onespark-section { padding: 70px 1.25rem 60px; }
    .onespark-headline { font-size: 22px; letter-spacing: 5px; }
    .onespark-body { font-size: 14.5px; }
    .onespark-grid { grid-template-columns: repeat(11, 1fr); gap: 6px; }
}

/* ============================================================
   Not the Right Fit — muted editorial section
   ============================================================ */
.notfit-section {
    background: var(--gray-light);
    padding: 100px 2rem;
}

.notfit-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.notfit-headline {
    font-family: 'Hind', sans-serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 28px;
}

.notfit-intro {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 40px;
}

.notfit-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    text-align: left;
    max-width: 600px;
}

.notfit-list li {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-sub);
    padding: 14px 0 14px 32px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.notfit-list li::before {
    content: "×";
    position: absolute;
    left: 4px;
    top: 12px;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 300;
}

.notfit-closer {
    font-family: 'Hind', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 30px;
}

@media (max-width: 720px) {
    .notfit-section { padding: 70px 1.25rem; }
    .notfit-headline { font-size: 22px; letter-spacing: 6px; }
}

/* ============================================================
   Scope Call Form (Booking) — 10-field layout
   ============================================================ */
.scope-call-section {
    background: var(--gray-light);
    padding: 100px 2rem;
}

.scope-call-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.scope-call-head {
    text-align: center;
    margin-bottom: 60px;
}

.scope-call-headline {
    font-family: 'Hind', sans-serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 20px;
}

.scope-call-subhead {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    max-width: 720px;
    margin: 0 auto;
}

.scope-call-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 50px;
}

.scope-call-form {
    background: var(--white);
    padding: 40px 36px;
    border: 1px solid var(--border-light);
}

.scope-field {
    margin-bottom: 24px;
}

.scope-field label {
    display: block;
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.scope-field input[type="text"],
.scope-field input[type="email"],
.scope-field input[type="tel"],
.scope-field input[type="url"],
.scope-field input[type="date"],
.scope-field select,
.scope-field textarea {
    width: 100%;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    padding: 11px 14px;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--text-heading);
    transition: border-color 0.2s ease;
}

.scope-field input:focus,
.scope-field select:focus,
.scope-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.scope-field textarea { resize: vertical; min-height: 90px; }

.scope-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.scope-budget-note {
    display: none;
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--accent-muted);
    border-left: 3px solid var(--accent);
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-sub);
}

.scope-budget-note.is-shown { display: block; }

.scope-file-trigger {
    display: block;
    padding: 18px 14px;
    border: 1px dashed var(--border-light);
    background: var(--gray-light);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.scope-file-trigger:hover {
    border-color: var(--accent);
    background: var(--white);
}

.scope-file-trigger-text {
    display: block;
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: var(--text-sub);
}

.scope-file-trigger-hint {
    display: block;
    margin-top: 4px;
    font-family: 'Hind', sans-serif;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scope-file-list {
    margin-top: 8px;
    font-family: 'Mulish', sans-serif;
    font-size: 12.5px;
    color: var(--text-sub);
}

.scope-submit {
    margin-top: 12px;
    width: 100%;
    padding: 16px 20px;
    background: var(--black);
    color: var(--white);
    font-family: 'Hind', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.scope-submit:hover { background: var(--accent); }

.scope-trust {
    align-self: start;
    padding-top: 20px;
}

.scope-trust-title {
    font-family: 'Hind', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}

.scope-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scope-trust-list li {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-body);
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.scope-trust-list li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    top: 11px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 880px) {
    .scope-call-grid { grid-template-columns: 1fr; gap: 32px; }
    .scope-call-headline { font-size: 22px; letter-spacing: 5px; }
    .scope-field-row { grid-template-columns: 1fr; gap: 0; }
    .scope-call-form { padding: 28px 22px; }
}

/* ============================================================
   Custom UI: Select (replaces native <select>)
   ============================================================ */
.ui-select {
    position: relative;
    width: 100%;
}

.ui-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--text-heading);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.ui-select-trigger:focus,
.ui-select-trigger:focus-visible {
    outline: none;
    border-color: var(--accent);
}

.ui-select.is-open .ui-select-trigger {
    border-color: var(--accent);
}

.ui-select-value {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-select-value.is-placeholder {
    color: var(--text-muted);
}

.ui-select-arrow {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    display: inline-block;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.ui-select.is-open .ui-select-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.ui-select-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(23, 23, 23, 0.08);
    max-height: 280px;
    overflow-y: auto;
    padding: 6px 0;
}

.ui-select-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    text-align: left;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-heading);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ui-select-option:hover,
.ui-select-option.is-active {
    background: var(--gray-light);
    color: var(--accent);
}

.ui-select-option[aria-selected="true"] {
    color: var(--accent);
    font-weight: 600;
}

/* ============================================================
   Custom UI: Date Picker (replaces native <input type="date">)
   ============================================================ */
.ui-date {
    position: relative;
    width: 100%;
}

.ui-date-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--text-heading);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.ui-date-trigger:focus,
.ui-date-trigger:focus-visible {
    outline: none;
    border-color: var(--accent);
}

.ui-date.is-open .ui-date-trigger {
    border-color: var(--accent);
}

.ui-date-value {
    flex: 1 1 auto;
}

.ui-date-value.is-placeholder {
    color: var(--text-muted);
}

.ui-date-icon {
    flex: 0 0 auto;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.ui-date.is-open .ui-date-icon { color: var(--accent); }

.ui-date-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 50;
    width: 300px;
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(23, 23, 23, 0.08);
    padding: 14px 14px 12px;
}

.ui-date-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ui-date-nav {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-sub);
    cursor: pointer;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ui-date-nav:hover {
    background: var(--gray-light);
    color: var(--accent);
    border-color: var(--accent);
}

.ui-date-month {
    font-family: 'Hind', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-heading);
}

.ui-date-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.ui-date-weekday {
    font-family: 'Hind', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    padding: 6px 0;
}

.ui-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.ui-date-day {
    aspect-ratio: 1;
    background: transparent;
    border: 1px solid transparent;
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: var(--text-heading);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ui-date-day:hover:not(:disabled) {
    background: var(--gray-light);
    color: var(--accent);
}

.ui-date-day.is-today {
    border-color: var(--border-light);
    font-weight: 600;
}

.ui-date-day.is-selected {
    background: var(--accent);
    color: var(--white);
}

.ui-date-day.is-outside {
    color: var(--text-muted);
    opacity: 0.45;
}

.ui-date-day:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.3;
}

.ui-date-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.ui-date-action {
    background: transparent;
    border: none;
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.15s ease;
}

.ui-date-action:hover { color: var(--accent); }

/* ============================================================
   Testimonial LinkedIn link (extends existing testimonial-card)
   ============================================================ */
.testimonial-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.testimonial-linkedin:hover { color: var(--accent); }

.testimonial-linkedin-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
}

/* ============================================================
   Comparison Table Section
   ============================================================ */
.comparison-section {
    background: var(--white);
    padding: 80px 2rem;
    text-align: center;
}

.comparison-table-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: 'Mulish', sans-serif;
}

.comparison-table thead th {
    font-family: 'Hind', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1.25rem 1rem;
    border-bottom: 2px solid var(--border-dark);
    color: var(--text-heading);
    vertical-align: bottom;
}

.comparison-table thead th.comparison-dimension {
    width: 120px;
}

.comparison-subtext {
    display: block;
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
    text-transform: none;
    margin-top: 2px;
}

.comparison-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    line-height: 1.5;
    vertical-align: top;
}

.comparison-table tbody td.comparison-dimension {
    font-family: 'Hind', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-heading);
}

.comparison-table tbody td.comparison-traditional {
    color: var(--text-muted);
}

.comparison-table tbody td.comparison-ai-tools {
    color: var(--text-body);
    font-style: italic;
}

.comparison-table tbody td.comparison-onechair {
    color: var(--text-heading);
    font-weight: 700;
}

@media (max-width: 768px) {
    .comparison-table thead {
        display: none;
    }

    .comparison-table tbody tr {
        display: block;
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border-light);
    }

    .comparison-table tbody td {
        display: block;
        padding: 0.25rem 0;
        border-bottom: none;
    }

    .comparison-table tbody td.comparison-dimension {
        font-size: 13px;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-light);
    }

    .comparison-table tbody td.comparison-traditional::before {
        content: 'TRADITIONAL: ';
        font-family: 'Hind', sans-serif;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 1px;
        color: var(--text-muted);
    }

    .comparison-table tbody td.comparison-ai-tools::before {
        content: 'AI TOOLS: ';
        font-family: 'Hind', sans-serif;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 1px;
        color: var(--text-muted);
    }

    .comparison-table tbody td.comparison-onechair::before {
        content: 'ONECHAIR: ';
        font-family: 'Hind', sans-serif;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 1px;
        color: var(--text-heading);
    }
}

/* ============================================================
   Estimate Section (replaces old CTA Section)
   ============================================================ */
.estimate-section {
    display: none;
    background: var(--white);
    padding: 100px 2rem;
    text-align: center;
}

.estimate-container {
    max-width: 700px;
    margin: 0 auto;
}

.estimate-subtitle {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--text-body);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Legacy cta classes — stubs retained */
.cta-section,
.cta-container,
.cta-title,
.cta-text {
    /* retained as stubs */
}

/* Estimate Form */
.estimate-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.form-group,
.estimate-form .form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-label {
    display: block;
    font-family: 'Hind', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-sub);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.estimate-form textarea,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-bg);
    background: var(--white);
    border-radius: 0;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--text-body);
    transition: border-color 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.estimate-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--text-heading);
    transform: none;
    box-shadow: none;
}

.form-textarea,
.estimate-form textarea,
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.form-input::placeholder,
.form-textarea::placeholder,
.estimate-form textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    font-family: 'Mulish', sans-serif;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px dashed var(--border-light);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    color: var(--text-sub);
    text-align: center;
    gap: 8px;
}

.file-upload-label:hover {
    background: var(--gray-light);
    border-color: var(--text-muted);
}

.file-hint {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.upload-text {
    font-family: 'Hind', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--text-sub);
    margin-bottom: 0.4rem;
}

.upload-hint {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--white);
    margin-bottom: 6px;
    border: 1px solid var(--border-light);
    border-left: 2px solid var(--text-heading);
}

.file-name {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    color: var(--text-body);
    font-weight: 500;
}

.file-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.file-remove:hover {
    color: var(--text-heading);
    transform: none;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 16px 2rem;
    background: transparent;
    color: var(--text-heading);
    border: 2px solid var(--border-dark);
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    cursor: pointer;
    transform: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.submit-button::after {
    display: none;
}

.submit-button:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    transform: none;
}

.submit-button:hover::after {
    display: none;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-icon {
    font-size: 1rem;
}

.form-note {
    text-align: center;
    margin-top: 16px;
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.form-privacy {
    text-align: center;
    margin-top: 10px;
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border-light);
}

/* AI Questions Step */
.ai-questions {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

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

.questions-header h3 {
    font-family: 'Hind', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 10px;
    text-align: center;
}

.questions-header p {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--text-body);
    text-align: center;
}

.questions-form {
    margin-top: 2rem;
}

.question-item {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-left: 2px solid var(--text-heading);
}

.question-label {
    display: block;
    font-family: 'Hind', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.question-hint {
    display: block;
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.question-input,
.question-select {
    width: 100%;
    padding: 12px 14px;
    background: var(--gray-light);
    border: 1px solid var(--border-light);
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--text-heading);
    transition: border-color 0.3s ease;
}

.question-input:focus,
.question-select:focus {
    outline: none;
    border-color: var(--text-heading);
    transform: none;
}

/* Estimate Result */
.estimate-result {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2.5rem;
    background: var(--white);
    color: var(--text-heading);
    border: 1px solid var(--border-light);
    position: relative;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.result-header h3 {
    font-family: 'Hind', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-heading);
}

.result-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.result-close:hover {
    color: var(--text-heading);
    transform: none;
}

.result-content {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-body);
}

.result-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-light);
}

.result-stat:last-child {
    border-bottom: none;
}

.result-label {
    font-family: 'Hind', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.result-value {
    font-family: 'Hind', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-heading);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

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

.result-section h4 {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.architecture-diagram {
    padding: 1.5rem;
    background: var(--gray-light);
    border: 1px solid var(--border-light);
    margin: 1.25rem 0;
    font-family: 'Mulish', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-sub);
}

.user-story {
    padding: 1rem 1.25rem;
    background: var(--gray-light);
    border-left: 2px solid var(--border-dark);
    margin-bottom: 10px;
}

.user-story strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-heading);
    font-family: 'Hind', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
}

.mvp-package {
    padding: 1.5rem;
    background: var(--gray-light);
    border: 1px solid var(--border-light);
    margin: 1.25rem 0;
}

.mvp-package h5 {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.mvp-features {
    list-style: none;
    padding: 0;
}

.mvp-features li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    color: var(--text-body);
}

.mvp-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-weight: 400;
}

.delivery-highlight {
    font-family: 'Hind', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-heading);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: var(--text-heading);
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    border: 2px solid var(--border-dark);
    transform: none;
    transition: all 0.3s ease;
    position: static;
}

.cta-button::after {
    display: none;
}

.cta-button:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    transform: none;
}

.cta-button:hover::after {
    display: none;
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact-section {
    background: var(--gray-light);
    padding: 100px 2rem;
    text-align: center;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    text-align: left;
}

.contact-form .form-group {
    margin-bottom: 25px;
    text-align: left;
}

/* Legacy contact-specific overrides — stubs retained */
.contact-input,
.contact-textarea {
    background: var(--white);
    border: 1px solid var(--border-light);
}

.contact-submit-button {
    background: transparent;
    color: var(--text-heading);
    border: 2px solid var(--border-dark);
}

.contact-submit-button:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.contact-submit-button::after {
    display: none;
}

/* ============================================================
   FAQ Section
   ============================================================ */
.faq-section {
    padding: 100px 2rem;
    background: var(--white);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    font-family: 'Hind', sans-serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 50px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Hind', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-heading);
    text-align: left;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--text-muted);
}

.faq-question:focus {
    outline: none;
}

.faq-question:focus-visible {
    outline: 2px solid var(--text-heading);
    outline-offset: 2px;
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    color: var(--text-muted);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 0 20px;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
}

.faq-answer a {
    color: var(--text-heading);
    text-decoration: underline;
    font-weight: 600;
}

.faq-answer a:hover {
    color: var(--text-muted);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    padding: 60px 2rem;
    background: var(--black);
    color: var(--white);
    text-align: center;
    border-top: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand,
.footer-logo {
    font-family: 'Julius Sans One', serif;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
}

.footer-brand .logo-suffix,
.footer-brand .footer-suffix,
.footer-logo .dev-suffix {
    color: var(--text-on-dark);
    font-family: 'Mulish', sans-serif;
    font-weight: 400;
    font-size: 0.85em;
}

.footer-copy,
.footer-copyright {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    opacity: 1;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 22px;
    margin-top: 8px;
}

.footer-nav a {
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-on-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-social {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.footer-social a {
    color: var(--text-on-dark);
    transition: color 0.2s ease;
    display: inline-flex;
}

.footer-social a:hover { color: var(--accent); }

.footer-social-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.footer-tagline {
    margin-top: 18px;
    font-family: 'Hind', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
}

/* ============================================================
   Section Subtitle — shared helper
   ============================================================ */
.section-subtitle {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    margin-top: -40px;
    margin-bottom: 60px;
}

/* ============================================================
   Choose Your Path Section
   ============================================================ */
.paths-section {
    background: var(--black);
    padding: 100px 2rem;
}

.paths-section .section-title {
    color: var(--text-light);
}

.paths-section .section-subtitle {
    color: rgba(237, 237, 237, 0.5);
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.paths-grid--three {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1280px;
    gap: 30px;
}

@media (max-width: 1024px) {
    .paths-grid--three { grid-template-columns: 1fr; }
}

.path-price {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 10px;
    background: var(--accent-muted);
    color: var(--accent);
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.path-card {
    padding: 40px;
    border-top: 3px solid rgba(237, 237, 237, 0.25);
    display: flex;
    flex-direction: column;
}

.path-number {
    display: block;
    font-family: 'Hind', sans-serif;
    font-size: 48px;
    font-weight: 300;
    color: rgba(237, 237, 237, 0.2);
    margin-bottom: 16px;
    line-height: 1;
}

.path-title {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 12px;
}

.path-audience {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-style: italic;
    color: rgba(237, 237, 237, 0.45);
    margin-bottom: 20px;
}

.path-description {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: rgba(237, 237, 237, 0.7);
    line-height: 1.7;
    margin-bottom: 24px;
}

.path-list {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: rgba(237, 237, 237, 0.7);
    list-style: disc;
    padding-left: 20px;
    line-height: 2;
    margin-bottom: 32px;
}

.btn-outline-dark {
    display: inline-block;
    padding: 15px 32px;
    border: 2px solid rgba(237, 237, 237, 0.4);
    background: transparent;
    color: var(--text-light);
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.path-cta {
    margin-top: auto;
    align-self: flex-start;
}

/* ============================================================
   How We Build / Cortex Section
   ============================================================ */
.cortex-section {
    background: var(--gray-light);
    padding: 100px 2rem;
}

.cortex-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.cortex-step {
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.cortex-number {
    display: block;
    font-family: 'Hind', sans-serif;
    font-size: 36px;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1;
}

.cortex-step-title {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.cortex-step p {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

.cortex-flywheel {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
    margin-top: 48px;
}

/* ============================================================
   How It Works Section
   ============================================================ */
.hiw-section {
    background: var(--gray-light);
    padding: 100px 2rem;
}

.hiw-label {
    display: block;
    font-family: "Hind", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hiw-headline {
    font-family: "Hind", sans-serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 10px;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-heading);
    margin-bottom: 24px;
}

.hiw-subhead {
    font-family: "Mulish", sans-serif;
    font-size: 15px;
    color: var(--text-body);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
    line-height: 1.8;
}

.hiw-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.hiw-grid::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-light);
}

.hiw-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    gap: 0 24px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.hiw-step .hiw-number {
    grid-column: 1;
    grid-row: 1 / -1;
}

.hiw-step .hiw-step-title {
    grid-column: 2;
    grid-row: 1;
}

.hiw-step .hiw-step-desc {
    grid-column: 2;
    grid-row: 2;
    margin-top: 8px;
}

.hiw-step:last-child {
    border-bottom: none;
}

.hiw-number {
    display: block;
    font-family: "Hind", sans-serif;
    font-size: 32px;
    font-weight: 300;
    color: var(--accent-soft);
    line-height: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--gray-light);
    padding: 8px 0;
}

.hiw-step-title {
    font-family: "Hind", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.hiw-step-desc {
    font-family: "Mulish", sans-serif;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

.hiw-cta {
    text-align: center;
    margin-top: 64px;
}

.hiw-cta-text {
    font-family: "Mulish", sans-serif;
    font-size: 15px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ============================================================
   Animate-in — Scroll Observer (used by JS)
   ============================================================ */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .testimonial-card {
        transition: none;
    }

    .testimonial-card:hover {
        transform: none;
    }
}

/* ============================================================
   Responsive — 1024px (Tablet Landscape)
   ============================================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

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

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

    .cortex-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

}


/* ============================================================
   Responsive — 768px (Tablet Portrait / Mobile)
   ============================================================ */
@media (max-width: 768px) {
    /* Header */
    .site-header {
        padding: 16px 20px;
    }

    .header-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .font-toggle {
        margin-right: 8px;
    }

    /* Hero */
    .hero-section {
        padding: 100px 1.5rem 60px;
        min-height: 100svh;
        max-width: 100vw;
        overflow: hidden;
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 42px);
        letter-spacing: 6px;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-brand {
        font-size: 16px;
        letter-spacing: 3px;
    }

    /* Prevent horizontal overflow on mobile */
    .comparison-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        min-width: 600px;
    }

    /* Features */
    .features-section {
        padding: 70px 1.5rem 60px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .feature-item {
        padding: 24px 0;
        border-top: 1px solid var(--gray-bg);
    }

    /* Why */
    .why-section {
        padding: 70px 1.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .why-item {
        padding: 24px 0;
        border-top: 1px solid var(--gray-bg);
    }

    /* Statement */
    .statement-section {
        padding: 70px 1.5rem;
    }

    .statement-text {
        font-size: 28px;
        letter-spacing: 5px;
    }

    /* Choose Your Path */
    .paths-section {
        padding: 70px 1.5rem;
    }

    .paths-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .path-card {
        padding: 30px 0 0;
    }

    .path-cta {
        display: block;
        text-align: center;
    }

    /* How We Build / Cortex */
    .cortex-section {
        padding: 70px 1.5rem;
    }

    .cortex-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cortex-step {
        padding: 24px 0;
        border-top: 1px solid var(--border-light);
    }

    /* How It Works */
    .hiw-section {
        padding: 70px 1.5rem;
    }

    .hiw-step {
        grid-template-columns: 50px 1fr;
        gap: 16px;
        padding: 30px 0;
    }

    .hiw-number {
        font-size: 24px;
    }

    .hiw-grid::before {
        left: 25px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    /* Mobile popup */
    .case-popup {
        margin: 0;
        min-height: 100vh;
        border: none;
        box-shadow: none;
    }

    /* Move close button to bottom-right on mobile for thumb reachability */
    .case-popup-close {
        position: fixed;
        top: auto;
        bottom: 28px;
        right: 24px;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        border-radius: 50%;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
        z-index: 1000;
    }

    .gallery-track img {
        height: 280px;
    }

    .case-popup-body {
        padding: 1.5rem;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    /* Metrics mobile */
    .cs-metrics {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .cs-metric {
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }

    .cs-metric-value {
        font-size: 1.5rem;
        min-width: 70px;
    }

    .cs-metric-label {
        margin-top: 0;
    }

    .cs-section-header {
        padding: 1rem;
        font-size: 12px;
        min-height: 48px;
    }

    .cs-section-content {
        padding: 0 1rem 1rem;
        font-size: 13px;
    }

    .cs-quote {
        padding: 1.5rem;
    }

    .cs-quote p {
        font-size: 14px;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 70px 1.5rem;
    }

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

    .testimonial-quote {
        font-size: 15px;
    }

    /* Services */
    .services-section {
        padding: 70px 1.5rem;
    }

    .services-title {
        font-size: 24px;
        letter-spacing: 6px;
        word-wrap: break-word;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Compliance */
    .compliance-section {
        padding: 60px 1.5rem;
    }

    .compliance-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    /* Estimate */
    .estimate-section {
        padding: 70px 1.5rem;
    }

    /* FAQ */
    .faq-section {
        padding: 70px 1.5rem;
    }

    .faq-title {
        font-size: 24px;
        letter-spacing: 6px;
    }

    .faq-question {
        padding: 16px 0;
        font-size: 14px;
    }

    /* Contact */
    .contact-section {
        padding: 70px 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 40px 1.5rem;
    }

    /* Speed comparison popup mobile */
    .case-popup-speed {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }

    .popup-speed-item .speed-time {
        font-size: 1.25rem;
    }

    .popup-speed-arrow {
        font-size: 1rem;
    }

    .popup-speed-multiplier .speed-time {
        font-size: 1.25rem;
    }
}

/* ============================================================
   Responsive — 480px (Small Mobile)
   ============================================================ */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(24px, 9vw, 36px);
        letter-spacing: 2px;
    }

    .hero-cta,
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero,
    .hero-btn {
        width: 100%;
        text-align: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

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

    .compliance-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .section-title,
    .testimonials-title,
    .services-title,
    .faq-title {
        font-size: 22px;
        letter-spacing: 5px;
    }

    .statement-text {
        font-size: 22px;
        letter-spacing: 5px;
    }
}

/* ============================================================
   Print Optimization
   ============================================================ */
@media print {
    *,
    *::before,
    *::after {
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .why-section * {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .ask-badge,
    .floating-cta,
    .site-header {
        display: none !important;
    }
}

/* ============================================================
   Visual Divider Sections — Full-width photo strips
   ============================================================ */
.visual-divider {
    position: relative;
    width: 100%;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0d0d14;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Dark overlay applied via ::before pseudo-element */
.visual-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 20, 0.75);
    z-index: 1;
}

/* Clients divider — abstract dark particle field / light streams */
.visual-divider--clients {
    background-image: url('https://images.unsplash.com/photo-1762081512133-30202f928bb9?w=1920&q=80&auto=format&fit=crop');
}

/* Process/comparison divider — abstract dark geometric / data flow */
.visual-divider--process {
    background-image: url('https://images.unsplash.com/photo-1604076913837-52ab5f7c1ac4?w=1920&q=80&auto=format&fit=crop');
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
}

.visual-divider--process::before {
    background: rgba(10, 10, 15, 0.75);
}

.visual-divider--agents {
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80&auto=format&fit=crop');
    height: 380px;
}

.visual-divider--agents .visual-divider-stat {
    color: var(--white);
}

.visual-divider--agents .visual-divider-label {
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: none;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
}

.visual-divider-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
}

.visual-divider-stat {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 14px;
}

.visual-divider-label {
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* Mobile: disable parallax (fixed background causes issues on iOS) */
@media (max-width: 768px) {
    .visual-divider {
        height: 220px;
        background-attachment: scroll;
    }

    .visual-divider-stat {
        font-size: clamp(28px, 8vw, 44px);
        letter-spacing: 4px;
    }
}


/* ============================================================
   Iron & Amber Accent System
   ============================================================ */

/* Logo .dev suffix */
.header-logo .dev-suffix { color: var(--accent) !important; }
.footer-logo .dev-suffix { color: var(--accent) !important; }

/* Nav hover */
.header-nav a:hover { color: var(--accent); }
.mobile-menu a:hover { color: var(--accent); }

/* Hero CTA buttons — warm gold palette */
.hero-btn { border-color: #b8a88a; color: #c4b99a; }
.hero-btn:hover { background: #b8a88a; color: #0d0d0a; }

/* How It Works label */
.hiw-label { color: var(--accent); }

/* How It Works step numbers */
.hiw-number { color: var(--accent-soft); }

/* Path section (dark bg) */
.path-number { color: var(--accent-soft); }
.path-card:hover { border-top-color: var(--accent); }

/* Portfolio tags */
.portfolio-overlay .project-tag { color: var(--accent); }

/* Form focus states */
.form-input:focus,
.form-textarea:focus,
.estimate-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.question-input:focus,
.question-select:focus { border-color: var(--accent); }

/* FAQ active state */
.faq-item.active .faq-icon { color: var(--accent); }
.faq-item.active { border-left: 2px solid var(--accent); }

/* CTA / outline buttons */
.btn-outline-dark { border-color: var(--accent); color: var(--accent); }
.btn-outline-dark:hover { background: var(--accent); color: var(--black); border-color: var(--accent); }

/* Cortex/Process step numbers */
.cortex-number { color: var(--accent-soft); }

/* Comparison table — OneChair column */
.comparison-table thead th.comparison-onechair { color: var(--accent); }
.comparison-table tbody td.comparison-onechair { color: var(--accent); font-weight: 700; }

/* Contact form submit button */
.submit-button { border-color: var(--accent); color: var(--accent); }
.submit-button:hover { background: var(--accent); color: var(--black); border-color: var(--accent); }

/* ============================================================
   Social Proof Stats Bar
   ============================================================ */
.stats-bar {
    background: var(--black);
    padding: 60px 24px;
}

.stats-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-value {
    font-family: 'Hind', sans-serif;
    font-size: 32px;
    font-weight: 300;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.stat-label {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .stats-bar-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .stats-bar-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* ============================================================
   Header nav dropdown + expanded mobile menu + footer grid
   ============================================================ */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-trigger {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.5px;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.site-header.scrolled .nav-dropdown-trigger {
    color: var(--text-body);
}

.nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger {
    color: var(--text-muted);
}

.site-header.scrolled .nav-dropdown-trigger:hover,
.site-header.scrolled .nav-dropdown.is-open .nav-dropdown-trigger {
    color: var(--accent);
}

.nav-dropdown-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 0.85em;
    line-height: 1;
}

.nav-dropdown.is-open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 32px rgba(23, 23, 23, 0.08);
    padding: 10px 0;
    z-index: 100;
}

.nav-dropdown-panel a {
    display: block;
    padding: 10px 22px;
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown-panel a:hover {
    color: var(--accent);
    background: var(--gray-light);
}

@media (max-width: 960px) {
    .nav-dropdown,
    .nav-dropdown-trigger,
    .nav-dropdown-panel {
        display: none;
    }
}

/* Mobile menu — collapsible Services group */
.mobile-menu-group {
    display: block;
    width: 100%;
}

.mobile-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Hind', sans-serif;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    line-height: inherit;
}

.mobile-menu-group.is-open .mobile-menu-trigger {
    color: var(--accent);
}

.mobile-menu-trigger span {
    font-family: 'Mulish', sans-serif;
    font-weight: 300;
    font-size: 1.2em;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.mobile-menu-group.is-open .mobile-menu-trigger span {
    transform: rotate(45deg);
}

.mobile-menu-sub {
    margin-top: 18px;
    padding-left: 0;
    border-left: 1px solid var(--border-dark);
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-menu-sublink {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-light);
    text-decoration: none;
    text-transform: none;
    transition: color 0.15s ease;
}

.mobile-menu-sublink:hover {
    color: var(--accent);
}

/* Footer grid — 4-column layout */
.footer {
    padding: 80px 2rem 40px;
    background: var(--black);
    color: var(--white);
    border-top: none;
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 50px;
    border-bottom: 1px solid #2a2a2a;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    color: var(--text-on-dark);
    text-decoration: none;
    transition: color 0.15s ease;
    line-height: 1.5;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col-title {
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    margin: 0 0 6px;
}

.footer-col-brand {
    gap: 20px;
}

.footer-col-brand .footer-logo {
    font-family: 'Julius Sans One', serif;
    font-size: 22px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
}

.footer-col-brand .footer-logo .dev-suffix {
    color: var(--accent);
    font-family: 'Mulish', sans-serif;
    font-weight: 400;
    font-size: 0.85em;
}

.footer-col-brand .footer-tagline {
    margin: 0;
    font-family: 'Hind', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.footer-social a {
    color: var(--text-on-dark);
    display: inline-flex;
    transition: color 0.15s ease;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-social-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.footer-bottom {
    max-width: 1280px;
    margin: 30px auto 0;
    text-align: center;
}

.footer-copyright {
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 900px) {
    .footer { padding: 60px 1.5rem 30px; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        padding-bottom: 36px;
    }
    .footer-col-brand {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }
    .footer-col { text-align: center; align-items: center; }
}

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

/* Path card secondary CTAs + specialty services strip */
.path-ctas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    flex-wrap: wrap;
}

.path-cta-secondary {
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.path-cta-secondary:hover {
    opacity: 0.7;
}

.paths-specialty {
    max-width: 1280px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 36px;
}

.paths-specialty-label {
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}

.paths-specialty-link {
    font-family: 'Hind', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    transition: color 0.15s ease;
}

.paths-specialty-link:hover {
    color: var(--accent);
}

.paths-specialty-link span {
    font-weight: 400;
    color: var(--text-on-dark);
    letter-spacing: 1.5px;
    text-transform: none;
}

@media (max-width: 720px) {
    .paths-specialty {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}
