/* Hyper-RAG Reveal.js Presentation Theme - Deep Obsidian & Cyber Emerald Mint */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500;600&display=swap');

:root {
    --bg: #060b08;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --text: #e6f4ee;
    --text-dim: #859990;

    --accent: #10b981;
    --accent-bright: #34d399;
    --gradient-1: linear-gradient(135deg, #ffffff 0%, #a7f3d0 40%, #10b981 100%);
    --gradient-2: linear-gradient(135deg, #10b981 0%, #34d399 50%, #059669 100%);

    --svg-accent-indigo: #34d399;
    --svg-accent-blue: #10b981;
    --svg-accent-emerald: #059669;
    --svg-accent-yellow: #f59e0b;
    --svg-accent-red: #f87171;
    --svg-accent-pink: #fb7185;
    --svg-accent-amber: #d97706;
    --svg-accent-purple: #a855f7;
}

/* Noise overlay for premium film texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ── GLOBAL SETUP ─────────────────────────── */

.reveal-viewport {
    background: var(--bg) !important;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Outfit', 'Inter', sans-serif;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.reveal {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 26px;
    color: var(--text);
}

.reveal .slides {
    text-align: left;
}

.reveal .slides section {
    padding: 32px 48px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ── TYPOGRAPHY ─────────────────────── */

.reveal h1,
.reveal h2,
.reveal h3 {
    font-family: 'Outfit', sans-serif;
    text-transform: none;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: #fff;
}

.reveal h1 {
    font-size: 2.3em;
    font-weight: 800;
    margin: 0 0 14px 0;
}

.reveal h2 {
    font-size: 1.7em;
    font-weight: 700;
    margin: 0 0 18px 0;
}

.reveal h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--accent-bright);
    margin: 0 0 14px 0;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-2 {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── TOP HEADER CONTROL BAR ─────────── */

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: rgba(10, 14, 23, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
}

.brand-badge span.pill {
    background: var(--gradient-2);
    color: #ffffff;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.slide-tracker {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
    font-family: 'Fira Code', monospace;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tool-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.tool-btn:hover {
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    transform: translateY(-1px);
}

/* ── TITLE SLIDE ────────────────────── */

.slide-title {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    position: relative;
    overflow: hidden;
}

.slide-title::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.16), transparent 60%);
    pointer-events: none;
    animation: glowBreathe 8s infinite ease-in-out;
}

.slide-title::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.12), transparent 60%);
    pointer-events: none;
    animation: glowBreathe 8s 4s infinite ease-in-out;
}

.slide-title h1 {
    font-size: 2.3em;
    max-width: 95%;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.slide-meta {
    display: flex;
    gap: 28px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.85em;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.slide-meta .meta-item strong {
    display: block;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
    color: var(--accent-bright);
}

/* ── CONTENT SLIDES ─────────────────── */

.slide-content {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start !important;
    position: relative;
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 60%);
    pointer-events: none;
    animation: glowBreathe 8s 2s infinite ease-in-out;
}

@keyframes glowBreathe {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.section-badge {
    display: inline-block;
    font-size: 0.65em;
    font-weight: 600;
    color: var(--accent-bright);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
}

/* ── LISTS ──────────────────────────── */

.reveal ul,
.reveal ol {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.reveal li {
    padding: 16px 24px;
    margin-bottom: 10px;
    background: var(--surface);
    border: none;
    border-left: 3px solid rgba(16, 185, 129, 0.4);
    border-radius: 0 10px 10px 0;
    font-size: 0.96em;
    line-height: 1.6;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal li:hover {
    background: var(--surface-hover);
    border-left-color: var(--accent);
    transform: translateX(4px);
}

.reveal li strong {
    color: #fff;
    font-weight: 600;
}

.reveal li em {
    color: var(--accent-bright);
}

.reveal li ul {
    margin-top: 8px;
}

.reveal li li {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
    font-size: 0.92em;
    padding: 8px 14px;
    margin-bottom: 4px;
}

/* ── TWO COLUMN & CARDS ─────────────── */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.config-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.config-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid rgba(56, 189, 248, 0.4);
    border-radius: 2px 2px 12px 12px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.config-card:hover {
    background: var(--surface-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border-top-color: var(--accent);
}

.config-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--accent-bright);
    margin: 0;
}

.config-card p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-dim);
    line-height: 1.5;
}

.config-card ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.config-card li {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    color: var(--text-dim);
    margin: 0;
}

.config-card li strong, .config-card li em {
    color: #fff;
    font-style: normal;
    font-weight: 600;
}

.config-card li em {
    color: var(--accent-bright);
}

/* ── AGENDA GRID ────────────────────── */

.agenda-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9em;
    color: var(--text-dim);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.agenda-item:hover {
    background: var(--surface-hover);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.agenda-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3em;
    font-weight: 700;
    min-width: 32px;
    color: var(--accent-bright);
}

/* ── TABLES ─────────────────────────── */

.reveal table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.75em;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    background: rgba(255, 255, 255, 0.02);
}

.highlight-best {
    color: #34d399 !important;
    font-weight: 600;
}

.highlight-worst {
    color: #f87171 !important;
    font-weight: 600;
}

.reveal thead {
    background: var(--surface);
}

.reveal th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--accent-bright);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.reveal td {
    padding: 11px 14px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.45;
}

.reveal td strong {
    color: #fff;
}

.reveal tr:last-child td {
    border-bottom: none;
}

.reveal tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

/* ── STAT CARDS ─────────────────────── */

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.stat-card:hover {
    background: var(--surface-hover);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.stat-card.visible {
    animation: statPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes statPop {
    0% { opacity: 0; transform: scale(0.92) translateY(12px); }
    60% { opacity: 1; transform: scale(1.04) translateY(-4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.78em;
    color: var(--text-dim);
    line-height: 1.4;
}

/* ── FRAGMENTS & ANIMATIONS ─────────── */

.reveal .fragment {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal .fragment:not(.fade-out):not(.visible) {
    opacity: 0;
    transform: translateY(10px);
}

.reveal .fragment:not(.fade-out).visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in and semi-dim non-active previous fragments */
.reveal .fragment.fade-in-then-semi-out.visible:not(.current-fragment) {
    opacity: 0.45 !important;
    transform: scale(0.985);
    transition: all 0.4s ease;
}

/* SVG Line & Node Animation Keyframes */
@keyframes linePulse {
    0% { stroke-dashoffset: 20; }
    100% { stroke-dashoffset: 0; }
}

.pulse-line {
    stroke-dasharray: 6 4;
    animation: linePulse 1.2s linear infinite;
}

@keyframes nodeGlow {
    0%, 100% { filter: drop-shadow(0 0 2px var(--accent)); }
    50% { filter: drop-shadow(0 0 10px var(--accent)); }
}

.node-glow {
    animation: nodeGlow 3s ease-in-out infinite;
}

/* ── REVEAL CONTROLS & PROGRESS ──────── */

.reveal .progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.reveal .progress span {
    background: var(--gradient-2);
    box-shadow: 0 0 12px var(--accent);
}

.reveal .controls button {
    color: var(--accent) !important;
}

.reveal .slide-number {
    font-family: 'Outfit', sans-serif;
    background: var(--surface) !important;
    color: var(--text-dim) !important;
    border-radius: 6px;
    padding: 3px 8px !important;
    font-size: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
}
/* ── VISUAL DIAGRAMS & FLOWCHARTS ───────── */

.diagram-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 14px;
    position: relative;
    overflow: hidden;
}

.diagram-title {
    font-size: 0.75em;
    font-weight: 700;
    color: var(--accent-bright);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flowchart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0;
    width: 100%;
}

.flow-node {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    min-width: 110px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.flow-node.accent-bg {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.flow-node.mint-bg {
    background: rgba(52, 211, 153, 0.12);
    border-color: var(--accent-bright);
    color: #fff;
}

.flow-node.warning-bg {
    background: rgba(248, 113, 113, 0.12);
    border-color: var(--svg-accent-red);
    color: #fff;
}

.flow-arrow {
    color: var(--text-dim);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-diamond {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    margin: 10px auto;
}

.flow-diamond-inner {
    transform: rotate(-45deg);
    font-size: 0.65em;
    font-weight: 700;
    color: var(--accent-bright);
    text-align: center;
    line-height: 1.15;
}

.topology-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.topo-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
}

.topo-card.bad {
    border-left: 3px solid var(--svg-accent-red);
}

.topo-card.good {
    border-left: 3px solid var(--accent);
    background: rgba(16, 185, 129, 0.03);
}

.topo-title {
    font-size: 0.85em;
    font-weight: 700;
    margin-bottom: 6px;
}

.fill-bar-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 8px;
}

.fill-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 90px;
    height: 100%;
}

.fill-bar-track {
    width: 32px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.fill-bar-fill {
    width: 100%;
    background: var(--gradient-2);
    border-radius: 2px 2px 0 0;
    transition: height 0.6s ease;
}

.fill-bar-label {
    font-size: 0.65em;
    color: var(--text-dim);
    font-family: 'Fira Code', monospace;
}

/* ── NATURE COMMUNICATIONS ACADEMIC FIGURES ───────── */

.nature-figure {
    background: rgba(6, 11, 8, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 10px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.figure-caption {
    font-size: 0.7em;
    color: var(--text-dim);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Two-Panel Comparison Figure */
.two-panel-grid {
    display: grid;
    grid-template-columns: 1fr 30px 1fr;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.panel-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    position: relative;
    min-height: 180px;
}

.panel-box.compact-panel {
    min-height: 175px;
    padding: 8px;
}

.panel-box.left-panel {
    border-top: 2px solid var(--svg-accent-red);
}

.panel-box.right-panel {
    border-top: 2px solid var(--accent-bright);
    background: rgba(16, 185, 129, 0.03);
}

.panel-title {
    font-size: 0.7em;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.graph-nodes-container {
    position: relative;
    height: 145px;
    width: 100%;
    margin-top: 4px;
}

.entity-node {
    position: absolute;
    padding: 4px 8px;
    background: rgba(10, 14, 23, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 0.62em;
    font-weight: 600;
    color: #fff;
    z-index: 20;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.hyper-hull {
    position: absolute;
    border-radius: 14px;
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s ease;
}

.hull-diagnosis {
    top: 2px;
    left: 4px;
    width: 97%;
    height: 84px;
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px dashed var(--accent);
}

.hull-treatment {
    bottom: 2px;
    left: 4px;
    width: 97%;
    height: 84px;
    background: rgba(52, 211, 153, 0.08);
    border: 1.5px dashed var(--accent-bright);
}

.hull-label-tag {
    position: absolute;
    font-size: 0.54em;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 25;
    white-space: nowrap;
}

.tag-diagnosis {
    top: 4px;
    right: 120px;
    background: rgba(16, 185, 129, 0.35);
    color: var(--accent-bright);
    border: 1px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.tag-treatment {
    bottom: 4px;
    left: 120px;
    background: rgba(52, 211, 153, 0.35);
    color: #fff;
    border: 1px solid var(--accent-bright);
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* Compact bullet lists for crowded slides */
.compact-list li {
    padding: 8px 16px !important;
    margin-bottom: 6px !important;
    font-size: 0.84em !important;
    line-height: 1.45 !important;
}

/* Horizontal Pipeline Workflow */
.pipeline-flow-horizontal {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px;
    margin-top: 8px;
    width: 100%;
}

.stage-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stage-title {
    font-size: 0.68em;
    font-weight: 700;
    color: var(--accent-bright);
    line-height: 1.2;
}

.stage-sub {
    font-size: 0.58em;
    color: var(--text-dim);
    line-height: 1.2;
}

.stage-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 3px;
}

.stage-pill {
    font-size: 0.52em;
    padding: 1px 4px;
    background: rgba(16, 185, 129, 0.15);
    color: #fff;
    border-radius: 4px;
}

.stage-arrow {
    color: var(--accent);
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Retrieval Workflow & Prompt Window */
.prompt-window {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 6px;
    padding: 6px 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.6em;
    color: var(--text-dim);
    line-height: 1.3;
}

.prompt-tag {
    color: var(--accent-bright);
    font-weight: 700;
}

/* ── ANIMATED DATA FLOW PARTICLES & BUBBLES ───────── */

.stage-arrow-animated {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    flex-shrink: 0;
}

.flow-track-line {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 4px, transparent 4px, transparent 8px);
    position: relative;
}

.bubble-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-bright), 0 0 14px var(--accent);
    top: -2.5px;
    left: 0;
    animation: bubbleTravel 1.6s infinite linear;
}

.bubble-dot.delay-1 { animation-delay: 0.5s; }
.bubble-dot.delay-2 { animation-delay: 1.0s; }

@keyframes bubbleTravel {
    0% { left: 0%; opacity: 0; transform: scale(0.6); }
    15% { opacity: 1; transform: scale(1.2); }
    85% { opacity: 1; transform: scale(1); }
    100% { left: 100%; opacity: 0; transform: scale(0.6); }
}

/* Animated node pulse for active diagram boxes */
.active-pulse-node {
    position: relative;
}

.active-pulse-node::after {
    content: '';
    position: absolute;
    top: -3px; right: -3px; bottom: -3px; left: -3px;
    border: 1px dashed var(--accent-bright);
    border-radius: inherit;
    animation: nodePulseGlow 2.5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes nodePulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.03); }
}

/* ── MOBILE RESPONSIVE ADAPTATION ── */
@media (max-width: 768px) {
    .top-header {
        height: 44px;
        padding: 0 1rem;
    }
    .brand-badge {
        font-size: 0.85rem;
    }
    .header-tools {
        display: none;
    }
    .reveal .slides section {
        padding: 16px 20px !important;
    }
    .pipeline-flow-horizontal {
        overflow-x: auto;
        padding-bottom: 8px;
    }
}


