/* maturity.network hero: The Shared Floor - INS-247 Three ways in: sign-up and home page rescope
   Grafted 2026-11-21 from the designer's bundle. Two changes on graft, both recorded in the
   pull request: every literal colour is mapped to a tokens_v2.css token (tests/shell.js bans
   literals in css/), and the pathway hop moved from click to a dwelled hover. Everything else
   is the bundle as delivered.
   ---------------------------------------------------------------------------
   GRAFT NOTES

   1. Every class and id in this file is prefixed `mnh-`. Nothing here is named
      .hero, .wrap or .bar, so nothing can silently restyle what production
      already owns. If you need to rename the namespace, it is a single
      find-and-replace across hero.html, hero.css and hero.js - the string
      `mnh` appears nowhere else.

   2. The colour tokens are scoped to `.mnh`, NOT to `:root`. This matters more
      than the class names: declaring --ink or --blue on :root would reach every
      element on the page and quietly repaint components that already use those
      names. Scoped here, they cannot escape the section.

   3. This file sets no body, html or * styles and carries no reset. It assumes
      border-box is already inherited from the page; if it is not, add
      `.mnh *{box-sizing:border-box}` and nothing else.
   --------------------------------------------------------------------------- */

.mnh {
  /* scoped deliberately - see note 2 above */
  --mnh-ink:    var(--ink);        /* #09090B, exact */
  --mnh-strong: var(--muted);      /* was #3A4044; no light token matches, --muted #52525B is nearest */
  --mnh-grey:   var(--data-label); /* #5B6468, exact */
  --mnh-faint:  var(--band);       /* #BBC5C8, exact */
  --mnh-rule:   var(--track);      /* was #DCE1E3; --track #E0E3E5 is nearest */
  --mnh-grid:   var(--band);       /* was #BFC9CC; --band #BBC5C8 is nearest */
  --mnh-blue:   var(--blue-500);   /* #2A9BC0, exact */

  font-family: var(--f-body), system-ui, sans-serif;
  color: var(--mnh-ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.mnh-shell {
  /* INS-247, corrected on graft 2026-11-21. The bundle carried its own measure - 1320px with
     clamp(20px,5vw,88px) of padding - which put the headline and the pathways 58px left of the
     logo at 1440px. This is .mn-shell-in from shell.css, so the hero shares one left edge with
     the global bar and the footer. The floor still breaks out to 100vw on purpose. */
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 30px);
  width: 100%;
}

/* ---------------------------------------------------------------------------
   THE ONE-VIEWPORT CONTRACT

   The headline and the three ways are fixed height. The FLOOR is the part that
   flexes. So the section is exactly one viewport on any screen and nothing is
   ever cut off; what changes with screen size is how much floor you see.

   Measured, nothing clipped: 1920x1080 floor 689px, 1440x900 floor 541px,
   1366x768 floor 424px, 1280x640 floor 312px. A 60-70px site header comes out
   of the floor, not out of anything else.

   --mnh-h exists so the section can be pinned to a fixed height inside a design
   board. On the page, leave it unset and it is 100svh. svh, not vh, so mobile
   browser chrome cannot push the pathways off the bottom.
   --------------------------------------------------------------------------- */
.mnh-frame {
  /* INS-247, corrected on graft 2026-11-21. The bundle used a flat 100svh and its README claimed
     "a site header of 60 to 70px comes out of the floor". It does not: the section is 100svh
     whatever sits above it, so with the 64px .mn-gbar the page ran 64px taller than the viewport
     and pushed the three pathways below the fold. 64px is .mn-gbar's own height in shell.css;
     if that bar ever changes height this value changes with it. */
  height: var(--mnh-h, calc(100svh - 64px));
  min-height: 460px;
  display: flex;
  flex-direction: column;
  padding-top: clamp(10px, 1.2vw, 18px);
  padding-bottom: clamp(14px, 1.8vh, 26px);
}

/* --- the headline --------------------------------------------------------- */
.mnh-h1 {
  flex: none;
  margin: 0;
  font-family: var(--f-display), system-ui, sans-serif;
  /* INS-247, owner 2026-11-21: much bigger. At the shell's 1120px measure the old
     clamp(40px,6.6vw,108px) already filled one line, so growth means the line stacks -
     "You're not" over "alone." - which is the stronger lockup anyway. min(9vw,13.5vh) keeps
     it tied to height as well as width, so a short laptop does not squeeze the floor out.
     Settled on the owner's call, 2026-11-21, in two steps. min(11vw,17.5vh) put the headline at
     157px and 59% of the section, leaving the floor at 189px with the hero robot clipped.
     min(9vw,13.5vh) fixed the robot but still stacked to two lines at 1366 and the white of the
     headline block reached over the far figures at the top of the floor. min(7vw,10.5vh) holds
     one line at both common laptop sizes and keeps the whole crowd clear of it. */
  font-size: clamp(38px, min(7vw, 10.5vh), 108px);
  line-height: 1.0;
  letter-spacing: -0.05em;
}
.mnh-line  { display: block }
.mnh-lead  { display: inline-block; white-space: pre }
.mnh-group { display: inline-block; white-space: nowrap }
.mnh-l1    { color: var(--mnh-ink); font-variation-settings: 'wght' 800 }
.mnh-l2 {
  display: inline-block;
  margin-top: 0.24em;
  font-size: 0.42em;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--mnh-grey);
  font-variation-settings: 'wght' 500;
}

/* ---------------------------------------------------------------------------
   THE MARK

   Measured on the Manrope variable face at wght 800: the ? advance is 0.444em
   and the period's is 0.250em; the dot sits 0.1992em into the ? and 0.1242em
   into the period. So about the shared dot, a ? carries 0.075em more space on
   its left and 0.119em more on its right.

   Those two are real, animatable boxes - mnh-pre and mnh-post - rather than a
   negative offset on the glyph. A negative offset was what used to pull the
   hook underneath the preceding "e". The dot never moves; the question mark's
   extra width simply closes up as the hook leaves.

   The full stop is drawn, not set: Manrope's own period renders unreliably at
   this size in some engines, and this one glyph carries the whole idea. It is
   square, matching the glyph's own shape at weight 800.
   --------------------------------------------------------------------------- */
.mnh-markwrap { display: inline-block }
.mnh-mark { position: relative; display: inline-block; line-height: 1; vertical-align: baseline }
.mnh-pre  { display: inline-block; width: 0.075em; height: 0; vertical-align: baseline }
.mnh-post { display: inline-block; width: 0.119em; height: 0; vertical-align: baseline }
.mnh-dot  { display: inline-block; position: relative; width: 0.25em; height: 1em; vertical-align: baseline }
.mnh-dot::after {
  content: "";
  position: absolute;
  left: 0.0617em;            /* re-centred for the larger square: the dot box is 0.25em
                                wide, so (0.25 - 0.1266) / 2 keeps it where the glyph's own
                                dot sits */
  bottom: 0;                 /* an empty inline-block baselines on its bottom
                                margin edge, so the box bottom IS the baseline */
  width: 0.1266em;           /* INS-247, owner 2026-11-21: the full stop carries the whole
                                idea, so it reads at the weight of a deliberate mark */
  height: 0.1266em;
  border-radius: 0;
  background: var(--mnh-blue);
  transition: background .3s ease;
}
.mnh-hook {
  position: absolute;
  left: -0.075em;
  top: 0;
  line-height: 1;
  white-space: pre;
  display: block;
  clip-path: inset(0 0 30% 0);   /* the band between hook and dot measured at
                                    66.7%-73.4% of the line box; cut at 70% */
  opacity: 0;
  color: var(--mnh-ink);
}

/* --- the floor ------------------------------------------------------------ */
/* The only element on the page that breaks the measure. That is what makes it
   architecture rather than decoration - and its near edge is the page's own
   structural rule, which the three pathway rules sit on. */
.mnh-floorwrap {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin-top: clamp(12px, 1.6vw, 24px);
  border-bottom: 1px solid var(--mnh-faint);
  flex: 1 1 auto;
  min-height: 200px;
}
.mnh-floor { display: block; width: 100%; height: 100% }

/* He jumps from his feet; the shadow breathes from its own centre. */
#mnh-body  { transform-box: fill-box; transform-origin: 50% 100% }
#mnh-shade { transform-box: fill-box; transform-origin: 50% 50% }

/* --- the three ways ------------------------------------------------------- */
/* Editorial columns, never cards. Emphasis follows attention; 01 holds it until
   someone reaches elsewhere. They are live and clickable from first paint -
   nothing here waits for the headline animation. */
.mnh-ways {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 56px);
  margin-top: -1px;            /* the rules sit ON the floor's near edge */
}
.mnh-way {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-decoration: none;
  position: relative;
  padding-top: 11px;
  outline: none;
}
.mnh-rule {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--mnh-faint);
  display: block;
}
.mnh-name {
  font-family: var(--f-display), system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variation-settings: 'wght' 600;
  color: var(--mnh-grey);
  display: flex;
  align-items: baseline;
  gap: 0.34em;
  min-height: 38px;
}
.mnh-arrow { width: 0.5em; height: 0.5em; flex: none; opacity: 0; transform: translateX(-5px) }
.mnh-sub   { font-size: 14px; line-height: 1.5; color: var(--mnh-grey); max-width: 30ch; text-wrap: pretty }
.mnh-way:focus-visible .mnh-name { text-decoration: underline; text-underline-offset: 6px }

/* --- phone ---------------------------------------------------------------- */
/* Below this width the section stops being one viewport and flows instead, so a
   short screen in landscape scrolls rather than clipping. */
@media (max-width: 760px) {
  .mnh-frame     { height: auto; min-height: 0 }
  .mnh-floorwrap { flex: none }
  .mnh-floor     { height: clamp(170px, 46vw, 260px) }
  .mnh-ways      { grid-template-columns: 1fr; gap: 0 }
  .mnh-way       { padding-top: 11px; padding-bottom: 18px }
  .mnh-name      { min-height: 0 }
}
