/* Immersive homepage hero. Tokens via CSS variables only. */
.nv-hero--home { padding-top: 170px; padding-bottom: 0; }

.nv-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 64px;
  align-items: start;
}

.nv-hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.nv-hero__h1 { margin-top: 26px; }
.nv-hero__subhead { margin-top: 26px; color: var(--nv-light); max-width: 40em; }
.nv-hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.nv-hero__note { margin: 26px 0 0; font-size: 13.5px; line-height: 1.52; color: var(--nv-stone); max-width: 46em; }

/* Right composition */
.nv-hero__right { position: relative; padding-top: 24px; }
.nv-hero__visual {
  position: absolute;
  inset: 0 0 auto 0;
  height: 280px;
  border-radius: var(--nv-radius);
  overflow: hidden;
  opacity: 0.85;
}
.nv-hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.nv-hero__visual .nv-ph { min-height: 280px; }

.nv-hero__status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nv-font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nv-ivory);
  margin-top: 8px;
}
.nv-hero__status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--nv-rose); }

.nv-hero__cardtitle {
  position: relative;
  margin: 14px 0 0;
  font-weight: 300;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--nv-ivory);
  max-width: 11em;
}

.nv-hero__metric { position: relative; margin-top: 26px; padding: 20px; }
.nv-hero__metric-head { display: flex; justify-content: space-between; align-items: center; }
.nv-hero__metric-label {
  font-family: var(--nv-font-mono); font-weight: 500; font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--nv-ivory);
}
.nv-hero__metric-illustrative {
  font-family: var(--nv-font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--nv-stone);
}
.nv-hero__metric-value {
  display: block; margin-top: 12px;
  font-weight: 300; font-size: 42px; line-height: 1; letter-spacing: -0.01em;
  color: var(--nv-rose);
}
.nv-hero__metric-caption { display: block; margin-top: 10px; font-size: 12.5px; color: var(--nv-light); }
.nv-hero__bars { display: flex; align-items: flex-end; gap: 8px; height: 34px; margin-top: 16px; }
.nv-hero__bars span { flex: 1; height: 26%; background: var(--nv-ivory); opacity: 0.5; border-radius: 2px; }
.nv-hero__bars span:nth-child(2) { height: 38%; }
.nv-hero__bars span:nth-child(3) { height: 32%; }
.nv-hero__bars span:nth-child(4) { height: 52%; }
.nv-hero__bars span:nth-child(5) { height: 44%; }
.nv-hero__bars .is-high { height: 88%; opacity: 0.9; }
.nv-hero__bars .is-accent { height: 60%; background: var(--nv-ox); opacity: 1; }

/* Trust strip inside the hero */
.nv-truststrip--inhero { margin-top: 72px; padding-bottom: 44px; position: relative; }

@media (max-width: 1023px) {
  .nv-hero--home { padding-top: 140px; }
  .nv-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .nv-hero__right { max-width: 420px; }
}
@media (max-width: 767px) {
  .nv-hero--home { padding-top: 120px; }
}

/* Trust strip: client and partner marks marquee.
   Visible-at-once count comes from trust.nv_logos_visible_count, an operator
   free-number field. The list renders twice server side (module.html) so the
   loop can be a plain CSS transform loop with no JS; the second copy is
   aria-hidden and dropped entirely under reduced motion. */
.nv-truststrip--inhero .nv-truststrip__viewport {
  overflow: hidden;
  width: 100%;
  container-type: inline-size;
  mask-image: linear-gradient(to right, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
}
.nv-truststrip--inhero .nv-truststrip__logos--marquee {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation-name: nv-marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--nv-marquee-duration, 24s);
  will-change: transform;
}
.nv-truststrip--inhero .nv-truststrip__logos--marquee li {
  flex: 0 0 180px;
}
@supports (width: 1cqw) {
  .nv-truststrip--inhero .nv-truststrip__logos--marquee li {
    flex: 0 0 calc(100cqw / var(--nv-marquee-visible, 5));
  }
}
.nv-truststrip--inhero .nv-truststrip__logos--marquee li {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo size follows the same per-slot width as the field above: fewer logos
   visible at once means more room per slot, so each mark renders larger;
   more logos visible means each mark shrinks to fit. Fixed fallback covers
   browsers without container query support. */
.nv-truststrip--inhero .nv-truststrip__logos--marquee .nv-truststrip__logoimg {
  width: 140px;
  height: 52px;
  max-width: 100%;
  object-fit: contain;
}
.nv-truststrip--inhero .nv-truststrip__logos--marquee .nv-truststrip__name {
  font-size: 16px;
}
@supports (width: 1cqw) {
  .nv-truststrip--inhero .nv-truststrip__logos--marquee .nv-truststrip__logoimg {
    width: calc(100cqw / var(--nv-marquee-visible, 5) * 0.55);
    height: calc(100cqw / var(--nv-marquee-visible, 5) * 0.26);
    max-width: 220px;
    max-height: 76px;
  }
  .nv-truststrip--inhero .nv-truststrip__logos--marquee .nv-truststrip__name {
    font-size: clamp(13px, calc(100cqw / var(--nv-marquee-visible, 5) * 0.09), 22px);
  }
}
.nv-truststrip--inhero .nv-truststrip__viewport:hover .nv-truststrip__logos--marquee,
.nv-truststrip--inhero .nv-truststrip__viewport:focus-within .nv-truststrip__logos--marquee {
  animation-play-state: paused;
}
@keyframes nv-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .nv-truststrip--inhero .nv-truststrip__viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .nv-truststrip--inhero .nv-truststrip__logos--marquee {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    transform: none;
  }
  .nv-truststrip--inhero .nv-truststrip__logos--marquee li {
    flex: 0 0 auto;
  }
  .nv-truststrip--inhero .nv-truststrip__logos--marquee li[aria-hidden="true"] {
    display: none;
  }
}