@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   PANACEA CONSULTING - PREMIUM STYLE SYSTEM (LIGHT/DARK, PARALLAX, GLASSMORPHISM)
   ========================================================================== */

/* --- Google Font Custom Variables & Resets --- */
:root {
    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Theme Tokens: DARK MODE (Default) */
    --bg-base: #080a10;           /* Pure Obsidian Black */
    --bg-surface: #10121a;        /* Flat Deep Navy Slate */
    --bg-surface-alt: #0d0f16;    /* Dark Ledger Tint */
    --bg-navbar: rgba(8, 10, 16, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-on-accent: #000000;    /* High contrast black on emerald */

    --accent-primary: #10b981;     /* Finance Emerald Green */
    --accent-secondary: #34d399;   /* Muted Mint */
    --accent-gradient: linear-gradient(135deg, #ffffff 40%, #10b981 100%);
    --glow-color: rgba(16, 185, 129, 0.04);
    --shadow-color: rgba(0, 0, 0, 0.6);

    --card-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.3);
    --glass-blur: blur(4px);

    /* Infographics Contrast Custom Styles (Dark Theme default) */
    --bg-card-glass: rgba(15, 23, 42, 0.65);
    --bg-card-glass-dark: rgba(15, 23, 42, 0.95);
    --bg-chevron: rgba(15, 23, 42, 0.45);
    --bg-chevron-hover: rgba(255, 255, 255, 0.015);
    --bg-chevron-highlight: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.22) 100%);
    --bg-circle-shield: rgba(15, 23, 42, 0.35);
    --bg-circle-core: rgba(15, 23, 42, 0.6);
    --bg-circle-base: rgba(16, 185, 129, 0.06);
    --circle-orbit-border: rgba(255, 255, 255, 0.08);

    /* Coordinate Grid Background (Dark Mode) */
    --bg-grid-pattern: linear-gradient(to right, rgba(16, 185, 129, 0.03) 1px, transparent 1px),
                       linear-gradient(to bottom, rgba(16, 185, 129, 0.03) 1px, transparent 1px),
                       linear-gradient(to right, rgba(255, 255, 255, 0.004) 1px, transparent 1px),
                       linear-gradient(to bottom, rgba(255, 255, 255, 0.004) 1px, transparent 1px);
    --bg-grid-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;

    /* Animation Timings */
    --transition-smooth: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.1s ease;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-base: #ffffff;
    --bg-surface: #f8fafc;        /* Soft Cool Light Slate */
    --bg-surface-alt: #f1f5f9;
    --bg-navbar: rgba(255, 255, 255, 0.9);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.15);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-on-accent: #ffffff;

    --accent-primary: #059669;     /* Deep Emerald Green */
    --accent-secondary: #10b981;   /* Emerald Accent */
    --accent-gradient: linear-gradient(135deg, #0f172a 40%, #059669 100%);
    --glow-color: rgba(5, 150, 105, 0.02);
    --shadow-color: rgba(15, 23, 42, 0.02);

    --card-shadow: 0 4px 12px 0 rgba(15, 23, 42, 0.02);

    /* Infographics Contrast Custom Styles (Light Theme overrides) */
    --bg-card-glass: rgba(255, 255, 255, 0.85);
    --bg-card-glass-dark: rgba(255, 255, 255, 0.98);
    --bg-chevron: rgba(241, 245, 249, 0.85);
    --bg-chevron-hover: rgba(241, 245, 249, 0.95);
    --bg-chevron-highlight: linear-gradient(135deg, rgba(5, 150, 105, 0.06) 0%, rgba(5, 150, 105, 0.16) 100%);
    --bg-circle-shield: rgba(241, 245, 249, 0.55);
    --bg-circle-core: rgba(241, 245, 249, 0.85);
    --bg-circle-base: rgba(5, 150, 105, 0.08);
    --circle-orbit-border: rgba(15, 23, 42, 0.06);

    /* Coordinate Grid Background (Light Mode) */
    --bg-grid-pattern: linear-gradient(to right, rgba(5, 150, 105, 0.02) 1px, transparent 1px),
                       linear-gradient(to bottom, rgba(5, 150, 105, 0.02) 1px, transparent 1px),
                       linear-gradient(to right, rgba(15, 23, 42, 0.008) 1px, transparent 1px),
                       linear-gradient(to bottom, rgba(15, 23, 42, 0.008) 1px, transparent 1px);
    --bg-grid-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
}

/* --- Base Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    background-image: var(--bg-grid-pattern);
    background-size: var(--bg-grid-size);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Layout Elements --- */
.content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typographical Settings --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

/* --- Gradient & Glow Components --- */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* --- Navigation Header --- */
.site-header {
    border-top: 3px solid var(--accent-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-navbar);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.site-header.scrolled .header-container {
    padding: 0.6rem 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 38px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

.logo-link:hover .logo-image {
    transform: scale(1.03);
}

/* Nav Menu (Fades in on header hover, mathematically centered) */
.nav-menu {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    background: transparent;
    border-bottom: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 1000;
    padding: 0;
}

.site-header:hover .nav-menu,
.site-header:focus-within .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 0.95rem;
    width: auto;
    max-width: none;
    margin: 0;
    list-style: none;
    align-items: center;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link svg,
.nav-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    display: block;
    flex-shrink: 0;
    transition: stroke 0.2s ease, transform 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
}

.nav-link:hover svg, .nav-link.active svg {
    stroke: var(--accent-primary);
    transform: translateY(-1px);
}

.btn-cta-nav {
    background: var(--accent-primary);
    color: var(--text-on-accent) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 6px;
    font-weight: 600;
    flex-direction: row !important;
    gap: 0.4rem !important;
}

.btn-cta-nav svg {
    stroke: var(--text-on-accent) !important;
}

.btn-cta-nav:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
    opacity: 1;
    color: var(--text-on-accent) !important;
}

.btn-cta-nav:hover svg {
    stroke: var(--text-on-accent) !important;
    transform: none;
}

.btn-cta-nav::after {
    display: none;
}

/* Theme Toggle Button */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
}

/* Centering and Space Optimization for Navbar on Desktop */
@media (min-width: 769px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1240px;
        margin: 0 auto;
    }
    
    .logo-link {
        flex: 1 1 0%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    
    .nav-menu {
        flex: 0 1 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .header-actions {
        flex: 1 1 0%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1.2rem;
    }
}


/* Icon displays based on themes */
.sun-icon {
    display: none;
    width: 20px;
    height: 20px;
}

.moon-icon {
    display: block;
    width: 20px;
    height: 20px;
}

[data-theme="light"] .sun-icon {
    display: block;
}

[data-theme="light"] .moon-icon {
    display: none;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* --- Standard Layout & Section Styles --- */
.parallax-wrapper, .subpage-wrapper {
    width: 100%;
    position: relative;
}

.parallax-section, .service-section {
    position: relative;
    padding: 7rem 0;
    background-color: var(--bg-base);
    box-sizing: border-box;
}

/* Background layer for visual depth with parallax bleed */
.parallax-background {
    position: absolute;
    top: -15%;
    bottom: -15%;
    left: 0;
    right: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.15;
    transform: scale(1.15);
    will-change: transform;
}

/* Hero section specific layout */
.hero-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 2rem 0;
    box-sizing: border-box;
}

.parallax-wrapper .parallax-section,
.parallax-wrapper .service-section {
    min-height: auto;
    padding: 7rem 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Desktop viewport layout styling */
@media (min-width: 1025px) {
    html {
        scroll-behavior: smooth;
    }

    .parallax-wrapper .parallax-section,
    .parallax-wrapper .service-section {
        min-height: 80vh;
        padding: 8rem 0 !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .parallax-section .content-container,
    .service-section .content-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* Hero section size */
    .hero-section {
        min-height: 90vh !important;
        padding: 9rem 0 4rem 0 !important;
    }
}

/* Laptop vertical fitting fixes to prevent content overflow on screen heights <= 850px */
@media (max-height: 850px) and (min-width: 1025px) {
    .parallax-wrapper .parallax-section,
    .parallax-wrapper .service-section {
        padding: 4.5rem 0 1rem 0 !important;
    }
    .section-header {
        margin-bottom: 1rem;
    }
    .service-grid, .info-blocks, .feature-showcase, .showcase-split {
        gap: 1rem;
    }
    .service-card, .info-block {
        padding: 1.2rem;
    }
}

/* Responsive viewports: Disable scroll-snapping on devices where vertical content stacks */
@media (max-width: 1024px) {
    .parallax-wrapper,
    .subpage-snap-wrapper {
        scroll-snap-type: none !important;
    }
    .parallax-section,
    .service-section,
    .subpage-snap-wrapper .subpage-hero,
    .subpage-snap-wrapper .about-profile-section,
    .subpage-snap-wrapper .principles-section,
    .subpage-snap-wrapper .values-section,
    .subpage-snap-wrapper .pipeline-section,
    .subpage-snap-wrapper .framework-section,
    .subpage-snap-wrapper .pillars-section,
    .subpage-snap-wrapper .synergy-section,
    .subpage-snap-wrapper .subpage-cta,
    .subpage-snap-wrapper .value-chain-section {
        min-height: auto !important;
        height: auto !important;
        padding: 5rem 0 3rem 0 !important;
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }
}

.footer-snap-group {
    position: relative;
    height: 32px;
    width: 100%;
    background: transparent;
}

.service-section.alt-bg {
    background-color: var(--bg-surface-alt);
}

/* Section Dividers */
.section-divider-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

/* --- Backdrop Graphics --- */
.glow-orb {
    display: none;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--border-color) 0.8px, transparent 0.8px);
    background-size: 30px 30px;
    opacity: 0.15;
}

/* --- Section 1: Hero Section Layout --- */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
    margin-top: 2rem;
}

.hero-badge {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-primary);
    background: var(--glow-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    margin-bottom: 2rem;
    animation: pulseGlow 3s infinite alternate;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    max-width: 900px;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 750px;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

/* General Button Styles */
.btn {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    border: 1px solid var(--accent-primary);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: var(--text-on-accent);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.03);
    transform: translateY(-1px);
}

.full-width {
    width: 100%;
}

/* Stat Cards */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    width: 100%;
    max-width: 950px;
    margin-top: 1rem;
}

.stat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--border-color);
}

.stat-card:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Scroll Mouse Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 44px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 4px;
    animation: scrollWheel 2s infinite ease-out;
}

.scroll-indicator .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 5rem auto;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* --- Section 2: Services Grid --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
}

.service-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--glow-color);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 242, 254, 0.15);
}

.service-card .icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* --- Section 3: System Implementation Showcase --- */
.feature-showcase {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.showcase-item {
    display: flex;
    gap: 2rem;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-primary);
    background: var(--glow-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 242, 254, 0.12);
}

.step-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Dynamic Technical Graph (CSS Visual Illustration) */
.showcase-visual {
    padding: 3.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    overflow: hidden;
}

.tech-stack-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    width: 100%;
}

.node {
    padding: 1rem 1.8rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    z-index: 10;
    position: relative;
    text-align: center;
    width: 200px;
}

.node-legacy {
    background: rgba(100, 116, 139, 0.08);
    border-color: var(--text-muted);
    color: var(--text-secondary);
}

.node-panacea {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    border: 1px solid var(--accent-primary);
}

.node-future {
    background: rgba(16, 185, 129, 0.06);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Data Flow Arrows */
.data-flow-arrow {
    position: relative;
    height: 40px;
    width: 1px;
    background: var(--border-color);
}

.data-flow-arrow::after {
    content: '▼';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: var(--accent-primary);
}

.horizontal-pulse {
    background: var(--border-color);
}

.horizontal-pulse::after {
    color: var(--accent-primary);
}

/* Traveling Flow Dot */
.dot-flow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    animation: flowingDot 2s infinite linear;
}

.horizontal-pulse .dot-flow {
    background-color: var(--accent-primary);
}

.pipeline-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: var(--accent-secondary);
    box-shadow: 0 0 8px var(--accent-secondary);
    animation: statusPulse 2s infinite;
}

/* --- Section 4: Maintenance Blocks --- */
.info-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
}

.info-block {
    display: flex;
    flex-direction: column;
}

.info-icon {
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.info-icon svg {
    width: 40px;
    height: 40px;
}

.info-block h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

/* --- Section 5: Calculator Widget --- */
.calculator-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
}

.calc-panel h3, .calc-results h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.slider-group {
    margin-bottom: 2.2rem;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.slider-highlight {
    color: var(--accent-primary);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Range Input Styling */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: var(--border-color);
    outline: none;
    transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    box-shadow: 0 0 10px var(--glow-color);
    transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px var(--accent-primary);
}

.results-visual-container {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 2rem;
}

.result-metric {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.result-metric.highlight {
    background: var(--glow-color);
    border-color: rgba(0, 242, 254, 0.25);
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.highlight .metric-value {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calculator-verdict {
    background: rgba(255, 255, 255, 0.01);
    border-left: 3px solid var(--accent-secondary);
    padding: 1.2rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2.2rem;
}

.calculator-verdict p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- Section 6: Homepage About Us Summary --- */
.showcase-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.showcase-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.showcase-step {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.showcase-step:hover {
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.showcase-step.active {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 242, 254, 0.15);
    box-shadow: 0 4px 25px rgba(0, 242, 254, 0.03);
}

.showcase-step.active .step-num {
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

/* --- Section 6: Contact & Form Layout --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    align-items: center;
}

.contact-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.contact-info h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact-pitch {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.detail-icon {
    font-size: 1.8rem;
    background: var(--glow-color);
    color: var(--accent-primary);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 242, 254, 0.1);
}

.detail-text h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.detail-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Consultation Form Control styles */
.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 10px var(--glow-color);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-surface-alt);
    color: var(--text-primary);
}

.form-status-msg {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.form-status-msg.success {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
}

.form-status-msg.error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
}

.hidden {
    display: none !important;
}

/* --- FOOTER: PREMIUM STATIC FOOTER --- */
.site-footer {
    position: relative;
    z-index: 100;
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    width: 100%;
}

.footer-content {
    padding: 5rem 0 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand-col .footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    line-height: 1;
}

.footer-logo .logo-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--text-secondary);
    margin-top: 2px;
}

.footer-about {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-grid h4 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1.8rem;
}

.footer-details-list, 
.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-details-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-details-list strong {
    color: var(--text-primary);
}

.footer-links-list a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-links-list a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- LEGAL DISCLAIMER POPUP MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(6, 9, 19, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 1;
    transition: var(--transition-smooth);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    position: relative;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 3rem;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.hidden .modal-card {
    transform: translateY(30px);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-body {
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 2rem;
    max-height: 50vh;
}

.modal-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
        border-color: rgba(0, 242, 254, 0.2);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
        border-color: rgba(0, 242, 254, 0.45);
    }
}

@keyframes scalePulse {
    0% { transform: scale(1); box-shadow: 0 0 25px rgba(0, 242, 254, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 0 35px rgba(0, 242, 254, 0.45); }
    100% { transform: scale(1); box-shadow: 0 0 25px rgba(0, 242, 254, 0.3); }
}

@keyframes flowingDot {
    0% { top: 0%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* --- RESPONSIVE MEDIA BREAKPOINTS --- */
@media (max-width: 1024px) {
    h1.hero-title {
        font-size: 3rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-blocks {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 3rem;
    }
    
    .footer-links-col {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Mobile Navbar Toggles */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-base);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        padding: 3rem 2rem;
        border-top: 1px solid var(--border-color);
        transform: translateY(-120%);
        transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
    }
    
    .nav-menu.open {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0.75rem 0;
    }

    .nav-link svg {
        width: 18px;
        height: 18px;
    }

    .btn-cta-nav {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 80%;
    }
    
    /* Hero scaling */
    h1.hero-title {
        font-size: 2.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
    }
    
    .stat-card:last-child {
        border-bottom: none;
    }
    
    /* Service features */
    .service-grid, .info-blocks {
        grid-template-columns: 1fr;
    }
    
    .feature-showcase,
    .showcase-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-links-col {
        grid-column: span 1;
    }
    
    .modal-card {
        padding: 2rem;
    }
    
    .modal-card h3 {
        font-size: 1.4rem;
    }
    
    /* Hamburger bar transitions on active open */
    .mobile-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ==========================================================================
   PANACEA CONSULTING SERVICES - SUBPAGE, RESEARCH & ADMIN SYSTEM STYLES
   ========================================================================== */

/* --- Logo Image Scaling & Alignment --- */
.logo-image {
    height: 42px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 0 2px var(--glow-color));
    transition: var(--transition-smooth);
}

.logo-link:hover .logo-image {
    transform: scale(1.03);
}

/* --- Section Subpage CTA Buttons --- */
.section-cta-align {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
    position: relative;
    z-index: 10;
}

/* --- Service Subpage Heroes --- */
.subpage-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.subpage-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60vh;
    padding: 12rem 0 6rem 0;
    background-color: var(--bg-base);
    transform-style: preserve-3d;
    overflow: hidden;
}

.hero-sub-align {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
}

.sub-hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.sub-hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* --- Service Details Page Layout --- */
.subpage-details-body {
    background-color: var(--bg-base);
    padding: 6rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: start;
}

.details-text-col h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.checklist-box {
    margin-top: 3.5rem;
    padding: 2rem;
}

.checklist-box h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.branded-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.branded-checklist li {
    font-size: 1rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
}

.branded-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--accent-secondary);
    font-size: 1.2rem;
    font-weight: 700;
}

.section-header-left {
    margin-bottom: 4rem;
}

.section-header-left .section-tag {
    margin-bottom: 0.5rem;
}

.section-header-left h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

/* --- Vertical Process Timeline --- */
.process-timeline {
    position: relative;
    padding-left: 3rem;
    border-left: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.timeline-step {
    position: relative;
    padding: 2.2rem;
    transition: var(--transition-smooth);
}

.timeline-step:hover {
    border-color: var(--accent-primary);
}

.step-badge {
    position: absolute;
    left: -4.5rem;
    top: 2.2rem;
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    width: 60px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--glow-color);
    z-index: 10;
}

.timeline-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.step-duration {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    background: var(--glow-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 1rem;
    border: 1px solid rgba(31, 163, 227, 0.15);
}

/* --- Subpage Sub CTA Cards --- */
.subpage-cta {
    padding: 6rem 0;
}

.cta-card {
    text-align: center;
    padding: 4rem 3rem;
}

.cta-card h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
}

/* --- Research Library Page Layout --- */
.research-section-body {
    background-color: var(--bg-base);
    padding: 6rem 0;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.research-card {
    position: relative;
    overflow: hidden; /* Vital to hide the sliding summary overlay */
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 2.2rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-secondary);
    background: rgba(126, 193, 66, 0.12);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(126, 193, 66, 0.2);
}

.read-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.research-card h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.card-teaser {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* --- Sliding Hover Executive Summary Overlay --- */
.summary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    transform: translateY(102%); /* Hidden below card edge */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.research-card:hover .summary-overlay {
    transform: translateY(0); /* Slides up to cover the card */
}

.summary-overlay h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
}

.summary-overlay p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 1.8rem;
}

.summary-overlay .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
}

/* --- Admin Portal Compartment Styling --- */
.admin-portal-wrapper {
    padding: 4rem 0 8rem 0;
}

.admin-panel-container {
    padding: 2.5rem;
    border-color: rgba(31, 163, 227, 0.15);
}

.admin-toggle-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.admin-toggle-btn:hover {
    color: var(--text-primary);
}

.console-indicator {
    font-size: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.admin-console-content {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    transition: var(--transition-smooth);
}

.admin-console-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.admin-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.generated-code-box {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.generated-code-box label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.8rem;
}

#generated-html-code {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--accent-secondary);
    width: 100%;
    padding: 1.2rem;
    border-radius: 8px;
    outline: none;
    resize: vertical;
}

/* --- Dynamic Subpage Breakpoints --- */
@media (max-width: 1024px) {
    .sub-hero-title {
        font-size: 2.8rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sub-hero-title {
        font-size: 2.2rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        padding-left: 2rem;
    }
    
    .step-badge {
        left: -3.5rem;
        width: 50px;
        height: 26px;
        font-size: 0.7rem;
    }
    
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Client Partnerships Infinite Loop Carousel --- */
.client-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

/* Linear gradients to fade the slider edges on left and right for seamless look */
.client-slider::before,
.client-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.client-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-base) 0%, transparent 100%);
}

.client-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-base) 0%, transparent 100%);
}

.client-track {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation: scrollLeftToRight 30s linear infinite;
}

.client-slider:hover .client-track {
    animation-play-state: paused;
}

@keyframes scrollLeftToRight {
    0% { transform: translateX(calc(-50% - 1rem)); }
    100% { transform: translateX(0); }
}

.client-capsule {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 2.2rem;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.client-capsule:hover,
.client-capsule.active {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px var(--glow-color);
    background: rgba(255, 255, 255, 0.05);
}

.client-capsule.active {
    background: var(--glow-color);
}

.client-logo-svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-primary);
    /* filter: none; */
    transition: var(--transition-smooth);
}

.client-capsule:hover .client-logo-svg,
.client-capsule.active .client-logo-svg {
    stroke: var(--accent-secondary);
    /* filter: none; */
    transform: scale(1.05);
}

/* --- Client Case Display Box --- */
.client-case-display {
    margin-top: 3.5rem;
    padding: 3.5rem;
    transition: var(--transition-smooth);
    position: relative;
}

.client-case-display.fade-out {
    opacity: 0;
    transform: translateY(8px);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 1.5rem;
}

.case-client-badge {
    font-size: 2.2rem;
    background: var(--glow-color);
    color: var(--accent-primary);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.case-meta-tags {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.case-work-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.case-work-list li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2.2rem;
    line-height: 1.6;
}

.case-work-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-secondary);
    font-weight: 800;
    font-size: 1.2rem;
}

/* ==========================================================================
   ABOUT PAGE VISUAL COMPONENTS (style.css UPGRADES)
   ========================================================================== */

.about-profile-section {
    padding: 7rem 0;
    background-color: var(--bg-base);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.about-text-block h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-visual-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: var(--bg-surface-alt);
    border-color: var(--border-color);
}

.about-visual-block h3 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.footprint-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footprint-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footprint-stat .stat-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

.footprint-stat .stat-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Snapping Engine for Subpages (Disabled) --- */
.subpage-snap-wrapper {
    width: 100%;
    position: relative;
}

.subpage-snap-wrapper .subpage-hero,
.subpage-snap-wrapper .about-profile-section,
.subpage-snap-wrapper .principles-section,
.subpage-snap-wrapper .values-section,
.subpage-snap-wrapper .pipeline-section,
.subpage-snap-wrapper .framework-section,
.subpage-snap-wrapper .pillars-section,
.subpage-snap-wrapper .synergy-section,
.subpage-snap-wrapper .subpage-cta,
.subpage-snap-wrapper .value-chain-section {
    min-height: auto;
    box-sizing: border-box;
    padding: 6rem 0;
    position: relative;
}

.subpage-snap-wrapper .value-chain-section {
    background-color: var(--bg-surface-alt);
    overflow: hidden;
}

/* --- FOOTER: HOVER-EXPANDABLE OVERLAY DRAWER --- */
/* --- HERO PIPELINE LIFECYCLE --- */
.hero-pipeline-container {
    position: relative;
    width: 100%;
    margin: 3.5rem auto 0 auto;
    padding: 1.5rem 0;
}

.pipeline-steps-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.pipeline-step-node {
    width: 23.5%;
    position: relative;
    z-index: 3;
}

/* 3D Flip Card Container */
.pipeline-flip-card {
    perspective: 1000px; /* Enable 3D space */
    width: 100%;
    height: 220px; /* Increased height to fit both front and back content comfortably */
}

.pipeline-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Elastic bouncy flip */
    transform-style: preserve-3d;
}

.pipeline-flip-card:hover .pipeline-card-inner {
    transform: rotateY(180deg);
}

.pipeline-card-front, .pipeline-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.pipeline-card-front {
    background: var(--bg-card-glass); /* Soft slate glass */
    border: 1px solid var(--border-color);
    padding: 2.5rem 1.25rem 1.5rem 1.25rem; /* Increased padding */
    backdrop-filter: blur(8px);
    justify-content: flex-start;
}

.pipeline-flip-card:hover .pipeline-card-front {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.pipeline-card-back {
    background: var(--bg-card-glass-dark); /* Dark slate for high contrast */
    border: 1.5px solid var(--accent-primary); /* Glowing active state border */
    color: var(--text-primary);
    transform: rotateY(180deg);
    padding: 1.75rem 1.25rem; /* Increased padding */
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.25);
}

.step-node-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px; /* Dial node circle size */
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-color);
    color: var(--accent-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-sizing: border-box;
    font-family: var(--font-heading);
}

.pipeline-card-front:hover .step-node-number {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.step-node-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.35;
}

/* Card back elements */
.pipeline-card-back p {
    font-size: 0.82rem; /* Slightly larger text */
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 0.9rem 0; /* Slightly larger margin */
}

.card-back-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    transition: color 0.2s;
}

.card-back-link:hover {
    color: #fff;
}

/* Pipeline Heartbeat Connectors */
.pipeline-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    height: 54px; /* Matches circle dials height */
    margin-top: 2.5rem; /* Matches padding-top of card front */
    position: relative;
    z-index: 2;
    padding: 0 0.5rem;
}

.heartbeat-svg {
    width: 100%;
    height: 30px;
    overflow: visible;
}

.heartbeat-line {
    stroke: var(--accent-primary);
    stroke-width: 1.5;
    fill: none;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    opacity: 0.65;
}

/* Sequential heartbeat blips coordinated with a fast 1.8s wave cycle */
.pipeline-connector:nth-child(2) .heartbeat-line {
    animation: heartbeat-blip 1.8s infinite linear;
    animation-delay: 0s;
}

.pipeline-connector:nth-child(4) .heartbeat-line {
    animation: heartbeat-blip 1.8s infinite linear;
    animation-delay: 0.3s;
}

.pipeline-connector:nth-child(6) .heartbeat-line {
    animation: heartbeat-blip 1.8s infinite linear;
    animation-delay: 0.6s;
}

@keyframes heartbeat-blip {
    0% { stroke-dashoffset: 100; opacity: 0.3; }
    15% { stroke-dashoffset: 0; opacity: 1; filter: drop-shadow(0 0 3px var(--accent-primary)); }
    30% { stroke-dashoffset: -100; opacity: 0.3; }
    100% { stroke-dashoffset: -100; opacity: 0.3; }
}

/* --- DATA GOVERNANCE: CONCENTRIC ORBITS INFOGRAPHIC --- */
.governance-info-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    width: 100%;
    max-width: 1050px;
    margin: 3.5rem auto 0 auto;
    align-items: center;
}

@media (max-width: 900px) {
    .governance-info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.layered-circle-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 360px;
}

.layered-circle-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-layer {
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Layer Shield: Phase 3 (Outer Rim - Level 3) */
.layer-shield {
    width: 320px;
    height: 320px;
    z-index: 1;
    background: var(--bg-circle-shield);
    border: 2px dashed var(--border-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.01);
}

/* Layer Core: Phase 2 (Middle Disk - Level 2) */
.layer-core {
    width: 220px;
    height: 220px;
    z-index: 2;
    background: var(--bg-circle-core);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.02);
}

/* Layer Base: Phase 1 (Center Hub - Level 1) */
.layer-base {
    width: 120px;
    height: 120px;
    z-index: 3;
    background: var(--bg-circle-base);
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), 0 0 15px rgba(16, 185, 129, 0.1);
}

/* Concentric Dashed Orbits (Spins on hover!) */
.circle-layer::before {
    content: '';
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 50%;
    border: 1px dashed var(--circle-orbit-border);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: rotate-orbit 24s infinite linear;
}

.layer-base::before {
    animation-duration: 16s;
}

.layer-core::before {
    animation-duration: 20s;
}

.circle-layer.highlighted::before, .circle-layer:hover::before {
    border-color: rgba(16, 185, 129, 0.55);
    animation-duration: 8s !important; /* Spins much faster on hover */
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.3));
}

/* Center and Rim Icons */
.layer-center-icon {
    width: 32px;
    height: 32px;
    color: rgba(16, 185, 129, 0.6);
    transition: all 0.3s ease;
}

.layer-rim-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.layer-shield .layer-rim-icon {
    top: 15px;
}

.layer-core .layer-rim-icon {
    top: 12px;
}

/* Hover & Active Highlight States */
.circle-layer.highlighted, .circle-layer:hover {
    border-color: var(--accent-primary);
}

.layer-shield.highlighted, .layer-shield:hover {
    background: rgba(16, 185, 129, 0.03);
    border-style: solid;
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.18), inset 0 0 25px rgba(16, 185, 129, 0.05);
}

.layer-core.highlighted, .layer-core:hover {
    background: rgba(16, 185, 129, 0.06);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.28), inset 0 0 20px rgba(16, 185, 129, 0.08);
}

.layer-base.highlighted, .layer-base:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: var(--accent-primary);
    box-shadow: 0 0 45px rgba(16, 185, 129, 0.45), 0 8px 30px rgba(0, 0, 0, 0.5);
    transform: scale(1.06);
}

.circle-layer.highlighted .layer-rim-icon,
.circle-layer:hover .layer-rim-icon,
.circle-layer.highlighted .layer-center-icon,
.circle-layer:hover .layer-center-icon {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

.layer-rim-icon {
    transform-origin: center center;
}

.circle-layer:hover .layer-rim-icon {
    transform: translateX(-50%) scale(1.1); /* Retain centering translate offset */
}

@keyframes rotate-orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Right Details Panel */
.layered-details-panel {
    position: relative;
    height: 380px; /* Sized to contain content comfortably */
    width: 100%;
}

@media (max-width: 900px) {
    .layered-details-panel {
        height: 420px;
    }
}

.layer-detail-pane {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem 2.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96) translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1.1), visibility 0.45s;
    backdrop-filter: blur(12px);
    z-index: 1;
}

.layer-detail-pane.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    z-index: 5;
    box-shadow: 0 20px 45px rgba(0,0,0,0.4), 0 0 25px rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

/* Detail Elements inside Pane */
.pane-phase-num {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
}

.pane-phase-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.25rem 0 0.15rem 0;
    font-family: var(--font-heading);
}

.pane-phase-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
    display: block;
}

.pane-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pane-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pane-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}

.pane-block p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

/* --- SYSTEM SELECTION: HORIZONTAL CHEVRON TIMELINE --- */
.selection-chevron-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    width: 100%;
    max-width: 1100px;
    margin: 3.5rem auto 0 auto;
}

.chevron-track {
    display: flex;
    width: 100%;
    align-items: center;
    position: relative;
}

@media (max-width: 900px) {
    .chevron-track {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.chevron-step {
    flex: 1;
    height: 72px;
    position: relative;
    background: var(--bg-chevron);
    border: none;
    outline: none;
    /* Interlocking polygon coordinates: Left side indents inward by 8% to receive the previous step's arrow point, which extends outward by 92% to 100%. */
    clip-path: polygon(0% 0%, 92% 0%, 100% 50%, 92% 100%, 0% 100%, 8% 50%);
    margin-left: -1.2%; /* Slightly overlaps siblings to interlock the arrows */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0 1.25rem 0 1.75rem;
    box-sizing: border-box;
    z-index: 1;
}

.chevron-step:first-child {
    margin-left: 0;
    /* First step has a flat left edge since it has no predecessor */
    clip-path: polygon(0% 0%, 92% 0%, 100% 50%, 92% 100%, 0% 100%);
    padding-left: 1.25rem;
}

@media (max-width: 900px) {
    .chevron-step, .chevron-step:first-child {
        width: 100%;
        margin-left: 0;
        clip-path: none;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        padding: 0.75rem 1.25rem;
        height: auto;
    }
}

/* Hover & Active Glowing States */
.chevron-step:hover {
    background: var(--bg-chevron-hover);
    transform: translateY(-2px);
    z-index: 10;
}

.chevron-step.highlighted {
    background: var(--bg-chevron-highlight);
    z-index: 10;
    transform: scale(1.025);
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.25));
}

@media (max-width: 900px) {
    .chevron-step.highlighted {
        border-color: rgba(16, 185, 129, 0.5);
    }
}

.chevron-num {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.15rem;
}

.chevron-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.25;
    text-align: center;
    transition: color 0.3s ease;
}

.chevron-step.highlighted .chevron-title,
.chevron-step:hover .chevron-title {
    color: var(--text-primary);
}

/* Bottom Details Panel (Height is smaller now because width is 100%!) */
.selection-details-panel {
    position: relative;
    height: 290px;
    width: 100%;
}

@media (max-width: 900px) {
    .selection-details-panel {
        height: auto;
        min-height: 260px;
    }
}

.selection-detail-pane {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem 2.75rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98) translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
    backdrop-filter: blur(12px);
    z-index: 1;
}

.selection-detail-pane.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    z-index: 5;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

/* Checklist items inside card */
.selection-checklist {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

@media (max-width: 768px) {
    .selection-checklist {
        grid-template-columns: 1fr;
        gap: 0.95rem;
    }
}

.selection-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.selection-checklist .check-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 1px;
    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.2));
}

/* --- SYSTEM IMPLEMENTATION: COMPACT SPLIT TIMELINE --- */
.impl-split-layout {
    display: flex;
    gap: 3.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 3.5rem auto 0 auto;
    align-items: stretch;
    min-height: 340px;
}

.impl-description-panel {
    position: relative;
    flex: 1.25;
    border: 1px solid var(--border-color);
    background: var(--bg-card-glass);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.impl-desc-pane {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 2.25rem 2.5rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.97) translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.impl-desc-pane.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    z-index: 5;
}

.impl-chain-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.75rem 0 0.75rem 40px;
    box-sizing: border-box;
}

.impl-chain-line {
    position: absolute;
    left: 11px; /* Matches the center of the 24px nodes */
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary) 0%, rgba(16, 185, 129, 0.08) 100%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

.impl-chain-step {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.4rem 0;
}

.impl-chain-node {
    position: absolute;
    left: -40px; /* Centered perfectly on the chain line */
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.1);
}

.impl-chain-title {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

/* Hover & Active States */
.impl-chain-step:hover .impl-chain-node,
.impl-chain-step.active .impl-chain-node {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    transform: scale(1.15);
    box-shadow: 0 0 12px var(--accent-primary);
}

.impl-chain-step:hover .impl-chain-title,
.impl-chain-step.active .impl-chain-title {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.impl-step-number {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.35rem;
}

.impl-step-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.impl-step-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .impl-split-layout {
        flex-direction: column-reverse;
        gap: 2rem;
        min-height: auto;
    }
    .impl-description-panel {
        min-height: 220px;
    }
    .impl-desc-pane {
        position: relative;
        opacity: 0;
        display: none;
        padding: 1.5rem 1.75rem;
    }
    .impl-desc-pane.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .impl-chain-container {
        padding-left: 35px;
        gap: 1.25rem;
    }
    .impl-chain-line {
        left: 11px;
    }
    .impl-chain-node {
        left: -35px;
    }
}

/* --- MAINTENANCE: 2x2 OPERATIONS HUB GRID --- */
.ops-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 980px;
    margin: 1.5rem auto 0 auto;
}

@media (max-width: 768px) {
    .ops-hub-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.ops-hub-card {
    background: var(--bg-card-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ops-hub-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
    transform: scaleY(0);
    transform-origin: center bottom;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ops-hub-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(16, 185, 129, 0.08);
}

.ops-hub-card:hover::before {
    transform: scaleY(1);
}

.ops-icon-container {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--glow-color);
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.ops-hub-card:hover .ops-icon-container {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    box-shadow: 0 0 12px var(--accent-primary);
}

.ops-svg-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.ops-hub-card:hover .ops-svg-icon {
    transform: scale(1.05);
}

.ops-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.ops-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ops-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.ops-checklist li::before {
    content: "✓";
    color: var(--accent-primary);
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- FORM ROW 2-COLUMN GRID --- */
.form-row-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 576px) {
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* --- POPOUT MESSAGE EDITOR MODAL & WINDOW --- */
.popout-window-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.popout-window-modal.visible {
    opacity: 1;
    visibility: visible;
}

.popout-window {
    width: 650px;
    height: 450px;
    min-width: 320px;
    min-height: 250px;
    background: var(--bg-card-glass-dark);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.1);
    display: flex;
    flex-direction: column;
    resize: both;
    overflow: hidden; /* Important for native resize handle to show and cut content nicely */
    transform: translate3d(0, 0, 0); /* Used by dragging translate */
}

.popout-header {
    background: rgba(16, 185, 129, 0.08);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move; /* Draggable window cursor */
    user-select: none;
    flex-shrink: 0;
}

.popout-header-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
    animation: popout-pulse 2s infinite;
}

@keyframes popout-pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.btn-popout-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.btn-popout-close:hover {
    color: #ef4444;
}

.popout-body {
    flex-grow: 1;
    padding: 1.25rem;
    background: rgba(8, 10, 16, 0.2);
}

.popout-body textarea {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: none;
}

.popout-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 10, 16, 0.4);
    flex-shrink: 0;
}

.popout-sync-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-popout-trigger {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    align-self: flex-end;
}

.btn-popout-trigger:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

.popout-btn-icon {
    width: 13px;
    height: 13px;
}

.message-label-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}



/* --- Redesigned Values Network Web (Strategic Values Web) --- */
.values-section {
    position: relative;
    overflow: hidden;
}

.values-network-container {
    position: relative;
    width: 700px;
    height: 700px;
    margin: 3rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.values-network-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* SVG Values Network Pie Slices */
.network-pie-slice {
    opacity: 0;
    transition: opacity 0.35s ease, fill 0.35s ease;
    pointer-events: none;
}

.network-pie-slice.active-slice {
    opacity: 1;
}

#slice-accountability.active-slice,
#slice-expertise.active-slice,
#slice-integrity.active-slice,
#slice-objectivity.active-slice,
#slice-partnership.active-slice {
    fill: rgba(16, 185, 129, 0.06);
}

/* Center Hub completely black circular style */
.values-hub-black {
    position: absolute;
    width: 250px; /* Sized down from 320px to prevent any overlapping with outer value box pills */
    height: 250px;
    border-radius: 50%;
    background: #000000; /* Flat, completely black background */
    border: 2px solid var(--border-color);
    box-shadow: none; /* Removed the 3D-shaded glowing elliptical shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    transition: border-color 0.4s ease;
    padding: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0; /* Prevent squeezing or warping into an ellipse */
}

.hub-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: absolute;
    width: 85%;
    height: 85%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hub-content-wrapper.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hub-logo-black {
    width: 110px; /* Perfectly sized to be prominent and bold in the 250px circle when nothing is hovered */
    height: 110px;
    object-fit: contain;
    filter: none; /* Clean high-contrast flat rendering without glowing drop-shadow */
}

.hub-title-black {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
}

/* Description wrappers inside hub */
.hub-desc-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: absolute;
    width: 85%;
    height: 85%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hub-desc-wrapper.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hub-desc-wrapper h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hub-desc-wrapper p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.hub-desc-wrapper.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Outer small pill boxes */
.value-pill {
    position: absolute;
    width: 155px;
    height: 48px;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(18, 30, 49, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.3s ease, 
                background 0.3s ease,
                box-shadow 0.3s ease, 
                opacity 0.4s ease;
}

.value-pill span {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.value-pill-desc-mobile {
    display: none; /* Desktop only shows descriptive hover inside central circle */
}

/* Focus and Dimming Active State Mechanics */
.values-network-container.has-active .value-pill {
    opacity: 0.4;
}

.values-network-container.has-active .value-pill.active,
.value-pill:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
    border-color: var(--accent-primary);
    background: var(--bg-surface);
}

.values-network-container.has-active .value-pill.active span,
.value-pill:hover span {
    color: var(--accent-primary);
}

/* Active hub glow when value is active */
.values-network-container.has-active .values-hub-black {
    border-color: var(--accent-primary);
    box-shadow: none; /* Keep it completely flat-black, no shiny elliptical glow */
}

/* --- Value Chain Traveling Pulse Section --- */
.value-chain-section {
    padding: 8rem 0;
    background-color: var(--bg-surface-alt);
    position: relative;
    overflow: hidden;
}

.value-chain-wrapper {
    position: relative;
    width: 100%;
    margin-top: 4rem;
    padding: 2rem 0;
}

.flow-connector-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 100px;
    z-index: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.pulse-path {
    stroke-dasharray: 100 1000;
    stroke-dashoffset: 1100;
    animation: electric-heartbeat 3.2s linear infinite;
    filter: drop-shadow(0 0 6px var(--accent-secondary)) drop-shadow(0 0 2px var(--accent-secondary));
}

@keyframes electric-heartbeat {
    0% {
        stroke-dashoffset: 1100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.value-chain-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.chain-step-card {
    position: relative;
    height: 220px; /* Increased from 165px to ensure initial summary text fits beautifully without overflow */
}

.step-badge {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--text-on-accent);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    z-index: 3;
    transition: var(--transition-smooth);
}

.chain-step-card:hover .step-badge {
    background: var(--accent-secondary);
    box-shadow: none;
    transform: none; /* Keep size completely static on hover over to prevent resizing */
}

.step-card-content {
    padding: 2.5rem 1.5rem 2rem 1.5rem; /* Balanced padding to maximize vertical space for typography */
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: var(--transition-smooth);
}

.chain-step-card:hover .step-card-content {
    border-color: var(--accent-secondary);
    box-shadow: none; /* Soft subtle glow highlight */
    transform: none; /* Keep box position completely static on hover over to prevent resizing */
}

.step-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.step-summary {
    font-size: 0.98rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Elegant absolute hover text blending into the background */
.step-hover-details-under {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding-top: 1.2rem;
    z-index: 5;
    text-align: left;
}

.step-hover-details-under p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0;
}

/* Fade in detailed narrative when hovered */
.chain-step-card:hover .step-hover-details-under {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- Values & Value Chain Responsiveness --- */
@media (max-width: 1024px) {
    .value-chain-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5rem;
    }
    
    .flow-connector-line {
        display: none; /* Hide connector on tablet/mobile wraps */
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .value-chain-steps {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .about-text-block h2 {
        font-size: 2.1rem;
    }

    /* Collapse Strategic Values Network to Stacked Card Deck on Mobile/Tablets */
    .values-network-container {
        height: auto !important;
        width: 100% !important;
        margin: 2rem auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: stretch !important;
    }

    .values-network-svg,
    .values-hub-black {
        display: none !important; /* Hide network SVG and center hub logo */
    }

    .values-network-container.has-active .value-pill,
    .value-pill {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        background: var(--bg-surface) !important;
        border-color: var(--border-color) !important;
        box-shadow: var(--card-shadow) !important;
        padding: 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        cursor: default !important;
        border-radius: 12px !important;
    }

    .value-pill:hover {
        border-color: var(--accent-secondary) !important;
        box-shadow: none;
    }

    .value-pill-title {
        font-family: var(--font-heading) !important;
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: var(--accent-primary) !important;
        margin-bottom: 0.6rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
    }

    .value-pill-desc-mobile {
        display: block !important;
        font-size: 0.94rem !important;
        line-height: 1.6 !important;
        color: var(--text-secondary) !important;
        margin: 0 !important;
        text-transform: none !important;
        font-weight: normal !important;
        text-align: left !important;
    }

    /* Value Chain steps mobile adjustment (prevent absolute overlay overlaps) */
    .chain-step-card {
        height: auto !important;
        margin-bottom: 1rem;
    }

    .step-hover-details-under {
        position: relative !important;
        top: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        padding-top: 1rem !important;
        border-top: 1px dashed rgba(255, 255, 255, 0.05) !important;
        margin-top: 0.6rem !important;
    }
}

/* ==========================================================================
   11. CUSTOM SUBPAGE THREE-COLUMN GRID & COMPONENT STYLING
   ========================================================================== */
.subpage-three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.grid-card {
    position: relative;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    box-shadow: none;
}

.grid-card.style-border-hover:hover {
    border-color: var(--accent-primary);
    box-shadow: none;
}

.grid-card-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.grid-card:hover .grid-card-icon-wrapper {
    background: var(--glow-color);
    border-color: var(--border-color);
}

.grid-card.style-border-hover:hover .grid-card-icon-wrapper {
    background: var(--glow-color);
    border-color: var(--border-color);
}

.grid-card-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.grid-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.grid-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

/* Discipline block layout styles */
.discipline-block-align {
    width: 100%;
}

.discipline-section {
    display: flex;
    align-items: start;
    gap: 2rem;
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.01);
}

.discipline-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glow-color);
    border: 1px solid var(--border-color);
    color: var(--accent-secondary);
    font-size: 1.2rem;
    font-weight: bold;
}

.discipline-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.discipline-content p {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

/* Purpose callout typography styling */
.purpose-statement-callout {
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.purpose-statement-callout:hover {
    border-color: var(--accent-secondary) !important;
}

/* Responsiveness media queries for new three-grid */
@media (max-width: 992px) {
    .subpage-three-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .discipline-section {
        padding: 2rem;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .subpage-three-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .discipline-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   12. OPERATIONAL PIPELINE VISUALIZATION & STRATEGIC FRAMEWORK STYLES
   ========================================================================== */
.maint-pipeline-section {
    padding: 7rem 0;
}

.maint-pipeline-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto 0 auto;
}

/* EKG Heartbeat Pipeline Container */
.maint-ekg-container {
    position: relative;
    width: 100%;
    height: 280px;
    margin: 0 auto 3.5rem auto;
    background: rgba(18, 30, 49, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-sizing: border-box;
    overflow: visible;
}

.maint-ekg-svg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Invisible guideline, only single glowing pulse dash travels */
.pipeline-bg-path,
.pipeline-progress-path {
    display: none !important;
}

.pipeline-pulse-path {
    display: block !important;
    stroke: var(--accent-secondary);
    stroke-width: 3.5px;
    stroke-linecap: round;
    stroke-dasharray: 60 1600;
    stroke-dashoffset: 1600;
    animation: flowPulseAnim 4.5s linear infinite;
    filter: drop-shadow(0 0 6px var(--accent-secondary));
}

@keyframes flowPulseAnim {
    0% {
        stroke-dashoffset: 1600;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Nodes Container & Mathematical Positioning */
.maint-ekg-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.maint-pipeline-node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 170px;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.maint-node-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid #ef4444;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    margin-bottom: 0.9rem;
    transition: transform 0.3s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.maint-node-circle svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    transition: stroke 0.2s ease, transform 0.2s ease;
}

.maint-gate-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    margin-bottom: 0.6rem;
    transition: all 0.2s ease;
}

.maint-node-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: color 0.2s ease;
    max-width: 155px;
}

/* Sequential Red-to-Green Heartbeat Verification Keyframes (4.5s Synchronized Loop) */
.node-circle-1 {
    animation: nodeGateColor1 4.5s linear infinite;
}
.gate-tag-1 {
    animation: gateTagColor1 4.5s linear infinite;
}

.node-circle-2 {
    animation: nodeGateColor2 4.5s linear infinite;
}
.gate-tag-2 {
    animation: gateTagColor2 4.5s linear infinite;
}

.node-circle-3 {
    animation: nodeGateColor3 4.5s linear infinite;
}
.gate-tag-3 {
    animation: gateTagColor3 4.5s linear infinite;
}

.node-circle-4 {
    animation: nodeGateColor4 4.5s linear infinite;
}
.gate-tag-4 {
    animation: gateTagColor4 4.5s linear infinite;
}

.node-circle-5 {
    animation: nodeGateColor5 4.5s linear infinite;
}
.gate-tag-5 {
    animation: gateTagColor5 4.5s linear infinite;
}

/* Gate 01: Turns Green at 10% */
@keyframes nodeGateColor1 {
    0%, 8% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    }
    12%, 85% {
        border-color: #10b981;
        background: rgba(16, 185, 129, 0.15);
        color: #10b981;
        box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
    }
    95%, 100% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    }
}
@keyframes gateTagColor1 {
    0%, 8% {
        border-color: rgba(239, 68, 68, 0.3);
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }
    12%, 85% {
        border-color: rgba(16, 185, 129, 0.4);
        background: rgba(16, 185, 129, 0.18);
        color: #10b981;
    }
    95%, 100% {
        border-color: rgba(239, 68, 68, 0.3);
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }
}

/* Gate 02: Turns Green at 30% */
@keyframes nodeGateColor2 {
    0%, 26% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    }
    32%, 85% {
        border-color: #10b981;
        background: rgba(16, 185, 129, 0.15);
        color: #10b981;
        box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
    }
    95%, 100% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    }
}
@keyframes gateTagColor2 {
    0%, 26% {
        border-color: rgba(239, 68, 68, 0.3);
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }
    32%, 85% {
        border-color: rgba(16, 185, 129, 0.4);
        background: rgba(16, 185, 129, 0.18);
        color: #10b981;
    }
    95%, 100% {
        border-color: rgba(239, 68, 68, 0.3);
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }
}

/* Gate 03: Turns Green at 50% */
@keyframes nodeGateColor3 {
    0%, 46% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    }
    52%, 85% {
        border-color: #10b981;
        background: rgba(16, 185, 129, 0.15);
        color: #10b981;
        box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
    }
    95%, 100% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    }
}
@keyframes gateTagColor3 {
    0%, 46% {
        border-color: rgba(239, 68, 68, 0.3);
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }
    52%, 85% {
        border-color: rgba(16, 185, 129, 0.4);
        background: rgba(16, 185, 129, 0.18);
        color: #10b981;
    }
    95%, 100% {
        border-color: rgba(239, 68, 68, 0.3);
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }
}

/* Gate 04: Turns Green at 70% */
@keyframes nodeGateColor4 {
    0%, 66% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    }
    72%, 85% {
        border-color: #10b981;
        background: rgba(16, 185, 129, 0.15);
        color: #10b981;
        box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
    }
    95%, 100% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    }
}
@keyframes gateTagColor4 {
    0%, 66% {
        border-color: rgba(239, 68, 68, 0.3);
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }
    72%, 85% {
        border-color: rgba(16, 185, 129, 0.4);
        background: rgba(16, 185, 129, 0.18);
        color: #10b981;
    }
    95%, 100% {
        border-color: rgba(239, 68, 68, 0.3);
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }
}

/* Gate 05: Turns Green at 85% */
@keyframes nodeGateColor5 {
    0%, 82% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    }
    87%, 92% {
        border-color: #10b981;
        background: rgba(16, 185, 129, 0.15);
        color: #10b981;
        box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
    }
    96%, 100% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    }
}
@keyframes gateTagColor5 {
    0%, 82% {
        border-color: rgba(239, 68, 68, 0.3);
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }
    87%, 92% {
        border-color: rgba(16, 185, 129, 0.4);
        background: rgba(16, 185, 129, 0.18);
        color: #10b981;
    }
    96%, 100% {
        border-color: rgba(239, 68, 68, 0.3);
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }
}

/* Panacea Blue Hover State Override (Does NOT disrupt continuous animation timeline) */
.maint-pipeline-node:hover .maint-node-circle {
    transform: scale(1.1);
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 22px rgba(14, 165, 233, 0.5) !important;
    background: rgba(14, 165, 233, 0.18) !important;
    color: #0ea5e9 !important;
}

.maint-pipeline-node:hover .maint-node-circle svg {
    stroke: #0ea5e9 !important;
    transform: scale(1.08);
}

.maint-pipeline-node:hover .maint-gate-tag {
    background: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.4) !important;
}

.maint-pipeline-node:hover .maint-node-title {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .maint-ekg-container {
        height: auto;
        padding: 3.5rem 1.5rem;
    }
    
    .maint-ekg-svg-container {
        display: none;
    }
    
    .maint-ekg-nodes {
        position: relative;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 3rem;
        align-items: flex-start;
        padding-left: 1.5rem;
        border-left: 2px dashed var(--border-color);
        pointer-events: auto;
    }
    
    .maint-pipeline-node {
        position: relative;
        left: auto !important;
        top: auto !important;
        transform: none;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1.5rem;
        pointer-events: auto;
    }
    
    .maint-node-circle {
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

/* Dedicated Glassmorphic Display Card */
.maint-details-display-card {
    position: relative;
    padding: 3.5rem 3.2rem;
    border-radius: 16px;
    background: var(--bg-card-glass);
    border: 1px solid var(--border-color);
    min-height: 420px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    margin-top: 2rem;
}

.maint-details-display-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
}

.maint-pane {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.maint-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.maint-pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.maint-pane-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #0ea5e9;
}

.maint-pane-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.maint-pane-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.maint-pane-intro {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.maint-controls-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.maint-controls-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.maint-controls-list li svg {
    width: 20px;
    height: 20px;
    stroke: #0ea5e9;
    flex-shrink: 0;
    margin-top: 2px;
}

.maint-controls-list strong {
    color: var(--text-primary);
}

/* Strategic Framework, Pillars, & Synergies */
.framework-section,
.pillars-section,
.synergy-section {
    padding: 7.5rem 0;
}

.split-framework-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
    margin-top: 4rem;
}

.framework-panel {
    padding: 4rem 3.2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}

.framework-panel:hover {
    transform: translateY(-4px);
}

.subpage-three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.subpage-three-grid .grid-card {
    padding: 3.2rem 2.8rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
    margin-top: 4rem;
}

.checklist-box {
    padding: 2.8rem 2.5rem;
    margin-top: 2.5rem;
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    border-left: none !important;
    padding-left: 0 !important;
    margin-top: 2rem;
}

.process-timeline .timeline-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 2.2rem 2.4rem;
    border-radius: 12px;
}

.process-timeline .step-badge {
    position: static;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(134, 196, 65, 0.12);
    border: 1px solid rgba(134, 196, 65, 0.35);
    color: var(--accent-secondary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    margin-top: 2px;
}

.process-timeline .step-body {
    flex: 1;
}

.process-timeline .step-body h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.process-timeline .step-body p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 900px) {
    .maint-pane-body {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .split-framework-grid,
    .subpage-three-grid,
    .details-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ==========================================================================
   13. FLOATING SCROLL INDICATOR WIDGET
   ========================================================================== */
.scroll-indicator-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(18, 30, 49, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 6px 6px 16px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.scroll-indicator-text {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.scroll-indicator-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--glow-color); /* Greenish-yellow overlay */
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    transition: all 0.3s ease;
    animation: scrollIndicatorPulseDown 2s infinite;
}

.scroll-indicator-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* Hover States */
.scroll-indicator-widget:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--accent-secondary);
    background: rgba(18, 30, 49, 0.95);
    box-shadow: none;
}

.scroll-indicator-widget:hover .scroll-indicator-text {
    color: var(--accent-secondary);
}

/* Scroll Up / Back to Top State overrides */
.scroll-indicator-widget.scroll-up-state {
    border-color: var(--border-color);
}

.scroll-indicator-widget.scroll-up-state .scroll-indicator-circle {
    background: var(--glow-color); /* Sky blue overlay */
    border-color: var(--border-color);
    color: var(--accent-primary);
    animation: scrollIndicatorPulseUp 2s infinite;
}

.scroll-indicator-widget.scroll-up-state:hover {
    border-color: var(--accent-primary);
    box-shadow: none;
}

.scroll-indicator-widget.scroll-up-state:hover .scroll-indicator-text {
    color: var(--accent-primary);
}

/* Keyframe Animations */
@keyframes scrollIndicatorPulseDown {
    0% {
        box-shadow: none;
    }
    70% {
        box-shadow: none;
    }
    100% {
        box-shadow: none;
    }
}

@keyframes scrollIndicatorPulseUp {
    0% {
        box-shadow: none;
    }
    70% {
        box-shadow: none;
    }
    100% {
        box-shadow: none;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .scroll-indicator-widget {
        bottom: 20px;
        right: 20px;
        padding: 5px 5px 5px 12px;
        gap: 8px;
    }
    .scroll-indicator-text {
        font-size: 0.72rem;
        letter-spacing: 0.03em;
    }
    .scroll-indicator-circle {
        width: 32px;
        height: 32px;
    }
    .scroll-indicator-arrow {
        width: 14px;
        height: 14px;
    }
}

/* ==========================================================================
   14. OPERATIONAL SYNERGIES CARD GRID
   ========================================================================== */
.synergy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
    width: 100%;
}

.synergy-card {
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.synergy-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    box-shadow: none;
}

.card-icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--glow-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.synergy-card:hover .card-icon-bubble {
    background: var(--glow-color);
    border-color: var(--border-color);
    color: var(--accent-primary);
}

.synergy-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.synergy-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 992px) {
    .synergy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .synergy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   15. RED-TO-GREEN SYNCHRONIZED TIMING KEYFRAMES (10s cycle)
   ========================================================================== */
@keyframes nodeColor1 {
    0%, 2% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.15);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }
    3%, 98% {
        border-color: var(--accent-secondary);
        background: var(--glow-color);
        box-shadow: none;
        color: var(--accent-secondary);
    }
    99%, 100% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.15);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }
}

@keyframes nodeColor2 {
    0%, 20% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.15);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }
    21%, 98% {
        border-color: var(--accent-secondary);
        background: var(--glow-color);
        box-shadow: none;
        color: var(--accent-secondary);
    }
    99%, 100% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.15);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }
}

@keyframes nodeColor3 {
    0%, 39% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.15);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }
    40%, 98% {
        border-color: var(--accent-secondary);
        background: var(--glow-color);
        box-shadow: none;
        color: var(--accent-secondary);
    }
    99%, 100% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.15);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }
}

@keyframes nodeColor4 {
    0%, 58% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.15);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }
    59%, 98% {
        border-color: var(--accent-secondary);
        background: var(--glow-color);
        box-shadow: none;
        color: var(--accent-secondary);
    }
    99%, 100% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.15);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }
}

@keyframes nodeColor5 {
    0%, 76% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.15);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }
    77%, 98% {
        border-color: var(--accent-secondary);
        background: var(--glow-color);
        box-shadow: none;
        color: var(--accent-secondary);
    }
    99%, 100% {
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.15);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }
}

@keyframes lineFlashAnim {
    0% {
        stroke: var(--accent-secondary);
        stroke-width: 2.5px;
        /* filter: none; */
    }
    /* Hit Gate 1 (3%) */
    2% {
        stroke: var(--accent-secondary);
        stroke-width: 2.5px;
        /* filter: none; */
    }
    3%, 4% {
        stroke: #fff;
        stroke-width: 4.5px;
        filter: drop-shadow(0 0 12px var(--accent-secondary)) drop-shadow(0 0 6px var(--accent-secondary));
    }
    5% {
        stroke: var(--accent-secondary);
        stroke-width: 2.5px;
        /* filter: none; */
    }
    
    /* Hit Gate 2 (21%) */
    20% {
        stroke: var(--accent-secondary);
        stroke-width: 2.5px;
        /* filter: none; */
    }
    21%, 22% {
        stroke: #fff;
        stroke-width: 4.5px;
        filter: drop-shadow(0 0 12px var(--accent-secondary)) drop-shadow(0 0 6px var(--accent-secondary));
    }
    23% {
        stroke: var(--accent-secondary);
        stroke-width: 2.5px;
        /* filter: none; */
    }
    
    /* Hit Gate 3 (40%) */
    39% {
        stroke: var(--accent-secondary);
        stroke-width: 2.5px;
        /* filter: none; */
    }
    40%, 41% {
        stroke: #fff;
        stroke-width: 4.5px;
        filter: drop-shadow(0 0 12px var(--accent-secondary)) drop-shadow(0 0 6px var(--accent-secondary));
    }
    42% {
        stroke: var(--accent-secondary);
        stroke-width: 2.5px;
        /* filter: none; */
    }
    
    /* Hit Gate 4 (59%) */
    58% {
        stroke: var(--accent-secondary);
        stroke-width: 2.5px;
        /* filter: none; */
    }
    59%, 60% {
        stroke: #fff;
        stroke-width: 4.5px;
        filter: drop-shadow(0 0 12px var(--accent-secondary)) drop-shadow(0 0 6px var(--accent-secondary));
    }
    61% {
        stroke: var(--accent-secondary);
        stroke-width: 2.5px;
        /* filter: none; */
    }
    
    /* Hit Gate 5 (77%) */
    76% {
        stroke: var(--accent-secondary);
        stroke-width: 2.5px;
        /* filter: none; */
    }
    77%, 78% {
        stroke: #fff;
        stroke-width: 4.5px;
        filter: drop-shadow(0 0 12px var(--accent-secondary)) drop-shadow(0 0 6px var(--accent-secondary));
    }
    79% {
        stroke: var(--accent-secondary);
        stroke-width: 2.5px;
        /* filter: none; */
    }
    
    /* Rest of loop */
    80%, 100% {
        stroke: var(--accent-secondary);
        stroke-width: 2.5px;
        /* filter: none; */
    }
}

/* ==========================================================================
   16. OPERATIONAL SYNERGIES TIGHT VIEWPORT OVERRIDES
   ========================================================================== */
.synergy-section.tight-section {
    padding: 3rem 0 1rem 0 !important;
}

.synergy-section.tight-section .section-header {
    margin-bottom: 1.5rem;
}

.synergy-section.tight-section .details-grid {
    gap: 3rem;
    align-items: start;
}

.synergy-section.tight-section .details-text-col h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.synergy-section.tight-section .details-text-col p {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.synergy-section.tight-section .checklist-box {
    margin-top: 1.2rem;
    padding: 1.2rem 1.5rem;
}

.synergy-section.tight-section .checklist-box h3 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

.synergy-section.tight-section .branded-checklist {
    gap: 0.7rem;
}

.synergy-section.tight-section .branded-checklist li {
    font-size: 0.88rem;
}

.synergy-section.tight-section .section-header-left {
    margin-bottom: 1rem;
}

.synergy-section.tight-section .section-header-left h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.synergy-section.tight-section .section-header-left p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.synergy-section.tight-section .process-timeline {
    gap: 1.8rem;
    margin-top: 1.8rem;
    padding-left: 0 !important;
    border-left: none !important;
}

.synergy-section.tight-section .timeline-step {
    padding: 2rem 2.2rem;
    gap: 1.6rem;
}

.synergy-section.tight-section .timeline-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.synergy-section.tight-section .timeline-step p {
    font-size: 0.95rem;
    line-height: 1.65;
}

.synergy-section.tight-section .step-badge {
    position: static;
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
}

/* --- Homepage About Summary Grid --- */
.about-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.about-summary-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2.2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    transition: var(--transition-smooth);
}

.about-summary-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.about-summary-card .step-num {
    margin-bottom: 0.5rem;
}

.about-summary-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.about-summary-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .about-summary-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   16. PHONE OPTIMIZATION STYLES (SMARTPHONES <= 480px)
   ========================================================================== */
@media (max-width: 480px) {
    /* Paddings & Spacing */
    .parallax-section, .service-section {
        padding: 3.5rem 0 2.5rem 0 !important;
    }
    
    .content-container {
        padding: 0 1.25rem !important;
    }

    .section-header {
        margin-bottom: 1.5rem !important;
    }

    /* Typography scale */
    .section-title {
        font-size: 1.65rem !important;
        letter-spacing: -0.01em !important;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    h1.hero-title {
        font-size: 1.95rem !important;
    }

    .hero-description {
        font-size: 0.95rem !important;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.82rem !important;
    }

    /* Navigation Header */
    .header-container {
        padding: 0.5rem 1.25rem !important;
    }

    .logo-image {
        height: 32px !important;
    }

    /* Hero Padding */
    #home {
        padding-top: 6.5rem !important;
    }

    /* Maintenance ops hub cards */
    .ops-hub-card {
        padding: 1.25rem !important;
        border-radius: 8px !important;
    }

    .ops-checklist li {
        font-size: 0.85rem !important;
    }

    /* System Selection Chevron mobile spacing */
    .chevron-step {
        padding: 1rem !important;
    }

    .chevron-title {
        font-size: 0.85rem !important;
    }

    /* Floating editor phone overlay optimization */
    .popout-window-modal {
        padding: 0 !important;
    }

    .popout-window {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        resize: none !important;
    }

    .popout-header {
        padding: 0.85rem 1.25rem !important;
    }

    .popout-body {
        padding: 1rem !important;
    }

    .popout-footer {
        padding: 0.85rem 1.25rem !important;
    }
}

/* --- FOOTER: HOVER-EXPANDABLE OVERLAY DRAWER --- */
.footer-snap-group {
    position: relative;
    height: 40px; /* Collapsed footprint height */
    width: 100%;
    background: transparent;
    z-index: 999;
}

.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px; /* Collapsed footprint showing ONLY the copyright bar */
    overflow: hidden;
    z-index: 1000;
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.site-footer:hover {
    height: 380px; /* Expands upward to reveal all content columns */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.footer-content {
    height: 340px;
    box-sizing: border-box;
    padding: 3rem 0 2rem 0;
}

.footer-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-base);
    width: 100%;
    box-sizing: border-box;
    padding: 0 1.5rem;
    z-index: 10;
}

.footer-bottom p {
    font-size: 0.72rem !important;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

/* Highlighted Click Link Style */
.disclaimer-link-highlight {
    color: var(--accent-primary) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.disclaimer-link-highlight:hover {
    color: var(--accent-secondary) !important;
    filter: brightness(1.2);
}

.disclaimer-link-icon {
    stroke: var(--accent-primary);
    transition: stroke 0.2s ease;
}

.disclaimer-link-highlight:hover .disclaimer-link-icon {
    stroke: var(--accent-secondary);
}

/* --- SUBPAGE IMPLEMENTATION LIFECYCLE TIMELINE --- */
.subpage-impl-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3.5rem;
    margin-top: 3.5rem;
    align-items: center;
}

/* Left Stepper Column */
.subpage-chain-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.subpage-chain-line {
    position: absolute;
    left: 20px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
}

.subpage-chain-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    z-index: 2;
    padding: 0.25rem 0;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.subpage-chain-node {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.subpage-chain-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-align: left;
}

/* Active & Hover States */
.subpage-chain-step:hover .subpage-chain-node {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: scale(1.05);
}

.subpage-chain-step:hover .subpage-chain-title {
    color: var(--text-primary);
    transform: translateX(3px);
}

.subpage-chain-step.active .subpage-chain-node {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-on-accent);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.subpage-chain-step.active .subpage-chain-title {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Right Details Panel */
.subpage-description-panel {
    height: 720px;
    position: relative;
    flex-grow: 1;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}

.subpage-description-panel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.subpage-desc-pane {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

.subpage-desc-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.subpage-pane-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.subpage-pane-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.subpage-pane-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.subpage-pane-duration {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.subpage-pane-duration svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-primary);
}

.subpage-pane-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    text-align: left;
}

/* Milestones Grid styling */
.milestones-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.milestones-title svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-primary);
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.milestone-card {
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.12);
    text-align: left;
    transition: border-color 0.25s;
}

.milestone-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
}

.milestone-card h4 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.milestone-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* Checklist Styling */
.checklist-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist-title svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-primary);
}

.subpage-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.subpage-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: left;
}

.subpage-checklist li svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Stepper Mobile Responsive Rules */
@media (max-width: 900px) {
    .subpage-impl-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .subpage-chain-container {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem 0;
        gap: 1.25rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    
    .subpage-chain-container::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }
    
    .subpage-chain-line {
        display: none;
    }
    
    .subpage-chain-step {
        flex: 0 0 auto;
        scroll-snap-align: start;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-color);
    }
    
    .subpage-chain-step.active {
        border-color: var(--accent-primary);
        background: rgba(16, 185, 129, 0.05);
    }
    
    .subpage-chain-node {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .subpage-chain-title {
        font-size: 0.8rem;
    }
    
    .subpage-description-panel {
        min-height: auto;
        height: auto;
    }
}

/* --- POP-OUT FLOATING RICH TEXT EDITOR TOOLBAR --- */
.popout-toolbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    flex-wrap: wrap;
}

.popout-toolbar .tb-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.popout-toolbar .tb-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
    border-color: rgba(16, 185, 129, 0.2);
}

.popout-toolbar .tb-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.popout-toolbar .tb-separator {
    width: 1px;
    height: 18px;
    background-color: var(--border-color);
    margin: 0 0.2rem;
}

.popout-toolbar .tb-select {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-size: 0.72rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.popout-toolbar .tb-select:hover {
    border-color: var(--accent-primary);
}

.popout-toolbar .tb-color-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.popout-toolbar .tb-color-picker {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 34px;
    height: 34px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.popout-rich-editor {
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    border-radius: 0 0 4px 4px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    min-height: 180px;
    height: calc(100% - 46px);
    overflow-y: auto;
    text-align: left;
    outline: none;
    box-sizing: border-box;
}

.popout-rich-editor[contenteditable="true"]:empty::before {
    content: attr(placeholder);
    color: var(--text-muted);
}

/* Bullet & Numbered List Styles inside Popout Editor */
.popout-rich-editor ul,
.popout-rich-editor ol {
    margin: 0.5rem 0 0.5rem 1.5rem;
    padding-left: 0.5rem;
}

.popout-rich-editor ul {
    list-style-type: disc !important;
}

.popout-rich-editor ol {
    list-style-type: decimal !important;
}

.popout-rich-editor li {
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    display: list-item !important;
}

/* --- INSIGHTS ARTICLE CARDS REDESIGN --- */
.research-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.card-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.btn-action-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-action-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.btn-synopsis {
    flex: 1 1 50%;
}

.btn-download {
    flex: 1 1 50%;
}

.btn-synopsis:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.btn-synopsis:hover svg {
    transform: scale(1.1);
}

.btn-download:hover {
    color: var(--text-on-accent);
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.btn-download:hover svg {
    transform: translateY(1px);
}

/* --- SYNOPSIS WINDOW / MODAL & MINIMIZED PILL --- */
.resizable-window {
    resize: both;
    overflow: hidden;
    min-width: 320px;
    min-height: 240px;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.modal-header-actions button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.modal-header-actions button:hover {
    color: var(--accent-primary);
}

.minimized-badge {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    background: var(--bg-card-glass);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 15px rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: minimizedGlow 3s infinite alternate;
}

.minimized-badge:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.3);
}

.minimized-badge svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-primary);
}

@keyframes minimizedGlow {
    0% { border-color: rgba(16, 185, 129, 0.25); }
    100% { border-color: rgba(16, 185, 129, 0.6); }
}





