/* Hero: hero.js draws the plant */
.sprout-hero {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  align-items: center;
  padding: 24px 55px 34px;
  gap: 20px;
}
.sprout-art {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}
.hero-vector,
.hero-webgl,
.hero-accents {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  inset: 0;
}
.hero-webgl {
  visibility: hidden;
}
[data-renderer='webgl'] .hero-webgl {
  visibility: visible;
}
[data-renderer='webgl'] .hero-vector {
  visibility: hidden;
}
.sprout-copy {
  grid-column: 1;
  grid-row: 1;
  padding: 0 0 30px 30px;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.sprout-copy h1 {
  font-size: clamp(58px, 6.5vw, 94px);
  line-height: 1.02;
  color: var(--forest);
  letter-spacing: -0.065em;
}
.sprout-copy h1 em {
  color: var(--clay);
}
.sprout-copy > p {
  font-size: 23px;
  line-height: 1.45;
  font-weight: 700;
  margin: 30px 0 34px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.sprout-copy .button {
  font-size: 18px;
  padding: 18px 26px;
}
@media (max-width: 1100px) {
  .sprout-hero {
    padding: 36px 40px 30px;
    gap: 0;
  }
  .sprout-copy {
    padding-left: 0;
  }
  .sprout-copy h1 {
    font-size: 66px;
  }
  .sprout-copy > p {
    font-size: 21px;
  }
}
@media (max-width: 900px) {
  .sprout-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 44px 24px 30px;
    gap: 8px;
  }
  .sprout-copy {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    text-align: center;
  }
  .sprout-copy h1 {
    font-size: 70px;
  }
  .sprout-copy > p {
    margin: 24px 0 28px;
  }
  .sprout-art {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 560px);
    justify-self: center;
  }
}
@media (max-width: 540px) {
  .sprout-hero {
    padding: 38px 18px 24px;
  }
  .sprout-copy h1 {
    font-size: clamp(42px, 11.5vw, 61px);
  }
  .sprout-copy > p {
    font-size: 19px;
  }
  .sprout-copy .button {
    font-size: 16px;
    padding: 16px 22px;
  }
  .sprout-art {
    margin-top: 12px;
  }
}

/* Illustration paint, matching the hero */
.h-clay {
  fill: var(--clay);
}
.h-forest {
  fill: var(--forest);
}
.h-sage {
  fill: var(--sage);
}
.h-sand {
  fill: var(--sand);
}
.h-peach {
  fill: var(--peach);
}
.h-lilac {
  fill: var(--lilac);
  stroke: color-mix(in srgb, var(--forest) 28%, transparent);
  stroke-width: 1.2;
}
.h-lit {
  fill: var(--white);
  opacity: 0.17;
}
.h-fold {
  fill: var(--forest);
  opacity: 0.09;
}
.h-rib {
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.3;
}
.h-vein {
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.25;
}

/* Only the drawn parts move, not the container */
.is-ready:not(.motion-off) .home-art[data-reveal].in-view {
  animation: none;
}
@keyframes home-draw {
  from {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
}
@keyframes home-fade {
  from {
    opacity: 0;
  }
}
@keyframes home-unfold {
  from {
    transform: scale(0) rotate(-12deg);
  }
}
@keyframes home-pop {
  from {
    transform: scale(0);
  }
}
@keyframes home-sway {
  from {
    transform: rotate(0);
  }
  50% {
    transform: rotate(-3deg);
  }
  to {
    transform: rotate(2deg);
  }
}
@keyframes home-sway-leaf {
  from {
    transform: rotate(0);
  }
  50% {
    transform: rotate(4deg);
  }
  to {
    transform: rotate(-2deg);
  }
}
@keyframes home-tag {
  from {
    rotate: -16deg;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
}
@keyframes home-tag-sway {
  from {
    rotate: -3deg;
  }
  to {
    rotate: 1.5deg;
  }
}

/* Programs: GenTech */
.home-programs {
  padding-top: 70px;
}
.home-programs-heading {
  margin-bottom: 30px;
}
.home-programs-heading h2 {
  font-size: 58px;
  margin-top: 20px;
  color: var(--forest);
}
.gt {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.gt-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.gt-status {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--clay);
}
.gt-copy h3 {
  font-size: clamp(32px, 3.2vw, 44px);
  margin: 22px 0 20px;
  color: var(--forest);
}
.gt-copy > p:not(.gt-status) {
  max-width: 400px;
  margin-bottom: 32px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}
.gt-art {
  position: relative;
  min-width: 0;
}
.gt-art > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.gt-flap,
.gt-back,
.gt-pocket {
  stroke: var(--forest);
  stroke-width: 6;
  stroke-linejoin: round;
}
.gt-flap {
  fill: var(--white);
  transform-box: view-box;
  transform-origin: 200px 334px;
}
.gt-back {
  fill: var(--light);
}
.gt-pocket {
  fill: var(--white);
}
.gt-stem {
  fill: none;
  stroke: var(--forest);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
}
.gt-dots {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0 12;
  opacity: 0.9;
}
.gt-twig {
  fill: none;
  stroke: var(--forest);
  stroke-width: 6;
  stroke-linecap: round;
}
.gt-string {
  fill: none;
  stroke: var(--forest);
  stroke-width: 2;
  stroke-linecap: round;
}
.gt-side {
  transform-box: view-box;
  transform-origin: 216px 274px;
}
.gt-pair,
.gt-sway {
  transform-box: view-box;
  transform-origin: 284px 141px;
}
.gt-leaf-sway {
  transform-box: view-box;
  transform-origin: 430px 234px;
}
/* Hangs from the string end at (420, 334) of the 640 × 540 drawing */
.gt-tag {
  position: absolute;
  left: 65.625%;
  top: 61.85%;
  translate: -50% 0;
  rotate: -3deg;
  transform-origin: 50% 0;
  display: grid;
  gap: 4px;
  padding: 12px 18px 14px;
  border-radius: 12px 12px 16px 16px;
  background: var(--forest);
  color: var(--white);
  white-space: nowrap;
  box-shadow: 0 14px 26px color-mix(in srgb, var(--ink) 12%, transparent);
}
.gt-tag::before {
  content: '';
  justify-self: center;
  width: 10px;
  height: 10px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--paper);
}
.gt-tag strong {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.is-ready:not(.motion-off) .gt-art .gt-flap {
  animation: home-unflip 0.8s 0.25s cubic-bezier(0.3, 0.7, 0.2, 1) backwards;
}
@keyframes home-unflip {
  from {
    transform: scaleY(-1);
  }
}
.is-ready:not(.motion-off) .gt-art .gt-stem {
  animation: home-draw 1s 0.85s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
.is-ready:not(.motion-off) .gt-art .gt-dots {
  animation: home-fade 0.5s 1.75s backwards;
}
.is-ready:not(.motion-off) .gt-art .gt-side {
  animation: home-unfold 0.7s 1.35s cubic-bezier(0.2, 0.9, 0.25, 1.15) backwards;
}
.is-ready:not(.motion-off) .gt-art .gt-pair {
  animation: home-unfold 0.9s 1.6s cubic-bezier(0.2, 0.9, 0.25, 1.15) backwards;
}
.is-ready:not(.motion-off) .gt-art .gt-sway {
  animation: home-sway 7s 2.6s ease-in-out infinite alternate;
}
.is-ready:not(.motion-off) .gt-art .gt-leaf-sway {
  animation: home-sway-leaf 5.5s 2.2s ease-in-out infinite alternate;
}
.is-ready:not(.motion-off) .gt-art .gt-tag {
  animation:
    home-tag 1.2s 1.95s cubic-bezier(0.3, 1.5, 0.4, 1) backwards,
    home-tag-sway 6s 3.2s ease-in-out infinite alternate;
}
/* Paused offscreen, so the sway resumes */
.is-ready:not(.motion-off) .gt-art.in-view:not(.is-visible) * {
  animation-play-state: paused;
}

/* Programs: proposed */
.herb {
  margin-top: 110px;
}
.herb-label {
  margin-bottom: 30px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--body);
}
.herb-label strong {
  font-weight: 800;
  color: var(--forest);
}
.herbarium {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.specimen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 6px;
  text-align: center;
  color: var(--forest);
}
.sp-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 230px;
  border-bottom: 2px solid var(--forest);
}
.sp-art svg {
  display: block;
  width: auto;
  height: 100%;
  max-width: 92%;
  overflow: visible;
}
.sp-crealab svg {
  height: 88%;
}
.sp-passerelles svg {
  height: 95%;
}
.sp-fabrique svg {
  height: 76%;
}
.sp-name {
  margin-top: 18px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-decoration: underline 2px transparent;
  text-underline-offset: 6px;
  transition:
    color 0.25s,
    text-decoration-color 0.25s;
}
.specimen:focus-visible {
  outline-offset: 6px;
}
.specimen:focus-visible .sp-name {
  color: var(--clay);
  text-decoration-color: currentColor;
}
.sp-stem {
  fill: none;
  stroke: var(--forest);
  stroke-width: 7;
  stroke-linecap: round;
}
.sp-cutting {
  stroke-width: 10;
}
.sp-shoot {
  stroke-width: 4;
}
.sp-move {
  transform-box: view-box;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}
.sp-etinclic .sp-move {
  transform-origin: 118px 128px;
}
.sp-crealab .sp-move {
  transform-origin: 94px 172px;
}
.sp-passerelles .sp-move {
  transform-origin: 100px 146px;
}
.sp-fabrique .sp-move {
  transform-origin: 114px 170px;
}
.sp-etinclic:focus-visible .sp-move {
  transform: rotate(24deg);
}
.sp-crealab:focus-visible .sp-move {
  transform: rotate(9deg);
}
.sp-passerelles:focus-visible .sp-move {
  transform: scale(1.14, 1.06);
}
.sp-fabrique:focus-visible .sp-move {
  transform: scale(1.24);
}
@media (hover: hover) {
  .specimen:hover .sp-name {
    color: var(--clay);
    text-decoration-color: currentColor;
  }
  .sp-etinclic:hover .sp-move {
    transform: rotate(24deg);
  }
  .sp-crealab:hover .sp-move {
    transform: rotate(9deg);
  }
  .sp-passerelles:hover .sp-move {
    transform: scale(1.14, 1.06);
  }
  .sp-fabrique:hover .sp-move {
    transform: scale(1.24);
  }
}

/* Approach */
.home-approach {
  background: var(--light);
  border-radius: 50% 5% 15% 0 / 50px 30px 40px 0;
}
.home-approach > .section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}
.approach-growth {
  min-width: 0;
}
.approach-growth > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.ag-inner {
  fill: var(--white);
  opacity: 0.2;
}
.ag-outer {
  fill: var(--forest);
  opacity: 0.18;
}
.ag-stem {
  fill: var(--forest);
}
.ag-dots {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0 12;
  opacity: 0.9;
}
.ag-shoot,
.ag-sway,
.ag-cup,
.ag-cup-motion,
.ag-f,
.ag-bud {
  transform-box: view-box;
}
.ag-shoot,
.ag-sway,
.ag-cup,
.ag-cup-motion {
  transform-origin: 283px 365px;
}
.ag-f {
  transform-origin: 298px 206px;
}
.ag-bud {
  transform-origin: 329px 80px;
}
@keyframes ag-open {
  from {
    transform: scale(0.35) rotate(var(--fold));
  }
}
@keyframes ag-rise {
  from {
    transform: scale(0.1) rotate(-10deg);
  }
}
@keyframes ag-pass {
  0%,
  55%,
  100% {
    transform: rotate(0);
  }
  26% {
    transform: rotate(var(--reach));
  }
}
.ag-left {
  --fold: 28deg;
  --reach: 5deg;
  --entry: 0.15s;
  --pass: 2.6s;
}
.ag-back {
  --fold: -15deg;
  --reach: -5deg;
  --entry: 0.3s;
  --pass: 5s;
}
.ag-right {
  --fold: -28deg;
  --reach: -5deg;
  --entry: 0.45s;
  --pass: 7.4s;
}
.is-ready:not(.motion-off) .approach-growth .ag-cup {
  animation: ag-open 1.2s var(--entry) cubic-bezier(0.2, 0.8, 0.25, 1.1)
    backwards;
}
.is-ready:not(.motion-off) .approach-growth .ag-cup-motion {
  animation: ag-pass 7.2s var(--pass) ease-in-out infinite;
}
.is-ready:not(.motion-off) .approach-growth .ag-shoot {
  animation: ag-rise 1.3s 0.7s cubic-bezier(0.2, 0.8, 0.25, 1.1) backwards;
}
.is-ready:not(.motion-off) .approach-growth .ag-sway {
  animation: home-sway 8s 2.4s ease-in-out infinite alternate;
}
.is-ready:not(.motion-off) .approach-growth .ag-f {
  animation: home-unfold 0.8s 1.4s cubic-bezier(0.2, 0.9, 0.25, 1.15) backwards;
}
.is-ready:not(.motion-off) .approach-growth .ag-bud {
  animation: home-unfold 0.8s 1.7s cubic-bezier(0.2, 0.9, 0.25, 1.15) backwards;
}
.is-ready:not(.motion-off) .approach-growth .ag-dots {
  animation: home-fade 0.6s 1.5s backwards;
}
.is-ready:not(.motion-off) .approach-growth.in-view:not(.is-visible) * {
  animation-play-state: paused;
}
.home-approach-copy h2 {
  font-size: 54px;
  margin: 23px 0;
  color: var(--forest);
}
.home-approach-copy > p:not(.eyebrow) {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* Closing: the question mark grows */
.home-idea {
  text-align: center;
  padding-top: 110px;
  padding-bottom: 115px;
}
.home-idea h2 {
  font-size: 66px;
  margin-bottom: 38px;
  color: var(--forest);
}
.home-nowrap {
  white-space: nowrap;
}
.home-q {
  display: inline-block;
  width: 0.5em;
  height: 0.78em;
  margin-left: 0.12em;
  vertical-align: -0.04em;
}
.home-q svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.q-stem,
.q-hook {
  fill: none;
  stroke: var(--clay);
  stroke-width: 15;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
}
.q-hook {
  stroke-width: 11;
}
.q-seed {
  fill: var(--forest);
}
.q-leaf,
.q-seed {
  transform-box: fill-box;
}
.q-leaf {
  transform-origin: 0 60%;
}
.q-seed {
  transform-origin: center;
}
.is-ready:not(.motion-off) .home-idea .q-stem {
  animation: home-draw 1.2s 0.3s cubic-bezier(0.5, 0, 0.2, 1) backwards;
}
.is-ready:not(.motion-off) .home-idea .q-hook {
  animation: home-draw 0.5s 1.3s ease-out backwards;
}
.is-ready:not(.motion-off) .home-idea .q-leaf {
  animation: home-pop 0.7s 1.2s cubic-bezier(0.2, 0.9, 0.25, 1.2) backwards;
}
.is-ready:not(.motion-off) .home-idea .q-seed {
  animation: home-pop 0.6s 1.5s cubic-bezier(0.2, 0.9, 0.25, 1.3) backwards;
}

@media (max-width: 1100px) {
  .gt {
    gap: 36px;
  }
  .gt-copy h3 {
    font-size: 34px;
  }
  .home-approach > .section {
    gap: 40px;
  }
  .home-approach-copy h2 {
    font-size: 43px;
  }
  .home-approach-copy > p:not(.eyebrow) {
    font-size: 21px;
  }
}
@media (max-width: 900px) {
  .gt {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .gt-art {
    width: min(100%, 620px);
    justify-self: center;
  }
  .home-approach > .section {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .approach-growth {
    order: 2;
    width: min(100%, 560px);
    justify-self: center;
  }
  .home-programs-heading h2 {
    font-size: 48px;
  }
  .home-idea h2 {
    font-size: 53px;
  }
}
@media (max-width: 700px) {
  .herb {
    margin-top: 80px;
  }
  .herbarium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }
  .sp-art {
    height: 170px;
  }
  .sp-name {
    font-size: 21px;
  }
}
@media (max-width: 600px) {
  .gt-tag {
    padding: 9px 13px 12px;
  }
  .gt-tag strong {
    font-size: 21px;
  }
}
@media (max-width: 540px) {
  .home-programs {
    padding-top: 45px;
  }
  .home-programs-heading h2 {
    font-size: 40px;
  }
  .gt-status {
    font-size: 15px;
  }
  .gt-copy h3 {
    font-size: 32px;
  }
  .gt-copy > p:not(.gt-status) {
    font-size: 18px;
  }
  .herb-label {
    font-size: 20px;
  }
  .home-approach-copy h2 {
    font-size: clamp(32px, 10.2vw, 40px);
  }
  .home-approach-copy > p:not(.eyebrow) {
    font-size: 21px;
  }
  .home-idea {
    padding-top: 70px;
    padding-bottom: 75px;
  }
  .home-idea h2 {
    font-size: clamp(35px, 10vw, 43px);
  }
}
