/* Larger site header and Harbin page presentation. */
@media (min-width: 1101px) {
  .site-header {
    height: 98px;
    grid-template-columns: minmax(205px, 1fr) auto minmax(160px, 1fr);
  }

  .wordmark {
    gap: 13px;
    font-size: 17px;
  }

  .wordmark small {
    font-size: 9px;
  }

  .wordmark-mark {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .desktop-nav {
    gap: clamp(15px, 1.45vw, 25px);
    font-size: 13px;
    line-height: 1.15;
  }

  .desktop-nav > a,
  .nav-dropdown-trigger {
    min-height: 97px;
  }

  .desktop-nav > a::after,
  .nav-dropdown-trigger::after {
    bottom: 27px;
  }

  .header-contact {
    min-height: 48px;
    padding-right: 20px;
    padding-left: 20px;
    font-size: 13px;
  }

  .nav-dropdown-link,
  .nav-dropdown-all {
    font-size: 12px;
  }
}

.harbin-hero-video {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 760px);
  height: auto;
  max-height: 92%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  mix-blend-mode: screen;
  filter: contrast(1.05);
  pointer-events: none;
}

.harbin-carousel {
  overflow: hidden;
}

.harbin-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 22px;
}

.harbin-carousel-count {
  min-width: 72px;
  margin-right: 8px;
  color: var(--gray-dark);
  font: 10px/1 var(--mono);
  letter-spacing: .08em;
}

.harbin-carousel-button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--black);
  background: transparent;
  font: 400 24px/1 var(--display);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, opacity .2s ease;
}

.harbin-carousel-button:hover:not(:disabled),
.harbin-carousel-button:focus-visible {
  color: var(--white);
  background: var(--black);
}

.harbin-carousel-button:disabled {
  opacity: .28;
  cursor: default;
}

.harbin-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  outline: none;
}

.harbin-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.harbin-carousel-viewport:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

.harbin-carousel .harbin-carousel-track {
  width: max-content;
  display: flex;
  grid-template-columns: none;
  border-right: 1px solid var(--line-dark);
}

.harbin-carousel .capability-card {
  width: clamp(340px, 36vw, 480px);
  min-height: 430px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

@media (min-width: 761px) {
  .harbin-carousel.is-wheel-carousel {
    position: relative;
    padding: 0;
    overflow: visible;
  }

  .harbin-carousel-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 100vh;
    padding: clamp(24px, 4vh, 48px) var(--pad);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: inherit;
  }

  .harbin-carousel-sticky .section-heading {
    margin-bottom: clamp(22px, 3vh, 38px);
  }

  .is-wheel-carousel .harbin-carousel-controls {
    margin-bottom: clamp(14px, 2vh, 22px);
  }

  .is-wheel-carousel .harbin-carousel-viewport {
    margin-right: calc(var(--pad) * -1);
    margin-left: calc(var(--pad) * -1);
    overflow-x: hidden;
    scroll-snap-type: none;
  }

  .is-wheel-carousel .capability-card {
    width: clamp(380px, 34vw, 720px);
    min-height: clamp(270px, 45vh, 430px);
    scroll-snap-align: none;
  }
}

@media (max-width: 1100px) {
  .site-header {
    height: 84px;
  }

  .wordmark {
    gap: 10px;
    font-size: 15px;
  }

  .wordmark-mark {
    width: 38px;
    height: 38px;
  }

  .harbin-carousel .capability-card {
    width: min(76vw, 460px);
  }
}

@media (max-width: 760px) {
  .harbin-hero-video {
    width: min(92vw, 440px);
    max-height: 260px;
  }

  .harbin-carousel-controls {
    margin-bottom: 16px;
  }

  .harbin-carousel-button {
    width: 46px;
    height: 46px;
  }

  .harbin-carousel .capability-card {
    width: calc(100vw - 56px);
    min-height: 410px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .harbin-carousel-viewport {
    scroll-behavior: auto;
  }
}
