/* HostCraft public hero — one tile grid across the whole frame.
   Markup: hc_visual_grid('hero') from includes/shared/visual_grid.php (10 × 8 cells),
   tile surfaces and line styles: assets/css/hc-grid.css (shared with the sign-in pages).
   The copy sits in the grid's outlined zone (cols 1–5, rows 2–7); the stage uses the
   same 10 × 8 track grid, so the copy and the zone always line up. */

/* The hero is a dark stage in both site themes, like the tile grid it carries. */
.hero-frame {
  color-scheme: dark;
  /* forced-dark band — text/line vars come from theme.css dark-scope */
  --surface: var(--dark-2);
  --surface-2: var(--dark-3);
  --line: var(--border-dark);
  --hover: var(--dark-3);
  --border: var(--border-dark);
  color: var(--text);
  background: var(--surface);
}

/* The grid fills the stage edge to edge; the frame's own border is the outer line. */
.hero-stage > .hc-visual,
.hero-matrix-pane > .hc-visual {
  inset: 0;
  border: 0;
  --hc-corner-bg: var(--surface);
}
/* Gutter ~1% of the frame width, the same proportion as the sign-in grid's cells */
.hc-visual--hero .hc-layer { --g: max(6px, 1cqw); }
@supports (width: round(1px, 1px)) {
  .hc-visual--hero .hc-layer { --g: round(max(6px, 1cqw), 1px); }
}

.hero-matrix-pane { background: transparent; }

@media (min-width: 992px) {
  .hero-stage {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    min-height: clamp(560px, 44vw, 640px);
  }
  .hero-copy-pane {
    grid-column: 1 / 6;
    grid-row: 2 / 8;
    padding: clamp(18px, 1.8vw, 26px) clamp(24px, 2.6vw, 40px);
  }
  .hero-title { font-size: clamp(36px, 4.2vw, 58px); }
  .hero-lede { margin-bottom: 26px; }
  .hero-actions-row { margin-bottom: 22px; }
  .hero-matrix-pane { display: none; }
}

@media (max-width: 991px) {
  .hero-stage > .hc-visual--hero { display: none; }
}
