.hero {
  --hero-ink: #f7f2e6;
  position: relative;
  background: #101010;
  color: var(--hero-ink);
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2.6rem, 7vh, 4.8rem) clamp(1.15rem, 2.4vw, 2.25rem) clamp(1.35rem, 3vh, 2rem);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: none;
  margin-top: clamp(calc(1.8rem + 2vh), 6.2vh, calc(3.2rem + 2vh));
  margin-left: 5vw;
}

.hero h1 {
  margin: 0;
  color: var(--hero-ink);
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.55rem, 5.4vw, 6.3rem);
  letter-spacing: -0.048em;
  line-height: 0.9;
}

.hero .line {
  display: block;
}

.hero .line.line-script {
  display: flex;
}

.line-script {
  display: flex;
  align-items: flex-end;
  gap: 0.28em;
  margin: 0.02em 0 0.04em;
}

.line-script img {
  height: 1.28em;
  width: auto;
  max-width: 7.4em;
  min-width: 0;
  display: block;
  margin-bottom: -0.08em;
}

.hero-path {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 0.4rem;
  margin: 5.25rem 0 0;
  color: var(--hero-ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1rem, 1.52vw, 1.4rem);
  letter-spacing: -0.02em;
}

.hero-type {
  display: inline-flex;
  align-items: center;
  min-width: 9.5em;
  min-height: 1.6em;
  color: var(--color-teal);
}

.hero-type__word {
  color: inherit;
}

.hero-type__caret {
  width: 0.08em;
  height: 0.92em;
  margin-left: 0.08em;
  background: currentColor;
  animation: hero-caret 0.85s steps(1) infinite;
}

@keyframes hero-caret {
  50% {
    opacity: 0;
  }
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 4.9rem;
  min-height: 3.97rem;
  min-width: 21.85rem;
  justify-content: center;
  padding: 1.04rem 1.84rem;
  border-radius: 10px;
  background: var(--color-teal);
  color: #101010;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
}

.hero-cta:hover {
  background: var(--hero-ink);
  color: #101010;
}

.hero-art {
  position: absolute;
  right: clamp(calc(2.4rem + 10vw), 16vw, calc(5.25rem + 10vw));
  bottom: clamp(calc(6.2rem + 3vh), 20vh, calc(10rem + 3vh));
  width: min(37vw, 34rem);
  margin: 0;
  z-index: 0;
}

.hero-art img {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - var(--header-h) - 7.5rem);
  object-fit: contain;
  object-position: right bottom;
}

.hero-more {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0 5vw;
  max-width: none;
  color: var(--hero-ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.28rem;
}

.hero-more__arrow {
  flex: 0 0 auto;
  width: auto;
  height: 2.6em;
  display: block;
}

.hero-more__short {
  display: none;
}

.js .hero .line,
.js .hero-path,
.js .hero-cta,
.js .hero-more {
  animation: hero-rise 0.7s ease both;
}

.js .hero .line:nth-child(1) {
  animation-delay: 0.05s;
}

.js .hero .line:nth-child(2) {
  animation-delay: 0.18s;
}

.js .hero .line:nth-child(3) {
  animation-delay: 0.32s;
}

.js .hero-path {
  animation-delay: 0.46s;
}

.js .hero-cta {
  animation-delay: 0.58s;
}

.js .hero-art {
  animation: hero-art-in 0.9s ease 0.22s both;
}

.js .hero-more {
  animation-delay: 0.72s;
}

.js .hero-more__arrow {
  animation: hero-arrow 1.6s ease-in-out 1.15s infinite;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.15rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-art-in {
  from {
    opacity: 0;
    transform: translateY(1.6rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-arrow {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(0.4rem);
  }
}

@media (max-width: 860px) {
  .hero {
    height: calc(100dvh - 5rem);
    min-height: calc(100dvh - 5rem);
    max-height: calc(100dvh - 5rem);
    overflow: hidden;
    justify-content: flex-start;
    padding-top: 1.15rem;
    padding-bottom: 0.7rem;
  }

  .hero-copy,
  .hero-more {
    max-width: none;
    flex: 0 0 auto;
  }

  .hero-copy {
    display: contents;
    margin-top: 0;
    margin-left: 0;
  }

  .hero h1 {
    margin-top: auto;
    font-size: clamp(1.15rem, 6.35vw, 2.15rem);
    line-height: 1.12;
  }

  .hero .line:first-child {
    white-space: nowrap;
  }

  .hero .line + .line {
    margin-top: 0.1em;
  }

  .hero .line-script img {
    height: 1.05em;
    margin-bottom: 0;
  }

  .hero-path {
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-top: 1.25rem;
    padding-top: 0;
    font-size: clamp(0.7rem, 3.2vw, 1.05rem);
  }

  .hero-type {
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
  }

  .hero-cta {
    min-width: 0;
    margin-top: 1.4rem;
    min-height: calc(3.97rem * 0.72);
    padding: calc(1.04rem * 0.72) calc(1.84rem * 0.72);
    gap: calc(0.55rem * 0.72);
    font-size: calc(1.4rem * 0.72);
  }

  .hero-cta svg {
    width: 16px;
    height: 16px;
  }

  .hero-art {
    position: relative;
    right: auto;
    bottom: auto;
    width: 78%;
    max-width: 20.5rem;
    margin: 2.15rem 0 0 auto;
    padding-top: 0;
    flex: 0 1 auto;
    min-height: 0;
  }

  .hero-art img {
    width: auto;
    max-width: 100%;
    max-height: min(28vh, 14.8rem);
    object-position: left bottom;
  }

  .hero-more {
    margin: auto 0 0;
    padding-right: 4rem;
    font-size: 0.84rem;
    align-items: flex-end;
  }

  .hero-more__text {
    display: none;
  }

  .hero-more__short {
    display: inline;
    white-space: nowrap;
  }
}

@media (max-width: 860px) and (max-height: 780px) {
  .hero-path {
    margin-top: 1.15rem;
  }

  .hero-cta {
    margin-top: 1.2rem;
  }

  .hero-art {
    margin-top: 1.35rem;
  }

  .hero-art img {
    max-height: min(24vh, 12.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero .line,
  .js .hero-path,
  .js .hero-cta,
  .js .hero-art,
  .js .hero-more,
  .js .hero-more__arrow {
    animation: none;
  }
}
