/* Swipe card animations */
.card-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: min(620px, calc(100vh - 300px));
}

/* Bottom action area — safe-area aware */
.swipe-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.25rem;
}

.swipe-bottom {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.swipe-cta {
    text-align: center;
    margin-top: 14px;
    font-size: 0.8125rem;
    color: #64748b;
}

.swipe-cta a {
    color: #2B7DE9;
    font-weight: 500;
    text-decoration: none;
}

.swipe-cta a:hover { text-decoration: underline; }

.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    touch-action: none;
    user-select: none;
    will-change: transform, opacity;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    cursor: grab;
}

.swipe-card:active { cursor: grabbing; }

.swipe-card.animating {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

/* Card behind current */
.swipe-card.next-card {
    transform: scale(0.95) translateY(12px);
    opacity: 0.7;
    pointer-events: none;
}

/* Stamp overlays */
.stamp {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 8px 20px;
    border: 5px solid;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.1s;
}

.stamp-like {
    right: 20px;
    color: #22c55e;
    border-color: #22c55e;
    transform: translateY(-50%) rotate(-12deg);
}

.stamp-pass {
    left: 20px;
    color: #ef4444;
    border-color: #ef4444;
    transform: translateY(-50%) rotate(12deg);
}

/* Compatibility badge */
.badge-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.badge-yellow { background: linear-gradient(135deg, #eab308, #ca8a04); }
.badge-orange { background: linear-gradient(135deg, #f97316, #ea580c); }

/* Initials avatar (legacy fallback) */
.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5DD39E, #2B9FE8);
    color: white;
    font-weight: 700;
    font-size: 2rem;
    border-radius: 50%;
}

/* Tinder-style silhouette */
.avatar-silhouette {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #94a3b8;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-silhouette svg {
    width: 78%;
    height: 88%;
    margin-bottom: -6%;
    display: block;
}

/* Full-bleed card background photo */
.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 22%;
    background-color: #e2e8f0;
    z-index: 1;
}

.card-bg-silhouette {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #94a3b8;
    z-index: 1;
    overflow: hidden;
}

.card-bg-silhouette svg {
    width: 75%;
    height: 90%;
    margin-bottom: -8%;
    display: block;
}

.card-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 30%, rgba(0,0,0,0.05) 55%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

.card-top-badges {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
}

.card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem;
    color: #fff;
    z-index: 3;
}

.card-content h3 {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.card-company {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 10px;
}

.card-company-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    object-fit: contain;
    padding: 2px;
    flex-shrink: 0;
}

.card-linkedin-icon {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 4;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a66c2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tag-pill-light {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255,255,255,0.22);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Tag pill */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #eff6ff;
    color: #1d4ed8;
}

/* Action buttons */
.action-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    background: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.action-btn:active { transform: scale(0.95); }

.btn-pass { border-color: #fca5a5; color: #ef4444; }
.btn-pass:hover { background: #fef2f2; }

.btn-like { border-color: #86efac; color: #22c55e; }
.btn-like:hover { background: #f0fdf4; }

/* Progress bar for onboarding */
.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5DD39E, #2B9FE8);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Swipe counter */
.swipe-counter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Nav user icon button */
.nav-user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    color: #64748b;
    transition: background 0.15s, color 0.15s;
    margin-left: 2px;
}

.nav-user-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.nav-user-btn.nav-user-active {
    background: #f1f5f9;
    color: #0f172a;
}

/* Pre-JS boot loader (renders before app.js runs) */
.boot-loader {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
}

/* Session loader spinner */
.swipe-loader {
    width: 72px;
    height: 72px;
    position: relative;
}

.swipe-loader-circle {
    width: 100%;
    height: 100%;
    border: 5px solid #e2e8f0;
    border-top-color: #2B9FE8;
    border-right-color: #5DD39E;
    border-radius: 50%;
    animation: loaderSpin 0.9s linear infinite;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Limit overlay */
.limit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 20;
    text-align: center;
    padding: 2rem;
}

/* Safe area for mobile */
.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Gradient button */
.btn-gradient {
    background: linear-gradient(135deg, #5DD39E, #2B9FE8);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(93, 211, 158, 0.3);
}

.btn-gradient:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Nav */
.app-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: blur(8px);
}

/* Exhausted (end-of-day) screen */
.exhausted-screen {
    text-align: center;
    padding: 1rem 0.25rem 0.5rem;
}

.exhausted-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    border-radius: 50%;
    margin: 0.5rem auto 1rem;
}

.exhausted-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.exhausted-sub {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.exhausted-cta {
    background: linear-gradient(135deg, #5DD39E, #2B9FE8);
    color: white;
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 28px rgba(43, 159, 232, 0.28);
}

.exhausted-cta-badge {
    display: inline-block;
    background: rgba(255,255,255,0.22);
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 0.75rem;
}

.exhausted-cta-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.exhausted-cta-desc {
    font-size: 0.875rem;
    opacity: 0.95;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.exhausted-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: #2B7DE9;
    padding: 13px 26px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: transform 0.15s, box-shadow 0.15s;
}

.exhausted-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

.exhausted-cta-small {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.75rem;
}

.exhausted-secondary {
    color: #64748b;
    text-decoration: underline;
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* "It's a Match!" overlay */
.match-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(135deg, rgba(93, 211, 158, 0.97), rgba(43, 159, 232, 0.97));
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.match-overlay.show { opacity: 1; }

body.match-open { overflow: hidden; }

.match-content {
    text-align: center;
    color: white;
    transform: scale(0.7) translateY(20px);
    opacity: 0;
    transition: all 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 360px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin: auto;
    flex-shrink: 0;
}

.match-overlay.show .match-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.match-title {
    font-size: clamp(1.5rem, 7.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.25rem;
    text-shadow: 0 4px 16px rgba(0,0,0,0.25);
    animation: matchTitle 1.4s ease-in-out infinite alternate;
    font-style: italic;
    line-height: 1.1;
    transform-origin: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes matchTitle {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.match-subtitle {
    font-size: clamp(0.85rem, 3.6vw, 0.95rem);
    opacity: 0.92;
    margin-bottom: 1rem;
}

.match-avatar {
    width: clamp(96px, 28vw, 140px);
    height: clamp(96px, 28vw, 140px);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    margin: 0 auto 0.75rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
    background: #e2e8f0;
}

.match-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.match-silhouette {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #94a3b8;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.match-silhouette svg { width: 75%; height: 90%; margin-bottom: -8%; }

.match-name {
    font-size: clamp(1.05rem, 4.5vw, 1.25rem);
    font-weight: 700;
    margin-top: 0.25rem;
    line-height: 1.2;
}

.match-company {
    font-size: clamp(0.8rem, 3.4vw, 0.9rem);
    opacity: 0.88;
    margin-bottom: 1.25rem;
}

.match-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.match-continue {
    background: white;
    color: #2B7DE9;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    transition: transform 0.15s;
    font-size: 0.95rem;
    min-width: 200px;
}

.match-continue:hover { transform: translateY(-2px); }

.match-leads {
    background: transparent;
    color: rgba(255,255,255,0.95);
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 6px 10px;
    margin-top: 2px;
}

.match-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.match-sparkle {
    position: absolute;
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    animation: sparkleFloat 3s ease-out infinite;
    opacity: 0;
}

.match-sparkle:nth-child(1) { left: 8%; top: 14%; animation-delay: 0s; }
.match-sparkle:nth-child(2) { left: 86%; top: 10%; animation-delay: 0.3s; }
.match-sparkle:nth-child(3) { left: 12%; top: 78%; animation-delay: 0.6s; }
.match-sparkle:nth-child(4) { left: 82%; top: 80%; animation-delay: 0.9s; }
.match-sparkle:nth-child(5) { left: 50%; top: 5%; animation-delay: 1.2s; }
.match-sparkle:nth-child(6) { left: 4%; top: 45%; animation-delay: 1.5s; }
.match-sparkle:nth-child(7) { left: 92%; top: 48%; animation-delay: 1.8s; }
.match-sparkle:nth-child(8) { left: 50%; top: 92%; animation-delay: 2.1s; }

@keyframes sparkleFloat {
    0% { opacity: 0; transform: translateY(20px) scale(0); }
    25% { opacity: 1; transform: translateY(0) scale(1.2); }
    60% { opacity: 1; transform: translateY(-12px) scale(1); }
    100% { opacity: 0; transform: translateY(-44px) scale(0.5); }
}

/* Desktop background decoration: hidden by default, shown on the phone-frame layout */
.desktop-decor { display: none; }
.desktop-footer { display: none; }

/* Desktop: phone-frame around the app */
@media (min-width: 900px) {
    body {
        background: linear-gradient(135deg, #f1f5f9 0%, #dbeafe 60%, #f1f5f9 100%) !important;
        background-attachment: fixed !important;
        padding: 30px 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }

    .desktop-decor {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
    }
    .orb-1 {
        width: 520px; height: 520px;
        top: -160px; left: -140px;
        background: radial-gradient(circle, rgba(93, 211, 158, 0.55), transparent 60%);
        animation: orbDrift1 22s ease-in-out infinite alternate;
    }
    .orb-2 {
        width: 620px; height: 620px;
        bottom: -220px; right: -160px;
        background: radial-gradient(circle, rgba(43, 159, 232, 0.55), transparent 60%);
        animation: orbDrift2 28s ease-in-out infinite alternate;
    }
    .orb-3 {
        width: 380px; height: 380px;
        top: 38%; right: 8%;
        background: radial-gradient(circle, rgba(123, 197, 232, 0.38), transparent 60%);
        animation: orbDrift3 32s ease-in-out infinite alternate;
    }

    .d-heart {
        position: absolute;
        animation: heartFloat 14s ease-in-out infinite;
    }
    .d-heart-1 { width: 40px; height: 40px; top: 14%; left: 10%; color: rgba(43, 159, 232, 0.18); animation-delay: 0s; }
    .d-heart-2 { width: 28px; height: 28px; top: 62%; left: 6%;  color: rgba(93, 211, 158, 0.20); animation-delay: 3s; }
    .d-heart-3 { width: 34px; height: 34px; top: 22%; right: 8%; color: rgba(93, 211, 158, 0.16); animation-delay: 6s; }
    .d-heart-4 { width: 24px; height: 24px; bottom: 18%; right: 14%; color: rgba(43, 159, 232, 0.18); animation-delay: 9s; }

    /* Background-scattered company logos from the loaded cards */
    .bg-logos {
        position: absolute;
        inset: 0;
        pointer-events: none;
    }
    .bg-logo {
        position: absolute;
        width: 72px;
        height: 72px;
        object-fit: contain;
        background: rgba(255, 255, 255, 0.6);
        padding: 8px;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
        opacity: 0.5;
        filter: grayscale(0.35);
        animation: bgLogoFloat 18s ease-in-out infinite;
    }
    .bg-logo-1 { top: 10%;  left: 7%;  animation-delay: 0s;  }
    .bg-logo-2 { top: 32%;  left: 4%;  animation-delay: 2.5s; }
    .bg-logo-3 { top: 58%;  left: 9%;  animation-delay: 5s;  }
    .bg-logo-4 { top: 14%;  right: 8%; animation-delay: 1.5s; }
    .bg-logo-5 { top: 42%;  right: 5%; animation-delay: 4s;  }
    .bg-logo-6 { top: 68%;  right: 9%; animation-delay: 7s;  }
    .bg-logo-7 { bottom: 22%; left: 18%; animation-delay: 9s; width: 56px; height: 56px; }
    .bg-logo-8 { bottom: 26%; right: 17%; animation-delay: 11s; width: 56px; height: 56px; }

    /* Footer watermark: Charik mark + rotating sales quotes (stacked under the phone) */
    .desktop-footer {
        display: block;
        position: relative;
        text-align: center;
        z-index: 1;
        pointer-events: none;
        width: 560px;
        max-width: 90vw;
        flex-shrink: 0;
    }
    .charik-mark-link {
        display: inline-block;
        margin: 0 auto 14px;
        pointer-events: auto;
        transition: opacity 0.2s, transform 0.2s;
    }
    .charik-mark-link:hover { opacity: 0.7; transform: scale(1.03); }

    .charik-mark {
        width: 144px;
        height: 144px;
        display: block;
        opacity: 0.85;
        filter: brightness(0);
    }
    .desktop-quotes {
        position: relative;
        height: 22px;
    }
    .dq {
        position: absolute;
        inset: 0;
        font-size: 0.875rem;
        font-style: italic;
        font-weight: 500;
        color: rgba(15, 23, 42, 0.55);
        opacity: 0;
        animation: dqRotate 36s ease-in-out infinite;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .dq-1 { animation-delay: 0s; }
    .dq-2 { animation-delay: 6s; }
    .dq-3 { animation-delay: 12s; }
    .dq-4 { animation-delay: 18s; }
    .dq-5 { animation-delay: 24s; }
    .dq-6 { animation-delay: 30s; }

    #app { z-index: 2; }

    #app {
        max-width: 400px;
        margin: 0 auto;
        background: #f9fafb;
        border-radius: 48px;
        box-shadow:
            0 0 0 12px #0f172a,
            0 0 0 14px #334155,
            0 30px 60px -12px rgba(15, 23, 42, 0.45),
            0 18px 36px -18px rgba(15, 23, 42, 0.3);
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 760px;
        max-height: min(820px, calc(100vh - 220px));
        position: relative;
        flex-shrink: 0;
        scrollbar-width: none;          /* Firefox */
        -ms-overflow-style: none;       /* IE / old Edge */
    }
    #app::-webkit-scrollbar {           /* Chrome / Safari */
        width: 0;
        height: 0;
        display: none;
    }

    /* Dynamic island */
    #app::before {
        content: '';
        position: absolute;
        top: 14px;
        left: 50%;
        transform: translateX(-50%);
        width: 110px;
        height: 28px;
        background: #0f172a;
        border-radius: 16px;
        z-index: 100;
    }

    .app-nav {
        padding-top: 28px;
    }

    .card-stack {
        height: 540px;
    }

    .swipe-bottom {
        padding-bottom: 32px;
    }
}

@keyframes orbDrift1 {
    0%   { transform: translate(0, 0)   scale(1); }
    100% { transform: translate(80px, 60px)  scale(1.1); }
}
@keyframes orbDrift2 {
    0%   { transform: translate(0, 0)        scale(1); }
    100% { transform: translate(-90px, -50px) scale(1.05); }
}
@keyframes orbDrift3 {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-60px, 80px); }
}
@keyframes heartFloat {
    0%, 100% { transform: translateY(0)   rotate(-6deg); }
    50%      { transform: translateY(-22px) rotate(6deg); }
}

/* Each quote shows for ~6s out of a 36s cycle (16.6%), with a fade in/out band */
@keyframes dqRotate {
    0%, 13%   { opacity: 0; transform: translateY(8px); }
    16%, 30%  { opacity: 1; transform: translateY(0); }
    33%, 100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes bgLogoFloat {
    0%, 100% { transform: translateY(0)    rotate(-1deg); }
    50%      { transform: translateY(-14px) rotate(1deg); }
}
