/* ARM-01 page (arm.html): the exploded-view explorer and page-specific pieces.
   Built on the site.css tokens; site.css stays the source of truth for type, buttons, the grid,
   the hero band and the footer. Only transform and opacity animate. */

/* ---------- hero: the landing band, reused ---------- */
.hero-arm .hero-text .label { margin-bottom: 20px; color: var(--accent); }
.hero-arm .hero-text h1 { max-width: 11.5em; }
.facts time { font: inherit; }

/* ---------- explorer: the page's one moment ----------
   Desktop: the section is two screens tall and its stage sticks under the nav, so scrolling
   inside the section scrubs the separation. The canvas is full-bleed; the arm is framed inside
   [data-arm-safe] (columns 5-12), and the viewer exposes that box as --safe-x/y/w/h.
   Below 1024 px the stage is a plain block between the heading and the controls. */
.explorer {
  position: relative; background: var(--bg);
  /* look knobs read by arm-viewer.js (light theme) */
  --arm-exposure: 1; --arm-env: 0.3; --arm-key: 2; --arm-fill: 0.45; --arm-rim: 4.5; --arm-hemi: 0.2;
  --arm-shadow: 0.42; --arm-ghost: #3a3446; --arm-ghost-opacity: 0.075; --arm-accent: #7b3fd0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .explorer {
    --arm-exposure: 1; --arm-env: 0.16; --arm-key: 1.8; --arm-fill: 0.4; --arm-rim: 7; --arm-hemi: 0.08;
    --arm-shadow: 0.7; --arm-ghost: #d9d0ec; --arm-ghost-opacity: 0.085; --arm-accent: #9d6cf0;
  }
}
:root[data-theme="dark"] .explorer {
  --arm-exposure: 1; --arm-env: 0.16; --arm-key: 1.8; --arm-fill: 0.4; --arm-rim: 7; --arm-hemi: 0.08;
  --arm-shadow: 0.7; --arm-ghost: #d9d0ec; --arm-ghost-opacity: 0.085; --arm-accent: #9d6cf0;
}

.explorer [hidden] { display: none !important; }
.explorer-pin { position: relative; }
.explorer-stage { position: relative; overflow: hidden; }
.explorer-stage > .arm-canvas {
  position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block;
  outline-offset: -2px; -webkit-tap-highlight-color: transparent;
}
.explorer-stage .arm-poster {
  position: absolute; z-index: 0;
  left: var(--safe-x, 0px); top: var(--safe-y, 0px); width: var(--safe-w, 100%); height: var(--safe-h, 100%);
  object-fit: contain; pointer-events: none;
  transition: opacity 600ms var(--ease-enter);
}
.explorer-stage.is-live .arm-poster { opacity: 0; }
.explorer[data-arm-state="tap"] .explorer-stage .arm-poster { height: calc(var(--safe-h, 100%) - 150px); }
/* the ground line the base stands on (the horizon motif), placed by the viewer */
.explorer-stage::before {
  content: ""; position: absolute; z-index: 0; left: var(--safe-x, 0px); right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
  opacity: 0; pointer-events: none;
  transform: translateY(var(--arm-ground, 0px));
}
.explorer-stage.is-live::before { opacity: 1; transition: opacity 600ms var(--ease-enter); }

/* loading, tap-to-load and error messages sit where the arm will be */
.explorer-hud {
  position: absolute; z-index: 2; display: grid; place-items: end center; padding: 0 16px 24px; pointer-events: none;
  left: var(--safe-x, 0px); top: var(--safe-y, 0px); width: var(--safe-w, 100%); height: var(--safe-h, 100%);
}
.hud-card {
  display: none; justify-items: center; gap: 12px; max-width: 300px; padding: 20px 24px;
  text-align: center; border-radius: var(--r-lg); pointer-events: auto;
  background: var(--surface); border: 1px solid var(--line);
}
.hud-card p { font-size: 14px; line-height: 22px; color: var(--muted); }
.explorer[data-arm-state="tap"] [data-arm-when="tap"],
.explorer[data-arm-state="loading"] [data-arm-when="loading"],
.explorer[data-arm-state="error"] [data-arm-when="error"] { display: grid; }
.hud-bar { display: block; width: 200px; height: 2px; border-radius: 1px; overflow: hidden; background: var(--line-2); }
.hud-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(var(--arm-progress, 0)); }

/* module names, shown at full separation */
.arm-labels { position: absolute; z-index: 2; inset: 0; pointer-events: none; opacity: 0; transition: opacity 240ms var(--ease-ui); }
.arm-labels.is-on { opacity: 1; }
.arm-label {
  position: absolute; left: 0; top: 0; padding-left: 22px; white-space: nowrap;
  font: 500 13px/20px var(--sans); color: var(--ink-2);
}
.arm-label::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1px; background: var(--line-2); }

/* the part label on hover or tap */
.arm-tip {
  position: absolute; z-index: 4; left: 0; top: 0; width: max-content; max-width: 280px;
  padding: 12px 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 12px 32px -16px rgba(15, 13, 20, .45);
  pointer-events: none; opacity: 0; transition: opacity var(--t-out) var(--ease-ui);
}
.arm-tip.is-on { opacity: 1; transition-duration: var(--t-in); }
.arm-tip p { margin: 0; max-width: none; font-size: 13px; line-height: 20px; color: var(--muted); }
.arm-tip .arm-tip-name { font: 500 15px/22px var(--sans); color: var(--ink); }
.arm-tip .arm-tip-note { margin-top: 8px; }

/* side column: heading, module list, blurb */
.explorer-intro { margin-top: 16px; font-size: 16px; line-height: 26px; color: var(--muted); }
.explorer .scrub-only { display: none; }
.explorer[data-arm-scrubbing] .scrub-only { display: inline; }
.module-list { margin-top: 32px; border-top: 1px solid var(--line); }
.module-list li { border-bottom: 1px solid var(--line); }
.mod-btn {
  width: 100%; min-height: 44px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 0 12px 0 0; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; text-align: left;
  font: 500 16px/1.2 var(--sans); color: var(--ink-2);
  transition: background-color var(--t-out) var(--ease-ui), color var(--t-out) var(--ease-ui);
}
.mod-btn .mod-n { padding-left: 4px; font: 400 13px/1 var(--mono); color: var(--muted); }
.mod-btn .mod-art { font: 400 13px/1 var(--mono); color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .mod-btn:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); transition-duration: var(--t-in); }
}
.mod-btn:focus-visible { outline-offset: -2px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.mod-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.mod-btn[aria-pressed="true"] .mod-n, .mod-btn[aria-pressed="true"] .mod-art { color: var(--accent); }
.module-detail { margin-top: 20px; min-height: 104px; }
.module-detail p { font-size: 15px; line-height: 24px; color: var(--ink-2); }
.module-detail p + p { margin-top: 12px; }
.js .module-detail [data-module-blurb]:not(.is-on) { display: none; }

/* controls */
.explorer-bar { display: grid; gap: 12px; }
.sep-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.sep-row label { font: 500 13px/20px var(--sans); color: var(--muted); }
.sep-row output { min-width: 16ch; text-align: right; font: 500 13px/20px var(--mono); color: var(--ink); }
.bar-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.bar-buttons .btn-explode { min-width: 15.5em; }
.bar-buttons .btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.explorer .btn:disabled { opacity: .5; cursor: default; transform: none; }
.explorer-help { min-height: 20px; font-size: 13px; line-height: 20px; color: var(--muted); max-width: none; }
.explorer-help .help-touch { display: none; }
@media (pointer: coarse) {
  .explorer-help .help-fine { display: none; }
  .explorer-help .help-touch { display: inline; }
}
.explorer:not([data-arm-state="live"]) .explorer-help { visibility: hidden; }

/* no WebGL: the poster plus the full parts list */
.explorer-fallback { padding: 48px 0 72px; }
.explorer-fallback .note { margin-top: 8px; }
.parts-list { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--col-gap); }
.parts-group .pieces { margin-top: 12px; }
.explorer[data-arm-state="unsupported"] .explorer-bar { display: none; }
@media (max-width: 767px) { .parts-list { grid-template-columns: minmax(0, 1fr); } }

/* desktop layout */
@media (min-width: 1024px) {
  .explorer-pin { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); min-height: 640px; overflow: clip; }
  .explorer-stage { position: absolute; inset: 0; }
  /* the model fades out under the side column and the controls instead of running behind them */
  .explorer-stage > .arm-canvas {
    --fade-b: linear-gradient(to bottom, #000 calc(var(--safe-y, 0px) + var(--safe-h, 100%) - 8px), transparent calc(var(--safe-y, 0px) + var(--safe-h, 100%) + 40px));
    --fade-l: linear-gradient(to right, transparent calc(var(--safe-x, 0px) - 160px), #000 calc(var(--safe-x, 0px) - 16px));
    -webkit-mask-image: var(--fade-b), var(--fade-l);
    -webkit-mask-composite: source-in;
    mask-image: var(--fade-b), var(--fade-l);
    mask-composite: intersect;
  }
  .explorer-ui {
    position: relative; z-index: 2; height: 100%;
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: var(--col-gap); padding: 56px 0 32px; pointer-events: none;
  }
  .explorer-head, .explorer-modules, .explorer-bar { pointer-events: auto; }
  .explorer-head { grid-column: 1 / span 4; grid-row: 1; }
  .explorer-modules { grid-column: 1 / span 4; grid-row: 2 / span 2; align-self: start; margin-top: 40px; }
  .explorer-safe { grid-column: 5 / -1; grid-row: 1 / span 2; margin-bottom: 24px; pointer-events: none; }
  .explorer-bar { grid-column: 5 / -1; grid-row: 3; }
  .explorer[data-arm-state="unsupported"] .explorer-pin { position: relative; }
}
@media (min-width: 1024px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .explorer[data-arm-scrub]:not([data-arm-state="unsupported"]) { height: calc(200svh - var(--nav-h)); }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .module-detail { min-height: 0; }
  .explorer-intro { display: none; }
}

/* below 1024 px: heading, stage, controls, modules, one after another */
@media (max-width: 1023px) {
  .explorer { padding: 96px 0 48px; }
  .explorer-pin { display: flex; flex-direction: column; }
  .explorer-ui { display: contents; }
  .explorer-head, .explorer-bar, .explorer-modules { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
  .explorer-head { order: 1; }
  .explorer-stage { order: 2; height: clamp(440px, 72svh, 680px); margin-top: 24px; }
  .explorer-bar { order: 3; margin-top: 16px; }
  .explorer-modules { order: 4; margin-top: 48px; }
  .explorer-safe { display: none; }
  .explorer-head .explorer-intro { max-width: var(--measure); }
  .explorer[data-arm-state="tap"] .explorer-bar,
  .explorer[data-arm-state="unsupported"] .explorer-bar { display: none; }
}
@media (max-width: 639px) {
  .explorer { padding: 64px 0 40px; }
  .explorer-stage { height: clamp(420px, 68svh, 600px); }
  .sep-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 0; }
  .sep-row output { grid-column: 1 / -1; text-align: left; min-width: 0; }
  .bar-buttons .btn { flex: 1 1 auto; min-width: 0; }
  .bar-buttons .btn-explode { min-width: 0; flex-basis: 100%; }
}

/* ---------- specifications ---------- */
.rows-open .v { color: var(--muted); }
#specs .split { row-gap: 48px; }

/* ---------- build progress ---------- */
.meters { display: grid; gap: 24px; }
.meter-k { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; max-width: none; font-size: 14px; line-height: 22px; color: var(--muted); }
.meter-k b { font: 500 14px/22px var(--mono); color: var(--ink); white-space: nowrap; }
.meter { position: relative; display: block; height: 8px; margin-top: 8px; border-radius: var(--r-sm); overflow: hidden; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.meter i { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; transform: scaleX(var(--p, 0)); border-radius: var(--r-sm); }
.pieces { border-top: 1px solid var(--line); }
.pieces li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 8.5em) auto; gap: 4px 16px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.pc-name { color: var(--ink); }
.pc-mod { font-size: 14px; color: var(--muted); }
.pc-st { justify-self: end; font: 500 13px/1 var(--mono); padding: 5px 8px; border-radius: var(--r-sm); background: var(--pass-soft); color: var(--pass); white-space: nowrap; }
.pc-st.is-partial { background: var(--warn-soft); color: var(--warn); }
.pc-st.is-next { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--muted); }
@media (max-width: 479px) {
  .pieces li { grid-template-columns: minmax(0, 1fr) auto; }
  .pc-mod { grid-column: 1; grid-row: 2; }
  .pc-st { grid-row: 1 / span 2; align-self: center; }
}

/* ---------- software today: the demo goal ---------- */
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 16px; flex-wrap: wrap; }
.goal p { margin-top: 12px; }
.goal .tag { font: 500 13px/1 var(--mono); padding: 6px 8px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); white-space: nowrap; }

/* ---------- next steps ---------- */
.steps-next h3 { font-size: 16px; line-height: 26px; letter-spacing: 0; font-weight: 500; }

/* ---------- footer: the closing block carries buttons on this page ---------- */
.foot-close .btn-row { margin-top: 32px; }
.foot-legal .legal-date { white-space: nowrap; }

/* ---------- landing hero (index.html #arm-hero): BenchSort simulation controls ----------
   A 32 px round pause/play button (44 px hit area) 12 px in from the stage's bottom-right corner,
   and the required honesty label beside it. The stage sits on the dusk band in both themes. */
.arm-stage .arm-pause {
  position: absolute; z-index: 5; right: 6px; bottom: 6px; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent;
  color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.arm-stage .arm-pause[hidden] { display: none; }
.arm-stage .arm-pause::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  transition: background-color var(--t-out) var(--ease-ui), transform var(--t-out) var(--ease-ui);
}
.arm-pause svg { position: relative; width: 12px; height: 12px; fill: currentColor; }
.arm-pause .i-play, .arm-pause[aria-pressed="true"] .i-pause { display: none; }
.arm-pause[aria-pressed="true"] .i-play { display: block; }
@media (hover: hover) and (pointer: fine) {
  .arm-stage .arm-pause:hover::before { background: color-mix(in srgb, var(--ink) 24%, transparent); transform: translateY(-1px); transition-duration: var(--t-in); }
}
.arm-stage .arm-pause:focus-visible { outline: none; }
.arm-stage .arm-pause:focus-visible::before { outline: 2px solid var(--accent); outline-offset: 2px; background: color-mix(in srgb, var(--ink) 24%, transparent); }
.arm-stage .arm-pause:active::before { transform: translateY(1px) scale(.985); transition-duration: var(--t-press); }
.arm-stage .arm-note {
  position: absolute; z-index: 4; right: 60px; bottom: 14px; margin: 0;
  max-width: min(25em, calc(100% - 72px)); text-align: right; pointer-events: none;
  font: 400 13px/20px var(--sans); color: var(--muted); /* #a9a3b4 on the dusk ground: 7.2:1 */
}
.arm-stage .arm-pause[hidden] + .arm-note { right: 12px; max-width: min(25em, calc(100% - 24px)); }
/* phones show the still poster (no button): the label moves to the empty sky above the scene */
@media (max-width: 639px) {
  .arm-stage .arm-note, .arm-stage .arm-pause[hidden] + .arm-note { top: 0; bottom: auto; right: 0; max-width: min(25em, 100%); }
}

/* ---------- landing ARM-01 section (index.html #arm): the arm floats ----------
   No panel: the 3D stands on the page ground, most of a screen tall, on a quiet hairline horizon
   that echoes the hero. Beside it a slim index (number + name); the hovered or selected module's
   description shows in one line (.mod-desc). Phones and reduced motion: poster + links into /arm. */
#arm.section { padding-top: 96px; padding-bottom: 64px; } /* the arm, not the padding, owns this section */
.arm-float-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.arm-float-text { grid-column: 1 / span 4; }
.arm-float-text .lead { margin-top: 24px; }
.arm-float-note { margin-top: 12px; font-size: 15px; line-height: 24px; color: var(--muted); }
.arm-float-cta { margin-top: 24px; }
.arm-float-wrap { grid-column: 5 / -1; position: relative; height: clamp(560px, 86svh, 880px); }

.mod-index { margin-top: 32px; counter-reset: mod; }
.mod-index li { display: block; }
.mod-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; align-items: baseline;
  width: calc(100% + 16px); min-height: 44px; margin: 0 -8px; padding: 10px 8px;
  border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer;
  font: 500 16px/24px var(--sans); text-align: left; text-decoration: none; color: var(--ink-2);
  transition: background-color var(--t-out) var(--ease-ui), color var(--t-out) var(--ease-ui);
}
.mod-row::before { counter-increment: mod; content: counter(mod, decimal-leading-zero); font: 400 13px/24px var(--mono); color: var(--muted); }
.mod-index .mod-what { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .mod-row:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); transition-duration: var(--t-in); }
}
.mod-row.is-hot { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.mod-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.mod-row[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.mod-row[aria-pressed="true"]::before { color: var(--accent); }
.mod-desc { margin-top: 16px; min-height: 48px; max-width: 26em; font-size: 15px; line-height: 24px; color: var(--muted); }
.mod-desc.is-module { color: var(--ink-2); }
#arm[data-arm-state="poster"] .mod-desc { display: none; }

.arm-float {
  position: absolute; inset: 0; overflow: hidden;
  --arm-exposure: 1; --arm-env: 0.3; --arm-key: 2; --arm-fill: 0.45; --arm-rim: 4.5; --arm-hemi: 0.2;
  --arm-shadow: 0.42; --arm-ghost: #3a3446; --arm-ghost-opacity: 0.13; --arm-accent: #7b3fd0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .arm-float {
    --arm-exposure: 1; --arm-env: 0.16; --arm-key: 1.8; --arm-fill: 0.4; --arm-rim: 7; --arm-hemi: 0.08;
    --arm-shadow: 0.7; --arm-ghost: #d9d0ec; --arm-ghost-opacity: 0.13; --arm-accent: #9d6cf0;
  }
}
:root[data-theme="dark"] .arm-float {
  --arm-exposure: 1; --arm-env: 0.16; --arm-key: 1.8; --arm-fill: 0.4; --arm-rim: 7; --arm-hemi: 0.08;
  --arm-shadow: 0.7; --arm-ghost: #d9d0ec; --arm-ghost-opacity: 0.13; --arm-accent: #9d6cf0;
}
.arm-float > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 600ms var(--ease-enter); }
.arm-float.is-live > img { opacity: 0; }
.arm-float > .arm-canvas { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block; outline-offset: -2px; }
/* the quiet horizon under the base, placed by the viewer (--arm-ground) once it is live */
.arm-float::before {
  content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: var(--arm-ground, 95%); height: 1px;
  background: linear-gradient(90deg, transparent 4%, var(--line-2) 22%, var(--line-2) 62%, transparent 78%); /* ends before the controls */
  opacity: 0; pointer-events: none;
}
.arm-float.is-live::before { opacity: 1; transition: opacity 600ms var(--ease-enter); }

/* small, quiet controls beside the arm */
.arm-float-ctl { position: absolute; z-index: 3; right: 0; bottom: 4px; display: flex; flex-direction: row; align-items: center; gap: 20px; }
#arm:not([data-arm-state="live"]) .arm-float-ctl { visibility: hidden; }
.arm-quiet {
  min-height: 44px; padding: 0 4px; border: 0; border-radius: var(--r-sm); background: none; cursor: pointer;
  font: 500 14px/1 var(--sans); color: var(--muted); text-underline-offset: .3em; text-decoration-thickness: 1px;
  transition: color var(--t-out) var(--ease-ui);
}
@media (hover: hover) and (pointer: fine) { .arm-quiet:hover { color: var(--ink); text-decoration-line: underline; transition-duration: var(--t-in); } }
.arm-quiet:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; color: var(--ink); }
.arm-quiet:disabled { opacity: .5; cursor: default; }

@media (max-width: 1279px) {
  .arm-float-text { grid-column: 1 / span 5; }
  .arm-float-wrap { grid-column: 6 / -1; }
}
@media (max-width: 1023px) {
  #arm.section { padding-top: 72px; padding-bottom: 40px; }
  .arm-float-text, .arm-float-wrap { grid-column: 1 / -1; }
  .arm-float-wrap { height: min(125vw, 78svh); margin-top: 24px; }
}

/* ---------- in-page arm stages (data-arm-mode="stage" in arm-viewer.js) ----------
   Inspect on /assay, Stack on /arm, Search on the 404 page: the landing hero's world inside the
   page. Each is an .arm-stage (site.css: the horizon line, the sun, the poster, the canvas) whose
   aspect ratio is its task's design frame, the poster's size. The viewer contains that frame the
   way the poster is placed (object-fit: contain, object-position: 50% var(--horizon)), so the
   base always stands on the horizon line. The pause button is the hero's (above); the note sits
   in the empty sky at the top right, where the props on the ground never run into it. */
.arm-scene { min-height: 0; aspect-ratio: var(--frame); }
.arm-scene .arm-sun { width: min(84%, 640px); height: 34%; top: calc(var(--horizon) - 34%); }
.arm-scene .arm-note, .arm-scene .arm-pause[hidden] + .arm-note { top: 12px; bottom: auto; right: 12px; max-width: calc(100% - 24px); }
.arm-scene-inspect { --frame: 4 / 3; --horizon: 80%; }
.arm-scene-stack { --frame: 5 / 4; --horizon: 83%; }
.arm-scene-search { --horizon: 82%; } /* fills the 404 band's column, like the landing hero */
/* a full-height stage: the note goes back to the hero's place, on the ground beside the button */
.arm-scene-search .arm-note { top: auto; bottom: 14px; right: 60px; max-width: min(25em, calc(100% - 72px)); }
.arm-scene-search .arm-pause[hidden] + .arm-note { top: auto; bottom: 14px; right: 12px; }
/* phones and reduced motion show the poster and no button: the note becomes a caption below */
@media (max-width: 639px) {
  .arm-scene { margin-bottom: 40px; }
  .arm-scene .arm-note, .arm-scene .arm-pause[hidden] + .arm-note {
    top: calc(100% + 8px); bottom: auto; left: 0; right: 0; max-width: none; text-align: left;
  }
}

/* /assay: a dusk band between "How Assay works" and "Nine checks" */
.arm-band { overflow: clip; padding-bottom: 96px; }
.arm-band-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.arm-band-text { grid-column: 1 / span 4; }
.arm-band-text .lead { margin-top: 24px; }
.arm-band .arm-scene { grid-column: 5 / -1; }
.verdict-key { margin-top: 32px; display: grid; gap: 8px; font: 400 13px/20px var(--mono); color: var(--muted); }
.verdict-key li { display: flex; align-items: center; gap: 12px; }
.verdict-key b { font-weight: 500; }
.verdict-key i { flex: none; width: 10px; height: 10px; border-radius: 2px; }
.verdict-key .vk-pass i { background: var(--term-pass); }
.verdict-key .vk-warn i { background: var(--term-warn); }
.verdict-key .vk-fail i { background: var(--term-fail); }
.verdict-key .vk-pass b { color: var(--term-pass); }
.verdict-key .vk-warn b { color: var(--term-warn); }
.verdict-key .vk-fail b { color: var(--term-fail); }
@media (min-width: 1024px) {
  /* the horizon starts at the stage and runs off the band's right edge, clear of the text */
  .arm-band .arm-scene::before { left: 0; background: linear-gradient(90deg, transparent, var(--line-2) 120px); }
}
@media (max-width: 1279px) {
  .arm-band-text { grid-column: 1 / span 5; }
  .arm-band .arm-scene { grid-column: 6 / -1; }
}
@media (max-width: 1023px) {
  .arm-band { padding-bottom: 64px; }
  .arm-band-text, .arm-band .arm-scene { grid-column: 1 / -1; }
  .arm-band .arm-scene { margin-top: 40px; }
}

/* /arm "Software today": the stacking loop in a dusk panel beside the text */
.arm-panel { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.arm-panel .arm-scene { width: 100%; }
#software .goal { margin-top: var(--head-gap); }
@media (max-width: 639px) {
  /* the caption sits under the stage, inside the panel */
  .arm-panel .arm-scene { margin-bottom: 0; }
  .arm-panel { padding-bottom: 48px; }
  .arm-panel .arm-scene .arm-note { padding: 0 16px; }
}

/* 404: the landing hero's band, with the arm looking for the page */
.notfound-hero .hero-text .label { margin-bottom: 20px; color: var(--accent); }
.notfound-hero + .footer { border-top: 1px solid var(--line); }
