
html,
body {
  &:has(.tech-banner__video-dialog[open]) {
    overflow: hidden;
  }
}

main .tech-banner {
  
  .tech-banner__bg {
    inset: 0;
    overflow: hidden;
    position: absolute;
    transform-origin: center;
    z-index: 0;

    picture {
      display: block;
      height: 100%;
      width: 100%;
    }

    img {
      display: block;
      height: 100%;
      object-position: center;
      object-fit:cover;
      width: 100%;
    }
  }

  .tech-banner__blur {
    background: rgb(0 0 0 / 0%);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
  }

  .tech-banner__track {
    min-height: calc(var(--tb-segments, 7) * 50dvh);

    @media screen and (width >= 768px) {
      min-height: calc(var(--tb-segments, 7) * 100dvh);
    }

    @media (prefers-reduced-motion: reduce) {
      min-height: 100dvh;
    }
  }

  
  .tech-banner__sticky {
    height: 100dvh;
    overflow: hidden;
    position: sticky;
    top: 0;
    width: 100%;
  }

 
  .tech-banner__hero,
  .tech-banner__desc,
  .tech-banner__engine {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
    will-change: opacity, transform;
    z-index: 2;

    @media (prefers-reduced-motion: reduce) {
      transition: none;
      will-change: auto;
    }
  }


  .tech-banner__hero {
    align-items: flex-end;
    display: flex;
    padding-bottom: var(--corp-space-lg);
    padding-top: 5rem;

    @media screen and (width >= 768px) {
      padding-bottom: 26px;
      padding-top: 0;
    }

    @media screen and (width >= 1200px) {
      padding-bottom: 10px;
    }

    .tech-banner__hero-inner {
      width: 100%;
    }

    .tech-banner__hero-text {
      color: var(--corp-color-white);
      @media (width>=768px) {
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      :is(h1, h2, h3, h4, h5, h6) {
        color: inherit;
        font-size: var(--corp-type-mobile-display-3-font-size);
        font-weight: var(--fw-400);
        letter-spacing: -0.56px;
        line-height: var(--corp-type-mobile-display-5-line-height);
        margin: 0 0 var(--corp-space-md);

        @media (width >= 768px) {
          font-size: var(--corp-type-desktop-heading-1-font-size);
          line-height: var(--corp-type-desktop-heading-1-line-height);
          font-weight: var(--fw-300);
          font-style: normal;
          text-align: center;
          margin-bottom: var(--corp-space-lg);
        }

        @media screen and (width >= 1200px) {
          font-size: var(--corp-type-desktop-display-font-size);
          line-height: var(--corp-type-desktop-display-line-height);
          font-weight: var(--fw-300);
          margin-bottom: var(--corp-space-xl);
        }
      }
    }

    .tech-banner__sub-title {
      :is(h1, h2, h3, h4, h5, h6) {
        color: inherit;
        font-size: var(--corp-type-mobile-body-3-font-size);
        font-weight: var(--fw-500);
        letter-spacing: -0.14px;
        line-height: var(--corp-type-mobile-body-3-line-height);
        margin: 0 0 15px;
        opacity: 0.6;

        @media (width>=768px) {
          font-weight: var(--fw-400);
        }

        @media (width>=1200px) {
          font-size: var(--corp-type-desktop-body-lg-font-size);
          line-height: var(--corp-type-desktop-body-lg-line-height);
          margin-bottom: var(--corp-space-xl);
        }
      }
    }

    .tech-banner__hero-ctas {
      display: flex;
      flex-wrap: wrap;
      @media (width >= 768px) {
        justify-content: center;
      }
    }

    .tech-banner__scroll-indicator {
      position: relative;
      color: var(--corp-color-white);
      display: flex;
      font-size: var(--corp-type-mobile-body-3-font-size);
      font-weight: var(--fw-400);
      justify-content: center;
      letter-spacing: -0.14px;
      line-height: var(--corp-type-mobile-body-3-line-height);
      margin-top: var(--corp-space-2xl);
      text-align: center;

      @media (width >= 768px) {
        display: none;
      }

      @media (width>=1200px) {
        display: block;
        font-style: normal;
        font-size: var(--corp-type-desktop-body-font-size);
        line-height: var(--corp-type-desktop-body-line-height);
        letter-spacing: -0.16px;
        margin-top: 66px;
      }
    }
    .tech-banner__scroll-line {
      @media (width>=1200px) {
        position: absolute;
        display: block;
        background: url('/corporate/icons/arrow-down-white.svg') center no-repeat;
        width: 16px;
        height: 16px;
    }
    }
  }

  .tech-banner__btn {
    align-items: center;
    appearance: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    font-size: var(--corp-type-mobile-body-1-font-size);
    font-weight: var(--fw-500);
    line-height: var(--corp-type-mobile-body-1-line-height);
    padding: var(--corp-space-md) 40px;

    @media (width >= 768px) {
      font-size: var(--corp-type-desktop-body-xs-font-size);
      line-height: var(--corp-type-desktop-body-2xs-line-height);
      padding: var(--corp-space-md) 20px;
      font-weight: var(--fw-400);
      font-style: normal;
      letter-spacing: -0.36px;
    }
    @media (width>=1200px) {
      font-size: var(--corp-type-desktop-body-3-font-size);
      line-height: var(--corp-type-desktop-body-3-line-height);
      padding: var(--corp-space-md) 40px;
      font-weight: var(--fw-500);
    }
  }

  .tech-banner__btn--primary {
    background: var(--corp-color-primary);
    border: 1px solid var(--corp-color-primary);
    border-radius: 10px;
    color: var(--corp-color-white);
  }

  .tech-banner__btn--secondary {
    background: transparent;
    border: 1.5px solid rgb(255 255 255 / 70%);
    color: var(--corp-color-white);

    &:hover {
      background: rgb(255 255 255 / 12%);
    }
  }


  .tech-banner__desc {
    align-items: end;
    display: flex;
    opacity: 0;
    padding-bottom: 82px;

    .tech-banner__desc-inner {
      color: var(--corp-color-white);

      :is(h1, h2, h3, h4, h5, h6, p) {
        color: inherit;
        font-size: var(--corp-type-mobile-heading-xl-font-size);
        font-weight: var(--fw-400);
        letter-spacing: -0.2px;
        line-height: var(--corp-type-mobile-heading-xl-line-height);
        margin: 0;
      }

      @media (width >= 1200px) {
    
        :is(h1, h2, h3, h4, h5, h6, p) {
          font-size: var(--corp-type-desktop-heading-1-font-size);
          line-height: var(--corp-type-desktop-heading-1-line-height);

        }
      }
    }
  }

 
  .tech-banner__engine {
    display: flex;
    flex-direction: column;
    opacity: 0;

    .tech-banner__engine-inner {
      display: flex;
      flex-direction: column;
      height: 100%;
      padding: 80px 20px 0 20px;
      width: 100%;

      @media (width >= 1024px) {
        padding: 80px 56px 0 56px;
      }
    }
  }

 
  .tech-banner__slides-area {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
  }
 

  .tech-banner__tab-slide {
    display: flex;
    flex-direction: column;
    inset: 0;
    opacity: 0;
    position: absolute;
    transform: translate3d(100%, 0, 0);
    will-change: opacity, transform;

    &[data-index='0'] {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }

    @media (width >= 768px) {
      align-items: center;
      flex-direction: row-reverse;
      gap: 24px;
      padding-bottom: var(--corp-space-xl);
      transform: translate3d(0, 100%, 0);

      &[data-index='0'] {
        transform: translate3d(0, 0, 0);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      transform: none;

      &:not([data-index='0']) {
        display: none;
      }
    }
  }


  .tech-banner__visuals {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;

    picture {
      display: block;
      height: 100%;
      width: 100%;
    }

    img {
      border-radius: 14px 14px 0 0;
      display: block;
      height: 100%;
      object-fit: cover;
      object-position: center;
      width: 100%;
    }

    @media (width >= 768px) {
      flex: 2;
      height: 100%;
      max-height: 362px;

      img {
        border-radius: 10px;
      }
    }

    @media (width >= 1200px) {
      max-height: 500px;
    }
  }

  .tech-banner__content-card {
    background: var(--corp-color-white);
    border-radius: 0 0 24px 24px;
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    padding: 22px 22px 0;

    @media (width >= 768px) {
      border-radius: 10px;
      flex: 1;
      overflow: visible;
      padding: var(--corp-space-lg);
      min-height: 362px;
    }

    @media (width >= 1200px) {
      min-height: 500px;
      padding: 30px var(--corp-space-lg);
    }
  }

  .tech-banner__tab-nav {
    flex-shrink: 0;
    margin-bottom: 28px;
    padding: 9px 0 8px 8px;

    @media screen and (width >= 768px) {
      overflow: hidden;
      margin-bottom: 46px;
      padding: 0;
    }

    @media (width>=1200px) {
      margin-bottom: 50px;
    }
  }

  .tech-banner__tab-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;

    @media screen and (width >= 768px) {
      gap: 0;
      justify-content: space-between;
    }
  }

  .tech-banner__tab {
    background-color: var(--corp-color-white);
    border: none;
    color: var(--corp-color-neutral-black);
    cursor: pointer;
    flex-shrink: 0;
    font-size: var(--corp-type-mobile-body-2-font-size);
    font-weight: var(--fw-500);
    line-height: var(--corp-type-mobile-body-2-line-height);
    opacity: 0.3;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;

    &.is-active {
      opacity: 1;
    }

    @media (width >= 768px) {
      padding: 0;
      font-size: var(--corp-type-desktop-body-tiny-font-size);
      line-height: var(--corp-type-desktop-body-tiny-line-height);
      letter-spacing: -.3px;
      transition: color 0.2s ease, border-color 0.2s ease;
    }

    @media (width>=1200px) {
      font-size: var(--corp-type-desktop-body-3-font-size);
      line-height: var(--corp-type-desktop-body-3-line-height);
    }
  }

 
  .tech-banner__panel-area {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
  }

  .tech-banner__panel {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
  }


  .tech-banner__panel-content {
    @media (width >=768px) {
      padding: 0  var(--corp-space-lg);
    }
    @media (width>=1200px) {
      padding: 0 14px;
    }
  }

  .tech-banner__panel-pre-title {
    color: var(--corp-color-primary);
    font-size: var(--corp-type-mobile-body-2-font-size);
    font-weight: var(--fw-400);
    letter-spacing: -0.12px;
    line-height: var(--corp-type-mobile-body-2-line-height);
    margin-bottom: 36px;
    text-align: center;

    @media (width >= 768px){
      margin-bottom: var(--corp-space-xl);
      font-size: var(--corp-type-desktop-body-tiny-font-size);
      line-height: var(--corp-type-desktop-body-tiny-line-height);
      font-weight: var(--fw-500);
    }
    @media (width>=1200px) {
      font-size: var(--corp-type-desktop-caption-3-font-size);
      line-height: var(--corp-type-desktop-caption-3-line-height);
      text-transform: uppercase;
    }
  }

  .tech-banner__panel-title {
    :is(h1, h2, h3, h4, h5, h6, p) {
      color: var(--corp-color-neutral-black);
      font-size: var(--corp-type-mobile-heading-xl-font-size);
      font-weight: var(--fw-400);
      letter-spacing: -0.2px;
      line-height: var(--corp-type-mobile-heading-xl-line-height);
      margin: 0 0 var(--corp-space-lg);
      text-align: center;

      @media screen and (width >= 768px) {
        margin-bottom: var(--corp-space-xl);
      }
      @media (width>=1200px) {
        font-size: var(--corp-type-desktop-heading-lg-font-size);
        line-height: var(--corp-type-desktop-heading-lg-line-height);
        text-transform: capitalize;
        letter-spacing: -1.26px;
      }
    }
  }

  .tech-banner__panel-desc {
    color: var(--corp-color-neutral-black);
    font-size: var(--corp-type-mobile-body-1-font-size);
    font-weight: var(--fw-500);
    line-height: var(--corp-type-mobile-body-1-line-height);
    margin-bottom: var(--corp-space-xl);
    text-align: center;
    @media (width >= 768px)  {
      font-size: var(--corp-type-desktop-body-xs-font-size);
      line-height: var(--corp-type-desktop-body-2xs-line-height);
      margin-bottom: 40px;
      letter-spacing: -0.24px;
      font-style: normal;
    }
      @media (width>=1200px) {
        font-size: var(--corp-type-desktop-heading-6-font-size);
        line-height: var(--corp-type-desktop-heading-6-line-height);
        opacity: .6;
        margin-bottom: 50px;
      }
  }

  .tech-banner__panel-cta {
    border: 1px solid var(--corp-color-primary);
    border-radius: 10px;
    color: var(--corp-color-primary);
    display: flex;
    font-size: var(--corp-type-mobile-body-1-font-size);
    font-style: normal;
    font-weight: var(--fw-500);
    justify-content: center;
    line-height: var(--corp-type-mobile-body-1-line-height);
    padding: var(--corp-space-md) 40px;
    transition: background 0.2s ease, color 0.2s ease;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;

    @media (width >= 768px) {
      padding: var(--corp-space-md) 20px;
      font-size: var(--corp-type-desktop-body-xs-font-size);
      line-height: var(--corp-type-desktop-body-2xs-line-height);
      font-weight: var(--fw-400);
    }
    @media (width>=1200px) {
      font-size: var(--corp-type-desktop-body-3-font-size);
      line-height: var(--corp-type-desktop-body-3-line-height);
       padding: var(--corp-space-md) 40px;
    }
  }


  .tech-banner__dots {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    justify-content: center;
    padding: 10px 0;

    @media (width >= 768px) {
      display: none;
    }
  }

  .tech-banner__dot {
    background: var(--corp-color-white);
    border: none;
    border-radius: 22px;
    cursor: pointer;
    height: 8px;
    opacity: 0.8;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 8px;

    &.is-active {
      height: 10px;
      opacity: 1;
      width: 10px;
    }
  }

  
  .tech-banner__video-dialog {
    background: transparent;
    border: 0;
    height: 90vh;
    padding: 0;
    width: 95vw;

    &::backdrop {
      background: var(--corp-color-overlay-black-70);
    }

    .tech-banner__video-dialog-inner {
      background: var(--corp-color-neutral-black);
      border-radius: 22px;
      height: 100%;
      overflow: hidden;
      position: relative;
      width: 100%;
    }

    .tech-banner__video-close {
      align-items: center;
      background: transparent url('/corporate/icons/video-close.svg') center center / 16px 16px no-repeat;
      border: 0;
      border-radius: 999px;
      cursor: pointer;
      display: inline-flex;
      height: 32px;
      justify-content: center;
      line-height: var(--corp-type-line-height-none);
      padding: 0;
      position: absolute;
      right: 10px;
      top: 10px;
      width: 32px;
      z-index: 1;
    }

    .tech-banner__video-player {
      display: block;
      height: 100%;
      object-fit: contain;
      width: 100%;
    }
  }
}
