/* BNTO brand overrides */

.wrapper-title .text-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.bnto-glyph {
  display: block;
  height: 0.62em;
  width: auto;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.title-slide-left .text-hero {
  padding-right: 0.04em;
}

.title-slide-right .text-hero {
  padding-left: 0.04em;
}

.wrapper-title .wrapper-slide-down {
  flex-shrink: 0;
  align-self: center;
  padding-top: 0;
  background-color: transparent;
  box-sizing: border-box;
}

.bnto-hero-mark {
  --mark-spin: -360deg;
  display: block;
  width: 135%;
  height: 135%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform: rotate(var(--mark-spin));
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .bnto-hero-mark {
    --mark-spin: 0deg;
    will-change: auto;
  }
}

/* Solid card + logo top-left */
.hero-card {
  position: relative;
  z-index: 30 !important;
  background-color: #000;
  background-image: linear-gradient(180deg, #000 25%, #333);
}

.hero-card-logo {
  position: absolute;
  top: var(--layout--padding-top-bottom-card, 1.25rem);
  left: var(--layout--padding-left-right-card, 1.25rem);
  /* Match the two-line "AI & Software" block height */
  height: calc(2 * var(--text-typography--height-primary-medium, 4vw));
  width: auto;
  max-width: min(42%, 12rem);
  display: block;
  object-fit: contain;
  object-position: left top;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.hero-card > .text-primary.align-right {
  position: relative;
  z-index: 1;
  min-height: calc(2 * var(--text-typography--height-primary-medium, 4vw));
}

/* Card above BN / mark / TO — no fading, just stacking */
.wrapper-top-hero {
  z-index: 20 !important;
}

.wrapper-bottom-hero .wrapper-title,
.wrapper-bottom-hero .title-slide-left,
.wrapper-bottom-hero .title-slide-right,
.wrapper-bottom-hero .wrapper-slide-down {
  z-index: 0 !important;
}

/* Keep the original Webflow hero video look (ASCII ring on dark gradient) */
.bg-video-hero {
  mix-blend-mode: lighten;
  pointer-events: none;
}

.bg-video-hero video {
  opacity: 1;
  visibility: visible;
}

/* Nav / footer */
.image-logo {
  width: auto;
  max-width: 5.75rem;
  min-width: 4.25rem;
  height: auto;
  aspect-ratio: 713 / 632;
  object-fit: contain;
  display: block;
}

.block-logo-menu .image-logo {
  max-width: 5.75rem;
}

.image-logo-footer {
  width: min(28vw, 200px);
  height: auto;
  object-fit: contain;
  display: block;
}

/* Template inverts the default About image; keep our dark circuit as-is */
.image-about-us:not(.v1):not(.v2):not(.v3):not(.v4) {
  filter: none;
}

