/* Homepage-only decorative market motion. No shared fonts, content or news rules. */
body.nexito-home[data-page="home"] .nx-home-main {
  --nx-market-wing-ready: 1;
}

body.nexito-home[data-page="home"] .nx-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  background: radial-gradient(ellipse at 27% 57%, rgba(19,77,93,.18), transparent 56%),
    radial-gradient(ellipse at 6% 88%, rgba(53,36,84,.12), transparent 44%), #061019;
}
body.is-en.nexito-home[data-page="home"] .nx-hero {
  background: radial-gradient(ellipse at 73% 57%, rgba(19,77,93,.18), transparent 56%),
    radial-gradient(ellipse at 94% 88%, rgba(53,36,84,.12), transparent 44%), #061019;
}
body.nexito-home[data-page="home"] .nx-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
body.nexito-home[data-page="home"] .nx-mw-market-canvas,
body.nexito-home[data-page="home"] .nx-mw-wing-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
body.nexito-home[data-page="home"] .nx-mw-market-canvas { z-index: 0; }
body.nexito-home[data-page="home"] .nx-hero-media {
  position: relative;
  z-index: 1;
  height: 416px;
  min-height: 0;
  min-width: 0;
  margin: 0;
  direction: ltr;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
body.nexito-home[data-page="home"] .nx-hero-media::after { display: none; }
body.nexito-home[data-page="home"] .nx-hero-media > .nx-mw-poster {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; border: 0; border-radius: 0; box-shadow: none;
  min-height: 0; max-width: none; transform: none; filter: none;
}
body.nexito-home[data-page="home"] .nx-mw-wing-canvas { visibility: hidden; }
body.nexito-home[data-page="home"] .nx-market-wing-ready .nx-mw-wing-canvas { visibility: visible; }
body.nexito-home[data-page="home"] .nx-market-wing-ready > .nx-mw-poster { visibility: hidden; }

/* First-paint fade is CSS-native; JS never hides already-visible hero content. */
body.nexito-home[data-page="home"] .nx-hero-copy :is(h1,p) {
  animation: nx-home-first-fade .55s cubic-bezier(.25,.46,.45,.94) both;
}
body.nexito-home[data-page="home"] .nx-hero-copy > p { animation-delay: .08s; }
@keyframes nx-home-first-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 899px) {
  body.nexito-home[data-page="home"] .nx-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  body.nexito-home[data-page="home"] .nx-hero-media {
    width: 100%;
    max-width: 510px;
    height: 305px;
    margin-inline: auto;
  }
}
@media (max-width: 420px) {
  body.nexito-home[data-page="home"] .nx-hero-media { height: 258px; }
}
@media (prefers-reduced-motion: reduce), print {
  body.nexito-home[data-page="home"] .nx-hero-copy :is(h1,p) { animation: none; }
}
@media print {
  body.nexito-home[data-page="home"] .nx-mw-market-canvas,
  body.nexito-home[data-page="home"] .nx-mw-wing-canvas { display: none !important; }
  body.nexito-home[data-page="home"] .nx-market-wing-ready > .nx-mw-poster { visibility: visible; }
}
