.hero-mid {
  position: relative;
  z-index: 0;
  padding: clamp(48px, 7vw, 96px) 0;
  min-height: 80dvh;
  display: grid;
  place-items: center;
  margin-right: 7rem;
}

.hero-mid__grid {
  position: relative;
  z-index: 0;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, max-content) 1fr;
  align-items: center;
}

.hero-mid__media {
  border-radius: 20px;
  overflow: hidden;
}

.hero-mid__media--square {
  width: 100%;
  aspect-ratio: 1 / 1;
  justify-self: start;
}

.hero-mid__img {
  width: 150%;
  height: 150%;
  display: block;
  object-fit: cover;
  object-position: 30% -80px;
  filter: brightness(0) saturate(100%);
}

.hero-mid__content {
  text-align: left;
  justify-self: start;
  min-width: 0;
}

.hero-mid__content h1 {
  margin: 0 0 12px;
  font-size: clamp(5.8rem, 6.6vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  width: max-content;
  max-width: none;
}

.hero-mid__content p {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
}

.hero-mid__media,
.hero-mid__content {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.hero-mid__media,
.hero-mid__content {
  will-change: transform;
}

@media (max-width: 1024px) {
  .hero-mid {
    margin-right: 0;
    padding: clamp(40px, 6vw, 72px) 0;
    min-height: auto;
  }

  .hero-mid__grid {
    grid-template-columns: 1fr;
    width: min(1100px, calc(100% - 32px));
    justify-items: center;
    align-items: start;
    gap: 18px;
  }

  .hero-mid__media--square {
    justify-self: center;
    width: min(360px, 100%);
    max-width: none;
  }

  .hero-mid__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 35%;
  }

  .hero-mid__content {
    justify-self: center;
    text-align: center;
    min-width: 0;
  }

  .hero-mid__content h1 {
    white-space: normal;
    width: auto;
    font-size: clamp(3.2rem, 8vw, 5rem);
  }

  .hero-mid__content p {
    max-width: 60ch;
    margin: 0 auto;
  }
}

@media (max-width: 500px) {
  .hero-mid {
    margin-right: 0;
    padding: clamp(40px, 6vw, 72px) 0;
    min-height: auto;
    gap: none !important;
  }

  .hero-mid__grid {
    grid-template-columns: 1fr;
    width: min(1100px, calc(100% - 32px));
    justify-items: left;
    align-items: start;
    gap: none !important;
  }

  .hero-mid__media--square {
    justify-self: left;
    width: min(360px, 100%);
    max-width: none;
    max-height: 30vh;
  }

  .hero-mid__img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: -6rem -4rem;
  }

  .hero-mid__content {
    justify-self: left;
    text-align: left;
    min-width: 0;
  }

  .hero-mid__content h1 {
    margin-top: 0rem !important;
    white-space: normal;
    width: auto;
    font-size: clamp(5rem, 8vw, 6rem);
  }

  .hero-mid__content p {
    max-width: 30ch;
    margin: 0 0.6rem 0 0;
  }
}

.cta-band {
  width: 100%;
  background: var(--text);
}

.cta-band__inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 44px) 0;
  display: grid;
  gap: 14px;
  text-align: center;
}

.cta-band__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--bg);
}

.cta-band__link::after {
  content: "";
  width: 0.9em;
  height: 0.9em;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 17L17 7' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M9 7h8v8' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 17L17 7' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M9 7h8v8' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transform: translateY(0.22em);
}

@media (max-width: 640px) {
  .cta-band__inner {
    text-align: left;
  }

  .cta-band__link {
    justify-content: flex-start;
    font-size: clamp(1.3rem, 4.6vw, 1.8rem);
    width: 100%;
    line-height: 1.5;
  }

  .cta-band__link::after {
    flex: 0 0 auto;
    margin-left: 8px;
  }
}

.text-stack {
  width: 100%;
  padding: clamp(56px, 7vw, 100px) 0;
}

.text-stack__inner {
  width: 60%;
  margin: 0 auto;
}

.text-stack__inner h2 {
  margin: 0 0 clamp(18px, 3vw, 32px);
  text-align: left;
  font-size: clamp(3.2rem, 4.2vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-stack__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 28px);
}

.text-stack__item h3 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: left;
}

.text-stack__item p {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  opacity: 0.92;
  text-align: left;
}

@media (max-width: 1024px) {
  .text-stack__inner {
    width: min(92%, 680px);
    margin: 0 auto;
  }

  .text-stack__inner h2,
  .text-stack__item h3,
  .text-stack__item p {
    text-align: left;
  }
}
