.fs-gradient-hero {
  --fs-gh-brand: var(--color-brand, #cf336e);
  --fs-gh-editorial: var(--color-editorial, #5e1c50);
  --fs-gh-white: var(--color-white, #fff);
  --fs-gh-ink: var(--color-ink, #140f15);
  --fs-gh-radius: var(--radius-lg, 28px);
  color: var(--fs-gh-white);
  overflow: hidden;
  position: relative;
}

.fs-gradient-hero--brand {
  background:
    radial-gradient(circle at 84% 12%, rgb(255 255 255 / 16%), transparent 22rem),
    radial-gradient(circle at 12% 88%, rgb(255 255 255 / 10%), transparent 18rem),
    linear-gradient(135deg, var(--fs-gh-editorial), var(--fs-gh-brand) 130%);
}

.fs-gradient-hero--dark {
  background:
    radial-gradient(circle at 84% 12%, rgb(207 51 110 / 35%), transparent 24rem),
    linear-gradient(135deg, #180d17, var(--fs-gh-editorial));
}

.fs-gradient-hero__inner {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  margin-inline: auto;
  max-width: 72rem;
  min-height: clamp(24rem, 48vw, 36rem);
  padding: clamp(3rem, 8vw, 6rem) var(--fs-gh-gutter, 1.5rem);
  position: relative;
  z-index: 1;
}

.fs-gradient-hero.has-image .fs-gradient-hero__inner {
  grid-template-columns: minmax(0, 0.95fr) minmax(16rem, 0.75fr);
}

.fs-gradient-hero--center .fs-gradient-hero__inner {
  justify-items: center;
  text-align: center;
}

.fs-gradient-hero__content {
  max-width: 40rem;
}

.fs-gradient-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  opacity: 0.82;
  text-transform: uppercase;
}

.fs-gradient-hero__title {
  color: var(--fs-gh-white);
  font-family: var(--font-secondary, Georgia, serif);
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-top: 0.75rem;
}

.fs-gradient-hero__copy {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  margin-top: 1.1rem;
  max-width: 34rem;
  opacity: 0.9;
}

.fs-gradient-hero__button {
  background: var(--fs-gh-white);
  border-radius: 999px;
  color: var(--fs-gh-editorial);
  display: inline-flex;
  font-weight: 800;
  margin-top: 1.6rem;
  min-height: 3rem;
  padding: 0.9rem 1.55rem;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.fs-gradient-hero__button:hover {
  box-shadow: 0 0.85rem 2rem rgb(0 0 0 / 24%);
  color: var(--fs-gh-editorial);
  transform: translateY(-1px);
}

.fs-gradient-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.fs-gradient-hero--center .fs-gradient-hero__chips {
  justify-content: center;
}

.fs-gradient-hero__chips li {
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
}

.fs-gradient-hero__media {
  isolation: isolate;
  justify-self: center;
  position: relative;
}

.fs-gradient-hero__media::before {
  background: rgb(255 255 255 / 18%);
  border-radius: 999px;
  content: '';
  filter: blur(0.25rem);
  inset: 14% -6% -4%;
  position: absolute;
  z-index: -1;
}

.fs-gradient-hero--image-cutout .fs-gradient-hero__media::before {
  background:
    radial-gradient(circle, rgb(255 255 255 / 34%), rgb(255 255 255 / 10%) 44%, transparent 68%);
  filter: blur(0.15rem);
  inset: 8% -18% -8%;
  transform: rotate(-7deg);
}

.fs-gradient-hero__image {
  display: block;
  filter: drop-shadow(0 1.5rem 2rem rgb(0 0 0 / 28%));
  height: auto;
  max-height: 30rem;
  max-width: min(100%, 28rem);
  object-fit: contain;
}

.fs-gradient-hero--image-cutout .fs-gradient-hero__image {
  filter:
    drop-shadow(0 1.15rem 0.9rem rgb(20 15 21 / 18%))
    drop-shadow(0 2.4rem 2.25rem rgb(20 15 21 / 34%));
  max-height: 34rem;
  max-width: min(112%, 31rem);
  transform: rotate(-7deg) translateY(-0.25rem);
  transform-origin: 50% 58%;
}

.fs-gradient-hero.has-rotating-products .fs-gradient-hero__media {
  display: grid;
  min-height: clamp(19rem, 36vw, 34rem);
  min-width: min(100%, 24rem);
  place-items: center;
}

.fs-gradient-hero.has-rotating-products .fs-gradient-hero__image {
  grid-area: 1 / 1;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .fs-gradient-hero.has-rotating-products .fs-gradient-hero__image {
    animation: fs-gradient-hero-product-rotate 12s ease-in-out infinite both;
  }

  .fs-gradient-hero.has-rotating-products .fs-gradient-hero__image:nth-child(2) { animation-delay: 3s; }
  .fs-gradient-hero.has-rotating-products .fs-gradient-hero__image:nth-child(3) { animation-delay: 6s; }
  .fs-gradient-hero.has-rotating-products .fs-gradient-hero__image:nth-child(4) { animation-delay: 9s; }
}

.fs-gradient-hero.has-rotating-products .fs-gradient-hero__image:first-child {
  opacity: 1;
}

@media (max-width: 48rem) {
  .fs-gradient-hero.has-image .fs-gradient-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
  }

  .fs-gradient-hero__copy,
  .fs-gradient-hero__content {
    margin-inline: auto;
  }

  .fs-gradient-hero__chips {
    justify-content: center;
  }

  .fs-gradient-hero__image {
    max-height: 18rem;
  }

  .fs-gradient-hero--image-cutout .fs-gradient-hero__image {
    max-height: 20rem;
    max-width: min(100%, 22rem);
    transform: rotate(-5deg);
  }

  .fs-gradient-hero.has-rotating-products .fs-gradient-hero__media {
    min-height: 20rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fs-gradient-hero {
    animation: fs-gradient-hero-in 0.45s ease-out both;
  }
}

@keyframes fs-gradient-hero-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fs-gradient-hero-product-rotate {
  0%, 18% { opacity: 0; transform: rotate(-7deg) translateY(0.75rem) scale(0.96); }
  25%, 43% { opacity: 1; transform: rotate(-7deg) translateY(-0.25rem) scale(1); }
  50%, 100% { opacity: 0; transform: rotate(-7deg) translateY(-1rem) scale(1.03); }
}
