/**
 * 99SEEDS homepage: bonus-seed stage and refreshed quality image treatment.
 * Loaded on the front page only, after the child-theme stylesheet.
 */

/* Bonus-seed stage: the existing burgundy threshold box remains untouched. */
.home .entry-content > .wp-block-uagb-container.uagb-block-97103452 {
  /* Remove the editor wrapper's 10px white seam above and below the full-bleed sections. */
  padding-top: 0;
  padding-bottom: 0;
}

.home .entry-content .seeds-affiliate + .seeds-bonus-stage {
  /* Neutralize the 20px row gap imposed by the shared Gutenberg container. */
  margin-top: -20px;
}

.home .entry-content .seeds-bonus-stage {
  min-height: 760px;
  padding: clamp(86px, 8vw, 126px) 0;
  background:
    linear-gradient(rgba(101, 0, 36, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 0, 36, .035) 1px, transparent 1px),
    radial-gradient(circle at 86% 18%, rgba(239, 160, 177, .38), transparent 23%),
    linear-gradient(125deg, #fff8f3 0%, #fffdf9 64%, #fae8eb 100%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  color: #28151b;
}

.home .seeds-bonus-stage::before {
  position: absolute;
  z-index: -1;
  top: -17vw;
  right: -10vw;
  width: clamp(360px, 40vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(101, 0, 36, .12);
  border-radius: 50%;
  content: "";
}

.home .seeds-bonus-stage::after {
  position: absolute;
  z-index: -1;
  right: clamp(18px, 4vw, 72px);
  bottom: -0.18em;
  color: rgba(101, 0, 36, .055);
  content: "99";
  font-size: clamp(13rem, 27vw, 31rem);
  font-weight: 900;
  line-height: .7;
  letter-spacing: -.12em;
  pointer-events: none;
}

.home .seeds-bonus-stage__shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(46px, 5vw, 88px);
  align-items: center;
}

.home .seeds-bonus-stage__visual {
  position: relative;
  min-width: 0;
  height: clamp(520px, 42vw, 640px);
  margin: 0;
  overflow: hidden;
  border-radius: 2px 112px 2px 2px;
  background: #003f37;
  box-shadow:
    -20px 20px 0 rgba(239, 160, 177, .68),
    0 34px 90px rgba(54, 8, 25, .15);
}

.home .seeds-bonus-stage__visual::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 248, 243, .25);
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 62%, rgba(0, 43, 39, .22));
  content: "";
  pointer-events: none;
}

.home .seeds-bonus-stage__visual img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: 42% center;
  animation: seeds-bonus-image-drift 14s ease-in-out infinite alternate;
}

.home .seeds-bonus-stage__box {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.home .seeds-bonus-stage__box::before {
  position: absolute;
  z-index: -1;
  top: -42px;
  right: -32px;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(101, 0, 36, .18);
  border-radius: 50%;
  content: "";
}

@keyframes seeds-bonus-image-drift {
  from {
    transform: scale(1.012) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.045) translate3d(-.6%, .35%, 0);
  }
}

/* Quality section: preserve its copy and layout, reveal the new selection scene. */
.home .seeds-origin__image {
  object-position: center 50%;
  filter: saturate(.9) contrast(1.04) brightness(.9);
}

.home .seeds-origin__shade {
  background:
    linear-gradient(90deg, rgba(0, 39, 35, .94) 0%, rgba(0, 39, 35, .84) 39%, rgba(0, 39, 35, .31) 67%, rgba(0, 39, 35, .08) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .4), transparent 48%);
}

@media (min-width: 981px) {
  .home .seeds-bonus-stage__box {
    transform: translateX(-18px);
  }
}

@media (max-width: 980px) {
  .home .entry-content .seeds-bonus-stage {
    padding: 86px 0 94px;
  }

  .home .seeds-bonus-stage__shell {
    width: min(calc(100% - 64px), 760px) !important;
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .home .seeds-bonus-stage__visual {
    height: clamp(430px, 72vw, 570px);
  }
}

@media (max-width: 720px) {
  .home .entry-content .seeds-bonus-stage {
    min-height: 0;
    padding: 64px 0 74px;
    background-size: 36px 36px, 36px 36px, auto, auto;
  }

  .home .seeds-bonus-stage__shell {
    width: min(calc(100% - 32px), 520px) !important;
    gap: 42px;
  }

  .home .seeds-bonus-stage__visual {
    height: clamp(330px, 105vw, 455px);
    border-radius: 2px 72px 2px 2px;
    box-shadow:
      -10px 10px 0 rgba(239, 160, 177, .68),
      0 26px 62px rgba(54, 8, 25, .14);
  }

  .home .seeds-bonus-stage__visual img {
    object-position: 38% center;
  }

  .home .seeds-bonus-stage__box::before {
    top: -24px;
    right: 0;
    width: 84px;
    height: 84px;
  }

  .home .seeds-origin__image {
    object-position: 68% center;
  }

  .home .seeds-origin__shade {
    background:
      linear-gradient(90deg, rgba(0, 39, 35, .94) 0%, rgba(0, 39, 35, .68) 66%, rgba(0, 39, 35, .34) 100%),
      linear-gradient(0deg, rgba(0, 0, 0, .48), transparent 48%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .seeds-bonus-stage__visual img {
    animation: none;
  }
}
