:root {
  --nst-ink: oklch(0.16 0.012 275);
  --nst-white: oklch(1 0 0);
  --nst-signal: var(--nst-brand-yellow, #dcff59);
  --nst-focus: var(--nst-brand-yellow, #dcff59);
  --nst-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nst-ease-hover: cubic-bezier(0.22, 1, 0.36, 1);
  --nst-ease-return: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nst-hero,
.nst-hero * {
  box-sizing: border-box;
}

.nst-hero.wp-block-group {
  --nst-hero-button-signal: var(--nst-brand-yellow, #dcff59);
  --nst-scroll-offset: 0px;
  --nst-copy-opacity: 1;
  align-items: center;
  background: var(--nst-ink);
  color: var(--nst-white);
  display: flex;
  font-family: var(--nst-font-sans);
  isolation: isolate;
  margin-block: 0;
  max-width: none;
  min-height: 100svh;
  overflow: clip;
  padding: 0;
  position: relative;
  width: 100%;
}

.nst-hero__media.wp-block-image {
  height: 100%;
  inset: 0;
  margin: 0;
  max-width: none;
  overflow: hidden;
  position: absolute;
  width: 100%;
  z-index: -3;
}

.nst-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.nst-hero__media img {
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 47%;
  transform: translate3d(0, var(--nst-scroll-offset), 0) scale(1.025);
  width: 100%;
  will-change: transform;
}

.nst-hero__overlay {
  background: linear-gradient(
    90deg,
    oklch(0.07 0 0 / 0.03) 10%,
    oklch(0.07 0 0 / 0.12) 45%,
    oklch(0.07 0 0 / 0.76) 100%
  );
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.nst-hero__content.wp-block-group {
  margin: 0 max(5vw, 48px) 0 auto;
  max-width: min(620px, 43vw);
  opacity: var(--nst-copy-opacity);
  padding: clamp(40px, 7vw, 96px) 0;
  position: relative;
  width: 100%;
  z-index: 2;
}

.nst-hero__content.wp-block-group > .nst-hero__eyebrow {
  color: var(--nst-brand-yellow, #dcff59);
  font-size: var(--nst-type-label-size);
  font-weight: 800;
  letter-spacing: var(--nst-type-label-track);
  margin: 0 0 1.25rem;
  margin-inline: 0;
  text-transform: uppercase;
}

.nst-hero__title.wp-block-heading {
  color: var(--nst-white);
  font-size: var(--nst-type-h1-size);
  font-weight: var(--nst-type-h1-weight);
  letter-spacing: var(--nst-type-h1-track);
  line-height: var(--nst-type-h1-line);
  margin: 0 0 1.4rem;
  max-width: 11ch;
  text-transform: uppercase;
  text-wrap: balance;
}

.nst-hero__summary {
  color: oklch(0.94 0 0);
  font-size: var(--nst-type-body-size);
  line-height: var(--nst-type-body-line);
  margin: 0 0 1.85rem;
  max-width: 39rem;
  text-wrap: pretty;
}

.nst-hero__actions.wp-block-buttons {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.nst-hero__action.wp-block-button {
  margin: 0;
}

.nst-hero__action .wp-block-button__link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0;
  display: inline-flex;
  font-size: 0.6875rem;
  font-weight: 800;
  gap: 0.65rem;
  isolation: isolate;
  justify-content: center;
  letter-spacing: 0.05em;
  min-height: 3rem;
  overflow: hidden;
  padding: 0.9rem 1.15rem;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 320ms ease,
    border-color 320ms ease,
    color 320ms ease,
    transform 620ms var(--nst-ease-return);
}

.nst-hero__action .wp-block-button__link::before {
  background: currentColor;
  border-radius: 43% 57% 47% 53% / 58% 44% 56% 42%;
  content: "";
  inset: -72% -38%;
  pointer-events: none;
  position: absolute;
  transform: translate3d(-110%, 0, 0);
  transition: transform 620ms var(--nst-ease-hover);
  z-index: 0;
}

.nst-hero__action .wp-block-button__link > span {
  position: relative;
  z-index: 1;
}

.nst-hero__action--primary .wp-block-button__link {
  background: var(--nst-white);
  color: var(--nst-ink);
}

.nst-hero__action--primary .wp-block-button__link::before {
  background: var(--nst-hero-button-signal);
}

.nst-hero__action--secondary .wp-block-button__link {
  background: transparent;
  border-color: oklch(1 0 0 / 0.72);
  color: var(--nst-white);
}

.nst-hero__action--secondary .wp-block-button__link::before {
  background: var(--nst-white);
}

.nst-hero__action:focus-within {
  position: relative;
  z-index: 3;
}

.nst-hero__action:focus-visible,
.nst-hero__action .wp-block-button__link:focus-visible {
  outline: 3px solid var(--nst-focus);
  outline-offset: 4px;
}

.nst-hero__action .wp-block-button__link:focus-visible::before {
  transform: translate3d(0, 0, 0);
}

.nst-hero__action--secondary .wp-block-button__link:focus-visible {
  border-color: var(--nst-white);
  color: var(--nst-ink);
}

.nst-hero__action:active .wp-block-button__link {
  transform: translateY(0) scale(0.98);
}

.nst-hero__action-arrow {
  display: inline-block;
  transition: transform 420ms var(--nst-ease-hover);
}

.nst-hero__action:hover .nst-hero__action-arrow,
.nst-hero__action:focus-within .nst-hero__action-arrow {
  transform: translateX(5px);
}

.nst-hero__scroll-cue {
  bottom: 2rem;
  color: var(--nst-white);
  font-size: 0.5625rem;
  font-weight: 800;
  left: 2rem;
  letter-spacing: 0.13em;
  margin: 0;
  position: absolute;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.nst-hero__scroll-cue::after {
  background: currentColor;
  content: "";
  display: inline-block;
  height: 2.5rem;
  margin-top: 0.65rem;
  opacity: 0.75;
  width: 1px;
}

.nst-home-next-anchor {
  height: 1px;
  margin-top: -1px;
  scroll-margin-top: 1rem;
}

html.nst-motion-boot .nst-hero:not(.is-ready) .nst-hero__media {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transform: scale(1.035);
}

html.nst-motion-boot .nst-hero:not(.is-ready) .nst-hero__overlay {
  opacity: 0;
}

html.nst-motion-boot .nst-hero:not(.is-ready) .nst-hero__eyebrow,
html.nst-motion-boot .nst-hero:not(.is-ready) .nst-hero__summary,
html.nst-motion-boot .nst-hero:not(.is-ready) .nst-hero__actions,
html.nst-motion-boot .nst-hero:not(.is-ready) .nst-hero__scroll-cue {
  opacity: 0;
  transform: translate3d(0, 0.9rem, 0);
}

html.nst-motion-boot .nst-hero:not(.is-ready) .nst-hero__title {
  clip-path: inset(100% 0 0 0);
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
}

html.nst-motion-boot .nst-hero:not(.is-ready) .nst-hero__scroll-cue::after {
  transform: scaleY(0);
  transform-origin: top;
}

html.nst-motion-boot .nst-hero.is-ready .nst-hero__media {
  animation: nst-hero-media-in 1s var(--nst-ease-out) both;
  animation-delay: 0ms;
}

html.nst-motion-boot .nst-hero.is-ready .nst-hero__overlay {
  animation: nst-hero-overlay-in 780ms var(--nst-ease-out) both;
  animation-delay: 90ms;
}

html.nst-motion-boot .nst-hero.is-ready .nst-hero__eyebrow {
  animation: nst-hero-eyebrow-in 650ms var(--nst-ease-out) both;
  animation-delay: 130ms;
}

html.nst-motion-boot .nst-hero.is-ready .nst-hero__title {
  animation: nst-hero-title-reveal 860ms var(--nst-ease-out) both;
  animation-delay: 200ms;
}

html.nst-motion-boot .nst-hero.is-ready .nst-hero__summary {
  animation: nst-hero-summary-in 720ms var(--nst-ease-out) both;
  animation-delay: 350ms;
}

html.nst-motion-boot .nst-hero.is-ready .nst-hero__actions {
  animation: nst-hero-actions-in 650ms var(--nst-ease-out) both;
  animation-delay: 480ms;
}

html.nst-motion-boot .nst-hero.is-ready .nst-hero__scroll-cue {
  animation: nst-hero-cue-in 520ms var(--nst-ease-out) both;
  animation-delay: 620ms;
}

html.nst-motion-boot .nst-hero.is-ready .nst-hero__scroll-cue::after {
  animation: nst-hero-scroll-cue 620ms var(--nst-ease-out) both;
  animation-delay: 700ms;
}

@keyframes nst-hero-media-in {
  from {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: scale(1.035);
  }
  to {
    clip-path: inset(0);
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes nst-hero-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes nst-hero-eyebrow-in {
  from {
    opacity: 0;
    letter-spacing: 0.2em;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    letter-spacing: var(--nst-type-label-track);
    transform: translateY(0);
  }
}

@keyframes nst-hero-title-reveal {
  from {
    clip-path: inset(100% 0 0);
    opacity: 0.01;
    transform: translateY(1.65rem);
  }
  to {
    clip-path: inset(0);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nst-hero-summary-in {
  from {
    opacity: 0;
    transform: translateY(0.9rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nst-hero-actions-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes nst-hero-cue-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.9rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes nst-hero-scroll-cue {
  from {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }
  to {
    opacity: 0.75;
    transform: scaleY(1);
    transform-origin: top;
  }
}

@media (hover: hover) and (pointer: fine) {
  .nst-hero__action:hover .wp-block-button__link {
    transform: translateY(-3px);
    transition:
      background-color 320ms ease,
      border-color 320ms ease,
      color 320ms ease,
      transform 760ms var(--nst-ease-hover);
  }

  .nst-hero__action:hover .wp-block-button__link::before {
    transform: translate3d(0, 0, 0);
    transition: transform 760ms var(--nst-ease-hover);
  }

  .nst-hero__action--secondary:hover .wp-block-button__link {
    border-color: var(--nst-white);
    color: var(--nst-ink);
  }

  .nst-hero__action:active .wp-block-button__link {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 120ms;
  }
}

@media (max-width: 1024px) {
  .nst-hero__content.wp-block-group {
    margin-right: max(4vw, 32px);
    max-width: min(590px, 50vw);
  }
}

@media (max-width: 767px) {
  .nst-hero.wp-block-group {
    align-items: flex-end;
    min-height: max(44rem, 100svh);
  }

  .nst-hero__media img {
    object-position: center;
    transform: translate3d(0, var(--nst-scroll-offset), 0) scale(1.02);
  }

  .nst-hero__overlay {
    background: linear-gradient(
      to top,
      oklch(0.07 0 0 / 0.88) 0%,
      oklch(0.07 0 0 / 0.46) 47%,
      oklch(0.07 0 0 / 0.05) 78%
    );
  }

  .nst-hero__content.wp-block-group {
    margin: 0;
    max-width: none;
    padding: 3rem 1.25rem 3.25rem;
    width: 100%;
  }

  .nst-hero__content.wp-block-group > .nst-hero__eyebrow {
    margin-bottom: 0.9rem;
  }

  .nst-hero__title.wp-block-heading {
    font-size: var(--nst-type-h1-size);
    max-width: 9.5ch;
  }

  .nst-hero__summary {
    font-size: var(--nst-type-body-size);
    max-width: 34rem;
  }

  .nst-hero__actions.wp-block-buttons {
    align-items: stretch;
  }

  .nst-hero__action .wp-block-button__link {
    min-height: 3.15rem;
  }

  .nst-hero__scroll-cue {
    display: none;
  }
}

@media (max-width: 430px) {
  .nst-hero__actions.wp-block-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nst-hero__action,
  .nst-hero__action .wp-block-button__link {
    width: 100%;
  }
}
