/* Hero drawing: docs/02-design.md. The model inside the system it needs around it. The drawing (SVG in the template) and the
   drawing rules below are from the Astra reply of 2026-11-10; hero-draw.js moves it, hero.js builds it when the page opens and
   runs the flow while the hero is on screen. The running flow is a recorded deviation from 14 (docs/00), like the watch below it. */
.hero-anim { margin: 0; }
.hero-anim svg { width: 100%; height: auto; aspect-ratio: 520 / 324; }   /* the view box is cut to the drawing: no empty margin around the plate */
.hero-cap { margin-top: 10px; font-size: .9rem; color: var(--muted); }
/* beside the copy the drawing starts level with the headline, never above the copy block (the owner, 2026-11-10) */
@media (min-width: 900px) { .hero-grid { align-items: start; } .hero-anim { margin-top: 1rem; } }
/* the blocks answer a click (hero.js): a block in the drawing or its key under it lifts the block and names it in the caption */
.hero-keys { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hero-key { min-height: 44px; padding: 0 12px; font: .74rem var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: none;
  border: 1px solid var(--line); border-radius: var(--r-2); cursor: pointer; transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out); }
.hero-key:hover { color: var(--ink); border-color: var(--ink); }
.hero-key[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); }
.hero-key:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hero-note { margin: 0; min-height: 3em; }   /* room for two lines: the page does not jump when the caption changes */
.system-figure [data-key] { cursor: pointer; transition: translate var(--dur-2) var(--ease-out); }
.system-figure [data-key]:hover, .system-figure [data-key].is-on { translate: 0 -5px; }
.system-figure [data-key].is-on :where(.s-face, .s-flank, .s-line) { stroke: var(--accent); stroke-opacity: 1; }

/* ---- the drawing, as delivered by Astra: the page supplies the six colour tokens */
.system-figure {
  display: block;
  overflow: hidden;
  isolation: isolate;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-figure :where(path, circle, ellipse, line, polygon, rect) {
  vector-effect: non-scaling-stroke;
}

.system-figure .s-no-stroke {
  stroke: none;
}

.system-figure .s-paper {
  fill: color-mix(in srgb, var(--bg-2), var(--muted) 2%);
}

.system-figure .s-face {
  fill: color-mix(in srgb, var(--bg-2), var(--muted) 6%);
}

.system-figure .s-flank {
  fill: color-mix(in srgb, var(--bg-2), var(--muted) 12%);
}

.system-figure .s-line {
  fill: none;
  stroke: var(--muted);
}

.system-figure .s-secondary {
  stroke-width: .75px;
  stroke-opacity: .65;
}

.system-figure .s-terminal {
  fill: var(--bg-2);
  stroke: var(--muted);
  stroke-width: .75px;
  stroke-opacity: .65;
}

.system-figure .s-signal {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.25px;
}

.system-figure .s-model-top {
  fill: color-mix(in srgb, var(--accent), var(--bg-2) 28%);
  stroke: var(--accent);
}

.system-figure .s-model-left {
  fill: var(--accent);
  stroke: var(--accent);
}

.system-figure .s-model-right {
  fill: color-mix(in srgb, var(--accent), var(--ink) 18%);
  stroke: var(--accent);
}

.system-figure .s-activity {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: .75px;
  stroke-opacity: .65;
}

.system-figure .s-ground-core {
  stop-color: color-mix(in srgb, var(--muted) 8%, transparent);
}

.system-figure .s-ground-clear {
  stop-color: color-mix(in srgb, var(--muted) 0%, transparent);
}
