/* Hero text stack — AWSA-style center: brand → short line → CTA.
   Homepage only (#hero). Does not touch other sections. */
#hero.hero-section {
  justify-content: center;
}

#hero .container.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#hero .hero-block {
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  min-height: min(68vh, 640px);
}

/* Brand first */
#hero .hero-title-block {
  order: 1;
  z-index: 2;
  position: relative;
  width: 100%;
  max-width: 1080px;
  height: clamp(128px, 20vw, 240px);
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

/* Keep h1 for SEO/CMS; particles paint the visible brand */
#hero .hero-heading-17cqw {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  font-size: 1px !important;
}

/* Pass-through so #nexlab-grid hover still works under/around the word.
   Particle scatter listens on window and only reacts over glyphs. */
#hero .nexlab-hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#hero .nexlab-hero-particles canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Supporting copy + CTA under brand */
#hero .hero-top-content {
  order: 2;
  z-index: 6;
  align-items: center;
  text-align: center;
  margin: 12px auto 0;
  max-width: 460px;
  width: 100%;
  pointer-events: auto;
}

/* Eyebrow competes with the giant brand — hide in this composition */
#hero .hero-top-content .sub-title {
  display: none;
}

#hero .hero-sub-heading {
  max-width: 480px;
  margin: 0 auto 30px;
  text-align: center;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.5;
  font-weight: 700;
  opacity: 0.95;
}

/* Vengeance Stagger Text — clipped word reveal under brand */
#hero .hero-sub-heading .nexlab-stagger {
  display: inline-block;
  max-width: 100%;
}

#hero .hero-sub-heading .nexlab-stagger__clip {
  display: inline-block;
  overflow: hidden;
  position: relative;
  vertical-align: top;
}

#hero .hero-sub-heading .nexlab-stagger__inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

#hero .hero-sub-heading.is-stagger-in .nexlab-stagger__inner {
  animation-name: nexlab-stagger-up;
  animation-fill-mode: forwards;
}

@keyframes nexlab-stagger-up {
  to {
    transform: translateY(0%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero .hero-sub-heading .nexlab-stagger__inner {
    transform: none;
    animation: none !important;
  }
}

#hero .hero-top-content > div {
  display: flex;
  justify-content: center;
  width: 100%;
}

#hero .hero-top-content .primary-button {
  margin-left: auto;
  margin-right: auto;
}

/* Keep atmosphere orbs, but don’t fight the centered type */
#hero .circle-small,
#hero .circle-small-2,
#hero .circle-small-3 {
  opacity: 0.9;
}

/*
  Atmosphere orbs: solid peach behind the particle word.
  No CSS type inside orbs — WebGL glyphs and DOM type never align 1:1.
*/
#hero .circle-hero,
#hero .circle-left-top {
  z-index: 1 !important;
  opacity: 0.95;
  overflow: visible;
  pointer-events: none;
  background: #ffa66b !important;
  background-color: #ffa66b !important;
  background-image: none !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  box-shadow: none !important;
  will-change: transform;
}

#hero .circle-hero::after,
#hero .circle-left-top::after {
  display: none !important;
  content: none !important;
}

#hero .circle-small,
#hero .circle-small-2,
#hero .circle-small-3 {
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: normal !important;
  background: #ffa66b !important;
  background-color: #ffa66b !important;
  background-image: none !important;
  filter: none !important;
  box-shadow: none !important;
}

html.light #hero .circle-hero,
html.light #hero .circle-left-top {
  opacity: 0.9;
  background: #ffa66b !important;
  box-shadow: none !important;
}

/* Particles above orbs; CTA above both */


#hero ._60px-star-loop {
  z-index: 2;
}

/* Social / IT Studiya row stays bottom; don’t pull focus from the stack */
#hero .hero-social-block {
  z-index: 2;
}

@media screen and (max-width: 991px) {
  #hero .hero-block {
    min-height: min(62vh, 560px);
    gap: 4px;
  }

  #hero .hero-title-block {
    height: clamp(110px, 24vw, 190px);
  }

  #hero .hero-sub-heading {
    margin-bottom: 24px;
    max-width: 380px;
    font-size: clamp(16px, 2vw, 20px);
  }
}

@media screen and (max-width: 479px) {
  #hero .hero-block {
    min-height: 58vh;
  }

  #hero .hero-title-block {
    height: clamp(88px, 26vw, 140px);
  }

  #hero .hero-top-content {
    max-width: 92%;
  }

  #hero .hero-sub-heading {
    font-size: 16px;
    max-width: 300px;
    margin-bottom: 22px;
    font-weight: 700;
  }
}
