/* Phones and tablets: each scroll animation plays as a full-screen backdrop
   while the section's copy scrolls over it in cards. Loaded after
   site-refresh.css, so it overrides that sheet's flattened mobile layout. */
@media (max-width: 900px) {
  /* Homepage: the PECTIS flower behind "Built to bloom". */
  html body .origin { padding: 0 !important; overflow: clip !important; }
  html body .origin-scroll { height: auto !important; min-height: 0 !important; }
  html body .origin-sticky { display: grid !important; grid-template: auto / minmax(0, 1fr); padding: 0 !important; }
  html body .origin-sticky::before { display: none; }
  html body .origin-sticky > .bloom-stage {
    display: block !important;
    grid-area: 1 / 1;
    align-self: start;
    position: sticky !important;
    inset: 0 auto auto 0 !important;
    z-index: 0;
    width: 100%;
    height: 100svh;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  html body .bloom-stage > .bloom-source { inset: 0 !important; width: 100% !important; height: 100% !important; transform: none !important; }
  html body .origin-sticky > .origin-copy {
    grid-area: 1 / 1;
    z-index: 1;
    align-self: start;
    margin: 62svh 16px 110svh !important;
    padding: 26px 22px 28px !important;
  }

  /* Offering pages: the living sequence behind the four stage cards. */
  html body.microsite .living-section {
    display: grid !important;
    grid-template: auto / minmax(0, 1fr);
    padding: 0 !important;
    overflow: clip !important;
    min-height: 0 !important;
  }
  html body.microsite .living-art {
    display: block !important;
    grid-area: 1 / 1;
    align-self: start;
    position: sticky !important;
    top: 0 !important;
    z-index: 0;
    width: 100% !important;
    height: 100svh !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  html body.microsite .paint-caption { display: none; }
  html body.microsite .living-steps {
    grid-area: 1 / 1;
    z-index: 1;
    padding: 62svh 16px 70svh !important;
    background: transparent !important;
  }
  html body.microsite .living-step {
    display: block !important;
    margin: 0 0 72svh !important;
    padding: 24px 22px 18px !important;
    filter: none !important;
  }
  html body.microsite .living-step:last-child { margin-bottom: 0 !important; }

  /* Shared card treatment, so text stays readable over any frame. */
  html body .origin-sticky > .origin-copy,
  html body.microsite .living-step {
    border: 1px solid rgba(16, 28, 56, .08) !important;
    border-radius: 22px !important;
    background: rgba(250, 248, 239, .9) !important;
    box-shadow: 0 18px 50px rgba(16, 28, 56, .12) !important;
  }

  /* GIIO stays one tap away on phones. */
  html body .giio-fab {
    display: grid !important;
    z-index: 95;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
  }
  html body .giio-panel { bottom: calc(86px + env(safe-area-inset-bottom)) !important; max-height: calc(100dvh - 110px) !important; }
}
