/* ===========================================
   BUYDEPA INVESTOR DECK — THEME
   Plus Jakarta Sans · Clean · Confident
   =========================================== */

:root {
    /* === BRAND COLORS === */
    --bd-blue: #4A90E2;
    --bd-blue-dark: #2B6CB0;
    --bd-blue-light: #D6E8FB;
    --bd-mint: #00D4AA;
    --bd-mint-dark: #00A87F;
    --bd-mint-light: #CCFAF0;

    /* === NEUTRALS === */
    --bd-dark: #0A1628;
    --bd-dark-mid: #122447;
    --bd-slate: #1E3A5F;
    --bd-gray: #64748B;
    --bd-light: #F8FAFC;
    --bd-white: #FFFFFF;
    --bd-border: #E2E8F0;

    /* === STATUS === */
    --bd-red: #EF4444;
    --bd-amber: #F59E0B;
    --bd-green: #22C55E;

    /* === TYPOGRAPHY (all clamp for viewport fitting) === */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --title-size: clamp(2rem, 5vw, 4rem);
    --h2-size: clamp(1.3rem, 3vw, 2.2rem);
    --h3-size: clamp(1rem, 2vw, 1.4rem);
    --body-size: clamp(0.75rem, 1.3vw, 1rem);
    --small-size: clamp(0.65rem, 1vw, 0.8rem);

    /* === SPACING === */
    --slide-padding: clamp(1.2rem, 3vw, 3rem);
    --slide-padding-v: clamp(0.8rem, 2vh, 2rem);
    --content-gap: clamp(0.75rem, 2vw, 1.5rem);
    --element-gap: clamp(0.25rem, 1vw, 0.75rem);

    /* === ANIMATION === */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-apple: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-normal: 0.6s;
}


/* ===========================================
   VIEWPORT FITTING (MANDATORY)
   =========================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; }
html { scroll-snap-type: y mandatory; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bd-light);
    color: var(--bd-dark);
    -webkit-font-smoothing: antialiased;
}

.slide {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    position: relative;
}

.slide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 100%;
    overflow: hidden;
    padding: var(--slide-padding-v) var(--slide-padding);
}


/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */

@media (max-height: 700px) {
    :root {
        --slide-padding: clamp(1rem, 3vw, 2.5rem);
        --content-gap: clamp(0.4rem, 1.5vw, 1rem);
        --title-size: clamp(1.5rem, 4vw, 2.5rem);
        --h2-size: clamp(1.1rem, 2.5vw, 1.7rem);
    }
}

@media (max-height: 600px) {
    :root {
        --slide-padding: clamp(0.75rem, 2.5vw, 1.5rem);
        --content-gap: clamp(0.3rem, 1vw, 0.75rem);
        --title-size: clamp(1.1rem, 3.5vw, 2rem);
        --body-size: clamp(0.7rem, 1.2vw, 0.9rem);
    }
    .nav-dots, .decorative, .back-btn { display: none; }
}

@media (max-height: 500px) {
    :root {
        --slide-padding: clamp(0.5rem, 2vw, 1rem);
        --title-size: clamp(1rem, 3vw, 1.5rem);
        --h2-size: clamp(0.9rem, 2vw, 1.2rem);
        --body-size: clamp(0.65rem, 1vw, 0.8rem);
    }
}

@media (max-width: 600px) {
    :root { --title-size: clamp(1.25rem, 7vw, 2.5rem); }
    .metric-grid-6, .metric-grid-4, .metric-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.2s !important;
    }
    html { scroll-behavior: auto; }
}


/* ===========================================
   TYPOGRAPHY
   =========================================== */

h1 {
    font-family: var(--font-display);
    font-size: var(--title-size);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

h2 {
    font-family: var(--font-display);
    font-size: var(--h2-size);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--font-display);
    font-size: var(--h3-size);
    font-weight: 600;
    line-height: 1.2;
}

p, li {
    font-size: var(--body-size);
    line-height: 1.5;
}


/* ===========================================
   SLIDE VARIANTS
   =========================================== */

.slide-white { background: var(--bd-white); }
.slide-light { background: var(--bd-light); }
.slide-dark { background: var(--bd-dark); color: var(--bd-white); }
.slide-blue { background: var(--bd-blue); color: var(--bd-white); }
.slide-gradient {
    background: linear-gradient(135deg, var(--bd-dark) 0%, var(--bd-dark-mid) 50%, #1A3A6B 100%);
    color: var(--bd-white);
}


/* ===========================================
   ANIMATIONS
   =========================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    filter: blur(4px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo),
                filter 0.8s var(--ease-out-expo);
}

.slide.visible .reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.reveal:nth-child(1) { transition-delay: 0.08s; }
.reveal:nth-child(2) { transition-delay: 0.18s; }
.reveal:nth-child(3) { transition-delay: 0.30s; }
.reveal:nth-child(4) { transition-delay: 0.42s; }
.reveal:nth-child(5) { transition-delay: 0.54s; }
.reveal:nth-child(6) { transition-delay: 0.66s; }
.reveal:nth-child(7) { transition-delay: 0.78s; }

/* --- Scale In (cinematic) --- */
.reveal-scale {
    opacity: 0;
    transform: scale(0.82);
    filter: blur(6px);
    transition: opacity 0.9s var(--ease-out-expo),
                transform 0.9s var(--ease-out-expo),
                filter 0.9s var(--ease-out-expo);
}
.slide.visible .reveal-scale { opacity: 1; transform: scale(1); filter: blur(0); }
.reveal-scale:nth-child(1) { transition-delay: 0.1s; }
.reveal-scale:nth-child(2) { transition-delay: 0.22s; }
.reveal-scale:nth-child(3) { transition-delay: 0.34s; }
.reveal-scale:nth-child(4) { transition-delay: 0.46s; }

/* --- Slide from Left --- */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(3px);
    transition: opacity 0.7s var(--ease-out-expo),
                transform 0.7s var(--ease-out-expo),
                filter 0.7s var(--ease-out-expo);
}
.slide.visible .reveal-left { opacity: 1; transform: translateX(0); filter: blur(0); }

/* --- Blur In (heavy, cinematic) --- */
.reveal-blur {
    opacity: 0;
    filter: blur(16px);
    transform: scale(1.05);
    transition: opacity 1.2s var(--ease-out-expo),
                filter 1.2s var(--ease-out-expo),
                transform 1.2s var(--ease-out-expo);
}
.slide.visible .reveal-blur { opacity: 1; filter: blur(0); transform: scale(1); }

/* --- Fade Only (slow, elegant) --- */
.reveal-fade {
    opacity: 0;
    transition: opacity 1.4s var(--ease-out-expo);
}
.slide.visible .reveal-fade { opacity: 1; }


/* ===========================================
   BACKGROUND EFFECTS
   =========================================== */

.gradient-mesh {
    position: relative;
}
.gradient-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 85%, rgba(0, 212, 170, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(74, 144, 226, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.gradient-mesh > * { position: relative; z-index: 1; }

.grid-pattern {
    position: relative;
}
.grid-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: clamp(30px, 4vw, 50px) clamp(30px, 4vw, 50px);
    pointer-events: none;
    z-index: 0;
}
.grid-pattern > * { position: relative; z-index: 1; }

/* Decorative floating orbs for cover/closing */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.orb-mint {
    background: var(--bd-mint);
    width: clamp(120px, 20vw, 280px);
    height: clamp(120px, 20vw, 280px);
}
.orb-blue {
    background: var(--bd-blue);
    width: clamp(100px, 18vw, 240px);
    height: clamp(100px, 18vw, 240px);
}

/* Animated orbs for cover/waiting slide */
.orb-float {
    animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb-float-delayed {
    animation: orbFloat2 15s ease-in-out infinite alternate;
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25%  { transform: translate(30px, -20px) scale(1.1); opacity: 0.4; }
    50%  { transform: translate(-20px, 15px) scale(0.95); opacity: 0.35; }
    75%  { transform: translate(15px, 25px) scale(1.05); opacity: 0.45; }
    100% { transform: translate(-25px, -10px) scale(1); opacity: 0.3; }
}

@keyframes orbFloat2 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.25; }
    33%  { transform: translate(-35px, 20px) scale(1.15); opacity: 0.4; }
    66%  { transform: translate(25px, -30px) scale(0.9); opacity: 0.3; }
    100% { transform: translate(10px, 15px) scale(1.05); opacity: 0.35; }
}

/* Slow gradient shift for cover background */
.cover-animated {
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 100% 25%; }
    50%  { background-position: 100% 75%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}


/* ===========================================
   SECTION LABELS
   =========================================== */

.section-label {
    display: inline-block;
    font-size: var(--small-size);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: clamp(3px, 0.4vh, 6px) clamp(8px, 1vw, 14px);
    border-radius: 4px;
    margin-bottom: clamp(0.5rem, 1vh, 1rem);
}

.label-blue { background: var(--bd-blue-light); color: var(--bd-blue-dark); }
.label-mint { background: var(--bd-mint-light); color: var(--bd-mint-dark); }
.label-dark { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.label-white { background: rgba(255,255,255,0.15); color: var(--bd-white); }

.accent-bar {
    width: clamp(40px, 5vw, 60px);
    height: 4px;
    border-radius: 2px;
    background: var(--bd-mint);
    margin-bottom: clamp(0.5rem, 1vh, 1rem);
}


/* ===========================================
   METRIC CARDS
   =========================================== */

.metric-grid { display: grid; gap: clamp(0.5rem, 1vw, 0.8rem); }
.metric-grid-6 { grid-template-columns: repeat(6, 1fr); }
.metric-grid-4 { grid-template-columns: repeat(4, 1fr); }
.metric-grid-3 { grid-template-columns: repeat(3, 1fr); }
.metric-grid-2 { grid-template-columns: repeat(2, 1fr); }

.metric-card {
    padding: clamp(0.6rem, 1.2vw, 1rem);
    border-radius: clamp(8px, 1vw, 12px);
    transition: transform 0.4s var(--ease-out-expo),
                box-shadow 0.4s ease,
                opacity 0.6s var(--ease-out-expo);
}

/* Cards fade in with stagger when parent has reveal */
.reveal-scale .metric-card,
.reveal .metric-card {
    opacity: 0;
    transform: translateY(10px);
}
.slide.visible .reveal-scale .metric-card,
.slide.visible .reveal .metric-card {
    opacity: 1;
    transform: translateY(0);
}
.metric-card:nth-child(1) { transition-delay: 0.1s; }
.metric-card:nth-child(2) { transition-delay: 0.2s; }
.metric-card:nth-child(3) { transition-delay: 0.3s; }
.metric-card:nth-child(4) { transition-delay: 0.4s; }
.metric-card:nth-child(5) { transition-delay: 0.5s; }
.metric-card:nth-child(6) { transition-delay: 0.6s; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card-glass:hover { box-shadow: 0 8px 24px rgba(255,255,255,0.06); }
.card-blue:hover { box-shadow: 0 8px 24px rgba(74, 144, 226, 0.35); }
.card-mint:hover { box-shadow: 0 8px 24px rgba(0, 212, 170, 0.35); }

.card-white { background: var(--bd-white); border: 1px solid var(--bd-border); }
.card-glass { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.card-blue { background: var(--bd-blue); color: var(--bd-white); }
.card-mint { background: var(--bd-mint); color: var(--bd-white); }

.metric-label {
    font-size: var(--small-size);
    font-weight: 500;
    margin-bottom: clamp(0.1rem, 0.3vh, 0.3rem);
    line-height: 1.3;
}
.card-white .metric-label { color: var(--bd-gray); }
.card-glass .metric-label { color: rgba(255,255,255,0.6); }

.metric-value {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
}

.metric-delta {
    font-size: clamp(0.55rem, 0.8vw, 0.7rem);
    font-weight: 600;
    margin-top: clamp(0.1rem, 0.2vh, 0.2rem);
}

.delta-up { color: var(--bd-green); }
.delta-down { color: var(--bd-red); }
.delta-neutral { color: var(--bd-gray); }
.card-glass .delta-up { color: #6EE7B7; }


/* ===========================================
   FUNNEL
   =========================================== */

.funnel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.3rem, 0.6vw, 0.5rem);
}

.funnel-step {
    text-align: center;
    padding: clamp(0.5rem, 1vw, 0.8rem);
    border-radius: clamp(6px, 0.8vw, 10px);
    position: relative;
}
.funnel-step::after {
    content: '→';
    position: absolute;
    right: calc(-1 * clamp(0.25rem, 0.4vw, 0.35rem));
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--body-size);
}
.funnel-step:last-child::after { display: none; }

.funnel-num {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 800;
}
.funnel-label { font-size: var(--small-size); font-weight: 600; margin-bottom: 0.15em; }
.funnel-detail { font-size: clamp(0.5rem, 0.7vw, 0.65rem); opacity: 0.7; }


/* ===========================================
   BAR CHARTS
   =========================================== */

.bar-chart {
    display: flex;
    gap: clamp(0.3rem, 0.6vw, 0.5rem);
    height: clamp(100px, 18vh, 180px);
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bar-col .bar-val {
    flex-shrink: 0;
}

.bar-col .bar-area {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.bar-col .bar-label,
.bar-col .bar-units {
    flex-shrink: 0;
}

.bar {
    width: 100%;
    border-radius: clamp(4px, 0.5vw, 6px) clamp(4px, 0.5vw, 6px) 0 0;
    transition: height 1s var(--ease-out-expo);
    min-height: 4px;
}

/* Bars animate from 0 when slide enters viewport */
.slide:not(.visible) .bar { height: 0 !important; }
.bar-col:nth-child(1) .bar { transition-delay: 0.1s; }
.bar-col:nth-child(2) .bar { transition-delay: 0.2s; }
.bar-col:nth-child(3) .bar { transition-delay: 0.3s; }
.bar-col:nth-child(4) .bar { transition-delay: 0.4s; }
.bar-col:nth-child(5) .bar { transition-delay: 0.5s; }

/* Bar values fade in after bars grow */
.slide:not(.visible) .bar-val { opacity: 0; }
.bar-val { transition: opacity 0.5s ease 0.6s; }

.bar-val {
    font-size: var(--small-size);
    font-weight: 700;
    margin-bottom: clamp(2px, 0.3vh, 4px);
}

.bar-label {
    font-size: clamp(0.5rem, 0.7vw, 0.65rem);
    margin-top: clamp(2px, 0.3vh, 4px);
    opacity: 0.6;
}

/* Growth indicators between bars */
.growth-badge {
    font-size: clamp(0.5rem, 0.75vw, 0.65rem);
    font-weight: 700;
    color: var(--bd-mint);
    background: rgba(0, 212, 170, 0.12);
    border: 1px solid rgba(0, 212, 170, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.bar-growth {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.45rem, 0.6vw, 0.55rem);
    font-weight: 700;
    color: var(--bd-mint);
    flex-shrink: 0;
    width: clamp(10px, 2vw, 20px);
    opacity: 0.7;
}

.bar-units {
    font-size: clamp(0.5rem, 0.7vw, 0.6rem);
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    margin-top: 1px;
    padding: 1px 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
}


/* ===========================================
   DATA TABLE
   =========================================== */

.data-table { width: 100%; border-collapse: collapse; font-size: var(--small-size); }
.data-table th { text-align: left; font-weight: 600; padding: clamp(4px, 0.5vh, 8px) clamp(6px, 0.8vw, 12px); border-bottom: 2px solid var(--bd-border); }
.data-table td { padding: clamp(4px, 0.5vh, 8px) clamp(6px, 0.8vw, 12px); border-bottom: 1px solid var(--bd-border); }
.data-table .number { text-align: right; font-family: var(--font-display); font-weight: 600; }
.slide-dark .data-table th { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); }
.slide-dark .data-table td { border-color: rgba(255,255,255,0.08); }


/* ===========================================
   NOTES / CALLOUTS
   =========================================== */

.note {
    font-size: var(--small-size);
    padding: clamp(0.4rem, 0.8vw, 0.7rem);
    border-radius: clamp(4px, 0.5vw, 8px);
    line-height: 1.5;
}
.note-blue { background: var(--bd-blue-light); color: var(--bd-blue-dark); border-left: 3px solid var(--bd-blue); }
.note-glass { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); border-left: 3px solid rgba(255,255,255,0.2); }


/* ===========================================
   TIMELINE
   =========================================== */

.timeline {
    display: flex;
    gap: clamp(0.3rem, 0.6vw, 0.5rem);
    align-items: stretch;
}

.timeline-item {
    flex: 1;
    padding: clamp(0.5rem, 1vw, 0.8rem);
    border-radius: clamp(6px, 0.8vw, 10px);
    border-top: 3px solid var(--bd-blue);
}

.timeline-quarter {
    font-size: var(--small-size);
    font-weight: 700;
    color: var(--bd-blue);
    margin-bottom: 0.3em;
}

.timeline-text {
    font-size: clamp(0.6rem, 0.8vw, 0.72rem);
    line-height: 1.4;
}


/* ===========================================
   RISK BAR
   =========================================== */

.risk-bar { display: flex; height: clamp(22px, 3vh, 32px); border-radius: 6px; overflow: hidden; }
.risk-seg { display: flex; align-items: center; justify-content: center; font-size: clamp(0.5rem, 0.7vw, 0.65rem); font-weight: 700; color: #fff; }
.risk-legend { display: flex; gap: clamp(0.5rem, 1vw, 1rem); margin-top: clamp(0.3rem, 0.5vh, 0.5rem); flex-wrap: wrap; }
.risk-legend-item { display: flex; align-items: center; gap: 4px; font-size: clamp(0.5rem, 0.7vw, 0.65rem); }
.risk-dot { width: 8px; height: 8px; border-radius: 2px; }


/* ===========================================
   FOOTER / BRAND
   =========================================== */

.slide-footer {
    position: absolute;
    bottom: clamp(6px, 1vh, 14px);
    left: var(--slide-padding);
    right: var(--slide-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--small-size);
    opacity: 0.4;
}

.slide-dark .slide-footer,
.slide-gradient .slide-footer,
.slide-blue .slide-footer {
    color: var(--bd-white);
}

.logo-footer {
    height: clamp(36px, 5vh, 60px);
    width: auto;
    opacity: 0.7;
}
.logo-hero {
    height: clamp(30px, 5vh, 60px);
    width: auto;
    margin-bottom: clamp(0.5rem, 1vh, 1rem);
    filter: drop-shadow(0 0 20px rgba(0, 212, 170, 0.35));
}

/* Bouncing DVD-style logo */
.bouncing-logo {
    position: absolute;
    width: clamp(80px, 12vw, 160px);
    height: auto;
    z-index: 2;
    opacity: 0.15;
    filter: drop-shadow(0 0 30px rgba(0, 212, 170, 0.45));
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Cinematic title glow on gradient slides */
.slide-gradient h1 {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}
.slide-gradient .metric-value {
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.25);
}

.bcorp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(0.55rem, 0.7vw, 0.7rem);
    border: 1.5px solid currentColor;
    border-radius: 50%;
    width: clamp(22px, 2.5vh, 30px);
    height: clamp(22px, 2.5vh, 30px);
}


/* ===========================================
   NAVIGATION UI
   =========================================== */

.back-btn {
    position: fixed; top: clamp(8px, 1vh, 16px);
    left: clamp(12px, 2vw, 24px);
    font-size: var(--small-size);
    font-weight: 600; z-index: 9999;
    font-family: var(--font-display);
    color: rgba(128,128,128,0.6);
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    padding: 3px 12px;
    border-radius: 12px;
    border: 1px solid rgba(128,128,128,0.15);
    text-decoration: none;
    transition: all 0.3s ease;
}
.back-btn:hover {
    color: var(--bd-mint);
    background: rgba(0,0,0,0.35);
    border-color: rgba(0,212,170,0.35);
}

.progress-bar {
    position: fixed; top: 0; left: 0;
    height: 3px; background: var(--bd-blue);
    z-index: 9999; transition: width 0.3s ease; width: 0%;
}

.nav-dots {
    position: fixed; right: clamp(10px, 1.5vw, 20px);
    top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column;
    gap: clamp(5px, 0.6vh, 8px); z-index: 9998;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
    padding: clamp(4px, 0.5vh, 8px) clamp(3px, 0.4vw, 6px);
    border-radius: 20px;
    border: 1px solid rgba(128,128,128,0.1);
}

.nav-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(128,128,128,0.4); cursor: pointer;
    transition: all 0.3s ease; border: 1px solid rgba(128,128,128,0.2); padding: 0;
    backdrop-filter: blur(4px);
}
.nav-dot:hover { background: rgba(128,128,128,0.6); }
.nav-dot.active { background: var(--bd-mint); border-color: var(--bd-mint); transform: scale(1.5); box-shadow: 0 0 6px rgba(0,212,170,0.45); }

.slide-counter {
    position: fixed; bottom: clamp(8px, 1vh, 16px);
    right: clamp(12px, 2vw, 24px);
    font-size: var(--small-size);
    font-weight: 600; z-index: 9998;
    font-family: var(--font-display);
    color: rgba(128,128,128,0.6);
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(128,128,128,0.15);
}




/* ===========================================
   SPEAKER AVATARS
   =========================================== */

.avatar {
    width: clamp(80px, 12vw, 140px);
    height: clamp(80px, 12vw, 140px);
    border-radius: clamp(12px, 1.5vw, 20px);
    margin: 0 auto clamp(0.5rem, 1vh, 1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: white;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}
.avatar:hover { transform: scale(1.05); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.avatar-blue { background: linear-gradient(135deg, var(--bd-blue) 0%, var(--bd-blue-dark) 100%); }
.avatar-mint { background: linear-gradient(135deg, var(--bd-mint) 0%, var(--bd-mint-dark) 100%); }
.avatar-photo { background: var(--bd-border); overflow: hidden; }


/* ===========================================
   SPEAKER SLIDE — Full photo + blurred bg
   =========================================== */

.speaker-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.3);
    transform: scale(1.1); /* prevent blur white edges */
    z-index: 0;
}

.speaker-photo-wrap {
    max-width: min(70vw, 550px);
    border-radius: clamp(8px, 1.2vw, 16px);
    overflow: hidden;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(74, 144, 226, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Vignette overlay on the photo */
.speaker-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.speaker-photo {
    width: 100%;
    max-height: min(50vh, 380px);
    object-fit: cover;
    display: block;
    transition: transform 1s var(--ease-out-expo),
                filter 1s var(--ease-out-expo);
}

.slide:not(.visible) .speaker-photo {
    transform: scale(1.1);
    filter: brightness(0.5) blur(3px);
}

.speaker-photo-wrap:hover .speaker-photo {
    transform: scale(1.03);
}

/* Photo support — when images are added later */
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}


/* ===========================================
   ANIMATED COUNTER (for metric values)
   =========================================== */

.counter-animate {
    display: inline-block;
}

/* ===========================================
   STRATEGY ITEMS (slide 6)
   =========================================== */

.strat-item {
    display: flex;
    gap: clamp(0.5rem, 1vw, 0.8rem);
    align-items: flex-start;
    padding: clamp(0.4rem, 0.7vw, 0.6rem);
    border-radius: clamp(6px, 0.8vw, 10px);
    transition: background 0.3s ease, transform 0.3s var(--ease-out-expo);
}
.strat-item:hover {
    background: var(--bd-light);
    transform: translateX(4px);
}

.strat-icon {
    min-width: clamp(28px, 3.5vw, 38px);
    height: clamp(28px, 3.5vw, 38px);
    border-radius: clamp(6px, 0.8vw, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.8rem, 1.2vw, 1.1rem);
    font-weight: 800;
    flex-shrink: 0;
}


/* ===========================================
   PIPELINE BARS (slide 7)
   =========================================== */

.pipeline-bar {
    display: flex;
    border-radius: clamp(4px, 0.5vw, 8px);
    overflow: hidden;
    gap: 2px;
}
.pipe-seg {
    border-radius: clamp(2px, 0.3vw, 4px);
    transition: flex 1s var(--ease-out-expo);
}
.slide:not(.visible) .pipe-seg {
    flex: 0 !important;
}

/* Pipeline panels — background card behind each chart */
.pipeline-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: clamp(8px, 1vw, 14px);
    padding: clamp(0.6rem, 1.2vw, 1.2rem);
}
.pipeline-panel-highlight {
    background: rgba(0, 212, 170, 0.06);
    border-color: rgba(0, 212, 170, 0.15);
}

/* Individual bar wrappers with tooltip */
.pipe-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    cursor: pointer;
    transition: filter 0.2s ease;
}
.pipe-bar-wrap:hover {
    filter: brightness(1.3);
    z-index: 20;
}

/* Tooltip on hover */
.pipe-bar-wrap::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: clamp(0.5rem, 0.75vw, 0.7rem);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}
.pipe-bar-wrap:hover::after {
    opacity: 1;
}

.pipe-seg-v {
    transition: flex 1s var(--ease-out-expo);
}
.slide:not(.visible) .pipe-seg-v {
    flex: 0 !important;
}

/* Bars grow from 0 height with stagger */
.pipe-bar-wrap {
    transition: height 1s var(--ease-out-expo);
}
.slide:not(.visible) .pipe-bar-wrap {
    height: 0 !important;
}
.pipe-bar-wrap:nth-child(1) { transition-delay: 0.15s; }
.pipe-bar-wrap:nth-child(2) { transition-delay: 0.3s; }
.pipe-bar-wrap:nth-child(3) { transition-delay: 0.45s; }
.pipe-bar-wrap:nth-child(4) { transition-delay: 0.6s; }
.pipe-bar-wrap:nth-child(6) { transition-delay: 0.8s; } /* total bar */

/* Second panel (2026) starts slightly later */
.pipeline-panel-highlight .pipe-bar-wrap:nth-child(1) { transition-delay: 0.4s; }
.pipeline-panel-highlight .pipe-bar-wrap:nth-child(2) { transition-delay: 0.55s; }
.pipeline-panel-highlight .pipe-bar-wrap:nth-child(3) { transition-delay: 0.7s; }
.pipeline-panel-highlight .pipe-bar-wrap:nth-child(4) { transition-delay: 0.85s; }
.pipeline-panel-highlight .pipe-bar-wrap:nth-child(6) { transition-delay: 1.05s; }

/* Panels fade + scale in */
.pipeline-panel {
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.slide:not(.visible) .pipeline-panel {
    opacity: 0;
    transform: scale(0.95);
}
.pipeline-panel-highlight {
    transition-delay: 0.2s;
}


/* ===========================================
   CAROUSEL (Apple-style horizontal slider)
   =========================================== */

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s var(--ease-out-expo);
}

.carousel-panel {
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.carousel-panel .slide-content {
    justify-content: center;
    width: 100%;
    max-height: 100%;
}

/* Carousel panels use same reveal animations as slides */
.carousel-panel .reveal,
.carousel-panel .reveal-left,
.carousel-panel .reveal-scale {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    filter: blur(4px);
}
.carousel-panel.panel-visible .reveal,
.carousel-panel.panel-visible .reveal-left,
.carousel-panel.panel-visible .reveal-scale {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Elements without reveal class also animate in carousel panels */
.carousel-panel .section-label,
.carousel-panel h2,
.carousel-panel > .slide-content > p {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(3px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo),
                filter 0.8s var(--ease-out-expo);
}
.carousel-panel.panel-visible .section-label {
    opacity: 1; transform: translateX(0) translateY(0); filter: blur(0);
    transition-delay: 0.05s;
}
.carousel-panel.panel-visible h2 {
    opacity: 1; transform: translateY(0); filter: blur(0);
    transition-delay: 0.12s;
}
.carousel-panel.panel-visible > .slide-content > p {
    opacity: 1; transform: translateY(0); filter: blur(0);
    transition-delay: 0.2s;
}

/* Charts and grids stagger */
.carousel-panel .pipeline-panel,
.carousel-panel .metric-grid {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    filter: blur(2px);
    transition: opacity 0.7s var(--ease-out-expo),
                transform 0.7s var(--ease-out-expo),
                filter 0.7s var(--ease-out-expo);
}
.carousel-panel.panel-visible .pipeline-panel:first-child,
.carousel-panel.panel-visible .metric-grid:first-of-type {
    opacity: 1; transform: translateY(0) scale(1); filter: blur(0);
    transition-delay: 0.3s;
}
.carousel-panel.panel-visible .pipeline-panel:last-child {
    opacity: 1; transform: translateY(0) scale(1); filter: blur(0);
    transition-delay: 0.45s;
}
.carousel-panel.panel-visible .metric-grid:last-of-type {
    opacity: 1; transform: translateY(0) scale(1); filter: blur(0);
    transition-delay: 0.55s;
}

/* Bars animate in carousel too */
.carousel-panel:not(.panel-visible) .bar { height: 0 !important; }
.carousel-panel:not(.panel-visible) .bar-val { opacity: 0; }

/* Tooltip-only version for bar-cols (no height animation conflict) */
.bar-tooltip {
    position: relative;
    cursor: pointer;
}
.bar-tooltip:hover { filter: brightness(1.3); }
.bar-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: clamp(0.5rem, 0.75vw, 0.7rem);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}
.bar-tooltip:hover::after { opacity: 1; }

/* Navigation dots/labels */
.carousel-nav {
    position: absolute;
    bottom: clamp(28px, 4vh, 48px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(4px, 0.6vw, 8px);
    z-index: 10;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 3px;
}

.carousel-dot {
    background: rgba(255,255,255,0.15);
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: clamp(0.55rem, 0.8vw, 0.7rem);
    font-weight: 600;
    padding: clamp(4px, 0.5vh, 6px) clamp(10px, 1.2vw, 16px);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.carousel-dot:hover {
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}

.carousel-dot.active {
    background: var(--bd-blue);
    color: white;
}

/* Arrow buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    width: clamp(32px, 4vw, 44px);
    height: clamp(32px, 4vw, 44px);
    border-radius: 50%;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    line-height: 1;
}

.carousel-arrow:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: rgba(255,255,255,0.25);
}

.carousel-arrow-left { left: clamp(8px, 1.5vw, 16px); }
.carousel-arrow-right { right: clamp(8px, 1.5vw, 16px); }

.carousel-arrow:disabled {
    opacity: 0.2;
    cursor: default;
}


/* Subtle pulse on the mint highlight bars */
@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}
.bar-highlight {
    animation: subtle-pulse 2.5s ease-in-out infinite;
    animation-delay: 1.2s;
}

/* ══════════════════════════════════════════════
   Dot Grid Background
   ══════════════════════════════════════════════ */
.dot-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 30), 1fr);
    grid-template-rows: repeat(var(--grid-rows, 16), 1fr);
    padding: 20px;
    gap: 0;
}
.dot-grid .g-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.08);
    margin: auto;
    transition: background 0.6s, box-shadow 0.6s, transform 0.6s;
}
.dot-grid .g-dot.dot-lit {
    background: rgba(52, 211, 153, 0.35);
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.25);
    transform: scale(1.5);
}

/* ══════════════════════════════════════════════
   AI Tech Showcase — Agent cards
   ══════════════════════════════════════════════ */

/* Agent cards — slide in from left, staggered */
.agent-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: clamp(0.5rem, 0.9vw, 0.9rem);
    opacity: 0;
    transform: translateX(-40px);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.tech-active .agent-card {
    animation: agent-slide-in 0.6s ease-out forwards;
}
.tech-active .agent-card:nth-child(1) { animation-delay: 0.2s; }
.tech-active .agent-card:nth-child(2) { animation-delay: 0.5s; }
.tech-active .agent-card:nth-child(3) { animation-delay: 0.8s; }
.tech-active .agent-card:nth-child(4) { animation-delay: 1.1s; }
@keyframes agent-slide-in {
    0%   { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}
/* Glow border sweep after entry */
.tech-active .agent-card:nth-child(1) { animation: agent-slide-in 0.6s ease-out 0.2s forwards, agent-glow-green 3s ease-in-out 1.5s infinite; }
.tech-active .agent-card:nth-child(2) { animation: agent-slide-in 0.6s ease-out 0.5s forwards, agent-glow-green 3s ease-in-out 2s infinite; }
.tech-active .agent-card:nth-child(3) { animation: agent-slide-in 0.6s ease-out 0.8s forwards, agent-glow-gray 3s ease-in-out 2.5s infinite; }
.tech-active .agent-card:nth-child(4) { animation: agent-slide-in 0.6s ease-out 1.1s forwards, agent-glow-amber 3s ease-in-out 3s infinite; }
@keyframes agent-glow-green {
    0%, 100% { border-color: rgba(255,255,255,0.08); box-shadow: none; }
    50% { border-color: rgba(52,211,153,0.25); box-shadow: 0 0 15px rgba(52,211,153,0.08); }
}
@keyframes agent-glow-amber {
    0%, 100% { border-color: rgba(255,255,255,0.08); box-shadow: none; }
    50% { border-color: rgba(245,158,11,0.25); box-shadow: 0 0 15px rgba(245,158,11,0.08); }
}
@keyframes agent-glow-gray {
    0%, 100% { border-color: rgba(255,255,255,0.08); box-shadow: none; }
    50% { border-color: rgba(107,114,128,0.2); box-shadow: 0 0 10px rgba(107,114,128,0.05); }
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(0.2rem, 0.4vh, 0.4rem);
}
.agent-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-live {
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}
.tech-active .status-live { animation: status-pulse 2s ease-in-out infinite; }
.status-beta {
    background: #F59E0B;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}
.tech-active .status-beta { animation: status-pulse-amber 2s ease-in-out infinite; }
.status-planned {
    background: #6B7280;
    box-shadow: 0 0 4px rgba(107, 114, 128, 0.3);
}
.tech-active .status-planned { animation: status-pulse-gray 3s ease-in-out infinite; }
@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(52,211,153,0.4); transform: scale(1); }
    50% { box-shadow: 0 0 12px rgba(52,211,153,0.9); transform: scale(1.3); }
}
@keyframes status-pulse-amber {
    0%, 100% { box-shadow: 0 0 4px rgba(245,158,11,0.3); transform: scale(1); }
    50% { box-shadow: 0 0 12px rgba(245,158,11,0.7); transform: scale(1.3); }
}
@keyframes status-pulse-gray {
    0%, 100% { box-shadow: 0 0 3px rgba(107,114,128,0.2); }
    50% { box-shadow: 0 0 8px rgba(107,114,128,0.4); }
}
.agent-name {
    font-size: var(--small-size);
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}
.agent-badge {
    font-size: clamp(0.45rem, 0.6vw, 0.55rem);
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin-left: auto;
}
.badge-live {
    background: rgba(52,211,153,0.15);
    color: #34d399;
}
.badge-beta {
    background: rgba(245,158,11,0.15);
    color: #F59E0B;
}
.badge-planned {
    background: rgba(107,114,128,0.15);
    color: #9CA3AF;
}
.agent-desc {
    font-size: clamp(0.5rem, 0.7vw, 0.65rem);
    color: rgba(255,255,255,0.4);
    line-height: 1.4;
    margin-bottom: clamp(0.3rem, 0.5vh, 0.5rem);
}
.agent-metrics {
    display: flex;
    gap: clamp(0.5rem, 1vw, 1rem);
}
.agent-metric {
    display: flex;
    flex-direction: column;
}
.agent-metric-val {
    font-size: var(--small-size);
    font-weight: 700;
    color: var(--bd-mint);
}
.agent-metric-lbl {
    font-size: clamp(0.45rem, 0.6vw, 0.55rem);
    color: rgba(255,255,255,0.35);
}

/* Terminal */
.tech-terminal {
    background: #0a0e14;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
    position: relative;
}
/* Scanline effect */
.tech-terminal::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(52,211,153,0.15), transparent);
    opacity: 0;
}
.tech-active .tech-terminal::after {
    animation: scanline 3s linear 1s infinite;
}
@keyframes scanline {
    0%   { top: 0; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.terminal-header {
    background: rgba(255,255,255,0.04);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dots {
    display: flex;
    gap: 5px;
}
.tdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.tdot-r { background: #ff5f57; }
.tdot-y { background: #febc2e; }
.tdot-g { background: #28c840; }
.terminal-title {
    font-size: clamp(0.45rem, 0.6vw, 0.55rem);
    color: rgba(255,255,255,0.3);
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.terminal-body {
    padding: clamp(0.4rem, 0.7vw, 0.7rem);
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: clamp(0.45rem, 0.65vw, 0.6rem);
    line-height: 1.7;
    max-height: clamp(120px, 18vh, 200px);
    overflow: hidden;
}
/* Terminal lines — hidden until tech-active */
.term-line {
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
}
.tech-active .term-line {
    animation: term-line-in 0.3s ease-out forwards;
}
.tech-active .term-line:nth-child(1) { animation-delay: 0.3s; }
.tech-active .term-line:nth-child(2) { animation-delay: 0.8s; }
.tech-active .term-line:nth-child(3) { animation-delay: 1.4s; }
.tech-active .term-line:nth-child(4) { animation-delay: 1.9s; }
.tech-active .term-line:nth-child(5) { animation-delay: 2.6s; }
.tech-active .term-line:nth-child(6) { animation-delay: 3.2s; }
.tech-active .term-line:nth-child(7) { animation-delay: 3.8s; }
.tech-active .term-line:nth-child(8) { animation-delay: 4.4s; }
@keyframes term-line-in {
    0%   { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}
.term-time {
    color: rgba(255,255,255,0.2);
}
.term-agent {
    font-weight: 600;
    padding: 0 4px;
    border-radius: 2px;
}
.term-green { color: #34d399; background: rgba(52,211,153,0.1); }
.term-blue { color: #60A5FA; background: rgba(96,165,250,0.1); }
.term-amber { color: #F59E0B; background: rgba(245,158,11,0.1); }
.term-hl { color: #fff; font-weight: 700; }
.term-warn { color: #F59E0B; }
.cursor-blink {
    color: var(--bd-mint);
    opacity: 0;
}
.tech-active .cursor-blink {
    animation: blink-cursor 1s step-end 4.6s infinite;
}
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Dev velocity stats — pop in */
.dev-stat {
    padding: clamp(0.3rem, 0.5vw, 0.5rem);
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    opacity: 0;
    transform: scale(0.8);
}
.tech-active .dev-stat {
    animation: dev-stat-pop 0.4s ease-out forwards;
}
.tech-active .dev-stat:nth-child(1) { animation-delay: 1.0s; }
.tech-active .dev-stat:nth-child(2) { animation-delay: 1.2s; }
.tech-active .dev-stat:nth-child(3) { animation-delay: 1.4s; }
.tech-active .dev-stat:nth-child(4) { animation-delay: 1.6s; }
@keyframes dev-stat-pop {
    0%   { opacity: 0; transform: scale(0.8); }
    60%  { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}
.dev-stat-val {
    font-size: var(--small-size);
    font-weight: 700;
    color: #fff;
}
.dev-stat-lbl {
    font-size: clamp(0.45rem, 0.6vw, 0.55rem);
    color: rgba(255,255,255,0.35);
}

/* Tech stack pills — cascade in */
.tech-pill {
    font-size: clamp(0.45rem, 0.6vw, 0.55rem);
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
}
.tech-active .tech-pill {
    animation: pill-in 0.3s ease-out forwards;
}
.tech-active .tech-pill:nth-child(1) { animation-delay: 1.8s; }
.tech-active .tech-pill:nth-child(2) { animation-delay: 1.9s; }
.tech-active .tech-pill:nth-child(3) { animation-delay: 2.0s; }
.tech-active .tech-pill:nth-child(4) { animation-delay: 2.1s; }
.tech-active .tech-pill:nth-child(5) { animation-delay: 2.2s; }
.tech-active .tech-pill:nth-child(6) { animation-delay: 2.3s; }
.tech-active .tech-pill:nth-child(7) { animation-delay: 2.4s; }
.tech-active .tech-pill:nth-child(8) { animation-delay: 2.5s; }
@keyframes pill-in {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   2D CSS Robot (emoji style)
   ══════════════════════════════════════════════ */
.css-robot {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%) translateX(250px);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}
.css-robot.robot-active {
    animation: robot-slide-in 1.8s ease-out forwards;
}
@keyframes robot-slide-in {
    0%   { transform: translateY(-50%) translateX(250px); }
    65%  { transform: translateY(-50%) translateX(0px); }
    75%  { transform: translateY(-50%) translateX(6px); }
    100% { transform: translateY(-50%) translateX(0px); }
}

.robot-simple {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}
.robot-active .robot-simple {
    animation: robot-idle 3s ease-in-out 2s infinite;
}
@keyframes robot-idle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.robot-pointer {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1;
    opacity: 0;
    transform: translateX(10px);
}
.robot-active .robot-pointer {
    animation: pointer-appear 0.5s ease-out 1.8s forwards, pointer-bounce 2s ease-in-out 2.5s infinite;
}
@keyframes pointer-appear {
    0%   { opacity: 0; transform: translateX(10px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes pointer-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}
