/* ==========================================================================
   Akarra Technologies - Modern Design System
   ========================================================================== */

:root {
    /* Colors */
    --color-accent: #CE1513;
    --color-accent-glow: rgba(206, 21, 19, 0.4);

    /* Dark theme palette */
    --color-bg-dark: #0a0a0f;
    --color-bg-gradient-1: #0f0a1a;
    --color-bg-gradient-2: #1a0a0f;

    /* Text with opacity hierarchy */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.35);

    /* Glass effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Motion - using cubic-bezier for premium feel */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--color-bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Linear-style label - tiny, uppercase, wide tracking */
.label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

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

/* ==========================================================================
   Header - Floating Island Style
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) var(--space-md);
    transition: all 500ms var(--ease-out-expo);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.5rem 1rem;
    background: transparent;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: all 500ms var(--ease-out-expo);
}

/* Scrolled state - floating pill */
.scrolled .header {
    padding: var(--space-sm) var(--space-md);
}

.scrolled .header-inner {
    max-width: 600px;
    padding: 0.375rem 0.5rem 0.375rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.08);
}

@supports not (backdrop-filter: blur(20px)) {
    .scrolled .header-inner {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Switch to dark text when scrolled + slightly smaller */
.scrolled .logo img {
    width: 28px;
    height: 28px;
}

.scrolled .logo-text {
    font-size: 1rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scrolled .nav-links a {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    color: rgba(0, 0, 0, 0.6);
}

.scrolled .nav-links a:hover {
    color: rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.05);
}

.scrolled .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity 200ms ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    width: 32px;
    height: 32px;
    transition: all 300ms ease;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 400ms var(--ease-out-expo);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    transition: all 300ms var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Buttons - Refined with shine effect
   ========================================================================== */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 250ms var(--ease-out-expo);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(206, 21, 19, 0.9) 0%, rgba(230, 57, 70, 0.9) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 20px rgba(206, 21, 19, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* Shine sweep effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transition: left 500ms ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 30px rgba(206, 21, 19, 0.4),
        0 4px 16px rgba(206, 21, 19, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    border-radius: 12px;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

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

/* ==========================================================================
   Hero - Dark gradient background
   ========================================================================== */

.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 160px;
    padding-bottom: var(--space-xl);
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
    overflow-x: clip;
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: left;
}

.hero-teaser {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--duration-normal) ease;
}

.hero-teaser:hover {
    color: var(--text-primary);
}

.teaser-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent-glow);
}

.teaser-arrow {
    transition: transform var(--duration-normal) ease;
}

.hero-teaser:hover .teaser-arrow {
    transform: translateX(3px);
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    max-width: 720px;
    margin-bottom: var(--space-md);
    margin-left: 0;
    margin-right: auto;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #fff;
}

.hero-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-tertiary);
    max-width: 420px;
    margin: 0;
    line-height: 1.6;
}


/* Hero Mockup */
.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: var(--space-2xl) auto 0;
    padding: 0 var(--container-padding);
    transform: perspective(1500px) rotateX(5deg);
    transform-style: preserve-3d;
    opacity: 0.85;
    pointer-events: none;
}

.mockup-dashboard {
    background: #111116;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Mockup Sidebar */
.mock-sidebar {
    width: 140px;
    background: #0d0d12;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 8px;
    flex-shrink: 0;
}

.mock-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    margin-bottom: 16px;
}

.mock-logo-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #CE1513 0%, #ff4444 100%);
    border-radius: 5px;
}

.mock-logo-text {
    height: 8px;
    width: 45px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
}

.mock-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.mock-nav-item.active {
    background: rgba(206, 21, 19, 0.15);
    border: 1px solid rgba(206, 21, 19, 0.25);
}

.mock-nav-icon {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.mock-nav-item.active .mock-nav-icon {
    background: #CE1513;
}

.mock-nav-text {
    height: 6px;
    width: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.mock-nav-item.active .mock-nav-text {
    background: rgba(255, 255, 255, 0.6);
}

/* Mockup Main */
.mock-main {
    flex: 1;
    padding: 14px;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-title {
    height: 10px;
    width: 70px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
}

.mock-search {
    width: 100px;
    height: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

/* Mockup Stats */
.mock-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.mock-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px;
}

.mock-stat-value {
    height: 14px;
    width: 28px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    margin-bottom: 6px;
}

.mock-stat-trend {
    height: 4px;
    width: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.mock-stat-trend.green {
    background: #22c55e;
}

.mock-stat-trend.red {
    background: #CE1513;
}

/* Mockup Content */
.mock-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
}

.mock-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px;
}

.mock-panel-header {
    height: 8px;
    width: 60px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    margin-bottom: 10px;
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    margin-bottom: 6px;
}

.mock-row-status {
    width: 3px;
    height: 24px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.mock-row-status.green {
    background: #22c55e;
}

.mock-row-status.amber {
    background: #f59e0b;
}

.mock-row-status.red {
    background: #CE1513;
}

.mock-row-text {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}

.mock-row-value {
    width: 24px;
    height: 12px;
    background: rgba(206, 21, 19, 0.4);
    border-radius: 3px;
}

.mock-panel-small {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-alert {
    padding: 10px;
    border-radius: 6px;
    height: 36px;
}

.mock-alert.amber {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.mock-alert.red {
    background: rgba(206, 21, 19, 0.1);
    border: 1px solid rgba(206, 21, 19, 0.2);
}

/* Tablets - iPad Air, iPad Pro portrait (768px - 1024px) */
@media (max-width: 1024px) {
    .hero {
        padding-top: 140px;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .hero-mockup {
        margin-top: var(--space-lg);
        transform: none;
        opacity: 0.8;
    }
}

/* Mobile phones */
@media (max-width: 600px) {
    .hero-mockup {
        margin-top: var(--space-lg);
        opacity: 0.7;
    }

    .mock-sidebar {
        display: none;
    }

    .mockup-dashboard {
        border-radius: 8px;
    }
}

/* ==========================================================================
   Services - Linear-style flat layout
   ========================================================================== */

.services {
    background: var(--color-bg-dark);
    position: relative;
    padding: var(--space-3xl) 0;
}

.section-header {
    margin-bottom: var(--space-2xl);
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.services h2,
.approach h2,
.about h2,
.contact h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    max-width: 480px;
}

/* Services grid - three equal columns */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-item {
    display: flex;
    flex-direction: column;
}

.service-illustration {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--text-muted);
}

.service-illustration svg {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.service-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
    color: #fff;
}

.service-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
}

/* ==========================================================================
   Track Record - Two column proof layout
   ========================================================================== */

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

.track-record-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.track-record-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 100px;
}

.track-record-badge.secondary {
    background: rgba(206, 21, 19, 0.15);
    color: var(--color-accent);
    border-color: rgba(206, 21, 19, 0.3);
}

.track-record-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}

.track-record-context {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

.track-record-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.track-record-features li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    padding-left: 1.25rem;
    position: relative;
}

.track-record-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.6;
}

.track-record-proof {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--glass-border);
}

@media (max-width: 900px) {
    .track-record-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ==========================================================================
   Approach - Timeline with dots (Linear-style)
   ========================================================================== */

.approach {
    background: var(--color-bg-dark);
}

.approach-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    position: relative;
}

/* Horizontal connecting line */
.timeline-track {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--glass-border);
}

.approach-step {
    position: relative;
    padding-top: var(--space-2xl);
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-bg-dark);
    border: 1px solid var(--text-muted);
    z-index: 1;
}

.approach-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
    color: #fff;
}

.approach-step p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
    background: var(--color-bg-dark);
}

.about-content {
    max-width: 640px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
}

.about-lead {
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg) !important;
}

.about-tagline {
    color: #fff !important;
    font-weight: 500;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Contact - Glass panel
   ========================================================================== */

.contact {
    background:
        radial-gradient(ellipse 60% 60% at 50% 100%, rgba(206, 21, 19, 0.1) 0%, transparent 50%),
        var(--color-bg-dark);
}

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

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #fff;
    padding: var(--space-sm) var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition:
        background var(--duration-normal) var(--ease-out-expo),
        border-color var(--duration-normal) var(--ease-out-expo),
        box-shadow var(--duration-normal) var(--ease-out-expo),
        letter-spacing var(--duration-normal) var(--ease-out-expo);
}

.contact-email:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px -10px var(--color-accent-glow);
    letter-spacing: 0;
}

.contact-note {
    margin-top: var(--space-md);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--color-bg-dark);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-brand img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .service-illustration {
        height: 140px;
    }

    .approach-timeline {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        padding-left: var(--space-lg);
    }

    /* Vertical line on the left */
    .timeline-track {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 5px;
        width: 1px;
        height: 100%;
        background: var(--glass-border);
    }

    .approach-step {
        padding-top: 0;
        padding-bottom: var(--space-xl);
        position: relative;
    }

    .approach-step:last-child {
        padding-bottom: 0;
    }

    /* Dot on the left side */
    .timeline-dot {
        position: absolute;
        left: calc(-1 * var(--space-lg) + -1px);
        top: 0.25rem;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    section {
        padding: var(--space-2xl) 0;
    }

    .header {
        padding: var(--space-sm);
    }

    .header-inner {
        padding: 0.5rem 1rem;
    }

    .scrolled .header-inner {
        max-width: 100%;
        border-radius: 16px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .typing {
        font-size: 0.8em;
    }

    .contact-email {
        font-size: 1.125rem;
        padding: var(--space-sm) var(--space-md);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .typing {
        font-size: 0.75em;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Hero entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes typing {

    0%,
    5% {
        max-width: 0;
    }

    35% {
        max-width: 800px;
    }

    65% {
        max-width: 800px;
    }

    95%,
    100% {
        max-width: 0;
    }
}

@keyframes cursorBlink {

    0%,
    50% {
        visibility: visible;
    }

    51%,
    100% {
        visibility: hidden;
    }
}

@keyframes cursorShow {

    0%,
    5% {
        opacity: 0;
    }

    6%,
    65% {
        opacity: 0.4;
    }

    66%,
    100% {
        opacity: 0;
    }
}

.hero h1 {
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.typing-wrapper {
    display: block;
    margin-top: 0.1em;
}

.typing {
    display: inline-block;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    font-weight: 400;
    animation: typing 6s steps(30, end) 0.4s infinite;
}

.cursor {
    display: inline-block;
    width: 0.6em;
    height: 3px;
    background: var(--color-accent);
    opacity: 0.1;
    vertical-align: baseline;
    margin-left: 2px;
    border-radius: 1px;
    position: relative;
    top: 0.15em;
    animation:
        cursorShow 6s ease 0.4s infinite,
        cursorBlink 0.5s step-end infinite;
}

.hero-bottom {
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

/* Timeline dot - cycling pulse through all three dots */
@keyframes dotCycle1 {

    0%,
    5% {
        background: var(--color-bg-dark);
        border-color: var(--text-muted);
        box-shadow: none;
    }

    10%,
    30% {
        background: var(--color-accent);
        border-color: var(--color-accent);
        box-shadow: 0 0 16px var(--color-accent-glow);
    }

    35%,
    100% {
        background: var(--color-bg-dark);
        border-color: var(--text-muted);
        box-shadow: none;
    }
}

@keyframes dotCycle2 {

    0%,
    35% {
        background: var(--color-bg-dark);
        border-color: var(--text-muted);
        box-shadow: none;
    }

    40%,
    60% {
        background: var(--color-accent);
        border-color: var(--color-accent);
        box-shadow: 0 0 16px var(--color-accent-glow);
    }

    65%,
    100% {
        background: var(--color-bg-dark);
        border-color: var(--text-muted);
        box-shadow: none;
    }
}

@keyframes dotCycle3 {

    0%,
    65% {
        background: var(--color-bg-dark);
        border-color: var(--text-muted);
        box-shadow: none;
    }

    70%,
    90% {
        background: var(--color-accent);
        border-color: var(--color-accent);
        box-shadow: 0 0 16px var(--color-accent-glow);
    }

    95%,
    100% {
        background: var(--color-bg-dark);
        border-color: var(--text-muted);
        box-shadow: none;
    }
}

.approach-step:nth-child(2) .timeline-dot {
    animation: dotCycle1 4.5s ease-in-out infinite;
}

.approach-step:nth-child(3) .timeline-dot {
    animation: dotCycle2 4.5s ease-in-out infinite;
}

.approach-step:nth-child(4) .timeline-dot {
    animation: dotCycle3 4.5s ease-in-out infinite;
}

/* ==========================================================================
   Mockup Activity Animations - "Live" dashboard feel
   ========================================================================== */

/* Stat trend bars - filling animation */
@keyframes trendFill1 {

    0%,
    100% {
        width: 20px;
    }

    50% {
        width: 45px;
    }
}

@keyframes trendFill2 {

    0%,
    100% {
        width: 35px;
    }

    50% {
        width: 25px;
    }
}

@keyframes trendFill3 {

    0%,
    100% {
        width: 28px;
    }

    50% {
        width: 42px;
    }
}

.mock-stat-card:nth-child(1) .mock-stat-trend {
    animation: trendFill1 3s ease-in-out infinite;
}

.mock-stat-card:nth-child(2) .mock-stat-trend {
    animation: trendFill2 3.5s ease-in-out infinite;
}

.mock-stat-card:nth-child(3) .mock-stat-trend {
    animation: trendFill3 4s ease-in-out infinite;
}

.mock-stat-card:nth-child(4) .mock-stat-trend {
    animation: trendFill1 2.8s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Row value badges - subtle pulse */
@keyframes valuePulse {

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

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.mock-row-value {
    animation: valuePulse 2s ease-in-out infinite;
}

.mock-row:nth-child(2) .mock-row-value {
    animation-delay: 0.7s;
}

.mock-row:nth-child(3) .mock-row-value {
    animation-delay: 1.4s;
}

/* Rows appearing one by one */
@keyframes rowAppear {

    0%,
    5% {
        opacity: 0;
        transform: translateY(8px);
    }

    20%,
    60% {
        opacity: 1;
        transform: translateY(0);
    }

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

.mock-row {
    opacity: 0;
    animation: rowAppear 4s ease-out infinite;
}

.mock-row:nth-child(2) {
    animation-delay: 0s;
}

.mock-row:nth-child(3) {
    animation-delay: 0.25s;
}

.mock-row:nth-child(4) {
    animation-delay: 0.5s;
}

.mock-row:nth-child(5) {
    animation-delay: 0.75s;
}

/* Alert cards - fade in/out activity */
@keyframes alertPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.mock-alert {
    animation: alertPulse 3s ease-in-out infinite;
}

.mock-alert:nth-child(2) {
    animation-delay: 1s;
}

.mock-alert:nth-child(3) {
    animation-delay: 2s;
}

/* ==========================================================================
   Visual Story Section - Dual Animations
   ========================================================================== */

.visual-story {
    background: var(--color-bg-dark);
    padding: var(--space-3xl) 0;
    overflow-x: hidden;
}

.visual-story .container {
    max-width: 100%;
    overflow: hidden;
}

.visual-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
    max-width: 100%;
    overflow: hidden;
}

.visual-story-item {
    display: flex;
    flex-direction: column;
    padding-bottom: var(--space-lg);
    max-width: 100%;
    overflow: hidden;
}

.visual-story-animation {
    position: relative;
    height: 340px;
    margin-bottom: var(--space-lg);
    border-radius: 12px;
    overflow: hidden;
}

.visual-story-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
    color: #fff;
    max-width: 100%;
}

.visual-story-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 100%;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========== LEFT ANIMATION - Chaos to Clarity ========== */
.anim-left {
    position: relative;
    width: 520px;
    height: 340px;
    flex-shrink: 0;
}

.anim-left .data-field {
    position: relative;
    width: 100%;
    height: 100%;
}

.anim-left .data-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    /* Default position off-screen to prevent flash at (0,0) */
    left: -100px;
    top: -100px;
    animation: organizePoint 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.anim-left .data-point.accent {
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent-glow);
}

.anim-left .data-point.large {
    width: 12px;
    height: 12px;
}

.anim-left .data-point.bar {
    width: 40px;
    height: 6px;
    border-radius: 3px;
}

/* Data point positions - 5x5 grid aligned */
/* Grid-overlay: x: 30-270px, y: 30-195px. Grid fits inside with padding. */
/* Row 1 (y: 45px) */
.anim-left .data-point:nth-child(1) {
    --start-x: 20px;
    --start-y: 280px;
    --end-x: 50px;
    --end-y: 45px;
}

.anim-left .data-point:nth-child(2) {
    --start-x: 380px;
    --start-y: 30px;
    --end-x: 95px;
    --end-y: 45px;
    animation-delay: 0.05s;
}

.anim-left .data-point:nth-child(3) {
    --start-x: 150px;
    --start-y: 310px;
    --end-x: 140px;
    --end-y: 45px;
    animation-delay: 0.1s;
}

.anim-left .data-point:nth-child(4) {
    --start-x: 420px;
    --start-y: 180px;
    --end-x: 185px;
    --end-y: 45px;
    animation-delay: 0.15s;
}

.anim-left .data-point:nth-child(5) {
    --start-x: 60px;
    --start-y: 60px;
    --end-x: 230px;
    --end-y: 45px;
    animation-delay: 0.2s;
}

/* Row 2 (y: 75px) */
.anim-left .data-point:nth-child(6) {
    --start-x: 300px;
    --start-y: 290px;
    --end-x: 50px;
    --end-y: 75px;
    animation-delay: 0.25s;
}

.anim-left .data-point:nth-child(7) {
    --start-x: 40px;
    --start-y: 200px;
    --end-x: 95px;
    --end-y: 75px;
    animation-delay: 0.3s;
}

.anim-left .data-point:nth-child(8) {
    --start-x: 400px;
    --start-y: 100px;
    --end-x: 140px;
    --end-y: 75px;
    animation-delay: 0.35s;
}

.anim-left .data-point:nth-child(9) {
    --start-x: 200px;
    --start-y: 20px;
    --end-x: 185px;
    --end-y: 75px;
    animation-delay: 0.4s;
}

.anim-left .data-point:nth-child(10) {
    --start-x: 100px;
    --start-y: 270px;
    --end-x: 230px;
    --end-y: 75px;
    animation-delay: 0.45s;
}

/* Row 3 (y: 105px) */
.anim-left .data-point:nth-child(11) {
    --start-x: 350px;
    --start-y: 150px;
    --end-x: 50px;
    --end-y: 105px;
    animation-delay: 0.5s;
}

.anim-left .data-point:nth-child(12) {
    --start-x: 25px;
    --start-y: 120px;
    --end-x: 95px;
    --end-y: 105px;
    animation-delay: 0.55s;
}

.anim-left .data-point:nth-child(13) {
    --start-x: 430px;
    --start-y: 250px;
    --end-x: 140px;
    --end-y: 105px;
    animation-delay: 0.6s;
}

.anim-left .data-point:nth-child(14) {
    --start-x: 180px;
    --start-y: 300px;
    --end-x: 185px;
    --end-y: 105px;
    animation-delay: 0.65s;
}

.anim-left .data-point:nth-child(15) {
    --start-x: 280px;
    --start-y: 40px;
    --end-x: 230px;
    --end-y: 105px;
    animation-delay: 0.7s;
}

/* Row 4 (y: 135px) */
.anim-left .data-point:nth-child(16) {
    --start-x: 380px;
    --start-y: 300px;
    --end-x: 50px;
    --end-y: 135px;
    animation-delay: 0.75s;
}

.anim-left .data-point:nth-child(17) {
    --start-x: 70px;
    --start-y: 160px;
    --end-x: 95px;
    --end-y: 135px;
    animation-delay: 0.8s;
}

.anim-left .data-point:nth-child(18) {
    --start-x: 320px;
    --start-y: 80px;
    --end-x: 140px;
    --end-y: 135px;
    animation-delay: 0.85s;
}

.anim-left .data-point:nth-child(19) {
    --start-x: 130px;
    --start-y: 240px;
    --end-x: 185px;
    --end-y: 135px;
    animation-delay: 0.9s;
}

.anim-left .data-point:nth-child(20) {
    --start-x: 450px;
    --start-y: 130px;
    --end-x: 230px;
    --end-y: 135px;
    animation-delay: 0.95s;
}

/* Row 5 (y: 165px) - inside box which ends at 195px */
.anim-left .data-point:nth-child(21) {
    --start-x: 250px;
    --start-y: 280px;
    --end-x: 50px;
    --end-y: 165px;
    animation-delay: 1s;
}

.anim-left .data-point:nth-child(22) {
    --start-x: 15px;
    --start-y: 80px;
    --end-x: 95px;
    --end-y: 165px;
    animation-delay: 1.05s;
}

.anim-left .data-point:nth-child(23) {
    --start-x: 360px;
    --start-y: 200px;
    --end-x: 140px;
    --end-y: 165px;
    animation-delay: 1.1s;
}

.anim-left .data-point:nth-child(24) {
    --start-x: 90px;
    --start-y: 320px;
    --end-x: 185px;
    --end-y: 165px;
    animation-delay: 1.15s;
}

.anim-left .data-point:nth-child(25) {
    --start-x: 410px;
    --start-y: 60px;
    --end-x: 230px;
    --end-y: 165px;
    animation-delay: 1.2s;
}

/* Bar data points - inside chart-area */
.anim-left .data-point:nth-child(26) {
    --start-x: 320px;
    --start-y: 210px;
    --end-x: 435px;
    --end-y: 45px;
    animation-delay: 0.5s;
}

.anim-left .data-point:nth-child(27) {
    --start-x: 40px;
    --start-y: 40px;
    --end-x: 435px;
    --end-y: 80px;
    animation-delay: 0.7s;
}

.anim-left .data-point:nth-child(28) {
    --start-x: 170px;
    --start-y: 250px;
    --end-x: 435px;
    --end-y: 115px;
    animation-delay: 0.9s;
}

.anim-left .data-point:nth-child(29) {
    --start-x: 280px;
    --start-y: 120px;
    --end-x: 435px;
    --end-y: 150px;
    animation-delay: 1.1s;
}

/* Large accent squares - inside chart-area, aligned with bars */
.anim-left .data-point:nth-child(30) {
    --start-x: 210px;
    --start-y: 170px;
    --end-x: 485px;
    --end-y: 45px;
    animation-delay: 0.4s;
}

.anim-left .data-point:nth-child(31) {
    --start-x: 85px;
    --start-y: 125px;
    --end-x: 485px;
    --end-y: 80px;
    animation-delay: 0.6s;
}

.anim-left .data-point:nth-child(32) {
    --start-x: 340px;
    --start-y: 260px;
    --end-x: 485px;
    --end-y: 115px;
    animation-delay: 0.8s;
}

.anim-left .data-point:nth-child(33) {
    --start-x: 150px;
    --start-y: 300px;
    --end-x: 485px;
    --end-y: 150px;
    animation-delay: 1.0s;
}

@keyframes organizePoint {

    0%,
    15% {
        left: var(--start-x);
        top: var(--start-y);
        opacity: 0.3;
        transform: scale(0.8);
    }

    20% {
        opacity: 0.6;
    }

    50%,
    85% {
        left: var(--end-x);
        top: var(--end-y);
        opacity: 1;
        transform: scale(1);
    }

    90% {
        opacity: 0.6;
    }

    100% {
        left: var(--start-x);
        top: var(--start-y);
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* Grid overlay */
.anim-left .grid-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 240px;
    height: 165px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    opacity: 0;
    animation: fadeGridOverlay 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.anim-left .chart-area {
    position: absolute;
    top: 30px;
    left: 425px;
    width: 85px;
    height: 165px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    opacity: 0;
    animation: fadeGridOverlay 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 0.3s;
}

@keyframes fadeGridOverlay {

    0%,
    30% {
        opacity: 0;
    }

    45%,
    80% {
        opacity: 1;
    }

    95%,
    100% {
        opacity: 0;
    }
}

/* Scan line */
.anim-left .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
    opacity: 0;
    animation: scanDown 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scanDown {

    0%,
    5% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    40% {
        top: 100%;
        opacity: 0.6;
    }

    45%,
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ========== RIGHT ANIMATION - Workflow Examination ========== */
.anim-right {
    position: relative;
    width: 480px;
    height: 340px;
    flex-shrink: 0;
}

.anim-right .workflow-diagram {
    position: relative;
    width: 480px;
    height: 340px;
}

/* Nodes */
.anim-right .node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-right .node-terminal {
    width: 70px;
    height: 32px;
    background: linear-gradient(135deg, rgba(206, 21, 19, 0.9) 0%, rgba(230, 57, 70, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 0 16px var(--color-accent-glow);
}

.anim-right .node-terminal .node-inner {
    width: 38px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.anim-right .node-process {
    width: 80px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
}

.anim-right .node-process .node-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.anim-right .node-process .node-inner::before,
.anim-right .node-process .node-inner::after {
    content: '';
    display: block;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1.5px;
}

.anim-right .node-process .node-inner::before {
    width: 44px;
}

.anim-right .node-process .node-inner::after {
    width: 30px;
}

.anim-right .node-decision {
    width: 36px;
    height: 36px;
    background: var(--glass-bg);
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    transform: rotate(45deg);
    box-shadow: 0 0 12px var(--color-accent-glow);
}

.anim-right .node-decision .node-inner {
    width: 3px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 1.5px;
    transform: rotate(-45deg);
    opacity: 0.8;
}

/* Node positions - scaled for container */
.anim-right .node-1 {
    top: 25px;
    left: 30px;
}

.anim-right .node-2 {
    top: 18px;
    left: 130px;
}

.anim-right .node-3 {
    top: 18px;
    left: 245px;
}

.anim-right .node-4 {
    top: 85px;
    left: 295px;
}

.anim-right .node-5 {
    top: 75px;
    left: 380px;
}

.anim-right .node-6 {
    top: 150px;
    left: 390px;
}

.anim-right .node-7 {
    top: 150px;
    left: 260px;
}

.anim-right .node-8 {
    top: 225px;
    left: 210px;
}

.anim-right .node-9 {
    top: 285px;
    left: 130px;
}

.anim-right .node-10 {
    top: 235px;
    left: 380px;
}

/* SVG connections */
.anim-right .connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.anim-right .connections path {
    stroke: var(--glass-border);
    stroke-width: 1;
    fill: none;
    stroke-linecap: round;
}

.anim-right .connections marker polygon {
    fill: var(--text-muted);
}

/* Magnifying glass */
.anim-right .magnifier {
    position: absolute;
    width: 110px;
    height: 110px;
    pointer-events: none;
    z-index: 10;
    animation: scanWorkflowRight 10s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.anim-right .magnifier-glass {
    position: relative;
    width: 75px;
    height: 75px;
}

.anim-right .magnifier-lens {
    position: absolute;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.03);
}

.anim-right .magnifier-lens::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 12px;
    width: 24px;
    height: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    border-radius: 50%;
    transform: rotate(-20deg);
}

.anim-right .magnifier-handle {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 32px;
    height: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transform: rotate(45deg);
    transform-origin: 5px center;
}

.anim-right .magnifier-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 85px;
    height: 85px;
    border: 1px solid rgba(206, 21, 19, 0.3);
    border-radius: 50%;
    animation: pulseGlowRight 2s ease-in-out infinite;
}

@keyframes pulseGlowRight {

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

    50% {
        transform: scale(1.04);
        opacity: 0.8;
    }
}

@keyframes scanWorkflowRight {

    0%,
    3% {
        top: 8px;
        left: 0px;
        opacity: 0;
    }

    6% {
        opacity: 1;
    }

    10%,
    16% {
        top: 5px;
        left: 100px;
    }

    22%,
    28% {
        top: 5px;
        left: 210px;
    }

    34%,
    40% {
        top: 62px;
        left: 260px;
    }

    46%,
    52% {
        top: 128px;
        left: 225px;
    }

    58%,
    64% {
        top: 200px;
        left: 175px;
    }

    70%,
    76% {
        top: 260px;
        left: 100px;
    }

    85% {
        opacity: 1;
    }

    92%,
    100% {
        top: 260px;
        left: 100px;
        opacity: 0;
    }
}

/* Data dots */
.anim-right .data-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent-glow);
    opacity: 0;
    z-index: 5;
    /* Default off-screen to prevent flash */
    left: -100px;
    top: -100px;
}

/* data-dots are children 12, 13, 14 (after 1 svg + 10 nodes) */
.anim-right .workflow-diagram>.data-dot:nth-child(12) {
    animation: flowDotR1 5s linear infinite;
}

.anim-right .workflow-diagram>.data-dot:nth-child(13) {
    animation: flowDotR2 5s linear infinite;
    animation-delay: 1.6s;
}

.anim-right .workflow-diagram>.data-dot:nth-child(14) {
    animation: flowDotR3 5s linear infinite;
    animation-delay: 3.2s;
}

@keyframes flowDotR1 {
    0% {
        top: 41px;
        left: 100px;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    20% {
        top: 40px;
        left: 130px;
    }

    40% {
        top: 40px;
        left: 245px;
    }

    60% {
        top: 103px;
        left: 313px;
    }

    80% {
        top: 97px;
        left: 380px;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 150px;
        left: 390px;
        opacity: 0;
    }
}

@keyframes flowDotR2 {
    0% {
        top: 103px;
        left: 313px;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    50% {
        top: 172px;
        left: 300px;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 247px;
        left: 250px;
        opacity: 0;
    }
}

@keyframes flowDotR3 {
    0% {
        top: 172px;
        left: 300px;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    50% {
        top: 247px;
        left: 210px;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 301px;
        left: 165px;
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .visual-story-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .visual-story-animation {
        height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .anim-left,
    .anim-right {
        transform: scale(0.9);
    }

    .visual-story-item h3 {
        font-size: 1.125rem;
    }

    .visual-story-item p {
        font-size: 0.875rem;
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    .visual-story-animation {
        height: 250px;
    }

    .anim-left,
    .anim-right {
        transform: scale(0.7);
    }

    .visual-story-item h3 {
        font-size: 1rem;
    }

    .visual-story-item p {
        font-size: 0.8125rem;
    }
}

@media (max-width: 550px) {
    .visual-story {
        padding: var(--space-2xl) 0;
    }

    .visual-story-animation {
        height: 200px;
    }

    .anim-left,
    .anim-right {
        transform: scale(0.55);
    }

    .visual-story-item h3 {
        font-size: 0.9375rem;
        margin-top: var(--space-sm);
    }

    .visual-story-item p {
        font-size: 0.8125rem;
        line-height: 1.5;
        max-width: 100%;
    }
}

@media (max-width: 450px) {
    .visual-story-grid {
        gap: var(--space-xl);
    }

    .visual-story-animation {
        height: 160px;
        margin-bottom: var(--space-md);
    }

    .anim-left,
    .anim-right {
        transform: scale(0.42);
    }

    .visual-story-item {
        padding-bottom: var(--space-md);
    }

    .visual-story-item h3 {
        font-size: 1rem;
        margin-bottom: var(--space-xs);
    }

    .visual-story-item p {
        font-size: 0.875rem;
        max-width: 100%;
        line-height: 1.5;
    }
}