@font-face {
    font-family: 'Axiforma';
    src: url('fonts/axiforma/Kastelov - Axiforma Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Axiforma';
    src: url('fonts/axiforma/Kastelov - Axiforma Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Axiforma';
    src: url('fonts/axiforma/Kastelov - Axiforma SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Axiforma';
    src: url('fonts/axiforma/Kastelov - Axiforma Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* Base & Typography */
:root {
    /* Colors */
    --bg-ink: #080B0E;
    --bg-off-black: #131415;
    --text-snow: #FCFCFC;
    --text-faded: rgba(252, 252, 252, 0.5);

    --cta-primary: #7E7BFF;
    --cta-hover: #8F8DFF;
    --cta-active: #6D6AFF;

    --success: #00FF9B;
    --error: #FF4F4F;

    /* Gradients */
    --grad-violet-blue: linear-gradient(135deg, #D15AD8 0%, #2138C3 100%);
    --grad-purple-surface: linear-gradient(135deg, #2D1C40 0%, #361E4C 100%);
    --grad-teal-glow: linear-gradient(135deg, #1F4660 0%, #295A72 100%);
    --grad-ai-highlighter: linear-gradient(to right, #4DF6FF, #7E7BFF, #FF64F9, #7E7BFF, #4DF6FF);

    /* Dimensions */
    --radius-btn: 12px;
    --radius-card: 16px;
    --radius-glass: 24px;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Fonts */
    --font-head: 'Axiforma', sans-serif;
    --font-body: 'Figtree', sans-serif;
}

/* Light Mode Override */
.light-mode {
    --bg-ink: #F9FAFB;
    --bg-off-black: #FFFFFF;
    --text-snow: #111827;
    --text-faded: rgba(17, 24, 39, 0.6);
    --cta-primary: #6366F1;
    --grad-purple-surface: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    --grad-teal-glow: linear-gradient(135deg, #E0F2FE 0%, #BAe6FD 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    /* overflow-x: hidden; */
}

body {
    font-family: var(--font-body);
    line-height: 1.5;
    background-color: var(--bg-ink);
    color: var(--text-snow);
    width: 100%;
    position: relative;
    /* overflow-x: hidden; */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    line-height: 1.1;
    letter-spacing: -0.02em;
}


/* --- STYLE UPDATES --- */

/* 1. H1 Size Reduction */
.page-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }
}

h1 {
    font-size: 48px;
    font-weight: 700;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
    /* Removes bottom space for inline images */
}

/* Alternate Layout Utility */
.reverse-layout {
    /* No special properties needed for grid defaults, 
       we will handle order in media queries if specific swapping is needed 
       or just rely on source order for stacking and desktop grid placement.
    */
}

/* For the op-profile specifically */
.op-profile.reverse-layout .op-card-static {
    order: 2;
}

@media (max-width: 900px) {
    .op-profile.reverse-layout .op-card-static {
        order: 0;
        /* Reset order on mobile to stack naturally (image first usually) */
    }
}

/* 2. Team Card Hover Fix */
.card-face.card-back .card-body {
    margin-top: 0;
    /* Reset negative margin from front */
    justify-content: center;
    /* Center content vertically */
    padding: 32px;
}

/* 3. Solutions Slider Image Fix */
/* 3. Solutions Slider Image Fix - Removed to rely on parent clipping */
/* 3. Solutions Slider Image Fix - Explicit radius and contain */
.solution-card .solution-image {
    height: 100%;
    border-radius: 0 40px 40px 0;
    background: #111;
    overflow: hidden;
}

.solution-card .solution-image img {
    object-fit: contain;
    /* Fix header cutoff */
    border-radius: 0 40px 40px 0;
}

/* --- NEW ADDITIONS FOR UPDATES --- */

/* Mega Menu Styles */
/* Mega Menu Styles */
.nav-dropdown.mega-menu {
    position: fixed;
    top: 80px;
    /* Match nav height */
    left: 0;
    right: 0;
    width: 100%;
    /* Use 100% instead of 100vw to avoid scrollbar width issues */
    /* transform: none; Removed to allow transition */
    padding: 40px 0;
    box-sizing: border-box;
    background: rgba(10, 15, 20, 0.95);
    /* Ensure background is set */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fix for Mega Menu Hover Transform */
.nav-item:hover .nav-dropdown.mega-menu,
.nav-dropdown.mega-menu:hover {
    transform: translateY(0);
}

.mega-primary-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-link-standard {
    font-size: 16px;
    /* Matched to other dropdowns (usually 15-16px) */
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link-standard:hover {
    color: var(--primary);
}

.nav-dropdown.mega-menu .mega-primary-link {
    display: block;
    /* Ensure block for own line */
    font-size: 28px !important;
    /* Adjusted to 28px as requested */
    font-weight: 700;
    color: var(--text-snow);
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.1;
    margin-bottom: 8px;
}

.nav-dropdown.mega-menu .mega-primary-link:hover {
    color: var(--cta-primary);
    transform: translateX(10px);
}

.mega-secondary-head {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-faded);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.mega-secondary-list li a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* 5-Phase Method Updates */
.method-step {
    padding: 40px 32px;
    /* Added breathing room */
    display: flex;
    flex-direction: row;
    /* Keep row on desktop if that was default, or allow flex logic */
    align-items: center;
    /* Center vertically */
    min-height: 200px;
    /* Ensure some height similarity */
    height: 100%;
}

.method-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* OperatorX Section Increase */
/* OperatorX Section Increase */
.operator-x-section {
    min-height: 140vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Scroll Reveal Animation */
.fade-reveal {
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.fade-reveal.visible {
    opacity: 1;
}

/* Old scroll-reveal kept for legacy if needed, or replace */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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



/* 4. Frosted Apple FX (Talk to Dave) */
.frosted-apple {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 60px;
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.frosted-apple::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    opacity: 0.15;
    pointer-events: none;
}

/* 5. Sub-box Variants */

/* Variant 1: Standard (OperatorX Clean) */
.sub-variant-1 .os-submodule {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Variant 2: Glass/Frosted (HelloHandsome Research) */
.sub-variant-2 .os-submodule {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(126, 123, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
    /* Slightly larger padding */
}

.sub-variant-2 .os-submodule:hover {
    background: rgba(126, 123, 255, 0.1);
    transform: translateY(-2px) scale(1.02);
}

/* Variant 3: Tech/Minimal (ExoEngine Execution) - Slightly Larger */
.sub-variant-3 .os-submodule {
    background: #0F1115;
    border-left: 3px solid var(--cta-primary);
    border-top: none;
    border-right: none;
    border-bottom: none;
    padding: 18px 24px;
    /* Larger */
    border-radius: 4px;
    /* Sharper */
}

.sub-variant-3 .os-submodule:hover {
    background: #15181E;
    transform: translateX(5px);
}

/* Ensure variants fit */
.os-submodule-group.sub-variant-3 {
    gap: 16px;
    /* Increases spacing for larger feel */
}

/* Mobile fix for solution card */
@media (max-width: 1024px) {

    /* Adjust radius for stacked mobile view */
    .solution-content {
        border-radius: 40px 40px 0 0;
    }

    .solution-card .solution-image {
        border-radius: 0 0 40px 40px;
    }

    .solution-card .solution-image img {
        border-radius: 0 0 40px 40px;
        max-height: 400px;
        /* Limit height on mobile */
    }

    .frosted-apple {
        flex-direction: column;
        text-align: center;
    }
}


h2 {
    font-size: 40px;
    font-weight: 600;
}

h3 {
    font-size: 28px;
    font-weight: 500;
}

h4 {
    font-size: 20px;
    font-weight: 400;
}

@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }
}

.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: var(--space-md);
    display: inline-block;
    color: var(--cta-primary);
}

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

section {
    padding: var(--space-4xl) 0;
    position: relative;
}

/* Buttons */
.hero {
    overflow: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--cta-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(126, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(126, 123, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--cta-primary);
    color: var(--cta-primary);
}

.btn-secondary:hover {
    background-color: rgba(126, 123, 255, 0.1);
    transform: translateY(-2px);
}

/* Utilities */
.text-center {
    text-align: center;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {

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

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }

    .desktop-only-or {
        display: none;
    }
}

.desktop-only-or {
    color: var(--text-faded);
    font-size: 14px;
    margin: 0 8px;
}

/* Glass & Boxes */
.frosted-glass {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.off-black-box {
    background: var(--bg-off-black);
    border-radius: var(--radius-card);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.off-black-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

/* AI Highlighter Text */
.ai-highlighter {
    background: var(--grad-ai-highlighter);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    display: inline-block;
    /* Ensure clip works on inline elements */
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all 0.3s ease, transform 0.3s ease-in-out;
    /* Added transform transition */
}

/* Hide Nav on Scroll Down */
.nav-hidden {
    transform: translateY(-100%);
}

nav.scrolled {
    background-color: rgba(8, 11, 14, 0.85);
    backdrop-filter: blur(15px);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
    display: flex;
    justify-content: flex-start;
    /* Changed from space-between */
    align-items: center;
    gap: 40px;
    /* Space between logo and links */
}

.logo {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.05em;
    color: var(--text-snow);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
    flex: 1;
    /* Allow it to fill space */
}

/* Push Contact and subsequent items to the right on Desktop */
@media (min-width: 769px) {
    .nav-link-simple {
        margin-left: auto;
    }
}

.nav-links a {
    color: var(--text-snow);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-snow);
    display: flex;
    align-items: center;
    padding: 8px;
    opacity: 0.8;
}

.theme-toggle:hover {
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Hide for now, can add mobile menu later if requested */
    .mobile-menu-btn {
        display: block;
    }

    /* Placeholder */
}


/* --- BOARDROOM SLIDER (C-Suite) --- */
.boardroom-slider {
    width: 100%;
    overflow: hidden;
}

.boardroom-slider .slider-section {
    position: relative;
    padding: 0;
    /* Align with container logic */
}

.boardroom-slider .slider-container {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

/* Gradient fade sides */
.boardroom-slider .slider-container::before,
.boardroom-slider .slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 5;
    pointer-events: none;
}

.boardroom-slider .slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-ink) 0%, rgba(8, 11, 14, 0) 100%);
}

.boardroom-slider .slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-ink) 0%, rgba(8, 11, 14, 0) 100%);
}

.boardroom-slider .slider-track {
    /* No padding here, handled by wrapper positioning */
}

.boardroom-slider .slider-wrapper {
    display: flex;
    gap: 24px;
    will-change: transform;
    /* Transformation handled by JS */
}

.boardroom-slider .leader-card {
    flex: 0 0 380px;
    width: 380px;
    height: 600px;
    background: var(--bg-off-black);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.boardroom-slider .leader-card.inactive {
    opacity: 0.5;
    transform: scale(0.95);
    filter: grayscale(0.6);
}

.boardroom-slider .leader-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(126, 123, 255, 0.3);
    z-index: 10;
}

.boardroom-slider .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.boardroom-slider .card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.boardroom-slider .video-standby {
    z-index: 1;
    opacity: 1;
}

.boardroom-slider .video-talking {
    z-index: 2;
    opacity: 0;
}

.boardroom-slider .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 120px 24px 32px;
    z-index: 10;
}

.boardroom-slider .leader-name {
    font-size: 15px;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.boardroom-slider .leader-role {
    color: var(--cta-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.boardroom-slider .leader-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    line-height: 1.5;
}

.hire-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}

.hire-button:hover {
    background: var(--cta-primary);
    border-color: var(--cta-primary);
}

/* Nav Buttons (Shared style) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(30, 35, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--cta-primary);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.boardroom-slider .prev {
    left: 20px;
}

.boardroom-slider .next {
    right: 20px;
}

@media (max-width: 768px) {
    .boardroom-slider .leader-card {
        flex: 0 0 300px;
        width: 300px;
        height: 500px;
    }

    .boardroom-slider .nav-btn {
        display: none;
    }

    /* Use swipe on mobile */
    .boardroom-slider .slider-container::before,
    .boardroom-slider .slider-container::after {
        width: 40px;
    }
}


/* --- SPECIALIST TEAM (Flip Cards) --- */
.team-grid {
    width: 100%;
    perspective: 1000px;
}

.op-card-wrapper {
    height: 440px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
}

.op-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.op-card-wrapper:hover .op-card {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-card);
    background: var(--bg-off-black);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
    background: #0F1115;
}

.card-back .btn {
    margin-top: 20px;
}

.card-banner {
    height: 100px;
    background: linear-gradient(180deg, rgba(126, 123, 255, 0.15) 0%, transparent 100%);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -60px;
    flex: 1;
}

.avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg-off-black);
    background: #000;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

.op-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.op-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-faded);
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 16px;
}

.pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pill {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}


/* --- SOLUTIONS SLIDER --- */
.solutions-section {
    width: 100%;
    min-height: 900px;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #050505;
}

.solutions-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.solutions-track {
    display: flex;
    height: 100%;
    cursor: grab;
    will-change: transform;
}

.solutions-tagline {
    margin-top: 16px;
    font-size: 24px;
    color: var(--text-faded);
    font-weight: 500;
    max-width: 480px;
    margin-inline: auto;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .solutions-tagline {
        font-size: 18px;
        padding: 0 24px;
        max-width: 100%;
    }
}

.solutions-track:active {
    cursor: grabbing;
}

.solution-slide {
    flex-shrink: 0;
    width: 80vw;
    max-width: 1100px;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
    opacity: 0.4;
    transform: scale(0.9);
}

.solution-slide.active {
    opacity: 1;
    transform: scale(1);
}

.solution-card {
    width: 100%;
    height: 600px;
    /* Fixed height for uniformity */
    background: #111;
    border-radius: 40px;
    overflow: hidden;
    /* Force GPU to fix border-radius clipping on some browsers */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.solution-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #111;
    border-radius: 40px 0 0 40px;
}

.solution-image {
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover to contain */
    object-position: center;
    transition: transform 0.8s ease;
}

.solution-slide.active img {
    transform: scale(1.05);
}

.sol-tag {
    color: var(--cta-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 24px;
}

.sol-title {
    font-size: 48px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.sol-desc {
    font-size: 20px;
    color: var(--text-faded);
    margin-bottom: 40px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .solution-card {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 1fr;
        height: auto;
        /* Allow growing on mobile */
    }

    .solution-slide {
        width: 90vw;
    }

    .solution-content {
        padding: 40px;
    }

    .sol-title {
        font-size: 32px;
    }
}


/* --- SITUATION ROOM (Lanyard) --- */
.lanyard-section {
    background: radial-gradient(circle at center, #1a1d26 0%, #080B0E 70%);
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.situation-room-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-2xl);
    perspective: 1200px;
}

.sr-dashboard {
    width: 900px;
    height: 500px;
    background: rgba(19, 20, 21, 0.9);
    border-radius: 24px;
    border: 1px solid rgba(126, 123, 255, 0.2);
    box-shadow: 0 0 80px rgba(126, 123, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotateX(10deg);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.sr-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(126, 123, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 123, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.sr-header {
    height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: space-between;
}

.sr-status {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: var(--success);
    font-family: monospace;
}

.sr-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
}

.sr-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: calc(100% - 60px);
}

.sr-main-feed {
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto;

    /* Hide scrollbar for Chrome/Safari/Opera */
    &::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sr-feed-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* RevarkOS Grid Polish */
.revarkos-grid .off-black-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sr-feed-avatar {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
}

.sr-feed-text {
    font-size: 12px;
    color: var(--text-faded);
}

.sr-feed-text strong {
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.sr-sidebar {
    padding: 24px;
}

.sr-agent {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 8px;
}

.sr-agent.active {
    background: rgba(126, 123, 255, 0.1);
    border: 1px solid rgba(126, 123, 255, 0.2);
}

.sr-agent-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.sr-agent-role {
    font-size: 12px;
    color: var(--text-faded);
    text-transform: uppercase;
}

/* Floating Cards Effect */
.sr-card-float {
    position: absolute;
    width: 180px;
    padding: 12px;
    background: rgba(30, 30, 40, 0.9);
    border: 1px solid var(--cta-primary);
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.sr-card-1 {
    top: 20%;
    left: -60px;
    animation-delay: 0s;
}

.sr-card-2 {
    bottom: 20%;
    right: -60px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* --- FOOTER --- */
footer {
    padding: var(--space-4xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: var(--space-4xl);
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--text-snow) !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* --- LOGO TICKER --- */
.logo-ticker-section {
    padding: var(--space-xl) 0;
    overflow: hidden;
    background: transparent;
    opacity: 0.7;
    margin-top: -60px;
    /* Pull up into hero slightly or just below */
    position: relative;
    width: 100%;
    margin-top: 60px;
    /* Added spacing from preceding section */
    padding: 0 0 60px 0;
    /* Added spacing after slider */
    background: transparent;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-ticker-wrapper {
    display: flex;
    gap: var(--space-4xl);
    width: max-content;
    animation: ticker 40s linear infinite;
}

.logo-item {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(1.5);
    opacity: 0.5;
    transition: all 0.3s;
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- 5-PHASE METHOD (Vertical/Horizontal Flow) --- */
.method-container {
    padding: var(--space-4xl) 0;
}

.method-step {
    display: flex;
    gap: var(--space-lg);
    padding: 40px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s;
    align-items: center;
    min-height: 200px;
}

.method-step:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.method-step:hover {
    background: rgba(255, 255, 255, 0.02);
}

.method-number {
    font-size: 16px;
    color: var(--cta-primary);
    font-weight: 700;
    min-width: 120px;
    letter-spacing: 0.1em;
}

.method-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #fff;
}

.method-content p {
    font-size: 16px;
    color: var(--text-faded);
    line-height: 1.6;
    max-width: 800px;
}

/* --- REVIEWS GRID --- */
.review-card {
    background: var(--bg-off-black);
    padding: var(--space-lg);
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-quote {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.review-info strong {
    display: block;
    color: #fff;
    font-size: 14px;
}

.review-info span {
    font-size: 12px;
    color: var(--text-faded);
}

/* --- REVARKOS ARCHITECTURE VISUAL (NEW) --- */
.revarkos-section {
    background: radial-gradient(circle at center, #1a1d26 0%, #080B0E 70%);
    padding: var(--space-4xl) 0;
    overflow: hidden;
    position: relative;
}

.revarkos-visual-wrapper {
    perspective: 1200px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-xl);
}

.revarkos-board {
    width: 1000px;
    height: 550px;
    background: rgba(19, 20, 21, 0.8);
    border-radius: 32px;
    border: 1px solid rgba(126, 123, 255, 0.2);
    box-shadow:
        0 0 100px rgba(126, 123, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotateX(20deg) scale(0.9);
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 40px;
    transition: transform 0.5s ease;
}

.revarkos-board:hover {
    transform: rotateX(10deg) scale(0.95);
}

/* Core Node (Top) */
.os-core-node {
    width: 320px;
    background: linear-gradient(135deg, rgba(8, 11, 14, 0.9), rgba(126, 123, 255, 0.1));
    border: 1px solid var(--cta-primary);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(126, 123, 255, 0.2);
    z-index: 2;
    margin-bottom: 20px;
}

.os-core-logo {
    width: 56px;
    height: 56px;
    background: var(--cta-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    color: white;
    margin: 0 auto 12px;
    box-shadow: 0 0 20px rgba(126, 123, 255, 0.5);
}

.os-core-node h3 {
    font-size: 24px;
    margin: 0;
}

.os-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 155, 0.1);
    border: 1px solid rgba(0, 255, 155, 0.3);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    color: #00FF9B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 16px;
}

.os-pulse-dot {
    width: 8px;
    height: 8px;
    background: #00FF9B;
    border-radius: 50%;
    box-shadow: 0 0 8px #00FF9B;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Connector Lines */
.os-connectors {
    flex: 1;
    width: 80%;
    position: relative;
    /* Drawing lines using borders */
}

/* Central vertical trunk */
.os-line-trunk {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 50%;
    background: linear-gradient(to bottom, var(--cta-primary), rgba(255, 255, 255, 0.1));
    transform: translateX(-50%);
}

/* Horizontal branch */
.os-line-branch {
    position: absolute;
    top: 50%;
    left: 10%;
    /* Connects left module center to right module center roughly */
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

/* Drop lines to modules */
.os-line-drop-left,
.os-line-drop-right,
.os-line-drop-center {
    position: absolute;
    top: 50%;
    width: 2px;
    height: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.os-line-drop-left {
    left: 10%;
}

.os-line-drop-right {
    right: 10%;
}

.os-line-drop-center {
    left: 50%;
    transform: translateX(-50%);
}


/* Modules Grid (Bottom) */
.os-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.os-module {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.os-module:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(126, 123, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.os-module-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--cta-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.os-module h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #fff;
}

.os-module p {
    font-size: 12px;
    color: var(--text-faded);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.os-module .module-desc {
    font-size: 16px;
    text-transform: none;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .revarkos-board {
        width: 95vw;
        height: auto;
        transform: none;
        margin-top: 40px;
    }

    .revarkos-board:hover {
        transform: none;
    }

    .revarkos-visual-wrapper {
        height: auto;
        perspective: none;
    }

    .os-modules-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }

    .os-connectors {
        display: none;
    }

    .os-core-node {
        width: 100%;
        max-width: 320px;
    }
}

/* Animated Data Particles */
.data-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    z-index: 5;
    opacity: 0;
}

/* Animations for particles */
/* Center Flow Down */
.p-center {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    animation: flow-down-center 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Branch Left Flow */
.p-left {
    top: 50%;
    left: 50%;
    animation: flow-branch-left 3s infinite cubic-bezier(0.4, 0, 0.2, 1) 1s;
}

/* Branch Right Flow */
.p-right {
    top: 50%;
    left: 50%;
    animation: flow-branch-right 3s infinite cubic-bezier(0.4, 0, 0.2, 1) 1.5s;
}

@keyframes flow-down-center {
    0% {
        top: 0;
        opacity: 1;
    }

    45% {
        top: 50%;
        opacity: 1;
    }

    /* Hit branch */
    55% {
        top: 50%;
        opacity: 1;
    }

    /* Pause slightly/turn */
    100% {
        top: 100%;
        opacity: 0;
    }

    /* Go to center bottom */
}

@keyframes flow-branch-left {
    0% {
        left: 50%;
        opacity: 0;
    }

    10% {
        left: 50%;
        opacity: 1;
    }

    50% {
        left: 10%;
        opacity: 1;
    }

    /* Travel to left node horiz */
    100% {
        left: 10%;
        top: 100%;
        opacity: 0;
    }

    /* Drop down */
}

@keyframes flow-branch-right {
    0% {
        left: 50%;
        opacity: 0;
    }

    10% {
        left: 50%;
        opacity: 1;
    }

    50% {
        right: 10%;
        left: auto;
        opacity: 1;
    }

    /* Travel to right node horiz */
    100% {
        right: 10%;
        left: auto;
        top: 100%;
        opacity: 0;
    }
}

/* COMPACT MODE & LAYERS */
.revarkos-board.compact {
    padding: 30px;
    height: auto;
    min-height: 600px;
}

.os-layer-1 {
    margin-bottom: 30px;
}

/* Core */
.os-layer-2 {
    margin-bottom: 40px;
}

/* Modules */
.os-layer-3 {}

/* Benefits */

/* Benefit Nodes */
.os-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.os-benefit-node {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px dashed rgba(0, 255, 155, 0.2);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.os-benefit-node:hover {
    border-color: #00FF9B;
    background: rgba(0, 255, 155, 0.05);
    transform: translateY(-3px);
}

.benefit-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #00FF9B;
    text-shadow: 0 0 10px rgba(0, 255, 155, 0.4);
}

.os-benefit-node h5 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 600;
}

.os-benefit-node p {
    font-size: 11px;
    color: var(--text-faded);
    line-height: 1.3;
}

/* Connectors Layer 2 to 3 */
.os-connectors-lower {
    position: absolute;
    top: auto;
    bottom: 120px;
    /* Adjust based on benefit node height */
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
}

.os-line-drop-lower {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(0, 255, 155, 0.2));
}

/* Positions for lower drops corresponding to grid columns */
.drop-l2-1 {
    left: 16.66%;
}

.drop-l2-2 {
    left: 50%;
}

.drop-l2-3 {
    left: 83.33%;
}

/* Compact Adjustments */
.revarkos-board.compact .os-core-node {
    padding: 16px;
    width: 260px;
    margin-bottom: 10px;
}

.revarkos-board.compact .os-core-logo {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.revarkos-board.compact .os-module {
    padding: 20px 16px;
}

.revarkos-board.compact .os-module-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
}

.revarkos-board.compact .os-module h4 {
    font-size: 16px;
}

.revarkos-board.compact .os-module p {
    font-size: 11px;
}

/* REVARKOS VISUAL REFINEMENTS */
.revarkos-visual-wrapper {
    perspective: none !important;
    /* Flattened */
    height: auto;
    min-height: 500px;
    padding: 20px 0;
}

.revarkos-board.flat {
    transform: none !important;
    /* No rotation */
    width: 100%;
    max-width: 900px;
    background: transparent;
    /* Remove heavy board background for cleaner look */
    box-shadow: none;
    border: none;
    padding: 0;
}

/* Connectors for Flat Layout */
.os-connectors-flat {
    position: relative;
    height: 60px;
    width: 60%;
    margin: 0 auto;
}

.os-line-v {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--cta-primary), rgba(255, 255, 255, 0.1));
}

.os-line-v.center {
    left: 50%;
}

.os-line-h {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Animation Classes */
.os-anim-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.os-anim-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Integrations Layer */
.os-integrations-layer {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    position: relative;
}

.os-integrations-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faded);
    margin-bottom: 20px;
    display: block;
}

.os-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.os-logo-item {
    width: 32px;
    height: 32px;
    fill: currentColor;
    color: white;
}

.os-logo-item img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
}

/* Refined Modules */
.os-module.flat-mode {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
}

/* REVARKOS TREE EXPANSION */

/* LAYER 3 - The Branches underneath modules */
.os-submodule-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding-top: 20px;
    /* Increased to allow line visibility */
    position: relative;
    width: 100%;
}

/* Connectors from module to submodules */
.os-line-drop-sub {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 20px;
    /* Connects module bottom to first submodule top */
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.os-submodule {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    max-width: 280px;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.os-submodule:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(126, 123, 255, 0.3);
    transform: translateX(5px);
}

.os-sub-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--cta-primary);
    flex-shrink: 0;
}

.os-submodule h5 {
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    color: #eee;
}

.os-submodule span {
    display: block;
    font-size: 11px;
    color: var(--text-faded);
    margin-top: 2px;
}

/* Fix overlaps by spacing grid columns better or scrolling */
.os-modules-grid.expanded {
    align-items: start;
    gap: 10px;
    /* Reduce gap between columns if screen space is tight, or rely on responsive grid */
}

/* Connector tweaks */
.os-anim-element {
    transition-duration: 0.6s;
}

/* Responsive Grid to avoid overlap */
@media (min-width: 1024px) {
    .os-modules-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 equal cols */
        gap: 0;
        /* REMOVE GAP for alignment */
    }

    .revarkos-visual-wrapper {
        padding: 0 40px;
        overflow-x: visible;
    }

    .os-column {
        padding: 0 15px;
        /* Use padding for spacing instead of gap */
    }
}

/* REVARKOS FIXES - REMOVE IFRAME SCROLL */
.revarkos-visual-wrapper {
    overflow: visible !important;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Fix grid alignment and spacing */
.os-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    /* REMOVE GAP */
    width: 100%;
    margin-top: 0;
    justify-content: center;
}

/* Ensure column wrapper centers content */
.os-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 0 10px;
    /* Default padding for mobile/desktop base */
}

/* Prevent connector overflow by adjusting z-index and position */
.os-connectors-flat {
    position: relative;
    z-index: 0;
    /* Behind modules */
    margin-bottom: -1px;
    /* Slight tuck to ensure line touches */
    width: 100% !important;
    max-width: none !important;
}

.os-connectors-flat .os-line-v {
    z-index: 0;
}

.os-module {
    position: relative;
    z-index: 1;
    /* Above connectors */
    background: #080B0E;
    /* Ensure background covers lines */
    width: 100%;
    /* Fill column width */
}

/* Submodule alignment fixes */
.os-submodule-group {
    width: 100%;
    align-items: center;
    margin-top: 20px;
}

.os-submodule {
    z-index: 1;
    background: #0a0f14;
    /* Solid background */
    width: 100%;
}

/* Remove side padding on core node to ensure center */
.os-core-node {
    margin: 0 auto 0 auto;
    /* Remove bottom margin here as handled by connector height */
}

/* Responsive adjustment */
@media (max-width: 1024px) {
    .os-modules-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .os-connectors-flat {
        display: none;
    }

    /* Hide complex connectors on mobile */
    .os-line-drop-sub {
        display: block;
        height: 20px;
        position: static;
        margin: 0 auto;
    }
}

/* FINAL REVARKOS ALIGNMENT FIXES */
@media (min-width: 1024px) {
    .revarkos-visual-wrapper {
        overflow: visible !important;
        overflow-x: visible !important;
    }

    .revarkos-board.flat {
        max-width: 100% !important;
        /* Allow full width of wrapper */
    }
}

.revarkos-board.flat {
    margin: 0 auto;
    width: 100%;
    height: auto !important;
    /* Allow growth */
}

/* Ensure background color for modules to hide connector overlap */
.os-module {
    background: var(--bg-card, #080B0E);
}

/* --- NEW MEG MENU DROPDOWNS --- */
.nav-item {
    position: static;
    /* Allows the full-width dropdown to be relative to the nav/window */
}

.nav-trigger {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-snow);
    font-size: 15px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.nav-link-simple {
    color: var(--text-snow);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-trigger:hover,
.nav-link-simple:hover {
    opacity: 1;
}

/* Fix for Hover Gap - Bridge the space */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 40px;
    /* Bridge gap to dropdown */
    transform: translateY(50%);
    z-index: 1000;
    display: none;
    /* Hidden by default */
}

.nav-item:hover::after {
    display: block;
}

/* Dropdown Container (Full Width) */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(8, 11, 14, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    /* Above almost everything */
    pointer-events: none;
    /* Prevent accidental clicks when hidden */
}

/* Show Dropdown on Hover of nav-item */
.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Keep dropdown open when hovering over it */
.nav-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content {
    display: flex;
    gap: 80px;
    justify-content: flex-start;
}

.dropdown-col {
    min-width: 200px;
}

.dropdown-head {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faded);
    margin-bottom: 24px;
    font-weight: 700;
}

.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-list li {
    margin-bottom: 12px;
}

.dropdown-list a {
    color: var(--text-snow);
    text-decoration: none;
    font-size: 15px;
    display: block;
    transition: all 0.2s;
    opacity: 0.8;
}

.dropdown-list a:hover {
    color: var(--cta-primary);
    transform: translateX(4px);
    opacity: 1;
}

/* Adjust nav links container to allow static positioning inheritance */
.nav-links {
    position: static;
}

/* --- MOBILE OPTIMIZATION --- */

/* 1. General Spacing Adjustments for Mobile */
@media (max-width: 768px) {
    section {
        padding: var(--space-2xl) 0;
    }

    .hero {
        padding-top: 120px !important;
        padding-bottom: var(--space-xl) !important;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    /* Auto-collapse all grids to 1 column on mobile is already in place globally, 
       but we ensure specific components follow suit */
}

/* 2. Mobile Menu Styling */
@media (max-width: 768px) {
    .nav-links {
        display: block;
        /* We toggle visibility via class, but display needs to be block for the container */
        position: fixed;
        top: 0;
        right: -100%;
        /* Slide out by default */
        width: 100%;
        height: 100vh;
        background: var(--bg-ink);
        padding: 80px 24px 40px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 999;
        display: flex;
        flex-direction: column;
        gap: 0;
        /* Clear gap */
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    /* Fix horizontal scroll caused by Mega Menu */
    .nav-dropdown.mega-menu {
        width: 100%;
        left: 0;
        right: 0;
        transform: none;
        position: relative;
        padding: 0;
        box-shadow: none;
        background: transparent;
        border: none;
        opacity: 1;
        visibility: visible;
        display: none;
        /* Hidden by default, toggled via JS/CSS */
    }

    .nav-dropdown.mega-menu.open {
        display: block;
    }

    /* Ensure Hamburger is on the right */
    .nav-inner {
        justify-content: space-between !important;
    }

    .mobile-menu-btn {
        margin-left: auto;
        display: block !important;
        position: relative;
        /* Ensure z-index works */
        z-index: 1001;
        /* Above mobile menu overlay */
    }

    /* FIX: Mobile Menu Grid Stack */
    .three-col-grid {
        grid-template-columns: 1fr !important;
        /* Stack columns */
        gap: 32px !important;
    }

    .dropdown-content {
        flex-direction: column;
        gap: 32px;
    }

    /* Mobile Nav Items */
    .nav-links .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0;
    }

    .nav-links .nav-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 20px 0;
        font-size: 18px;
    }

    .nav-links .nav-link-simple {
        display: block;
        padding: 20px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .nav-links .btn {
        width: 100%;
        margin-top: 24px;
        justify-content: center;
    }

    /* Mobile Dropdowns (Accordion style) */
    .nav-dropdown {
        position: static;
        /* Relative flow for mobile */
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: auto;
        /* Always interactive */
    }

    /* We will use a class .open on .nav-dropdown to expand it via JS */
    .nav-dropdown.open {
        max-height: 1000px;
        /* Arbitrary large number */
        padding-bottom: 20px;
    }

    /* Disable hover effects on mobile */
    .nav-item:hover .nav-dropdown {
        /* Override desktop hover behavior */
        /* We rely on JS toggle */
    }

    .dropdown-content {
        flex-direction: column;
        gap: 24px;
        padding-left: 16px;
        /* Indent */
    }

    .dropdown-col {
        min-width: unset;
    }

    .dropdown-head {
        margin-bottom: 12px;
        color: var(--cta-primary);
    }

    .dropdown-list li {
        margin-bottom: 12px;
    }

    .dropdown-list a {
        font-size: 16px;
    }
}

/* 3. Hamburger Button Styling */
.mobile-menu-btn {
    z-index: 1001;
    /* Above the menu overlay */
    position: relative;
    font-size: 24px;
    cursor: pointer;
}

/* 4. Solution Slider Height Fix for Mobile */
@media (max-width: 768px) {
    .solutions-section {
        min-height: 600px;
        /* Reduced from 900px */
        padding: 60px 0;
    }

    /* Ensure content stacks properly inside solution cards */
    .solution-card {
        /* Usually styled in index or css, ensure flex direction is handled */
        flex-direction: column-reverse;
        /* Image on top? Or bottom? usually column */
    }
}

/* --- MOBILE FIXES PART 2 --- */

/* 1. Footer Mobile Grid */
@media (max-width: 768px) {
    footer .container>div:first-child>div {
        grid-template-columns: 1fr 1fr !important;
        /* 2 columns for links */
        gap: 32px 16px !important;
    }

    footer .container>div:last-child {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    footer .container>div:last-child>div:last-child {
        justify-content: center;
    }

    /* Adjust logo ticker for mobile to avoid tiny logos or overflow */
    .logo-item {
        height: 20px;
        /* Smaller logos */
        margin: 0 16px;
    }
}

@media (max-width: 480px) {
    footer .container>div:first-child>div {
        grid-template-columns: 1fr !important;
        /* 1 column for very small screens */
    }
}

/* 2. Situation Room (Lanyard) Mobile Fix */
@media (max-width: 1024px) {
    .situation-room-visual {
        height: auto;
        padding-bottom: 40px;
    }

    .sr-dashboard {
        width: 100%;
        max-width: 100%;
        height: 600px;
        /* Taller for vertical stacking */
        transform: none !important;
        /* Remove 3D skew on mobile for readability */
        margin: 0;
    }

    .sr-content {
        grid-template-columns: 1fr;
        /* Stack dashboard cols */
        grid-template-rows: 1fr 1fr;
    }

    .sr-main-feed {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* 3. Solutions Card Refinement */
@media (max-width: 768px) {
    .solution-card {
        display: flex !important;
        flex-direction: column-reverse !important;
        /* Image Top */
        height: auto !important;
    }

    .solution-image {
        height: 250px !important;
        width: 100%;
        /* Fix radius for Image Top */
        border-radius: 40px 40px 0 0 !important;
    }

    .solution-content {
        height: auto;
        padding: 32px 24px !important;
        /* Fix radius for Content Bottom */
        border-radius: 0 0 40px 40px !important;
    }

    .solution-slide {
        width: 95vw !important;
        /* use more width */
        padding: 0 10px !important;
    }

    .sol-title {
        font-size: 28px;
    }

    /* Hide Solutions Slider Nav on Mobile (Broken) */
    .solutions-slider .slider-nav {
        display: none !important;
    }



    /* FIX: Mobile Menu Grid Stack */
    .three-col-grid {
        grid-template-columns: 1fr !important;
        /* Stack columns */
        gap: 32px !important;
    }

    /* FIX: Hero Buttons Stack */
    .hero-cta-container {
        flex-direction: column !important;
    }

    .hero-cta-container .btn {
        width: 100% !important;
        justify-content: center;
    }

    /* FIX: Solutions Slider Active State */
    .solution-slide {
        opacity: 0.4;
        transition: opacity 0.3s ease, transform 0.3s ease;
        transform: scale(0.9);
    }

    .solution-slide.active {
        opacity: 1 !important;
        transform: scale(1) !important;
    }
}

/* --- MOBILE FEEDBACK FIXES --- */

/* 1. Logo/Menu Bar Overflow Fix & Hero Gradient */
@media (max-width: 768px) {

    /* Fix horizontal scroll caused by menu or sticky elements */
    html,
    body {
        /* overflow-x: hidden; REMOVED TO FIX STICKY SCROLL */
        width: 100%;
        max-width: 100%;
    }

    /* Stack Hero Buttons */
    .hero .flex-gap-md {
        flex-direction: column;
        width: 100%;
    }

    .hero .btn {
        width: 100%;
        /* Full width buttons */
        justify-content: center;
    }

    /* ... skipped ... */
    /* Mobile Optimization (OPX SCROLL) */
    @media (max-width: 768px) {
        /* height override removed so it uses desktop 600vh */

        #specialists {
            padding-top: 0 !important;
            /* Remove gap completely */
        }

        .nav-inner {
            max-width: 100%;
            padding: 0 20px;
        }

        /* Fix Hero Gradient width/height issues */
        .hero {
            position: relative;
            overflow-x: clip;
            /* clip is better than hidden for some sticky contexts */
        }

        /* Target the background div in hero */
        .hero>div[style*="background: radial-gradient"] {
            top: 0 !important;
            right: 0 !important;
            width: 100% !important;
            height: 100vh !important;
            background: radial-gradient(circle at top right, rgba(126, 123, 255, 0.2) 0%, transparent 60%) !important;
            z-index: -1;
        }

        /* Fix "20+ years" text overlap margin */
        .logo-ticker-section h3 {
            margin-top: 60px;
            /* Add space so it doesnt overlap with frosted box above */
            padding: 0 16px;
        }
    }

    /* 2. Logo Ticker - Size Up & Speed Up */
    .logo-item {
        height: 32px;
        /* Increased from 20px/default */
        margin: 0 32px;
        /* More breathing room */
    }

    /* Updated animation duration inline in JS or overridden here if controlled by CSS */
    /* Assuming it's CSS animation 'scroll', let's speed it up */
    .logo-ticker-wrapper {
        animation-duration: 20s !important;
        /* Faster than default 40s+ */
    }

    @media (max-width: 768px) {
        .logo-item {
            height: 28px;
            margin: 0 20px;
        }
    }

    /* 3. OperatorX Section Text Tweaks */
    #operatorx h2 {
        font-size: 28px !important;
        /* Reduce "AI operators that execute..." size */
        padding: 0 10px;
        /* Reduce padding side overlap */
        line-height: 1.3;
    }

    /* 4. C-Suite Cards Sizing & Centering */
    @media (max-width: 768px) {
        .boardroom-slider .leader-card {
            width: 80vw !important;
            /* Reduced from maybe 90vw? makes next card visible */
            transform: scale(1) !important;
            /* Reset any default scaling */
        }

        /* Centering logic relies on JS, but we can help via CSS snap or margins if JS uses transform */
        /* If JS centers based on width, reducing width helps. 
       "Make sure card in viewport is dead center": The JS calculates center based on offsetWidth. 
       If we change width, JS should handle it on resize. */
    }

    /* 5. Solutions Slider Nav Buttons & Alignment */
    @media (max-width: 768px) {
        .solutions-section .nav-btn {
            top: auto !important;
            bottom: -20px !important;
            /* Move below cards */
            transform: none !important;
            z-index: 10;
            background: var(--bg-ink);
            /* Add bg so it stands out */
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .solutions-section .nav-btn.prev {
            left: 35% !important;
        }

        .solutions-section .nav-btn.next {
            right: 35% !important;
        }

        /* Dead center alignment */
        .solution-slide {
            display: flex;
            justify-content: center;
            /* Remove any right/left bias */
            margin: 0;
            padding-left: 0 !important;
            width: 100% !important;
        }

        .solution-card {
            width: 85% !important;
            /* Card itself is smaller than viewport */
            margin: 0 auto;
            /* Centered */
        }
    }

    /* 6. RevarkOS Section Spacing */
    @media (max-width: 768px) {

        /* "HelloHandsome and ExoEngine" used as examples of sub-modules needing margin */
        .os-modules-grid {
            gap: 40px !important;
            /* Increased from 16px/24px to separate visually */
        }

        .os-module {
            margin-top: 20px;
        }
    }

    /* 7. 5-Phase Method Layout Change */
    @media (max-width: 768px) {
        /* Assuming grid-template-columns was 1fr 1fr or similar side-by-side */
        /* We target the container of "Phase #" and "Content" */

        /* Locate specific class names for phases - usually .phase-item or .method-row */
        /* Since user didn't give specific class, I will apply a generic rule pattern 
       assuming the structure: .phase > .phase-num, .phase > .phase-content.
       Will need to verify in HTML, but adding safety overrides.
    */
        .revark-method-step {
            display: flex;
            flex-direction: column;
            text-align: left;
            gap: 8px;
        }

        .revark-method-step .phase-number,
        .revark-method-step h3 {
            /* Make Phase # an eyebrow */
            font-size: 14px;
            color: var(--cta-primary);
            margin-bottom: 4px;
            display: block;
            width: 100%;
        }

        /* If they were separate columns in a grid */
        .method-grid {
            grid-template-columns: 1fr !important;
        }
    }

    @media (max-width: 768px) {

        /* METHOD SECTION FIX */
        .method-step {
            display: flex;
            flex-direction: column;
            text-align: left;
            gap: 8px;
        }

        .method-number {
            /* Make Phase # an eyebrow */
            font-size: 14px;
            color: var(--cta-primary);
            margin-bottom: 4px;
            width: 100%;
            line-height: normal;
            /* Reset any large line height */
        }

        .method-content {
            padding-left: 0;
            /* Reset any left padding/border */
            border-left: none;
        }
    }

    /* --- MOBILE FINE TUNING --- */

    /* 1. Logos: Larger and tighter spacing */
    .logo-item {
        height: 48px;
        /* Increased from 32px */
        margin: 0 24px;
        /* Reduced from 32px */
    }

    @media (max-width: 768px) {
        .logo-item {
            height: 40px;
            /* Mobile specific size */
            margin: 0 16px;
        }
    }

    /* 2. OperatorX Full Screen Mobile */
    @media (max-width: 768px) {
        #operatorx .container.text-center:first-child {
            /* The wrapper container */
            height: 100vh;
            max-height: 100vh;
            margin-bottom: var(--space-xl);
            /* Reduce bottom margin since it fills screen */
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #operatorx .container.text-center:first-child>div {
            /* The inner relative div with image */
            height: 100%;
            width: 100%;
            max-width: 100%;
            border-radius: 0;
            /* Full bleed */
            margin: 0;
        }

        #operatorx img {
            height: 100%;
            width: 100%;
            object-fit: cover;
            max-width: none;
            object-position: center top;
            /* Ensure face is visible */
        }

        #operatorx .ai-highlighter {
            font-size: 14px;
            margin-bottom: 8px;
        }

        #operatorx h2 {
            font-size: 24px !important;
            /* "Knack smaller" */
            margin: 0 auto !important;
            padding-bottom: 40px;
            /* Lift text slightly from very bottom edge */
        }
    }

    /* 3. C-Suite Swipe Hint & Arrows */
    @media (max-width: 768px) {
        .boardroom-slider {
            position: relative;
        }

        /* Add visual hint overlay */
        .boardroom-slider::after {
            content: '← Swipe →';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            pointer-events: none;
            opacity: 0;
            animation: fadeHint 3s ease-out 1s forwards;
            z-index: 10;
            backdrop-filter: blur(4px);
        }

        @keyframes fadeHint {
            0% {
                opacity: 0;
            }

            20% {
                opacity: 1;
            }

            80% {
                opacity: 1;
            }

            100% {
                opacity: 0;
            }
        }

        /* Ensure no weird auto-scroll behavior is visible via overflow */
        .slider-container {
            overflow: hidden;
        }
    }

    /* 4. Solutions Slider Navigation & Card Scaling */
    @media (max-width: 768px) {
        .solutions-section .nav-btn {
            width: 40px;
            height: 40px;
            /* Move to sides of screen, vertically centered relative to viewport or card? 
           User said "move to each side of screen". 
           Let's use absolute positioning relative to the section or wrapper. */
            position: absolute;
            top: 50%;
            transform: translateY(-50%) !important;
            bottom: auto !important;

            /* Spread apart */
            /* left/right set below */
        }

        .solutions-section .nav-btn.prev {
            left: 10px !important;
        }

        .solutions-section .nav-btn.next {
            right: 10px !important;
        }

        /* Scale down cards to fit screen better */
        .solution-slide {
            /* Reduce width to leave room for next slides or just fit better */
            width: 85vw !important;
            padding: 0 5px !important;
        }

        .solution-card {
            width: 100% !important;
            /* Maybe scale down content slightly? */
            transform: scale(0.95);
            transform-origin: center center;
        }

        .sol-title {
            font-size: 24px;
            /* Slightly smaller title */
        }
    }

    /* 5. Method Section Spacing */
    @media (max-width: 768px) {

        /* Bring Headline and PHASE 1 closer */
        /* Headline container */
        #method .text-center {
            margin-bottom: 24px !important;
            /* Reduced from space-3xl (64px) */
        }
    }

    /* --- CINEMATIC SCROLL (Scale Down & Blur) --- */
    .scroll-track {
        height: 300vh;
        position: relative;
        z-index: 10;
    }

    .sticky-stage {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: radial-gradient(circle at center, #1a1f26 0%, var(--bg-ink) 80%);
    }

    .cinematic-container {
        position: relative;
        width: 100%;
        max-width: 1400px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .cinematic-image-wrapper {
        position: absolute;
        width: 100%;
        height: 100%;
        /* Or fixed px to ensure centering? 100% is fine with flex center */
        display: flex;
        align-items: center;
        justify-content: center;
        will-change: transform, opacity;
        z-index: 1;
    }

    .cinematic-image {
        width: 100%;
        max-width: 500px;
        /* Target size */
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
    }

    .cinematic-text-intro {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* Start centered */
        text-align: center;
        opacity: 0;
        z-index: 2;
        pointer-events: none;
        width: 100%;
        margin-top: -120px;
        /* Offset to sit above image center ideally, or handled by JS transform? */
        /* Let's have it start hidden and JS will position it */
    }

    .cinematic-text-main {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        opacity: 0;
        z-index: 2;
        pointer-events: none;
        width: 100%;
        padding: 0 20px;
    }

    .cinematic-headline {
        font-size: clamp(48px, 6vw, 120px);
        line-height: 1.05;
        font-weight: 700;
        color: #fff;
        letter-spacing: -0.02em;
        text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    /* =========================================
   CINEMATIC SCROLL (CinematicScroll)
   ========================================= */
    #opx-cinematic-scroll {
        position: relative;
        background-color: #000;
        width: 100%;
        height: 150vh !important;
        /* Restore track height for scroll interaction */
        z-index: 10;
    }

    .sticky-container {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    #opx-canvas {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .scroll-text-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 10;
    }

    .scroll-text {
        opacity: 0;
        transition: opacity 0.5s ease, transform 0.5s ease;
        will-change: opacity, transform;
    }

    .scroll-text.visible {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* Nav styles moved to global section */

    /* POLISH: Remove bottom padding from cinematic scroll and add space to team section */
    #opx-cinematic-scroll {
        padding-bottom: 0 !important;
    }

    #specialists {
        padding-top: 140px;
        /* 60px default + 80px extra */
    }

    /* --- MOBILE OPTIMIZATION (OPX VIDEO REPLACEMENT) --- */
    @media (max-width: 768px) {

        /* 1. Mobile Layout: Standard Scroll (Not Sticky/Cinematic) */
        #opx-cinematic-scroll {
            height: 100vh !important;
            /* Standard section height */
        }

        #opx-cinematic-scroll .sticky-container {
            position: relative !important;
            /* Disable sticky */
            height: 100vh !important;
        }

        /* 2. Visual Swap: Hide Canvas, Show Video */
        #opx-canvas {
            display: none !important;
        }

        .mobile-only-video {
            display: block !important;
            /* Overrides inline display:none */
        }

        /* 3. Text Visibility (Auto-Show) */
        .opx-text-header,
        .opx-text-body {
            opacity: 1 !important;
            /* Show immediately (or handle via simple fade-in) */
            transition: opacity 1.5s ease-in !important;
        }

        /* Spacing Fixes */
        #specialists {
            padding-top: 0 !important;
            /* Remove gap completely */
        }

        .opx-team-header {
            padding-top: 0 !important;
            /* Close the gap on mobile completely */
        }

        .opx-problems {
            padding-top: 60px !important;
            /* padding-bottom: 200px (Restored to default as requested) */
        }

        /* Enforce bottom fade visibility and size for mobile */
        .fade-overlay {
            height: 60% !important;
            /* Increased height for visibility */
            z-index: 20 !important;
            /* High z-index to sit above canvas/video */
            background: linear-gradient(to top, #000 0%, transparent 100%) !important;
            opacity: 1 !important;
        }

        /* Text Wrapper Z-Index */
        .scroll-text-overlay {
            z-index: 30 !important;
            /* Ensure wrapper sits above fade (20) */
        }

        /* Text Positioning for Mobile */
        .scroll-text-overlay {
            z-index: 30 !important;
            /* Ensure wrapper sits above fade (20) */
        }

        .opx-text-container {
            padding: 0 24px !important;
            align-items: flex-end !important;
            /* Push to bottom */
            padding-bottom: 120px !important;
            /* Space from bottom edge */
            z-index: 30 !important;
            position: relative;
        }

        .opx-text-header,
        .opx-text-body {
            max-width: 100% !important;
            /* Full width on mobile */
            text-align: left;
        }

        .hero-title {
            font-size: 32px !important;
            /* Smaller text */
        }

        .opx-text-body p {
            font-size: 16px !important;
        }
    }

    /* --- EMERGENCY FIXES (ROUND 4) --- */

    /* 1. Global Horizontal Scroll Fix */
    /* REMOVED: Global overflow-x hidden broke position: sticky */
    html {
        /* overflow-x: hidden; */
    }

    body {
        /* overflow-x: hidden; */
        width: 100%;
        position: relative;
    }

    /* Reverting !important which usually kills sticky in some browsers if applied wrong */

    /* 2. Mobile Menu Consolidated Overrides */
    @media (max-width: 768px) {

        /* Navbar Layout */
        .nav-inner {
            justify-content: space-between !important;
            width: 100%;
        }

        /* Hamburger Button - Force Visible */
        .mobile-menu-btn {
            display: block !important;
            margin-left: auto;
            z-index: 2000;
            position: relative;
        }

        /* Main Mobile Menu Overlay */
        .nav-links {
            display: flex !important;
            flex-direction: column !important;
            position: fixed !important;
            top: 0;
            right: -100% !important;
            /* Start hidden */
            width: 100% !important;
            height: 100vh !important;
            background: rgba(8, 11, 14, 0.98) !important;
            padding: 100px 24px 40px !important;
            gap: 0 !important;
            transition: right 0.3s ease !important;
            z-index: 1000 !important;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            overflow-y: auto !important;
        }

        .nav-links.active {
            right: 0 !important;
            /* Slide in */
        }

        /* Force Grid Stack */
        .three-col-grid,
        .dropdown-content {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 24px !important;
        }

        /* Reset Mega Menu to be simplified */
        .nav-dropdown.mega-menu {
            position: static !important;
            width: 100% !important;
            padding: 0 0 20px 0 !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            display: none !important;
            opacity: 1 !important;
            visibility: visible !important;
            transform: none !important;
        }

        .nav-dropdown.mega-menu.open {
            display: block !important;
        }

        /* Standard Links */
        .nav-item {
            width: 100% !important;
        }

        .nav-link-simple {
            margin-left: 0 !important;
            width: 100% !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding: 20px 0 !important;
        }
    }

    /* --- SOLUTIONS SLIDER MOBILE HINT --- */
    /* --- SOLUTIONS SLIDER MOBILE HINT --- */
    /* Bulletproof desktop hiding */
    @media (min-width: 769px) {
        .swipe-hint-overlay {
            display: none !important;
        }
    }

    .swipe-hint-overlay {
        display: none;
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        height: auto;
        pointer-events: none;
        z-index: 20;
    }

    .swipe-hint-overlay span {
        font-size: 11px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.4);
        letter-spacing: 0.2em;
        text-transform: uppercase;
        white-space: nowrap;
        display: block;
        line-height: 1;
    }

    /* DEFAULT: HIDDEN */
    .swipe-hint-overlay {
        display: none;
    }

    /* DESKTOP: STRICTLY HIDDEN */
    @media (min-width: 769px) {
        .swipe-hint-overlay {
            display: none !important;
        }
    }

    /* MOBILE: VISIBLE & STYLED */
    @media (max-width: 768px) {

        /* Hide arrows on mobile */
        .solutions-section .nav-btn {
            display: none !important;
        }

        /* Show hint on mobile */
        .swipe-hint-overlay {
            display: block !important;
            position: absolute !important;
            bottom: 10px !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            width: max-content !important;
            height: auto !important;
            padding: 0 !important;
            margin: 0 !important;
            background: transparent !important;
            border: none !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            box-shadow: none !important;
            opacity: 1;
            animation: hintTextGlow 2.5s infinite alternate;
            pointer-events: none;
            z-index: 20;
        }
    }

    @keyframes hintTextGlow {
        0% {
            color: rgba(255, 255, 255, 0.3);
            text-shadow: 0 0 0 rgba(255, 255, 255, 0);
            transform: translateX(-50%) translateY(0);
        }

        100% {
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
            transform: translateX(-50%) translateY(0);
        }
    }
}

/* --- CASE STUDIES PAGE STYLES --- */

/* Hero */
.hero-case {
    padding: 180px 0 100px;
    background: radial-gradient(circle at top center, rgba(126, 123, 255, 0.15) 0%, transparent 80%);
    text-align: center;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
}

.stat-item h3 {
    color: var(--cta-primary);
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--text-faded);
    font-size: 14px;
    margin: 0;
}

/* Case Study Card */
.case-header {
    background: #0D1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 60px;
    margin-bottom: 80px;
}

.client-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    font-size: 14px;
    color: var(--text-faded);
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.02);
    padding: 24px;
    border-radius: 12px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-label {
    font-weight: 600;
    color: #fff;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.metric-box {
    background: rgba(4, 212, 136, 0.05);
    border: 1px solid rgba(4, 212, 136, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.metric-val {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Comparison Table */
.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
}

.benchmark-table th {
    text-align: left;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-faded);
    font-weight: 500;
}

.benchmark-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
}

.highlight-cell {
    color: var(--cta-primary) !important;
    font-weight: 700;
}

/* Layout Utilities specific to Case Studies */
.grid-2-gap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Custom Responsive Styles for Case Studies */
@media (max-width: 900px) {
    .stats-bar {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .grid-2-gap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-header {
        padding: 32px;
    }

    .case-header .section-title {
        font-size: 26px;
        /* Reduce from 32px to fit card better */
        margin-bottom: 20px;
        line-height: 1.3;
        /* Increased from 1.1 for better readability */
    }

    .client-meta {
        grid-template-columns: 1fr;
    }

    .hero-case {
        padding: 120px 0 60px;
    }
}

/* --- CONTACT PAGE STYLES --- */

/* Hero */
.hero-contact {
    padding: 180px 0 100px;
    background: radial-gradient(circle at top center, rgba(126, 123, 255, 0.15) 0%, transparent 80%);
    text-align: center;
}

/* Form Styling */
.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--cta-primary);
}

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

/* Direct Info Cards */
.info-card {
    padding: 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-faded);
    margin-bottom: 12px;
}

.info-email {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
    display: block;
    text-decoration: none;
}

.info-email:hover {
    color: var(--cta-primary);
}

/* FAQ */
.faq-item {
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 32px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 600;
}

.faq-a {
    color: var(--text-faded);
    line-height: 1.6;
}

/* Responsive Adjustments for Contact */
@media (max-width: 900px) {
    .contact-form {
        padding: 24px;
    }

    .hero-contact {
        padding: 120px 0 60px;
    }
}

/* Global Footer Grid */
.footer-grid-layout {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    flex: 1;
}

@media (max-width: 900px) {
    .footer-grid-layout {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .footer-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* --- Hero Stats Layout --- */
.hero-stats-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: flex-start;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    row-gap: var(--space-xl);
    justify-self: end;
    width: 100%;
    max-width: 500px;
}

.hero-stats-grid h3 {
    font-size: 32px;
    /* Reduced from default to prevent wrap */
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hero-stats-layout {
        grid-template-columns: 1fr;
        text-align: left;
        gap: var(--space-xl);
    }

    .hero-stats-grid h3 {
        font-size: 1.5rem;
        /* Slightly reduced for mobile */
    }

    .hero-stats-text {
        margin-bottom: var(--space-md);
    }
}

/* Hide "View profile" buttons in C-Suite slider */
.leader-card .hire-button {
    display: none !important;
}

/* Review Avatar Images */
.review-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* --- Hero Mini Testimonial (Compact) --- */
.hero-mini-testimonial {
    background: none;
    border: none;
    position: relative;
    border-radius: 0;
    padding: 0;
    padding-top: 16px;
    margin-top: 16px;
    max-width: 440px;
    backdrop-filter: none;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.hero-mini-testimonial::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.15), transparent);
}

.hero-mini-testimonial .avatar-wrap {
    flex-shrink: 0;
}

.hero-mini-testimonial .avatar-wrap img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-mini-testimonial .content-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-mini-testimonial .quote {
    font-size: 13px;
    color: var(--text-snow);
    font-style: italic;
    margin-bottom: 0;
    line-height: 1.4;
    opacity: 0.9;
}

.hero-mini-testimonial .author-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--cta-primary);
}

@media (max-width: 900px) {
    .hero-mini-testimonial {
        max-width: 100%;
        margin-top: 20px;
    }
}