/* ============================================ 
   CASE STUDY THEME SYSTEM (Gold Standard) 
   ============================================ */ 

:root { 
    /* --- LIGHT MODE (Default - Warm Editorial) --- */ 
    --bg-primary: #F4F1ED; 
    --bg-secondary: #EAE6E1; 
    --bg-tertiary: #FFFFFF; 
    --text-primary: #121212; 
    --text-secondary: #555555; 
    --border-color: rgba(0,0,0,0.1); 
    --card-bg: #FFFFFF; 
    --hero-overlay: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.95)); 
    
    /* Brand Accents */ 
    --coral-accent: #FF6B6B; 
    --teal-accent: #2ED3C6; 
    
    /* Spacing */ 
    --container-width: 1200px; 
    --header-height: 64px; 
} 

[data-theme="dark"] { 
    /* --- DARK MODE (Immersive) --- */ 
    --bg-primary: #050505; 
    --bg-secondary: #111111; 
    --bg-tertiary: #1A1A1A; 
    --text-primary: #F5F5F5; 
    --text-secondary: #A0A0A0; 
    --border-color: rgba(255,255,255,0.1); 
    --card-bg: #1A1A1A; 
    --hero-overlay: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.9)); 
} 

/* --- CORE LAYOUT --- */ 
body { 
    background-color: var(--bg-primary); 
    color: var(--text-primary); 
    font-family: 'Inter', sans-serif; 
    transition: background-color 0.3s ease, color 0.3s ease; 
} 

.container { 
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 2rem; 
} 

/* --- TYPOGRAPHY --- */ 
h1, h2, h3 { font-family: 'Big Shoulders Display', sans-serif; } 

h2 { 
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
    margin-bottom: 2rem; 
    color: var(--text-primary); 
} 

p { 
    font-size: 1.125rem; 
    line-height: 1.7; 
    color: var(--text-secondary); 
    margin-bottom: 1.5rem; 
} 

/* --- HERO SECTION --- */ 
.case-hero { 
    position: relative; 
    min-height: 80vh; 
    display: flex; 
    align-items: center; 
    background-size: cover; 
    background-position: center; 
} 
/* Overlay logic to ensure text readability in both modes */ 
.case-hero::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: var(--hero-overlay); 
    z-index: 1; 
} 
.case-hero > .container { position: relative; z-index: 2; } 

/* --- SECTIONS --- */ 
.section-alt { background-color: var(--bg-secondary); padding: 6rem 0; } 
.section-base { background-color: var(--bg-primary); padding: 6rem 0; } 

/* --- GRID SYSTEMS (Mobile Optimized) --- */ 
.two-column { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: center; 
} 

.video-grid, .metrics-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
} 

/* --- CARDS --- */ 
.video-card, .metric-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    padding: 2rem; 
    transition: transform 0.3s ease; 
} 
.video-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--coral-accent); 
} 

/* --- MOBILE FIXES --- */ 
@media (max-width: 900px) { 
    .two-column { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
    } 
    .case-hero h1 { font-size: 3rem; } 
    .container { padding: 0 1.5rem; } 
}

/* --- PORTFOLIO STANDARD FOOTER --- */ 
.portfolio-footer { 
    background: #050505; 
    padding: 4rem 2rem 2rem; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    color: white; 
} 
.footer-grid-portfolio { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 3rem; 
    max-width: 1400px; 
    margin: 0 auto; 
} 
.pf-brand img { height: 32px; opacity: 0.9; margin-bottom: 1rem; } 
.pf-tagline { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.6; max-width: 300px; margin-bottom: 2rem; } 
.pf-social { display: flex; gap: 1rem; } 
.pf-col h4 { font-family: 'Big Shoulders Display'; font-size: 1rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); text-transform: uppercase; margin-bottom: 1.5rem; } 
.pf-link { display: block; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 0.8rem; transition: 0.2s; } 
.pf-link:hover { color: white; transform: translateX(5px); } 
.pf-status { background: rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); } 
.pf-copyright { text-align: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.3); font-size: 0.8rem; } 

/* --- PORTFOLIO SUBNAV --- */ 
.portfolio-subnav { 
    background: rgba(255,255,255,0.95); 
    border-bottom: 1px solid rgba(0,0,0,0.1); 
    padding: 0.8rem 0; 
    position: sticky; 
    top: 64px; /* Below main header */ 
    z-index: 90; 
} 
[data-theme="dark"] .portfolio-subnav { background: #111111; border-color: rgba(255,255,255,0.1); } 

.subnav-links { display: flex; justify-content: center; gap: 2rem; max-width: 1200px; margin: 0 auto; } 
.subnav-item { text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; } 
.subnav-item:hover { color: var(--coral-accent); } 
.subnav-item.active { color: var(--text-primary); font-weight: 700; } 

/* Mobile Fix */ 
@media (max-width: 768px) { 
    .footer-grid-portfolio { grid-template-columns: 1fr; text-align: center; } 
    .pf-social { justify-content: center; } 
    .portfolio-subnav { display: none; } /* Hide subnav on mobile, relies on drawer */ 
}