/* 00 hero (owner: hero builder): §1 + §2 + §3 merged (PLAN.md "The merged hero"). Warm-tone rebrand (REBRAND-PLAN R1-R10):
   Oatmeal-soft ground with the elevation pattern, Charcoal headline, Summit accents, the drafting sheet a white card.
   Desktop (>= 1060px): copy | drafting sheet, then the Pause control, then the coverage strip across the foot.
   The instrument root (#anim-hero) is a subgrid spanning both columns, so the strip and the canvas that draws the
   leaders can run under the copy while the copy itself stays outside the root (never hidden, never "click to replay"). */

.hero {
  position: relative;
  background: var(--oatmeal-soft);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  /* the elevation pattern (site.css .topo): Oatmeal contours on the warm ground, the book's p. 17 treatment */
  --topo-ink: var(--oatmeal);
  --topo-alpha: .62;
}
.hero.topo::before { -webkit-mask-position: 70% 30%; mask-position: 70% 30%; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ---------- copy ---------- */
.hero__copy { position: relative; z-index: 2; min-width: 0; }
.hero__eyebrow { margin: 0 0 22px; text-wrap: balance; }   /* site.css .eyebrow: Summit caps (5.45:1 here) */
.hero__title { margin: 0; color: var(--ink); }
.hero__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(36px, 3.7vw, 54px);
  line-height: 1.1;
  letter-spacing: -.012em;
  text-wrap: balance;
}
/* "ELEVATED." the book's accent word: Lato Bold caps, tracked, Summit; the full stop in deep Sandstone */
.hero__display {
  display: block;
  margin-top: .14em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(36px, 3.7vw, 54px);
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--summit);
}
.hero__display .stop { color: var(--cta); letter-spacing: 0; }   /* 4.33:1 on the ground, large bold text */
.hero__sub {
  max-width: 34em;
  text-wrap: pretty;
  margin-top: 26px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}
.hero__actions { margin-top: 32px; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin: 36px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-scale);
  list-style: none;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--charcoal);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 10px; }
.hero__trust li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sandstone);
}

/* ---------- the instrument root ---------- */
.hero__stage { min-width: 0; }
/* the drafting sheet: a white rounded card (the book's cards) with faint contour lines instead of a grid */
.hero__sheet {
  position: relative;
  margin: 0;
  max-width: 600px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  isolation: isolate;
}
.hero__topo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: color-mix(in srgb, var(--oatmeal) 80%, transparent);
  -webkit-mask: url("../elevation.svg") 22% 64% / 190% auto no-repeat;
  mask: url("../elevation.svg") 22% 64% / 190% auto no-repeat;
}
.hero__svg { display: block; width: 100%; height: auto; }
.hero__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__controls {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 64px;
}
html:not(.js) .hero__controls .motion-toggle { visibility: hidden; }  /* nothing to pause without the script */

/* ---------- the coverage strip (§2's parts list, ruled) ---------- */
.hero-strip {
  position: relative;
  display: grid;
  grid-template-columns: clamp(140px, 13vw, 188px) repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.hero-strip__head {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 12px 10px 12px 0;
}
.hero-strip__label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--summit);
}
.hero-strip__title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(14px, 1.05vw, 15px);
  text-wrap: balance;
  line-height: 1.3;
  color: var(--text);
}
.hero-strip__list { display: contents; }
/* --q: 0 (waiting) -> 1 (ignited); --settle: 0 (live) -> 1 (resting). hero.js sets both per frame; the finished frame
   (no JS, reduced motion) is .is-drafted = 1, 1. The live item washes pale Summit, then rests on translucent white. */
.hero-strip__item {
  --q: 0;
  --settle: 0;
  min-width: 0;
  border-left: 1px solid var(--line-scale);
  background-color: color-mix(in srgb, var(--summit-soft) calc(100% * var(--q) * (1 - var(--settle))),
    color-mix(in srgb, var(--white) calc(60% * var(--q)), transparent));
}
.hero-strip__item.is-drafted { --q: 1; --settle: 1; }
.hero-strip__item a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 70px;
  padding: 13px 6px 13px 17px;
  color: inherit;
  text-decoration: none;
}
.hero-strip__item a:hover { background: color-mix(in srgb, var(--white) 70%, transparent); }
.hero-strip__item a:hover .hero-strip__name { color: var(--summit); }
.hero-strip__mark {
  position: absolute;
  left: 6px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--summit);
  opacity: var(--q);
}
.hero-strip__num {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  /* Charcoal (waiting) -> Summit as the item ignites */
  color: color-mix(in srgb, var(--summit) calc(100% * var(--q)), var(--charcoal));
}
.hero-strip__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.3;
  white-space: nowrap;
  color: var(--ink);
}

/* ---------- the drafting sheet (SVG, sheet units: viewBox 600 x 620) ----------
   Construction in Summit, measuring in Charcoal, frame and title block in Sandstone; every label passes AA on white. */
.hero__svg text { font-family: var(--font-label); font-weight: 700; font-variant-numeric: tabular-nums; }
.hs-frame { fill: none; stroke: var(--sandstone); stroke-opacity: .85; }
.hs-coords { font-size: 10.5px; letter-spacing: .08em; fill: var(--muted); }
.hs-con { fill: none; stroke: var(--summit); stroke-opacity: .42; }
.hs-con--axis { stroke-dasharray: 14 4 2 4; stroke-opacity: .5; }
.hs-con--strong { stroke-opacity: .7; }
.hs-con--ext { stroke-opacity: .3; }
.hs-pt { fill: var(--summit); }
.hs-dim { fill: none; stroke: var(--charcoal); stroke-opacity: .5; }
.hs-dim--ext { stroke-opacity: .25; }
.hs-arrow { fill: var(--charcoal); fill-opacity: .7; }
.hs-arc { fill: none; stroke: var(--summit); stroke-opacity: .75; }
.hs-leader { fill: none; stroke: var(--charcoal); stroke-opacity: .4; }
.hs-lab { font-size: 11px; letter-spacing: .06em; fill: var(--summit); }
.hs-lab--quiet { font-size: 10.5px; letter-spacing: .12em; fill: var(--muted); }
.hs-ghost path { fill: none; stroke: var(--charcoal); stroke-opacity: .35; stroke-width: .26; stroke-dasharray: 1.1 .8; }
.hs-vline { fill: none; stroke: var(--summit); stroke-opacity: .85; stroke-width: .26; stroke-linejoin: round; }

/* the proposal document (white card on the sheet) */
.hs-doc__shadow { fill: var(--charcoal-deep); fill-opacity: .32; }
.hs-doc__card { fill: var(--white); stroke: var(--line); }
.hero__svg .hs-doc__title { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; fill: var(--ink); }
.hero__svg .hs-doc__meta { font-family: var(--font-body); font-weight: 400; font-size: 11.5px; fill: var(--muted); }
.hs-doc__tag { fill: var(--summit-soft); stroke: color-mix(in srgb, var(--summit) 22%, transparent); }
.hero__svg .hs-doc__mono { font-size: 10.5px; letter-spacing: .1em; fill: var(--muted); }
.hero__svg .hs-doc__mono--accent { fill: var(--summit); }
.hs-doc__answers { fill: var(--oatmeal-soft); stroke: var(--line); }
.hs-doc__rule { fill: none; stroke: var(--line-soft); }
.hs-doc__rule--strong { stroke: var(--line-scale); }
.hero__svg .hs-doc__val { font-family: var(--font-body); font-weight: 700; font-size: 13px; fill: var(--ink); }
.hero__svg .hs-doc__val--soft { font-weight: 400; font-size: 12px; fill: var(--text); }
.hs-doc__band { fill: var(--summit); fill-opacity: .08; }
.hs-doc__skel rect { fill: var(--line-soft); }
.hs-doc__icon { fill: none; stroke: var(--summit); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero__svg .hs-doc__name { font-family: var(--font-body); font-weight: 700; font-size: 13px; fill: var(--ink); }
.hero__svg .hs-doc__sub { font-family: var(--font-body); font-weight: 400; font-size: 11px; fill: var(--muted); }
.hero__svg .hs-doc__price { font-family: var(--font-body); font-size: 12px; font-weight: 400; fill: var(--ink); }
.hero__svg .hs-doc__price--total { font-size: 12.5px; font-weight: 700; fill: var(--summit); }
.hs-doc__check { fill: none; stroke: var(--summit); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs-doc__track { fill: none; stroke: var(--line-soft); stroke-width: 2; }
.hs-doc__fill { fill: none; stroke: var(--summit); stroke-width: 2; }
.hs-doc__caret { fill: var(--summit); }
.hs-stamp__box { fill: var(--white); stroke: var(--summit); stroke-width: 1.2; }
.hs-stamp__inner { fill: none; stroke: var(--sandstone); stroke-width: .8; }
.hs-stamp__seal { fill: var(--summit-soft); stroke: var(--summit); stroke-width: 1.2; }
.hs-stamp__check { fill: none; stroke: var(--summit); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero__svg .hs-stamp__text { font-family: var(--font-body); font-weight: 400; font-size: 12px; fill: var(--ink); }

/* HUD, hint, title block */
.hs-hud__ring { fill: none; stroke: var(--sandstone); }
.hs-hud__dot { fill: var(--summit); }
.hs-hud__l1 { font-size: 11px; letter-spacing: .14em; fill: var(--summit); }
.hs-hud__l2 { font-size: 11px; letter-spacing: .14em; fill: var(--muted); }
.hs-hint { font-size: 10.5px; letter-spacing: .16em; fill: var(--muted); }
@media (prefers-reduced-motion: reduce) { .hs-hint { display: none; } }  /* a click does not replay here */
.hs-tb rect { fill: var(--white); stroke: var(--sandstone); stroke-opacity: .85; }
.hs-tb path { fill: none; stroke: var(--sandstone); stroke-opacity: .85; }
.hs-tb__t { font-size: 10.5px; letter-spacing: .07em; fill: var(--muted); }
.hs-tb__accent { fill: var(--summit); }

/* ---------- desktop: copy | sheet, controls + strip under both ---------- */
@media (min-width: 1060px) {
  @supports (grid-template-columns: subgrid) {
    .hero__grid {
      grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
      grid-template-rows: auto auto auto;
      column-gap: 56px;
      row-gap: 0;
      padding-top: 28px;
      padding-bottom: 30px;
    }
    .hero__copy { grid-area: 1 / 1; align-self: center; }
    .hero__stage {
      grid-area: 1 / 1 / 4 / 3;
      display: grid;
      grid-template-columns: subgrid;
      grid-template-rows: subgrid;
    }
    .hero__sheet { grid-area: 1 / 2; justify-self: end; width: 100%; }
    .hero__controls { grid-area: 2 / 2; min-height: 60px; }
    .hero-strip { grid-area: 3 / 1 / 4 / 3; }
  }
}

/* ---------- stacked (tablet / phone) ----------
   The Pause control moves above the sheet, so the band between the sheet and the strip is free for the leaders. */
@media (max-width: 1059px) {
  .hero__copy { max-width: 720px; }
  .hero__stage { display: flex; flex-direction: column; }
  .hero__controls { order: -1; width: 100%; max-width: 600px; min-height: 0; margin: 0 auto 12px; }
  .hero__sheet { width: 100%; margin: 0 auto 52px; }
}
/* the head stays the first cell, so a leader always runs down a cell rule, never through text */
@media (max-width: 1059px) {
  .hero-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-strip__head { padding-left: 18px; }
  .hero-strip__item:nth-child(4) { border-left: 0; }
  .hero-strip__item:nth-child(n + 4) { border-top: 1px solid var(--line-scale); }
}
@media (max-width: 559px) {
  .hero__grid { padding-top: 32px; row-gap: 32px; }
  .hero__eyebrow { font-size: 11px; letter-spacing: .16em; }
  .hero__sub { font-size: 17px; }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-strip__item:nth-child(n) { border-left: 1px solid var(--line-scale); border-top: 0; }
  .hero-strip__item:nth-child(2n) { border-left: 0; }
  .hero-strip__item:nth-child(n + 2) { border-top: 1px solid var(--line-scale); }
  .hero-strip__item a { min-height: 64px; padding: 11px 8px 11px 18px; }
  .hero-strip__name { font-size: 16px; }
}
