/* ============================================================
   SECTION 5 — Bento Grid: Living Portraits
   ============================================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.bento-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.bento-grid.js-animated .bento-card {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}
.bento-grid.js-animated .bento-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.bento-card:hover {
    transform: translateY(-3px);
}
.bento-lg {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}
.bento-visual {
    padding: 20px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bento-content .persona-icon { margin-bottom: var(--space-xs); }
.bento-content {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}
.bento-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 8px 0 4px;
    color: var(--text-primary);
}
.bento-content p {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.4;
}
.persona-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(184,151,46,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.persona-icon svg { stroke: var(--accent); }

/* YouTube Dashboard */
.bento-yt-dashboard { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.byt-channel { display: flex; align-items: center; gap: 8px; }
.byt-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #0c0c0c; }
.byt-channel-info { flex: 1; display: flex; flex-direction: column; }
.byt-channel-name { font-size: 0.75rem; font-weight: 600; color: var(--text-primary); }
.byt-subs { font-size: 0.6rem; color: var(--text-tertiary); }
.byt-sub-count { font-variant-numeric: tabular-nums; }
.byt-sub-btn { padding: 3px 10px; border-radius: 100px; background: rgba(255,255,255,0.1); font-size: 0.6rem; color: var(--text-secondary); transition: all 0.5s ease; cursor: default; }
.byt-sub-btn.subscribed { background: var(--accent); color: #0c0c0c; }

.byt-uploads { display: flex; gap: 8px; }
.byt-upload-card { flex: 1; border-radius: 6px; overflow: hidden; opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.byt-upload-card.cascaded { opacity: 1; transform: translateY(0); }
.bu-1 { transition-delay: 0s; }
.bu-2 { transition-delay: 0.15s; }
.bu-3 { transition-delay: 0.3s; }
.bu-thumb { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative; border-radius: 4px; overflow: hidden; background-color: #1a1a1a; }
.bu-dur { position: absolute; bottom: 2px; right: 3px; background: rgba(0,0,0,0.7); padding: 1px 4px; border-radius: 2px; font-size: 0.5rem; color: white; }
.bu-meta { padding: 3px 0; }
.bu-title { display: block; font-size: 0.58rem; font-weight: 500; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bu-views { font-size: 0.52rem; color: var(--text-tertiary); }
.byc-count { font-variant-numeric: tabular-nums; }

.byt-growth-row { display: flex; align-items: flex-end; gap: 10px; margin-top: 2px; padding-top: 6px; border-top: 1px solid var(--border); }
.byt-sparkline { flex: 1; height: 24px; }
.byt-spark-line { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 2s ease; }
.byt-spark-line.drawn { stroke-dashoffset: 0; }
.byt-growth-badge { display: flex; align-items: center; gap: 3px; font-size: 0.62rem; color: #50C878; font-weight: 600; flex-shrink: 0; }
.byt-growth-arrow { font-size: 0.7rem; }

/* Agency Dashboard */
.bento-agency-dash { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.bad-header { display: flex; justify-content: space-between; align-items: center; }
.bad-title { font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.bad-live { display: flex; align-items: center; gap: 4px; font-size: 0.6rem; color: #50C878; }
.bad-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #50C878; animation: live-pulse 2s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.bad-clients { display: flex; flex-direction: column; gap: 8px; }
.bad-client-row { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; opacity: 0; transform: translateX(-20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.bad-client-row.slid { opacity: 1; transform: translateX(0); }
.bcr-1 { transition-delay: 0s; }
.bcr-2 { transition-delay: 0.2s; }
.bcr-3 { transition-delay: 0.4s; }
.bad-client-avatar { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; font-weight: 700; color: #0c0c0c; flex-shrink: 0; }
.bad-client-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bad-client-name { font-size: 0.65rem; color: var(--text-secondary); }
.bcr-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.bcr-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #D4882A); border-radius: 2px; transition: width 1s ease; }
.bad-client-count { font-size: 0.6rem; color: var(--text-tertiary); white-space: nowrap; }
.bad-status { font-size: 0.52rem; padding: 2px 6px; border-radius: 100px; font-weight: 500; white-space: nowrap; }
.bad-status.done { background: rgba(80,200,120,0.1); color: #50C878; }
.bad-status.active { background: rgba(184,151,46,0.1); color: var(--accent); }

.bad-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; border-top: 1px solid var(--border); }
.bad-total { font-size: 0.7rem; color: var(--text-tertiary); }
.bento-total-num { font-weight: 700; color: var(--accent); }
.bad-revenue { font-size: 0.65rem; color: #50C878; font-weight: 600; opacity: 0; transition: opacity 0.6s ease 1s; }
.bad-revenue.revealed { opacity: 1; }

/* Small card mini-scenes */
.bento-mini-scene { padding: 20px; min-height: 80px; display: flex; align-items: center; justify-content: center; }
.bento-sm h3 { font-size: 0.88rem; font-weight: 600; padding: 0 16px; margin: 0; color: var(--text-primary); }
.bento-sm p { font-size: 0.72rem; color: var(--text-tertiary); padding: 4px 16px 16px; margin: 0; }

/* Marketing — Platform broadcast */
.bms-marketing { position: relative; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; }
.bms-platform-fan { position: relative; width: 60px; height: 60px; }
.bms-pcard { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; opacity: 0; transition: all 0.6s cubic-bezier(0.25,0.1,0.25,1); }
.bms-p1 { top: 50%; left: 50%; transform: translate(-50%,-50%); }
.bms-p2 { top: 50%; left: 50%; transform: translate(-50%,-50%); }
.bms-p3 { top: 50%; left: 50%; transform: translate(-50%,-50%); }
.bms-pcard.fanned { opacity: 1; }
.bms-p1.fanned { top: 0; left: 50%; transform: translate(-50%, 0); }
.bms-p2.fanned { bottom: 0; top: auto; left: 0; transform: none; }
.bms-p3.fanned { bottom: 0; top: auto; right: 0; left: auto; transform: none; }
.bms-broadcast-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; }
.bms-broadcast-ring.pulsing { animation: broadcast-out 1.5s ease-out infinite; }
@keyframes broadcast-out { 0% { width: 10px; height: 10px; opacity: 0.8; } 100% { width: 70px; height: 70px; opacity: 0; } }

/* ── Educator LARGE card — PDF to Cinematic Video Pipeline ── */
.bento-edu-pipeline {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

/* Upload zone */
.bed-upload-zone {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.bed-upload-items {
    display: flex;
    gap: 8px;
}
.bed-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.bed-item.visible { opacity: 1; transform: translateY(0); }
.bed-pdf { transition-delay: 0s; }
.bed-photo { transition-delay: 0.2s; }
.bed-photo2 { transition-delay: 0.4s; }
.bed-item-label {
    font-size: 0.5rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bed-upload-text {
    font-size: 0.55rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.4s ease 0.6s;
}
.bed-upload-zone.active .bed-upload-text { opacity: 1; }

/* Processing zone */
.bed-process {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.bed-helion-orb {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bed-orb-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    transition: border-color 0.4s ease;
}
.bed-process.active .bed-orb-ring {
    border-color: rgba(184,151,46,0.4);
    animation: bed-spin 2s linear infinite;
}
@keyframes bed-spin { to { transform: rotate(360deg); } }
.bed-stages {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bed-stage {
    font-size: 0.5rem;
    color: var(--text-tertiary);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
}
.bed-stage.active { opacity: 1; color: var(--accent); font-weight: 600; }
.bed-stage.done { opacity: 0.5; color: var(--text-tertiary); }

/* Output zone */
.bed-output {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.bed-output.visible {
    opacity: 1;
    transform: translateX(0);
}
.bed-video-player {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.bed-player-thumb {
    width: 44px;
    height: 30px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    justify-content: center;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}
.bed-player-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.bed-player-title { font-size: 0.58rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bed-player-meta { font-size: 0.48rem; color: var(--text-tertiary); }
.bed-output-badge {
    font-size: 0.52rem;
    color: #50C878;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}
.bed-output.visible .bed-output-badge { opacity: 1; }

/* ── Agency SMALL card (mini version) ── */
.bms-agency-mini {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 80%;
}
.bam-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.bam-row.slid { opacity: 1; transform: translateX(0); }
.bam-1 { transition-delay: 0s; }
.bam-2 { transition-delay: 0.15s; }
.bam-3 { transition-delay: 0.3s; }
.bam-dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.45rem; font-weight: 700; color: #0c0c0c;
    flex-shrink: 0;
}
.bam-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}
.bam-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #D4882A);
    border-radius: 2px;
    transition: width 0.8s ease;
}
.bam-ct { color: var(--text-tertiary); font-size: 0.5rem; }

/* Old educator small card — keep for backwards compat */
.bms-educator { display: flex; align-items: center; gap: 8px; }
.bms-book { width: 28px; height: 32px; background: rgba(255,255,255,0.08); border: 1px solid var(--border); border-radius: 2px 4px 4px 2px; position: relative; display: flex; flex-direction: column; padding: 4px; gap: 2px; }
.bms-book-page { height: 3px; background: rgba(255,255,255,0.15); border-radius: 1px; }
.bms-transform-arrow { opacity: 0; transform: translateX(-4px); transition: all 0.6s ease; }
.bms-transform-arrow.visible { opacity: 1; transform: translateX(0); }
.bms-video-frame { width: 36px; height: 26px; border-radius: 4px; border: 1.5px solid var(--accent); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.7); transition: all 0.5s ease; }
.bms-video-frame.visible { opacity: 1; transform: scale(1); }

/* Course — Module completion */
.bms-course { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.bms-module { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: rgba(255,255,255,0.04); border-radius: 4px; font-size: 0.6rem; color: var(--text-tertiary); position: relative; overflow: hidden; }
.bms-mod-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: rgba(184,151,46,0.1); transition: width 0.8s ease; border-radius: 4px; }
.bms-mod-fill.filled { width: 100%; }
.bms-check { opacity: 0; margin-left: auto; transition: opacity 0.3s ease; flex-shrink: 0; }
.bms-check.checked { opacity: 1; }
.bms-module span { position: relative; z-index: 1; }

/* Business — Org training */
.bms-business { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.bms-org-row { display: flex; justify-content: center; gap: 12px; }
.bms-org-node { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1.5px solid var(--border); transition: all 0.5s ease; }
.bms-org-node.trained { background: rgba(184,151,46,0.2); border-color: var(--accent); box-shadow: 0 0 8px rgba(184,151,46,0.3); }
.bms-org-line { width: 1px; height: 8px; background: var(--border); }
.bms-org-bottom-row { gap: 8px; }
.bms-train-badge { font-size: 0.6rem; color: var(--accent); font-weight: 600; margin-top: 4px; opacity: 0; transition: opacity 0.5s ease; }
.bms-train-badge.revealed { opacity: 1; }
.bms-train-count { font-variant-numeric: tabular-nums; }

/* ============================================================
   BENTO HOVER — Storytelling Animations
   Each card tells a visual story when hovered.
   ============================================================ */

/* Kill the generic "clickable" hover (uplift + white border) */
.bento-card:hover {
    border-color: var(--border) !important;
    transform: translateY(0) scale(1) !important;
}

/* Base modifications for hover effects */
.bms-course { position: relative; overflow: hidden; }
.bms-org-node { position: relative; overflow: visible; }
.bed-helion-orb { transition: transform 0.5s ease, filter 0.5s ease; }
.bam-fill { transform-origin: left; }
.byt-growth-row { position: relative; }
.byt-upload-card { transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease; }

/* ────────────────────────────────────────────────────────────
   YOUTUBE — Living analytics dashboard.
   Cards rise in a wave with depth. Screens shimmer like
   live video previews. Play buttons pulse. Chart scans.
   View counts tick up via JS.
   ──────────────────────────────────────────────────────────── */
[data-bento="youtube"]:hover .byt-upload-card {
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
[data-bento="youtube"]:hover .bu-1 { transform: translateY(-4px); transition-delay: 0s; }
[data-bento="youtube"]:hover .bu-2 { transform: translateY(-8px); transition-delay: 0.08s; }
[data-bento="youtube"]:hover .bu-3 { transform: translateY(-12px); transition-delay: 0.16s; }

/* Light reflection sweeps across thumbnails — live screens */
[data-bento="youtube"]:hover .bu-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg,
        transparent 35%, rgba(255,255,255,0.08) 42%,
        rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.08) 58%,
        transparent 65%);
    animation: bh-screen-sweep 2s ease-in-out infinite;
}
[data-bento="youtube"]:hover .bu-2 .bu-thumb::after { animation-delay: 0.3s; }
[data-bento="youtube"]:hover .bu-3 .bu-thumb::after { animation-delay: 0.6s; }

/* Play buttons pulse — videos are being watched */
[data-bento="youtube"]:hover .bu-thumb svg {
    animation: bh-play-pulse 1.5s ease-in-out infinite;
}
[data-bento="youtube"]:hover .bu-2 .bu-thumb svg { animation-delay: 0.2s; }
[data-bento="youtube"]:hover .bu-3 .bu-thumb svg { animation-delay: 0.4s; }

/* Golden scan band sweeps across growth chart */
[data-bento="youtube"]:hover .byt-growth-row::before {
    content: '';
    position: absolute; top: 0; left: -40%;
    width: 30%; height: 100%;
    background: linear-gradient(90deg,
        transparent, rgba(184,151,46,0.1),
        rgba(184,151,46,0.25), rgba(184,151,46,0.1),
        transparent);
    animation: bh-chart-scan 2.5s ease-in-out infinite;
    pointer-events: none; z-index: 1;
}

/* Growth badge kicks */
[data-bento="youtube"]:hover .byt-growth-badge {
    animation: bh-growth-kick 1.2s ease-in-out infinite alternate;
}

/* ────────────────────────────────────────────────────────────
   EDUCATORS — Transformation machine. Files vacuum into orb,
   orb swells and emits sparks, video ejects out the side.
   ──────────────────────────────────────────────────────────── */
[data-bento="educators"] .bento-visual { flex: 1; }
[data-bento="educators"] .bento-edu-pipeline { gap: 16px; }

[data-bento="educators"]:hover .bed-item {
    transition: transform 0.7s cubic-bezier(0.55, 0, 0.1, 1),
                opacity 0.7s ease, filter 0.7s ease;
}
[data-bento="educators"]:hover .bed-pdf {
    transform: translateX(70px) scale(0.15);
    opacity: 0; filter: blur(3px);
}
[data-bento="educators"]:hover .bed-photo {
    transform: translateX(40px) scale(0.15);
    opacity: 0; filter: blur(3px); transition-delay: 0.1s;
}
[data-bento="educators"]:hover .bed-photo2 {
    transform: translateX(10px) scale(0.15);
    opacity: 0; filter: blur(3px); transition-delay: 0.2s;
}
[data-bento="educators"]:hover .bed-upload-text {
    opacity: 0; transition: opacity 0.3s ease;
}

/* Orb SWELLS after consuming files */
[data-bento="educators"]:hover .bed-helion-orb {
    transform: scale(1.5);
    filter: drop-shadow(0 0 28px rgba(184,151,46,0.9))
            drop-shadow(0 0 56px rgba(184,151,46,0.4));
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s,
                filter 0.6s ease 0.4s;
}
/* Sparks fly off the orb while processing */
[data-bento="educators"]:hover .bed-helion-orb::before {
    content: '';
    position: absolute;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 6px var(--accent);
    top: -2px; left: 50%;
    animation: bh-spark-up 0.8s ease-out 0.5s infinite;
}
[data-bento="educators"]:hover .bed-helion-orb::after {
    content: '';
    position: absolute;
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 4px var(--accent);
    bottom: -2px; right: 0;
    animation: bh-spark-down 0.8s ease-out 0.9s infinite;
}
/* Ring spins FAST */
[data-bento="educators"]:hover .bed-orb-ring {
    border-color: var(--accent);
    animation: bed-spin 0.3s linear infinite;
}
/* Stages blitz */
[data-bento="educators"]:hover .bed-stage {
    animation: bh-stage-blitz 1.2s ease-in-out infinite; opacity: 1;
}
[data-bento="educators"]:hover .bs-2 { animation-delay: 0.4s; }
[data-bento="educators"]:hover .bs-3 { animation-delay: 0.8s; }
/* Video EJECTS with bounce */
[data-bento="educators"]:hover .bed-output {
    transform: translateX(6px) scale(1.04);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.7s, opacity 0.6s ease;
}
[data-bento="educators"]:hover .bed-video-player {
    box-shadow: 0 0 16px rgba(184,151,46,0.25), 0 0 32px rgba(184,151,46,0.08);
    transition: box-shadow 0.5s ease 0.8s;
}
[data-bento="educators"]:hover .bed-video-player:nth-child(2) {
    transition-delay: 0.95s;
}
[data-bento="educators"]:hover .bed-video-player:nth-child(3) {
    transition-delay: 1.1s;
}

/* ────────────────────────────────────────────────────────────
   MARKETING — Videos "deliver" to each platform in sequence.
   Icons bounce like notifications landing. Rings broadcast.
   ──────────────────────────────────────────────────────────── */
[data-bento="marketing"]:hover .bms-p1 svg {
    animation: bh-icon-deliver 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}
[data-bento="marketing"]:hover .bms-p2 svg {
    animation: bh-icon-deliver 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s infinite;
}
[data-bento="marketing"]:hover .bms-p3 svg {
    animation: bh-icon-deliver 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.8s infinite;
}
/* "Received" ring pulse on each platform */
[data-bento="marketing"]:hover .bms-pcard {
    animation: bh-received-ring 1.8s ease-in-out infinite;
}
[data-bento="marketing"]:hover .bms-p2 { animation-delay: 0.4s; }
[data-bento="marketing"]:hover .bms-p3 { animation-delay: 0.8s; }
/* Multi-ring broadcast */
[data-bento="marketing"]:hover .bms-broadcast-ring {
    animation: broadcast-out 0.7s ease-out infinite;
}
[data-bento="marketing"]:hover .bms-marketing::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px; border-radius: 50%;
    border: 1px solid var(--accent);
    animation: broadcast-out 0.7s ease-out 0.35s infinite;
}

/* ────────────────────────────────────────────────────────────
   MARKETING TEAMS — Large card: Brief → Video pipeline
   ──────────────────────────────────────────────────────────── */
[data-bento="marketing"] .bento-visual { flex: 1; }
.bento-mkt-pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 0 12px;
}
.bmk-brief { flex: 0 0 auto; width: 45%; }
.bmk-brief-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    width: 100%;
    transition: border-color 0.4s ease;
}
[data-bento="marketing"]:hover .bmk-brief-card {
    border-color: var(--accent);
}
.bmk-brief-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.bmk-brief-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bmk-brief-fields { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.bmk-field { display: flex; justify-content: space-between; align-items: center; }
.bmk-field-key { font-size: 0.58rem; color: var(--text-tertiary); }
.bmk-field-val { font-size: 0.58rem; color: var(--text-secondary); font-weight: 500; }
.bmk-generate-btn {
    background: var(--accent);
    color: #0c0c0c;
    font-size: 0.6rem;
    font-weight: 600;
    text-align: center;
    padding: 4px 0;
    border-radius: 6px;
    opacity: 0.7;
    transition: opacity 0.4s ease, transform 0.3s ease;
}
[data-bento="marketing"]:hover .bmk-generate-btn {
    opacity: 1;
    animation: bmk-pulse 1.5s ease-in-out infinite;
}
@keyframes bmk-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Flow arrow */
.bmk-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex: 0 0 24px;
}
.bmk-flow-line {
    width: 2px;
    height: 40px;
    background: var(--accent);
    border-radius: 1px;
    opacity: 0.3;
}
.bmk-flow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}
[data-bento="marketing"]:hover .bmk-flow-line {
    opacity: 0.6;
}
[data-bento="marketing"]:hover .bmk-flow-dot {
    opacity: 1;
    animation: bmk-dot-pulse 1.2s ease-in-out infinite;
}
@keyframes bmk-dot-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(184,151,46,0.4); }
    50% { transform: scale(1.3); box-shadow: 0 0 0 4px rgba(184,151,46,0); }
}

/* Video outputs */
.bmk-outputs { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; width: 40%; position: relative; }
.bmk-video-out {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}
[data-bento="marketing"]:hover .bmk-video-out {
    opacity: 1;
}
.bmk-vid-thumb {
    width: 32px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bmk-vid-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bmk-vid-title { font-size: 0.6rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.bmk-vid-meta { font-size: 0.5rem; color: var(--text-tertiary); }
.bmk-vid-platform {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bmk-output-badge {
    font-size: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    text-align: center;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.4s ease 0.8s;
}
[data-bento="marketing"]:hover .bmk-output-badge { opacity: 1; }

/* Responsive: stack pipeline vertically on small screens */
@media (max-width: 768px) {
    .bento-mkt-pipeline { flex-direction: column; gap: 8px; }
    .bmk-flow { flex-direction: row; }
    .bmk-flow-line { width: 0; height: 2px; }
    [data-bento="marketing"]:hover .bmk-flow-line { width: 30px; height: 2px; }
}

/* ────────────────────────────────────────────────────────────
   EDUCATORS — Small card: Book → Video mini icon
   ──────────────────────────────────────────────────────────── */
.bms-edu-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 80px;
    height: 40px;
}
.bms-edu-book, .bms-edu-video {
    opacity: 0.6;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.bms-edu-arrow {
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}
[data-bento="educators"]:hover .bms-edu-book {
    opacity: 1;
    transform: scale(1.1);
}
[data-bento="educators"]:hover .bms-edu-arrow {
    opacity: 1;
}
[data-bento="educators"]:hover .bms-edu-video {
    opacity: 1;
    transform: scale(1.1);
    transition-delay: 0.3s;
}

/* ────────────────────────────────────────────────────────────
   AGENCY — Bars surge one after another like a production
   pipeline. Dots ring. Dashboard feels live.
   ──────────────────────────────────────────────────────────── */
[data-bento="agency"]:hover .bam-fill {
    animation: bh-bar-surge 2s ease-in-out infinite;
}
[data-bento="agency"]:hover .bam-1 .bam-fill { animation-delay: 0s; }
[data-bento="agency"]:hover .bam-2 .bam-fill { animation-delay: 0.5s; }
[data-bento="agency"]:hover .bam-3 .bam-fill { animation-delay: 1s; }
[data-bento="agency"]:hover .bam-dot {
    animation: bh-dot-ring 2s ease-in-out infinite;
}
[data-bento="agency"]:hover .bam-1 .bam-dot { animation-delay: 0s; }
[data-bento="agency"]:hover .bam-2 .bam-dot { animation-delay: 0.5s; }
[data-bento="agency"]:hover .bam-3 .bam-dot { animation-delay: 1s; }
[data-bento="agency"]:hover .bam-row {
    animation: bh-dashboard-tick 3s ease-in-out infinite;
}
[data-bento="agency"]:hover .bam-2 { animation-delay: 0.3s; }
[data-bento="agency"]:hover .bam-3 { animation-delay: 0.6s; }

/* ────────────────────────────────────────────────────────────
   COURSES — Laser scanner speed-runs through all modules.
   Each module activates + check bounces as beam passes.
   ──────────────────────────────────────────────────────────── */
[data-bento="courses"]:hover .bms-course::before {
    content: '';
    position: absolute; top: -5%; left: 0;
    width: 100%; height: 3px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent), 0 0 20px rgba(184,151,46,0.5),
                0 2px 30px rgba(184,151,46,0.3);
    animation: bh-speed-scan 1s ease-in-out infinite;
    z-index: 2;
}
[data-bento="courses"]:hover .bms-module {
    animation: bh-module-activate 1s ease-in-out infinite;
}
[data-bento="courses"]:hover .bms-m1 { animation-delay: 0s; }
[data-bento="courses"]:hover .bms-m2 { animation-delay: 0.22s; }
[data-bento="courses"]:hover .bms-m3 { animation-delay: 0.44s; }
[data-bento="courses"]:hover .bms-m4 { animation-delay: 0.66s; }
[data-bento="courses"]:hover .bms-check {
    animation: bh-check-bounce 1s ease-in-out infinite;
}
[data-bento="courses"]:hover .bms-m1 .bms-check { animation-delay: 0.1s; }
[data-bento="courses"]:hover .bms-m2 .bms-check { animation-delay: 0.32s; }
[data-bento="courses"]:hover .bms-m3 .bms-check { animation-delay: 0.54s; }
[data-bento="courses"]:hover .bms-m4 .bms-check { animation-delay: 0.76s; }

/* ────────────────────────────────────────────────────────────
   BUSINESS — Shockwave from HQ cascades through org.
   Double ripple, energy down connection, nodes ignite.
   ──────────────────────────────────────────────────────────── */
[data-bento="business"]:hover .bms-org-top::after {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid var(--accent);
    animation: bh-shockwave 2s ease-out infinite;
    pointer-events: none;
}
[data-bento="business"]:hover .bms-org-top::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px; border-radius: 50%;
    border: 1.5px solid rgba(184,151,46,0.5);
    animation: bh-shockwave 2s ease-out 0.5s infinite;
    pointer-events: none;
}
/* Energy travels down connection */
[data-bento="business"]:hover .bms-org-line {
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent, var(--accent));
    background-size: 100% 300%;
    box-shadow: 0 0 8px rgba(184,151,46,0.4);
    animation: bh-energy-travel 1s linear infinite;
}
/* Nodes ignite in cascade */
[data-bento="business"]:hover .bms-org-node {
    animation: bh-node-ignite 2s ease-in-out infinite;
}
[data-bento="business"]:hover .bms-org-top { animation-delay: 0s; }
[data-bento="business"]:hover .bms-org-b1 { animation-delay: 0.5s; }
[data-bento="business"]:hover .bms-org-b2 { animation-delay: 0.7s; }
[data-bento="business"]:hover .bms-org-b3 { animation-delay: 0.9s; }
[data-bento="business"]:hover .bms-train-badge {
    animation: bh-badge-kick 2s ease-in-out infinite;
}

/* ============================================================
   BENTO HOVER — Keyframes
   ============================================================ */

/* YouTube */
@keyframes bh-screen-sweep {
    0%   { transform: translateX(-200%); }
    100% { transform: translateX(200%); }
}
@keyframes bh-play-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%      { transform: scale(1.35); opacity: 1; }
}
@keyframes bh-chart-scan {
    0%   { left: -40%; }
    100% { left: 110%; }
}
@keyframes bh-growth-kick {
    0%   { transform: scale(1) translateX(0); }
    100% { transform: scale(1.15) translateX(3px); }
}

/* Educators */
@keyframes bh-stage-blitz {
    0%, 100% { color: var(--text-tertiary); opacity: 0.4; transform: scale(1); }
    35%, 65% { color: var(--accent); opacity: 1; transform: scale(1.15); }
}
@keyframes bh-spark-up {
    0%   { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-18px) scale(0); opacity: 0; }
}
@keyframes bh-spark-down {
    0%   { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(18px) translateX(8px) scale(0); opacity: 0; }
}

/* Marketing */
@keyframes bh-icon-deliver {
    0%, 100% { transform: scale(1) rotate(0deg); }
    15%      { transform: scale(1.5) rotate(-8deg); }
    30%      { transform: scale(0.85); }
    45%      { transform: scale(1.1) rotate(3deg); }
    60%      { transform: scale(1); }
}
@keyframes bh-received-ring {
    0%, 100%  { box-shadow: 0 0 0 0 rgba(184,151,46,0); }
    25%, 45% { box-shadow: 0 0 0 4px rgba(184,151,46,0.4), 0 0 12px rgba(184,151,46,0.15); }
}

/* Agency */
@keyframes bh-bar-surge {
    0%, 100% { transform: scaleX(1); filter: brightness(1); }
    50%      { transform: scaleX(1.3); filter: brightness(1.6); }
}
@keyframes bh-dot-ring {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    50%      { box-shadow: 0 0 0 3px rgba(184,151,46,0.35); }
}
@keyframes bh-dashboard-tick {
    0%, 100% { transform: translateX(0); }
    30%      { transform: translateX(3px); }
    60%      { transform: translateX(-2px); }
}

/* Courses */
@keyframes bh-speed-scan {
    0%   { top: -5%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 105%; opacity: 0; }
}
@keyframes bh-module-activate {
    0%, 100% { background: rgba(255,255,255,0.04); box-shadow: none; }
    20%, 45% { background: rgba(184,151,46,0.2);
               box-shadow: 0 0 14px rgba(184,151,46,0.2), inset 0 0 6px rgba(184,151,46,0.08); }
}
@keyframes bh-check-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25%      { transform: scale(1.4) rotate(10deg); }
    50%      { transform: scale(1); }
}

/* Business */
@keyframes bh-shockwave {
    0%   { width: 10px; height: 10px; opacity: 1; border-width: 2px; }
    100% { width: 70px; height: 70px; opacity: 0; border-width: 1px; }
}
@keyframes bh-energy-travel {
    0%   { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}
@keyframes bh-node-ignite {
    0%, 100% { box-shadow: none; transform: scale(1);
               background: rgba(255,255,255,0.08); border-color: var(--border); }
    30%, 50% { box-shadow: 0 0 20px rgba(184,151,46,0.7); transform: scale(1.25);
               background: rgba(184,151,46,0.3); border-color: var(--accent); }
}
@keyframes bh-badge-kick {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { transform: scale(1.1); }
}

/* ============================================================
   RESPONSIVE OVERRIDES — Cinematic Sections
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-lg {
        grid-column: span 2;
    }
}
@media (max-width: 768px) {
    .feature-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .transform-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .transform-beam { display: none; }
    .transform-col {
        transform: translateY(20px);
    }
    .transform-col.visible {
        transform: translateY(0);
    }
    .transform-after {
        transform: translateY(20px);
    }
    .proof-stats {
        flex-direction: column;
        gap: 24px;
    }
    .proof-divider {
        width: 50px;
        height: 1px;
    }
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bento-lg {
        grid-column: span 2;
    }
    .demo-window-body { min-height: 300px; }
    .demo-scene-grid-out { grid-template-columns: repeat(2, 1fr); }
    .demo-ep-step span { font-size: 0.5rem; }
    .demo-asm-items { gap: 6px; }
    .demo-asm-item { font-size: 0.6rem; padding: 4px 8px; }
}
@media (max-width: 480px) {
    .feature-grid-6 { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-lg { grid-column: span 1; }
    .bento-edu-pipeline { gap: 6px; }
    .bento-edu-pipeline > * { flex-shrink: 1; min-width: 0; }
    .demo-scene-grid-out { grid-template-columns: repeat(2, 1fr); }
    .demo-ep-step span { font-size: 0; width: 0; overflow: hidden; }
    .demo-review-sub { font-size: 0.55rem; }
    .demo-sline-txt { font-size: 0.65rem; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    .golden-particles-canvas { display: none; }
    .demo-glow-halo { animation: none; }
    .vignette-wave-bars span,
    .vignette-music-eq span,
    .vignette-note,
    .vignette-voice-speaker,
    .before-icon-wrap .transform-svg-icon,
    .after-icon-wrap .transform-svg-icon {
        animation: none;
    }
    .vignette-wave-bars span { transform: scaleY(0.7); }
    .vignette-music-eq span { transform: scaleY(0.7); }
    .platform-marquee { animation: none; }
    .demo-cursor, .vignette-cursor-char { animation: none; }
    .flip-digit.flipping { animation: none; }
    .transform-col { opacity: 1; transform: none; }
    .bento-card { opacity: 1; transform: none; }
    .bento-yt-thumb-card { opacity: 1; transform: none; }
    .bento-client-row { opacity: 1; transform: none; }
    .pull-quote .word { opacity: 1; filter: none; }
    .demo-s-anim { opacity: 1; transform: none; }
    .demo-sline { opacity: 1; transform: none; }
    .demo-sg-card { opacity: 1; transform: none; }
    .demo-rtl-card { opacity: 1; transform: none; }
    .demo-review-tools { opacity: 1; transform: none; }
    .demo-asm-item { opacity: 1; transform: none; }
    .demo-asm-center { opacity: 1; transform: none; }
    .demo-waveform-bars span, .demo-eq-bars span { animation: none; }
}

