/* A contained slider surface keeps vertical photo transitions separate from page flow. */
.home-plants { background: linear-gradient(115deg, var(--section-green) 0%, var(--section-green) 18%, var(--section-teal) 65%, var(--section-blue) 100%); }
.home-plants__heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 28px; }
.home-plants__pagination { display: flex; align-items: center; gap: 16px; color: var(--brand-accent); }
.home-plants__progress { display: block; width: 92px; height: 2px; background: rgb(255 255 255 / .24); overflow: hidden; }
.home-plants__progress i { display: block; width: 100%; height: 100%; background: var(--brand-accent); transform: scaleX(0); transform-origin: left; }
.home-plants__stage { position: relative; height: clamp(440px, 47vw, 720px); min-width: 0; overflow: hidden; border: 1px solid rgb(255 255 255 / .28); border-radius: 30px; background: var(--brand-dark); touch-action: pan-y; }
.home-plants__slide { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.home-plants__slide[hidden] { display: none; }
.home-plants__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-plants__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(15 35 30 / .66), rgb(15 35 30 / .05) 85%), linear-gradient(0deg, rgb(15 35 30 / .91), rgb(15 35 30 / .05) 82%); }
.home-plants__copy { position: absolute; z-index: 2; inset: auto 108px 64px 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 690px; }
.home-plants__copy h3 { text-wrap: balance; }
.home-plants__copy .regular-text { max-width: 620px; }
.home-plants__link { display: inline-flex; align-items: center; gap: 24px; min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .5); color: white; background: rgb(255 255 255 / .08); transition: background 180ms ease, border-color 180ms ease; }
.home-plants__link:hover { background: var(--brand-primary); border-color: var(--brand-accent); }
.home-plants__link svg { width: 18px; height: 18px; }
.home-plants__frame { position: absolute; pointer-events: none; inset: 15px; z-index: 3; border: 1px solid rgb(255 255 255 / .22); border-radius: 18px; }
.home-plants__controls { position: absolute; right: 30px; bottom: 30px; z-index: 4; display: flex; flex-direction: column; gap: 10px; }
.home-plants__controls button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .5); color: white; background: rgb(15 35 30 / .65); transition: background 180ms ease, border-color 180ms ease; }
.home-plants__controls button:hover { background: var(--brand-primary); border-color: var(--brand-accent); }
.home-plants__link:focus-visible, .home-plants__controls button:focus-visible, .home-plants__stage:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 4px; }
.home-plants__status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 767px) {
  .home-plants__stage { height: 560px; border-radius: 24px; }
  .home-plants__frame { inset: 10px; border-radius: 14px; }
  .home-plants__copy { inset: auto 28px 106px 28px; gap: 16px; }
  .home-plants__copy .regular-text p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .home-plants__controls { right: auto; left: 28px; bottom: 24px; flex-direction: row; }
  .home-plants__image { object-position: center; }
}
@media (max-width: 420px) {
  .home-plants__heading { gap: 18px; }
  .home-plants__pagination { gap: 10px; }
  .home-plants__progress { width: 54px; }
}
/* Short viewports: reserve room for the site header and section heading. */
@media (max-height: 900px) {
  #section-mtwvu9xo.home-plants {
    height: calc(100svh - var(--site-header-height, 80px));
    padding-block: clamp(16px, 4svh, 48px);
  }
  .home-plants > .max-w-xl {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
  }
  .home-plants__heading { margin-bottom: clamp(12px, 2svh, 24px); }
  .home-plants__stage { height: 100%; }
  .home-plants__copy { bottom: 28px; left: 32px; gap: 12px; }
  .home-plants__controls { right: 24px; bottom: 24px; }
}
@media (max-height: 900px) and (max-width: 767px) {
  .home-plants__copy { right: 24px; bottom: 88px; left: 24px; gap: 10px; }
  .home-plants__controls { right: auto; left: 24px; bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-plants__progress i, .home-plants__link, .home-plants__controls button { transition: none; }
}

/* SVG path length keeps the moving accent consistent at every aspect ratio. */
.home-plants__frame svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.home-plants__frame rect { fill: none; stroke: var(--brand-accent); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 9 91; filter: drop-shadow(0 0 3px rgb(var(--brand-accent-rgb) / .5)); animation: homePlantsTrace 7s cubic-bezier(.37, 0, .63, 1) infinite, homePlantsTraceGlow 3.5s ease-in-out infinite alternate; }
.home-plants.is-plants-paused .home-plants__frame rect { animation-play-state: paused; }
@keyframes homePlantsTrace { to { stroke-dashoffset: -100; } }
@keyframes homePlantsTraceGlow { from { opacity: .5; stroke-dasharray: 7 93; } to { opacity: 1; stroke-dasharray: 11 89; } }
@media (prefers-reduced-motion: reduce) { .home-plants__frame rect { animation: none; } }
