.hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(28rem, 1.2fr);
  align-items: center;
  gap: clamp(1rem, 2vw, 2.5rem);
  width: 100%;
  min-height: clamp(38rem, calc(100svh - 8.5rem), 58rem);
  padding: clamp(2rem, 4vw, 4rem) 0 clamp(2rem, 4vw, 4rem) clamp(1.5rem, 7vw, 8rem);
  background: var(--background-gradient);
  overflow: hidden;
}

.hero-content {
  width: 100%;
  max-width: 42rem;
  color: var(--nav-font-color);
}

.hero h1 {
  max-width: 10ch;
  margin: 0 0 1rem;
  color: var(--hero-heading-color);
  font-family: var(--font-idiqlat);
  font-size: clamp(4rem, 6vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, .5);
  
}

.hero .fx-starlight {
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  background:
    radial-gradient(circle at 14% 35%, #fff 0 2px, transparent 2.4px),
    radial-gradient(circle at 42% 68%, #fff 0 1.6px, transparent 2px),
    radial-gradient(circle at 75% 24%, #fff 0 2.2px, transparent 2.6px),
    linear-gradient(100deg, var(--ink), var(--ink-3), var(--ink));
  background-size: 120px 60px, 150px 72px, 180px 68px, 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ink-3) 45%, transparent));
  animation: fx-starlight 3.6s linear infinite;
}

@keyframes fx-starlight {
  0% {
    background-position: 0 0, 0 0, 0 0, 120% 0;
  }

  100% {
    background-position: 120px 0, -150px 0, 180px 0, -120% 0;
  }
}

.hero p {
  max-width: 38rem;
  margin: 0;
  color: var(--nav-font-color);
  font-family: var(--font-poppins);
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  font-weight: 500;
  line-height: 1.7;
}

.hero-media {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.hero-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: min(52rem, calc(100svh - 9rem));
  margin: 0;
  object-fit: contain;
  object-position: right center;
}

@media (min-width: 992px) {
  .hero {
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    width: min(42%, 42rem);
  }

  .hero-media {
    position: absolute;
    z-index: 0;
    top: -5%;
    right: -1.5%;
    bottom: -7%;
    width: min(64vw, 76rem);
    height: 112%;
    pointer-events: none;
  }

  .hero-media img {
    width: auto;
    max-width: none;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: right center;
  }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .hero {
    grid-template-columns: minmax(17rem, 0.8fr) minmax(24rem, 1.2fr);
    padding-left: clamp(2rem, 5vw, 4rem);
  }
}

@media (max-width: 991.98px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 3rem);
    min-height: 0;
    padding: clamp(2.5rem, 8vw, 5rem) 0 0;
  }

  .hero-content {
    width: 100%;
    max-width: 38rem;
    padding-inline: clamp(1rem, 6vw, 3rem);
  }

  .hero-media {
    align-self: end;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(3.5rem, 12vw, 6rem);
  }

  .hero-media img {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    object-position: center;
  }
}

@media (max-width: 479.98px) {
  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.75rem);
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .fx-starlight {
    animation: none;
    background-position: 0 0, 0 0, 0 0, 50% 0;
  }
}
