:root {
    /* Brand Colors - Cloud Dancer / Editorial Palette */
    --bg-primary: #F4F1ED;  /* Warm Paper Tone */
    --bg-secondary: #EAE6E1; /* Slightly darker warm tone */
    --card-bg: #FFFFFF;      /* Pure white cards pop against the beige */
    
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --border-color: #e5e5e5;
    --coral-accent: #F96F6E;
    --teal-accent: #2ED3C6;
    --nav-bg: rgba(255, 255, 255, 0.9);
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --nav-bg: rgba(10, 10, 10, 0.9);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, .lg-logo {
    font-family: 'Big Shoulders Display', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- HEADER & NAV --- */
.lg-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.lg-site-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lg-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.lg-main-nav {
    display: flex;
    gap: 2rem;
}

/* --- GLOBAL NAV LINKS --- */ 
.lg-nav-link { 
    text-decoration: none; 
    color: #121212; /* Default Light Mode Text */ 
    font-family: 'Inter', sans-serif; 
    font-weight: 500; 
    font-size: 0.9rem; 
    letter-spacing: 0.02em; 
    opacity: 0.6; 
    transition: opacity 0.2s ease; 
    position: relative; /* Needed for the underline */ 
} 

/* Hover & Active States */ 
.lg-nav-link:hover, 
.lg-nav-link.is-active { 
    opacity: 1; 
    color: #121212; /* FORCE Text to stay Black in light mode */ 
} 

/* The Underline Animation */ 
.lg-nav-link::after { 
    content: ""; 
    position: absolute; 
    left: 0; 
    right: 0; 
    bottom: -6px; /* Spacing below text */ 
    height: 2px; 
    border-radius: 999px; 
    background: var(--coral-accent); /* The Coral Line */ 
    transform: scaleX(0); 
    transform-origin: left; 
    transition: transform 0.2s ease; 
} 

/* Show underline on Hover AND Active */ 
.lg-nav-link:hover::after, 
.lg-nav-link.is-active::after { 
    transform: scaleX(1); 
} 

/* --- DARK MODE NAV TEXT FIX --- */ 
[data-theme="dark"] .lg-nav-link { 
    color: #ffffff; /* Text becomes White in dark mode */ 
} 
[data-theme="dark"] .lg-nav-link:hover, 
[data-theme="dark"] .lg-nav-link.is-active { 
    color: #ffffff; /* FORCE Text to stay White in dark mode */ 
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* --- CONTEXT BAR --- */
.lg-context-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    font-size: 0.85rem;
}

.breadcrumb-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: var(--coral-accent);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--border-color);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 2000;
    padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.is-open {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-global-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.mobile-nav-link {
    font-family: 'Big Shoulders Display', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
}

.mobile-sub-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-sub-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.mobile-sub-link {
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--text-secondary);
}

.mobile-sub-current {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--coral-accent);
}


/* --- THEME TOGGLE --- */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--coral-accent);
    color: var(--coral-accent);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

[data-theme="light"] .moon-icon,
[data-theme="dark"] .sun-icon {
    display: none;
}

/* --- HERO SECTION --- */
.article-hero-modular {
    padding: var(--space-lg) 0 2rem; /* Reduced bottom padding */
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.article-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--teal-accent);
    margin-bottom: 1.5rem;
}

.eyebrow-sep { margin: 0 0.5rem; color: var(--border-color); }

.article-hero-modular h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.article-byline-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-illustration {
    max-width: 1000px;
    margin: 3rem auto 0; /* Removed negative margin to prevent border overlap */
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- MAIN LAYOUT (Grid) --- */
.article-layout {
    display: grid;
    grid-template-columns: 300px 1fr; /* Fixed Sidebar + Fluid Content */
    gap: 4rem;
    max-width: 1200px;
    margin: 4rem auto 0; /* Standard spacing */
    padding: 0 2rem;
}

/* --- SIDEBAR --- */
.sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.principles-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
}

.principles-title {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.principle-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.principle-link:hover, .principle-link.active {
    color: var(--coral-accent);
    font-weight: 600;
}

/* --- MAIN CONTENT --- */
.main-content {
    max-width: 700px; /* Optimal reading width */
}

/* --- GOLD STANDARD TYPOGRAPHY --- */

/* 1. The Reading Tunnel (Margins) */
.reading-content {
    max-width: 680px; /* Limits width to create 15-20% side margins */
    margin: 0 auto;   /* Centers the column */
    padding: 0 1rem;
}

/* 2. Breathing Room (Line Height & Spacing) */
.reading-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;       /* 18-19px equivalent */
    line-height: 1.8;         /* The "Airy" feel */
    margin-bottom: 2rem;      /* ~32px gap between paragraphs */
    color: var(--text-primary);
    letter-spacing: -0.01em;
    font-weight: 400;
}

/* 3. Visual Hierarchy (Headings) */
.reading-content h2,
.reading-content h3 {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-top: 4.5rem;       /* Huge breath before new sections */
    margin-bottom: 1.5rem;
}

.reading-content h2 { font-size: 2.75rem; } /* Event-sized headlines */
.reading-content h3 { font-size: 2rem; }

/* --- COMPONENTS --- */

/* Inset Card (Statement/Quote) */
.inset-card {
    background: var(--bg-secondary);
    border-left: 4px solid var(--text-primary);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
}

.inset-card strong {
    display: block;
    font-family: 'Big Shoulders Display', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.inset-card p {
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Quote Card (Centered Pull Quote) */
.quote-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 4rem 0;
    text-align: center;
    font-family: 'Big Shoulders Display', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.quote-card::before {
    content: "“";
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 0.5;
    color: var(--coral-accent);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

[data-theme="dark"] .quote-card {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* 4. Image Real Estate */
.visual-break {
    width: 100%;
    max-width: 100%; /* Let images fill the column width */
    margin: 4rem 0;  /* Vertical space around art */
}

.visual-break img {
    display: block;
    max-width: 100%; /* fit within the constrained parent */
    height: auto;
    max-height: 500px; /* Prevent vertical scrolling fatigue */
    width: auto; /* Allow width to shrink if height hits max */
    
    /* Premium Image Styling */
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.visual-break video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- ELEGANT CAPTIONS --- */
.visual-break .caption {
    /* Strip any background/box styling */
    background: transparent;
    border: none;
    padding: 0;
    
    /* Typography */
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
    max-width: 80%; /* Don't let caption span wider than image feel */
    line-height: 1.5;
}

/* Dark Mode Adjustments for Art */
[data-theme="dark"] .visual-break img {
    opacity: 0.9;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* --- COMPONENT: Interactive Timeline (Sidebar Optimized) --- */ 
.timeline-card { 
    background: var(--bg-secondary); 
    border-radius: 8px; /* Tighter radius for sidebar */
    padding: 1.5rem;    /* Reduced padding */
    margin-top: 0;      /* Removed top margin */
    margin-bottom: 0;   /* Removed bottom margin */
    box-shadow: none;   /* Flatter look for sidebar */
    border: 1px solid var(--border-color); 
    border-left: 3px solid var(--coral-accent); /* Thinner accent */
} 

.timeline-card-title { 
    font-family: 'Big Shoulders Display', sans-serif; 
    font-size: 1.25rem; /* Smaller title */
    font-weight: 800; 
    color: var(--coral-accent); 
    margin-bottom: 1.25rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
} 

.timeline-item { 
    position: relative; 
    padding: 0.75rem 0.5rem 0.75rem 1.5rem; /* Tighter padding */
    margin-bottom: 0.75rem; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    border-radius: 6px; 
    background: transparent; 
} 

.timeline-item:hover { 
    background: rgba(249, 111, 110, 0.05); /* Soft Coral */ 
    transform: translateX(2px); /* Smaller movement */
} 

.timeline-item::before { 
    content: ''; 
    position: absolute; 
    left: 0.25rem; /* Adjusted position */
    top: 1.1rem;   /* Align with year/title */
    width: 8px;    /* Smaller dot */
    height: 8px; 
    border-radius: 50%; 
    background: var(--coral-accent); 
    box-shadow: 0 0 0 2px rgba(249, 111, 110, 0.2); 
    transition: all 0.3s ease; 
}

/* --- UNIVERSAL MOBILE DRAWER FIXES --- */

/* 1. Dark Mode Logo Fix */
/* Inverts the black logo to white when the theme is dark */
[data-theme="dark"] .mobile-menu-header img,
[data-theme="dark"] .mobile-drawer-logo {
    filter: invert(1);
    opacity: 0.9;
}

/* 2. Global Nav Active State */
.mobile-nav-link.is-active {
    color: var(--coral-accent) !important;
    position: relative;
}
/* Optional: Add a dot next to active item */
.mobile-nav-link.is-active::after {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--coral-accent);
}

/* 3. Sub-Nav Hierarchy Styling */
.mobile-sub-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.mobile-sub-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: block;
}
.mobile-sub-link {
    display: block;
    font-family: 'Playfair Display', serif; /* Matching your editorial vibe */
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 1rem;
    opacity: 0.6;
    transition: 0.2s;
}
.mobile-sub-link.active-context {
    opacity: 1;
    color: var(--coral-accent);
    font-style: italic;
}
.timeline-item.active { 
    background: rgba(249, 111, 110, 0.1); 
} 

.timeline-item.active::before { 
    background: var(--teal-accent); 
    transform: scale(1.2); 
    box-shadow: 0 0 0 3px rgba(46, 211, 198, 0.2); /* Smaller shadow */
} 

.timeline-year { 
    font-weight: 700; 
    color: var(--teal-accent); 
    font-size: 0.75rem; /* Smaller font */
    display: block; 
    margin-bottom: 0.15rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
} 

.timeline-event { 
    font-size: 0.9rem; /* Smaller font */
    color: var(--text-primary); 
    line-height: 1.3; 
    font-weight: 700; 
    font-family: 'Big Shoulders Display', sans-serif; 
    letter-spacing: 0.02em; 
} 

.timeline-details { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s ease; 
    font-size: 0.85rem; /* Smaller font */
    color: var(--text-secondary); 
    line-height: 1.5; 
    opacity: 0; 
} 

.timeline-item.active .timeline-details { 
    max-height: 300px; /* Allow enough height */
    margin-top: 0.5rem; 
    opacity: 1; 
}

/* Responsive Updates */
@media (max-width: 900px) {
    .lg-main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    
    /* Tighter Mobile Padding */
    .container { padding: 0 1.25rem; }

    .article-layout { grid-template-columns: 1fr; gap: 2rem; }
    .sidebar { position: static; display: none; }
    .visual-break { margin: 3rem 0; }

    /* Horizontal Breadcrumbs */
    .lg-context-bar .container {
        padding: 0 1.25rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .lg-context-bar .container::-webkit-scrollbar {
        display: none;
    }

    /* Hero Font Size */
    .article-hero-modular h1 { font-size: 2.5rem; }

    /* The Bar Grid - Tablet (2 cols) */
    .the-bar-grid { grid-template-columns: 1fr 1fr; }
    .bar-item { padding: 1rem; }
}

@media (max-width: 600px) {
    /* The Bar Grid - Mobile (1 col) */
    .the-bar-grid { grid-template-columns: 1fr; }
}

/* Keep Reading Section */
.keep-reading-section { 
    padding: 6rem 0 8rem; /* Generous breathing room */ 
    text-align: center; 
    background: var(--bg-primary); 
    /* Optional: A very subtle separator line if you want it distinct from the article */ 
    border-top: 1px solid rgba(0,0,0,0.05); 
} 

.keep-reading-section h2 { 
    font-family: 'Big Shoulders Display', sans-serif; 
    font-size: 3rem; 
    font-weight: 800; 
    margin-bottom: 1rem; 
    color: var(--text-primary); 
    text-transform: capitalize; /* Matches "Keep Reading" casing */ 
} 

.keep-reading-section p { 
    font-family: 'Inter', sans-serif; 
    font-size: 1.25rem; 
    color: var(--text-secondary); 
    margin-bottom: 2.5rem; 
} 

.back-link-cta { 
    display: inline-block; 
    font-family: 'Inter', sans-serif; 
    font-weight: 700; 
    font-size: 1.125rem; 
    color: var(--text-primary); 
    text-decoration: none; 
    border-bottom: 3px solid var(--coral-accent); /* The thick colored line */ 
    padding-bottom: 4px; 
    transition: all 0.2s ease; 
} 

.back-link-cta:hover { 
    color: var(--coral-accent); 
    border-bottom-color: var(--text-primary); 
}

/* FOOTER STYLES */
.site-footer {
    /* Mapping Insights variables to Footer variables */
    --coral: var(--coral-accent);
    --teal: var(--teal-accent);
    --font-display: 'Big Shoulders Display', sans-serif;
    --font-sans: 'Inter', sans-serif;

    background: #0A0A0A;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0;
    margin-top: 6rem;
    font-family: var(--font-sans);
    color: #ffffff;
}

.footer-container { max-width: 1400px; margin: 0 auto; padding: 4rem 2rem 3rem; }
.footer-grid-layout { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
.footer-brand-col { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-logo-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: #ffffff; }
.footer-logo-img { height: 32px; width: auto; }
.footer-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-tagline { font-size: 0.95rem; line-height: 1.6; color: rgba(255,255,255,0.6); max-width: 300px; }
.footer-social { display: flex; gap: 1rem; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: #ffffff; transition: all 0.3s ease; }
.social-icon:hover { border-color: var(--coral); color: var(--coral); background: rgba(249, 111, 110, 0.1); transform: translateY(-2px); }
.footer-nav-col { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-nav-heading { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin: 0; }
.footer-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-link { text-decoration: none; color: rgba(255,255,255,0.8); font-size: 0.95rem; transition: color 0.2s ease; position: relative; display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-nav-link:hover { color: var(--coral); }
.footer-portal-link { color: var(--teal); font-weight: 600; }
.footer-nav-divider { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 0.5rem; padding-top: 1rem; }
.footer-system-link { color: rgba(255,255,255,0.6); font-style: italic; font-size: 0.9rem; }
.footer-status-col { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-status-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1.5rem; }
.status-indicator { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.status-dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 2px rgba(46, 211, 198, 0.2); animation: pulse 2s infinite; }
.status-text { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal); font-size: 0.9rem; }
.status-description { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.5; margin-bottom: 1.5rem; }
.status-cta { display: inline-flex; align-items: center; gap: 0.5rem; color: #ffffff; text-decoration: none; font-weight: 600; font-size: 0.9rem; padding-bottom: 2px; border-bottom: 2px solid var(--coral); transition: all 0.2s ease; }
.status-cta:hover { color: var(--coral); }
.footer-bottom-bar { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; margin-top: 0; }
.footer-bottom-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-legal-links { display: flex; gap: 2rem; }
.footer-legal-link { text-decoration: none; color: rgba(255,255,255,0.4); transition: color 0.2s ease; }
.footer-legal-link:hover { color: #ffffff; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 211, 198, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(46, 211, 198, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 211, 198, 0); }
}

@media (max-width: 900px) {
    .footer-grid-layout { grid-template-columns: 1fr 1fr; gap: 3rem 2rem; }
    .footer-brand-col { grid-column: 1 / -1; margin-bottom: 1rem; }
    .footer-status-col { grid-column: 1 / -1; margin-top: 1rem; }
    .footer-bottom-container { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 600px) {
    .footer-grid-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Polish for Legacy Illustrations */
.visual-break img {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Soft lift */
    border: 1px solid rgba(0,0,0,0.05); /* Subtle edge definition */
}

[data-theme="dark"] .visual-break img {
    opacity: 0.95; /* Slight dim to reduce glare */
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* --- HERO PLACEHOLDER (Temporary Blueprint Style) --- */ 
.hero-placeholder-pattern { 
    width: 100%; 
    height: 400px; 
    background-color: #0a0a0a; 
    position: relative; 
    overflow: hidden; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.1); 
} 
.pattern-grid { 
    position: absolute; 
    inset: 0; 
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), 
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); 
    background-size: 40px 40px; 
    opacity: 0.5; 
} 
.pattern-glow { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 60%; 
    height: 60%; 
    background: radial-gradient(circle, rgba(46, 211, 198, 0.15) 0%, transparent 70%); 
    filter: blur(40px); 
} 

/* --- CTA BUTTON --- */ 
.btn-pill-black { 
    display: inline-block; 
    padding: 1rem 2.5rem; 
    background: #000000; 
    color: #ffffff; 
    text-decoration: none; 
    border-radius: 99px; 
    font-weight: 700; 
    border: 1px solid rgba(255,255,255,0.2); 
    transition: all 0.3s ease; 
} 
.btn-pill-black:hover { 
    transform: translateY(-2px); 
    background: var(--coral-accent); 
    border-color: var(--coral-accent); 
    color: white; 
}

/* --- THEME AWARE IMAGES (ROBUST) --- */ 

/* 1. Base State: Hide ALL theme images inside the container */
.theme-image-container img,
.theme-image-container .theme-img-light, 
.theme-image-container .theme-img-dark {
    display: none !important;
}

/* 2. Light Mode: Show only light image */
html[data-theme="light"] .theme-image-container .theme-img-light {
    display: block !important;
}

/* 3. Dark Mode: Show only dark image */
html[data-theme="dark"] .theme-image-container .theme-img-dark {
    display: block !important;
}

/* 4. Container Sizing */
.theme-image-container {
    min-height: 100px;
    width: 100%;
}

/* --- DARK MODE LOGO FIX --- */
[data-theme="dark"] .lg-logo img { 
    filter: invert(1); 
    opacity: 0.9; /* Slight soften so it isn't jarringly bright */ 
}

/* Swiper Navigation Styling */ 
.swiper-button-next, .swiper-button-prev, .work-swiper-prev, .work-swiper-next { 
    width: 44px; 
    height: 44px; 
    background: var(--card-bg); 
    border-radius: 50%; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    transition: all 0.2s ease; 
    z-index: 20;
} 
.swiper-button-next:after, .swiper-button-prev:after, .work-swiper-prev:after, .work-swiper-next:after { 
    font-size: 1.2rem; 
    font-weight: 800; 
} 
.swiper-button-next:hover, .swiper-button-prev:hover, .work-swiper-prev:hover, .work-swiper-next:hover { 
    transform: scale(1.1); 
    box-shadow: 0 6px 16px rgba(0,0,0,0.15); 
    color: var(--text-primary) !important; 
} 
/* Mobile Adjustments for Arrows */ 
@media (max-width: 768px) { 
    .swiper-button-next, .swiper-button-prev, .work-swiper-prev, .work-swiper-next { 
        display: none; /* Hide arrows on mobile, use swipe/dots only */ 
    } 
}

/* Dark Mode Toggle Visibility Fix */ 
[data-theme='dark'] .theme-toggle svg { 
    fill: #ffffff !important; 
} 
[data-theme='dark'] .theme-toggle { 
    background: rgba(255,255,255,0.1) !important; 
    border-color: rgba(255,255,255,0.2) !important; 
}

/* Work Card Link Resets */ 
a.work-card { 
    text-decoration: none !important; 
    color: var(--text-primary) !important; 
    display: block; 
} 

/* Title Styles */ 
.work-card h3.story-title { 
    color: var(--text-primary); 
    transition: color 0.2s ease; 
    text-decoration: none !important; 
} 

/* Hover State: Coral */ 
.work-card:hover h3.story-title { 
    color: var(--coral-accent) !important; 
} 

/* Remove underlines from stats/descriptions */ 
.work-card p, 
.work-card .story-description { 
    text-decoration: none !important; 
    border-bottom: none !important; 
}

