/* React Bits TechText — hero + section titles */
.tech-text {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  user-select: none;
  color: #fff;
}

.tech-text-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Shrink-wrap to the real text so size + margin stay exact (incl. centered titles) */
.tech-text-heading .tech-text-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
}

/* Service door heroes — two-line Bebas stack */
.service-door .door-title.tech-text-heading .door-tech-wrap {
  display: block;
  width: max-content;
  max-width: 100%;
}

.service-door .door-title.tech-text-heading .tech-text-static {
  display: block;
}

.tech-text-heading .tech-text-host {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: auto;
}

.tech-text-heading.tech-text-on .tech-text-static {
  opacity: 0;
  pointer-events: none;
}

.tech-text-heading.tech-text-on .tech-text-host {
  display: block;
}

/* Hero — two-line Bebas stack match */
.hero-tech-text {
  display: none;
  width: 100%;
  max-width: min(18ch, 100%);
  margin: 0;
  font-family: "Bebas Neue", Impact, system-ui, sans-serif;
  font-size: clamp(3.35rem, 7.4vw, 5.65rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.82;
  text-transform: uppercase;
  height: calc(1em * 1.58);
}

.hero-tech-on .hero-tech-text {
  display: block;
}

.hero-tech-on .hero-headline-stack {
  display: none !important;
}

.hero-tech-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero-tech-text,
  .tech-text-heading .tech-text-host {
    display: none !important;
  }

  .hero-tech-on .hero-headline-stack {
    display: block !important;
  }

  .tech-text-heading.tech-text-on .tech-text-static {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tech-text,
  .tech-text-heading .tech-text-host {
    display: none !important;
  }

  .hero-tech-on .hero-headline-stack {
    display: block !important;
  }

  .tech-text-heading.tech-text-on .tech-text-static {
    opacity: 1;
    pointer-events: auto;
  }
}
