/* Home hero, redesign 2026-11-28 (owner's request). Loaded after theme.css; applies to every site.
   - Headline horizontal, one line on desktop at 28-40px. Sized ONLY with font-size clamp: the viewport width
     (capped at the 1180px content width) x the share of it the text column gets, divided by --hl (the headline's
     width in em, set by the em_len filter). No container is narrowed or turned into a size container
     (an earlier container-query version collapsed shrink-to-fit columns and broke the text one char per line).
   - Kicker and description stay horizontal; description wraps normally, max ~40em. Buttons untouched.
   - jade's vertical (竖排) hero is flattened to the normal horizontal stack. Phones: headline may wrap. */
html .hero h1.hl{writing-mode:horizontal-tb!important;white-space:nowrap;
  font-size:clamp(28px,calc(min(100vw,1180px) * .44 / var(--hl,14)),40px)!important;
  line-height:1.15!important;letter-spacing:-.01em!important;margin:var(--s4) 0}
html.hero-center .hero h1.hl,html .hero.solo h1.hl,html.hero-wide .hero h1.hl{font-size:clamp(28px,calc(min(100vw,1180px) * .82 / var(--hl,14)),40px)!important}
html.nav-side .hero h1.hl{font-size:clamp(28px,calc((min(100vw,1420px) - 260px) * .44 / var(--hl,14)),40px)!important}
html .hero h1.hl .grad{display:inline!important}
html .hero .lead{max-width:40em}
html .hero.solo .lead,html.hero-center .hero .lead{margin-inline:auto}
html.theme-neon .hero h1.hl{font-size:clamp(28px,calc(min(100vw,1180px) * .36 / var(--hl,14)),40px)!important}
/* jade: vertical hero -> normal horizontal stack */
html.hero-vertical .hero>div:first-child{display:block}
html.hero-vertical .hero h1.hl{grid-row:auto;max-height:none}
html.hero-vertical .hero .eyebrow{margin-top:0}
html.hero-vertical .hero .lead{margin-top:0}
html.hero-vertical .hero .stats{flex-direction:row;gap:var(--s6);border-inline-start:0;padding-inline-start:0}
html.hero-vertical .hero .stat{display:block}
@media (max-width:1020px){
  html .hero h1.hl{font-size:clamp(28px,calc(100vw * .8 / var(--hl,14)),40px)!important}
}
@media (max-width:880px){
  html .hero h1.hl,html.theme-neon .hero h1.hl{white-space:normal;overflow-wrap:break-word;font-size:clamp(24px,7vw,34px)!important}
}
