/* Hero Split B */

.tb-hero-split-b {
  --tb-hero-split-text-bg: #004899;
  --tb-hero-split-shape-color: var(--tb-hero-split-text-bg);
  --tb-hero-split-shape-w: 96px;
  --tb-hero-split-color-opacity: 100%;
  --tb-hero-split-kenburns-duration: 14s;
  --tb-hero-split-kenburns-zoom: 1.12;
  --tb-hero-split-shape-rotate: 0;
  position: relative;
  isolation: isolate;
  border-radius: var(--bs-border-radius-xxl, 1.25rem);
  overflow: clip;
}

.tb-hero-split-b.is-video {
  /* Keep hero height in video-like ratio, but don't let it grow too tall */
  aspect-ratio: 16 / 9;
  max-height: min(60vh, 860px);
}

.tb-hero-split-b__youtubeBg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tb-hero-split-b__videoBg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tb-hero-split-b__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tb-hero-split-b__threeBg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tb-hero-split-b__grid {
  position: relative;
  z-index: 1;
}

.tb-hero-split-b__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "media"
    "text";
  min-height: clamp(520px, 72vh, 860px);
}

.tb-hero-split-b.is-video .tb-hero-split-b__grid {
  min-height: 100%;
  height: 100%;
}

.tb-hero-split-b__text {
  grid-area: text;
  position: relative;
  z-index: 3;
  background: color-mix(in srgb, var(--tb-hero-split-text-bg) var(--tb-hero-split-color-opacity), transparent);
  color: rgba(255, 255, 255, 0.96);
  padding: clamp(2rem, 5vw, 4.25rem);
  display: flex;
}

.tb-hero-split-b__text--valign-start { align-items: flex-start; }
.tb-hero-split-b__text--valign-center { align-items: center; }
.tb-hero-split-b__text--valign-end { align-items: flex-end; }

.tb-hero-split-b__textInner {
  width: 100%;
  max-width: 60ch;
}

.tb-hero-split-b__subheader {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.86;
  margin-bottom: 0.65rem;
}

.tb-hero-split-b__headline {
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2rem, 3vw, 3.25rem);
  margin: 0 0 0.85rem 0;
}

.tb-hero-split-b__body {
  font-size: clamp(1.05rem, 1.15vw, 1.25rem);
  opacity: 0.92;
}

.tb-hero-split-b__body :is(p, ul, ol) {
  margin-bottom: 0.85rem;
}

.tb-hero-split-b__media {
  grid-area: media;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.08);
  min-height: clamp(280px, 42vh, 520px);
}
.is-three .tb-hero-split-b__media,
.is-video .tb-hero-split-b__media {
  background: none;
}

.tb-hero-split-b__shape {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--tb-hero-split-shape-w);
  z-index: 2;
  pointer-events: none;
  transform: rotate(calc(var(--tb-hero-split-shape-rotate) * 1deg));
  transform-origin: center;
}

.tb-hero-split-b__image,
.tb-hero-split-b__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.02) contrast(1.02);
}

.tb-hero-split-b__image.is-kenburns {
  animation: tbHeroSplitKenBurns var(--tb-hero-split-kenburns-duration) ease-in-out infinite alternate;
  transform-origin: 50% 45%;
}

@keyframes tbHeroSplitKenBurns {
  from { transform: scale(1.02); }
  to { transform: scale(var(--tb-hero-split-kenburns-zoom)); }
}

.tb-hero-split-b__youtubeBg,
.tb-hero-split-b__threeBg,
.tb-hero-split-b__three {
  position: absolute;
  inset: 0;
}

.tb-hero-split-b__youtubeMount,
.tb-hero-split-b__threeMount {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.tb-hero-split-b__youtubeMount iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.tb-hero-split-b__shape.is-flip {
  transform: scaleX(-1) rotate(calc(var(--tb-hero-split-shape-rotate) * 1deg));
}

.tb-hero-split-b__shape svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tb-hero-split-b__shape :is(path, polygon) {
  fill: color-mix(in srgb, var(--tb-hero-split-shape-color) var(--tb-hero-split-color-opacity), transparent);
}

@media (min-width: 992px) {
  .tb-hero-split-b__grid {
    grid-template-columns: 0.92fr 1.08fr;
    grid-template-areas: "text media";
  }

  .tb-hero-split-b__media {
    min-height: auto;
  }

  .tb-hero-split-b__shape {
    /* Place the separator at the column boundary (text/media). */
    left: 46%;
  }
}

@media (max-width: 991.98px) {
  .tb-hero-split-b__shape {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tb-hero-split-b__image.is-kenburns {
    animation: none;
    transform: none;
  }
}
