/* Restore the dark resin-card hero (home-preview) ABOVE Meta/x.ai white sections.
   Loaded last so it wins over theme.css / inline white hero. */

body.home-page .hp .hp-hero {
  display: block !important;
  min-height: 840px !important;
  padding: 46px 0 0 !important;
  background: radial-gradient(ellipse at 50% 82%, #232528 0, #141415 38%, #101011 75%) !important;
  color: #f5f5f1 !important;
  align-items: stretch !important;
}
body.home-page .hp .hp-hero .hp-wrap { max-width: 1080px; }
body.home-page .hp .hp-hero .hp-h1 { color: #f5f5f1 !important; font-size: clamp(52px, 6.2vw, 88px) !important; line-height: 1.06 !important; letter-spacing: -.055em !important; font-weight: 500 !important; }
body.home-page .hp .hp-hero .grad { display:inline !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; }
body.home-page .hp .hp-hero .hp-en,
body.home-page .hp .hp-hero p.lead,
body.home-page .hp .hp-hero .hp-eyebrow { color: #aaaab0 !important; }
body.home-page .hp .hp-hero .hp-eyebrow i { background: #e8fc8b !important; box-shadow: 0 0 14px #e8fc8b44; }
body.home-page .hp .hp-hero .home-hero-actions { display: none !important; } /* preview used floating cursors, not pill CTAs */

/* Dark frosted header while hero is in view */
body.home-page > header.sticky {
  background: rgba(17,17,18,.72) !important;
  border: 0 !important;
  border-bottom: 0 !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}
body.home-page > header.sticky > div { max-width: 1440px !important; height: 100px !important; padding: 0 48px !important; }
body.home-page > header.sticky nav {
  background: #202021 !important;
  border: 1px solid #2a2a2c !important;
  border-radius: 40px !important;
  padding: 7px !important;
}
body.home-page > header.sticky nav a { color: #97979d !important; }
body.home-page > header.sticky nav a:hover,
body.home-page > header.sticky nav a[href="/"] { color: #fff !important; background: #303032 !important; }
body.home-page > header.sticky > div > a,
body.home-page > header.sticky > div > a span,
body.home-page > header.sticky > div > a .hero-brand-mark,
body.home-page > header.sticky #loginBtn,
body.home-page > header.sticky .hero-menu-toggle { color: #fff !important; }
body.home-page > header a > div.bg-gradient-to-br::after { color: #fff !important; }
body.home-page > header.sticky #loginBtn {
  border: 0 !important;
  background: transparent !important;
}
body.home-page .hero-contact {
  color: #161617 !important;
  background: #f5f5f1 !important;
  border-radius: 14px !important;
}

/* After scroll into white Meta sections, switch header to light */
body.home-page.hp-scrolled > header.sticky {
  background: rgba(255,255,255,.95) !important;
  border-bottom: 1px solid #ececec !important;
}
body.home-page.hp-scrolled > header.sticky nav { background: #f6f6f6 !important; border-color: #eee !important; }
body.home-page.hp-scrolled > header.sticky nav a { color: #777 !important; }
body.home-page.hp-scrolled > header.sticky nav a:hover,
body.home-page.hp-scrolled > header.sticky nav a[href="/"] { color: #111 !important; background: #e9e9e9 !important; }
body.home-page.hp-scrolled > header.sticky > div > a,
body.home-page.hp-scrolled > header.sticky > div > a span,
body.home-page.hp-scrolled > header.sticky > div > a .hero-brand-mark,
body.home-page.hp-scrolled > header.sticky #loginBtn,
body.home-page.hp-scrolled > header.sticky .hero-menu-toggle { color: #111 !important; }
body.home-page.hp-scrolled > header a > div.bg-gradient-to-br::after { color: #111 !important; }
body.home-page.hp-scrolled .hero-contact { background: #0b0b0b !important; color: #fff !important; }

/* Floating cursors removed per Meta cleanup */
.hero-spark,.hero-cursor{display:none!important;}

/* Safety: never leave hero text invisible if JS stalls */
html.hero-entry-ready .hp-hero-inner { visibility: visible; }
