* {
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --accent-blue: #006699; 
    --accent-teal: #00a8b5; 
    --accent-yellow: #ffcc00;
    --pipeline-bg: #0d1117;
    --pipeline-node: #161b22;
    --pipeline-border: #30363d;
    --success-green: #238636;
    --success-glow: rgba(35, 134, 54, 0.6);
    --text-light: #f3f4f6;
    --text-dark: #111111;
    --card-border: rgba(255,255,255,0.1);
}

html, body {
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html::-webkit-scrollbar, 
body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body { 
    margin: 0; 
    padding: 0;
    background: #ffffff; 
    font-family: 'Inter', sans-serif; 
    color: var(--text-dark);
    max-width: 100vw;
}

/* Adaptive Brand Watermark Design */
.brand-watermark {
    position: absolute;
    z-index: 5; /* Lifted from 0 */
    opacity: 0.35; /* Increased from 0.22 */
    pointer-events: none;
    width: clamp(400px, 80vw, 1400px);
    height: auto;
    object-fit: contain;
    filter: saturate(1.2) brightness(1.1) drop-shadow(0 0 30px rgba(0, 168, 181, 0.15));
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease;
}

.hero-initial-watermark {
    top: 5vh;
    right: -10vw;
    width: clamp(600px, 80vw, 1400px);
    opacity: 0.35; /* Increased */
    transform: rotate(-25deg);
    z-index: 5; /* Lifted */
}

/* Landing position for the logo in the next section */
.proof-logo-anchor {
    position: absolute;
    top: 40px;
    right: 5vw;
    width: 300px;
    height: auto;
    opacity: 0.15;
    z-index: 10;
    pointer-events: none;
}

.governance-logo {
    position: absolute;
    left: 5vw;
    top: 25%; 
    transform: scale(0.6);
    transform-origin: left center;
    opacity: 0; 
    z-index: 10;
}

.phase2-watermark {
    top: auto;
    bottom: -15vh; 
    left: 40%; 
    transform: translateX(-50%) rotate(-25deg); 
    width: 90vh;
    max-width: 1800px;
    opacity: 0.22; 
    z-index: 1; 
}

.phase3-watermark {
    position: sticky !important; 
    top: auto; 
    bottom: 5vh; 
    right: -10vw !important; 
    left: auto !important; 
    width: 85vh !important;
    max-width: 1600px !important;
    opacity: 0.35 !important; 
    transform: rotate(25deg); 
    z-index: 0;
    display: block;
}

/* Sticky Narrative Logo */
.sticky-watermark-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: 0;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}
/* Pipeline Branding Logo - Professional Positioning */
.pipeline-logo {
    display: flex !important;
    position: absolute;
    bottom: 15px;
    right: 15px;
    transform: scale(0.28); /* More subtle scale */
    transform-origin: right bottom;
    opacity: 0.4; /* More subtle opacity */
    z-index: 10;
}

@media (max-width: 1250px) {
    .pipeline-logo {
        position: absolute; /* Keep absolute within container */
        bottom: 12px;
        right: 12px;
        transform: scale(0.35); /* Slightly larger for visibility but still subtle */
        transform-origin: right bottom;
        opacity: 0.6;
    }
}

/* Hero Branding Section */
.hero-branding {
    min-height: 100vh;
    background: #ffffff;
    position: relative;
    overflow: visible; /* Allow the logo to bleed out of the bottom */
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.hero-main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 60px 8vw;
    z-index: 50;
    pointer-events: none;
    will-change: transform, opacity; /* Performance optimization */
}

.hero-title, .hero-subtitle, .transition-sentence, .mobile-hero-logo, .grid-cell {
    will-change: transform, opacity; /* GPU acceleration for key elements */
}

.hero-transition-watermark {
    position: absolute;
    top: -40vh; /* Moved down slightly as requested */
    left: -15vw;
    width: clamp(800px, 90vw, 1600px);
    height: auto;
    opacity: 0.35;
    z-index: 5;
    transform: rotate(-35deg); 
    pointer-events: none;
    filter: saturate(1.2) brightness(1.1) contrast(0.9);
    will-change: transform, opacity;
}

/* Action Bar CTA */
.action-bar-cta {
    max-width: 1000px;
    margin: 0 auto 60px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 30px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 45px rgba(0, 74, 128, 0.1);
    position: relative;
    z-index: 10;
}

.cta-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-teal);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.cta-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.cta-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #475569;
}

.cta-button {
    background: var(--accent-blue);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 20px rgba(0, 74, 128, 0.2);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 74, 128, 0.3);
    background: #005691;
}

@media (max-width: 1024px) {
    .action-bar-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 30px;
        margin: 0 20px 60px;
    }
}

.title-container {
    position: relative;
    margin-top: 20px;
}

.transition-sentence {
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    max-width: 75vw;
    letter-spacing: -0.01em;
}

.transition-sentence strong {
    font-weight: 700;
    color: #0f172a;
}

.transition-sentence .sub-headline {
    font-size: 0.85em;
    opacity: 0.8;
    display: block;
    margin-top: 10px;
    font-weight: 400;
}
.narrative-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

.trace-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 168, 181, 0.1);
    z-index: 1;
    pointer-events: none;
}

.grid-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px; 
    border-right: 1px solid rgba(0,0,0,0.05); 
    box-sizing: border-box;
    text-align: center;
    transition: background 0.5s ease;
    opacity: 0; 
    position: relative;
    z-index: 10;
    /* Lifting text from the background grid */
    backdrop-filter: blur(1px);
    background: radial-gradient(circle at center, rgba(255,255,255,0.9) 0%, transparent 85%);
}

.grid-cell:last-child { border-right: none; }

.narrative-layer { width: 100%; max-width: 400px; }

.layer-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700; 
    text-transform: uppercase;
    color: var(--accent-blue);
    letter-spacing: 4px;
    margin-bottom: 25px;
    display: block;
    opacity: 0.5;
}

.narrative-layer p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem); /* Slightly more refined size */
    font-weight: 400; /* Regular weight for better legibility */
    line-height: 1.4;
    color: #1a1a1a; /* Softened black */
    margin: 0;
    letter-spacing: -0.01em;
}

.narrative-layer strong {
    color: var(--accent-blue);
    font-weight: 800; /* Keep keywords very bold */
    position: relative;
    display: inline-block;
    padding: 0 4px;
}

.narrative-layer strong::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent-teal);
    opacity: 0.12;
    z-index: -1;
}

/* Exact Branding Lockup */
.logo-lockup {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-icon { 
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.fortune-mark-svg {
    width: clamp(40px, 6vw, 80px); 
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 168, 181, 0.3));
}

.logo-text-stack { display: flex; flex-direction: column; line-height: 0.9; }
.logo-top-text { font-family: 'Exo 2', sans-serif; font-weight: 900; font-size: 3.5rem; color: #004a80; letter-spacing: -1px; }
.logo-bottom-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.logo-separator { font-weight: 300; font-size: 2.2rem; color: #00a8b5; margin-right: 2px; }
.logo-bottom-text { font-family: 'Exo 2', sans-serif; font-weight: 600; font-size: 2.2rem; color: #00a8b5; letter-spacing: 0.5px; }

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 0.85;
    margin: 10px 0 0 0;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 15px;
    opacity: 0.6;
    font-weight: 400;
    color: #475569;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 6vh;
    right: 8vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    opacity: 0.8;
    animation: hintBounce 2s infinite;
    z-index: 30;
    pointer-events: none;
}

.scroll-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem; /* Larger text */
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--accent-blue);
}

.scroll-line {
    width: 2px;
    height: 80px; /* More prominent line */
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
}

@keyframes hintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}

/* Governance Card Section */
.governance-section {
    min-height: 100vh;
    background: var(--bg-dark);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 100; /* Force it to stay on top of the pinned story */
}

.section-label {
    position: absolute;
    left: 5vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

.section-label h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
}

.card-stack {
    position: absolute;
    right: 15vw;
    width: 550px; /* Increased from 500px */
    height: 480px; /* Increased from 420px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    position: absolute;
    width: 520px; /* Increased from 480px */
    height: 450px; /* Increased from 400px */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 50px; /* Increased from 45px */
    box-sizing: border-box;
    box-shadow: -15px 15px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    will-change: transform, opacity;
    transition: box-shadow 0.3s ease;
}

.card:nth-child(1) { transform: rotate(-2deg) translate(-10px, -10px); }
.card:nth-child(2) { transform: rotate(1deg) translate(5px, 5px); }
.card:nth-child(3) { transform: rotate(-1deg) translate(-2px, 8px); }
.card:nth-child(4) { transform: rotate(2deg) translate(12px, -2px); }
.card:nth-child(5) { transform: rotate(-3deg) translate(-15px, 12px); }

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    border-radius: 20px 20px 0 0;
    background: var(--accent-teal);
    opacity: 0.8;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem; /* Increased spacing */
}
.card h3.card-title-emphasis { 
    font-size: 2.2rem;
    margin: 0; 
    text-transform: uppercase; 
    font-weight: 900; 
    letter-spacing: -1px; 
    line-height: 1; 
    flex: 1; 
    color: #ffffff; /* Base white */
}

/* Color Emphasis Utilities */
.text-teal {
    color: var(--accent-teal) !important;
}

.text-blue {
    color: #00e1ff !important; /* Brighter highlight blue */
}

/* Overrides for specific cards to ensure branding pop */
.card-blue .card-title-emphasis { color: #00ffcc !important; } /* Bright Teal */
.card-teal .card-title-emphasis { color: #00e1ff !important; } /* Bright Blue */
.card-dark .card-title-emphasis { color: var(--accent-teal) !important; } /* Tech Teal */
.card-gray .card-title-emphasis { color: #00ffcc !important; } /* Bright Teal */
.card-light .card-title-emphasis { color: var(--accent-blue) !important; } /* Trust Blue */

.card-count { 
    font-family: 'JetBrains Mono', monospace; 
    font-size: 1rem; 
    font-weight: 700; 
    opacity: 0.5; 
    letter-spacing: 2px; 
    margin-top: 5px; 
}

.card p { 
    font-size: 1.35rem; /* Increased from 1.15rem */
    line-height: 1.4; 
    opacity: 1; 
    font-weight: 600; /* Bolder for impact */
    margin-bottom: 2rem; 
}

.card-principles { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 2rem; 
}

.card-principles li { 
    font-family: 'JetBrains Mono', monospace; 
    font-size: 1rem; /* Increased from 0.85rem */
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 600;
}
.card-principles li::before { content: ">>"; color: inherit; opacity: 0.5; font-size: 0.7rem; }

.card-blue { background: #004a80; color: #fff; }
.card-blue::before { background: #00e1ff; }
.card-teal { background: #007a85; color: #fff; }
.card-teal::before { background: #00ffcc; }
.card-dark { background: #1a1a1a; color: #fff; }
.card-dark::before { background: var(--accent-blue); }
.card-gray { background: #2d2d2d; color: #fff; }
.card-gray::before { background: var(--accent-teal); }
.card-light { background: #f8fafc; color: #111; border: 1px solid #cbd5e1; }
.card-light h3 { color: #004a80; }

/* System Context Section */
.system-context-section {
    background: #ffffff;
    color: #111111;
    padding: 0;
    position: relative;
    z-index: 0;
    overflow: hidden; 
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: transparent;
    position: relative;
    z-index: 2;
}

.split-left {
    padding: 100px 8vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-right {
    padding: 100px 8vw;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Anchor for the subtle sign-off logo */
}

.context-header { margin-bottom: 40px; }
.context-label { font-family: 'Inter', sans-serif; font-weight: 600; color: var(--accent-blue); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; display: block; }

.split-left h2 { 
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 800; 
    text-transform: uppercase; 
    margin: 0 0 30px 0; 
    line-height: 1; 
    letter-spacing: -0.02em;
}

.context-body { 
    font-size: 1.25rem; 
    line-height: 1.6; 
    opacity: 0.9; 
    margin-bottom: 40px;
}

.business-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.business-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.business-list li i { color: var(--accent-teal); font-size: 0.9rem; }

.context-footer {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.7;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

/* Pipeline Schematic Styles */
.pipeline-container {
    width: 100%;
    max-width: 450px;
    background: var(--pipeline-bg);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--pipeline-border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 100; 
}

.pipeline-node {
    width: 100%;
    background: var(--pipeline-node);
    border: 1px solid var(--pipeline-border);
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.node-status {
    width: 18px;
    height: 18px;
    flex-shrink: 0; 
    background: #30363d; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    transition: all 0.4s ease;
}

.pipeline-node.active .node-status {
    background: var(--success-green);
    color: #fff;
    box-shadow: 0 0 15px var(--success-glow);
}

.node-info { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; overflow: hidden; }
.node-label { font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500; color: #8b949e; transition: color 0.3s ease; white-space: normal; line-height: 1.2; }
.pipeline-node.active .node-label { color: #c9d1d9; }
.node-duration { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: #484f58; opacity: 0.8; }

.pipeline-connector { width: 2px; height: 20px; background: var(--pipeline-border); }

.pipeline-split { display: flex; gap: 20px; width: 100%; justify-content: center; }
.pipeline-split .pipeline-node { max-width: 180px; }

/* Phase 03: Visual Narrative Walkthrough */
.visual-narrative-section {
    min-height: 100vh;
    background: #ffffff;
    padding: 100px 0;
    color: var(--text-dark);
    position: relative;
}
.phase-header {
    text-align: center;
    margin-bottom: 120px;
    padding: 0 8vw;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.phase-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.85;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--text-dark);
}

.narrative-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8vw;
    display: flex;
    flex-direction: column;
    gap: 150px;
}

.narrative-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
}

.narrative-row.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.narrative-text {
    position: relative;
}

.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.narrative-text h3 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.narrative-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.8;
}

.visual-frame {
    background: var(--pipeline-bg);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--pipeline-border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    position: relative;
}

.frame-label {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--accent-teal);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
}

.narrative-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.visual-frame:hover .narrative-img {
    filter: brightness(1.1);
}

/* Mobile Adjustments */
.mobile-hero-logo {
    display: none !important;
}

@media (max-width: 1250px) {
    .hero-bg-grid {
        display: block !important;
        z-index: 1; /* Behind branding-cell (50) */
    }

    /* Subtle Mobile Bottom Glow */
    .hero-bg-grid::before {
        display: block !important;
        content: "";
        position: absolute;
        bottom: -5vh;
        left: 0;
        width: 100%;
        height: 35vh;
        background: radial-gradient(ellipse at center, rgba(0, 168, 181, 0.25) 0%, transparent 75%);
        filter: blur(40px);
        z-index: 0;
        animation: mobileBottomGlow 8s ease-in-out infinite alternate;
    }

    @keyframes mobileBottomGlow {
        0% { transform: translateY(0) scale(1); opacity: 0.2; }
        100% { transform: translateY(-20px) scale(1.1); opacity: 0.4; }
    }

    .desktop-hidden {
        display: block !important;
    }

    .mobile-hero-logo {
        display: block !important;
        width: 120vw; /* Reduced from 140vw to prevent extreme overflow */
        max-width: none;
        height: auto;
        position: absolute;
        top: 0; /* Align to top instead of -10vh */
        left: 50%;
        transform: translateX(-50%) rotate(90deg); /* Start at 90deg */
        opacity: 0; /* Let GSAP animate this */
        pointer-events: none;
        z-index: 5; /* Ensure it's above the background grid (1) */
        filter: none;
    }

    /* Enable mobile master logo */
    .hero-initial-watermark {
        display: block !important;
        width: 130vw !important;
        max-width: none !important;
        top: -15vh !important;
        left: 50% !important;
        transform: translateX(-50%) rotate(90deg);
        opacity: 0;
        z-index: 10; /* Lifted above grid (5) */
    }

    .sticky-watermark-container,
    .hero-watermark,
    .phase2-watermark,
    .phase3-watermark,
    .hero-transition-watermark { 
        display: none !important; 
    }

    /* Ensure content starts in the middle for animation */
    .hero-main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        padding: 40px 5vw !important; 
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center !important;
        width: 100%;
        box-sizing: border-box;
        z-index: 60;
    }

    .logo-lockup {
        margin-bottom: 15px !important;
        display: flex;
        flex-direction: row; /* Icon on left, text on right */
        align-items: center;
        justify-content: center;
        gap: 15px;
        transform: scale(0.9); /* More prominent */
    }

    .logo-text-stack {
        text-align: left;
        align-items: flex-start;
    }

    .logo-bottom-row {
        justify-content: flex-start;
    }

    .title-container {
        margin-top: 5px !important;
        width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem); /* Refined for better viewport fit */
        letter-spacing: 1px;
        word-spacing: 4px;
        line-height: 1.1;
        margin: 10px 0 !important;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 3px;
        margin-bottom: 15px;
    }

    .transition-sentence {
        position: relative;
        max-width: 90vw;
        margin: 15px auto 0;
        font-family: 'Inter', sans-serif;
        font-size: clamp(0.95rem, 3.8vw, 1.2rem);
        font-weight: 500;
        color: #475569;
        text-align: center;
        line-height: 1.6;
        opacity: 0;
        transform: translateY(20px);
    }

    .hero-tech-metadata {
        position: fixed; /* Keep it anchored during pin */
        bottom: 10vh;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 15px;
        z-index: 100;
        padding: 0 20px;
    }

    .metadata-item {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(5px);
        padding: 4px 10px;
        border-radius: 4px;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .narrative-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 3px; 
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        padding: 29vh 8vw 10px; /* Reduced to fit flush below subheader (was 33vh) */
        box-sizing: border-box;
        z-index: 50; 
        opacity: 0;
        pointer-events: none;
        overflow: visible;
    }

    .grid-cell {
        position: relative; 
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2px 10px; /* Absolute minimum padding */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        border-radius: 4px;
        border: 1px solid rgba(0, 168, 181, 0.1);
        opacity: 0; 
        transform: translateY(5px);
        text-align: center;
        height: auto;
    }

    .narrative-layer {
        width: 100%;
        max-width: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1px;
    }

    .narrative-layer p {
        font-family: 'Inter', sans-serif;
        font-size: clamp(0.5rem, 2.4vw, 0.6rem); /* Micro text to ensure fit */
        line-height: 1.1;
        font-weight: 500;
        color: #1e293b;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .layer-tag {
        font-size: 0.32rem !important; /* Nano tag */
        letter-spacing: 0.8px !important;
        margin-bottom: -1px !important;
        opacity: 0.5;
    }

    .branding-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-top: 15px;
    }

    .mobile-scroll-arrow {
        display: flex;
        position: absolute;
        bottom: 5vh;
        left: 50%;
        transform: translateX(-50%);
        color: var(--accent-teal);
        font-size: 1.5rem;
        z-index: 70;
        animation: arrowBounce 2s infinite;
        text-shadow: 0 0 10px rgba(0, 168, 181, 0.4);
        opacity: 0; /* Hidden on load */
        visibility: hidden;
    }

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

    .tech-bottom-glow {
        display: block !important;
        opacity: 0.6;
        height: 35vh !important;
        bottom: -5vh !important;
        background: radial-gradient(ellipse at 50% 100%, rgba(0, 168, 181, 0.4) 0%, transparent 80%) !important;
        z-index: 5;
    }

    .hero-main-header {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        padding: 10px 5vw !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        z-index: 100;
        pointer-events: none;
    }

    .logo-top-text {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .logo-bottom-text {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }

    .logo-separator {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }

    .logo-lockup {
        margin-bottom: 5px !important; 
        display: flex;
        flex-direction: row; 
        align-items: center;
        justify-content: center;
        gap: 12px;
        transform: scale(0.9); /* Slightly smaller for header feel */
    }

    .title-container {
        margin-top: 0 !important;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
        letter-spacing: 2px; /* Fixed squished look */
        word-spacing: 15px; /* Added clear space between words */
        line-height: 1.1;
        margin-top: 5px !important;
    }

    .transition-sentence {
        position: relative;
        max-width: 90vw;
        margin: 2px auto 0;
        font-family: 'Inter', sans-serif;
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        font-weight: 500;
        color: #1e293b;
        text-align: center;
        line-height: 1.35;
        letter-spacing: -0.01em;
        opacity: 0;
        transform: translateY(20px);
        left: auto;
        top: auto;
    }

    .scroll-hint {
        left: 0;
        right: 0;
        bottom: 4vh; /* Fixed at bottom */
        align-items: center;
        width: 100%;
    }

    .scroll-line {
        height: 60px; /* Slightly shorter for mobile safety */
    }

    .narrative-layer {
        max-width: 100%;
        padding: 40px 30px;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.7) 60%, transparent 100%);
        backdrop-filter: blur(8px);
        border-radius: 40px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .narrative-layer p {
        font-family: 'Exo 2', sans-serif;
        font-size: clamp(1.3rem, 6vw, 1.8rem); /* Slightly larger for 'filling' the screen */
        line-height: 1.6;
        font-weight: 300;
        color: #222; /* Darker for higher contrast */
        margin: 0;
        letter-spacing: -0.01em;
    }

    .layer-tag {
        font-size: 0.75rem !important;
        letter-spacing: 5px !important;
        opacity: 0.7;
        margin-bottom: 5px;
    }

    .split-grid { grid-template-columns: 1fr; min-height: auto; }
    .split-left { position: relative; height: auto; padding: 80px 5vw; }
    .split-right { padding: 40px 5vw 80px; }
    .pipeline-container { max-width: 100%; }
    
    .narrative-row, .narrative-row.reverse { 
        grid-template-columns: 1fr; 
        gap: 40px; 
        text-align: center;
    }
    .narrative-row.reverse .narrative-visual { order: 2; }
    .narrative-row.reverse .narrative-text { order: 1; }

    /* Workflow Section Mobile Sequential Logic */
    .proof-of-systems-section {
        width: 100%;
        height: auto;
        overflow: visible;
        background: #ffffff;
        position: relative;
        display: block;
        margin-top: -10vh; /* Reduced from -45vh to stay below 'The Scale' */
        z-index: 100; /* Ensure it slides OVER the hero elements */
    }

    .proof-header {
        opacity: 0; /* Let GSAP reveal this */
        transform: translateY(50px);
        margin-bottom: 40px !important;
    }

    .systems-workflow-container {
        position: relative;
        height: auto;
        width: 100%;
        max-width: 100vw;
        overflow: visible;
    }

    .workflow-row {
        position: relative;
        width: 100%;
        height: auto;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-bottom: 60px;
        box-sizing: border-box;
        border-bottom: 1px solid #f1f5f9;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible;
        z-index: 10;
    }
    .workflow-header {
        position: relative;
        width: 100%;
        text-align: center;
        margin-bottom: 0;
        padding: 40px 5vw 20px;
        background: #fff;
        border-bottom: 1px solid #eee;
        flex-shrink: 0;
        z-index: 500;
    }

    .workflow-cta-container {
        margin-top: 15px;
        gap: 8px;
    }

    .workflow-cta {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .workflow-cta.emphasized-cta {
        padding: 12px 25px;
    }

    .cta-tagline {
        font-size: 0.55rem;
        letter-spacing: 2px;
        margin-bottom: 0;
    }

    .workflow-progress-dots {
        display: none !important;
    }

    .workflow-visual {
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 40px; /* Increased gap */
        padding: 50px 15px;
        background: #f8fafc;
        overflow: visible;
        z-index: 10;
    }

    .flow-step {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        width: 100%; /* Fill the column width */
        max-width: none;
        height: auto; 
        min-height: 220px; /* Shorter containers */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 15px; /* Tighter padding to give more room to visual */
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.04);
        text-align: center;
        opacity: 1 !important;
        visibility: visible !important;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .visual-graphic {
        width: 100%; /* Fill container width */
        height: 140px; /* Fixed height but wide */
        flex-shrink: 0;
        border-radius: 8px;
        background: #ffffff;
        border: 1px solid #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

    .visual-graphic > * {
        transform: scale(0.9) !important; /* Larger art scale */
        transform-origin: center center;
        flex-shrink: 0;
    }

    .visual-graphic .shield-status {
        transform: translate(-50%, -50%) scale(0.9) !important; /* Combine centering and scale */
        top: 50% !important;
        left: 50% !important;
        font-size: 18px; /* Slightly smaller for compact container */
        padding: 10px 20px;
    }

    .flow-step .step-text {
        font-size: 1rem;
        gap: 2px;
    }

    .flow-step .step-title {
        font-size: 0.9rem;
    }

    .flow-step .step-subtext {
        font-size: 0.75rem;
    }

    .flow-connector {
        display: none !important;
    }

    /* Additional Mobile Refinements */
    .mini-brand-overlay {
        padding: 8px;
        position: absolute;
        inset: 0;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 2px;
    }
    .mini-logo {
        position: relative; /* Switch to relative for flex flow */
        bottom: auto;
        left: auto;
        top: auto;
        transform: scale(0.35); 
        transform-origin: left bottom;
        opacity: 0.9;
        margin-bottom: -5px; /* Tighten up with signature */
    }
    .bespoke-signature {
        position: relative; /* Switch to relative for flex flow */
        bottom: auto;
        left: auto;
        font-size: 7px;
        margin: 0;
        letter-spacing: 1px;
        opacity: 0.7;
        font-family: 'JetBrains Mono', monospace;
        font-weight: 700;
        text-transform: uppercase;
    }
    /* GOVERNANCE STYLES */
    .governance-section { 
        height: 100vh;
        width: 100%;
        background: var(--bg-dark);
        position: relative;
        overflow: hidden;
        z-index: 70;
    }

    .section-label { 
        position: absolute; 
        top: 20px; 
        left: 0; 
        width: 100%; 
        text-align: center; 
        padding: 0 20px;
        z-index: 200; 
        background: var(--bg-dark);
        opacity: 1 !important;
        pointer-events: none;
    }

    .governance-logo {
        position: absolute;
        top: 90px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        z-index: 190;
    }
    
    .card-stack { 
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .card { 
        width: 85vw; 
        max-width: 340px;
        height: 380px; 
        padding: 30px 25px; 
        left: 50% !important;
        top: 55% !important;
        transform: translate(-50%, -50%);
        position: absolute;
        box-shadow: 0 20px 60px rgba(0,0,0,0.8);
        background: #111;
        border: 1px solid rgba(255,255,255,0.1);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .card h3 { 
        font-size: 1.4rem; 
        margin-bottom: 15px; 
        font-weight: 900;
        text-transform: uppercase;
        color: #ffffff;
    }
    .card p { 
        font-size: 1rem; 
        line-height: 1.5; 
        font-weight: 600;
        margin-bottom: 20px;
        color: #ddd;
    }
    .card-principles {
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 20px;
        list-style: none;
        padding-left: 0;
    }
    .card-principles li {
        font-size: 0.8rem;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: 'JetBrains Mono', monospace;
        font-weight: 600;
        text-transform: uppercase;
        color: #eee;
    }
    .card-principles li::before { content: ">>"; opacity: 0.5; }

    .card-blue { background: #004a80; }
    .card-teal { background: #007a85; }
    .card-dark { background: #1a1a1a; }
    .card-gray { background: #2d2d2d; }
    .card-light { background: #f8fafc; color: #111; border: 1px solid #eee; }
    .card-light h3 { color: var(--accent-blue); }
    .card-light p { color: #444; }
    .card-light .card-principles li { color: #666; }
    .card-light::before { background: var(--accent-blue); }
}

    .narrative-container {
        padding: 0 5vw;
        gap: 40px;
    }
    .narrative-row {
        gap: 30px;
    }
    .narrative-layer {
        padding: 30px 20px;
    }
    .narrative-layer p {
        font-size: clamp(1.1rem, 5vw, 1.4rem);
    }
    .pipeline-container {
        padding: 20px 10px;
        max-width: 100%;
    }
    .visual-frame {
        padding: 10px;
    }

    .github-pr-ui { padding: 12px; }
    .merge-status { margin-left: 0; width: 100%; margin-top: 10px; }
}

/* CSS Generated Visuals (Phase 03) */
.github-pr-ui {
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 80px;
}

.pr-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.pr-icon-box {
    color: #8b949e;
    font-size: 1.1rem;
}

.branch-selector {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    color: #c9d1d9;
}

.branch-selector .label { color: #8b949e; }
.branch-selector .branch { font-weight: 600; }
.branch-selector i { font-size: 0.7rem; opacity: 0.6; }
.arrow-dir { color: #8b949e; font-size: 0.9rem; }
.merge-status { display: flex; align-items: center; gap: 8px; color: #3fb950; font-size: 0.9rem; font-weight: 600; margin-left: auto; }
.merge-status i { font-size: 0.85rem; }

/* Terminal UI Visual */
.terminal-ui {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.terminal-header {
    background: #333;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }

.terminal-title {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    color: #999;
    left: 0;
}

.terminal-body { padding: 20px; color: #ddd; font-size: 0.85rem; }
.terminal-body .line { margin-bottom: 8px; }
.terminal-body .cmd { color: var(--accent-teal); }
.terminal-body .success { color: #27c93f; }
.terminal-body .info { color: #888; }
.terminal-body .cursor { animation: blink 1s infinite; }

/* Browser UI Visual */
.browser-ui {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.browser-header {
    background: #f1f1f1;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 8px; height: 8px; background: #ccc; border-radius: 50%; }

.browser-address {
    background: #fff;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.7rem;
    color: #666;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
}

.browser-address i { color: #27c93f; font-size: 0.6rem; }

.browser-body { padding: 10px; background: #ffffff; height: 180px; position: relative; display: flex; align-items: center; justify-content: center; }
.preview-mock { opacity: 0.6; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }

.mock-tech-stack-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.tech-logos {
    display: flex;
    gap: 25px;
}

.tech-logos i.fa-github { color: #24292e; font-size: 3.5rem; }
.tech-logos i.fa-fire { color: #FFCA28; font-size: 3.5rem; filter: drop-shadow(0 0 12px rgba(255, 202, 40, 0.4)); }

.mock-tech-stack-center span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mock-content-placeholder { width: 100%; margin-top: 15px; }
.mock-line { height: 6px; background: #eee; border-radius: 2px; margin-bottom: 6px; width: 60%; margin-left: auto; margin-right: auto; }

/* Discord UI Visual */
.discord-ui {
    background: #313338;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.discord-message { display: flex; gap: 15px; }
.discord-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.discord-author { color: #fff; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.bot-tag { background: var(--accent-blue); font-size: 0.6rem; padding: 2px 4px; border-radius: 3px; }

.discord-embed {
    background: #2b2d31;
    border-left: 4px solid #238636;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 8px;
}

.embed-title { color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.embed-text { color: #dbdee1; font-size: 0.85rem; line-height: 1.4; }
.embed-text code { background: rgba(0,0,0,0.3); padding: 2px 4px; border-radius: 3px; }

/* Dependabot UI Visual */
.dependabot-ui {
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dependabot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f0f6fc;
    font-size: 0.9rem;
    font-weight: 600;
}

.dependabot-header .pr-number { color: #8b949e; font-weight: 400; }

.dependabot-badge {
    background: rgba(35, 134, 54, 0.15);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.4);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dependabot-body {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dependabot-avatar {
    width: 32px;
    height: 32px;
    background: #1f6feb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

.dependabot-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dependabot-user { color: #f0f6fc; font-weight: 600; font-size: 0.85rem; }
.dependabot-msg { color: #8b949e; font-size: 0.85rem; line-height: 1.4; }
.dependabot-msg code { background: rgba(110, 118, 129, 0.4); padding: 2px 4px; border-radius: 3px; color: #e6edf3; }

/* Enhanced Discord UI for Backups */
.discord-ui.backup-theme .discord-avatar { background: #5865F2; }
.discord-ui.backup-theme .discord-embed { border-left-color: #57F287; }
.discord-ui.audit-theme .discord-avatar { background: #EB459E; }
.discord-ui.audit-theme .discord-embed { border-left-color: #57F287; }

.embed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.embed-field-label { color: #fff; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 2px; }
.embed-field-value { color: #dbdee1; font-size: 0.85rem; }

@keyframes blink { 50% { opacity: 0; } }

/* Legacy Transition Section - THE RECESSED SCREEN */
.legacy-pin-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #ffffff; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.legacy-transition-section {
    height: 60vh; /* Reduced height to fit text better */
    background: #000000;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    perspective: 1500px; /* Deep perspective */
}

.legacy-screen-recess {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* Deep Screen Vignette */
.legacy-transition-section::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Creating a 'frame' effect with shadows to make the center feel like a deep hole */
    background: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,0.9) 100%);
    box-shadow: inset 0 0 100px rgba(0, 168, 181, 0.1); /* Subtle inner tech glow */
    z-index: 10;
    pointer-events: none;
}

.scrolling-text-container {
    width: 100%;
    white-space: nowrap;
    will-change: transform;
    transform-style: preserve-3d;
    z-index: 2;
    overflow: visible;
}

.scrolling-legacy-text {
    display: inline-block;
    font-size: clamp(6rem, 25vw, 18rem); 
    font-weight: 900; 
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.2em; 
    margin: 0;
    opacity: 0.15; 
    transform-style: preserve-3d;
    transform: translate3d(0, 0, -1000px); 
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Desktop-Only Scale Boost */
@media (min-width: 1201px) {
    .pipeline-container { max-width: 650px !important; padding: 60px !important; gap: 35px !important; }
    .pipeline-node { padding: 18px 28px !important; }
    .node-label { font-size: 1.1rem !important; }
    .visual-narrative-section { padding: 150px 0 !important; }
    .narrative-container { max-width: 1600px !important; gap: 250px !important; }
    .narrative-row { grid-template-columns: 1fr 1.6fr !important; gap: 120px !important; }
    .narrative-text h3 { font-size: 3.5rem !important; letter-spacing: -2px !important; }
    .narrative-text p { font-size: 1.4rem !important; }
    .visual-frame { padding: 30px !important; }
    .github-pr-ui { min-height: 130px !important; padding: 25px !important; font-size: 1.1rem !important; }
    .terminal-body { padding: 40px !important; font-size: 1.1rem !important; }
    .browser-body { padding: 50px !important; height: 300px !important; }
    .discord-ui { padding: 40px !important; }
    .discord-message { gap: 25px !important; }
    .discord-avatar { width: 60px !important; height: 60px !important; font-size: 1.8rem !important; }
    .discord-author { font-size: 1.2rem !important; }
    .bot-tag { font-size: 0.75rem !important; }
    .discord-embed { padding: 25px 30px !important; border-left-width: 6px !important; }
    .embed-title { font-size: 1.3rem !important; }
    .embed-text { font-size: 1.1rem !important; }
}

/* Corporate Build Outs Section */
.construction-section {
    min-height: 100vh;
    background: #ffffff;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 8vw;
    overflow: hidden;
}

.architectural-bg {
    position: absolute;
    top: 0;
    right: -10vw; /* Tucked to the right */
    width: 80%; /* Larger footprint */
    height: 100%;
    opacity: 0.6; /* More visible teal */
    pointer-events: none;
    z-index: 1;
}

.crane-svg {
    width: 100%;
    height: 100%;
    /* Facing left naturally now based on paths */
}

.construction-container {
    max-width: 900px;
    width: 100%;
    z-index: 10;
    text-align: left; /* Corporate left align */
}

.construction-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.status-tag {
    color: var(--accent-blue);
    font-weight: 700;
}

.date-tag {
    opacity: 0.4;
}

.construction-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -3px;
    margin: 0;
    color: #111;
    text-transform: uppercase;
}

.construction-divider {
    width: 80px;
    height: 4px;
    background: var(--accent-teal);
    margin: 30px 0;
}

.construction-description {
    font-size: 1.4rem;
    line-height: 1.5;
    color: #444;
    max-width: 600px;
    margin-bottom: 50px;
    font-weight: 300;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    color: var(--accent-blue);
    padding: 12px 25px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: 3px;
    border-radius: 4px;
    font-size: 0.9rem;
    border-left: 4px solid var(--accent-blue);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    animation: badgePulse 2s infinite;
}

.construction-actions {
    margin-top: 60px;
}

.back-home-btn-corporate {
    display: inline-block;
    color: var(--accent-blue);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 0;
    border-bottom: 2px solid var(--accent-blue);
    transition: all 0.3s ease;
}

.back-home-btn-corporate:hover {
    color: var(--accent-teal);
    border-bottom-color: var(--accent-teal);
    padding-left: 10px;
}

@keyframes badgePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 1024px) {
    .architectural-bg { width: 100%; opacity: 0.2; }
    .construction-header { flex-direction: column; gap: 10px; }
}

/* Legacy Section Branding Logo */
.legacy-logo-overlay {
    position: absolute;
    bottom: 0; 
    left: 50%;
    transform: translate(-50%, 0); 
    width: clamp(800px, 90vw, 1400px); 
    height: auto;
    z-index: 0; 
    opacity: 0; 
    pointer-events: none;
    filter: saturate(1.2) brightness(1.1) contrast(0.9);
}

.legacy-logo-overlay img {
    width: 100%;
    height: auto;
    display: block;
}

/* Desktop-Only Copyright Notice */
.desktop-copyright {
    display: none;
}

@media (min-width: 1201px) {
    .desktop-copyright {
        display: block;
        margin-top: 150px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.75rem;
        color: rgba(0,0,0,0.3);
        letter-spacing: 2px;
        text-transform: uppercase;
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-top: 30px;
        width: 100%;
        text-align: left;
    }
}

/* Hero Technical Metadata */
.hero-tech-metadata {
    position: absolute;
    bottom: 6vh;
    left: 8vw;
    z-index: 30;
    pointer-events: none;
    display: none; /* Desktop only by default */
}

@media (min-width: 1251px) {
    .hero-tech-metadata {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

.metadata-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-label {
    color: var(--accent-blue);
    font-weight: 800;
    opacity: 0.8;
}

.meta-value {
    color: var(--text-dark);
    font-weight: 500;
    opacity: 0.5;
}

.status-pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-teal);
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 10px var(--accent-teal);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* Hero Background & Live Effects */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    z-index: 5; 
    pointer-events: none;
    overflow: hidden;
    perspective: 1500px; /* Deep perspective for "shooting out" feel */
}

/* Perspective Grid Floor: The 'Soil' */
.hero-bg-grid::before {
    content: "";
    position: absolute;
    bottom: -150%;
    left: -50%;
    width: 200%;
    height: 300%;
    background-image: 
        linear-gradient(rgba(5, 150, 105, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5, 150, 105, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotateX(75deg);
    transform-origin: center bottom;
    opacity: 0.8;
}

/* Dynamic Glow Orbs: 'Energy Spores' */
.hero-bg-grid::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 15%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.2) 0%, transparent 70%);
    filter: blur(140px);
    border-radius: 50%;
    animation: glowFloat 18s ease-in-out infinite alternate;
}

.hero-bg-grid .orb-primary {
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(0, 168, 181, 0.2) 0%, transparent 70%);
    filter: blur(140px);
    border-radius: 50%;
    animation: glowFloat 20s ease-in-out infinite alternate;
    z-index: 1;
}

.hero-bg-grid .orb-secondary {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 75vw;
    height: 75vw;
    background: radial-gradient(circle, rgba(0, 168, 181, 0.15) 0%, transparent 70%);
    filter: blur(120px);
    border-radius: 50%;
    animation: glowFloat 25s ease-in-out infinite alternate-reverse;
    z-index: 1;
}

.tech-bottom-glow {
    position: absolute;
    bottom: -15vh;
    left: 0;
    width: 100%;
    height: 40vh;
    background: radial-gradient(ellipse at 50% 100%, rgba(0, 168, 181, 0.12) 0%, transparent 80%);
    filter: blur(60px);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: scaleX(1.1);
}

.live-pulse-glow {
    animation: livePulse 4s ease-in-out infinite alternate;
}

@keyframes livePulse {
    0% { opacity: 0.4; transform: scaleX(1.2) translateY(0); filter: blur(80px); }
    100% { opacity: 0.7; transform: scaleX(1.3) translateY(-10px); filter: blur(60px); }
}
@keyframes glowFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

@media (min-width: 1024px) {
    .hero-bg-grid {
        display: block;
    }
}
/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-teal));
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 168, 181, 0.3);
}

/* Phase 0.5: Proof of Systems Section */
.proof-of-systems-section {
    background: #ffffff;
    padding: 120px 8vw;
    position: relative;
    z-index: 60; /* Higher than hero (50) to slide over it */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.proof-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.proof-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin: 10px 0;
    color: var(--text-dark);
}

.proof-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.6;
    font-weight: 400;
}

/* Systems Workflow Sequence Styles */
.systems-workflow-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 150px; /* Increased gap for section breathing */
    position: relative;
}

.systems-workflow-container::before {
    content: "";
    position: absolute;
    top: 300px;
    bottom: 300px;
    left: 50%;
    width: 1px;
    border-left: 1px dashed rgba(0, 168, 181, 0.15);
    z-index: 1;
    pointer-events: none;
}

.workflow-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 5vw;
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 60px rgba(0,0,0,0.02);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.workflow-header {
    max-width: 800px;
    margin-bottom: 40px;
}

.workflow-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--accent-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.8;
    font-weight: 600;
}

.workflow-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0 0 15px 0;
    color: var(--text-dark);
}

.workflow-header p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 400;
}

.workflow-cta-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.workflow-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-blue);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 25px rgba(0, 102, 153, 0.2);
}

.workflow-cta.emphasized-cta {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #004a80 100%);
    padding: 16px 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 102, 153, 0.3);
    position: relative;
    overflow: hidden;
}

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

.emphasized-cta:hover::before {
    left: 100%;
}

.emphasized-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 102, 153, 0.4);
    background: linear-gradient(135deg, #007bbd 0%, var(--accent-blue) 100%);
}

.cta-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--accent-teal);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.workflow-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 102, 153, 0.3);
    background: #007bbd;
}

.workflow-cta.secondary {
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    box-shadow: none;
}

.workflow-cta.secondary:hover {
    background: rgba(0, 102, 153, 0.05);
    transform: translateY(-3px);
}

.workflow-cta i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.workflow-visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 3vw, 40px);
    flex-wrap: nowrap; /* Keep it in one row on desktop */
    margin-top: 40px;
    padding: 0 20px;
    position: relative; /* Base for dependency tag */
}

.module-dependency-tag {
    position: absolute;
    bottom: 15px; /* Positioned inside the container at the bottom */
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 800;
    color: #94a3b8;
    background: rgba(248, 250, 252, 0.8);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    letter-spacing: 1px;
    z-index: 10;
    white-space: nowrap;
    opacity: 0.8;
}

.step-text {
    font-family: 'Inter', sans-serif;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.step-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.step-subtext {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
    font-weight: 400;
    display: block;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    flex: 0 1 auto;
    opacity: 0; /* Hidden for animation */
}

.flow-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    font-size: 1.2rem;
    opacity: 0; /* Hidden for animation */
    width: auto;
}

.connector-line {
    width: clamp(20px, 4vw, 60px);
    height: 2px;
    background: linear-gradient(to right, var(--accent-teal), transparent);
    opacity: 0.3;
}

.visual-graphic {
    width: clamp(400px, 45vh, 500px); /* Larger, but fits better vertically */
    height: clamp(400px, 45vh, 500px);
    background: #ffffff;
    border-radius: 48px;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Strict containment */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 1. The Consultant Booking Widget (Scaled) */
.widget-side {
    width: 38%;
    background: #ffffff;
    border-right: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.consultant-avatar {
    width: 130px; 
    height: 130px;
    font-size: 3.5rem;
}

.status-pulse-mini {
    width: 24px;
    height: 24px;
    border-width: 4px;
}

.c-name { font-size: 22px; }
.c-label { font-size: 15px; }

.widget-main {
    flex: 1;
    padding: 35px;
    gap: 25px;
}

.widget-title { font-size: 16px; margin-bottom: 5px; }

.time-grid { gap: 12px; }
.time-pill { padding: 18px; font-size: 18px; border-radius: 12px; }

/* 2. The Browser Email Client (Scaled) */
.window-bar { height: 50px; padding: 0 25px; gap: 12px; }
.dot { width: 14px; height: 14px; }
.app-title { font-size: 13px; margin-left: 15px; }

.receipt-card { padding: 50px; gap: 20px; border-radius: 24px; }
.check-circle { width: 70px; height: 70px; font-size: 2rem; }
.receipt-card h3 { font-size: 18px; }
.receipt-card p { font-size: 16px; }
.receipt-footer { font-size: 13px; margin-top: 20px; }

/* 3. The Desktop Calendar App (Scaled) */
.calendar-grid { padding: 25px; gap: 25px; background-image: repeating-linear-gradient(#f8fafc 0, #f8fafc 1px, transparent 1px, transparent 50px); }
.time-col { width: 50px; gap: 40px; font-size: 12px; }
.event-col { gap: 25px; }
.event-block { border-radius: 10px; padding: 18px; font-size: 13px; }
.event-block.fortune-sync { gap: 6px; box-shadow: 0 15px 30px rgba(0, 102, 153, 0.3); }
.sync-tag { font-size: 14px; }
.sync-time { font-size: 11px; }

/* 4. Branded iPhone Call Assistant */
.vis-call {
    background: #000;
    border: 15px solid #1a1a1a;
    border-radius: 65px;
    position: relative;
    overflow: hidden;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centering children */
}

.vis-call::before {
    content: "FORTUNE RECEPTIONIST";
    position: absolute;
    top: 60px; /* Adjusted from 70px */
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-size: 32px; /* Increased from 22px for better legibility */
    letter-spacing: 4px; /* Increased from 3px */
}

.vis-call::after {
    content: "";
    position: relative; /* Changed from absolute to flow in flex center */
    top: 20px; /* Slight offset for visual balance */
    width: 130px; /* Increased from 110px */
    height: 130px; /* Increased from 110px */
    background: #27c93f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 65px; /* Increased from 55px */
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(39, 201, 63, 0.6);
    animation: callPulse 2s infinite;
}

/* 5. Customer Intelligence Profile */
.vis-db {
    background: #020617;
    padding: 40px;
    border-radius: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid #1e293b;
    position: relative;
    overflow: hidden;
}

.vis-db::before {
    content: "[ SCANNING INBOUND... ]\A > SRC: +1-555-0123\A > PKT: ENCRYPTED_VOICE\A > HASH: 0x7E2...A9B\A ----------------------\A STATUS: MATCH FOUND\A ID: FORTUNE MEMBER\A LVL: VIP_CUSTOMER\A TAG: [RECURRING_PROJ]";
    white-space: pre-wrap;
    font-size: 16px;
    line-height: 1.6;
    color: var(--accent-teal);
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 168, 181, 0.3);
}

.vis-db::after {
    content: "PRIORITY_ROUTING_ENABLED";
    background: rgba(0, 168, 181, 0.15);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    margin-top: 20px;
    width: fit-content;
    border: 1px solid var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    animation: terminalBlink 1s infinite alternate;
}

@keyframes terminalBlink {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* Background "Data Stream" Effect */
.vis-db-bg {
    position: absolute;
    inset: 0;
    font-size: 10px;
    color: rgba(0, 168, 181, 0.05);
    line-height: 1;
    white-space: pre;
    pointer-events: none;
    z-index: 1;
    user-select: none;
}


/* 6. Branded iMessage Follow-Through */
.vis-sms {
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Top-down alignment */
    align-items: flex-end;
    padding: 40px;
    gap: 15px;
}

.sms-message {
    background: var(--accent-blue);
    color: #fff;
    padding: 22px 30px;
    border-radius: 35px 35px 5px 35px;
    font-size: 22px; /* Increased from 16px */
    font-weight: 700;
    max-width: 90%;
    line-height: 1.4;
    box-shadow: 0 15px 40px rgba(0, 102, 153, 0.3);
}

.sms-preview {
    width: 380px; /* Increased from 280px */
    background: #1a1a1a;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.preview-image {
    height: 190px; /* Increased from 140px */
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #333;
}

.preview-image .fortune-mark-svg {
    width: 80px;
    height: 80px;
}

.preview-content {
    padding: 20px 25px;
    position: relative;
}

.preview-title {
    color: #fff;
    font-size: 20px; /* Increased from 15px */
    font-weight: 800;
    margin-bottom: 8px;
}

.preview-site {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sms-status {
    font-size: 15px;
    color: #64748b;
    font-weight: 800;
    margin-right: 15px;
    margin-bottom: 120px; /* Space for overlay */
}




/* 7. SaaS Health Dashboard (Autonomous Shield) */
.vis-health {
    background: #020617;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px; /* Increased from 60px */
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* Increased from 20px */
    z-index: 2;
}

.dot-active {
    width: 35px; /* Increased from 25px */
    height: 35px; /* Increased from 25px */
    background: var(--accent-teal);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 25px var(--accent-teal);
}

.dot-active.pulse {
    animation: shieldPulse 2s infinite;
}

.shield-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 168, 181, 0.1);
    border: 3px solid var(--accent-teal);
    padding: 20px 45px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 36px; /* Increased from 24px */
    font-weight: 900;
    letter-spacing: 8px; /* Increased from 5px */
    z-index: 3;
    pointer-events: none;
    text-shadow: 0 0 20px var(--accent-teal);
    white-space: nowrap;
}

@keyframes shieldPulse {
    0% { transform: scale(1); opacity: 0.6; box-shadow: 0 0 20px var(--accent-teal); }
    50% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 40px var(--accent-teal); }
    100% { transform: scale(1); opacity: 0.6; box-shadow: 0 0 20px var(--accent-teal); }
}

/* 8. Hexagonal Triage (Intelligent Triage) */
.vis-triage {
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px; /* Increased from 60px */
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px; /* Increased from 4px */
    background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
    z-index: 5;
    animation: scanAnimation 3s linear infinite;
    opacity: 0.8;
}

.triage-log {
    font-family: 'JetBrains Mono', monospace;
    font-size: 38px; /* Increased from 28px */
    color: #94a3b8;
    line-height: 1.6;
    z-index: 2;
}

.log-success {
    color: var(--accent-teal);
    font-weight: 900;
    text-shadow: 0 0 15px rgba(0, 168, 181, 0.5);
}

@keyframes scanAnimation {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* 9. Success Terminal (Autonomous Healing) */
.vis-recovery {
    background: #020617;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.healing-ui {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.healing-bar {
    width: 100%;
    height: 12px;
    background: #1e293b;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.healing-progress {
    width: 100%;
    height: 100%;
    background: var(--accent-teal);
    animation: healingProgress 4s ease-out infinite;
    box-shadow: 0 0 20px var(--accent-teal);
}

.healing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    font-weight: 900;
    font-size: 32px; /* Increased from 18px */
}

.meta-tag {
    background: rgba(0, 168, 181, 0.1);
    color: var(--accent-teal);
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid var(--accent-teal);
    font-size: 14px;
}

@keyframes healingProgress {
    0% { width: 0%; }
    70% { width: 100%; }
    100% { width: 100%; }
}

/* 10. Modern PDF Invoice */
.vis-invoice { background: #f1f5f9; }
.vis-invoice::before {
    content: "INVOICE #8829\A------------------\AAMOUNT: $4,200.00\ASTATUS: PAID";
    white-space: pre-wrap;
    background: #fff;
    padding: 70px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    font-size: 26px;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}

/* 11. Split Ledger */
.vis-reconcile { background: #fff; display: flex; align-items: center; justify-content: center; gap: 60px; }
.vis-reconcile::before {
    content: "";
    width: 400px; height: 260px;
    background: linear-gradient(to right, #f1f5f9 50%, #fff 50%);
    border: 2px solid #e2e8f0;
}
.vis-reconcile::after {
    content: "\2713";
    position: absolute; color: var(--accent-teal); font-size: 110px; font-weight: 900;
}

/* 12. Growth Analytics */
.vis-flow { background: #fff; }
.vis-flow::before {
    content: "";
    width: 450px; height: 280px;
    background: var(--accent-teal);
    clip-path: polygon(0 100%, 10% 80%, 30% 85%, 50% 40%, 70% 50%, 90% 10%, 100% 0, 100% 100%);
    opacity: 0.3;
}

/* Mini Branding & Bespoke Signing */
.mini-brand-overlay {
    position: absolute;
    inset: 0;
    padding: 35px;
    pointer-events: none;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Anchored to bottom */
    align-items: flex-start;   /* Anchored to left */
    gap: 10px;
}

.mini-logo {
    display: flex;
    align-items: center; /* Icon left, Text right */
    gap: 15px;
    transform: scale(0.5); 
    transform-origin: left bottom;
    opacity: 0.8;
}

.mini-logo-icon {
    display: flex;
    align-items: center;
}

.mini-logo-stack {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.mini-logo-top {
    font-family: 'Exo 2', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: #004a80;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-logo-bottom-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -2px;
}

.mini-logo-sep {
    font-weight: 300;
    font-size: 1.4rem;
    color: #00a8b5;
}

.mini-logo-bottom {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #00a8b5;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.bespoke-signature {
    font-family: 'Exo 2', sans-serif;
    font-style: italic;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-teal);
    opacity: 0.5;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-left: 8px; /* Alignment with scaled logo icon */
}

/* 1. The Consultant Booking Widget */
.vis-calendar {
    background: #f8fafc;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendar-widget {
    display: flex;
    width: 100%;
    height: 100%;
}

.widget-side {
    width: 35%;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Tighter gap */
    padding: 15px; /* Minimal padding to fill */
}

.consultant-avatar {
    width: 120px; /* Maximize size */
    height: 120px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 102, 153, 0.15);
}

.status-pulse-mini {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--accent-teal);
    border: 4px solid #fff;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.consultant-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.c-name { font-size: 22px; font-weight: 800; color: #1e293b; }
.c-label { font-size: 15px; font-weight: 600; color: var(--accent-teal); opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }

.widget-main {
    flex: 1;
    padding: 20px; /* Minimal padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.time-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px; /* Fill space */
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    transition: all 0.3s ease;
}

.time-pill.active {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 5px 15px rgba(0, 102, 153, 0.2);
}

/* 2. Branded Email Design */
.vis-notify {
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    justify-content: center;
    align-items: center;
}

.branded-email {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px; 
    font-family: 'Inter', sans-serif;
    color: #334155;
    text-align: center;
    box-sizing: border-box;
}

.email-header {
    margin-bottom: 10px;
}

.email-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-weight: 900;
    font-size: 32px; /* Reduced from 36px */
    color: #004a80;
    letter-spacing: 3px;
}

.logo-sub {
    font-size: 16px; /* Reduced from 20px */
    color: #00a8b5;
    letter-spacing: 6px;
    margin-top: 5px;
}

.email-title {
    font-size: 20px; /* Reduced from 24px */
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 2px;
    margin: 5px 0; /* Reduced from 10px 0 5px */
}

.email-divider {
    width: 100px; /* Reduced from 120px */
    height: 4px;
    background: #00a8b5;
    margin: 0 auto 10px; /* Reduced from 15px */
    opacity: 0.6;
}

.email-greeting {
    font-size: 18px; /* Reduced from 22px */
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
}

.email-text {
    font-size: 16px; /* Reduced from 20px */
    line-height: 1.4; /* Reduced from 1.5 */
    color: #64748b;
    margin-bottom: 15px; /* Reduced from 20px */
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.email-info-box {
    background: #f8fafc;
    border-radius: 12px; /* Reduced from 16px */
    padding: 15px 25px; /* Reduced from 30px 40px */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; /* Reduced from 30px */
    margin: 5px 0 15px; /* Reduced from 5px 0 20px */
    text-align: left;
    border: 1px solid #f1f5f9;
}

.info-item label {
    display: block;
    font-size: 12px; /* Reduced from 14px */
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 3px; /* Reduced from 5px */
    text-transform: uppercase;
    letter-spacing: 1.5px; /* Reduced from 2px */
}

.info-item span {
    font-size: 16px; /* Reduced from 20px */
    font-weight: 800;
    color: #1e293b;
}

.email-footer {
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    padding-bottom: 110px; /* Lifted even higher to avoid overlay */
}

.footer-sig {
    display: flex;
    align-items: center;
    gap: 10px; /* Tighter gap */
    text-align: left;
    justify-content: center;
}

.sig-avatar {
    width: 40px; /* Reduced from 60px */
    height: 40px; /* Reduced from 60px */
    background: var(--accent-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px; /* Reduced from 20px */
    font-weight: 800;
}

.sig-text {
    display: flex;
    flex-direction: column;
}

.sig-text strong {
    font-size: 14px; /* Reduced from 18px */
    color: #1e293b;
}

.sig-text span {
    font-size: 11px; /* Reduced from 14px */
    color: #94a3b8;
    font-weight: 600;
}

/* 3. The Desktop Calendar App */
.vis-meeting {
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendar-app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-title {
    font-size: 16px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-left: 20px;
}

.calendar-grid {
    flex: 1;
    display: flex;
    padding: 35px;
    gap: 35px;
    background-image: repeating-linear-gradient(#f8fafc 0, #f8fafc 1px, transparent 1px, transparent 65px);
}

.time-col {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 65px;
    color: #cbd5e1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    padding-top: 10px;
}

.event-col {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.event-block {
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    padding: 22px;
}

.event-block.other {
    background: #f1f5f9;
    color: #94a3b8;
    border-left: 3px solid #e2e8f0;
    opacity: 0.6;
}
.event-block.fortune-sync {
    background: var(--accent-blue);
    color: #fff;
    border-left: 6px solid var(--accent-teal);
    box-shadow: 0 15px 35px rgba(0, 102, 153, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sync-tag { font-size: 18px; font-weight: 800; }
.sync-time { font-size: 14px; opacity: 0.9; font-weight: 600; }

/* 4. AI Voice Assistant (The Neural Entry) */
.vis-call { 
    background: #0a0a0a; 
    border: 1px solid #30363d;
    border-radius: 32px; 
    flex-direction: column; 
    padding: 25px;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0, 168, 181, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vis-call::before {
    content: "AI ASSISTANT ACTIVE\A Decrypting: +1 (555) 0123...";
    white-space: pre;
    color: var(--accent-teal); font-family: 'JetBrains Mono', monospace; 
    font-size: 13px; /* Increased from 9px */
    text-align: center; font-weight: 800; /* Increased weight */
    margin-bottom: 25px; letter-spacing: 1.5px;
    line-height: 1.6;
}
.vis-call::after {
    content: "";
    width: 140px; /* Increased from 120px */
    height: 50px; /* Increased from 40px */
    background: repeating-linear-gradient(90deg, var(--accent-teal), var(--accent-teal) 3px, transparent 3px, transparent 10px);
    opacity: 0.8; /* Increased opacity */
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    animation: waveformPulse 1.5s ease-in-out infinite;
}

@keyframes waveformPulse {
    0%, 100% { transform: scaleY(0.5); opacity: 0.3; }
    50% { transform: scaleY(1.2); opacity: 0.8; }
}

/* 5. Customer Intelligence Profile (The Wrap) */
.vis-db { 
    background: #020617; 
    flex-direction: column; 
    padding: 25px; 
    align-items: flex-start !important; 
    border-radius: 32px;
    border: 1px solid #1e293b;
    position: relative;
    overflow: hidden;
}
.vis-db::before {
    content: "[ DATABASE MATCH ]\A NAME: FORTUNE MEMBER\A STATUS: VIP CUSTOMER\A LAST: YESTERDAY";
    white-space: pre;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; /* Increased from 11px */
    color: var(--accent-teal); 
    line-height: 1.6; 
    font-weight: 800;
    text-align: left;
    z-index: 2;
}
.vis-db::after {
    content: "ROUTE: PRIORITY";
    background: rgba(0, 168, 181, 0.1); 
    color: #fff;
    font-family: 'JetBrains Mono', monospace; 
    font-size: 10px; 
    font-weight: 900;
    padding: 6px 12px; 
    border-radius: 4px; 
    margin-top: 15px;
    display: block; 
    text-transform: uppercase;
    border: 1px solid var(--accent-teal);
    z-index: 2;
}


/* 6. Branded iMessage Follow-Through */
.vis-sms { 
    background: #000; 
    padding: 20px; 
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
    align-items: flex-end !important;
    gap: 10px; 
}
.sms-message {
    font-size: 13px; /* Slightly larger */
    padding: 12px 18px;
    border-radius: 20px 20px 4px 20px;
    max-width: 90%;
}
.sms-preview {
    width: 240px; /* Increased from 200px */
    border-radius: 16px;
}
.preview-image {
    height: 120px;
}
.preview-image .fortune-mark-svg {
    width: 50px;
    height: 50px;
}
.preview-title {
    font-size: 14px;
}
.preview-site {
    font-size: 10px;
}
.sms-status {
    font-size: 10px;
    margin-right: 8px;
    margin-bottom: 70px; /* Space for overlay */
}





/* 7. SaaS Health Dashboard */
.vis-health { 
    background: #020617; 
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.health-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.dot-active {
    width: 20px; height: 20px;
    background: var(--accent-teal); border-radius: 50%; opacity: 0.6;
}
.dot-active.pulse { animation: shieldPulse 2s infinite; }
.shield-status {
    position: absolute;
    font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 900;
    color: #fff; background: rgba(0, 168, 181, 0.2);
    border: 1px solid var(--accent-teal); padding: 10px 20px;
    letter-spacing: 3px;
    white-space: nowrap;
}

/* 8. Hexagonal Triage */
.vis-triage { 
    background: #0a0a0a; 
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: var(--accent-teal); opacity: 0.5;
    animation: scanAnimation 3s linear infinite;
}
.triage-log {
    font-family: 'JetBrains Mono', monospace; font-size: 18px; color: #94a3b8;
    line-height: 1.5;
}
.log-success { color: var(--accent-teal); font-weight: 800; }


/* 9. Success Terminal */
.vis-recovery { 
    background: #020617; 
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.healing-ui { width: 100%; display: flex; flex-direction: column; gap: 15px; }
.healing-bar { width: 100%; height: 8px; background: #1e293b; border-radius: 4px; overflow: hidden; }
.healing-progress { width: 100%; height: 100%; background: var(--accent-teal); animation: healingProgress 4s ease-out infinite; }
.healing-meta { display: flex; justify-content: space-between; font-size: 14px; color: #fff; font-family: 'JetBrains Mono', monospace; font-weight: 800; }
.meta-tag { color: var(--accent-teal); font-weight: 800; }


/* 10. Modern PDF Invoice */
.vis-invoice { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.vis-invoice::before {
    content: "INVOICE\A#INV-001\A$1,250.00";
    white-space: pre; padding: 25px;
    font-size: 13px; font-weight: 900; color: #1e293b; line-height: 1.6;
}

/* 11. Split Ledger */
.vis-reconcile { background: #f8fafc; }
.vis-reconcile::before {
    content: "";
    width: 200px; height: 120px;
    background: 
        linear-gradient(90deg, #fff 48%, transparent 48%, transparent 52%, #fff 52%);
    border: 1px solid #e2e8f0;
}
.vis-reconcile::after {
    content: "\2713";
    position: absolute; color: var(--accent-teal); font-size: 40px; font-weight: 900;
}

/* 12. Growth Analytics */
.vis-flow { background: #fff; }
.vis-flow::before {
    content: "";
    width: 180px; height: 120px;
    background: var(--accent-teal);
    clip-path: polygon(0 100%, 10% 80%, 30% 85%, 50% 40%, 70% 50%, 90% 10%, 100% 0, 100% 100%);
    opacity: 0.3;
}

/* Fortune Wrap Highlight */
.active-wrap .visual-graphic {
    border-color: var(--accent-teal);
    box-shadow: 0 0 45px rgba(0, 168, 181, 0.4);
    border-width: 3px;
    transform: scale(1.05);
}

/* Proposed Solutions Styling (Inactive/Blueprint Aesthetic) */
.proposed-workflow {
    background: #ffffff;
    position: relative;
    z-index: 20; /* Higher than story-scroll-container (10) */
}

.proposed-workflow .workflow-header {
    background: transparent;
}

.proposed-workflow .visual-graphic {
    filter: grayscale(0.8) opacity(0.6);
    border: 1px dashed #cbd5e1;
    background: #ffffff;
    box-shadow: none;
    transition: all 0.4s ease;
}

.proposed-workflow .flow-step:hover .visual-graphic {
    filter: grayscale(0.5) opacity(0.8);
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.proposed-workflow .step-text {
    opacity: 0.6;
    font-style: italic;
}

.proposed-workflow .module-dependency-tag {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal);
    box-shadow: 0 0 10px rgba(0, 168, 181, 0.1);
    animation: dependencyPulse 2s infinite alternate;
    bottom: auto; /* Override global bottom */
    top: 15px;    /* Position at top */
    font-size: 11px; /* Slightly larger as requested */
    padding: 6px 16px;
}

@keyframes dependencyPulse {
    from { opacity: 0.7; transform: translateX(-50%) scale(0.98); }
    to { opacity: 1; transform: translateX(-50%) scale(1.02); }
}

.proposed-workflow .flow-step:hover .visual-graphic {
    filter: grayscale(0.5) opacity(0.8);
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.proposed-workflow .step-text {
    opacity: 0.6;
    font-style: italic;
}

/* Proposal Graphics Styles (Detailed Blueprint Designs) */
.blueprint-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Minimal padding to fill space */
    font-family: 'JetBrains Mono', monospace;
}

/* 01. Migration Bridge */
.migration-bridge {
    gap: 40px;
}
.bp-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #94a3b8;
}
.bp-stage i { font-size: 4.5rem; } /* Massive to fill */
.bp-stage span { font-size: 1.3rem; font-weight: 800; letter-spacing: 3px; }

.bp-bridge {
    flex: 1;
    height: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.bridge-rail {
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(90deg, #e2e8f0 0, #e2e8f0 10px, transparent 10px, transparent 20px);
}
.bridge-status {
    position: absolute;
    top: -40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 3px;
}
.bp-data-stream {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-blue);
    border-radius: 2px;
    opacity: 0.4;
    animation: bridgeFlow 2s infinite linear;
}
@keyframes bridgeFlow {
    0% { left: 0; transform: scale(1); }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { left: 90%; transform: scale(1); }
}

/* 02. Loyalty Synthesis */
.loyalty-blueprint {
    flex-direction: column;
    justify-content: space-around; /* Spread out to fill */
    padding: 20px; 
}

.bp-inputs-row, .bp-outputs-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    width: 100%;
}

.bp-api-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}
.bp-api-node i { font-size: 3.5rem; } /* Massive */
.bp-api-node span { font-size: 1.2rem; font-weight: 800; }

.bp-loyalty-core {
    width: 160px; /* Massive to fill space */
    height: 160px;
    background: #ffffff;
    border: 4px solid var(--accent-teal);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 168, 181, 0.1);
}

.bp-loyalty-core i { font-size: 4.5rem; }

.loyalty-status {
    position: absolute;
    bottom: -40px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-blue);
    white-space: nowrap;
    letter-spacing: 4px;
}

.bp-out-icon {
    font-size: 3.5rem;
    color: var(--accent-blue);
    opacity: 0.6;
    animation: floatVertical 3s infinite ease-in-out;
}
.bp-out-icon:nth-child(2) { animation-delay: 1.5s; }

@keyframes floatVertical {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); opacity: 1; }
}

/* 03. Outreach Broadcast */
.outreach-broadcast {
    position: relative;
}
.bp-broadcast-logic {
    width: 100px; /* Upscaled */
    height: 100px;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    z-index: 10;
    font-size: 3rem;
}
.bp-channels {
    position: absolute;
    inset: 0;
}
.bp-channel {
    position: absolute;
    font-size: 3rem; /* Massive to fill space */
    color: #cbd5e1;
    transition: all 0.3s ease;
}
.bp-channel:nth-child(1) { top: 12%; left: 12%; }
.bp-channel:nth-child(2) { top: 12%; right: 12%; }
.bp-channel:nth-child(3) { bottom: 12%; left: 50%; transform: translateX(-50%); }

.bp-waves span {
    position: absolute;
    border: 3px solid var(--accent-blue);
    border-radius: 50%;
    opacity: 0;
    animation: broadcastWaves 3s infinite;
}
.bp-waves span:nth-child(1) { width: 140px; height: 140px; animation-delay: 0s; }
.bp-waves span:nth-child(2) { width: 240px; height: 240px; animation-delay: 1s; }
.bp-waves span:nth-child(3) { width: 340px; height: 340px; animation-delay: 2s; }

@keyframes broadcastWaves {
    0% { transform: scale(0.5); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0; }
}

.active-wrap .step-text {
    color: var(--accent-teal);
    font-weight: 900;
}

.wrap-tag {
    position: absolute;
    top: -15px;
    background: var(--accent-teal);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 6px 16px;
    border-radius: 8px;
    letter-spacing: 2px;
    box-shadow: 0 6px 15px rgba(0, 168, 181, 0.3);
    z-index: 20;
    text-transform: uppercase;
}


/* Phase 04: Inquiry Intake & Sovereign Footer */
.contact-section {
    padding: 150px 5vw;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section .section-label {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    text-align: left;
    width: 100%;
    max-width: 1400px; /* Increased to match wide layout */
    margin-bottom: 40px;
    background: #ffffff;
    padding: 20px 0;
}

.contact-section h2 {
    color: var(--text-dark);
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin: 10px 0;
}

.contact-section .proof-subtitle {
    max-width: 800px; /* Increased for wider container */
    margin: 0;
    text-align: left;
}

.command-container {
    width: 100%;
    max-width: 1400px; /* Increased from 1100px */
    margin-top: 40px;
}

.prestige-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
}

.prestige-form label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #004a80; /* Branded dark navy */
    margin-bottom: 8px;
    display: block;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%; /* Ensure wrapper fills group */
}

.prestige-form input, 
.prestige-form textarea {
    width: 100%; /* Ensure inputs fill wrapper */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    font-family: inherit;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.prestige-form input:focus, 
.prestige-form textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 168, 181, 0.05);
}

.prestige-form input.verified, 
.prestige-form textarea.verified {
    border-color: var(--accent-teal) !important;
    background: rgba(0, 168, 181, 0.03) !important;
}

.prestige-form input.error, 
.prestige-form textarea.error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.03) !important;
}

.command-btn {
    align-self: flex-start;
    background: var(--text-dark);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 20px 40px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.command-btn:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 102, 153, 0.2);
}

.site-footer {
    background: #0a0a0a;
    padding: 60px 5vw 40px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Exo 2', sans-serif;
    font-weight: 900;
    font-size: 35vw; /* Balanced size for impact and legibility */
    line-height: 1;
    color: rgba(255, 255, 255, 0.035); /* Increased opacity for better legibility */
    pointer-events: none;
    user-select: none;
    z-index: 1;
    letter-spacing: -0.8vw; /* Improved legibility */
    white-space: nowrap;
}

.logo-chevron {
    color: var(--accent-teal);
    font-weight: 900;
    margin-left: 8px;
    opacity: 0.8;
    letter-spacing: 0;
}

/* Footer Grid Restoration */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    align-items: start;
}

.footer-nav-cell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-cell a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-nav-cell a:hover {
    color: #ffffff;
}

.nav-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 900;
    color: var(--accent-teal);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 80px 5vw;
    }
    .contact-section .section-label,
    .contact-section .proof-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .contact-section .section-label {
        padding: 0;
        margin-bottom: 30px;
    }
    .form-row { grid-template-columns: 1fr; gap: 20px; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .command-btn { align-self: center; width: 100%; justify-content: center; }
}
.narrative-row {
    transition: opacity 0.5s ease, filter 0.5s ease;
    filter: blur(0px);
}

.narrative-row.dimmed {
    opacity: 0.15;
    filter: blur(2px);
}

/* RESTORED HIGH-FIDELITY COMPONENT STYLES */

/* Growth Metrics Visual */
.vis-growth {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.growth-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.bar-stack {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
}
.bar {
    width: 25px;
    background: #e2e8f0;
    border-radius: 4px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.bar.active {
    background: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 74, 128, 0.3);
}
.growth-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-blue);
}

/* Global Ledger Visual */
.vis-ledger {
    background: #0a0a0a;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ledger-ui {
    font-family: 'JetBrains Mono', monospace;
}
.ledger-entry {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.8;
}
.ledger-balance {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 900;
    color: var(--accent-teal);
    text-shadow: 0 0 10px rgba(0, 168, 181, 0.3);
}

/* Monitoring UI */
.monitoring-ui {
    width: 100%;
    background: #111;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333;
    font-family: 'JetBrains Mono', monospace;
}
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}
.stat-card {
    display: flex;
    flex-direction: column;
}
.stat-label { font-size: 10px; color: #666; text-transform: uppercase; }
.stat-value { font-size: 22px; font-weight: 900; color: #fff; }
.chart-box {
    width: 100%;
    height: 80px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    border: 1px solid #222;
}
.chart-line {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 200%;
    height: 2px;
    background: var(--accent-teal);
    box-shadow: 0 0 15px var(--accent-teal);
    animation: waveMove 4s infinite linear;
}
.chart-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 168, 181, 0.05));
}
@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.monitoring-footer {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--accent-teal);
    font-weight: 800;
}
.status-indicator {
    width: 6px; height: 6px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-teal);
}

/* Discord UI Enhancement */
.discord-ui {
    background: #313338;
    border-radius: 8px;
    width: 100%;
    padding: 20px;
    color: #dbdee1;
    font-family: 'Inter', sans-serif;
}
.discord-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #949ba4;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}
.discord-msg { display: flex; gap: 16px; }
.msg-avatar {
    width: 40px; height: 40px;
    background: var(--accent-blue);
    border-radius: 50%;
    flex-shrink: 0;
}
.msg-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.msg-author { font-weight: 600; color: #fff; }
.msg-tag {
    background: #5865f2; color: #fff;
    font-size: 10px; padding: 1px 4px; border-radius: 3px;
    font-weight: 700;
}
.msg-time { font-size: 12px; color: #949ba4; }
.msg-embed {
    background: #2b2d31;
    border-left: 4px solid var(--accent-teal);
    border-radius: 4px;
    padding: 12px 16px;
    margin-top: 8px;
    max-width: 300px;
}
.embed-title { font-weight: 700; color: #fff; margin-bottom: 8px; }
.embed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.embed-field-label { font-size: 12px; font-weight: 700; color: #fff; }
.embed-field-value { font-size: 12px; color: #dbdee1; }

/* Friendly Sovereignty UI: Status Updates */
.sovereignty-ui {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #ffffff;
    gap: 20px;
}

.friendly-status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
}

.status-pulse-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
    animation: friendlyPulse 2s infinite;
}

.status-text-main {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.5px;
}

@keyframes friendlyPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 15px rgba(34, 197, 94, 0.6); }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.status-updates {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.update-bubble {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f1f5f9;
    padding: 15px 20px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.update-bubble.active {
    background: #ffffff;
    border-color: var(--accent-teal);
    box-shadow: 0 10px 25px rgba(0, 168, 181, 0.1);
}

.update-icon {
    font-size: 1.2rem;
    color: #64748b;
}

.update-bubble.active .update-icon {
    color: var(--accent-teal);
}

.update-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.update-content strong {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 800;
}

.update-content span {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.messages-received-tag {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: uppercase;
    opacity: 0.7;
}

/* Correct Prestige Form Positioning */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper i {
    position: absolute;
    left: 20px;
    color: #64748b;
    font-size: 0.9rem;
}
.prestige-form input,
.prestige-form textarea {
    padding-left: 50px !important;
}
.form-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.encryption-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}
.encryption-notice i { color: var(--accent-teal); }
.submit-btn {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 18px 35px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 153, 0.3);
    background: #005a8d;
}

/* Footer Grid Restoration */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.nav-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 900;
    color: var(--accent-teal);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.brand-mission {
    margin: 20px 0;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}
.system-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 168, 181, 0.1);
    border: 1px solid rgba(0, 168, 181, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--accent-teal);
    font-weight: 700;
}
.footer-bottom-bar {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}
.technical-hash { font-family: 'JetBrains Mono', monospace; opacity: 0.5; }


.footer-bottom-bar {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}
.technical-hash { font-family: 'JetBrains Mono', monospace; opacity: 0.5; }

/* Proposed Solutions: Legacy Transformation */
.vis-legacy {
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.legacy-transform-ui {
    display: flex;
    align-items: center;
    gap: 60px;
}

.legacy-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 800;
}

.legacy-block i {
    font-size: 4.5rem;
}

.monolith {
    color: #475569;
}

.modernized {
    color: var(--accent-teal);
    text-shadow: 0 0 30px rgba(0, 168, 181, 0.6);
}

.transform-arrow {
    position: relative;
    color: var(--accent-blue);
    font-size: 3rem;
    display: flex;
    align-items: center;
}

.spark-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--accent-teal);
    top: 50%;
    left: 0;
    opacity: 0.4;
    animation: sparkMove 1.5s infinite linear;
}

@keyframes sparkMove {
    0% { transform: scaleX(0); opacity: 0; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1.5); opacity: 0; }
}

/* Proposed Solutions: Loyalty Management */
.vis-loyalty {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.loyalty-ui {
    position: relative;
    width: 260px;
    height: 260px;
}

.loyalty-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 5;
    box-shadow: 0 0 40px rgba(0, 74, 128, 0.4);
    font-size: 2.5rem;
}

.loyalty-node {
    position: absolute;
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.2rem;
    z-index: 4;
    transition: all 0.3s ease;
}

.loyalty-node.n1 { top: 0; left: 50%; transform: translateX(-50%); }
.loyalty-node.n2 { bottom: 0; left: 10%; }
.loyalty-node.n3 { bottom: 0; right: 10%; }

.loyalty-line {
    position: absolute;
    background: #e2e8f0;
    height: 3px;
    transform-origin: left center;
    z-index: 1;
}

.l1 { width: 120px; transform: rotate(-90deg); top: 50%; left: 50%; }
.l2 { width: 120px; transform: rotate(135deg); top: 50%; left: 50%; }
.l3 { width: 120px; transform: rotate(45deg); top: 50%; left: 50%; }


/* Fortune Framework Interactive Section */
.fortune-framework-section {
    max-width: 1300px;
    margin: 80px auto 100px;
    padding: 0 40px;
}

.framework-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.system-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-teal);
    letter-spacing: 4px;
    font-weight: 700;
    opacity: 0.8;
}

.framework-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin: 0;
    color: var(--text-dark);
    letter-spacing: -0.04em;
    line-height: 1;
}

.framework-header p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 400;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.framework-card {
    height: 500px; /* Slightly taller for more presence */
    cursor: pointer;
    position: relative;
    z-index: 1;
    perspective: 1500px; /* Moved here for better individual card stability */
    transition: z-index 0s step-end;
}

.framework-card:hover {
    z-index: 50; /* Pop to front on hover */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.framework-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; /* Safari support */
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: flex-start; 
    text-align: left; 
    box-sizing: border-box;
}

.card-front {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 74, 128, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.5); /* Added very subtle edge */
    overflow: hidden;
}

.icon-artifact {
    width: 100px; /* Increased from 80px */
    height: 100px;
    background: #f8fafc;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    border: 1px solid rgba(0, 168, 181, 0.08);
}

.icon-artifact i {
    font-size: 2.8rem; /* Increased from 2.2rem */
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.framework-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.ghost-id {
    position: absolute;
    bottom: 25px;
    left: 35px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #cbd5e1;
    letter-spacing: 1px;
    font-weight: 600;
}

.card-back {
    background: #1e293b;
    transform: rotateY(180deg);
    border-color: var(--accent-teal);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Architectural Blueprint Texture */
.card-back::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 168, 181, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 181, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
    pointer-events: none;
}

/* Glassmorphic Depth on Hover */
.framework-card:hover .card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 0 30px rgba(0, 168, 181, 0.15);
}

.framework-card:hover .card-back {
    backdrop-filter: blur(12px);
    border-color: var(--accent-teal);
}

/* Technical Keyword Underline */
.tech-underline {
    color: var(--accent-teal);
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding: 0 2px;
}

.tech-underline::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-teal);
    opacity: 0.25;
    z-index: -1;
    box-shadow: 0 0 10px var(--accent-teal);
}

/* Card Metadata Styling */
.card-metadata {
    margin-top: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 1px;
    opacity: 0.6;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 168, 181, 0.1);
    width: 100%;
}

.card-front h4 {
    background: linear-gradient(135deg, #004a80 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-back h4 { color: #ffffff; margin-top: 10px; }

.card-front p {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
}

.card-back p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.pillar-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-teal);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.flip-hint {
    margin-top: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-teal);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1250px) {
    .framework-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .framework-card {
        height: 460px; /* Increased for mobile visibility */
    }

    .icon-artifact {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }

    .icon-artifact i {
        font-size: 2.2rem;
    }

    .ghost-id {
        bottom: 20px;
        left: 25px;
        font-size: 9px;
    }

    .framework-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .fortune-framework-section {
        padding: 0 20px;
    }
    
    .card-front, .card-back {
        padding: 25px; /* Tighter padding for mobile fit */
    }
}


/* Hero Navigation Hub */
.hero-nav-hub {
    position: absolute;
    bottom: 6vh;
    right: 8vw;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
}

.nav-hub-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-blue);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: right;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(0, 74, 128, 0.05);
    transform: translateX(-5px);
}

.governance-footer {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 50;
}

.back-to-systems {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--accent-teal);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.back-to-systems i {
    font-size: 1.2rem;
    animation: simpleBounce 2s infinite;
}

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

.back-to-systems:hover {
    color: var(--accent-blue);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .sticky-nav-hub {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .nav-hub-container {
        flex-direction: row;
        justify-content: space-around;
        padding: 8px;
        border-radius: 15px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 8px 12px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 60px 8vw 30px;
        text-align: center;
    }

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

    .footer-brand-cell {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand-cell .logo-lockup {
        justify-content: center;
        margin-bottom: 15px;
    }

    .brand-mission {
        max-width: 300px;
        margin: 0 auto 20px;
    }

    .footer-nav-cell {
        align-items: center;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 10px;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* --- Ultimate Wow Cosmic v9 Architecture --- */
.story-scroll-container {
    height: 900vh; /* Extended from 700vh for deeper immersion and portal button visibility */
    background: transparent;
    position: relative;
    width: 100%;
    z-index: 10;
}

.story-stage {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: transparent;
    will-change: opacity, transform;
}

.story-watermark {
    position: absolute;
    top: 5vh;
    right: -2vw; /* Nudged right from 5vw to sit just before the cutoff */
    width: 65vh; 
    max-width: 1200px; 
    opacity: 0.2; 
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 1000; 
    filter: saturate(1.1) brightness(1.05); 
    transition: opacity 0.5s ease;
}

.story-svg {
    width: 95%;
    max-width: 1400px;
    height: auto;
    max-height: 80vh;
    filter: drop-shadow(0 20px 50px rgba(0, 168, 181, 0.05));
}

/* Base Cosmic SVG Primitives */
.st-body, .st-desk, .st-truck-body, .st-pipe, .st-frame, .st-icon-bg, .st-stud {
    stroke: var(--accent-teal);
    stroke-width: 3.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.st-body { stroke-width: 4; } /* Bolder figures */
.st-hardhat { fill: var(--accent-teal); stroke: var(--accent-teal); stroke-width: 1; }
.st-desk { stroke: #475569; stroke-width: 4; }

/* Massive In-Scene Comic Text & UI Panels */
.st-lcd-panel { fill: #0f172a; stroke: #334155; stroke-width: 2; }
.st-screen-lcd { fill: #020617; }
.st-lcd-panel-red { fill: #450a0a; stroke: #ef4444; stroke-width: 3; filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.4)); }

.st-lcd-text-red {
    fill: #f87171;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px; /* High visibility */
    font-weight: 800;
    text-anchor: middle;
}

.st-lcd-text-red-bold {
    fill: #ef4444;
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px; /* Massive impact */
    font-weight: 900;
    text-anchor: middle;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.7));
}

.st-bubble-bg {
    fill: #ffffff;
    stroke: var(--accent-teal);
    stroke-width: 3;
    filter: drop-shadow(0 15px 35px rgba(0, 168, 181, 0.15));
}

.st-res-text {
    fill: #1e293b;
    font-family: 'Inter', sans-serif;
    font-size: 18px; /* Extremely readable */
    font-weight: 600;
}

.st-res-text-bold {
    fill: var(--accent-teal);
    font-family: 'Inter', sans-serif;
    font-size: 22px; /* Final punchy line */
    font-weight: 900;
    text-transform: uppercase;
}

/* Field & Rework Elements */
.st-base-plate, .st-top-plate { fill: #64748b; }
.st-stud { stroke: #94a3b8; stroke-width: 4; }
.st-rework-tag-bg { fill: #ef4444; filter: drop-shadow(0 5px 15px rgba(239, 68, 68, 0.3)); }
.st-rework-text { fill: #ffffff; font-family: 'JetBrains Mono', monospace; font-weight: 900; text-anchor: middle; }

.st-measuring-tape { stroke: #ef4444; stroke-width: 3; stroke-linecap: round; }

/* GPS & Sync Elements */
.st-gps-bg { fill: #f0fdfa; stroke: var(--accent-teal); stroke-width: 2.5; }
.st-gps-text {
    fill: var(--accent-teal);
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px; /* Massive sync text */
    font-weight: 900;
    text-anchor: middle;
}

.st-gps-text-sub {
    fill: #0d9488;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    text-anchor: middle;
}

.st-radar-ring {
    fill: none;
    stroke: var(--accent-teal);
    stroke-width: 2;
    opacity: 0.6;
}

/* Digital Plumbing & Packets */
.main-plumbing {
    stroke: var(--accent-teal);
    stroke-width: 4; /* Thinner for elegant arch */
    stroke-linecap: round;
    filter: drop-shadow(0 0 15px rgba(0, 168, 181, 0.4));
    opacity: 0.9;
}

.st-packet-bg {
    fill: #ffffff;
    stroke: var(--accent-teal);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 12px rgba(0, 168, 181, 0.4));
}

.st-packet-icon {
    fill: var(--accent-teal);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 900;
    text-anchor: middle;
}

/* Technical Overlays */
.tech-grid { pointer-events: none; opacity: 0.4; }
.hologram-scan { opacity: 0.25; mix-blend-mode: screen; }
#laser-scan { filter: drop-shadow(0 0 12px var(--accent-teal)); }

/* Narrative Overlays & Titles */
.story-global-title {
    position: absolute;
    top: 6vh;
    width: 100%;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 6vw, 56px);
    color: #0f172a;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.story-narrative {
    position: absolute;
    top: 18vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    min-height: 120px; /* Space for multi-line text */
}

.narrative-beat {
    position: absolute; /* Stacked for cross-fade */
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(22px, 3.5vw, 32px); /* Slightly larger for v9 */
    color: #64748b; /* Mid-range Slate grey for an elegant, lighter look */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 90%;
    max-width: 1200px;
    background: transparent;
    padding: 25px 45px;
    text-shadow: 0 2px 10px rgba(255,255,255,0.8);
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

.st-chaos-text {
    fill: #ef4444;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.7;
}

/* Interactive & Cinematic */
.story-controls {
    position: absolute;
    bottom: 5vh;
    right: 5vw;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.story-nav-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border: 1.5px solid var(--accent-blue);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 102, 153, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-nav-btn:hover {
    background: var(--accent-blue);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 102, 153, 0.15);
}

.back-to-systems {
    border-color: #64748b;
    color: #64748b;
}

.back-to-systems:hover {
    background: #64748b;
    border-color: #64748b;
}

/* High-Fidelity Architectural Schematic Styles */
.st-stud-rect { fill: #f8fafc; stroke: #94a3b8; stroke-width: 1.5; }
.st-ghost-stud-rect { fill: rgba(0, 168, 181, 0.15); stroke: var(--accent-teal); stroke-width: 1; stroke-dasharray: 4, 2; }

.st-dim-line { stroke: #64748b; stroke-width: 1; }
.st-dim-tick { stroke: #64748b; stroke-width: 1.5; }
.st-dim-text {
    fill: #64748b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-anchor: middle;
}

.st-callout-text {
    fill: #ef4444;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
}

.blueprint-bg {
    opacity: 0.15;
    filter: drop-shadow(0 0 10px rgba(0, 168, 181, 0.2));
}

.st-ladder-rack { stroke-linecap: round; opacity: 0.8; }

/* Premium Schematic Transition Visuals */
.st-vision-ring { animation: rotateVision 10s linear infinite; }
.st-vision-core { animation: pulseVision 4s ease-in-out infinite alternate; }

@keyframes rotateVision {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseVision {
    0% { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 0.6; transform: scale(1.2); }
}

.st-check { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s ease; }
.dashboard-secured.active .st-check { stroke-dashoffset: 0; }

.st-secured-text { letter-spacing: 2px; text-shadow: 0 0 10px rgba(0, 168, 181, 0.3); }
.st-roi-text, .st-valuation-text, .st-ebitda-text { letter-spacing: 1px; filter: drop-shadow(0 0 5px rgba(0, 168, 181, 0.2)); }
.st-leak-symbol { font-size: 22px; filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.3)); }

/* Payroll Leak Animation */
.st-leak-drip {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: leakDrip 2s infinite ease-in;
}

@keyframes leakDrip {
    0% { stroke-dashoffset: 40; opacity: 0; }
    30% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Premium Schematic Overrides */
.st-lcd-panel-red { fill: #f8fafc; stroke: #e2e8f0; stroke-width: 1.5; filter: none; }
.st-lcd-text-red { fill: #64748b; font-size: 14px; font-weight: 600; }
.st-lcd-text-red-bold { fill: #0f172a; font-size: 20px; font-weight: 900; filter: none; }
.st-rework-tag-bg { fill: #0f172a; filter: none; }
.st-measuring-tape { stroke: #64748b; stroke-width: 2; }

/* Client Portal Bridge (Minimalistic Revamp) */
.story-executive-audit {
    position: absolute;
    bottom: 6vh;
    left: 60px; /* Positioned Bottom Left-Center */
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(20px);
}

.portal-bridge-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.portal-bridge-btn:hover {
    background: #0f172a;
    border-color: #0f172a;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 168, 181, 0.2);
}

.portal-bridge-btn span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.portal-bridge-btn i {
    font-size: 10px;
    color: var(--accent-teal);
}

.portal-bridge-btn:hover span {
    color: #ffffff;
}

@media (max-width: 1024px) {
    .story-executive-audit {
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        bottom: 14vh;
    }
}
