/* Homepage-only readability pass. Keep full capacity names in the HTML data,
   accessible names and linked explainers; the orbit uses short visual labels. */
body.iqm-home-page .sy-hero .sy-hero-lede {
  font-size: clamp(1.125rem, 1.55vw, 1.3125rem) !important;
  line-height: 1.5 !important;
  max-width: 46ch !important;
  margin-top: .65rem !important;
}

/* Size the type against its card, not the viewport. Explicit equal dimensions
   prevent the label's intrinsic height from stretching a node into an oval. */
body.iqm-home-page .sy-hero .sy-network .sy-node {
  width: 22%;
  height: 22%;
  min-width: 0;
  min-height: 0;
  padding: .2rem;
  flex-direction: column;
  gap: .2rem;
}
body.iqm-home-page .sy-hero .sy-network .sy-node-name {
  display: block;
  max-width: 100%;
  font-size: clamp(.6875rem, 3.65cqi, .875rem);
  line-height: 1.15;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
body.iqm-home-page .sy-hero .sy-network .sy-node-icon {
  flex: 0 0 auto;
  width: clamp(1rem, 6.5cqi, 1.375rem);
  height: clamp(1rem, 6.5cqi, 1.375rem);
}
body.iqm-home-page .sy-hero .sy-network .sy-node-icon .sy-skill-icon {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
}
body.iqm-home-page .sy-hero .sy-network-top {
  gap: .5rem;
}
body.iqm-home-page .sy-hero .sy-network-top strong,
body.iqm-home-page .sy-hero .sy-motion {
  flex: 0 0 auto;
  white-space: nowrap;
}
body.iqm-home-page .sy-hero .sy-network-top strong {
  font-size: .75rem;
}

/* Preserve the existing accessible list fallback for narrow cards / enlarged
   text. Do not force fixed-size circles when the network becomes a grid. */
@container sy-network (max-width: 18rem) {
  body.iqm-home-page .sy-hero .sy-network {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  }
  body.iqm-home-page .sy-hero .sy-network .sy-node {
    width: 100%;
    height: auto;
    min-height: 4.5rem;
    flex-direction: row;
    gap: .5rem;
    padding: .5rem;
  }
  body.iqm-home-page .sy-hero .sy-network .sy-node-name {
    font-size: .875rem;
  }
}

/* Normal desktops retain the one-screen composition. On short windows or
   enlarged text, let content extend the page instead of clipping the actions. */
@media (min-width: 901px) {
  body.iqm-home-page .sy-hero {
    height: auto;
    min-height: min(718px, calc(100dvh - 82px));
  }
  body.iqm-home-page .sy-hero > .sy-hero-grid {
    min-height: 0;
    max-height: none;
  }
}

/* Gradient text needs its own paint area below the baseline. The shared tight
   H1 line-height can trim rounded-font descenders on mobile WebKit. Keep the
   font size, wrapping and protective paint area unchanged. */
body.iqm-home-page .sy-hero #home-title {
  overflow: visible;
}
body.iqm-home-page .sy-hero #home-title > span {
  line-height: 1.08;
  padding-bottom: .18em;
  overflow: visible;
}
/* Lift only the decoration into the protective padding, next to the descender.
   Its width, thickness and motion stay unchanged; the heading does not reflow. */
body.iqm-home-page .sy-hero #home-title > span::after {
  bottom: .12em;
}
/* If the phrase wraps on a small phone, the line can pass directly under the g.
   Use a gentler lift there so the six-pixel stroke stays below its descender. */
@media (max-width: 480px) {
  body.iqm-home-page .sy-hero #home-title > span::after {
    bottom: -.06em;
  }
}

/* Keep the homepage card compact: the selected name and release status are
   enough here. Full descriptions remain in the linked node explainers. */
body.iqm-home-page .sy-hero .sy-network-detail [data-network-description] {
  display: none !important;
}
body.iqm-home-page .sy-hero .sy-network-detail {
  min-height: 0 !important;
  align-items: center;
  align-content: center;
}

/* Centre the complete card within the hero's text row, rather than using a
   fixed top offset. Preserve the existing mobile layout and visibility. */
@media (min-width: 901px) {
  body.iqm-home-page .sy-hero > .sy-hero-grid {
    align-items: center !important;
  }
  body.iqm-home-page .sy-hero .sy-network-frame {
    align-self: center !important;
    margin-block: 0 !important;
  }
}
