/* The home page hero's graph (NEV-2947; D-846-am5, D-846-am6). The hero wears the dark plum ground every other top-level
   page's hero wears (--header-bg; founder, 2026-11-12, D-846-am6), with the stats on the same ground, as in today's hero.
   Every colour is a design-system token (nevvi.css :root), bar the two line colours (white at 14% and 26%) and the corner glow the
   other heroes carry. The six kinds wear tokens that read on plum (each 3:1 or better on --plum-900): magenta, pale
   plum, amber, blue, teal and a muted stone; no red or green (D-154-am2), the three NAMED kinds the first three.
   home-hero-graph.js reads the --hh-* values from .hh at draw time. */
.hh {
  --hh-bg: var(--header-bg); --hh-ink: var(--n0); --hh-body: var(--n300); --hh-muted: var(--on-dark-muted);
  --hh-accent: var(--accent); --hh-edge: rgba(255, 255, 255, .14); --hh-edge-strong: rgba(255, 255, 255, .26);
  --hh-k-condition: var(--accent); --hh-k-procedure: var(--exhibit-edge); --hh-k-drug: var(--cmp-5); --hh-k-hospital: var(--cmp-3); --hh-k-group: var(--cmp-6);
  --hh-k-dot: var(--rail-mut);
  --hh-tall: clamp(600px, 84vh, 940px);
  background: radial-gradient(ellipse 700px 420px at 72% -10%, rgba(211, 60, 141, .08), transparent 60%), var(--hh-bg);
  color: var(--hh-body); position: relative; overflow: hidden;
}
.hh-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center;
  padding: clamp(24px, 3.5vh, 44px) max(28px, env(safe-area-inset-right, 0px)) clamp(32px, 4vh, 56px) max(28px, env(safe-area-inset-left, 0px)); max-width: var(--w-page); margin: 0 auto; min-height: var(--hh-tall); box-sizing: border-box }
.hh-copy { position: relative; z-index: 2; display: grid; gap: 36px; min-width: 0 }
/* the eyebrow takes the muted on-plum ink the other heroes' eyebrows take: the magenta is under 4.5:1 at this size */
.hh-eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hh-muted) }
/* A headline bigger than the shared hero size, with more air around it (founder, 2026-11-12, in session: "make the
   headline bigger and more vertical spacing"; D-846-am6 item 4, which sets D-247-am1's one size aside for this hero). */
/* Two lines: "The Medicare market," then "connected." (founder, 2026-11-12). The first line is 9.7em wide, so the size
   follows the words' column (half the frame less its sides and gap) and the lines are not balanced, which would
   break after "Medicare". */
.hh h1 { margin: 0; font-size: clamp(32px, calc((min(100vw, var(--w-page)) - 80px) / 20.2), 64px); line-height: var(--lh-tight); letter-spacing: -0.02em; color: var(--hh-ink); text-wrap: wrap }
.hh-sub { margin: 0; font-size: var(--fs-h3); line-height: 1.5; color: var(--hh-body) }
/* what today's plum hero sets for its own children: the helper line and any link take light ink (the body-link magenta is under 3:1 on plum) */
.hh .search-bar-helper { color: var(--hh-body) }
/* the clamp notes carry an inline dark ink for the light results page; on plum they take the hero's (an inline style
   outranks a plain rule, hence the !important) */
.hh .clamp-note { color: var(--hh-body) !important }
.hh a { color: var(--n100) }
/* On a desktop the drawing covers the right two thirds of the WINDOW (founder, 2026-11-12: "I'd like the network to
   cover 2/3 of the page width"), from the top of the hero to the stats. It is taken out of the grid for that, and sits
   under the words, whose column keeps half the frame; the drawing fades out to its left, under them, and at its top
   and bottom, where a wide picture runs past the box (home-hero-graph.js `fit`). */
.hh-graphbox { position: absolute; top: 0; right: 0; width: 66.667vw; height: var(--hh-tall); min-width: 0 }
.hh-cv { width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent, black 26%), linear-gradient(to bottom, transparent, black 9%, black 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, black 26%), linear-gradient(to bottom, transparent, black 9%, black 91%, transparent);
  mask-composite: intersect }
.hh-key { position: absolute; right: calc(34px + max(0px, (100vw - var(--w-page)) / 2)); bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 4px 8px; list-style: none;
  font-size: 11.5px; color: var(--hh-muted); background: var(--hh-bg); border-radius: 6px }
.hh-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px }
.hh-dot--condition { background: var(--hh-k-condition) } .hh-dot--procedure { background: var(--hh-k-procedure) } .hh-dot--drug { background: var(--hh-k-drug) }
.hh-dot--hospital { background: var(--hh-k-hospital) } .hh-dot--group { background: var(--hh-k-group) }
.hh-dot--dot { background: var(--hh-k-dot) }
/* The pause control is not drawn (founder, 2026-11-12, D-846-am6: "the play/pause button is weird - remove it"). It
   stays in the page for a keyboard reader: hidden from the eye until it takes keyboard focus, like the named links
   below. A click or tap on the drawing does the same thing, but nothing on the page says so, so a pointer reader has
   no pause control they can find (WCAG 2.2.2 is met for the keyboard only; D-846-am6 "Before the switch is turned on"). */
.hh-tour { position: absolute; right: 6px; top: 6px; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  border: 1px solid var(--hh-muted); border-radius: 6px; background: var(--hh-bg); color: var(--hh-ink); font-size: 12px; cursor: pointer }
.hh-tour:focus { width: auto; height: auto; clip-path: none; padding: 4px 10px }
/* The named points as plain links, for a reader with no pointer. Each link is hidden from the eye until it takes
   keyboard focus, when it shows at the foot of the drawing; with scripts off (an empty canvas) the template's
   <noscript> rule shows them all. */
.hh-named { position: absolute; left: 36%; bottom: 36px; right: 8px; display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; padding: 0;
  list-style: none; font-size: 13px }
.hh-named a { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  color: var(--hh-ink); background: var(--hh-bg) }
.hh-named a:focus { position: static; width: auto; height: auto; clip-path: none; padding: 2px 6px }
.hh a:focus-visible, .hh button:focus-visible { outline: 2px solid var(--n0); outline-offset: 2px }
/* Phones and narrow windows: the drawing is its own block under the words and the search, at full strength, with its
   key under it in the page's flow (D-846-am5; it used to sit faded behind the words). The tour runs here too, so the
   pause control must stay reachable at every width (WCAG 2.2.2). */
@media (max-width: 860px) {
  .hh-inner { grid-template-columns: 1fr; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); gap: 24px }
  .hh-copy { gap: 26px }
  .hh h1 { font-size: clamp(28px, 9vw, 56px) }
  .hh-inner { min-height: 0 }
  .hh-graphbox { position: relative; width: auto; height: auto }
  .hh-named { left: 8px; bottom: 8px }
  .hh-cv { height: 400px; -webkit-mask-image: none; mask-image: none }
  .hh-key { position: static; justify-content: center; background: none; padding: 8px 0 0 }
}

/* The stats sit on the hero's own plum ground, as they do in today's hero, inside its section, so the hero and its stats are one pane and
   the next pane is the light one (D-846-am6; the pale band of D-953-am2 item 1 is gone). The shared stat band is drawn
   for a plum ground, so it needs no colours here. */
.hh-stats { max-width: var(--w-page); margin: 0 auto; padding: 8px 28px 40px }
.hh-stats .landing-stats { margin-top: 0 }
@media (max-width: 860px) { .hh-stats { padding: 8px 16px 40px } }
