.hero {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  height: calc(100vh - 1.25rem);
  min-height: calc(100vh - 1.25rem);
  background-color: var(--page-bg);
  background-image: var(--gradient-beige-radial);
  clip-path: inset(0);
  animation: hero-reveal-panel 1500ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--color-black-soft);
  animation: hero-reveal-tone 825ms ease 675ms both;
}

.hero__inner {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: calc(100vh - 1.25rem);
  padding: calc(2.5rem + var(--navbar-height, 2.5625rem) + 3.75rem) 2.5rem
    3.4375rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 5rem;
  padding: 0 0.0625rem;
}

@keyframes hero-reveal-panel {
  0% {
    clip-path: inset(calc(50% - 1px) 50% calc(50% - 1px) 50%);
  }

  45% {
    clip-path: inset(calc(50% - 1px) 0 calc(50% - 1px) 0);
  }

  100% {
    clip-path: inset(0);
  }
}

@keyframes hero-reveal-tone {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes hero-reveal-content {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero__lower {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.hero__kicker {
  position: relative;
  z-index: 5;
  display: block;
  align-items: flex-start;
  color: var(--color-black-soft);
  opacity: 0;
  animation: none;
}

@media (min-width: 1600px) {
  .hero__kicker {
    margin-top: 3.25rem;
  }
}

.hero__kicker-index {
  position: absolute;
  left: 0;
  top: 0;
  padding-top: 0.375rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1;
}

.hero__kicker-copy {
  --kicker-first-line-indent: 4.35rem;
  display: flex;
  flex-direction: column;
  font-family: var(--font-subheading);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__kicker-copy span:first-child {
  padding-left: var(--kicker-first-line-indent);
}

.hero__title {
  width: 100%;
}

.hero__title-track {
  position: relative;
  z-index: 3;
  width: 100%;
  overflow: hidden;
}

.hero__body {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.625rem;
  width: min(50%, 42rem);
  max-width: 42rem;
  opacity: 0;
  animation: none;
}

body.is-hero-secondary-ready .hero__kicker,
body.is-hero-secondary-ready .hero__body {
  animation: hero-reveal-content 560ms ease both;
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .hero__inner {
    padding: calc(2rem + var(--navbar-height, 2.5625rem) + 2.75rem) 2.5rem 2.5rem;
  }

  .hero__content {
    gap: 3.5rem;
  }

  .hero__lower {
    gap: 2rem;
  }

  .hero__body {
    width: min(56%, 40rem);
  }
}

@media (min-width: 1440px) {
  .hero__content {
    gap: 5.75rem;
  }

  .hero__lower {
    gap: 3rem;
  }
}

.hero__text {
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--color-black-soft);
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .hero__text {
    font-size: 1rem;
  }
}

.hero__text-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-logo);
  font-size: 1em;
  font-weight: 700;
}

.hero__text-logo-main {
  font-family: inherit;
  font-weight: inherit;
  color: var(--color-black-soft);
}

.hero__text-logo-accent {
  font-family: inherit;
  font-weight: inherit;
  color: var(--color-logo-accent);
}

@media (max-width: 1023px) {
  body.is-mobile-runtime .hero,
  body.is-mobile-runtime .hero__inner {
    height: calc(100vh - 1.25rem);
    min-height: calc(100vh - 1.25rem);
  }

  body.is-mobile-runtime .hero__inner {
    padding-bottom: 8rem;
  }

  body.is-mobile-runtime .hero__kicker {
    margin-top: 3rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__text {
    font-size: 1.125rem;
  }
}

@media (max-width: 767px) {
  .hero__inner {
    height: calc(100vh - 1.25rem);
    min-height: calc(100vh - 1.25rem);
    padding: calc(1.5rem + var(--navbar-height, 2.5625rem) + 6.75rem) 1rem
      4rem;
  }

  .hero__content {
    gap: 3rem;
  }

  .hero__lower {
    gap: 1.75rem;
  }

  .hero__kicker {
    z-index: 3;
  }

  .hero__kicker-copy {
    --kicker-first-line-indent: 3.55rem;
  }

  .hero__title-track {
    z-index: 5;
  }

  .hero__kicker-index {
    padding-top: 0.1875rem;
    font-size: 0.875rem;
  }

  .hero__text {
    font-size: 1rem;
  }

  .hero__body {
    z-index: 6;
    width: min(100%, 32rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero__kicker,
  .hero__body {
    animation: none;
  }
}
