@charset "utf-8";

    /* CALAMUS STUDIO CORE SYSTEM 
       ==========================
       Tone: Calm, Precise, Confident
    */

    /* 1. KEYFRAMES for Horizontal Flow Animation */
    @keyframes horizontal-flow {
        0% {
            background-position: 0% 0;
        }
        100% {
            background-position: 100% 0;
        }
    }
    
    /* NEW: KEYFRAMES for Scanning Line Effect */
    @keyframes vertical-scan {
        0% { top: -100px; }
        100% { top: calc(100% + 100px); }
    }

    /* 2. KEYFRAMES for Fade-In Effect */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    :root {
        /* Color System */
        --bg-carbon: #0B0B0D;
        --text-titanium: #E5E7EB;
        --text-dim: #888888;
        --accent-gold: #C7A14A;
        --border-subtle: rgba(229, 231, 235, 0.1);
        
        /* Typography */
        --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

        /* Smooth Scrolling */
        scroll-behavior: smooth;
    }

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

    /* Focus State Accessibility Enhancement */
    a:focus, button:focus, input:focus, textarea:focus, select:focus {
        outline: 2px solid var(--accent-gold);
        outline-offset: 4px; 
        border-radius: 2px;
    }

    body {
        /* Base styles */
        color: var(--text-titanium);
        font-family: var(--font-primary);
        line-height: 1.6;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;

        /* --- PURE CSS ANIMATED BACKGROUND SETUP --- */
        background-color: var(--bg-carbon); 
        position: relative; 
        z-index: 1;
    }

    /* 3. THE HORIZONTAL FLOW EFFECT LAYER */
    body::after {
        content: '';
        position: fixed; 
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        
        /* Gold Accent Repeating Linear Gradient - Vertical Lines, flowing horizontally */
        background: repeating-linear-gradient(
            to right, 
            rgba(199, 161, 74, 0.05) 0px, 
            rgba(199, 161, 74, 0.05) 2px,  
            transparent 3px, 
            transparent 50px 
        );
        
        background-size: 100px auto; 
        animation: horizontal-flow 120s linear infinite; 
        
        z-index: -1; 
        pointer-events: none; 
    }

    a {
        text-decoration: none;
        color: inherit;
        transition: color 0.3s ease;
    }

    ul {
        list-style: none;
    }

    /* UTILITIES */
    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 40px;
        position: relative; 
        z-index: 2;
        
        /* Subtle Framing Borders */
        border-left: 1px solid var(--border-subtle);
        border-right: 1px solid var(--border-subtle);

        /* Fade In on Load */
        animation: fadeIn 1s ease-out 0.5s forwards; 
        opacity: 0; 
    }
    
    /* THE VERTICAL CONNECTION LINE */
    .container::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0; 
        width: 1px;
        background-color: var(--accent-gold);
        opacity: 0.2; 
        z-index: 1; 
        pointer-events: none;
    }

    .mono {
        font-family: var(--font-mono);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-dim);
    }

    .accent {
        color: var(--accent-gold);
    }

    .btn {
        display: inline-block;
        border: 1px solid var(--text-titanium);
        padding: 16px 32px;
        font-family: var(--font-mono);
        font-size: 0.85rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: all 0.3s ease;
        margin-top: 20px;
    }

    .btn:hover {
        background-color: var(--text-titanium);
        color: var(--bg-carbon);
        /* Neon Shadow on Hover */
        box-shadow: 0 0 15px rgba(199, 161, 74, 0.4); 
    }
    
    .btn:focus {
        background-color: transparent; 
        color: var(--text-titanium);
    }

 /* =========================================================
   FOUNDRY CTA BUTTON
========================================================= */

button.foundry-cta {
    all: unset;

    display: block;
    max-width: 820px;
    margin: 40px auto 0;

    padding: 40px;
    text-align: center;
    cursor: pointer;

    background: rgba(22, 27, 34, 0.5);
    border: 1px solid var(--accent-gold);
    border-radius: 16px;

    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
}

button.foundry-cta:hover {
    background-color: rgba(199, 161, 74, 0.08);
    transform: translateY(-2px);
}

button.foundry-cta:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}

button.foundry-cta h3 {
    margin-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--accent-gold);
}

button.foundry-cta p {
    margin-bottom: 18px;
    font-size: 1.1rem;
    color: var(--text-titanium);
}

button.foundry-cta .btn {
    display: inline-block;
    margin-top: 6px;
    padding: 10px 18px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

button.foundry-cta:hover .btn {
    background-color: var(--accent-gold);
    color: var(--bg-carbon);
}

/* =========================================================
   MODAL OVERLAY
========================================================= */

.foundry-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: rgba(0, 0, 0, 0.9);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.foundry-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
   MODAL CONTENT
========================================================= */

.foundry-modal-content {
    position: relative;

    width: 90%;
    max-width: 650px;
    padding: 2.5rem;

    background-color: var(--bg-carbon, #0B0B0D);
    color: var(--text-light, #ffffff);

    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);

    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.foundry-modal.active .foundry-modal-content {
    transform: translateY(0);
}

/* =========================================================
   CLOSE BUTTON
========================================================= */

.foundry-close {
    position: absolute;
    top: 14px;
    right: 18px;

    background: none;
    border: none;
    padding: 0;

    font-size: 1.6rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.foundry-close:hover {
    color: #ffffff;
}
/* === HARD MODAL CONTENT SAFETY === */
.foundry-modal-content * {
    color: #ffffff !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.foundry-modal-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.foundry-modal-content p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.foundry-modal-content ul {
    padding-left: 1.2rem;
}

.foundry-modal-content li {
    margin-bottom: 0.5rem;
}

    .grid-line {
        border-bottom: 1px solid var(--border-subtle);
    }

    /* NAVIGATION */
    nav {
        padding: 30px 0; 
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        /* Dashed Divider */
        border-bottom: 1px dashed var(--border-subtle); 
    }

    .menu-toggle {
        display: none;
        background: transparent;
        border: 1px solid var(--border-subtle);
        color: var(--text-dim);
        font-family: var(--font-mono);
        font-size: 0.85rem;
        padding: 10px 15px;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

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

    /* LOGO SIZE CORRECTION */
    .logo-img {
        height: 18px; /* Corrected desktop size */
        width: auto; 
        display: block; 
    }

    .nav-links {
        display: flex;
        gap: 40px;
    }

    /* Accent Underline Style */
    .nav-links a {
        font-family: var(--font-mono);
        font-size: 0.85rem;
        color: var(--text-dim);
        position: relative; 
        padding-bottom: 5px; 
        transition: color 0.3s ease;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: 0;
        left: 0;
        background-color: var(--accent-gold);
        transition: width 0.3s ease; 
    }

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

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

    /* HERO SECTION */
    .hero {
        padding: 200px 0 140px; 
        max-width: 1000px;
    }

    .hero h1 {
        font-size: 5.5rem; 
        line-height: 1;
        font-weight: 500;
        letter-spacing: -3px; 
        margin-bottom: 40px;
        
        /* Stroked Text Effect */
        -webkit-text-stroke: 0.4px var(--text-titanium);
        color: transparent; 
        text-shadow: 0 0 5px rgba(199, 161, 74, 0.2); 
    }
    
    .hero h1 .accent {
        color: var(--accent-gold); 
        -webkit-text-stroke: none;
        text-shadow: none;
    }

    .hero-sub {
        font-size: 1.5rem;
        color: var(--text-dim);
        max-width: 600px;
        margin-bottom: 60px;
        font-weight: 300;
    }

    /* AUTHORITY BAR */
    .authority-bar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        border-top: 1px solid var(--border-subtle);
        border-bottom: 1px solid var(--border-subtle);
    }

    .stat-item {
        font-family: var(--font-mono);
        font-size: 0.9rem;
        color: var(--text-dim);
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 30px 0; 
    }

    .stat-item::before {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        background-color: var(--accent-gold);
        border-radius: 50%; 
    }

    /* EXPERTISE MATRIX */
    .expertise-matrix {
        padding: 80px 0;
        /* Dashed Divider */
        border-bottom: 1px dashed var(--border-subtle); 
        
        /* Setup for Scanning Line Effect */
        position: relative; 
        overflow: hidden; 
    }
    
    /* SCANNING LINE PSEUDO-ELEMENT */
    .expertise-matrix::before {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 100px; 
        pointer-events: none;
        z-index: 10;
        background: linear-gradient(
            to bottom,
            transparent,
            rgba(199, 161, 74, 0.15) 50%,
            transparent
        );
        animation: vertical-scan 10s linear infinite; 
    }

    .expertise-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        margin-top: 40px;
    }

    .expertise-category h4 {
        color: var(--accent-gold);
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .expertise-category ul {
        list-style: none;
    }

    .expertise-category li {
        font-family: var(--font-mono);
        font-size: 0.8rem;
        color: var(--text-dim);
        margin-bottom: 5px;
    }

    /* NEW: CALIBRATION PROCESS SECTION */
    .calibration-process {
        padding: 100px 0;
        /* Dashed Divider */
        border-bottom: 1px dashed var(--border-subtle);
    }
    
    .calibration-process h2 {
        font-size: 3rem;
        font-weight: 500;
        letter-spacing: -1px;
        margin-bottom: 60px;
    }

    .process-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        border-top: 1px solid var(--border-subtle);
    }

    .process-step {
        padding-top: 30px;
    }

    .process-num {
        font-family: var(--font-mono);
        color: var(--accent-gold);
        font-size: 2.5rem;
        font-weight: 600;
        line-height: 1;
        margin-bottom: 15px;
    }

    .process-step h3 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .process-step p {
        color: var(--text-dim);
        font-size: 0.95rem;
    }

    /* NEW: TECHNICAL MANDATE SECTION */
    .technical-mandate {
        padding: 80px 0;
        /* Dashed Divider */
        border-bottom: 1px dashed var(--border-subtle);
    }

    .mandate-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        border-top: 1px solid var(--border-subtle);
        padding-top: 30px;
    }

    .mandate-item {
        font-family: var(--font-mono);
        font-size: 0.9rem;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .mandate-item span:first-child {
        color: var(--text-dim);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .mandate-item span:last-child {
        color: var(--text-titanium);
        font-size: 1rem;
        font-weight: 500;
    }
    .mandate-item .accent {
        font-size: 1.2rem;
        font-weight: 700;
    }
    
    /* PHILOSOPHY */
    .philosophy {
        padding: 160px 0;
        text-align: left; 
    }

    .philosophy blockquote {
        font-size: 3rem;
        line-height: 1.2;
        letter-spacing: -1px;
        color: var(--text-titanium);
        max-width: 900px;
    }

    .philosophy cite {
        display: block;
        margin-top: 30px;
        font-style: normal;
    }

    /* SERVICES GRID */
    .services-section {
        padding: 100px 0;
    }

    .section-header {
        margin-bottom: 60px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-top: 1px solid var(--border-subtle);
        border-left: 1px solid var(--border-subtle);
    }

    /* Service Card Content Alignment Refinement */
    .service-card {
        padding: 60px;
        border-right: 1px solid var(--border-subtle);
        border-bottom: 1px solid var(--border-subtle);
        transition: all 0.3s ease, transform 0.4s ease, box-shadow 0.4s ease; 
        position: relative;
        overflow: hidden; 
        
        display: flex;
        flex-direction: column;
        justify-content: space-between; 
        min-height: 350px; 
    }

    .service-card:hover {
        /* Background Image Hover (Requires 'images/background.png') */
        background-image: linear-gradient(rgba(11, 11, 13, 0.7), rgba(11, 11, 13, 0.7)), url('images/background.png');
        background-size: cover;
        background-position: center;
        border-color: transparent; 

        /* Hover Lift Effect */
        transform: translateY(-5px) scale(1.005);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
        border-color: var(--accent-gold);
    }

    .service-num {
        color: var(--accent-gold);
        margin-bottom: 20px;
        display: block;
    }
    
    .card-content-wrapper { 
        /* No styles needed here, just a grouping container */
    }

    .service-card h3 {
        font-size: 2rem;
        margin-bottom: 20px;
        font-weight: 400;
        letter-spacing: -0.5px;
    }

    .service-card p {
        color: var(--text-dim);
        max-width: 400px;
    }
    
    

   
    .challenge p, .strategy p {
        color: var(--text-dim);
        margin-bottom: 20px;
    }

    .strategy ul {
        list-style-type: none; 
    }

    .strategy li {
        font-family: var(--font-primary);
        font-size: 1rem;
        color: var(--text-titanium);
        line-height: 1.8;
        position: relative;
        padding-left: 20px;
    }

    .strategy li::before {
        content: '→';
        position: absolute;
        left: 0;
        color: var(--accent-gold);
    }

    .results {
        padding: 20px 0 0;
    }

    .metric-box {
        margin-top: 15px;
        padding: 25px;
        border: 1px solid var(--accent-gold);
        background-color: rgba(199, 161, 74, 0.08); 


        margin-bottom: 20px;
    }

    .metric-box h4 {
        font-family: var(--font-mono);
        color: var(--accent-gold);
        margin-bottom: 5px;
        font-size: 0.8rem;
        text-transform: uppercase;
    }

    .metric-box p {
        font-size: 2.2rem;
        font-weight: 700;
        line-height: 1.1;
        color: var(--text-titanium);
    }
    .metric-box {
    position: relative;
}

.metric-box .count-target {
    display: inline-block;
    position: relative;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    opacity: 0.85;
}

/* underline trace */
.metric-box .count-target::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(.16,1,.3,1);
}

/* hover intent */
.metric-box:hover .count-target {
    opacity: 1;
    transform: translateY(-1px);
}

.metric-box:hover .count-target::after {
    width: 100%;
}

    /* ENDORSEMENTS SECTION */
    .endorsements {
        padding: 100px 0;
        /* Dashed Divider */
        border-bottom: 1px dashed var(--border-subtle);
    }

    .endorsements h2 {
        margin-bottom: 60px;
        font-size: 2.5rem;
        font-weight: 500;
    }

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

    .testimonial-card {
        border-left: 1px solid var(--border-subtle);
        padding-left: 25px;
    }

    .testimonial-card blockquote {
        font-size: 1.25rem;
        line-height: 1.5;
        color: var(--text-titanium);
        margin-bottom: 15px;
        font-weight: 300;
    }

    .testimonial-card cite {
        display: block;
        font-style: normal;
        font-family: var(--font-mono);
        font-size: 0.8rem;
        color: var(--accent-gold);
        text-transform: uppercase;
    }
    
    /* PROJECTS SECTION */
    .projects-section {
        /* ... background styles ... */
        padding: 120px 0; 
        /* Dashed Divider */
        border-bottom: 1px dashed var(--border-subtle);
    }

    .projects-section h2 {
        font-size: 3rem; 
        font-weight: 500;
        text-align: center;
        margin-bottom: 20px;
        letter-spacing: -1px;
    }

    .projects-section .intro-text {
        text-align: center;
        color: var(--text-dim);
        max-width: 800px;
        margin: 0 auto 60px; 
        font-size: 1.1rem;
    }

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

    .project-card {
        background-color: rgba(22, 27, 34, 0.8); 
        border: 1px solid var(--border-subtle);
        padding: 25px;
        transition: all 0.3s ease, transform 0.4s ease, box-shadow 0.4s ease; 
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow: hidden;
    }

    .project-card:hover {
        border-color: var(--accent-gold);
        box-shadow: 0 4px 20px rgba(199, 161, 74, 0.15);
        /* Hover Lift Effect */
        transform: translateY(-5px);
    }

    .project-img {
        width: 100%;
        height: 140px; 
        background-color: var(--bg-carbon); 
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .project-img img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }

    .project-card:hover .project-img img {
        opacity: 1;
    }

    .project-category {
        font-family: var(--font-mono);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .project-card h3 {
        font-size: 1.3rem;
        font-weight: 600;
        margin-top: 5px;
        margin-bottom: 10px;
        color: var(--text-titanium);
    }

    .project-card ul {
        list-style: none;
        padding: 0;
        font-size: 0.9rem;
        color: var(--text-dim);
        line-height: 1.5;
    }

    .project-card li {
        position: relative;
        padding-left: 15px;
    }

    .project-card li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: var(--accent-gold);
    }
    /* END PROJECTS SECTION STYLING */


    /* REVISED ENGAGEMENT MODEL STYLING */
    .engagement-model {
        padding: 120px 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .engagement-model-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 60px;
    }

    .engagement-model-header h2 {
        font-size: 3rem; 
        line-height: 1.2;
        letter-spacing: -1px;
        font-weight: 500;
    }

    .engagement-model-header .mono {
        font-size: 1rem;
        color: var(--accent-gold);
    }

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

    .engagement-pillar {
        padding: 30px;
        border: 1px solid var(--border-subtle);
        background-color: rgba(22, 27, 34, 0.5); 
        transition: all 0.3s ease, transform 0.4s ease, box-shadow 0.4s ease; 
    }

    .engagement-pillar:hover {
        border-color: var(--accent-gold);
        box-shadow: 0 4px 15px rgba(199, 161, 74, 0.1);
        /* Hover Lift Effect */
        transform: translateY(-5px);
    }

    .pillar-icon {
        font-size: 2rem;
        color: var(--accent-gold);
        margin-bottom: 15px;
        display: block;
        /* Neon Shadow on Icon */
        text-shadow: 0 0 8px rgba(199, 161, 74, 0.6);
    }

    .engagement-pillar h3 {
        font-family: var(--font-mono);
        font-size: 1rem;
        text-transform: uppercase;
        color: var(--text-titanium);
        margin-bottom: 10px;
        letter-spacing: 0.5px;
    }

    .engagement-pillar p {
        color: var(--text-dim);
        font-size: 0.95rem;
    }

    .warning-box {
        margin-top: 60px;
        padding: 20px 30px;
        border: 1px solid var(--accent-gold);
        background-color: rgba(199, 161, 74, 0.05);
        display: inline-block;
    }

    .warning-box p {
        font-family: var(--font-mono);
        color: var(--accent-gold);
    }
    /* END ENGAGEMENT MODEL STYLING */


    /* REVISED FOOTER STYLING */
    footer {
        padding: 100px 0 60px; 
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr; 
        gap: 120px; 
    }

    .footer-grid h2 {
        font-size: 3.5rem; 
        line-height: 1;
        letter-spacing: -1.5px;
        font-weight: 600;
    }

    .contact-form {
        padding-top: 20px; 
    }

   
/* =========================================================
   AI-ONLY / NON-VISUAL CONTENT
   Visible to search engines and AI systems
   Hidden from human users
========================================================= */

.ai-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
    white-space: nowrap;
    border: 0;
}
