/*
Theme Name: Good Peoples Ventures
Description: A stunning, award-winning WordPress theme with cinematic design for Good Peoples Ventures
Version: 2.1.5
Author: Good Peoples Ventures
Author URI: https://goodpeoplesventures.com
Text Domain: goodpeople-theme

Table of Contents:
1. CSS Custom Properties
2. Reset and Base Styles
3. Typography System
4. Layout System
5. Header & Navigation
6. Hero Section
7. Button Components
8. Card Components
9. Animation System
10. Responsive Design
11. WordPress Specific Styles
12. Blog Post Styles
13. Accessibility
*/

/* Google Fonts imported via functions.php for better CSP compliance */

/* ========================================
   1. CSS Custom Properties System
   ======================================== */


:root {
    /* Color System - GoodPeople Brand Palette */
    /* Brand Tokens (from Colorpallette.jpeg)
       Jordy Blue  #93BFEF
       Tufts Blue  #468BE6
       Alice Blue  #E9F5FF
       Cobalt Blue #1A5799
       Cool Black  #092F64
       Eerie Black #1F1F1F
    */
    --brand-jordy-blue: #93BFEF;
    --brand-tufts-blue: #468BE6;
    --brand-alice-blue: #E9F5FF;
    --brand-cobalt-blue: #1A5799;
    --brand-cool-black: #092F64;
    --brand-eerie-black: #1F1F1F;

    /* Waterline for iceberg video cropping (percentage from top) */
    --iceberg-waterline: 52%;

    /* Primary scale mapped to blues */
    --primary-50: var(--brand-alice-blue);
    --primary-100: var(--brand-alice-blue);
    --primary-200: var(--brand-jordy-blue);
    --primary-300: var(--brand-jordy-blue);
    --primary-400: var(--brand-tufts-blue);
    --primary-500: var(--brand-tufts-blue);
    --primary-600: var(--brand-cobalt-blue);
    --primary-700: var(--brand-cool-black);
    --primary-800: var(--brand-cool-black);
    --primary-900: var(--brand-cool-black);
    
    /* Secondary scale uses lighter-to-darker brand blues */
    --secondary-50: var(--brand-alice-blue);
    --secondary-100: var(--brand-alice-blue);
    --secondary-200: var(--brand-jordy-blue);
    --secondary-300: var(--brand-jordy-blue);
    --secondary-400: var(--brand-tufts-blue);
    --secondary-500: var(--brand-jordy-blue);
    --secondary-600: var(--brand-tufts-blue);
    --secondary-700: var(--brand-cobalt-blue);
    --secondary-800: var(--brand-cool-black);
    --secondary-900: var(--brand-cool-black);
    
    /* Accent scale emphasizes darker brand blues */
    --accent-50: var(--brand-alice-blue);
    --accent-100: var(--brand-jordy-blue);
    --accent-200: var(--brand-jordy-blue);
    --accent-300: var(--brand-tufts-blue);
    --accent-400: var(--brand-tufts-blue);
    --accent-500: var(--brand-cobalt-blue);
    --accent-600: var(--brand-cool-black);
    --accent-700: var(--brand-cool-black);
    --accent-800: var(--brand-eerie-black);
    --accent-900: var(--brand-eerie-black);
    
    /* Neutral Colors */
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: var(--brand-eerie-black);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    --gradient-secondary: linear-gradient(135deg, var(--accent-500), var(--primary-500));
    --gradient-dark: linear-gradient(135deg, var(--neutral-800), var(--neutral-900));
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* Typography - Safe fallbacks for all environments */
    --font-sans: 'General Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    
    /* Header height (for fixed header offset) */
    --header-h: 80px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-cinematic: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   2. Reset and Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Ensure anchors and snap align account for fixed header */
    scroll-padding-top: var(--header-h);
    overscroll-behavior-y: contain;
    margin: 0;
    padding: 0;
}

/* Enable section snapping only on the cinematic front page */
body.home {
    scroll-snap-type: y mandatory;
}

/* Prevent body scroll when mobile menu is open */
.no-scroll {
    overflow: hidden;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--neutral-700);
    background-color: var(--neutral-50);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ========================================
   3. Typography System
   ======================================== */
.text-display {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: white;
}

.text-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--neutral-900);
    position: relative;
}
.text-heading-white {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
    position: relative;
}

.text-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.text-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--neutral-600);
    font-weight: 400;
}

.text-body-white {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--white);
    font-weight: 400;
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

/* WordPress Admin Bar Fix */
#wpadminbar {
    display: none !important;
}

/* ========================================
   4. Layout System
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ========================================
   5. Header & Navigation
   ======================================== */

/* Premium Header Styling */
.site-header {
    background: rgba(17, 25, 40, 0.35);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all var(--transition-normal);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled {
    background: rgba(17, 25, 40, 0.55);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    position: relative;
}

/* Brand Styling */
.brand-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-title a { text-decoration: none; color: #fff; display: inline-flex; }
.site-title .brand-one-line { color: #fff; }

.brand-text {
    font-weight: 600;
    color: var(--neutral-800);
}

.brand-accent {
    font-weight: 800;
    color: var(--primary-600);
    font-size: 0.9em;
}

/* Brand Badge */
.brand-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Navigation Refinement */
.main-navigation {
    display: flex;
    list-style: none;
    gap: clamp(12px, 4vw, var(--space-xl));
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.main-navigation a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
    padding: var(--space-sm) 0;
    letter-spacing: 0.01em;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* underline indicator disabled by default */
    height: 0; /* prevent 2px line overlaying logo */
    background: transparent;
    transition: width var(--transition-normal);
    border-radius: 1px;
}

.main-navigation a:hover {
    color: var(--primary-600);
}

.main-navigation a:hover::after { width: 100%; height: 2px; background: var(--primary-600); }

/* Header Actions */
.header-actions { display: flex; align-items: center; }

.btn-sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-icon {
    font-size: 0.8em;
    transition: transform var(--transition-normal);
}

.btn-sm:hover .btn-icon {
    transform: translateX(2px);
}



/* ========================================
   6. Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
    background: transparent;
    margin-top: 0;
    padding-top: 0;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker toward bottom to avoid lower-edge bleed */
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.6) 80%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 2;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 var(--space-xl);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.hero h1 {
    font-size: clamp(2.4rem, 6.4vw, 4.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.hero p {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
    margin-right: var(--space-2xl);
    margin-top: var(--space-2xl);
    opacity: 1;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
    color: white;
    font-weight: 500;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-2xl);
}

.hero-actions .btn {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
}

/* Particle System */
.particle-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* ========================================
   7. Button Components
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* ========================================
   8. Card Components
   ======================================== */

/* Premium Card System */
.card-premium {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--transition-cinematic);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.card-premium:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.card-premium:hover::before {
    opacity: 1;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin: var(--space-3xl) 0;
}

.bento-grid-large {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.bento-grid-featured {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
}

.bento-grid-featured .card-premium:first-child {
    grid-row: span 2;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    color: var(--neutral-900);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.feature-card p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Stats Cards */
.stats-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-normal);
}

.stats-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: var(--space-sm);
    display: block;
}

.stats-label {
    color: var(--neutral-600);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.4);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: var(--radius-xl);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    color: var(--primary-600);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Service Items */
.service-item {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

.service-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Rubik's Cube Container */
.rubiks-cube-container {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--neutral-900);
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rubiks-cube-container:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.rubiks-cube-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Service Icon with Rubik's Cube */
.service-item .service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    min-height: 120px;
}

.service-item .service-icon i {
    font-size: 3rem;
    color: var(--primary-400);
}

.service-item .service-icon .rubiks-cube-container {
    margin: 0;
}

/* Rubik's Cube Card Special Styles */
.rubiks-cube-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.rubiks-cube-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.rubiks-controls {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    justify-content: center;
}

.rubiks-controls .btn {
    flex: 1;
    max-width: 120px;
    font-size: 0.875rem;
    padding: var(--space-sm) var(--space-md);
}

/* Responsive adjustments for services grid */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .rubiks-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .rubiks-controls .btn {
        max-width: 200px;
        width: 100%;
    }
}

/* Post Cards */
.post-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

.post-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.post-card h3 a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.post-card h3 a:hover {
    color: var(--primary-700);
}

.post-meta {
    color: var(--neutral-500);
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}

/* Main Content */
.main-content {
    padding: 0;
    margin: 0;
    position: relative;
}

/* Ensure non-home pages clear the fixed header */
body:not(.home) .main-content,
body:not(.home) .site-main {
    padding-top: var(--header-h);
}

/* Cinematic Footer */
.site-footer {
    background: var(--gradient-dark);
    color: white;
    padding: var(--space-3xl) 0 var(--space-lg);
    margin-top: var(--space-4xl);
    position: relative;
    overflow: hidden;
}
/* make video start flush at top */
.site-footer .iceberg-bg { top: 0; }

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    color: var(--neutral-100);
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

.footer-section a {
    color: var(--neutral-300);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-section a:hover {
    color: white;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: var(--neutral-300);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--neutral-300);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--neutral-700);
    padding-top: var(--space-lg);
    text-align: center;
    color: var(--neutral-400);
    position: relative;
    z-index: 1;
}

/* ========================================
   9. Animation System
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-cinematic);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll-delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll-delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll-delay-3 {
    transition-delay: 0.3s;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.pulsing {
    animation: pulse 2s ease-in-out infinite;
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ========================================
   10. Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .main-navigation {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero p {
        font-size: clamp(1rem, 3vw, 1.25rem);
    }
    
    .container {
        padding: 0 var(--space-lg);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .card {
        background: var(--neutral-50);
        border: 2px solid var(--neutral-900);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* ========================================
   11. WordPress Specific Styles
   ======================================== */
.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: var(--space-lg);
}

.alignright {
    float: right;
    margin-left: var(--space-lg);
}

/* Slide Deck System */
.slide { min-height: 100vh; padding-top: 0; display: flex; align-items: center; position: relative; }

/* Snap each slide cleanly to the viewport top */
/* Only snap slides on the cinematic front page */
body.home .slide {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: var(--header-h);
}

/* Slide navigation buttons */
.slide-nav { position: fixed; right: 16px; bottom: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.btn-circle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); background: rgba(0,0,0,0.35); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,0.25); transition: transform .2s ease, background .2s ease; }
.btn-circle:hover { transform: translateY(-2px); background: rgba(0,0,0,0.5); }
.btn-circle:active { transform: translateY(0); }

.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3xl);
    position: relative;
}

.slide-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-500);
    opacity: 0.3;
    line-height: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-2xl) 0;
}

.problem-item {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.problem-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.problem-icon {
    font-size: 2.5rem;
    color: var(--accent-500);
    margin-bottom: var(--space-md);
}

.problem-quote {
    margin-top: var(--space-3xl);
    text-align: center;
}

.problem-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--neutral-300);
    border-left: 4px solid var(--primary-500);
    padding-left: var(--space-lg);
    margin: 0;
}

/* Solution Section */
.solution-hero {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.solution-item {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.solution-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.solution-icon {
    font-size: 2.5rem;
    color: var(--primary-500);
    margin-bottom: var(--space-md);
}

/* Additional Sections */
.services-section,
.portfolio-section,
.testimonials-section,
.blog-section,
.contact-section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.services-grid,
.portfolio-grid,
.testimonials-grid,
.blog-grid {
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Services Grid - Force 2x2 layout for 4 items */
.services-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
}

.stat-item h3 {
    color: var(--primary-600);
    margin-bottom: var(--space-sm);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-500);
    margin-bottom: var(--space-md);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.portfolio-thumbnail {
    width: 100%;
    height: auto;
    transition: transform var(--transition-normal);
}

.portfolio-card:hover .portfolio-thumbnail {
    transform: scale(1.05);
}

.testimonial-content {
    margin-bottom: var(--space-lg);
}

.testimonial-content blockquote {
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--neutral-700);
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: var(--space-xs);
    color: var(--neutral-900);
}

.author-title,
.author-company {
    color: var(--neutral-600);
    font-size: 0.875rem;
    margin: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-details {
    margin-top: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-item i {
    color: var(--primary-500);
    font-size: 1.25rem;
    width: 20px;
}

.contact-form-element {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

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

.form-group input,
.form-group textarea {
    padding: var(--space-md);
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .services-grid,
    .portfolio-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .slide-header {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .slide-number {
        font-size: 3rem;
    }
    
    .problem-grid,
    .solution-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-video {
        object-position: center 25%;
    }
    
    .hero-content {
        padding: 0 var(--space-lg);
    }

    /* Mobile tweaks for slides 2 and 3 */
    .problem-hero .problem-hero-content { padding-top: 14vh; padding-left: clamp(16px, 5vw, 32px); padding-right: clamp(16px, 5vw, 32px); }
    .solution-hero .solution-hero-content { padding-top: 12vh; padding-left: clamp(16px, 5vw, 32px); padding-right: clamp(16px, 5vw, 32px); }
    .problem-hero .problem-title,
    .problem-hero .problem-copy,
    .solution-hero .solution-title,
    .solution-hero .solution-copy { text-align: left; }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--neutral-700);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pagination .current {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-500);
}

/* Fixed minimal pagination for scroll-snap sections */
.pagination--fixed {
    position: fixed;
    right: 12px;
    top: calc(var(--header-h) + 12px);
    z-index: 1000;
    flex-direction: column;
    margin-top: 0;
    gap: 8px;
}
/* Hide visual buttons; keep anchors functional when present */
.pagination--fixed { display: none; }
.pagination--fixed a {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.9rem;
    background: rgba(17,25,40,0.35);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.pagination--fixed a:hover {
    background: rgba(17,25,40,0.55);
}

/* ========================================
   12. Blog Post Styles
   ======================================== */
.blog-post {
    background: var(--background-primary);
}

.post-hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
    background: var(--gradient-dark);
    color: white;
    text-align: center;
}

.post-header {
    max-width: 800px;
    margin: 0 auto;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    opacity: 0.9;
}

.post-date {
    color: rgba(255, 255, 255, 0.8);
}

.post-category {
    color: rgba(255, 255, 255, 0.8);
}

.post-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-xl);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.post-featured-image {
    margin-top: var(--space-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    padding: var(--space-4xl) 0;
}

.content-wrapper {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--neutral-700);
}

.content-wrapper h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin: var(--space-2xl) 0 var(--space-lg);
    color: var(--neutral-900);
}

.content-wrapper h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin: var(--space-xl) 0 var(--space-md);
    color: var(--neutral-900);
}

.content-wrapper p {
    margin-bottom: var(--space-lg);
    font-size: 1.125rem;
    line-height: 1.8;
}

.content-wrapper ul {
    margin: var(--space-xl) 0;
    padding-left: var(--space-lg);
}

.content-wrapper li {
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--neutral-700);
}

.content-wrapper blockquote {
    border-left: 4px solid var(--primary-500);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--neutral-600);
    background: rgba(59, 130, 246, 0.05);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.post-footer {
    margin-top: var(--space-4xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--neutral-200);
}

.post-tags {
    margin-bottom: var(--space-2xl);
}

.tags-label {
    font-weight: 600;
    color: var(--neutral-700);
    margin-right: var(--space-sm);
}

.post-tags a {
    display: inline-block;
    background: var(--neutral-100);
    color: var(--neutral-700);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: var(--space-xs);
    margin-bottom: var(--space-xs);
    transition: all var(--transition-normal);
}

.post-tags a:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-1px);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--space-xl);
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--neutral-700);
    transition: all var(--transition-normal);
    border: 1px solid var(--neutral-200);
}

.nav-link:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-arrow {
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-title {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-next .nav-link {
    flex-direction: row-reverse;
    text-align: right;
}

/* Blog Index Styles */
.blog-posts {
    padding: var(--space-4xl) 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.blog-card {
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-content {
    padding: var(--space-2xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .post-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    opacity: 0.8;
}

.blog-card .post-date {
    color: var(--neutral-600);
}

.blog-card .post-category {
    color: var(--primary-600);
    font-weight: 500;
}

.blog-card .post-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    line-height: 1.3;
}

.blog-card .post-title a {
    color: var(--neutral-900);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.blog-card .post-title a:hover {
    color: var(--primary-600);
}

.blog-card .post-excerpt {
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    flex: 1;
}

.blog-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.6;
    margin-top: var(--space-lg);
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
}

.text-accent {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.7), rgba(37, 99, 235, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: var(--brand-tufts-blue);
    color: transparent;
    text-shadow: var(--brand-alice-blue);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-stats .stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: white;
    line-height: 1.2;
}

.hero-stats .stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 
 * Production Ready - Good Peoples Ventures Theme v2.0
 * ✅ All CSS properties validated
 * ✅ Cross-browser compatibility ensured
 * ✅ Performance optimized
 * ✅ Accessibility compliant
 * 📦 Ready for minification
 */

/* Bento Grid & Cards */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.bento-grid.bento-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.bento-grid.bento-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.bento-card {
    min-height: 260px;
    position: relative;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.bento-card--lg {
    grid-column: span 8;
    min-height: 460px;
}

.bento-card--bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 900px) {
    .bento-card--lg { grid-column: span 12; }
    .bento-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 1024px) {
    .bento-grid.bento-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .bento-grid, .bento-grid.bento-grid--3 { grid-template-columns: 1fr; }
    .bento-grid.bento-grid--4 { grid-template-columns: 1fr; }
}

.bento-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-2xl);
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.55) 75%);
    color: #fff;
}

.bento-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.bento-text {
    font-size: 1rem;
    opacity: 0.95;
}

.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl);
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.55) 85%);
    color: #fff;
}

.bento-content h4 {
    margin: 0 0 var(--space-xs) 0;
}

.bento-content p {
    margin: 0;
    font-size: 0.95rem;
}

/* Section 02 Cinematic Hero */
.section-02-hero {
    min-height: 640px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 6rem 2rem;
}

.section-02-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

.section-02-content {
    position: relative;
    z-index: 1;
}

.section-02-content .text-display {
    color: #fff;
    text-shadow: 0 6px 24px rgba(0,0,0,0.45);
}

.section-02-content .text-body {
    font-size: clamp(1.125rem, 2.2vw, 1.35rem);
    color: #fff;
    opacity: 0.95;
    max-width: 60ch;
}

/* Shared section hero video styles */
.section-hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.section-hero-video .section-video,
.section-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* ensure background videos never block form interactions */
}

/* Section 03 Cinematic Hero */
.section-03-hero {
    min-height: 640px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 6rem 0;
}

.section-03-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

.section-03-content {
    position: relative;
    z-index: 1;
}

.section-03-content .text-display {
    color: #fff;
    text-shadow: 0 6px 24px rgba(0,0,0,0.45);
}

.section-03-content .text-body {
    font-size: clamp(1.125rem, 2.2vw, 1.35rem);
    color: #fff;
    opacity: 0.95;
    max-width: 60ch;
}

/* Small hero bento cards */
.bento-card--hero-sm {
    min-height: 320px;
}

@media (min-width: 1024px) {
    .bento-card--hero-sm { min-height: 360px; }
}

/* Our Approach bento layout */
.approach-bento-grid {
    display: grid;
    grid-template-columns: 3fr 2fr; /* approx 60/40 split */
    gap: var(--space-2xl);
    align-items: stretch;
}

.approach-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-2xl);
    min-height: 100%;
}

.approach-card h3 { color: var(--neutral-900); }
.approach-card p { color: var(--neutral-600); flex: 1; margin-top: var(--space-md); }

/* Tall left card */
.approach-card--tall {
    min-height: 560px;
}

/* Right column stack */
.approach-card--top,
.approach-card--bottom { min-height: 260px; }

.approach-card--top { margin-bottom: var(--space-2xl); }

@media (max-width: 900px) {
    .approach-bento-grid {
        grid-template-columns: 1fr;
    }
    .approach-card--tall { min-height: 420px; }
    .approach-card--top { margin-bottom: var(--space-xl); }
}

/* Split Section (image/video left, content right) */
.split-section { padding: 0; }
.split-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; width: 100%; max-width: 1400px; margin: 0 auto; align-items: stretch; }
.split-media { position: relative; min-height: 70vh; border-radius: 1rem; overflow: hidden; }
.split-video { width: 100%; height: 100%; object-fit: cover; display: block; }

.split-panel { position: relative; padding: 3rem 2rem 5rem 2rem; }
.split-title { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; color: var(--neutral-900); }
.split-copy { font-size: 1.125rem; line-height: 1.7; color: var(--neutral-600); max-width: 60ch; }

.split-thumb { display: none; }
.split-thumb-video { width: 100%; height: 100%; object-fit: cover; display: block; }

.split-index { position: absolute; right: 2rem; bottom: 1.5rem; font-size: 4rem; font-weight: 800; color: rgba(59, 130, 246, 0.2); }

@media (max-width: 1024px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-media { min-height: 50vh; }
  .split-panel { padding: 2rem 1.5rem 4rem; }
  .split-thumb { width: 180px; height: 120px; top: 1rem; right: 1rem; }
  .split-index { font-size: 3rem; right: 1.25rem; bottom: 1rem; }
}

/* Reversed variant */
.split-section--reversed .split-grid { grid-template-columns: 1fr 1.2fr; }
.split-section--reversed .split-panel { order: 1; }
.split-section--reversed .split-media { order: 2; border-radius: 1rem; overflow: hidden; }
.split-section--reversed .split-thumb { left: 1.5rem; right: auto; }
.split-section--reversed .split-index { left: 2rem; right: auto; }

@media (max-width: 1024px) {
  .split-section--reversed .split-grid { grid-template-columns: 1fr; }
  .split-section--reversed .split-thumb { left: 1rem; }
  .split-section--reversed .split-index { left: 1.25rem; }
}

/* ========================================
   Feature Showcase (pagedesign2)
   ======================================== */
.showcase-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-3xl); align-items: start; }
.showcase-inset { margin: 0 0 var(--space-xl) 0; }
.showcase-inset-image { width: 100%; height: auto; display: block; border: 1px solid var(--neutral-200); padding: 4px; background: #fff; }
.showcase-copy { max-width: 56ch; }
.showcase-heading { font-size: clamp(1.6rem, 3.6vw, 2rem); line-height: 1.25; color: var(--neutral-900); }
.showcase-body { margin-top: var(--space-md); color: var(--neutral-600); }
.showcase-media { background: #fff; padding: 6px; border: 1px solid var(--neutral-200); }
.showcase-hero-image { width: 100%; height: auto; display: block; }

.meta-table { margin-top: var(--space-2xl); border-top: 1px solid var(--neutral-200); border-bottom: 1px solid var(--neutral-200); }
.meta-row { display: grid; grid-template-columns: 160px 1fr; gap: var(--space-lg); padding: var(--space-md) 0; border-top: 1px solid var(--neutral-200); }
.meta-row:first-child { border-top: none; }
.meta-label { color: var(--neutral-500); font-size: 0.95rem; }
.meta-value { color: var(--neutral-800); }

@media (max-width: 980px) {
    .showcase-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Overview Split (pagedesign3)
   ======================================== */
.overview-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-3xl); align-items: start; }
.overview-kicker { color: var(--neutral-500); font-size: 0.9rem; letter-spacing: 0.05em; margin-bottom: var(--space-sm); }
.overview-title { color: var(--neutral-900); font-size: clamp(1.8rem, 4.2vw, 2.4rem); }
.overview-body { margin-top: var(--space-md); max-width: 48ch; }
.overview-media { background: #fff; padding: 6px; border: 1px solid var(--neutral-200); }
.overview-image { width: 100%; height: auto; display: block; }
.meta-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); margin-top: var(--space-xl); color: var(--neutral-600); }
.meta-item { font-size: 0.95rem; }

@media (max-width: 980px) {
    .overview-grid { grid-template-columns: 1fr; }
    .meta-inline { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* ========================================
   Numbered Intro (pagedesign4)
   ======================================== */
.intro-grid { display: grid; grid-template-columns: 0.4fr 1fr; gap: var(--space-3xl); align-items: start; }
.intro-index { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; color: var(--neutral-400); line-height: 1; }
.intro-title-primary { color: var(--neutral-900); font-weight: 700; font-size: clamp(2rem, 4.8vw, 3rem); }
.intro-title-secondary { color: var(--neutral-400); font-weight: 600; font-size: clamp(2rem, 4.8vw, 3rem); }
.intro-body { margin-top: var(--space-md); max-width: 60ch; }
.intro-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); color: var(--neutral-600); margin: var(--space-xl) 0; }
.intro-media { margin-top: var(--space-xl); background: #fff; padding: 6px; border: 1px solid var(--neutral-200); }
.intro-image { width: 100%; height: auto; display: block; }

@media (max-width: 980px) {
    .intro-grid { grid-template-columns: 1fr; }
    .intro-meta { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* Iceberg video background utilities */
.section-with-iceberg,
.site-footer { position: relative; background: transparent; }

.iceberg-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; 
	/* Tuning variables */
	--iceberg-object-y: 50%;
	--iceberg-scale: 1;
	--iceberg-origin-y: 50%;
	--iceberg-offset-y: 0px;
}
.iceberg-bg video { width: 100%; height: 100%; object-fit: cover; object-position: center calc(var(--iceberg-object-y) + var(--iceberg-offset-y)); display: block; transform: scale(var(--iceberg-scale)); transform-origin: center var(--iceberg-origin-y); }

/* Show only above-water portion */
.iceberg-bg--above { clip-path: inset(0 0 calc(100% - var(--iceberg-waterline)) 0); }
/* Show only underwater portion */
.iceberg-bg--under { clip-path: inset(var(--iceberg-waterline) 0 0 0); }

/* Optional: subtle darken for readability */
.iceberg-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.35)); pointer-events: none; }

/* Quick presets */
.iceberg-pair { --iceberg-waterline: 52%; --iceberg-object-y: 0%; --iceberg-scale: 1; --iceberg-origin-y: 0%; --iceberg-offset-y: -6%; }
.iceberg--footer { }
.iceberg--cta { }
.iceberg--about { --iceberg-waterline: 52%; --iceberg-object-y: 52%; --iceberg-scale: 1.05; --iceberg-origin-y: 52%; }

/* Ensure content sits over the video */
.section-with-iceberg > *,
.site-footer .container,
.site-footer .footer-bottom { position: relative; z-index: 1; }

/* Footer CTA wrapper background behavior */
.footer-cta { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding-top: var(--header-h); }
.footer-cta .iceberg-bg { position: absolute; inset: 0; z-index: 0; }
.footer-cta .iceberg-bg, .footer-cta .gradient-overlay { pointer-events: none; }
.footer-cta > *:not(.iceberg-bg) { position: relative; z-index: 1; }
.footer-cta-hero-title { width: min(94vw, 1100px); margin: clamp(16px, 5vw, 32px) auto 0; text-align: center; color: #fff; padding-inline: clamp(12px, 4vw, 24px); }
.footer-cta-hero-title h2 { margin: 0; font-size: clamp(1.5rem, 6vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; text-shadow: 0 2px 12px rgba(0,0,0,0.35); line-height: 1.15; overflow-wrap: anywhere; word-break: normal; text-wrap: balance; }
.footer-cta-content { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 768px) {
  html { scroll-snap-type: none !important; }
  .footer-cta { height: auto !important; min-height: auto !important; overflow: visible !important; scroll-snap-align: none !important; padding-top: var(--header-h); }
  .footer-cta-hero-title { width: 100%; max-width: 640px; margin: clamp(14px, 6vw, 22px) auto clamp(8px, 3vw, 16px); padding-inline: clamp(16px, 6vw, 28px); }
  .footer-cta-hero-title h2 { font-size: clamp(1.35rem, 5.2vw, 2.2rem); line-height: 1.2; overflow-wrap: anywhere; text-wrap: balance; }
  .site-footer--merged { align-items: initial !important; }
}

/* Footer CTA global white text (except inputs) */
.footer-cta,
.footer-cta .contact-section,
.footer-cta .site-footer {
	color: var(--white);
}
.footer-cta h1,
.footer-cta h2,
.footer-cta h3,
.footer-cta h4,
.footer-cta h5,
.footer-cta h6,
.footer-cta p,
.footer-cta li,
.footer-cta a,
.footer-cta .footer-bottom p,
.footer-cta .footer-section h4,
.footer-cta .footer-section p { color: var(--white); }
.footer-cta .footer-section a { color: rgba(255,255,255,0.9); }
.footer-cta .footer-section a:hover { color: var(--white); }
.footer-cta .footer-bottom { border-top-color: rgba(255,255,255,0.35); }

/* Keep input fields readable (dark text on light background) */
.footer-cta .contact-form-element input,
.footer-cta .contact-form-element textarea {
	background: rgba(255,255,255,0.95);
	color: var(--neutral-900);
	border: 1px solid rgba(255,255,255,0.6);
}
.footer-cta .contact-form-element input::placeholder,
.footer-cta .contact-form-element textarea::placeholder { color: var(--neutral-600); }

/* Ensure contact form remains interactive over video backgrounds */
.footer-cta .contact-form-element, 
.footer-cta .contact-form-element * { pointer-events: auto; }
.footer-cta .contact-form-element input,
.footer-cta .contact-form-element textarea { cursor: text; }
.footer-cta .contact-form-element button.btn { cursor: pointer; }

/* Footer CTA stronger white text overrides */
.footer-cta .contact-info .section-title,
.footer-cta .contact-info .section-subtitle { color: #fff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.footer-cta .contact-info .section-subtitle { opacity: 0.95; }
.footer-cta .site-footer .footer-section h4,
.footer-cta .site-footer .footer-section p,
.footer-cta .site-footer .footer-section li,
.footer-cta .site-footer .footer-section a,
.footer-cta .site-footer .footer-bottom p { color: #fff !important; }
.footer-cta .site-footer .footer-section a { opacity: 0.9; }
.footer-cta .site-footer .footer-section a:hover { opacity: 1; }

/* Problem hero (Section 02) full-bleed video */
.problem-hero { position: relative; min-height: calc(100vh - var(--header-h)); padding-top: var(--header-h); display: flex; align-items: center; overflow: hidden; }
.problem-hero .section-hero-video { position: absolute; inset: 0; z-index: 0; }
.problem-hero .section-hero-video .section-video { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.problem-hero .gradient-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.85) 100%); }
.problem-hero .problem-hero-content { position: relative; z-index: 2; max-width: 900px; padding: min(8vh, 96px) 0; }
/* Add horizontal breathing room on small and medium widths */
.problem-hero .problem-hero-content { padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px); }
/* Raise slide 2 content a bit higher and align left like hero */
.problem-hero .container { display: flex; justify-content: flex-start; }
.problem-hero .problem-hero-content { padding-top: min(18vh, 160px); }
.problem-hero .problem-title,
.problem-hero .problem-copy { text-align: left; }
.problem-hero .problem-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.05; color: #fff; letter-spacing: -0.02em; text-shadow: 0 6px 24px rgba(0,0,0,0.35); margin-bottom: var(--space-md); }
.problem-hero .problem-copy { font-size: clamp(1.125rem, 2.4vw, 1.35rem); color: rgba(255,255,255,0.92); max-width: 60ch; text-shadow: 0 3px 16px rgba(0,0,0,0.35); }

/* Problem hero full-width container override */
.problem-hero .container { max-width: 100%; padding-left: 0; padding-right: 0; }

/* Problem hero edge-to-edge bleed when nested in a container */
.problem-hero { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Solution hero (Section 03) full-bleed video */
.solution-hero { position: relative; min-height: calc(100vh - var(--header-h)); padding-top: var(--header-h); display: flex; align-items: center; overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.solution-hero .section-hero-video { position: absolute; inset: 0; z-index: 0; }
.solution-hero .section-hero-video .section-video { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.solution-hero .gradient-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.85) 100%); }
.solution-hero .solution-hero-content { position: relative; z-index: 2; max-width: 900px; padding: min(8vh, 96px) 0; padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px); }
/* Left-align slide 3 like hero and nudge slightly upward */
.solution-hero .container { display: flex; justify-content: flex-start; }
.solution-hero .solution-hero-content { padding-top: min(12vh, 120px); }
.solution-hero .solution-title,
.solution-hero .solution-copy { text-align: left; }

/* Optional blinking caret for typewriter elements */
.typewriter { position: relative; }
.typewriter::after { content: '\258F'; display: inline-block; margin-left: 2px; opacity: 0.9; animation: caretBlink 1s step-start infinite; color: currentColor; }
@keyframes caretBlink { 50% { opacity: 0; } }
.solution-hero .solution-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.05; color: #fff; letter-spacing: -0.02em; text-shadow: 0 6px 24px rgba(0,0,0,0.35); margin-bottom: var(--space-md); }
.solution-hero .solution-copy { font-size: clamp(1.125rem, 2.4vw, 1.35rem); color: rgba(255,255,255,0.92); max-width: 60ch; text-shadow: 0 3px 16px rgba(0,0,0,0.35); }

/* Slide veil element */
#slide-veil { pointer-events: none; }

@media (max-width: 1024px) {
  .hero h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); }
  .hero p { font-size: clamp(0.95rem, 2vw, 1.1rem); }
  .hero-actions .btn { font-size: 0.9rem; padding: 0.65rem 1rem; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: clamp(1.8rem, 7vw, 3.2rem); line-height: 1.1; }
  .hero p { font-size: clamp(0.9rem, 2.6vw, 1rem); }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { font-size: 0.875rem; padding: 0.6rem 0.9rem; }
}

/* Force the intended line break in hero title */
.hero .hero-title-break { display: inline; }
@media (max-width: 9999px) {
  .hero .hero-title-break { display: block; }
}

/* Mobile header: hamburger toggle styles (JS already injects the button) */
@media (max-width: 900px) {
  .mobile-menu-toggle { display: inline-flex !important; }
  .main-navigation { position: absolute; top: 100%; left: 0; width: 100%; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0.5rem 0; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: all 0.3s ease; overflow-x: hidden; }
  .main-navigation.active { transform: translateY(0); opacity: 1; visibility: visible; }
}

/* Keep header glassmorphism subtle on mobile */
@media (max-width: 900px) {
  .site-header { background: rgba(17,25,40,0.35); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
}

@media (max-width: 600px) {
	/* Compact header spacing */
	.site-header > .container { padding-left: 14px !important; padding-right: 14px !important; }
	.header-content { padding: 8px 0; gap: 12px; }
	/* Smaller brand */
	.site-title { font-size: 1.125rem; }
	.brand-container img, .site-logo img { width: 22px; height: 22px; }
	/* Smaller action icons */
	.header-actions .social-link { width: 32px; height: 32px; border-radius: 8px; }
	.header-actions .social-link img { width: 18px; height: 18px; }
	/* Subtle hamburger */
	.mobile-menu-toggle { padding: 6px; }
	.mobile-menu-toggle span { width: 18px; height: 2px; margin: 2px 0; background: rgba(255,255,255,0.85); }
	/* Mobile nav panel background removed */
	.main-navigation { background: transparent; padding: 0.5rem 0; }
	/* Override inline link sizes in header */
	.site-header .nav-menu a { font-size: 1rem !important; }
}

@media (max-width: 768px) {
	:root { --header-h: 56px; }
	/* One-row header layout */
	.header-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
	.site-branding, .header-actions { flex: 0 0 auto; }
	.header-actions { display: flex; align-items: center; gap: 6px !important; }
	/* Slightly smaller icons */
	.header-actions .social-link { width: 26px; height: 26px; }
	.header-actions .social-link img { width: 15px; height: 15px; }

	/* Hero clearance and tighter scale */
	.hero { padding-top: calc(var(--header-h) + 8px); }
	.hero h1 { font-size: clamp(1.35rem, 5.6vw, 2.1rem); line-height: 1.05; }
	.hero p { font-size: clamp(0.9rem, 2.3vw, 0.95rem); margin-top: 6px; margin-bottom: 12px; }
	.hero-actions .btn { font-size: 0.8rem; padding: 0.48rem 0.8rem; }
	/* Hero stat lines responsive */
	.hero-stats .stat-item .stat-number { font-size: clamp(1rem, 3.6vw, 1.2rem); font-weight: 700; }
	.hero-stats .stat-item .stat-label { font-size: clamp(0.8rem, 2.8vw, 0.95rem); letter-spacing: 0.08em; }
}

/* Brand label swap: desktop shows full name; mobile shows GPV */
.site-title .brand-full { display: inline; }
.site-title .brand-short { display: none; }
@media (max-width: 768px) {
	/* Keep full brand visible on mobile */
	.site-title .brand-full { display: inline !important; }
	.site-title .brand-short { display: none !important; }
}

@media (max-width: 768px) {
	/* Default state: keep brand visible; hide nav + actions behind hamburger */
	.site-branding { display: flex !important; }
	.main-navigation, .header-actions { display: none !important; }
	.mobile-menu-toggle { display: inline-flex !important; }
	/* When menu is open: reveal all inline in a single row */
	.site-header.menu-open .mobile-menu-toggle { display: none !important; }
	.site-header.menu-open .site-branding,
	.site-header.menu-open .main-navigation,
	.site-header.menu-open .header-actions { display: flex !important; }
	.site-header.menu-open .header-content { gap: 12px; }
	.site-header.menu-open .main-navigation { position: static; transform: none; opacity: 1; visibility: visible; background: transparent; padding: 0; }
	.site-header.menu-open .nav-menu { display: flex; gap: 14px; }
	.site-header.menu-open .nav-menu a { font-size: 0.95rem !important; }
}

@media (max-width: 768px) {
	/* Keep brand visible even when menu is closed */
	.site-branding { display: flex !important; }
	.main-navigation { display: none !important; }
	.header-actions { display: flex !important; align-items: center; gap: 6px; }
	.header-actions .social-link { display: none !important; }
	.mobile-menu-toggle { display: inline-flex !important; }
	/* Expanded state */
	.site-header.menu-open .mobile-menu-toggle { display: none !important; }
	.site-header.menu-open .site-branding,
	.site-header.menu-open .main-navigation,
	.site-header.menu-open .header-actions { display: flex !important; }
	.site-header.menu-open .header-actions .social-link { display: inline-flex !important; }
	.site-header.menu-open .main-navigation { position: static; transform: none; opacity: 1; visibility: visible; background: transparent; padding: 0; }
	.site-header.menu-open .nav-menu { display: flex; gap: 14px; }
}

@media (max-width: 768px) {
	/* Closed state: show brand + hamburger with space between */
	.header-content { justify-content: space-between; }
	.mobile-menu-toggle { margin-left: 0; }

	/* Open state: force a single-row, inline header */
	.site-header.menu-open .header-content {
		flex-wrap: nowrap;
		align-items: center;
		gap: 10px;
		overflow-x: auto; /* safeguard if viewport is extremely narrow */
		white-space: nowrap;
	}
	.site-header.menu-open .site-branding,
	.site-header.menu-open .main-navigation,
	.site-header.menu-open .header-actions { flex: 0 0 auto; }
	.site-header.menu-open .main-navigation { white-space: nowrap; }
	.site-header.menu-open .nav-menu { display: inline-flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
	.site-header.menu-open .nav-menu li { display: inline-flex; }
	.site-header.menu-open .header-actions { gap: 8px; }
}

/* Defensive: visually hide skip links unless focused for accessibility-only behavior */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 10px; top: 10px; width: auto; height: auto; padding: 8px 12px; border-radius: 8px; background: var(--primary-600); color: #fff; z-index: 10000; }

/* ... existing code ... */
@media (max-width: 768px) {
	/* Ensure hamburger always visible at smallest widths */
	.mobile-menu-toggle { display: inline-flex !important; }
	.main-navigation { display: none !important; }
}

/* Hide only WP-injected anchors, keep .skip-link focusable */
a[href="#main-content"],
a[href="#content"],
a[href="#wp--skip-link--target"] {
	display: none !important;
}

@media (max-width: 768px) {
	/* Smaller hero stat typography for breathing room */
	.hero-stats .stat-item .stat-number { font-size: clamp(0.95rem, 3.2vw, 1.1rem); }
	.hero-stats .stat-item .stat-label { font-size: clamp(0.75rem, 2.4vw, 0.9rem); letter-spacing: 0.04em; }
    /* Footer CTA: keep hero title in normal flow on small screens */
    .footer-cta-hero-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 640px !important;
        margin: clamp(12px, 5vw, 20px) auto 0 !important;
        text-align: center !important;
        z-index: 1 !important;
    }
    .footer-cta-hero-title h2 { font-size: clamp(1.25rem, 5.5vw, 2rem) !important; line-height: 1.2 !important; }
    /* Ensure footer container doesn't force children to bottom */
    .site-footer--merged { align-items: initial !important; }
    .site-footer--merged .footer-cta-hero-title { align-self: center !important; }
    /* Prevent 200vh overflow on small screens */
    .footer-cta { min-height: 100svh !important; height: auto !important; }
}
/* ... existing code ... */

/* CONSOLIDATED MOBILE HEADER RULES */
@media (max-width: 768px) {
	:root { --header-h: 56px; }
	/* Closed: show brand + hamburger; hide second row */
	.header-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
	.header-row-1 { display: flex !important; }
	.header-row-2 { display: none !important; }
	.site-branding { display: flex !important; }
	.main-navigation { display: none !important; }
	.header-actions { display: flex !important; align-items: center; gap: 6px; }
	.header-actions .social-link { display: none !important; }
	.mobile-menu-toggle { display: inline-flex !important; margin-left: 0; }
	/* Brand always full */
	.site-title .brand-full { display: inline !important; }
	.site-title .brand-short { display: none !important; }
	/* Open: single-row fold-out */
	.site-header.menu-open .mobile-menu-toggle { display: none !important; }
	.site-header.menu-open .header-row-2 { display: flex !important; gap: 12px; align-items: center; }
	.site-header.menu-open .site-branding { display: flex !important; }
	.site-header.menu-open .main-navigation { display: flex !important; margin-right: auto; flex: 1 1 auto; min-width: 0; }
	.site-header.menu-open .header-actions { display: flex !important; gap: 8px; margin-left: auto; }
	.site-header.menu-open .header-actions .social-link { display: inline-flex !important; }
	.site-header.menu-open .header-content { gap: 10px; }
	.site-header.menu-open .main-navigation { position: static; transform: none; opacity: 1; visibility: visible; background: transparent; padding: 0; white-space: nowrap; overflow-x: hidden; }
	.site-header.menu-open .nav-menu { display: inline-flex; gap: clamp(8px, 3.5vw, 18px); list-style: none; margin: 0; padding: 0; }
	/* Hero tighten */
	.hero { padding-top: calc(var(--header-h) + 8px); }
	.hero h1 { font-size: clamp(1.35rem, 5.6vw, 2.1rem); line-height: 1.05; }
	.hero p { font-size: clamp(0.9rem, 2.3vw, 0.95rem); margin-top: 6px; margin-bottom: 12px; }
	.hero-actions .btn { font-size: 0.8rem; padding: 0.48rem 0.8rem; }
	.hero-stats .stat-item .stat-number { font-size: clamp(0.95rem, 3.2vw, 1.1rem); }
	.hero-stats .stat-item .stat-label { font-size: clamp(0.75rem, 2.4vw, 0.9rem); letter-spacing: 0.04em; }
}

/* Desktop header: force single-row layout */
@media (min-width: 901px) {
	.header-content { flex-wrap: nowrap !important; }
	.header-row { display: flex !important; align-items: center; width: auto !important; gap: 24px; }
	.mobile-menu-toggle { display: none !important; }
	.main-navigation { display: flex !important; position: static; transform: none; opacity: 1; visibility: visible; background: transparent; padding: 0; }
	.header-actions { display: flex !important; gap: 10px; }
}

@media (max-width: 768px){
  .hero h1 { font-size: clamp(2.2rem, 7.5vw, 3.2rem); line-height: 1.1; }
}