/**
 * Budgeted mark — gold/teal glow on favicon_trans.png (header + hero).
 */
.brand img,
.brand-logo {
    border-radius: 50%;
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--logo-gold) 55%, transparent));
    animation: budgeted-logo-glow 3.2s ease-in-out infinite;
}

.ed-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(72px, 22vw, 168px);
    height: clamp(72px, 22vw, 168px);
    margin: 0 auto 0.85rem;
    overflow: hidden;
    border-radius: 50%;
}

.ed-mark::before {
    content: "";
    position: absolute;
    inset: -22%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--logo-gold) 48%, transparent) 0%,
        color-mix(in srgb, var(--logo-teal) 22%, transparent) 42%,
        transparent 70%
    );
    animation: budgeted-logo-halo 2.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.ed-logo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    max-width: 168px;
    border-radius: 50%;
    object-fit: contain;
    animation: budgeted-logo-breathe 4.4s ease-in-out infinite;
    filter: drop-shadow(0 0 14px color-mix(in srgb, var(--logo-gold) 70%, transparent));
}

@media (min-width: 768px) {
    .ed-mark {
        width: clamp(96px, 28vw, 168px);
        height: clamp(96px, 28vw, 168px);
        margin-bottom: 1.2rem;
        overflow: visible;
    }
}

@keyframes budgeted-logo-glow {
    0%, 100% {
        filter: drop-shadow(0 0 4px color-mix(in srgb, var(--logo-gold) 40%, transparent));
    }
    50% {
        filter: drop-shadow(0 0 10px color-mix(in srgb, var(--logo-gold) 85%, transparent));
    }
}

@keyframes budgeted-logo-halo {
    0%, 100% { opacity: 0.55; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes budgeted-logo-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
    .brand img,
    .brand-logo,
    .ed-mark::before,
    .ed-logo {
        animation: none;
    }

    .ed-logo {
        filter: drop-shadow(0 0 12px color-mix(in srgb, var(--logo-gold) 65%, transparent));
    }
}
