/* ==========================================================================
   Home Modern – High-tech, interactive homepage
   ========================================================================== */

/* ---------- Reset & Variables ---------- */
:root {
    /* Dark base */
    --hm-dark: #0a0a0a;
    --hm-dark-deep: #0c1220;
    --hm-dark-card: #111827;
    --hm-dark-surface: #1a2332;

    /* Brand accent palette */
    --hm-blue: #226eb7;
    --hm-blue-glow: rgba(34, 110, 183, 0.4);
    --hm-red: #ee2f24;
    --hm-red-glow: rgba(238, 47, 36, 0.35);
    --hm-purple: #6049a0;
    --hm-purple-glow: rgba(96, 73, 160, 0.3);
    --hm-coral: #cb544f;
    --hm-coral-glow: rgba(203, 84, 79, 0.3);

    /* Legacy variable aliases (so existing var() references still work) */
    --hm-cyan: var(--hm-blue);
    --hm-cyan-glow: var(--hm-blue-glow);
    --hm-magenta: var(--hm-red);
    --hm-magenta-glow: var(--hm-red-glow);
    --hm-orange: var(--hm-coral);
    --hm-orange-glow: var(--hm-coral-glow);

    --hm-white: #ffffff;
    --hm-gray-100: #f0f0f0;
    --hm-gray-200: #d4d4d4;
    --hm-gray-300: #a3a3a3;
    --hm-gray-600: #6b6b6b;
    --hm-gray-800: #1c1c1c;

    --hm-surface: rgba(255, 255, 255, 0.04);
    --hm-surface-border: rgba(255, 255, 255, 0.08);
    --hm-glass: rgba(255, 255, 255, 0.05);
    --hm-glass-border: rgba(255, 255, 255, 0.1);

    /* Brand gradient */
    --hm-gradient-neon: linear-gradient(135deg, #226eb7, #6049a0, #cb544f, #ee2f24);
    --hm-gradient-spectrum: linear-gradient(135deg, #226eb7, #6049a0, #ee2f24);

    --hm-font-display: 'Space Grotesk', 'Oswald', sans-serif;
    --hm-font-body: 'Inter', 'Roboto', sans-serif;
    --hm-wrap-width: 1200px;
    --hm-radius: 12px;
    --hm-radius-lg: 20px;
    --hm-transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   BOOTSTRAP OVERRIDE RESET
   Forces our styles to win over Bootstrap 5 global selectors.
   ========================================================================== */
html.hm-page-html {
    overflow-x: clip !important;
}

body.hm-page {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--hm-font-body) !important;
    color: var(--hm-gray-800) !important;
    background: var(--hm-dark-deep) !important;
    overflow-x: clip !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6 !important;
}

/* ==========================================================================
   SECTION STACKING FIX – prevent any overlap/cut-off from Bootstrap/plugins
   Each section is forced into normal document flow with explicit stacking.
   ========================================================================== */
body.hm-page .hm-hero,
body.hm-page .hm-about,
body.hm-page .hm-fastest-growing,
body.hm-page .hm-programs,
body.hm-page .hm-stem-revenue,
body.hm-page .hm-kids-learn,
body.hm-page .hm-why,
body.hm-page .hm-numbers,
body.hm-page .hm-video-testimonials,
body.hm-page .hm-reviews,
body.hm-page .hm-testimonials,
body.hm-page .hm-impact,
body.hm-page .hm-why-code,
body.hm-page .hm-partners,
body.hm-page .hm-cta,
body.hm-page .hm-footer {
    position: relative !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    isolation: isolate;
}

body.hm-page *,
body.hm-page *::before,
body.hm-page *::after {
    box-sizing: border-box;
}

/* Override Bootstrap heading colors globally */
body.hm-page h1,
body.hm-page h2,
body.hm-page h3,
body.hm-page h4,
body.hm-page h5,
body.hm-page h6 {
    color: inherit !important;
    font-family: var(--hm-font-display) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
}

/* Override Bootstrap paragraph/list styles */
body.hm-page p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    color: inherit !important;
}

body.hm-page ul,
body.hm-page ol {
    margin: 0 !important;
    padding: 0 !important;
}

/* Override Bootstrap link colors */
body.hm-page a {
    color: inherit;
    text-decoration: none;
}

body.hm-page a:hover {
    color: inherit;
    text-decoration: none;
}

/* Override Bootstrap image styles */
body.hm-page img {
    max-width: 100%;
    height: auto;
}

/* Override Bootstrap button styles */
body.hm-page button {
    font-family: inherit;
}

/* Dark section text: white */
body.hm-page .hm-hero,
body.hm-page .hm-trust-strip,
body.hm-page .hm-why,
body.hm-page .hm-video-testimonials,
body.hm-page .hm-testimonials,
body.hm-page .hm-cta,
body.hm-page .hm-footer {
    color: var(--hm-white) !important;
}

body.hm-page .hm-hero h1,
body.hm-page .hm-hero h2,
body.hm-page .hm-hero h3,
body.hm-page .hm-trust-strip h1,
body.hm-page .hm-trust-strip h2,
body.hm-page .hm-trust-strip h3,
body.hm-page .hm-why h1,
body.hm-page .hm-why h2,
body.hm-page .hm-why h3,
body.hm-page .hm-video-testimonials h1,
body.hm-page .hm-video-testimonials h2,
body.hm-page .hm-video-testimonials h3,
body.hm-page .hm-testimonials h1,
body.hm-page .hm-testimonials h2,
body.hm-page .hm-testimonials h3,
body.hm-page .hm-cta h1,
body.hm-page .hm-cta h2,
body.hm-page .hm-cta h3,
body.hm-page .hm-footer h1,
body.hm-page .hm-footer h2,
body.hm-page .hm-footer h3 {
    color: var(--hm-white) !important;
}

body.hm-page .hm-hero p,
body.hm-page .hm-trust-strip p,
body.hm-page .hm-why p,
body.hm-page .hm-video-testimonials p,
body.hm-page .hm-testimonials p,
body.hm-page .hm-cta p,
body.hm-page .hm-footer p {
    color: inherit !important;
}

/* Light section text: dark */
body.hm-page .hm-about,
body.hm-page .hm-fastest-growing,
body.hm-page .hm-programs,
body.hm-page .hm-stem-revenue,
body.hm-page .hm-kids-learn,
body.hm-page .hm-numbers,
body.hm-page .hm-reviews,
body.hm-page .hm-impact,
body.hm-page .hm-partners {
    color: var(--hm-gray-800) !important;
}

body.hm-page .hm-about h1,
body.hm-page .hm-about h2,
body.hm-page .hm-about h3,
body.hm-page .hm-programs h1,
body.hm-page .hm-programs h2,
body.hm-page .hm-programs h3,
body.hm-page .hm-numbers h1,
body.hm-page .hm-numbers h2,
body.hm-page .hm-numbers h3,
body.hm-page .hm-reviews h1,
body.hm-page .hm-reviews h2,
body.hm-page .hm-reviews h3,
body.hm-page .hm-impact h1,
body.hm-page .hm-impact h2,
body.hm-page .hm-impact h3 {
    color: var(--hm-gray-800) !important;
}

/* ==========================================================================
   END BOOTSTRAP OVERRIDES
   ========================================================================== */

.hm-wrap {
    width: 100%;
    max-width: var(--hm-wrap-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Gradient Text Utility ---------- */
.hm-gradient-text {
    background: var(--hm-gradient-neon) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hm-text-center { text-align: center; }

body.hm-page .hm-text-white,
body.hm-page .hm-text-white h1,
body.hm-page .hm-text-white h2,
body.hm-page .hm-text-white h3 {
    color: var(--hm-white) !important;
}

body.hm-page .hm-text-muted {
    color: var(--hm-gray-300) !important;
}

/* ---------- Reveal Animations ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].hm-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for reveal animation children */
[data-reveal-delay] {
    transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}

/* ---------- Kicker ---------- */
.hm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--hm-font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hm-cyan) !important;
    margin-bottom: 16px;
}

.hm-kicker--center { display: flex; justify-content: center; }

.hm-kicker-line {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--hm-gradient-neon);
    border-radius: 2px;
}

.hm-kicker--light { color: var(--hm-cyan) !important; }

/* Hero kicker: full white */
.hm-hero .hm-kicker { color: #ffffff !important; }

/* Kickers in light sections: use dark color for contrast */
body.hm-page .hm-about .hm-kicker,
body.hm-page .hm-programs .hm-kicker,
body.hm-page .hm-stem-revenue .hm-kicker,
body.hm-page .hm-kids-learn .hm-kicker,
body.hm-page .hm-reviews .hm-kicker,
body.hm-page .hm-impact .hm-kicker,
body.hm-page .hm-partners .hm-kicker,
body.hm-page .hm-fastest-growing .hm-kicker {
    color: var(--hm-gray-800) !important;
}

/* ---------- Section Title ---------- */
.hm-section-title {
    font-family: var(--hm-font-display) !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
    margin: 0 0 4px !important;
}

.hm-section-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 48px;
}

/* Light sections: muted description text */
body.hm-page .hm-about .hm-section-desc,
body.hm-page .hm-programs .hm-section-desc,
body.hm-page .hm-numbers .hm-section-desc,
body.hm-page .hm-partners .hm-section-desc {
    color: var(--hm-gray-600) !important;
}

/* Dark sections: lighter muted description text */
body.hm-page .hm-why .hm-section-desc,
body.hm-page .hm-video-testimonials .hm-section-desc,
body.hm-page .hm-testimonials .hm-section-desc,
body.hm-page .hm-cta .hm-section-desc {
    color: var(--hm-gray-300) !important;
}

.hm-text-center .hm-section-desc,
.hm-section-desc.hm-text-center {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.hm-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    background: rgba(12, 18, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.hm-nav.hm-nav--scrolled {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--hm-surface-border);
}

/* Full-width nav — no max-width constraint */
.hm-nav .hm-wrap.hm-nav-inner {
    max-width: 100% !important;
    padding: 0 48px !important;
}

.hm-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.hm-brand img,
body.hm-page .hm-brand img,
body.hm-page .hm-nav .hm-brand img {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 240px !important;
    object-fit: contain !important;
    transition: var(--hm-transition);
}

body.hm-page .hm-brand-text {
    font-family: var(--hm-font-display) !important;
    font-size: 2rem;
    font-weight: 700;
    color: var(--hm-white) !important;
    text-decoration: none;
}

.hm-nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hm-menu {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

body.hm-page .hm-menu li a {
    font-family: var(--hm-font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--hm-transition);
}

body.hm-page .hm-menu li a:hover,
body.hm-page .hm-menu li.current-menu-item > a {
    color: var(--hm-white) !important;
    background: var(--hm-surface);
}

.hm-menu li.menu-item-has-children { position: relative; }

.hm-menu li.menu-item-has-children > .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--hm-surface-border);
    border-radius: var(--hm-radius);
    padding: 8px;
    min-width: 200px;
    list-style: none;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.hm-menu li.menu-item-has-children:hover > .sub-menu { display: block; }

body.hm-page .hm-menu .sub-menu li a {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.hm-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hamburger */
.hm-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.hm-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--hm-white);
    border-radius: 2px;
    transition: var(--hm-transition);
}

/* Mobile menu */
.hm-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.hm-mobile-menu.hm-mobile-menu--open {
    opacity: 1;
    pointer-events: auto;
}

body.hm-page .hm-mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--hm-white) !important;
    font-size: 2rem;
    cursor: pointer;
}

.hm-mobile-nav {
    list-style: none;
    padding: 0;
    text-align: center;
}

.hm-mobile-nav li { margin: 8px 0; }

body.hm-page .hm-mobile-nav li a {
    font-family: var(--hm-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--hm-white) !important;
    text-decoration: none;
    transition: color 0.3s;
}

body.hm-page .hm-mobile-nav li a:hover { color: var(--hm-cyan) !important; }

.hm-mobile-nav .sub-menu {
    list-style: none;
    padding: 8px 0 0;
}

body.hm-page .hm-mobile-nav .sub-menu li a {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
body.hm-page .hm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--hm-font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--hm-transition);
    white-space: nowrap;
}

body.hm-page .hm-btn-primary {
    background: var(--hm-gradient-neon) !important;
    color: var(--hm-white) !important;
    box-shadow: 0 4px 20px var(--hm-magenta-glow);
}

body.hm-page .hm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--hm-magenta-glow), 0 0 40px var(--hm-cyan-glow);
    color: var(--hm-white) !important;
}

body.hm-page .hm-btn-glow {
    position: relative;
    background: var(--hm-gradient-neon) !important;
    background-size: 200% auto !important;
    color: var(--hm-white) !important;
    padding: 16px 36px;
    font-size: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 24px var(--hm-magenta-glow);
    animation: hmGradientShift 4s ease infinite;
}

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

body.hm-page .hm-btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px var(--hm-magenta-glow), 0 0 60px var(--hm-cyan-glow);
    color: var(--hm-white) !important;
}

.hm-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: none;
}

.hm-btn-glow:hover .hm-btn-shine {
    left: 100%;
    transition: left 0.6s ease;
}

body.hm-page .hm-btn-ghost {
    background: transparent !important;
    color: var(--hm-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 16px 36px;
    font-size: 1rem;
}

body.hm-page .hm-btn-ghost:hover {
    border-color: var(--hm-magenta);
    color: var(--hm-magenta) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 24px var(--hm-magenta-glow);
}

body.hm-page .hm-btn-outline {
    background: transparent !important;
    color: var(--hm-magenta) !important;
    border: 1.5px solid var(--hm-magenta);
    padding: 12px 28px;
}

body.hm-page .hm-btn-outline:hover {
    background: var(--hm-magenta) !important;
    color: var(--hm-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--hm-magenta-glow);
}

.hm-btn-outline svg { transition: transform 0.3s; }
.hm-btn-outline:hover svg { transform: translateX(4px); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hm-hero {
    position: relative;
    z-index: 3;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    background: var(--hm-dark-deep) !important;
    overflow: visible;
    padding: 140px 0 80px;
    border: none !important;
    outline: none !important;
}

/* Static gradient mesh background — base layer under animated glow */
.hm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(120% 115% at 70% 36%, rgba(18, 50, 90, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 10% 90%, rgba(96, 73, 160, 0.15) 0%, transparent 50%);
}

/* Subtle noise texture overlay */
.hm-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Full-width hero content */
.hm-hero > .hm-wrap {
    max-width: 100% !important;
    padding: 0 calc(48px + 5vw) !important;
}

.hm-hero-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 24px;
    align-items: start;
    padding-top: 40px;
}

/* Mouse-follow gradient (JS sets --mouse-x, --mouse-y) */
.hm-hero .hm-hero-mouse-glow {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(34, 110, 183, 0.08),
        transparent 50%
    );
    pointer-events: none;
    transition: background 0.3s;
}

/* Grid overlay — hidden; canvas draws its own animated grid */
.hm-hero-grid-overlay {
    display: none;
}

/* ==========================================================================
   HERO FX — canvas digital grid with pulse ripples
   ========================================================================== */
.hm-hero-fx {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 75%);
}

#hm-hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Halo glow behind form area */
.hm-hero-halo {
    position: absolute;
    right: 8%;
    top: 42%;
    transform: translateY(-50%);
    width: min(60vh, 680px);
    height: min(72vh, 820px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 200, 255, 0.30), rgba(123, 97, 255, 0.15) 45%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 2;
}

/* R1 Robot — zoom on scroll */
.hm-hero-robot {
    align-self: start;
    display: flex;
    justify-content: center;
    pointer-events: none;
    overflow: visible;
}

.hm-hero-robot img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    opacity: 0.92;
}

.hm-hero-content {
    position: relative;
    z-index: 10;
    padding-top: 20px;
}

/* Decorative floating code bracket */
.hm-hero-content::before {
    content: '{ }';
    position: absolute;
    top: -20px;
    right: -40px;
    font-family: 'Courier New', monospace;
    font-size: 5rem;
    font-weight: 300;
    color: rgba(34, 110, 183, 0.06);
    letter-spacing: 0.2em;
    pointer-events: none;
    animation: hmFloatCode 8s ease-in-out infinite;
}

@keyframes hmFloatCode {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.06; }
    50% { transform: translateY(-15px) rotate(3deg); opacity: 0.1; }
}

body.hm-page .hm-hero-title {
    font-family: var(--hm-font-display) !important;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem) !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em;
    color: var(--hm-white) !important;
    margin: 0 0 24px !important;
}

body.hm-page .hm-hero-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 0 32px !important;
}

.hm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

/* Hero Stats Badges */
.hm-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hm-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hm-hero-stat-number {
    font-family: var(--hm-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    line-height: 1.2;
}

.hm-hero-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hm-hero-stat-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* (Trust badges moved to dedicated strip section) */

/* Hero Form Card */
.hm-hero-form {
    position: relative;
    z-index: 10;
}

.hm-hero-form-card {
    background: var(--hm-white) !important;
    border-radius: var(--hm-radius-lg);
    padding: 28px 28px 24px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(34, 110, 183, 0.12),
        0 0 120px rgba(238, 47, 36, 0.06);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: hmFormFloat 6s ease-in-out infinite;
}

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

/* Animated gradient top border */
.hm-hero-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--hm-gradient-neon);
    background-size: 200% auto;
    animation: hmFormBorderSlide 3s linear infinite;
    z-index: 5;
}

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

/* Gravity Forms in hero form card — force ALL text dark */
.hm-hero-form-card,
.hm-hero-form-card * {
    color: var(--hm-gray-800) !important;
}

.hm-hero-form-card .gform_wrapper .gform_title {
    font-family: var(--hm-font-display) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--hm-gray-800) !important;
    margin-bottom: 2px !important;
}

.hm-hero-form-card .gform_wrapper .gform_description {
    color: var(--hm-gray-600) !important;
    font-size: 0.8rem !important;
    margin-bottom: 10px !important;
}

.hm-hero-form-card .gform_wrapper .gform_required_legend {
    display: none !important;
}

.hm-hero-form-card .gform_wrapper .gfield {
    margin-bottom: 6px !important;
    padding: 0 !important;
}

.hm-hero-form-card .gform_wrapper .gform_fields {
    gap: 6px !important;
}

.hm-hero-form-card .gform_wrapper input[type="text"],
.hm-hero-form-card .gform_wrapper input[type="email"],
.hm-hero-form-card .gform_wrapper input[type="tel"],
.hm-hero-form-card .gform_wrapper input[type="url"],
.hm-hero-form-card .gform_wrapper textarea,
.hm-hero-form-card .gform_wrapper select {
    border: 1.5px solid var(--hm-gray-200) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-family: var(--hm-font-body) !important;
    font-size: 0.85rem !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
    background: var(--hm-white) !important;
    color: var(--hm-gray-800) !important;
    height: 38px !important;
}

.hm-hero-form-card .gform_wrapper textarea {
    height: 70px !important;
}

.hm-hero-form-card .gform_wrapper input:focus,
.hm-hero-form-card .gform_wrapper textarea:focus,
.hm-hero-form-card .gform_wrapper select:focus {
    border-color: var(--hm-blue) !important;
    box-shadow: 0 0 0 3px var(--hm-blue-glow) !important;
    outline: none !important;
}

.hm-hero-form-card .gform_wrapper label,
.hm-hero-form-card .gform_wrapper .gfield_label {
    color: var(--hm-gray-800) !important;
    font-family: var(--hm-font-body) !important;
    font-size: 0.8rem !important;
    font-weight: normal !important;
    margin-bottom: 2px !important;
}

.hm-hero-form-card .gform_wrapper .ginput_container {
    margin: 2px 0 !important;
}

.hm-hero-form-card .gform_wrapper .gform_button,
.hm-hero-form-card .gform_wrapper input[type="submit"] {
    background: var(--hm-gradient-neon) !important;
    background-size: 200% auto !important;
    color: var(--hm-white) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 28px !important;
    font-family: var(--hm-font-display) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
    width: 100% !important;
    margin-top: 6px !important;
}

.hm-hero-form-card .gform_wrapper .gform_button:hover,
.hm-hero-form-card .gform_wrapper input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px var(--hm-blue-glow) !important;
    background-position: right center !important;
}

.hm-hero-form-card .gform_wrapper p,
.hm-hero-form-card .gform_wrapper span,
.hm-hero-form-card .gform_wrapper div {
    color: var(--hm-gray-600) !important;
}

.hm-hero-form-card .gform_wrapper .gform_title,
.hm-hero-form-card .gform_wrapper h2,
.hm-hero-form-card .gform_wrapper h3 {
    color: var(--hm-gray-800) !important;
}

/* Gravity Forms validation/error messages – force RED so they're visible */
.hm-hero-form-card .gform_wrapper .validation_message,
.hm-hero-form-card .gform_wrapper .gfield_description.validation_message,
.hm-hero-form-card .gform_wrapper .validation_error,
.hm-hero-form-card .gform_wrapper .gform_validation_errors,
.hm-hero-form-card .gform_wrapper .gform_validation_errors h2,
.hm-hero-form-card .gform_wrapper .gform_validation_errors h2 span,
.hm-hero-form-card .gform_wrapper .gfield_error .gfield_label,
.hm-hero-form-card .gform_wrapper .gfield_error label,
.hm-hero-form-card .gform_wrapper .gfield_validation_message,
.hm-hero-form-card .gform_wrapper .instruction.validation_message,
.hm-form-card .gform_wrapper .validation_message,
.hm-form-card .gform_wrapper .gfield_description.validation_message,
.hm-form-card .gform_wrapper .validation_error,
.hm-form-card .gform_wrapper .gform_validation_errors,
.hm-form-card .gform_wrapper .gform_validation_errors h2,
.hm-form-card .gform_wrapper .gform_validation_errors h2 span,
.hm-form-card .gform_wrapper .gfield_error .gfield_label,
.hm-form-card .gform_wrapper .gfield_error label,
.hm-form-card .gform_wrapper .gfield_validation_message,
.hm-form-card .gform_wrapper .instruction.validation_message {
    color: #cc0000 !important;
}

.hm-hero-form-card .gform_wrapper .gfield_error input,
.hm-hero-form-card .gform_wrapper .gfield_error textarea,
.hm-hero-form-card .gform_wrapper .gfield_error select,
.hm-form-card .gform_wrapper .gfield_error input,
.hm-form-card .gform_wrapper .gfield_error textarea,
.hm-form-card .gform_wrapper .gfield_error select {
    border-color: #cc0000 !important;
}

.hm-hero-form-card .gform_wrapper .gform_validation_errors,
.hm-form-card .gform_wrapper .gform_validation_errors {
    background: #fff5f5 !important;
    border: 1px solid #cc0000 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
}

/* Scroll Cue */
.hm-scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hm-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--hm-magenta), transparent);
    animation: hmScrollPulse 2s ease-in-out infinite;
}

@keyframes hmScrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ==========================================================================
   TRUST LOGOS STRIP – Glass-morphism overlapping card
   ========================================================================== */
.hm-trust-strip {
    position: relative;
    z-index: 7;
    background: transparent !important;
    padding: 0;
    margin-top: -70px !important;
    margin-bottom: -70px !important;
}

.hm-trust-strip .hm-wrap {
    max-width: var(--hm-wrap-width);
    padding: 0 24px;
    display: flex;
    justify-content: center;
}

.hm-trust-strip-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(12, 18, 32, 0.95), rgba(23, 42, 73, 0.92));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 72px;
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(34, 110, 183, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Animated gradient top line */
.hm-trust-strip-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--hm-gradient-neon);
    background-size: 200% auto;
    animation: hmFormBorderSlide 4s linear infinite;
}

/* Subtle glow behind strip */
.hm-trust-strip-grid::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--hm-gradient-neon);
    border-radius: 18px;
    z-index: -1;
    opacity: 0.15;
    filter: blur(8px);
}

.hm-trust-strip-item {
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
    opacity: 0.75;
    position: relative;
}

.hm-trust-strip-item:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.06);
}

/* Dividers between logos */
.hm-trust-strip-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.hm-trust-strip-item a {
    display: block;
}

.hm-trust-strip-item img {
    height: 90px !important;
    width: auto !important;
    max-width: 220px !important;
    min-width: 60px;
    object-fit: contain !important;
    transition: filter 0.4s, transform 0.4s;
    display: block !important;
}

.hm-trust-strip-item:hover img {
    filter: drop-shadow(0 0 12px rgba(34, 110, 183, 0.5)) brightness(1.1);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.hm-about {
    position: relative;
    z-index: 5;
    padding: 120px 0 100px;
    padding-top: 120px !important;
    background: var(--hm-white) !important;
}

.hm-about-aura {
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    top: -20%;
    right: -20%;
    background: radial-gradient(circle, rgba(238, 47, 36, 0.05), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hm-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hm-about-img-wrap {
    position: relative;
}

.hm-about-img {
    width: 100%;
    border-radius: var(--hm-radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    animation: hmFloat 6s ease-in-out infinite;
}

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

.hm-about-img-glow {
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 40px;
    background: radial-gradient(ellipse, var(--hm-magenta-glow), transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

body.hm-page .hm-about-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--hm-gray-600) !important;
    margin-bottom: 32px;
}

body.hm-page .hm-about-desc p {
    margin: 0 0 16px !important;
    color: var(--hm-gray-600) !important;
}

/* ==========================================================================
   PROGRAMS / SERVICES
   ========================================================================== */
.hm-programs {
    position: relative;
    z-index: 7;
    padding: 120px 0;
    background: var(--hm-gray-100) !important;
}

.hm-programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.hm-program-card {
    position: relative;
    border-radius: var(--hm-radius-lg);
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s,
                border-color 0.4s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid transparent;
}

.hm-program-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(34, 110, 183, 0.4) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15),
                0 0 30px rgba(34, 110, 183, 0.15),
                0 0 0 1px rgba(34, 110, 183, 0.2) !important;
}

/* Gradient glow outline on hover */
.hm-program-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--hm-gradient-neon);
    border-radius: calc(var(--hm-radius-lg) + 2px);
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s;
}

.hm-program-card:hover::after {
    opacity: 0.35;
}

/* Hide the HTML border div — replaced by inner ::before for proper corner clipping */
.hm-program-card-border {
    display: none;
}

.hm-program-card-inner {
    background: var(--hm-white) !important;
    padding: 40px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: var(--hm-radius-lg);
    overflow: hidden;
}

/* Top gradient border — inside card-inner so overflow:hidden clips to rounded corners */
.hm-program-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--hm-gradient-neon);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

.hm-program-card:hover .hm-program-card-inner::before {
    transform: scaleX(1);
}

.hm-program-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(238, 47, 36, 0.1), rgba(34, 110, 183, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--hm-transition);
}

.hm-program-card:hover .hm-program-icon {
    background: var(--hm-gradient-neon);
    box-shadow: 0 8px 24px var(--hm-magenta-glow);
}

.hm-program-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: filter 0.3s;
}

.hm-program-card:hover .hm-program-icon img {
    filter: brightness(0) invert(1);
}

body.hm-page .hm-program-title {
    font-family: var(--hm-font-display) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 0 0 12px !important;
    color: var(--hm-gray-800) !important;
}

body.hm-page .hm-program-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--hm-gray-600) !important;
    margin: 0 0 20px;
    flex: 1;
}

body.hm-page .hm-program-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--hm-font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hm-magenta) !important;
    text-decoration: none !important;
    transition: var(--hm-transition);
}

body.hm-page .hm-program-link:hover {
    gap: 10px;
    color: var(--hm-magenta) !important;
}

.hm-program-link svg { transition: transform 0.3s; }
.hm-program-link:hover svg { transform: translateX(3px); }

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.hm-why {
    position: relative;
    z-index: 13;
    padding: 120px 0;
    background: var(--hm-dark-deep) !important;
}

.hm-why-aura {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hm-why-aura--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 110, 183, 0.2), transparent 70%);
    top: -10%;
    right: -5%;
    animation: hmAuraFloat 15s ease-in-out infinite;
}

.hm-why-aura--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(238, 47, 36, 0.2), transparent 70%);
    bottom: -10%;
    left: -5%;
    animation: hmAuraFloat 18s ease-in-out infinite reverse;
}

.hm-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.hm-why-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--hm-radius-lg);
    padding: 36px 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s,
                box-shadow 0.4s;
}

/* Spotlight glow effect on why cards */
.hm-why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        500px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
        rgba(34, 110, 183, 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.hm-why-card:hover::before {
    opacity: 1;
}

.hm-why-card:hover {
    transform: translateY(-6px);
    border-color: rgba(238, 47, 36, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4),
                0 0 40px var(--hm-magenta-glow);
}

.hm-why-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(34, 110, 183, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: var(--hm-transition);
}

.hm-why-card:hover .hm-why-icon {
    background: var(--hm-gradient-neon);
    box-shadow: 0 4px 16px var(--hm-magenta-glow);
}

.hm-why-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

body.hm-page .hm-why-title {
    font-family: var(--hm-font-display) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--hm-white) !important;
    margin: 0 0 12px !important;
}

body.hm-page .hm-why-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--hm-gray-300) !important;
    margin: 0 0 12px;
}

body.hm-page .hm-why-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--hm-font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hm-blue) !important;
    text-decoration: none !important;
    transition: color 0.3s, gap 0.3s;
}

body.hm-page .hm-why-link:hover {
    color: var(--hm-white) !important;
}

/* ==========================================================================
   FASTEST GROWING SECTION
   ========================================================================== */
.hm-fastest-growing {
    position: relative;
    z-index: 6;
    padding: 60px 0;
    background: var(--hm-white) !important;
}

.hm-fastest-growing-card {
    background-color: #252e41;
    border-radius: var(--hm-radius-lg);
    padding: 48px;
    text-align: center;
}

body.hm-page .hm-fastest-growing-title {
    font-family: var(--hm-font-display) !important;
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-weight: 700 !important;
    color: var(--hm-white) !important;
    margin: 0 0 20px !important;
}

body.hm-page .hm-fastest-growing-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--hm-gray-300) !important;
    max-width: 800px;
    margin: 0 auto 32px !important;
}

.hm-fastest-growing .hm-btn-outline {
    color: var(--hm-white) !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.hm-fastest-growing .hm-btn-outline:hover {
    background: var(--hm-blue) !important;
    border-color: var(--hm-blue);
    color: var(--hm-white) !important;
}

/* ==========================================================================
   STEM ACCREDITATION + REVENUE SECTION
   ========================================================================== */
.hm-stem-revenue {
    position: relative;
    z-index: 8;
    padding: 80px 0;
    background: var(--hm-gray-100) !important;
}

.hm-stem-block {
    background: #252e41;
    border-radius: var(--hm-radius-lg);
    padding: 48px;
    margin-bottom: 60px;
}

.hm-stem-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: center;
}

.hm-stem-badge img {
    max-width: 100%;
    height: auto;
}

body.hm-page .hm-stem-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--hm-gray-300) !important;
    margin: 0 !important;
}

.hm-revenue-block {
    margin-bottom: 0;
}

.hm-revenue-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hm-revenue-chart {
    background: #1a2332;
    padding: 28px;
    border-radius: var(--hm-radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hm-revenue-chart img {
    width: 100%;
    border-radius: var(--hm-radius);
}

body.hm-page .hm-revenue-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 12px 0 0 !important;
    font-style: italic;
}

body.hm-page .hm-revenue-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333333 !important;
    margin: 0 0 24px !important;
}

body.hm-page .hm-revenue-text .hm-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    color: #1c1c1c !important;
}

body.hm-page .hm-revenue-text .hm-btn-outline {
    color: var(--hm-blue) !important;
    border-color: var(--hm-blue);
}

body.hm-page .hm-revenue-text .hm-btn-outline:hover {
    background: var(--hm-blue) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   KIDS LEARN SECTION
   ========================================================================== */
.hm-kids-learn {
    position: relative;
    z-index: 9;
    padding: 80px 0;
    background: var(--hm-white) !important;
}

.hm-kids-learn-block {
    margin-bottom: 60px;
}

.hm-kids-learn-block:last-child {
    margin-bottom: 0;
}

.hm-kids-learn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hm-kids-learn-grid--reverse {
    direction: ltr;
}

.hm-kids-learn-img img {
    width: 100%;
    border-radius: var(--hm-radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

body.hm-page .hm-kids-learn-text .hm-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    color: var(--hm-gray-800) !important;
}

body.hm-page .hm-kids-learn-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--hm-gray-600) !important;
    margin: 0 !important;
}

/* ==========================================================================
   CUSTOMER REVIEWS (BIRDEYE)
   ========================================================================== */
.hm-reviews {
    position: relative;
    z-index: 12;
    padding: 100px 0;
    background: var(--hm-white) !important;
}

body.hm-page .hm-reviews .hm-section-title {
    color: var(--hm-gray-800) !important;
}

.hm-birdeye-widget {
    margin-top: 32px;
}

/* ==========================================================================
   MAKE AN IMPACT SECTION
   ========================================================================== */
.hm-impact {
    position: relative;
    z-index: 15;
    padding: 100px 0;
    background: var(--hm-white) !important;
}

body.hm-page .hm-impact {
    color: var(--hm-gray-800) !important;
}

.hm-impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

body.hm-page .hm-impact-text .hm-section-title {
    color: var(--hm-gray-800) !important;
}

body.hm-page .hm-impact-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--hm-gray-600) !important;
    margin: 0 0 28px !important;
}

.hm-impact-img img {
    width: 100%;
    border-radius: var(--hm-radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   WHY LEARN TO CODE SECTION
   ========================================================================== */
.hm-why-code {
    position: relative;
    z-index: 16;
    padding: 100px 0;
    background: var(--hm-dark-deep) !important;
}

body.hm-page .hm-why-code {
    color: var(--hm-white) !important;
}

.hm-why-code-aura {
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    top: -20%;
    left: -15%;
    background: radial-gradient(circle, rgba(96, 73, 160, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hm-why-code-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.hm-why-code-img img {
    width: 100%;
    border-radius: var(--hm-radius-lg);
}

body.hm-page .hm-why-code-text .hm-section-title {
    color: var(--hm-white) !important;
}

body.hm-page .hm-why-code-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--hm-gray-300) !important;
    margin: 0 0 28px !important;
}

/* ==========================================================================
   BY THE NUMBERS (kept for ACF compatibility)
   ========================================================================== */
.hm-numbers {
    position: relative;
    z-index: 8;
    padding: 120px 0;
    background: var(--hm-white) !important;
}

.hm-numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 48px;
    text-align: center;
}

.hm-number-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hm-number-value {
    font-family: var(--hm-font-display) !important;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

body.hm-page .hm-number-label {
    font-family: var(--hm-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--hm-gray-800) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.hm-page .hm-number-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--hm-gray-600) !important;
    margin: 4px 0 0;
    max-width: 220px;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.hm-testimonials {
    position: relative;
    z-index: 12;
    padding: 120px 0;
    background: var(--hm-dark) !important;
}

.hm-testimonials-aura {
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    top: -30%;
    left: -15%;
    background: radial-gradient(circle, rgba(96, 73, 160, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: hmAuraFloat 20s ease-in-out infinite;
}

.hm-testimonials-slider {
    margin-top: 48px;
}

.hm-testimonial-slide {
    padding: 0 12px;
}

.hm-testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--hm-radius-lg);
    padding: 36px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.hm-testimonial-card:hover {
    border-color: rgba(238, 47, 36, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 24px rgba(96, 73, 160, 0.1);
    transform: translateY(-4px);
}

.hm-testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

body.hm-page .hm-star {
    color: #f5a623 !important;
    font-size: 1.1rem;
}

body.hm-page .hm-testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 0 24px;
    font-style: italic;
}

.hm-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hm-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

body.hm-page .hm-testimonial-name {
    display: block;
    font-size: 0.95rem;
    color: var(--hm-white) !important;
    font-weight: 600;
}

body.hm-page .hm-testimonial-role {
    display: block;
    font-size: 0.8rem;
    color: var(--hm-gray-300) !important;
}

/* Slick overrides */
.hm-testimonials .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
}

.hm-testimonials .slick-dots li button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 0;
    padding: 0;
    cursor: pointer;
    transition: var(--hm-transition);
}

.hm-testimonials .slick-dots li.slick-active button {
    background: var(--hm-magenta);
    box-shadow: 0 0 12px var(--hm-magenta-glow);
    width: 24px;
    border-radius: 4px;
}

.hm-testimonials .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--hm-white) !important;
    font-size: 0;
    cursor: pointer;
    transition: var(--hm-transition);
}

.hm-testimonials .slick-arrow:hover {
    background: var(--hm-magenta);
    border-color: var(--hm-magenta);
}

.hm-testimonials .slick-prev { left: -60px; }
.hm-testimonials .slick-next { right: -60px; }

.hm-testimonials .slick-prev::before,
.hm-testimonials .slick-next::before {
    font-family: 'FontAwesome';
    font-size: 16px;
    color: var(--hm-white);
}

.hm-testimonials .slick-prev::before { content: '\f104'; }
.hm-testimonials .slick-next::before { content: '\f105'; }

/* ==========================================================================
   VIDEO TESTIMONIALS
   ========================================================================== */
.hm-video-testimonials {
    position: relative;
    z-index: 11;
    padding: 120px 0;
    background: var(--hm-dark-deep) !important;
}

.hm-video-aura {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hm-video-aura--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(238, 47, 36, 0.2), transparent 70%);
    top: -15%;
    left: -5%;
    animation: hmAuraFloat 14s ease-in-out infinite;
}

.hm-video-aura--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 110, 183, 0.15), transparent 70%);
    bottom: -10%;
    right: -5%;
    animation: hmAuraFloat 18s ease-in-out infinite reverse;
}

.hm-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.hm-video-card {
    border-radius: var(--hm-radius-lg);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.hm-video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(238, 47, 36, 0.15);
}

.hm-video-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--hm-radius-lg);
    aspect-ratio: 16 / 10;
}

.hm-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hm-video-card:hover .hm-video-thumb img {
    transform: scale(1.08);
}

.hm-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    transition: background 0.3s;
}

.hm-video-card:hover .hm-video-overlay {
    background: linear-gradient(180deg, rgba(238, 47, 36, 0.05) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hm-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 5;
    transition: transform 0.3s, filter 0.3s;
    filter: drop-shadow(0 4px 16px rgba(238, 47, 36, 0.4));
}

.hm-video-card:hover .hm-video-play {
    transform: translate(-50%, -50%) scale(1.15);
    filter: drop-shadow(0 8px 24px rgba(238, 47, 36, 0.6));
}

body.hm-page .hm-video-name {
    font-family: var(--hm-font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hm-white) !important;
    text-align: center;
    margin: 14px 0 0;
}

/* Video Modal */
.hm-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.hm-video-modal.hm-video-modal--open {
    opacity: 1;
    pointer-events: auto;
}

.hm-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.hm-video-modal-content {
    position: relative;
    z-index: 2;
    width: 90vw;
    max-width: 900px;
}

body.hm-page .hm-video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none !important;
    border: none;
    color: var(--hm-white) !important;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
}

body.hm-page .hm-video-modal-close:hover {
    color: var(--hm-magenta) !important;
    transform: rotate(90deg);
}

.hm-video-modal-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: var(--hm-radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(238, 47, 36, 0.15);
}

.hm-video-modal-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   PARTNERS
   ========================================================================== */
.hm-partners {
    position: relative;
    z-index: 17;
    padding: 100px 0;
    background: var(--hm-gray-100) !important;
}

.hm-partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.hm-partner-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--hm-white);
    border-radius: var(--hm-radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    min-height: 80px;
}

.hm-partner-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08),
                0 0 16px rgba(238, 47, 36, 0.05);
    border-color: rgba(238, 47, 36, 0.2);
}

.hm-partner-logo-card img {
    max-height: 48px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}

.hm-partner-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   CTA / CONTACT
   ========================================================================== */
.hm-cta {
    position: relative;
    z-index: 18;
    padding: 120px 0;
    background: var(--hm-dark-deep) !important;
}

.hm-cta-aura {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hm-cta-aura--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(238, 47, 36, 0.25), transparent 70%);
    top: -20%;
    left: -10%;
    animation: hmAuraFloat 16s ease-in-out infinite;
}

.hm-cta-aura--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 110, 183, 0.2), transparent 70%);
    bottom: -20%;
    right: -5%;
    animation: hmAuraFloat 20s ease-in-out infinite reverse;
}

.hm-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hm-cta-text {
    align-self: start;
}

body.hm-page .hm-cta-title {
    font-family: var(--hm-font-display) !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 700 !important;
    color: var(--hm-white) !important;
    line-height: 1.15 !important;
    margin: 0 0 20px !important;
}

body.hm-page .hm-cta-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--hm-gray-300) !important;
    margin: 0 0 32px;
}

.hm-cta-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.hm-page .hm-cta-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85) !important;
}

.hm-cta-bullets li svg {
    flex-shrink: 0;
}

.hm-form-card {
    background: var(--hm-white) !important;
    border-radius: var(--hm-radius-lg);
    padding: 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Force ALL text dark inside CTA form card (same as hero form card) */
.hm-form-card,
.hm-form-card * {
    color: var(--hm-gray-800) !important;
}

.hm-form-card .gform_wrapper p,
.hm-form-card .gform_wrapper span,
.hm-form-card .gform_wrapper div {
    color: var(--hm-gray-600) !important;
}

.hm-form-card .gform_wrapper .gform_title,
.hm-form-card .gform_wrapper h2,
.hm-form-card .gform_wrapper h3 {
    color: var(--hm-gray-800) !important;
}

/* Subtle glow border on form card */
.hm-form-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--hm-gradient-neon);
    border-radius: calc(var(--hm-radius-lg) + 1px);
    z-index: -1;
    opacity: 0.3;
}

/* Gravity Forms overrides inside form card */
.hm-form-card .gform_wrapper .gform_title {
    font-family: var(--hm-font-display) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--hm-gray-800) !important;
    margin-bottom: 4px !important;
}

.hm-form-card .gform_wrapper .gform_description {
    color: var(--hm-gray-600) !important;
    font-size: 0.9rem !important;
    margin-bottom: 20px !important;
}

.hm-form-card .gform_wrapper input[type="text"],
.hm-form-card .gform_wrapper input[type="email"],
.hm-form-card .gform_wrapper input[type="tel"],
.hm-form-card .gform_wrapper input[type="url"],
.hm-form-card .gform_wrapper textarea,
.hm-form-card .gform_wrapper select {
    border: 1.5px solid var(--hm-gray-200) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-family: var(--hm-font-body) !important;
    font-size: 0.95rem !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
    background: var(--hm-white) !important;
    color: var(--hm-gray-800) !important;
}

.hm-form-card .gform_wrapper input:focus,
.hm-form-card .gform_wrapper textarea:focus,
.hm-form-card .gform_wrapper select:focus {
    border-color: var(--hm-magenta) !important;
    box-shadow: 0 0 0 3px var(--hm-magenta-glow) !important;
    outline: none !important;
}

.hm-form-card .gform_wrapper label,
.hm-form-card .gform_wrapper .gfield_label {
    color: var(--hm-gray-800) !important;
    font-family: var(--hm-font-body) !important;
}

.hm-form-card .gform_wrapper .gform_button,
.hm-form-card .gform_wrapper input[type="submit"] {
    background: var(--hm-gradient-neon) !important;
    background-size: 200% auto !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 36px !important;
    font-family: var(--hm-font-display) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
    width: 100% !important;
}

.hm-form-card .gform_wrapper .gform_button:hover,
.hm-form-card .gform_wrapper input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px var(--hm-magenta-glow) !important;
    background-position: right center !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hm-footer {
    position: relative;
    z-index: 19;
    background: var(--hm-dark) !important;
    padding: 80px 0 40px;
    border-top: 1px solid var(--hm-surface-border);
}

.hm-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

/* Style logo images inside footer widgets */
body.hm-page .hm-footer-col .wp-block-image img {
    max-width: 180px !important;
    height: auto !important;
    width: auto !important;
}

body.hm-page .hm-footer-col {
    color: var(--hm-gray-300) !important;
    font-size: 0.9rem;
    line-height: 1.7;
}

body.hm-page .hm-footer-col .widget-title {
    font-family: var(--hm-font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hm-white) !important;
    margin-bottom: 16px;
    display: block;
}

body.hm-page .hm-footer-col a {
    color: var(--hm-gray-300) !important;
    text-decoration: none;
    transition: color 0.3s;
}

body.hm-page .hm-footer-col a:hover { color: var(--hm-magenta) !important; }

.hm-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hm-footer-col ul li { margin: 8px 0; }

.hm-footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 32px 0;
    border-top: 1px solid var(--hm-surface-border);
}

body.hm-page .hm-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hm-surface);
    border: 1px solid var(--hm-surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hm-gray-300) !important;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--hm-transition);
}

body.hm-page .hm-footer-social a:hover {
    background: var(--hm-magenta);
    border-color: var(--hm-magenta);
    color: var(--hm-white) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px var(--hm-magenta-glow);
}

.hm-footer-copy {
    text-align: center;
    padding-top: 16px;
}

body.hm-page .hm-footer-copy p {
    font-size: 0.8rem;
    color: var(--hm-gray-600) !important;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .hm-testimonials .slick-prev { left: -20px; }
    .hm-testimonials .slick-next { right: -20px; }
}

@media (max-width: 991px) {
    .hm-nav-links { display: none; }
    .hm-nav-right .hm-btn { display: none; }
    .hm-hamburger { display: flex; }

    .hm-hero > .hm-wrap {
        padding: 0 24px !important;
    }

    .hm-nav .hm-wrap.hm-nav-inner {
        padding: 0 24px !important;
    }

    .hm-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hm-hero-robot {
        display: none;
    }

    .hm-about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hm-programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-cta-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hm-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hm-footer-widgets {
        grid-template-columns: 1fr 1fr;
    }

    .hm-testimonials .slick-prev,
    .hm-testimonials .slick-next { display: none !important; }

    .hm-stem-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hm-revenue-grid {
        grid-template-columns: 1fr;
    }

    .hm-impact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hm-why-code-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hm-kids-learn-grid,
    .hm-kids-learn-grid--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .hm-hero {
        padding: 100px 0 60px;
        min-height: auto;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .hm-hero > .hm-wrap {
        padding: 0 16px !important;
    }

    .hm-nav .hm-wrap.hm-nav-inner {
        padding: 0 16px !important;
    }

    .hm-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hm-hero-robot {
        display: none;
    }

    /* Prevent any horizontal overflow */
    .hm-hero-fx,
    .hm-hero-halo {
        display: none;
    }

    body.hm-page .hm-hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    }

    .hm-hero-actions {
        flex-direction: column;
    }

    .hm-hero-stats {
        gap: 16px;
    }

    .hm-hero-stat-number {
        font-size: 1.2rem;
    }

    .hm-hero-form-card {
        padding: 24px;
        animation: none;
    }

    .hm-hero-content::before {
        display: none;
    }

    .hm-trust-strip {
        margin-top: -30px;
    }

    .hm-trust-strip-grid {
        gap: 16px;
        padding: 16px 20px;
    }

    .hm-trust-strip-item img {
        height: 52px !important;
    }

    .hm-trust-strip-item:not(:last-child)::after {
        display: none;
    }

    .hm-programs-grid,
    .hm-why-grid {
        grid-template-columns: 1fr;
    }

    .hm-numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .hm-video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hm-partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .hm-section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
    }

    .hm-about,
    .hm-programs,
    .hm-why,
    .hm-numbers,
    .hm-video-testimonials,
    .hm-testimonials,
    .hm-reviews,
    .hm-impact,
    .hm-why-code,
    .hm-fastest-growing,
    .hm-stem-revenue,
    .hm-kids-learn,
    .hm-partners,
    .hm-cta {
        padding: 60px 0;
    }

    .hm-fastest-growing-card {
        padding: 24px;
    }

    .hm-stem-block {
        padding: 24px;
    }

    .hm-footer-widgets {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hm-form-card {
        padding: 24px;
    }

    .hm-scroll-cue { display: none; }

    /* --- MOBILE PERFORMANCE: kill decorative backgrounds --- */
    .hm-about::after,
    .hm-programs::after,
    .hm-kids-learn::after,
    .hm-reviews::after,
    .hm-impact::after,
    .hm-partners::after,
    .hm-stem-revenue::after {
        display: none !important;
    }

    /* --- MOBILE PERFORMANCE: kill heavy infinite animations --- */
    .hm-hero-content::before,
    .hm-hero::after,
    .hm-cta-aura,
    .hm-why-aura,
    .hm-testimonials-aura,
    .hm-video-aura,
    .hm-hero-aura {
        display: none !important;
    }

    .hm-hero-form-card {
        animation: none !important;
    }

    .hm-gradient-text {
        animation: none !important;
    }

    .hm-btn-glow .hm-btn-shine {
        display: none !important;
    }

    .hm-trust-strip-grid::before,
    .hm-trust-strip-grid::after {
        animation: none !important;
    }

    .hm-program-card-inner::before {
        animation: none !important;
    }

    .hm-video-play {
        animation: none !important;
    }
}

@media (max-width: 480px) {
    .hm-trust-strip-grid {
        gap: 12px;
        padding: 10px 16px;
    }

    .hm-trust-strip-item img {
        height: 42px !important;
    }

    .hm-numbers-grid {
        grid-template-columns: 1fr;
    }

    .hm-partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Fallback Icons (Font Awesome) ---------- */
.hm-program-icon--fa {
    font-size: 24px;
    background: linear-gradient(135deg, rgba(238, 47, 36, 0.15), rgba(34, 110, 183, 0.15));
}

.hm-program-icon--fa .fa {
    background: var(--hm-gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hm-program-card:hover .hm-program-icon--fa .fa {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.hm-why-icon--fa {
    font-size: 22px;
}

.hm-why-icon--fa .fa {
    color: var(--hm-magenta);
}

.hm-why-card:hover .hm-why-icon--fa .fa {
    color: #fff;
}

/* About placeholder */
.hm-about-img-wrap--placeholder {
    animation: hmFloat 6s ease-in-out infinite;
}

.hm-about-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--hm-radius-lg);
    background: linear-gradient(135deg, var(--hm-dark-card), var(--hm-dark-surface));
    border: 1px solid var(--hm-surface-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.hm-about-placeholder .fa {
    font-size: 48px;
    background: var(--hm-gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hm-about-placeholder span {
    font-family: var(--hm-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--hm-gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Testimonial avatar placeholder */
.hm-testimonial-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hm-magenta), var(--hm-purple));
    color: #fff !important;
    font-family: var(--hm-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- Additional Animations & Effects ---------- */

/* Shimmer line on section titles */
.hm-section-title {
    position: relative;
}

/* Glow underline on section titles */
.hm-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--hm-gradient-neon);
    border-radius: 3px;
    margin-top: 16px;
    margin-bottom: 24px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 12px rgba(238, 47, 36, 0.2);
}

.hm-section-title.hm-text-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* Card entrance animations - staggered with scale and rotation */
.hm-program-card[data-reveal].hm-visible,
.hm-why-card[data-reveal].hm-visible,
.hm-video-card[data-reveal].hm-visible,
.hm-number-item[data-reveal].hm-visible {
    animation: hmCardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hmCardEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.92) rotateX(4deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* Gradient text shimmer effect */
.hm-gradient-text {
    position: relative;
    animation: hmGradientTextShimmer 4s ease-in-out infinite;
    background-size: 200% auto !important;
}

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

/* Hover glow on number items */
.hm-number-item {
    padding: 32px 16px;
    border-radius: var(--hm-radius-lg);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.hm-number-item:hover {
    background: rgba(238, 47, 36, 0.03);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Neon border line animation on program cards on hover */
.hm-program-card-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--hm-gradient-neon);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hm-program-card:hover .hm-program-card-inner::after {
    width: 100%;
}

/* Pulse animation for icons on hover */
.hm-program-card:hover .hm-program-icon,
.hm-why-card:hover .hm-why-icon {
    animation: hmIconPulse 0.5s ease;
}

@keyframes hmIconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Typing cursor blink for kicker line — only after revealed */
.hm-kicker.hm-visible .hm-kicker-line,
.hm-visible .hm-kicker .hm-kicker-line {
    animation: hmKickerPulse 2s ease-in-out 0.8s infinite;
}

@keyframes hmKickerPulse {
    0%, 100% { opacity: 1; width: 32px; }
    50% { opacity: 0.5; width: 48px; }
}

/* Social icon rotation on hover */
body.hm-page .hm-footer-social a:hover {
    animation: hmSocialPop 0.3s ease;
}

@keyframes hmSocialPop {
    0% { transform: translateY(-3px) scale(1); }
    50% { transform: translateY(-3px) scale(1.15); }
    100% { transform: translateY(-3px) scale(1); }
}

/* Why card corner glow */
.hm-why-card::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at top right, rgba(238, 47, 36, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.hm-why-card:hover::after {
    opacity: 1;
}

/* Testimonial card quote mark decoration */
.hm-testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 4rem;
    line-height: 1;
    font-family: Georgia, serif;
    background: var(--hm-gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    pointer-events: none;
}

.hm-testimonial-card {
    position: relative;
}

/* ---------- ENHANCED ANIMATIONS & EFFECTS ---------- */

/* Kicker line grow animation on reveal */
.hm-kicker .hm-kicker-line {
    width: 0;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.hm-kicker.hm-visible .hm-kicker-line,
.hm-visible .hm-kicker .hm-kicker-line {
    width: 32px;
}

/* Section title underline expand on reveal */
.hm-section-title::after {
    width: 0 !important;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s !important;
}

.hm-visible .hm-section-title::after,
.hm-section-title.hm-visible::after {
    width: 80px !important;
}

/* Button reveal — slight scale bounce */
.hm-btn[data-reveal],
.hm-visible .hm-btn {
    transition: opacity 0.6s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Section entrance slide effects */
[data-reveal="slide-right"] {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="slide-right"].hm-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-reveal="slide-left"] {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="slide-left"].hm-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-reveal="scale"] {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="scale"].hm-visible {
    opacity: 1;
    transform: scale(1);
}

[data-reveal="fade"] {
    opacity: 0;
    transform: none;
    transition: opacity 1s ease;
}

[data-reveal="fade"].hm-visible {
    opacity: 1;
}

/* Image hover zoom effect for all section images */
.hm-about-img,
.hm-kids-learn-img img,
.hm-impact-img img,
.hm-why-code-img img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s !important;
}

.hm-about-img:hover,
.hm-kids-learn-img img:hover,
.hm-impact-img img:hover,
.hm-why-code-img img:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.15) !important;
}

/* Animated counter numbers glow */
.hm-number-value {
    transition: text-shadow 0.3s;
}

.hm-number-item:hover .hm-number-value {
    text-shadow: 0 0 30px rgba(238, 47, 36, 0.3);
}

/* Program card spotlight follow effect (college-accelerator style) */
.hm-program-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        350px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
        rgba(34, 110, 183, 0.12),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 1;
    border-radius: var(--hm-radius-lg);
}

.hm-program-card:hover::before {
    opacity: 1;
}

/* Animated gradient border on fastest growing card */
.hm-fastest-growing-card {
    position: relative;
    overflow: hidden;
}

.hm-fastest-growing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--hm-gradient-neon);
    background-size: 200% auto;
    animation: hmFormBorderSlide 3s linear infinite;
}

/* STEM block animated border */
.hm-stem-block {
    position: relative;
    overflow: hidden;
}

.hm-stem-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--hm-gradient-neon);
    background-size: auto 200%;
    animation: hmVertBorderSlide 3s linear infinite;
}

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

/* Section divider line between sections */
.hm-about::before,
.hm-programs::before,
.hm-stem-revenue::before,
.hm-kids-learn::before,
.hm-reviews::before,
.hm-impact::before,
.hm-partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 110, 183, 0.25), rgba(238, 47, 36, 0.25), transparent);
}

/* ---- Light section background decorations ---- */

/* About: soft gradient blobs + dot grid */
.hm-about::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 85% 75%, rgba(34, 110, 183, 0.06), transparent 60%),
        radial-gradient(ellipse 40% 50% at 10% 20%, rgba(96, 73, 160, 0.05), transparent 60%),
        radial-gradient(rgba(34, 110, 183, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
    mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black 20%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* Programs: tech dot grid pattern */
.hm-programs::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 1.5px at center, rgba(34, 110, 183, 0.10) 0%, transparent 100%);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.5), transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.5), transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* Kids-learn: gradient arcs from corners */
.hm-kids-learn::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 45% 55% at 5% 15%, rgba(96, 73, 160, 0.06), transparent 55%),
        radial-gradient(ellipse 45% 55% at 95% 85%, rgba(34, 110, 183, 0.06), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Reviews: colored gradient blobs */
.hm-reviews::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 40% 50% at 15% 80%, rgba(238, 47, 36, 0.05), transparent 55%),
        radial-gradient(ellipse 35% 45% at 90% 25%, rgba(34, 110, 183, 0.05), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Impact: subtle diagonal stripe pattern */
.hm-impact::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 80% 70%, rgba(34, 110, 183, 0.05), transparent 55%),
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 48px,
            rgba(34, 110, 183, 0.025) 48px,
            rgba(34, 110, 183, 0.025) 49px
        );
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Partners: gradient wash + subtle grid */
.hm-partners::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 85% 20%, rgba(34, 110, 183, 0.06), transparent 55%),
        radial-gradient(ellipse 45% 55% at 10% 80%, rgba(96, 73, 160, 0.04), transparent 55%),
        linear-gradient(rgba(34, 110, 183, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 110, 183, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
    mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black 10%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* Stem-revenue: cross-hatch pattern */
.hm-stem-revenue::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 40% 50% at 20% 30%, rgba(238, 47, 36, 0.04), transparent 55%),
        linear-gradient(45deg, rgba(34, 110, 183, 0.03) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(238, 47, 36, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(0, 0, 0, 0.5), transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(0, 0, 0, 0.5), transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Video card play button pulse */
.hm-video-play {
    animation: hmPlayPulse 2s ease-in-out infinite;
}

@keyframes hmPlayPulse {
    0%, 100% { filter: drop-shadow(0 4px 16px rgba(238, 47, 36, 0.4)); }
    50% { filter: drop-shadow(0 4px 24px rgba(238, 47, 36, 0.7)); }
}

/* Partner logo card subtle shimmer on hover */
.hm-partner-logo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(34, 110, 183, 0.04) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    border-radius: var(--hm-radius);
}

.hm-partner-logo-card:hover::after {
    opacity: 1;
}

.hm-partner-logo-card {
    position: relative;
    overflow: hidden;
}

/* CTA section animated background */
.hm-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(96, 73, 160, 0.08), transparent 60%);
    animation: hmCtaPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hmCtaPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* Kids learn image decorative corner */
.hm-kids-learn-img {
    position: relative;
}

.hm-kids-learn-img::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 60%;
    height: 60%;
    border: 2px solid rgba(34, 110, 183, 0.15);
    border-radius: var(--hm-radius-lg);
    pointer-events: none;
    transition: transform 0.4s, opacity 0.4s;
    opacity: 0.5;
}

.hm-kids-learn-img:hover::after {
    transform: translate(4px, 4px);
    opacity: 0.8;
}

/* Impact section image decorative glow */
.hm-impact-img {
    position: relative;
}

.hm-impact-img::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 8%;
    right: 8%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(238, 47, 36, 0.15), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

/* Why code section floating particles (CSS only) */
.hm-why-code::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(34, 110, 183, 0.3) 50%, transparent 50%),
        radial-gradient(2px 2px at 30% 60%, rgba(238, 47, 36, 0.2) 50%, transparent 50%),
        radial-gradient(2px 2px at 70% 30%, rgba(96, 73, 160, 0.25) 50%, transparent 50%),
        radial-gradient(2px 2px at 90% 70%, rgba(34, 110, 183, 0.2) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 50% 80%, rgba(203, 84, 79, 0.3) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 20% 90%, rgba(238, 47, 36, 0.2) 50%, transparent 50%);
    animation: hmParticlesDrift 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes hmParticlesDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-30px); }
}

/* Button ripple effect */
.hm-btn-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
}

.hm-btn-glow:hover::after {
    opacity: 1;
    transform: scale(1.5);
}

/* Text reveal animation for hero */
.hm-hero-title.hm-text-revealed {
    animation: hmTitleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hmTitleReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Stagger child reveals in hero */
.hm-hero-content .hm-kicker {
    animation: hmHeroChildReveal 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hm-hero-content .hm-hero-title {
    animation: hmHeroChildReveal 0.7s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hm-hero-content .hm-hero-sub {
    animation: hmHeroChildReveal 0.7s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hm-hero-content .hm-hero-actions {
    animation: hmHeroChildReveal 0.7s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hm-hero-content .hm-hero-stats {
    animation: hmHeroChildReveal 0.7s 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hm-hero-form {
    animation: hmHeroFormReveal 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hmHeroChildReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hmHeroFormReveal {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Smooth scroll behavior */
body.hm-page {
    scroll-behavior: smooth;
}

/* ---------- Hover Lift Effect (global) ---------- */
body.hm-page .hm-program-card,
body.hm-page .hm-why-card,
body.hm-page .hm-video-card,
body.hm-page .hm-testimonial-card,
body.hm-page .hm-partner-logo-card,
body.hm-page .hm-number-item {
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Ensure visible state is properly shown even without JS */
body.hm-page .hm-no-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
}

/* Fallback: if JS hasn't loaded after 3s, show everything */
@keyframes hmFallbackReveal {
    to { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
    animation: hmFallbackReveal 0s 3s forwards;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hm-marquee-track {
        animation: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .hm-hero-content .hm-kicker,
    .hm-hero-content .hm-hero-title,
    .hm-hero-content .hm-hero-sub,
    .hm-hero-content .hm-hero-actions,
    .hm-hero-content .hm-hero-stats,
    .hm-hero-form {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
