/* Animated brand text — MARUVISTA + typewriter tagline */
.brand-text-animated {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 0.12rem;
}

.brand-text-animated__name {
    display: inline-flex;
    font-family: "Cinzel", serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.brand-text-animated__letter {
    display: inline-block;
    background: linear-gradient(
        110deg,
        #9a6b1a 0%,
        #c9922e 25%,
        #e8c96a 50%,
        #c9922e 75%,
        #9a6b1a 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation:
        brandNameShimmer 4s linear infinite,
        brandLetterFloat 2.6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.09s), calc(var(--i) * 0.09s);
}

.brand-text-animated__tagline {
    display: block;
    min-height: 1.35em;
    max-width: 15rem;
    font-family: "Outfit", sans-serif;
    font-size: clamp(0.62rem, 1.2vw, 0.74rem);
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.35;
    white-space: normal;
}

.brand-text-animated__tagline-chars {
    display: inline;
}

.brand-text-animated__tagline-char {
    display: inline-block;
    color: var(--c, #1a5c3e);
    opacity: 1;
    animation: brandTaglinePop 0.22s ease-out;
}

.brand-text-type-cursor {
    display: inline-block;
    margin-left: 1px;
    color: #c9922e;
    font-weight: 700;
    animation: brandTypeCursor 0.75s step-end infinite;
    vertical-align: baseline;
}

@keyframes brandNameShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

@keyframes brandLetterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes brandTaglinePop {
    from {
        transform: translateY(2px) scale(0.96);
    }
    to {
        transform: translateY(0) scale(1);
    }
}

@keyframes brandTypeCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Footer */
.brand-text-animated--footer .brand-text-animated__name {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
}

.brand-text-animated--footer .brand-text-animated__letter {
    background: linear-gradient(
        110deg,
        #d4af37 0%,
        #f7ecd7 35%,
        #e8c96a 55%,
        #f7ecd7 75%,
        #d4af37 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-text-animated--footer .brand-text-animated__tagline {
    max-width: 13rem;
    font-size: clamp(0.58rem, 1.1vw, 0.68rem);
    font-style: normal;
}

@media (max-width: 960px) {
    .brand-text-animated__name {
        font-size: 1rem;
    }

    .brand-text-animated__tagline {
        max-width: 11rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-text-animated__letter {
        animation: none;
        color: inherit;
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
    }

    .brand-text-animated--header .brand-text-animated__letter {
        color: var(--header-gold, #c9922e);
    }

    .brand-text-animated--footer .brand-text-animated__letter {
        color: #f7ecd7;
    }

    .brand-text-animated__tagline-char {
        animation: none;
    }

    .brand-text-type-cursor {
        display: none;
    }
}
