/* One saturated green plant, confined to the left margin of the homepage. */
/* overflow-x: clip stops the hero's outer breathing ring causing sideways scrolling on tablets. */
.home-page main { position: relative; isolation: isolate; overflow-x: clip; }
.scroll-garden {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: clamp(42px, calc((100vw - 1160px) / 2 - 8px), 160px);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  overflow: hidden;
  color: #26793f;
  --garden-green: #26793f;
}
.scroll-garden > svg { width: 100%; height: 100%; display: block; overflow: hidden; }
.garden-stem { fill: none; stroke: var(--garden-green); stroke-width: 4; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.garden-node { color: var(--garden-green); }
.garden-growth {
  transform-origin: 0 0;
  opacity: var(--node-opacity, 1);
  transform: scale(var(--node-scale, 1));
  transition: opacity .7s ease, transform 1s cubic-bezier(.2,.65,.3,1);
}
.home-page main > .hero,
.home-page main > .about-section { position: relative; z-index: 2; }
.home-page main > section:not(.container) > .container,
.home-page .values-strip > .container { position: relative; z-index: 2; }
.motion-paused .garden-growth,
.scroll-garden.is-paused .garden-growth { transition: none; }
/* Phones and tablets: the side margin is too thin for the plant, so the homepage
   reserves a lane on the left. The plant sits fully on screen inside it and the
   content starts just after it, so flowers are neither clipped nor over the text. */
@media (max-width: 1100px) {
  .home-page { --garden-lane: 46px; }
  .scroll-garden { width: var(--garden-lane); left: 0; }
  .home-page main .container { width: auto; margin-left: calc(var(--garden-lane) + 4px); margin-right: 32px; }
  .garden-stem { stroke-width: 3; }
  /* The inline drawing is made for a wide desktop margin; squeezed into a narrow
     lane its flowers turn into thin slivers. Show them only once the script has
     redrawn them for the lane; without the script, only the stem shows. */
  .scroll-garden:not(.is-ready) .garden-nodes { display: none; }
}
@media (max-width: 800px) {
  .home-page main .container { margin-right: 22px; }
}
@media (max-width: 560px) {
  .home-page { --garden-lane: 40px; }
  .home-page main .container { margin-right: 18px; }
  .garden-stem { stroke-width: 2.6; }
}
@media (prefers-reduced-motion: reduce) {
  .garden-growth { transition: none !important; }
}
