.ntt-home-hero {
  --ntt-home-hero-wave-clearance: calc(
    var(--ntt-wavenew-rise) + var(--ntt-wavenew-rise-extra) - var(--ntt-wavenew-y-fix) + 10px
  );
  --ntt-home-hero-control-height: 36px;
  --ntt-home-hero-control-bottom: 52px;
  position: relative;
  overflow: visible;
}

.ntt-home-hero .js-slider-track {
  gap: 0;
}

.ntt-home-hero__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: var(--ntt-hero-height);
}

.ntt-home-hero:not(.is-ready) .ntt-home-hero__slide + .ntt-home-hero__slide,
.ntt-home-hero__controls[hidden] {
  display: none;
}

.ntt-home-hero__slide--giveaway .ntt-hero__media {
  background: #243629;
}

.ntt-home-hero__slide--giveaway .ntt-hero__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  background: linear-gradient(transparent, rgb(15 27 19 / 85%) 78%);
  pointer-events: none;
}

.ntt-home-hero__image {
  height: 100%;
  margin: 0;
}

.ntt-home-hero__slide--giveaway .ntt-hero__inner {
  align-items: end;
  padding-bottom: calc(var(--ntt-home-hero-wave-clearance) + 56px);
}

/* The original text layer spans the image plus the space reserved for the wave. */
.ntt-home-hero__slide:not(.ntt-home-hero__slide--giveaway) .ntt-hero__inner {
  bottom: calc(-1 * var(--ntt-wavenew-space));
}

.ntt-home-hero__controls {
  position: absolute;
  z-index: 5;
  bottom: var(--ntt-home-hero-control-bottom);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgb(18 30 33 / 32%);
}

.ntt-home-hero__controls .js-slider-dots {
  position: static;
  transform: none;
  gap: 0;
}

.ntt-home-hero__controls .js-slider-dot,
.ntt-home-hero__pause {
  display: grid;
  place-items: center;
  width: 44px;
  height: var(--ntt-home-hero-control-height);
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
}

.ntt-home-hero__controls .js-slider-dot.is-active {
  background: transparent;
}

.ntt-home-hero__controls .js-slider-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 65%);
}

.ntt-home-hero__controls .js-slider-dot.is-active::before {
  background: #fff;
}

.ntt-home-hero__pause {
  position: absolute;
  top: 0;
  left: calc(100% + 6px);
  width: var(--ntt-home-hero-control-height);
  background: rgb(18 30 33 / 32%);
}

.ntt-home-hero__pause::before {
  content: '';
  box-sizing: border-box;
  width: 11px;
  height: 13px;
  border-inline: 3px solid currentColor;
}

.ntt-home-hero__pause[aria-pressed='true']::before {
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-right: 0;
  border-left: 11px solid currentColor;
}

.ntt-home-hero__controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

@media (901px <= width <= 1366px) {
  .ntt-home-hero {
    --ntt-home-hero-control-height: 28px;
    --ntt-home-hero-control-bottom: 36px;
  }
}

@media (max-width: 900px) {
  .ntt-hero--wavenew:has(> .ntt-home-hero) {
    /* Preserve the original family text position and make room beneath its button. */
    --ntt-hero-height: clamp(670px, 165vw, 760px);
  }

  .ntt-home-hero {
    --ntt-home-hero-control-height: 32px;
    --ntt-home-hero-control-bottom: 43px;
  }

  .ntt-home-hero__slide--giveaway .ntt-hero__inner {
    position: absolute;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    padding: 0 22px calc(var(--ntt-home-hero-wave-clearance) + 56px);
  }

  .ntt-home-hero__slide--giveaway .ntt-hero__content {
    display: block;
    margin: 0;
  }

  .ntt-home-hero__slide--giveaway :is(.ntt-hero__title, .ntt-hero__text, .ntt-hero__actions) {
    position: static;
    width: auto;
    transform: none;
  }

  .ntt-home-hero__slide--giveaway .ntt-hero__title {
    font-size: clamp(1.05rem, 5.75vw, 2.25rem);
    margin-bottom: 0.35em;
    overflow-wrap: anywhere;
  }

  .ntt-home-hero__slide--giveaway .ntt-hero__actions {
    margin-top: 12px;
  }

  .ntt-home-hero__slide--giveaway .ntt-home-hero__image {
    height: 68%;
  }

  .ntt-home-hero__slide--giveaway .ntt-hero__media::after {
    height: 52%;
    background: linear-gradient(transparent, #243629 40%);
  }
}
