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

body {
    background-color: #121212; /* Premium Apple-style dark gray */
    color: #e5e5ea;           /* TIER 2: Highly legible primary body color */
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- GLOBAL HEADER --- */
.site-header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-left-spacer {
    display: block;
}

.header-logo {
    font-size: 1.5rem;        /* SIZE 2: Header Bucket */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #ffffff;           /* TIER 1: Pure White Highlight */
    text-decoration: none;
    text-align: center;
    justify-self: center;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.header-logo:hover {
    opacity: 0.7;
}

.header-nav {
    display: flex;
    gap: 40px;
    justify-self: flex-end;
}

.header-link {
    font-size: 0.95rem;       /* SIZE 4: Unified Body Bucket */
    font-weight: 300;
    color: #aeaeb2;           /* TIER 3: Secondary navigation */
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-link:hover {
    color: #ffffff;           /* TIER 1: Hover Highlight */
}

/* --- HERO SECTION --- */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 220px 40px 120px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-statement {
    font-size: 2.4rem;        /* SIZE 1: Display Bucket (Desktop Master) */
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -0.03em;
    color: #ffffff;           /* TIER 1: Upgraded from off-white for massive impact */
    max-width: 1200px;
    margin-bottom: 40px;
}

.hero-statement span {
    color: #636366;           /* TIER 4: Low-contrast stylistic spans */
}

.cta-text {
    font-size: 0.95rem;       /* SIZE 4: Unified Body Bucket */
    color: #aeaeb2;           /* TIER 3: Clear, visible secondary text */
    text-decoration: none;
    letter-spacing: 0.05em;
    margin-top: 20px;
    display: inline-block;
    transition: color 0.3s ease;
}

.cta-text:hover {
    color: #ffffff;           /* TIER 1: Hover Highlight */
}

/* --- CAPABILITIES SECTION --- */
.capabilities-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 100px 40px;
}

.section-header {
    margin-bottom: 80px;
    border-bottom: 1px solid #1c1c1e;
    padding-bottom: 20px;
}

.section-label {
    font-size: 0.8rem;        /* SIZE 5: Label / Utility Bucket */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #aeaeb2;           /* TIER 3: Upgraded so labels don't disappear */
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 1.5rem;        /* SIZE 2: Header Bucket */
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #ffffff;           /* TIER 1: Crisp page headers */
}

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

.capability-card {
    display: flex;
    flex-direction: column;
}

.capability-num {
    font-size: 0.8rem;        /* SIZE 5: Label / Utility Bucket */
    font-family: monospace;
    color: #636366;           /* TIER 4: Muted system indicator */
    margin-bottom: 24px;
}

.capability-title {
    font-size: 1.5rem;        /* SIZE 2: Header Bucket (Perfect grid alignment) */
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #ffffff;           /* TIER 1: Cards read clearly instantly */
    margin-bottom: 16px;
}

.capability-description {
    font-size: 0.95rem;       /* SIZE 4: Unified Body Bucket */
    font-weight: 300;
    color: #e5e5ea;           /* TIER 2: Clean, legible reading text */
    line-height: 1.6;
}

/* --- BRAND CLIENTS SECTION --- */
.clients-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 100px 40px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 6), 1fr);
    gap: 40px;
    align-items: center;
    margin-top: 60px;
}

.client-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.client-logo img {
    max-width: 140px;
    max-height: 45px;
    width: auto;
    height: auto;
    filter: brightness(0) invert(0.5);
    opacity: 0.75;
    transition: filter 0.4s ease-out, opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.client-logo img:hover {
    filter: brightness(0) invert(1);
    opacity: 1;
    transform: scale(1.08);
}

/* --- CONTACT SECTION --- */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 160px 40px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info p {
    font-size: 1.1rem;        /* SIZE 3: Sub-heading / Lead Bucket */
    color: #e5e5ea;           /* TIER 2: Left column prompt text is sharp */
    max-width: 400px;
    font-weight: 300;
    margin-bottom: 24px;
}

.direct-email {
    font-size: 0.95rem;       /* SIZE 4: Unified Body Bucket */
    font-family: monospace;
    color: #ffffff;           /* TIER 1: Hyperlinks stand out */
    text-decoration: none;
    border-bottom: 1px solid #3a3a3c;
    padding-bottom: 4px;
    display: inline-block;
    transition: border-color 0.3s ease;
}

.direct-email:hover {
    border-color: #ffffff;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;        /* SIZE 5: Label / Utility Bucket */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #aeaeb2;           /* TIER 3: Inputs remain cleanly labeled */
}

.form-group input,
.form-group textarea {
    background-color: #121212;
    border: 1px solid #1c1c1e;
    color: #ffffff;           /* TIER 1: Typing text is maximum contrast */
    padding: 16px;
    font-size: 0.95rem;       /* SIZE 4: Unified Body Bucket */
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #48484a;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #ffffff;
    color: #000000;           /* Keep functional black for stark contrast against white button background */
    border: none;
    padding: 16px 32px;
    font-size: 0.95rem;       /* SIZE 4: Unified Body Bucket */
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #e5e5ea;
}

/* --- FOOTER SECTION --- */
.site-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    border-top: 1px solid #1c1c1e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    font-size: 0.8rem;        /* SIZE 5: Label / Utility Bucket */
    color: #636366;           /* TIER 4: Copyright strings match standard utility treatments */
    font-weight: 300;
    line-height: 1.8;
}

.footer-right {
    font-size: 0.8rem;        /* SIZE 5: Label / Utility Bucket */
    font-weight: 300;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-link {
    color: #aeaeb2;           /* TIER 3: Footer paths are uniform with header paths */
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.8;
}

.footer-link:hover {
    color: #ffffff;           /* TIER 1: Hover Highlight */
}

/* --- LINKEDIN VECTOR COLOR REFINEMENTS --- */
.linkedin-icon {
    display: flex;
    align-items: center;
}

.linkedin-icon svg {
    fill: #aeaeb2 !important;  /* TIER 3: Vector fills match text links */
    transition: fill 0.3s ease;
}

.linkedin-icon:hover svg {
    fill: #ffffff !important;  /* TIER 1: Hover Highlight */
}

/* Responsive Design */
@media (max-width: 900px) {
    .header-container {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 40px 24px;
    }
    
    .header-logo {
        font-size: 1.5rem;    /* Kept uniform with header sizes */
        letter-spacing: 0.2em;
    }
    
    .header-nav {
        justify-content: center;
        gap: 32px;
    }

    .hero-section { padding: 180px 24px 60px 24px; }
    
    .hero-statement { 
        font-size: 1.8rem;    /* SIZE 1 Override: Display Bucket scales cleanly on mobile */
    }
    
    .capabilities-grid { grid-template-columns: 1fr; gap: 60px; }
    .capabilities-section { padding: 60px 24px 60px 24px; }
    
    .clients-section { padding: 60px 24px 60px 24px; }
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        margin-top: 40px;
    }
    
    .contact-section { padding: 60px 24px 100px 24px; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .submit-btn { align-self: stretch; text-align: center; }
    
    .site-footer {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 32px;
        padding: 60px 24px;
    }
    
    .footer-nav {
        gap: 32px;
    }
}
