/* Review 3: desktop/short landscape Hero and alignment corrections.
   Only overrides. Original 5PACE v27 CSS/HTML is unchanged. */

/* Tall desktops: keep full layout, with the satellite positioned dynamically
   between the hero text and the bottom cue by the animation's heroPose(). */
@media (min-width:821px) {
  /* Subtle upward alignment to the Roadmap chapter's heading position. The
     change is visual only, so it does not introduce new wheel-scroll stops. */
  #team > .wrap,
  #features > .wrap {
    position: relative;
    transform: translateY(calc(-1 * clamp(12px, 2.6svh, 34px)));
  }
}

/* A short wide display cannot fit text above a large hero spacecraft. Switch
   to the same stacked visual grammar as mobile instead of overlapping them. */
@media (min-width:821px) and (max-height:700px) {
  .cp.hh {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 0 24px clamp(32px, 6svh, 54px);
  }
  .cp.hh h1 {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    line-height: 1.03;
    margin: 8px auto 0;
  }
  .cp.hh p {
    font-size: clamp(.85rem, 1.25vw, 1rem);
    line-height: 1.45;
    margin: 10px auto 0;
  }
  .cp.hh .eyebrow { margin: 0 auto 3px; }
}

/* On short phones, preserve separate vertical regions: spacecraft above,
   heading and subtitle below; leave space for the fixed mobile CTA. */
@media (max-width:820px) and (max-height:620px) {
  .cp.hh {
    padding-bottom: calc(var(--bar) + 1svh);
  }
  .cp.hh h1 {
    font-size: clamp(1.8rem, 6.4vw, 2.25rem);
    line-height: 1.07;
  }
  .cp.hh p {
    font-size: clamp(.78rem, 2.5vw, .95rem);
    line-height: 1.38;
    margin-top: 10px;
  }
  .cp.hh .eyebrow { font-size: 10px; }
}

@media (max-width:820px) {
  #team > .wrap, #features > .wrap { transform: none; }
}
