/* ==========================================================================
   animations.css — motion, keyframes, and scroll-triggered reveals
   ========================================================================== */

@keyframes pulse {
    0%   { transform: scale(1);   opacity: 1;   box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.55); }
    70%  { transform: scale(1.1); opacity: .85; box-shadow: 0 0 0 10px rgba(30, 144, 255, 0); }
    100% { transform: scale(1);   opacity: 1;   box-shadow: 0 0 0 0 rgba(30, 144, 255, 0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translate3d(0, 16px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -6px, 0); }
}

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

/* ---- On-load hero reveal ---- */
.hero .eyebrow      { animation: fadeUp .6s ease-out .05s both; }
.hero h1            { animation: fadeUp .7s ease-out .15s both; }
.hero .hero-sub,
.hero .lead        { animation: fadeUp .7s ease-out .3s  both; }
.hero .cta-row,
.hero .hero-ctas   { animation: fadeUp .7s ease-out .45s both; }
.hero .metrics,
.hero .hero-metrics{ animation: fadeUp .7s ease-out .6s  both; }

/* ---- Animated gradient title accent ---- */
.gradient-text {
    background: linear-gradient(90deg, #1E90FF, #FFD700, #1E90FF);
    background-size: 200% auto;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease-in-out infinite;
}

/* ---- Scroll reveal (progressive enhancement, no JS required) ---- */
.reveal              { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible   { opacity: 1; transform: translate3d(0, 0, 0); }

/* ---- Card hover lift ---- */
.product-card,
.principle-card {
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.product-card:hover,
.principle-card:hover {
    transform: translateY(-4px);
}

/* ---- Nav link underline sweep ---- */
.nav-links a {
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: linear-gradient(90deg, #1E90FF, #FFD700);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.nav-links a:hover::after {
    transform: scaleX(1);
}

/* ---- Floating monogram ---- */
.brand-mark svg,
.logo svg {
    animation: float 6s ease-in-out infinite;
}

/* ---- Respect reduced-motion preference ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
