/* D-154: the whole stem and a separate botanical detail, never a clipped zoom. */
#main.home-main #hero .home-plant-window > .home-product-detail,
#main.home-main #hero #homeSequence.is-story-hero-ready .home-plant-window > .home-product-detail { display: none; }
#main.home-main #hero #homeSequence.is-story-hero-ready .home-plant-window { left: 9%; top: 20%; width: 32%; height: min(55svh,480px); transform: none; }
#main.home-main #hero #homeSequence.is-story-hero-ready .home-plant-window > img { width: 100%; height: 100%; object-fit: contain; transform: none; }
#main.home-main #hero #homeSequence.is-story-hero-ready[data-sequence-state="4"] .home-plant-window { left: 6%; top: 24%; width: 40%; height: min(48svh,440px); }
#main.home-main #hero #homeSequence.is-story-hero-ready[data-sequence-state="4"] .home-plant-window > .home-product-stem { display: none; }
#main.home-main #hero #homeSequence.is-story-hero-ready[data-sequence-state="4"] .home-plant-window > .home-product-detail { display: block; }
#main.home-main #hero .home-cyber-ruler { overflow: visible; }
@media (max-width: 767px) {
  #main.home-main #hero #homeSequence.is-story-hero-ready .home-plant-window { left: 4px; top: 23%; width: 43%; height: min(51svh,400px); }
  #main.home-main #hero #homeSequence.is-story-hero-ready[data-sequence-state="4"] .home-plant-window { left: 4px; top: 30%; width: 44%; height: min(40svh,320px); }
}

/* D-159: a slow seamless breath, paused outside the visible product scene. */
#main.home-main #hero #homeSequence.is-story-hero-ready[data-story-mode="enhanced"][data-sequence-state="3"] .home-plant-window > .home-product-stem,
#main.home-main #hero #homeSequence.is-story-hero-ready[data-story-mode="enhanced"][data-sequence-state="4"] .home-plant-window > .home-product-detail {
  --plant-drift-x: clamp(2px,.3vw,3px); --plant-drift-y: clamp(-5px,-.7vw,-4px);
  transform-origin: 50% 90%;
  animation: homeProductBreath 8000ms ease-in-out infinite;
  animation-play-state: paused;
}
#main.home-main #hero #homeSequence.is-story-hero-ready[data-story-mode="enhanced"][data-sequence-state][data-product-motion="running"] .home-plant-window > img { animation-play-state: running; }
#main.home-main #hero #homeSequence.is-story-hero-ready[data-story-mode="enhanced"][data-sequence-state="4"] .home-plant-window > .home-product-detail { transform-origin: 50% 58%; }
@keyframes homeProductBreath {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  35% { transform: translate(var(--plant-drift-x),var(--plant-drift-y)) rotate(.45deg); }
  70% { transform: translate(-2px,-2px) rotate(-.25deg); }
}
@media print {
  #main.home-main #hero #homeSequence.is-story-hero-ready[data-story-mode][data-sequence-state] .home-plant-window > :is(.home-product-stem,.home-product-detail) { animation: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  :where(html:not([data-home-motion="full"])) #main.home-main #hero #homeSequence.is-story-hero-ready[data-story-mode][data-sequence-state] .home-plant-window > :is(.home-product-stem,.home-product-detail) { animation: none; transform: none; }
}

/* D-173: mobile product images share the content row; the CTA owns its next row. */
@media screen and (max-width: 767px) {
  #main.home-main #hero #homeSequence.is-story-hero-ready:is([data-sequence-state="3"],[data-sequence-state="4"]) .home-hero-visual { padding-bottom: 90px; }
  #main.home-main #hero #homeSequence.is-story-hero-ready :is(.home-flower-scenario,.home-bloom-scenario) { align-self: stretch; min-height: 0; display: flex; flex-direction: column; }
  #main.home-main #hero #homeSequence.is-story-hero-ready :is(.home-flower-scenario,.home-bloom-scenario) .home-flower-data { margin-top: auto; margin-bottom: auto; }
  #main.home-main #hero #homeSequence.is-story-hero-ready:is([data-sequence-state="3"],[data-sequence-state="4"]) .home-plant-window { position: relative; grid-area: 1 / 1; align-self: stretch; justify-self: start; left: auto; top: auto; width: 44%; height: auto; min-height: 0; margin: 80px 0 14px -12px; }
}

/* D-231: narrow product metrics stack without triggering the whole-story fallback. */
@media screen and (max-width: 360px) {
  #main.home-main #hero #homeSequence.is-story-hero-ready .home-scenario-flower-metrics { grid-template-columns: minmax(0,1fr); gap: 12px; }
  #main.home-main #hero #homeSequence.is-story-hero-ready .home-scenario-flower-metrics > div { grid-template-rows: auto auto; }
}
