main > section:first-child > div:first-child {
  background-image: url("https://valkri-videos.nyc3.cdn.digitaloceanspaces.com/herd/herd-hero.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

main > section:first-child > div:first-child > video {
  display: none !important;
}

/* Place the hero copy in the bottom-left of the first section. */
main > section:first-child > div:nth-child(2) {
  align-items: flex-start !important;
  justify-content: flex-end !important;
  padding: 0 4rem 3rem !important;
}

main > section:first-child > div:nth-child(2) > div {
  align-items: flex-start !important;
  margin: 0 !important;
  text-align: left !important;
  gap: 1rem !important;
  width: 48rem;
  max-width: 100%;
  opacity: 1 !important;
  transition: none !important;
}

main > section:first-child > div:nth-child(2) > div > div,
main > section:first-child > div:nth-child(2) p {
  text-align: left !important;
}

main > section:first-child h1 {
  font-size: 3.25rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  width: 16ch;
  max-width: 100%;
  white-space: normal !important;
  opacity: 1 !important;
  transition: none !important;
}

main > section:first-child p {
  font-size: 0.875rem !important;
  font-weight: 300 !important;
  line-height: 1.3 !important;
  width: 34.386rem;
  max-width: 100% !important;
  opacity: 1 !important;
  transition: none !important;
}

@media (min-width: 768px) and (max-width: 1279px) {
  main > section:first-child h1 {
    font-size: calc(1.45rem + 2.05vw) !important;
  }

  main > section:first-child p {
    font-size: 0.8125rem !important;
  }
}

@media (max-width: 767px) {
  main > section:first-child > div:nth-child(2) {
    padding: 0 1.5rem 2rem !important;
  }

  main > section:first-child h1 {
    font-size: 2.5rem !important;
    width: 100%;
  }

  main > section:first-child p {
    font-size: 0.95rem !important;
    width: 100%;
  }
}

#site-nav.herd-nav-platform {
  background-color: #426a8c !important;
}

#site-nav.herd-nav-hidden {
  transform: translateY(-100%) !important;
}

.herd-mobile-menu {
  background-color: #eeeee3 !important;
}

.herd-mobile-menu a.text-\[\#eed9c4\] {
  color: #061602 !important;
}

.herd-mobile-menu a.text-\[\#eed9c4\]:hover {
  color: #000 !important;
}

/* Get a Demo button */
nav a.bg-\[\#eed9c4\] {
  background-color: #132b40 !important;
  color: #eed9c4 !important;
}

/* Keep the full navigation visible against the final platform section. */
nav.fixed.bg-\[\#426a8c\] {
  background-color: #426a8c !important;
}

/* Applications section background */
#applications {
  background-color: #426a8c !important;
}

#applications img.object-contain {
  object-position: left center;
  transition: opacity 180ms ease;
}

#application-description,
#application-title {
  transition: opacity 180ms ease;
}

.herd-platform-section {
  background: #2b4053;
  color: #eed9c4;
  overflow: hidden;
  padding: 3.25rem clamp(1.5rem, 4.5vw, 4rem) 1.5rem;
  position: relative;
  scroll-margin-top: 4.625rem;
}

.herd-platform-shell {
  margin: 0 auto;
  max-width: 82rem;
  position: relative;
  z-index: 1;
}

.herd-platform-head {
  width: 100%;
}

.herd-platform-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.04rem;
  line-height: 1;
  margin: 0;
  opacity: 0.7;
  padding: 0 0 1rem;
  text-transform: uppercase;
}

.herd-platform-title-row {
  align-items: flex-start;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  width: 100%;
}

.herd-platform-title {
  font-family: var(--font-nulshock), var(--font-monommm5), sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  max-width: 37.5rem;
  text-transform: uppercase;
}

.herd-incident-pill {
  align-items: center;
  backdrop-filter: blur(80px);
  background: rgba(238, 217, 196, 0.14);
  border: 1px solid rgba(238, 217, 196, 0.22);
  border-radius: 0.45rem;
  display: inline-flex;
  flex-shrink: 0;
  gap: 0.8rem;
  box-sizing: border-box;
  height: 2rem;
  padding: 0.35rem 0.75rem;
  width: 14rem;
}

.herd-incident-number {
  font-family: var(--font-nulshock), var(--font-monommm5), sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.herd-incident-copy {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  opacity: 0.75;
  text-transform: uppercase;
}

.herd-lineup-wrap {
  margin-top: 4rem;
  overflow-x: auto;
  padding-left: 5vw;
  width: calc(50vw + 50%);
  scrollbar-width: none;
}

.herd-lineup-wrap::-webkit-scrollbar {
  display: none;
}

.herd-lineup-list {
  background: transparent;
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: max-content;
}

.herd-lineup-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 16.5rem repeat(3, 15rem);
}

.herd-lineup-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 22.5rem;
  padding: 0 2rem 1rem 0;
}

.herd-lineup-intro-title {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.herd-lineup-link {
  align-items: center;
  color: #eed9c4;
  display: inline-flex;
  font-size: 0.8125rem;
  font-weight: 300;
  gap: 0.4rem;
  line-height: 1;
}

.herd-product-card {
  background-color: #626b7e;
  background-image:
    linear-gradient(rgba(19, 43, 64, 0.03), rgba(19, 43, 64, 0.12)),
    url("/neo-blue-texture.webp");
  background-position: center;
  background-size: cover;
  border-radius: 0.5rem;
  color: #eed9c4;
  display: flex;
  flex-direction: column;
  height: 22.5rem;
  justify-content: space-between;
  overflow: hidden;
  padding: 1rem;
  position: relative;
  text-align: center;
  transition: background-color 250ms ease, transform 250ms ease;
  width: 15rem;
}

.herd-product-card:hover {
  filter: brightness(1.07);
  transform: translateY(-0.3rem);
}

.herd-product-image-wrap {
  flex: 1;
  position: relative;
  width: 100%;
}

.herd-product-image {
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  transition: transform 300ms ease;
  width: 100%;
}

.herd-product-card:first-of-type .herd-product-image {
  height: 78%;
  inset: 11%;
  width: 78%;
}

.herd-product-card:hover .herd-product-image {
  transform: scale(1.04);
}

.herd-product-label {
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding-top: 1rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .herd-platform-section {
    padding-top: 4rem;
  }

  .herd-platform-title-row {
    flex-direction: column;
    gap: 2rem;
  }

  .herd-platform-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    max-width: 15ch;
  }

  .herd-incident-pill {
    width: 100%;
  }

  .herd-lineup-wrap {
    margin-top: 4rem;
    padding-left: 0;
    width: auto;
  }

  .herd-lineup-list {
    padding: 1rem;
  }

  .herd-lineup-grid {
    grid-template-columns: 13rem repeat(3, min(75vw, 15rem));
  }

  .herd-lineup-intro {
    min-height: 22.5rem;
    padding-right: 1rem;
  }

  .herd-product-card {
    width: min(75vw, 15rem);
  }
}

.herd-footer {
  background: #2b4053;
  color: #eed9c4;
  padding: 2rem clamp(1.5rem, 4.5vw, 4rem);
}

.herd-footer-inner {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto;
  max-width: 82rem;
}

.herd-footer-logo {
  height: auto;
  width: 10rem;
}

.herd-footer-copy {
  font-size: 0.625rem;
  margin: 0;
}
