.nova-hero {
  --nova-hero-color-1: #ffdc70;
  --nova-hero-color-2: #f6e7db;
  --nova-hero-color-3: #82d9f3;
  --nova-hero-color-4: #f599cc;
  --nova-hero-angle: 125deg;
  --nova-hero-text: #17141d;
  --nova-hero-muted: #58525f;
  --nova-hero-button: #17141d;
  --nova-hero-button-text: #fff;
  --nova-hero-radius: 32px;
  --nova-hero-height: 680px;
  --nova-hero-mobile-height: 620px;
  --nova-hero-duration: 600ms;
  position: relative;
  width: min(calc(100% - 2rem), var(--nova-hero-max-width, 1660px));
  margin: var(--nova-hero-top-space, 20px) auto var(--nova-hero-bottom-space, 32px);
  overflow: hidden;
  color: var(--nova-hero-text);
  border: 1px solid rgba(31, 25, 42, .07);
  border-radius: var(--nova-hero-radius);
  isolation: isolate;
}

.nova-hero--width-full {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.nova-hero--shadow {
  box-shadow: 0 28px 80px rgba(43, 35, 63, .12);
}

.nova-hero__viewport,
.nova-hero__track {
  position: relative;
  min-height: var(--nova-hero-height);
}

.nova-hero__track {
  height: 100%;
}

.nova-hero__slide {
  min-width: 0;
  min-height: var(--nova-hero-height);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 30%, color-mix(in srgb, var(--nova-hero-color-1) 88%, white) 0 12%, transparent 36%),
    radial-gradient(circle at 54% 74%, color-mix(in srgb, var(--nova-hero-color-3) 82%, white) 0 15%, transparent 40%),
    radial-gradient(circle at 90% 24%, color-mix(in srgb, var(--nova-hero-color-4) 82%, white) 0 14%, transparent 38%),
    linear-gradient(var(--nova-hero-angle), var(--nova-hero-color-1), var(--nova-hero-color-2) 34%, var(--nova-hero-color-3) 68%, var(--nova-hero-color-4));
}

.nova-hero--no-glow .nova-hero__slide {
  background: linear-gradient(var(--nova-hero-angle), var(--nova-hero-color-1), var(--nova-hero-color-2) 34%, var(--nova-hero-color-3) 68%, var(--nova-hero-color-4));
}

.nova-hero__slide--image-background::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background-image: var(--nova-hero-image);
  background-position: var(--nova-hero-image-focus, center);
  background-size: var(--nova-hero-image-fit, cover);
  background-repeat: no-repeat;
}

.nova-hero__slide--image-background::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, var(--nova-hero-overlay, .55)), rgba(255, 255, 255, .18)),
    linear-gradient(var(--nova-hero-angle), rgba(255, 220, 112, .2), rgba(245, 153, 204, .2));
}

.nova-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: var(--nova-hero-height);
  grid-template-columns: minmax(0, var(--nova-hero-content-width, 720px));
  align-items: center;
  justify-content: start;
  padding: var(--nova-hero-padding, 80px);
}

.nova-hero__slide--image-card .nova-hero__inner {
  grid-template-columns: minmax(0, var(--nova-hero-content-width, 720px)) minmax(280px, .8fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.nova-hero__slide--image-left .nova-hero__copy {
  grid-column: 2;
}

.nova-hero__slide--image-left .nova-hero__image-card {
  grid-row: 1;
  grid-column: 1;
}

.nova-hero--vertical-start .nova-hero__inner { align-items: start; }
.nova-hero--vertical-end .nova-hero__inner { align-items: end; }

.nova-hero--align-center .nova-hero__inner {
  justify-content: center;
}

.nova-hero--align-center .nova-hero__copy {
  margin-inline: auto;
  text-align: center;
}

.nova-hero--align-center .nova-hero__actions { justify-content: center; }

.nova-hero--align-right .nova-hero__inner {
  justify-content: end;
}

.nova-hero--align-right .nova-hero__copy {
  margin-left: auto;
  text-align: right;
}

.nova-hero--align-right .nova-hero__actions { justify-content: flex-end; }

.nova-hero__eyebrow {
  margin: 0 0 1.5rem;
  color: var(--nova-hero-muted);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: clamp(.68rem, 1vw, .82rem);
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nova-hero__title {
  max-width: 14ch;
  margin: 0;
  color: var(--nova-hero-text);
  font-family: var(--font-sans, Inter, system-ui, sans-serif);
  font-size: clamp(2.7rem, 6vw, var(--nova-hero-title-size, 84px));
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.nova-hero--align-center .nova-hero__title { margin-inline: auto; }
.nova-hero--align-right .nova-hero__title { margin-left: auto; }

.nova-hero__description {
  max-width: 38ch;
  margin: 1.7rem 0 0;
  color: var(--nova-hero-muted);
  font-size: clamp(1.05rem, 2vw, var(--nova-hero-body-size, 24px));
  line-height: 1.6;
  text-wrap: pretty;
}

.nova-hero--align-center .nova-hero__description { margin-inline: auto; }
.nova-hero--align-right .nova-hero__description { margin-left: auto; }

.nova-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.25rem;
  margin-top: 2.2rem;
}

.nova-hero__button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .07em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.nova-hero__button:hover { transform: translateY(-2px); }

.nova-hero__button--primary,
.nova-hero__button--primary:visited {
  color: var(--nova-hero-button-text) !important;
  background: var(--nova-hero-button);
  border: 1.5px solid var(--nova-hero-button);
}

.nova-hero__button--primary:hover {
  color: var(--nova-hero-button) !important;
  background: transparent;
}

.nova-hero__button--secondary,
.nova-hero__button--secondary:visited {
  padding-inline: .25rem;
  color: var(--nova-hero-text) !important;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}

.nova-hero__image-card {
  width: min(100%, 520px);
  margin: 0;
  justify-self: center;
  padding: clamp(.6rem, 1.3vw, 1rem);
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(31, 25, 42, .09);
  border-radius: calc(var(--nova-hero-radius) * .72);
  box-shadow: 0 26px 65px rgba(43, 35, 63, .16);
  transform: rotate(2deg);
}

.nova-hero__slide--image-left .nova-hero__image-card { transform: rotate(-2deg); }

.nova-hero__image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: var(--nova-hero-image-fit, cover);
  object-position: var(--nova-hero-image-focus, center);
  border-radius: calc(var(--nova-hero-radius) * .55);
}

.nova-hero--fade .nova-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--nova-hero-duration) ease, visibility 0s linear var(--nova-hero-duration);
}

.nova-hero--fade .nova-hero__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.nova-hero--slide .nova-hero__track {
  display: flex;
  transform: translate3d(calc(var(--nova-hero-index, 0) * -100%), 0, 0);
  transition: transform var(--nova-hero-duration) cubic-bezier(.22, .61, .36, 1);
}

.nova-hero--slide .nova-hero__slide {
  position: relative;
  flex: 0 0 100%;
}

.nova-hero--slide:not(.is-enhanced) .nova-hero__slide:not(:first-child) { display: none; }

.nova-hero__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  color: var(--nova-hero-text);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(31, 25, 42, .1);
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(43, 35, 63, .09);
  transform: translateY(-50%);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nova-hero__arrow:hover { transform: translateY(-50%) scale(1.06); }
.nova-hero__arrow:disabled { cursor: default; opacity: .35; }
.nova-hero__arrow span { margin-top: -.12em; font-size: 2rem; line-height: 1; }
.nova-hero__arrow--previous { left: clamp(.75rem, 2vw, 2rem); }
.nova-hero__arrow--next { right: clamp(.75rem, 2vw, 2rem); }

.nova-hero__dots {
  position: absolute;
  z-index: 4;
  bottom: clamp(1.2rem, 3vw, 2.4rem);
  left: 50%;
  display: flex;
  align-items: center;
  gap: .55rem;
  transform: translateX(-50%);
}

.nova-hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: color-mix(in srgb, var(--nova-hero-text) 24%, transparent);
  border: 0;
  border-radius: 999px;
  transition: width 180ms ease, background-color 180ms ease;
}

.nova-hero__dot.is-active {
  width: 26px;
  background: var(--nova-hero-text);
}

.nova-hero__counter {
  position: absolute;
  z-index: 4;
  right: clamp(1.2rem, 3vw, 2.4rem);
  bottom: clamp(1.2rem, 3vw, 2.4rem);
  margin: 0;
  color: var(--nova-hero-muted);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .08em;
}

.nova-hero :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--nova-hero-text) 74%, white);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .nova-hero {
    width: min(calc(100% - 1rem), var(--nova-hero-max-width, 1660px));
  }

  .nova-hero__viewport,
  .nova-hero__track,
  .nova-hero__slide,
  .nova-hero__inner {
    min-height: var(--nova-hero-mobile-height);
  }

  .nova-hero__inner,
  .nova-hero__slide--image-card .nova-hero__inner {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2rem;
    padding: calc(var(--nova-hero-mobile-padding) + 1.75rem) var(--nova-hero-mobile-padding) calc(var(--nova-hero-mobile-padding) + 3.25rem);
  }

  .nova-hero__slide--image-left .nova-hero__copy,
  .nova-hero__slide--image-left .nova-hero__image-card {
    grid-row: auto;
    grid-column: 1;
  }

  .nova-hero__slide--image-left .nova-hero__image-card { grid-row: 2; }
  .nova-hero__title { font-size: clamp(2.45rem, 11vw, calc(var(--nova-hero-title-size) * .72)); }
  .nova-hero__description { font-size: clamp(1rem, 4.5vw, calc(var(--nova-hero-body-size) * .86)); }
  .nova-hero__image-card { width: min(82%, 410px); }
  .nova-hero__image-card img { max-height: 285px; }
  .nova-hero__arrow { top: auto; bottom: .8rem; width: 42px; height: 42px; transform: none; }
  .nova-hero__arrow:hover { transform: scale(1.06); }
  .nova-hero__arrow--previous { left: var(--nova-hero-mobile-padding); }
  .nova-hero__arrow--next { right: var(--nova-hero-mobile-padding); }
  .nova-hero__dots { bottom: 1.75rem; }
}

@media (max-width: 520px) {
  .nova-hero__actions { align-items: stretch; flex-direction: column; }
  .nova-hero__button--primary { width: 100%; }
  .nova-hero__button--secondary { align-self: center; }
  .nova-hero__counter { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nova-hero__track,
  .nova-hero__slide,
  .nova-hero__button,
  .nova-hero__arrow,
  .nova-hero__dot {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
