/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * Exclusive Admixture Product Page - Dark Warm Gold Cinematic Theme
 * Matching SharedRoots aesthetic: obsidian backgrounds, amber accents, ivory text
 */

/* ========================================
   CSS Custom Properties - Dark Warm Gold Palette
   ======================================== */
:root {
    /* Dark Base - Contemplative Earth */
    --ea-obsidian: #0D0D0F;
    --ea-slate: #1A1C1E;
    --ea-slate-light: #334155;
    --ea-stone: #2A2D31;
    --ea-earth: #3D3A36;
    --ea-charcoal: #0D0D0F;
    
    /* Warm Accents */
    --ea-amber: #C4956A;
    --ea-amber-light: #D4A97A;
    --ea-copper: #8B6D4F;
     /* Legacy accent names (now amber) */
    --ea-jade: #C4956A;
    --ea-jade-light: #D4A97A;
    
    /* Confluence visualization colors (multi-color, distinct from accent) */
    --ea-confluence-green: #059669;
    --ea-confluence-green-light: #10b981;
    --ea-terracotta: #dc2626;
    --ea-terracotta-light: #ef4444;
    --ea-deep-blue: #1d4ed8;
    --ea-deep-blue-light: #3b82f6;
    
    /* Neutral Colors - Light text on dark */
    --ea-cream: #0D0D0F;
    --ea-cream-dark: #1A1C1E;
    --ea-off-white: #F5F3EF;
    --ea-bone: #E8E4DC;
    --ea-sand: #A89F91;
    --ea-text: #E8E4DC;
    --ea-text-muted: #A89F91;
    --ea-text-light: #94a3b8;
    --ea-white: #F5F3EF;
    --ea-ivory: #F5F3EF;
    --ea-border: rgba(168, 159, 145, 0.2);
    --ea-border-light: rgba(168, 159, 145, 0.12);
    
    /* Gradient Accents */
    --ea-gradient-hero: linear-gradient(135deg, rgba(13, 13, 15, 0.95) 0%, rgba(26, 28, 30, 0.9) 50%, rgba(196, 149, 106, 0.3) 100%);
    --ea-gradient-jade: linear-gradient(135deg, var(--ea-amber) 0%, var(--ea-amber-light) 100%);
    --ea-gradient-amber: linear-gradient(135deg, var(--ea-amber) 0%, var(--ea-amber-light) 100%);
    --ea-gradient-slate: linear-gradient(135deg, var(--ea-slate) 0%, var(--ea-charcoal) 100%);
    
    /* Typography */
    --ea-font-serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    --ea-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --ea-font-accent: 'Josefin Sans', sans-serif;
    
    /* Shadows */
    --ea-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --ea-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --ea-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --ea-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --ea-shadow-jade: 0 8px 32px rgba(196, 149, 106, 0.3);
    --ea-shadow-amber: 0 8px 32px rgba(196, 149, 106, 0.3);
    
    /* Borders */
    --ea-radius-sm: 8px;
    --ea-radius-md: 12px;
    --ea-radius-lg: 20px;
    --ea-radius-xl: 28px;
    --ea-radius-full: 9999px;
    
    /* Transitions */
    --ea-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ea-transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --ea-transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   Base & Typography
   ======================================== */
.ea-main {
    font-family: var(--ea-font-sans);
    color: var(--ea-text);
    background: var(--ea-obsidian);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ea-main h1,
.ea-main h2,
.ea-main h3,
.ea-main h4 {
    font-family: var(--ea-font-serif);
    font-weight: 400;
    color: var(--ea-ivory);
    line-height: 1.25;
}

.ea-main p {
    line-height: 1.8;
    color: var(--ea-bone);
}

/* Dark body background override (this CSS loads only on EA page) */
body {
    background-color: var(--ea-obsidian) !important;
    background-image: none !important;
}

#wrapper, #content-wrapper, #content-fluid {
    background: transparent !important;
}

footer {
    background-color: var(--ea-obsidian) !important;
}

/* ========================================
   Accessibility
   ======================================== */
.ea-skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    z-index: 2000;
    background: var(--ea-amber);
    color: var(--ea-obsidian);
    padding: 12px 16px;
    border-radius: var(--ea-radius-sm);
    box-shadow: var(--ea-shadow-lg);
    text-decoration: none;
    font-weight: 600;
}

.ea-skip-link:focus {
    left: 10px;
    outline: 3px solid var(--ea-amber-light);
}

/* ========================================
   Scroll Progress Bar
   ======================================== */
.ea-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--ea-gradient-jade);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ========================================
   Page Navigation Dots
   ======================================== */
.ea-page-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: var(--ea-transition);
}

.ea-page-nav.visible {
    opacity: 1;
    visibility: visible;
}

.ea-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: var(--ea-transition);
    cursor: pointer;
}

.ea-nav-dot:hover,
.ea-nav-dot:focus {
    transform: scale(1.3);
    background: rgba(196, 149, 106, 0.6);
    outline: none;
}

.ea-nav-dot.active {
    background: var(--ea-gradient-amber);
    transform: scale(1.3);
    border-color: var(--ea-amber-light);
}

.ea-nav-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: rgba(13, 13, 15, 0.95);
    color: var(--ea-ivory);
    padding: 8px 14px;
    border-radius: var(--ea-radius-sm);
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ea-nav-dot:hover::after,
.ea-nav-dot:focus::after {
    opacity: 1;
}

@media (max-width: 991px) {
    .ea-page-nav {
        display: none;
    }
}

/* ========================================
   Back to Top Button
   ======================================== */
.ea-back-to-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ea-gradient-amber);
    color: var(--ea-obsidian);
    border: none;
    box-shadow: var(--ea-shadow-jade);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--ea-transition);
    z-index: 1100;
}

.ea-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ea-back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(196, 149, 106, 0.35);
}

/* ========================================
   Hero Section
   ======================================== */
.ea-hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 20px 80px;
}

.ea-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/img/reports/ancestry/exclusive-admixture/exclusive-admixture-hero.webp') center/cover no-repeat;
}

.ea-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--ea-gradient-hero);
}

.ea-hero-paths {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 30% 70%, rgba(196, 149, 106, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 70% 30%, rgba(196, 149, 106, 0.1), transparent);
    animation: pathsPulse 12s ease-in-out infinite;
}

@keyframes pathsPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.ea-hero-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 60% 40%, rgba(255,255,255,0.25), transparent),
        radial-gradient(2px 2px at 80% 80%, rgba(255,255,255,0.15), transparent);
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.ea-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.ea-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(196, 149, 106, 0.15);
    border: 1px solid rgba(196, 149, 106, 0.3);
    color: var(--ea-amber-light);
    padding: 10px 24px;
    border-radius: var(--ea-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    font-family: var(--ea-font-accent);
}

.ea-hero-title {
    margin-bottom: 1.5rem;
}

.ea-title-line {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-family: var(--ea-font-sans);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ea-title-accent {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ea-ivory) 0%, var(--ea-amber-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
}

.ea-hero-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Hero Stats */
.ea-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ea-stat-item {
    text-align: center;
}

.ea-stat-value {
    display: block;
    font-family: var(--ea-font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ea-white);
    line-height: 1;
}

.ea-stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ea-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Price */
.ea-hero-price {
    margin-bottom: 2rem;
}

.ea-price-tag {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--ea-radius-lg);
    padding: 1rem 2.5rem;
    backdrop-filter: blur(10px);
}

.ea-price-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ea-price-amount {
    font-family: var(--ea-font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ea-white);
}

.ea-price-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Hero CTAs */
.ea-hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.ea-btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--ea-gradient-amber);
    color: var(--ea-obsidian);
    padding: 1rem 2rem;
    border-radius: var(--ea-radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ea-transition);
    box-shadow: var(--ea-shadow-amber);
    font-family: var(--ea-font-accent);
}

.ea-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(196, 149, 106, 0.4);
    color: var(--ea-obsidian);
    text-decoration: none;
}

.ea-btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--ea-ivory);
    padding: 1rem 2rem;
    border-radius: var(--ea-radius-full);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--ea-sand);
    transition: var(--ea-transition);
    font-family: var(--ea-font-accent);
}

.ea-btn-secondary:hover {
    background: rgba(196, 149, 106, 0.1);
    border-color: var(--ea-amber);
    color: var(--ea-ivory);
    text-decoration: none;
}

.ea-btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Trust Badges */
.ea-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.ea-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.ea-trust-item i {
    color: var(--ea-amber-light);
}

/* Scroll Indicator */
.ea-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   Section Base Styles
   ======================================== */
.ea-section {
    padding: 100px 0;
    position: relative;
}

.ea-section-cream {
    background: var(--ea-obsidian);
}

.ea-section-dark {
    background: var(--ea-slate);
}

.ea-section-dark h2,
.ea-section-dark h3,
.ea-section-dark h4 {
    color: var(--ea-ivory);
}

.ea-section-dark p {
    color: var(--ea-bone);
}

.ea-section-slate {
    background: var(--ea-stone);
}

.ea-section-slate h2,
.ea-section-slate h3,
.ea-section-slate h4 {
    color: var(--ea-ivory);
}

.ea-section-slate p {
    color: var(--ea-bone);
}

.ea-section-gradient {
    background: linear-gradient(180deg, var(--ea-slate) 0%, var(--ea-obsidian) 100%);
}

.ea-section-gradient h2,
.ea-section-gradient h3,
.ea-section-gradient h4 {
    color: var(--ea-ivory);
}

.ea-section-gradient p {
    color: var(--ea-bone);
}

.ea-section-final {
    background: var(--ea-obsidian);
    padding: 80px 0;
}

/* Section Header */
.ea-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.ea-section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ea-amber);
    margin-bottom: 1rem;
    font-family: var(--ea-font-accent);
}

.ea-section-dark .ea-section-label,
.ea-section-slate .ea-section-label,
.ea-section-gradient .ea-section-label {
    color: var(--ea-amber-light);
}

.ea-section-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ea-section-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}

/* ========================================
   What Is Admixture Section
   ======================================== */
.ea-narrative-block {
    padding-right: 2rem;
}

.ea-lead-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--ea-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: var(--ea-font-serif);
}

.ea-quote-card {
    background: var(--ea-stone);
    border-radius: var(--ea-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--ea-shadow-md);
    border-left: 4px solid var(--ea-amber);
    position: relative;
}

.ea-quote-icon {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: var(--ea-gradient-amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ea-obsidian);
    font-size: 1rem;
}

.ea-quote-card blockquote {
    font-family: var(--ea-font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--ea-text);
    line-height: 1.7;
    margin: 0 0 1rem;
    border: none;
    padding: 0;
}

.ea-quote-card cite {
    font-size: 0.9rem;
    color: var(--ea-text-muted);
    font-style: normal;
}

/* ========================================
   Confluence Visual - Interactive SVG Design
   ======================================== */
.ea-confluence-visual {
    margin-top: 60px;
    text-align: center;
    position: relative;
}

/* Desktop SVG View */
.ea-confluence-desktop {
    position: relative;
    max-width: 700px;
    margin: 0 auto 2rem;
    display: block;
}

.ea-confluence-svg {
    width: 100%;
    height: auto;
    min-height: 350px;
    overflow: visible;
}

/* SVG Path Styles */
.ea-path-bg {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
}

.ea-path-flow {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 20 10;
    stroke-dashoffset: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

/* Flowing animation */
.ea-confluence-visual.animated .ea-path-flow {
    animation: flowPath 3s linear infinite;
}

.ea-path-1 { animation-delay: 0s; }
.ea-path-2 { animation-delay: 0.5s; }
.ea-path-3 { animation-delay: 1s; }
.ea-path-4 { animation-delay: 1.5s; }

@keyframes flowPath {
    0% { stroke-dashoffset: 30; }
    100% { stroke-dashoffset: 0; }
}

/* Path highlight on hover */
.ea-path-flow.highlighted {
    opacity: 1;
    stroke-width: 8;
    filter: url(#glow);
}

.ea-path-flow.dimmed {
    opacity: 0.2;
}

/* Source Nodes */
.ea-source-node {
    cursor: pointer;
}

.ea-source-node:focus {
    outline: none;
}

.ea-source-node:focus .ea-node-bg {
    stroke: var(--ea-white);
    stroke-width: 3;
}

.ea-node-bg {
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-origin: center;
    transform-box: fill-box;
}

.ea-source-node:hover .ea-node-bg,
.ea-source-node.active .ea-node-bg {
    transform: scale(1.15);
    filter: url(#glowStrong);
}

.ea-node-inner {
    transition: transform 0.3s ease, fill 0.3s ease;
    transform-origin: center;
    transform-box: fill-box;
}

.ea-source-node:hover .ea-node-inner,
.ea-source-node.active .ea-node-inner {
    transform: scale(1.15);
}

.ea-node-icon {
    font-size: 16px;
    pointer-events: none;
    transition: transform 0.3s ease;
    transform-origin: center;
}

/* Center "You" Node */
.ea-center-node {
    pointer-events: none;
}

.ea-center-pulse {
    animation: centerPulse 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes centerPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.2;
    }
    50% { 
        transform: scale(1.3);
        opacity: 0.1;
    }
}

.ea-center-bg {
    transition: filter 0.3s ease;
}

.ea-center-text {
    font-family: var(--ea-font-serif);
    font-size: 16px;
    font-weight: 600;
    fill: var(--ea-obsidian);
    pointer-events: none;
}

/* Population Labels */
.ea-pop-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ea-pop-label {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ea-text);
    white-space: nowrap;
    transition: color 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
}

.ea-pop-label:hover {
    transform: scale(1.05);
}

.ea-label-1 {
    top: 8%;
    left: 2%;
    color: var(--ea-confluence-green);
}

.ea-label-2 {
    bottom: 12%;
    left: 2%;
    color: var(--ea-amber);
}

.ea-label-3 {
    top: 8%;
    right: 2%;
    color: var(--ea-deep-blue);
}

.ea-label-4 {
    bottom: 12%;
    right: 2%;
    color: var(--ea-terracotta);
}

.ea-pop-label.highlighted {
    transform: scale(1.1);
    font-weight: 700;
}

.ea-pop-label.dimmed {
    opacity: 0.4;
}

/* Detail Panels */
.ea-detail-panel {
    position: absolute;
    width: 260px;
    background: var(--ea-stone);
    border-radius: var(--ea-radius-lg);
    box-shadow: var(--ea-shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
    text-align: left;
}

.ea-detail-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ea-detail-1 { top: 15%; left: 18%; }
.ea-detail-2 { bottom: 25%; left: 18%; }
.ea-detail-3 { top: 15%; right: 18%; }
.ea-detail-4 { bottom: 25%; right: 18%; }

.ea-detail-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--ea-white);
}

.ea-detail-icon {
    font-size: 1.25rem;
}

.ea-detail-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--ea-font-sans);
    color: var(--ea-white);
}

.ea-detail-body {
    padding: 1rem;
}

.ea-detail-body p {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ea-text-muted);
}

.ea-detail-era {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ea-text);
    background: var(--ea-cream-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--ea-radius-full);
}

/* Mobile Timeline View */
.ea-confluence-mobile {
    display: none;
    position: relative;
    padding: 1rem 0;
}

.ea-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ea-timeline::-webkit-scrollbar {
    display: none;
}

.ea-timeline-track {
    position: absolute;
    top: 50%;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: var(--ea-border);
    transform: translateY(-50%);
    z-index: 0;
}

.ea-timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ea-timeline-node:hover,
.ea-timeline-node:focus {
    transform: scale(1.1);
    outline: none;
}

.ea-timeline-node.active {
    transform: scale(1.15);
}

.ea-tnode-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--ea-shadow-sm);
    transition: box-shadow 0.3s ease;
}

.ea-timeline-node:hover .ea-tnode-dot,
.ea-timeline-node.active .ea-tnode-dot {
    box-shadow: var(--ea-shadow-lg);
}

.ea-tnode-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
}

.ea-tnode-label {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ea-text);
    text-align: center;
    line-height: 1.3;
}

.ea-timeline-connector {
    width: 20px;
    height: 3px;
    background: var(--ea-border);
    position: relative;
    flex-shrink: 0;
}

.ea-confluence-visual.animated .ea-timeline-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--ea-confluence-green);
    animation: connectorFlow 0.5s ease forwards;
}

.ea-connector-1::after { animation-delay: 0.3s; background: var(--ea-confluence-green); }
.ea-connector-2::after { animation-delay: 0.6s; background: var(--ea-amber); }
.ea-connector-3::after { animation-delay: 0.9s; background: var(--ea-deep-blue); }
.ea-connector-4::after { animation-delay: 1.2s; background: var(--ea-terracotta); }

@keyframes connectorFlow {
    0% { width: 0; }
    100% { width: 100%; }
}

.ea-timeline-you {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.ea-tyou-dot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ea-gradient-amber);
    box-shadow: var(--ea-shadow-amber);
    position: relative;
}

.ea-tyou-dot::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--ea-amber);
    opacity: 0.2;
    animation: youPulse 2s ease-in-out infinite;
}

@keyframes youPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.15); opacity: 0.1; }
}

.ea-tyou-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ea-amber);
    font-family: var(--ea-font-serif);
}

/* Mobile Detail Sheet */
.ea-mobile-detail {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ea-stone);
    border-radius: var(--ea-radius-xl) var(--ea-radius-xl) 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-height: 50vh;
    overflow: hidden;
}

.ea-mobile-detail.visible {
    transform: translateY(0);
}

.ea-mobile-detail-content {
    padding: 1.5rem;
    position: relative;
}

.ea-mobile-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--ea-cream);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--ea-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.ea-mobile-detail-close:hover {
    background: var(--ea-cream-dark);
}

.ea-mobile-detail-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ea-mobile-detail-icon {
    font-size: 1.5rem;
}

.ea-mobile-detail-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ea-text);
}

.ea-mobile-detail-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ea-text-muted);
    margin-bottom: 1rem;
}

.ea-mobile-detail-era {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ea-text);
    background: var(--ea-cream);
    padding: 0.35rem 1rem;
    border-radius: var(--ea-radius-full);
}

/* Caption Variations */
.ea-confluence-caption {
    font-style: italic;
    color: var(--ea-text-muted);
    max-width: 550px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.ea-caption-mobile {
    display: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .ea-path-flow,
    .ea-center-pulse,
    .ea-timeline-connector::after,
    .ea-tyou-dot::before {
        animation: none !important;
    }
    
    .ea-timeline-connector::after {
        width: 100%;
    }
}

/* Responsive: Mobile View */
@media (max-width: 768px) {
    .ea-confluence-desktop {
        display: none;
    }
    
    .ea-confluence-mobile {
        display: block;
    }
    
    .ea-caption-desktop {
        display: none;
    }
    
    .ea-caption-mobile {
        display: inline;
    }
    
    .ea-confluence-visual {
        margin-top: 40px;
    }
}

/* Medium screens adjustment */
@media (min-width: 769px) and (max-width: 991px) {
    .ea-detail-panel {
        width: 220px;
    }
    
    .ea-detail-1 { left: 12%; }
    .ea-detail-2 { left: 12%; }
    .ea-detail-3 { right: 12%; }
    .ea-detail-4 { right: 12%; }
    
    .ea-pop-label {
        font-size: 0.75rem;
    }
}

/* ========================================
   Why Exclusive Section - Lens Cards
   ======================================== */
.ea-lens-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ea-radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: var(--ea-transition);
    height: 100%;
}

.ea-lens-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: var(--ea-shadow-lg);
}

.ea-lens-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--ea-white);
}

.ea-lens-global {
    background: var(--ea-gradient-jade);
}

.ea-lens-regional {
    background: var(--ea-gradient-amber);
}

.ea-lens-temporal {
    background: linear-gradient(135deg, var(--ea-deep-blue) 0%, var(--ea-deep-blue-light) 100%);
}

.ea-lens-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.ea-lens-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.ea-lens-examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.ea-lens-examples span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: var(--ea-radius-full);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.ea-exclusive-narrative {
    max-width: 800px;
    margin: 60px auto 0;
    text-align: center;
    padding: 2rem;
    background: rgba(196, 149, 106, 0.1);
    border-radius: var(--ea-radius-lg);
    border: 1px solid rgba(196, 149, 106, 0.2);
}

.ea-exclusive-narrative p {
    font-size: 1.1rem;
    margin: 0;
}

.ea-exclusive-narrative strong {
    color: var(--ea-jade-light);
}

/* ========================================
   Discovery Grid
   ======================================== */
.ea-discovery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) {
    .ea-discovery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ea-discovery-grid {
        grid-template-columns: 1fr;
    }
}

.ea-discovery-item {
    background: var(--ea-stone);
    border-radius: var(--ea-radius-lg);
    padding: 2rem;
    box-shadow: var(--ea-shadow-sm);
    transition: var(--ea-transition);
}

.ea-discovery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--ea-shadow-md);
}

.ea-discovery-icon {
    width: 60px;
    height: 60px;
    background: var(--ea-gradient-jade);
    border-radius: var(--ea-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ea-white);
    margin-bottom: 1.5rem;
}

.ea-discovery-item:nth-child(1) .ea-discovery-icon {
    background: linear-gradient(135deg, var(--ea-amber) 0%, var(--ea-amber-light) 100%);
}

.ea-discovery-item:nth-child(2) .ea-discovery-icon {
    background: linear-gradient(135deg, #2d8a6e 0%, #48b890 100%);
}

.ea-discovery-item:nth-child(3) .ea-discovery-icon {
    background: linear-gradient(135deg, var(--ea-deep-blue) 0%, var(--ea-deep-blue-light) 100%);
}

.ea-discovery-item:nth-child(4) .ea-discovery-icon {
    background: linear-gradient(135deg, var(--ea-terracotta) 0%, var(--ea-terracotta-light) 100%);
}

.ea-discovery-item:nth-child(5) .ea-discovery-icon {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
}

.ea-discovery-item:nth-child(6) .ea-discovery-icon {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.ea-discovery-item:nth-child(1) { border-top: 3px solid var(--ea-amber); }
.ea-discovery-item:nth-child(2) { border-top: 3px solid #2d8a6e; }
.ea-discovery-item:nth-child(3) { border-top: 3px solid var(--ea-deep-blue); }
.ea-discovery-item:nth-child(4) { border-top: 3px solid var(--ea-terracotta); }
.ea-discovery-item:nth-child(5) { border-top: 3px solid #64748b; }
.ea-discovery-item:nth-child(6) { border-top: 3px solid #7c3aed; }

.ea-discovery-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--ea-text);
}

.ea-discovery-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================
   Multiple Lenses Section
   ======================================== */
.ea-depth-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ea-depth-layer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-radius: var(--ea-radius-md);
    transition: var(--ea-transition);
}

.ea-depth-modern {
    background: rgba(196, 149, 106, 0.3);
    border-left: 4px solid var(--ea-jade-light);
}

.ea-depth-historical {
    background: rgba(196, 149, 106, 0.3);
    border-left: 4px solid var(--ea-amber-light);
}

.ea-depth-ancient {
    background: rgba(29, 78, 216, 0.3);
    border-left: 4px solid var(--ea-deep-blue-light);
}

.ea-depth-prehistoric {
    background: rgba(220, 38, 38, 0.3);
    border-left: 4px solid var(--ea-terracotta-light);
}

.ea-depth-label {
    font-weight: 600;
    color: var(--ea-white);
}

.ea-depth-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.ea-lenses-narrative {
    padding-left: 2rem;
}

.ea-lenses-narrative h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.ea-insight-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.ea-insight-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
    border-radius: var(--ea-radius-md);
}

.ea-insight-card i {
    color: var(--ea-jade-light);
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

.ea-insight-card strong {
    display: block;
    color: var(--ea-white);
    margin-bottom: 0.25rem;
}

.ea-insight-card p {
    margin: 0;
    font-size: 0.9rem;
}

.ea-lenses-conclusion {
    padding: 1rem 1.25rem;
    background: rgba(196, 149, 106, 0.15);
    border-radius: var(--ea-radius-md);
    border-left: 3px solid var(--ea-jade-light);
}

/* ========================================
   Visualizations Section
   ======================================== */
.ea-viz-card {
    background: var(--ea-stone);
    border-radius: var(--ea-radius-lg);
    overflow: hidden;
    box-shadow: var(--ea-shadow-md);
    transition: var(--ea-transition);
    height: 100%;
}

.ea-viz-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ea-shadow-lg);
}

.ea-viz-image {
    height: 200px;
    overflow: hidden;
}

.ea-viz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ea-transition);
}

.ea-viz-card:hover .ea-viz-image img {
    transform: scale(1.05);
}

.ea-viz-content {
    padding: 1.5rem;
}

.ea-viz-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-family: var(--ea-font-sans);
    font-weight: 600;
}

.ea-viz-content p {
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   Visualization Graphics - CSS/SVG Designs
   ======================================== */

/* Mini Table Visualization */
.ea-viz-table {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: var(--ea-stone);
    border-radius: var(--ea-radius-md);
}

.ea-vtable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--ea-jade);
    border-radius: var(--ea-radius-sm);
    margin-bottom: 0.5rem;
}

.ea-vtable-region {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ea-white);
}

.ea-vtable-pct {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ea-white);
}

.ea-vtable-row {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.ea-vtable-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.ea-vtable-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    opacity: 0.1;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.ea-viz-card:hover .ea-vtable-bar {
    opacity: 0.2;
}

.ea-vtable-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
}

.ea-vtable-name {
    flex: 1;
    font-size: 0.7rem;
    color: var(--ea-text);
    margin-left: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
}

.ea-vtable-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ea-text-muted);
    margin-left: 0.5rem;
    z-index: 1;
}

/* Donut Chart Visualization */
.ea-viz-donut {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--ea-cream);
}

.ea-donut-svg {
    width: 130px;
    height: 130px;
    transition: transform 0.3s ease;
}

.ea-viz-card:hover .ea-donut-svg {
    transform: scale(1.05);
}

.ea-donut-segment {
    transition: stroke-width 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.ea-viz-card:hover .ea-seg-1 { stroke-width: 14; }
.ea-viz-card:hover .ea-seg-2 { stroke-width: 13; }
.ea-viz-card:hover .ea-seg-3 { stroke-width: 13; }
.ea-viz-card:hover .ea-seg-4 { stroke-width: 14; }

.ea-donut-legend {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ea-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.ea-viz-card:hover .ea-legend-dot {
    transform: scale(1.2);
}

/* Map Visualization */
.ea-viz-map {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, #1a2635 0%, #1e3040 100%);
    border-radius: var(--ea-radius-md);
    overflow: hidden;
}

.ea-map-svg {
    width: 100%;
    height: 100%;
    max-height: 160px;
}

.ea-map-continent {
    fill: #3a4a5a;
    transition: fill 0.3s ease;
}

.ea-viz-card:hover .ea-map-continent {
    fill: #4a5c6e;
}

.ea-map-region {
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.ea-viz-card:hover .ea-map-region {
    filter: brightness(1.1);
}

.ea-map-pulse {
    animation: mapPulse 3s ease-in-out infinite;
}

.ea-map-pulse-delay {
    animation: mapPulse 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes mapPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.ea-map-marker {
    animation: markerPulse 2s ease-in-out infinite;
}

.ea-map-marker:nth-child(2) { animation-delay: 0.5s; }
.ea-map-marker:nth-child(3) { animation-delay: 1s; }

@keyframes markerPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ea-map-pulse,
    .ea-map-pulse-delay,
    .ea-map-marker {
        animation: none !important;
    }
}

.text-jade {
    color: var(--ea-jade);
}

.text-amber {
    color: var(--ea-amber);
}

.text-terracotta {
    color: var(--ea-terracotta);
}

/* ========================================
   Interpretation Section
   ======================================== */
.ea-interpretation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .ea-interpretation-grid {
        grid-template-columns: 1fr;
    }
}

.ea-interpretation-card {
    background: var(--ea-stone);
    border-radius: var(--ea-radius-lg);
    padding: 2rem;
    box-shadow: var(--ea-shadow-sm);
    position: relative;
    padding-top: 3rem;
}

.ea-interpretation-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 45px;
    height: 45px;
    background: var(--ea-gradient-jade);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ea-font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ea-white);
    box-shadow: var(--ea-shadow-jade);
}

.ea-interpretation-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-family: var(--ea-font-sans);
    font-weight: 600;
}

.ea-interpretation-card p {
    margin: 0;
    font-size: 0.95rem;
}

.ea-interpretation-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(196, 149, 106, 0.1) 0%, rgba(196, 149, 106, 0.1) 100%);
    padding: 1.5rem 2rem;
    border-radius: var(--ea-radius-lg);
    border: 1px solid rgba(196, 149, 106, 0.2);
}

.ea-interpretation-note i {
    color: var(--ea-amber);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.ea-interpretation-note p {
    margin: 0;
    color: var(--ea-text);
}

.ea-interpretation-note strong {
    color: var(--ea-jade);
}

/* ========================================
   Calculator Explorer Section
   ======================================== */
.ea-calculator-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ea-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--ea-radius-full);
    padding: 0.5rem 1.25rem;
    flex: 1;
    max-width: 350px;
}

.ea-search-box i {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.75rem;
}

.ea-search-box input {
    background: transparent;
    border: none;
    color: var(--ea-white);
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}

.ea-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ea-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ea-filter-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: var(--ea-radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ea-transition);
}

.ea-filter-tab:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ea-filter-tab.active {
    background: var(--ea-jade);
    border-color: var(--ea-jade);
    color: var(--ea-white);
}

/* Calculator Grid */
.ea-calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .ea-calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ea-calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .ea-calculator-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ea-search-box {
        max-width: none;
    }
    
    .ea-filter-tabs {
        justify-content: center;
    }
}

.ea-calculator-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ea-radius-lg);
    padding: 1.5rem;
    transition: var(--ea-transition);
}

.ea-calculator-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: var(--ea-shadow-lg);
}

.ea-calculator-card.hidden {
    display: none;
}

.ea-calc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ea-calc-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--ea-radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ea-badge-modern {
    background: rgba(196, 149, 106, 0.2);
    color: var(--ea-jade-light);
}

.ea-badge-ancient {
    background: rgba(196, 149, 106, 0.2);
    color: var(--ea-amber-light);
}

.ea-calc-regions {
    text-align: right;
}

.ea-region-count {
    display: block;
    font-family: var(--ea-font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ea-white);
    line-height: 1;
}

.ea-region-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.ea-calc-name {
    font-size: 1.1rem;
    font-family: var(--ea-font-sans);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--ea-white);
}

.ea-calc-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ea-calc-details-link {
    display: inline-flex;
    align-items: center;
    color: var(--ea-jade-light);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--ea-transition);
}

.ea-calc-details-link:hover {
    color: var(--ea-white);
    text-decoration: none;
}

.ea-calc-details-link i {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    transition: var(--ea-transition);
}

.ea-calc-details-link:hover i {
    transform: translateX(4px);
}

/* No Results */
.ea-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.ea-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.ea-no-results p {
    margin: 0;
}

/* ========================================
   Science Section
   ======================================== */
.ea-science-card {
    background: var(--ea-stone);
    border-radius: var(--ea-radius-lg);
    padding: 2rem;
    box-shadow: var(--ea-shadow-sm);
    height: 100%;
}

.ea-science-icon {
    width: 60px;
    height: 60px;
    background: var(--ea-gradient-jade);
    border-radius: var(--ea-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ea-white);
    margin-bottom: 1.5rem;
}

.ea-science-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: var(--ea-font-sans);
    font-weight: 600;
}

.ea-science-card h4 a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
}

.ea-science-card h4 a:hover {
    color: inherit;
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

.ea-science-card p {
    font-size: 0.95rem;
}

.ea-reference-list,
.ea-limitations-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.ea-reference-list li,
.ea-limitations-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--ea-text-muted);
}

.ea-reference-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.9rem;
    width: 8px;
    height: 8px;
    background: var(--ea-jade);
    border-radius: 50%;
}

.ea-limitations-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.9rem;
    width: 8px;
    height: 8px;
    background: var(--ea-amber);
    border-radius: 50%;
}

.ea-compatibility-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ea-compatibility-badges span {
    background: var(--ea-cream);
    padding: 0.35rem 0.75rem;
    border-radius: var(--ea-radius-full);
    font-size: 0.8rem;
    color: var(--ea-text);
    font-weight: 500;
}

/* ========================================
   Pricing Section
   ======================================== */
.ea-closing-narrative {
    font-family: var(--ea-font-serif);
    font-size: 1.3rem !important;
    font-style: italic;
    max-width: 700px !important;
}

.ea-pricing-card {
    background: var(--ea-stone);
    border-radius: var(--ea-radius-xl);
    overflow: hidden;
    box-shadow: var(--ea-shadow-xl);
    text-align: center;
}

.ea-pricing-header {
    background: var(--ea-gradient-jade);
    padding: 2.5rem 2rem;
    color: var(--ea-white);
}

.ea-pricing-header h3 {
    color: var(--ea-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ea-pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.ea-price-value {
    font-family: var(--ea-font-serif);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.ea-price-currency {
    font-size: 2rem;
    font-weight: 600;
}

.ea-pricing-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

.ea-pricing-features {
    padding: 2rem;
}

.ea-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ea-border-light);
}

.ea-feature-item:last-child {
    border-bottom: none;
}

.ea-feature-item i {
    color: var(--ea-jade);
    font-size: 1.1rem;
}

.ea-feature-item span {
    color: var(--ea-text);
    font-size: 0.95rem;
}

.ea-pricing-cta {
    display: block;
    background: var(--ea-gradient-jade);
    color: var(--ea-white);
    padding: 1.25rem 2rem;
    margin: 0 2rem 2rem;
    border-radius: var(--ea-radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ea-transition);
    box-shadow: var(--ea-shadow-jade);
}

.ea-pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(196, 149, 106, 0.4);
    color: var(--ea-white);
    text-decoration: none;
}

/* How It Works */
.ea-how-it-works {
    margin-top: 80px;
    text-align: center;
}

.ea-how-it-works h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--ea-white);
}

.ea-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.ea-step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
}

.ea-step-number {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--ea-jade-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ea-font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ea-jade-light);
    margin: 0 auto 1rem;
}

.ea-step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--ea-font-sans);
    font-weight: 600;
}

.ea-step-content p {
    font-size: 0.9rem;
    margin: 0;
}

.ea-step-arrow {
    display: flex;
    align-items: center;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 767px) {
    .ea-step-arrow {
        display: none;
    }
    
    .ea-steps {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   Final Section
   ======================================== */
.ea-final-content {
    max-width: 700px;
    margin: 0 auto;
}

.ea-final-icon {
    font-size: 3rem;
    color: var(--ea-jade);
    margin-bottom: 1.5rem;
}

.ea-final-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.ea-final-text {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--ea-text-muted);
}

/* ========================================
   Sticky CTA Bar
   ======================================== */
.ea-sticky-cta {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: var(--ea-charcoal);
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: bottom 0.3s ease;
}

.ea-sticky-cta.visible {
    bottom: 0;
}

.ea-sticky-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ea-sticky-text {
    display: flex;
    flex-direction: column;
}

.ea-sticky-title {
    font-weight: 600;
    color: var(--ea-white);
    font-size: 1rem;
}

.ea-sticky-price {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.ea-sticky-button {
    display: inline-flex;
    align-items: center;
    background: var(--ea-gradient-amber);
    color: var(--ea-obsidian);
    padding: 0.75rem 1.5rem;
    border-radius: var(--ea-radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ea-transition);
}

.ea-sticky-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--ea-shadow-amber);
    color: var(--ea-obsidian);
    text-decoration: none;
}

@media (max-width: 575px) {
    .ea-sticky-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .ea-sticky-text {
        align-items: center;
    }
}

/* ========================================
   Animations
   ======================================== */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 991px) {
    .ea-section {
        padding: 70px 0;
    }
    
    .ea-title-accent {
        font-size: 2.5rem;
    }
    
    .ea-title-line {
        font-size: 1.2rem;
    }
    
    .ea-section-title {
        font-size: 2.25rem;
    }
    
    .ea-narrative-block {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .ea-lenses-narrative {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .ea-confluence-wrapper {
        height: 180px;
    }
}

@media (max-width: 575px) {
    .ea-hero {
        padding: 100px 15px 60px;
    }
    
    .ea-title-accent {
        font-size: 2rem;
    }
    
    .ea-title-line {
        font-size: 1rem;
    }
    
    .ea-hero-lead {
        font-size: 1rem;
    }
    
    .ea-stat-value {
        font-size: 2rem;
    }
    
    .ea-stat-divider {
        height: 30px;
    }
    
    .ea-section-title {
        font-size: 1.85rem;
    }
    
    .ea-section-subtitle {
        font-size: 1rem;
    }
    
    .ea-btn-primary,
    .ea-btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .ea-confluence-visual {
        margin-top: 30px;
    }
    
    .ea-price-value {
        font-size: 3rem;
    }
}

/* Print Styles */
@media print {
    .ea-page-nav,
    .ea-back-to-top,
    .ea-sticky-cta,
    .ea-scroll-indicator,
    .ea-scroll-progress {
        display: none !important;
    }
    
    .ea-hero {
        min-height: auto;
        padding: 40px 20px;
    }
    
    .ea-section {
        padding: 30px 0;
    }
}

/* ========================================
   RELATED PRODUCTS
   ======================================== */
.exclusive-related-products {
    padding: 60px 0;
    background: var(--ea-cream);
}

.exclusive-related-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--ea-text);
    margin-bottom: 40px;
    font-family: var(--ea-font-serif);
    font-weight: 700;
}

.exclusive-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .exclusive-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .exclusive-related-grid {
        grid-template-columns: 1fr;
    }
}

.exclusive-related-card {
    background: var(--ea-stone);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--ea-shadow-md);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--ea-border);
}

.exclusive-related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ea-shadow-lg);
}

.exclusive-related-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--ea-border);
}

.exclusive-related-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exclusive-related-content h4 {
    font-size: 1.2rem;
    color: var(--ea-text);
    margin-bottom: 8px;
    font-family: var(--ea-font-sans);
    font-weight: 600;
}

.exclusive-related-content p {
    font-size: 0.95rem;
    color: var(--ea-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.exclusive-related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ea-amber);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    margin-top: auto;
}

/* ========================================
   PRICING SECTION (Cinematic partial)
   Full-width breakout so dark section extends edge-to-edge on light page
   ======================================== */
.ea-pricing-section {
    --rpc-bg: var(--ea-obsidian);
    --rpc-overlay: rgba(13, 13, 15, 0.75);
    --rpc-text-primary: var(--ea-ivory);
    --rpc-text-secondary: rgba(245, 243, 239, 0.9);
    --rpc-text-muted: rgba(245, 243, 239, 0.6);
    --rpc-accent: var(--ea-amber);
    --rpc-accent-dim: var(--ea-copper);
    --rpc-cta-bg: var(--ea-amber);
    --rpc-cta-text: var(--ea-obsidian);
    --rpc-cta-hover: var(--ea-copper);
    --rpc-border: rgba(168, 159, 145, 0.2);
    --rpc-font-display: var(--ea-font-serif);
    --rpc-font-body: var(--ea-font-sans);

    /* Full viewport width breakout for cinematic edge-to-edge dark block */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Ensure background image and overlay render with jade/amber theme */
.ea-pricing-section .rpc-pricing-bg img {
    opacity: 0.28;
    filter: grayscale(30%) sepia(15%);
}

.ea-pricing-section .rpc-pricing-overlay {
    background:
        radial-gradient(ellipse at center, transparent 0%, var(--rpc-bg) 70%),
        linear-gradient(0deg, var(--rpc-bg) 0%, transparent 40%);
}

.exclusive-related-link:hover {
    color: var(--ea-amber-light);
    text-decoration: underline;
}

.exclusive-related-link i {
    transition: transform 0.2s ease;
}

.exclusive-related-link:hover i {
    transform: translateX(4px);
}