/* /standard: "The new gold standard for game data".
   Visual system: editorial figures. Evidence sits on the page as typeset
   figures (a strong top rule, a small mono title, the image or chart, a
   caption) rather than in boxes. Light sections carry charts and text-heavy
   figures; four dark stages (hero, rendering, segmentation, reconstruction)
   carry imagery that reads better on black. The chamfer is a brand mark and
   stays on buttons and the hero's top plane only.
   Tokens come from base.css + zd.css. Ports to site/css/standard.css. */

:root {
  --std-ink: #0E0B16;
  --std-rule: rgba(14, 11, 22, 0.12);
  --std-rule-strong: #0E0B16;
  --std-dim: #6b6874;
  --std-amber: #E8892B;
  --std-teal: #1BBFA0;
  --std-mono: 'JetBrains Mono', ui-monospace, monospace;
}
.std-dark {
  --std-rule: rgba(245, 244, 244, 0.12);
  --std-rule-strong: rgba(245, 244, 244, 0.75);
  --std-dim: rgba(245, 244, 244, 0.58);
  --std-amber: #FFAA48;
  background: var(--std-ink);
  color: var(--white);
}
.std-dark .label { color: var(--purple-tint); }
.std-dark h1, .std-dark h2, .std-dark h3, .std-dark h4 { color: var(--white); }

/* ---------- placeholder marker: swap before launch ---------- */
.std-ph { outline: 2px dashed var(--flag); outline-offset: 4px; position: relative; }
.std-ph__tag { display: inline-block; font-family: var(--std-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #1a1400; background: var(--yellow); padding: 0.3rem 0.55rem; line-height: 1.3; }
.std-ph-inline { font-family: var(--std-mono); font-size: 0.85em; color: #6b5400; background: rgba(255, 222, 81, 0.35); padding: 0 0.3em; }
.std-dark .std-ph-inline { color: var(--yellow); background: rgba(255, 222, 81, 0.12); }

/* ---------- shared type ---------- */
.std-k { font-family: var(--std-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ac-ink); }
.std-head { max-width: 68ch; margin-bottom: var(--space-lg); }
.std-head .label { display: inline-block; margin-bottom: var(--space-sm); }
.std-head h2 { margin: 0 0 var(--space-md); }
.std-lede { font-size: 1.0625rem; line-height: 1.7; color: var(--grey); max-width: 64ch; }
.std-lede + .std-lede { margin-top: 0.9rem; }
.std-dark .std-lede { color: var(--purple-tint); }
.std-num { font-family: var(--std-mono); color: var(--ac-ink); margin-right: 0.5rem; }
.std-dark .std-num { color: var(--cyan); }

/* ---------- the figure: rule, title, content, caption ---------- */
.std-inst { position: relative; margin: 0; color: inherit; }
.std-inst__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  padding: 0.75rem 0 0.7rem;
  border-top: 2px solid var(--std-rule-strong);
  font-family: var(--std-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac-ink);
}
.std-dark .std-inst__bar { color: var(--cyan); }
.std-inst__bar > span:last-child { color: var(--std-dim); }
.std-inst__body { padding: 0.4rem 0 0; }
.std-inst__foot { margin: 0; padding: 0.8rem 0 0; max-width: 84ch; font-size: 0.875rem; line-height: 1.6; color: var(--std-dim); }
.std-inst__foot b { color: var(--black); font-weight: 600; }
.std-dark .std-inst__foot b { color: var(--white); }
.std-fig-img { display: block; width: 100%; height: auto; }

/* key/value text pairs */
.std-kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 1.25rem; font-size: 0.8125rem; }
.std-kv > span { padding: 0.5rem 0; border-bottom: 1px solid var(--std-rule); overflow-wrap: break-word; }
.std-kv > span:nth-child(odd) { font-family: var(--std-mono); font-size: 0.75rem; color: var(--std-dim); }
.std-kv > span:nth-child(even) { font-family: var(--std-mono); color: var(--black); }
.std-dark .std-kv > span:nth-child(even) { color: var(--white); }
.std-kv--wide { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); }
.std-kv--wide > span:nth-child(even) { font-family: var(--font-body); font-size: 0.875rem; }

/* tabs: text with an underline, never pills */
.std-tab { font: inherit; font-family: var(--std-mono); font-size: 0.75rem; letter-spacing: 0.04em; min-height: 40px; padding: 0; margin-right: 1.5rem; color: var(--std-dim); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.std-tab:hover { color: var(--black); }
.std-dark .std-tab:hover { color: var(--white); }
.std-tab.is-on { color: var(--black); border-bottom-color: var(--purple); }
.std-dark .std-tab.is-on { color: var(--white); border-bottom-color: var(--cyan); }
.std-toggle { display: inline-flex; }
.std-toggle .std-tab { min-height: 26px; margin: 0 0 0 1.25rem; letter-spacing: 0.04em; }

/* ---------- hero: the frame, exploded ---------- */
.std-hero {
  position: relative;
  overflow: hidden;
  /* the light band under the transparent nav belongs to the hero, so it never depends on the body colour */
  border-top: var(--nav-height) solid var(--white);
  padding: 3.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(123, 112, 251, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 100%, rgba(84, 255, 224, 0.08), transparent 70%),
    var(--std-ink);
  color: var(--white);
}
.std-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(123, 112, 251, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(123, 112, 251, 0.07) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 30%, transparent 75%); pointer-events: none; }
.std-hero .container { position: relative; z-index: 1; }
.std-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-xl); align-items: center; }
.std-hero .label { color: var(--cyan); }
.std-hero h1 { color: var(--white); font-size: clamp(2.3rem, 1.5rem + 2.2vw, 3.4rem); line-height: 1.02; margin: var(--space-sm) 0 var(--space-md); max-width: 17ch; }
.std-hero h1 em { font-style: normal; color: var(--yellow); }
.std-hero__sub { font-size: 1.125rem; line-height: 1.65; color: var(--purple-tint); max-width: 52ch; }
.std-hero .zd-ctas { margin-top: var(--space-lg); }
.std-hero .btn--outline, .std-dark .btn--outline { color: var(--white); }
.std-hero .btn--outline::before, .std-dark .btn--outline::before { background: rgba(245, 244, 244, 0.55); }
.std-hero .btn--outline::after, .std-dark .btn--outline::after { background: var(--std-ink); }
.std-hero .btn--outline:hover::after, .std-dark .btn--outline:hover::after { background: var(--purple); }
.std-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: var(--space-md); font-size: 0.8125rem; color: rgba(245, 244, 244, 0.6); }
.std-trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.std-trust span::before { content: ''; width: 6px; height: 6px; background: var(--cyan); flex: 0 0 auto; }

.std-stack { position: relative; height: 560px; perspective: 2200px; }
.std-stack__scene { position: absolute; left: 50%; top: 52%; width: 440px; height: 248px; margin: -124px 0 0 -250px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-36deg); }
.std-plane { position: absolute; inset: 0; background: #000; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.std-plane img { display: block; width: 100%; height: 100%; object-fit: cover; }
.std-plane--hud { background: rgba(14, 11, 22, 0.35); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.std-plane__n { position: absolute; left: 16px; top: 8px; font-family: var(--std-mono); font-size: 12px; font-weight: 600; color: var(--cyan); text-shadow: 0 0 6px #000, 0 0 2px #000; }
.std-stack__legend { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; font-family: var(--std-mono); font-size: 0.6875rem; color: var(--purple-tint); }
.std-stack__legend b { color: var(--cyan); font-weight: 600; margin-right: 0.5rem; }
.std-stack__stamp { position: absolute; left: 0; bottom: 2rem; margin: 0; font-family: var(--std-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245, 244, 244, 0.58); }
.std-stack__stamp b { color: var(--cyan); font-weight: 600; }

/* what every capture carries */
.std-tick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: var(--space-xl); border-top: 1px solid rgba(123, 112, 251, 0.3); }
.std-tick > div { padding: 1.1rem 1rem 0 0; }
.std-tick > div + div { padding-left: 1rem; border-left: 1px solid rgba(245, 244, 244, 0.08); }
.std-tick b { display: block; font-family: var(--font-heading); font-weight: 900; font-stretch: 125%; font-size: clamp(1.3rem, 0.95rem + 0.8vw, 1.8rem); line-height: 1; color: var(--white); white-space: nowrap; }
.std-tick span { display: block; margin-top: 0.45rem; font-family: var(--std-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(245, 244, 244, 0.58); }
.std-tick__k { grid-column: 1 / -1; padding: 0.9rem 0 0 !important; border: 0 !important; margin: 0; font-family: var(--std-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }

/* ---------- chapter index ---------- */
.std-index { background: var(--std-ink); }   /* no full-width rule above the index (Tim, 11 Nov 2026) */
.std-index .container { padding-top: 0; padding-bottom: 0.75rem; }   /* the chapter links sit flush under the rule above them */
.std-index nav { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; }
.std-index a { display: flex; flex-direction: column; justify-content: flex-start; gap: 0.2rem; padding: 0.35rem 0.6rem 0.5rem;   /* sits just under its rule */
  font-family: var(--std-mono); font-size: 0.6875rem; line-height: 1.25; color: rgba(245, 244, 244, 0.72); text-decoration: none; border-top: 2px solid rgba(123, 112, 251, 0.25); }
.std-index a b { color: var(--cyan); font-weight: 600; }
.std-index a b:empty { height: 1.25em; }   /* the intro and Download carry no number; keep their names on the same line as the rest */
.std-index a:hover { color: var(--white); border-top-color: var(--cyan); }

/* ---------- 01 problem ---------- */
.std-dip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.std-dip__img { position: relative; overflow: hidden; }
.std-dip__img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.std-dip__pane--guess .std-dip__img img { filter: saturate(0.85); }
.std-dip__pane--know .std-dip__img img { filter: brightness(0.45) saturate(0.6); }
.std-pin { position: absolute; width: 0; height: 0; }
.std-pin::before { content: ''; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--white); background: rgba(14, 11, 22, 0.6); }
.std-pin__t { position: absolute; white-space: nowrap; font-family: var(--std-mono); font-size: 0.6875rem; line-height: 1.35; padding: 0.3rem 0.5rem; transform: translate(10px, -50%); }
.std-pin--l .std-pin__t { transform: translate(calc(-100% - 10px), -50%); }
.std-pin--u .std-pin__t { transform: translate(-50%, calc(-100% - 12px)); }
.std-pin--d .std-pin__t { transform: translate(-50%, 12px); }
.std-pin--dl .std-pin__t { transform: translate(calc(-100% + 14px), 12px); }
.std-pin__n { display: none; position: absolute; left: 7px; top: -18px; font-family: var(--std-mono); font-size: 10px; font-weight: 600; color: var(--white); text-shadow: 0 0 4px #000, 0 0 2px #000; }
.std-dip__pane--guess .std-pin::before { border-color: rgba(245, 244, 244, 0.75); border-style: dashed; }
.std-dip__pane--guess .std-pin__t { color: var(--white); background: rgba(14, 11, 22, 0.72); border: 1px dashed rgba(245, 244, 244, 0.5); }
.std-dip__pane--know .std-pin::before { border-color: var(--cyan); background: var(--cyan); }
.std-dip__pane--know .std-pin__t { color: var(--std-ink); background: var(--cyan); font-weight: 600; }
.std-dip__pane--know .std-pin__n { color: var(--cyan); }
.std-dip__list { display: none; margin: 0; padding: 0.7rem 0 0 1.2rem; font-family: var(--std-mono); font-size: 0.75rem; line-height: 1.7; color: var(--black); }
.std-dip__cap { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.7rem 0 0; font-family: var(--std-mono); font-size: 0.75rem; color: var(--std-dim); }
.std-dip__cap b { color: var(--black); }
.std-dip__pane--know .std-dip__cap b { color: var(--purple); }

/* research findings: a typeset row, not cards */
.std-sub-k { margin: var(--space-xl) 0 0; padding-top: 0.75rem; border-top: 2px solid var(--std-rule-strong); }
.std-evidence { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-md); }
.std-ev { display: flex; flex-direction: column; gap: 0.55rem; padding: 0 1.5rem; border-left: 1px solid var(--std-rule); }
.std-ev:first-child { padding-left: 0; border-left: 0; }
.std-ev__n { font-family: var(--font-heading); font-weight: 900; font-stretch: 125%; font-size: clamp(2.2rem, 1.7rem + 1.4vw, 3.1rem); line-height: 0.95; color: var(--purple); }
.std-ev__u { font-family: var(--std-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--black); font-weight: 600; }
.std-ev p { font-size: 0.9375rem; line-height: 1.6; color: var(--grey); margin: 0; }
.std-ev cite { margin-top: auto; padding-top: 0.6rem; font-style: normal; font-size: 0.75rem; line-height: 1.5; color: var(--std-dim); }
.std-ev cite a { color: var(--ac-ink); }
.std-close { margin-top: var(--space-xl); font-family: var(--font-heading); font-weight: 800; font-stretch: 112%; font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem); line-height: 1.3; color: var(--black); max-width: 40ch; }
.std-close strong { color: var(--purple); font-weight: 800; }
.std-fine { font-size: 0.8125rem; color: var(--std-dim); margin-top: 0.6rem; }

/* ---------- 02 the standard ---------- */
.std-score { width: 100%; border-collapse: collapse; border-top: 2px solid var(--std-rule-strong); }
.std-score caption { caption-side: top; text-align: left; padding: 0 0 0.8rem; }
.std-score th, .std-score td { text-align: left; vertical-align: top; padding: 1rem 1.1rem 1rem 0; border-bottom: 1px solid var(--std-rule); font-size: 0.9375rem; line-height: 1.5; }
.std-score thead th { font-family: var(--std-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--std-dim); vertical-align: bottom; }
.std-score thead th.is-us { color: var(--purple); }
.std-score thead th.is-us b { display: block; color: var(--black); font-size: 0.6875rem; }
.std-score tbody th { width: 17%; font-weight: 700; color: var(--black); }
.std-score td.is-them { width: 31%; color: var(--grey); }
.std-score td.is-us { color: var(--black); font-weight: 500; padding-left: 1.1rem; background: rgba(123, 112, 251, 0.07); }
.std-score td.is-us a { font-family: var(--std-mono); font-size: 0.75rem; color: var(--purple); margin-left: 0.4rem; white-space: nowrap; }
.std-score tfoot td, .std-score tfoot th { border-bottom: 0; border-top: 2px solid var(--std-rule-strong); font-family: var(--std-mono); font-size: 0.8125rem; font-weight: 600; }
.std-mk { display: inline-block; width: 11px; height: 11px; margin-right: 0.55rem; vertical-align: -1px; border: 2px solid currentColor; }
.std-mk--full { background: var(--purple); border-color: var(--purple); }
.std-mk--half { background: linear-gradient(90deg, #8a8494 50%, transparent 50%); border-color: #8a8494; }
.std-mk--none { border-color: #b9b4c2; }
.std-score__key { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.8rem; font-family: var(--std-mono); font-size: 0.75rem; color: var(--std-dim); }
.std-score__foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-lg); }
.std-score__foot p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--grey); }
.std-score__foot strong { color: var(--black); }

/* ---------- 03 rendering: the plane viewer, on a dark stage ---------- */
.std-viewer { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 var(--space-lg); }
.std-viewer__tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; margin-bottom: 1rem; border-bottom: 1px solid var(--std-rule); }
.std-viewer__vp { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.std-viewer__vp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 200ms ease; }
.std-viewer__vp img.is-on { opacity: 1; }
.std-xhair { position: absolute; width: 0; height: 0; z-index: 2; }
.std-xhair::before, .std-xhair::after { content: ''; position: absolute; background: var(--cyan); }
.std-xhair::before { left: -14px; top: -0.5px; width: 28px; height: 1px; }
.std-xhair::after { top: -14px; left: -0.5px; height: 28px; width: 1px; }
.std-xhair span { position: absolute; left: 12px; top: 8px; font-family: var(--std-mono); font-size: 0.6875rem; color: var(--cyan); white-space: nowrap; text-shadow: 0 0 6px #000, 0 0 2px #000; }
.std-viewer__read { display: flex; flex-direction: column; gap: 0.9rem; }
.std-viewer__read h4 { margin: 0; font-family: var(--font-heading); font-size: 1.25rem; }
.std-viewer__read p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--purple-tint); }

/* ---------- 04 audio, 05 inputs: time-aligned strips on the page ---------- */
.std-strips { position: relative; --k: 150px; --v: 110px; --g: 1rem; }
.std-strip { display: grid; grid-template-columns: var(--k) minmax(0, 1fr) var(--v); align-items: center; gap: 0 var(--g); min-height: 38px; border-bottom: 1px solid var(--std-rule); }
.std-strip__k { font-family: var(--std-mono); font-size: 0.75rem; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.std-strip__v { font-family: var(--std-mono); font-size: 0.75rem; color: var(--std-dim); text-align: right; white-space: nowrap; }
.std-strip svg { display: block; width: 100%; height: 30px; }
.std-strip--tall svg { height: 50px; }
.std-strip--group { display: block; min-height: 0; padding: 1rem 0 0.3rem; border-bottom: 0; }
.std-strip--group .std-strip__k { color: var(--ac-ink); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.std-axis { display: grid; grid-template-columns: var(--k) minmax(0, 1fr) var(--v); gap: 0 var(--g); padding-top: 0.5rem; font-family: var(--std-mono); font-size: 0.6875rem; color: var(--std-dim); }
.std-axis__t { display: flex; justify-content: space-between; }
.std-playhead { position: absolute; top: 0; bottom: 26px; left: calc(var(--k) + var(--g) + (100% - var(--k) - var(--v) - 2 * var(--g)) / 2); width: 0; border-left: 1px solid var(--purple); pointer-events: none; }
.std-playhead span { position: absolute; top: -1.4rem; left: 0; transform: translateX(-50%); font-family: var(--std-mono); font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); white-space: nowrap; }

/* ---------- 04 Audio: stem player (transport, solo / mute, playhead) ---------- */
.std-au { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; padding: 0.5rem 0 0.8rem; border-bottom: 1px solid var(--std-rule); }
.std-au__play { font: inherit; font-family: var(--std-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.65rem; min-width: 7.5rem; height: 40px; padding: 0 1rem 0 0.95rem; color: var(--white); background: var(--std-ink); border: 0; border-radius: 0; cursor: pointer; }
.std-au__play:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.std-au__play i { display: block; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.std-au__play.is-on i { width: 10px; height: 12px; border-width: 0 3px; border-color: currentColor; }
.std-au__play.is-load { cursor: progress; }
.std-au__play.is-load i { opacity: 0.4; }
.std-au__src { display: flex; }
.std-au__time { display: flex; align-items: baseline; gap: 1rem; margin: 0 0 0 auto; font-family: var(--std-mono); font-size: 0.75rem; color: var(--std-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.std-au__time b { font-size: 0.875rem; font-weight: 600; color: var(--black); }
.std-au__time span { min-width: 7ch; text-align: right; }
.std-au__strips { margin-top: 1.7rem; }
.std-au__stem svg { transition: opacity 0.12s; }
.std-au__stem.is-quiet svg { opacity: 0.16; }
.std-au__stem.is-quiet .std-strip__k { color: var(--std-dim); }
.std-au__stem.is-bypass svg { opacity: 0.45; }
.std-mix { display: flex; justify-content: flex-end; gap: 4px; position: relative; z-index: 2; }
.std-au__b { font: inherit; font-family: var(--std-mono); font-size: 0.6875rem; font-weight: 600; width: 30px; height: 30px; padding: 0; color: var(--std-dim); background: none; border: 1px solid rgba(14, 11, 22, 0.28); border-radius: 0; cursor: pointer; }
@media (hover: hover) {
  .std-au__play:hover { background: var(--purple); }
  .std-au__b:hover { color: var(--black); border-color: var(--black); }
}
.std-au__b:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.std-au__b--s.is-on { color: var(--white); background: var(--purple); border-color: var(--purple); }
.std-au__b--m.is-on { color: var(--std-ink); background: var(--std-amber); border-color: var(--std-amber); }
.std-au__strips .std-playhead { border-left: 1px dashed rgba(123, 112, 251, 0.6); }
.std-au__strips .std-playhead span { color: var(--std-dim); }
/* The playhead is the range's thumb: a 2 px line the height of the stems; the track is invisible. */
.std-au__seek { -webkit-appearance: none; appearance: none; position: absolute; top: 0; left: calc(var(--k) + var(--g)); width: calc(100% - var(--k) - var(--v) - 2 * var(--g)); height: calc(100% - 26px); margin: 0; padding: 0; background: transparent; cursor: pointer; touch-action: pan-y; z-index: 1; }
.std-au__seek:focus { outline: none; }
.std-au__seek:focus-visible { outline: 1px dashed var(--purple); outline-offset: 3px; }
.std-au__seek::-webkit-slider-runnable-track { height: 100%; background: transparent; border: 0; border-radius: 0; }
.std-au__seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 2px; height: 100%; background: var(--purple); border: 0; border-radius: 0; }
.std-au__seek::-moz-range-track { height: 100%; background: transparent; border: 0; border-radius: 0; }
.std-au__seek::-moz-range-thumb { width: 2px; height: 100%; background: var(--purple); border: 0; border-radius: 0; }
@media (max-width: 700px) {
  .std-au { gap: 0.5rem 1rem; }
  .std-au__src .std-tab { margin-right: 1rem; }
  .std-au__time { flex-basis: 100%; margin-left: 0; justify-content: space-between; }
  .std-mix { gap: 2px; }
  .std-au__b { width: 27px; height: 36px; }
}

/* ---------- 06 world state ---------- */
.std-world { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 var(--space-lg); }
.std-world__map svg { display: block; width: 100%; height: auto; }
.std-world__side { display: flex; flex-direction: column; }
.std-ents { display: flex; flex-direction: column; padding-bottom: 0.6rem; margin-bottom: 0.4rem; border-bottom: 1px solid var(--std-rule); }
.std-ent { font: inherit; font-family: var(--std-mono); font-size: 0.75rem; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; text-align: left; min-height: 32px; padding: 0 0.6rem; color: var(--std-dim); background: none; border: 0; border-left: 2px solid transparent; cursor: pointer; }
.std-ent:hover { color: var(--black); }
.std-ent.is-on { color: var(--black); border-left-color: var(--purple); }
.std-ent i { width: 9px; height: 9px; display: block; }
.std-ent i.is-player { background: var(--purple); border-radius: 50%; }
.std-ent i.is-enemy { background: var(--std-amber); transform: rotate(45deg); }
.std-ent small { font-size: 0.6875rem; color: var(--std-dim); }
.std-world__card h4 { margin: 0.4rem 0 0.4rem; font-family: var(--font-heading); font-size: 1.1rem; color: var(--black); }

/* ---------- 07 labels ---------- */
.std-onto { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.1fr); gap: 0 var(--space-lg); min-height: 440px; }
.std-onto__doms, .std-onto__list { display: flex; flex-direction: column; }
.std-dom, .std-lab { font: inherit; font-family: var(--std-mono); font-size: 0.75rem; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; min-height: 31px; padding: 0 0.6rem; color: var(--std-dim); background: none; border: 0; border-left: 2px solid transparent; cursor: pointer; }
.std-dom b { font-weight: 600; }
.std-dom:hover, .std-lab:hover { color: var(--black); }
.std-dom.is-on, .std-lab.is-on { color: var(--black); border-left-color: var(--purple); }
.std-dom.is-on b { color: var(--purple); }
.std-onto__desc { margin: 0 0 0.6rem 0.6rem; font-size: 0.875rem; line-height: 1.55; color: var(--grey); }
.std-lab code { font-family: var(--std-mono); font-size: 0.75rem; color: inherit; overflow-wrap: anywhere; }
.std-lab span { font-size: 0.6875rem; color: var(--std-dim); white-space: nowrap; }
.std-onto__card { display: flex; flex-direction: column; gap: 0.7rem; padding-left: var(--space-lg); border-left: 1px solid var(--std-rule); }
.std-onto__card h4 { margin: 0; font-family: var(--font-heading); font-size: 1.5rem; color: var(--black); }
.std-onto__card p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--grey); }
.std-onto__card .std-onto__dep { font-family: var(--std-mono); font-size: 0.75rem; color: #8a6d00; }
.std-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-xl); }
.std-defs { display: flex; flex-direction: column; gap: 0.85rem; }
.std-defs p, .std-defs__p { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--grey); }
.std-defs b { display: block; font-family: var(--std-mono); font-size: 0.75rem; color: var(--black); margin-bottom: 0.15rem; }
.std-band { display: flex; height: 20px; margin-top: 0.6rem; }
.std-band i { display: block; height: 100%; }
.std-band__k { position: relative; height: 1.1rem; margin: 0.35rem 0 0.9rem; font-family: var(--std-mono); font-size: 0.6875rem; color: var(--std-dim); }
.std-band__k span { position: absolute; top: 0; transform: translateX(-50%); }
.std-band__k span:first-child { transform: none; }

/* ---------- 08 segmentation: wipe, on a dark stage ---------- */
.std-wipe { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.std-wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.std-wipe__over { position: absolute; inset: 0; }
.std-wipe__line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--cyan); pointer-events: none; }
.std-wipe__line span { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: var(--cyan); }
.std-wipe__tags { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 0.8rem 1rem; font-family: var(--std-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); text-shadow: 0 0 6px #000, 0 0 2px #000; pointer-events: none; }
.std-range { display: block; width: 100%; margin: 0.9rem 0 0.2rem; accent-color: var(--cyan); height: 28px; }

/* ---------- 08 segmentation: views and the downscaling strip ---------- */
.std-seg { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.std-seg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 200ms ease; }
.std-seg > img.is-on { opacity: 1; }
.std-seg__ph { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, rgba(255, 222, 81, 0.06) 0 12px, transparent 12px 24px), #14101e; outline: 2px dashed var(--flag); outline-offset: -2px; }
.std-seg__ph.is-on { display: flex; }
.std-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.std-scale figure { margin: 0; }
.std-scale img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }
.std-scale figcaption { margin-top: 0.5rem; font-family: var(--std-mono); font-size: 0.75rem; color: var(--std-dim); }
.std-scale figcaption b { font-family: var(--font-heading); font-weight: 900; font-stretch: 125%; font-size: 1.25rem; color: var(--black); margin-right: 0.25rem; }
.std-pe__uses.std-seg__uses p { color: var(--grey); }
@media (max-width: 900px) { .std-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 09 pixel to entity ---------- */
.std-join { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--space-lg); }
.std-join__n { position: relative; display: flex; flex-direction: column; gap: 0.55rem; }
.std-join__n + .std-join__n::before { content: '\2192'; position: absolute; left: calc(-1 * var(--space-lg) / 2 - 0.45rem); top: 0.05rem; font-family: var(--std-mono); font-size: 0.9rem; color: var(--purple); }
.std-join__n h4 { margin: 0; font-family: var(--std-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ac-ink); }
.std-join__big { font-family: var(--font-heading); font-weight: 900; font-stretch: 125%; font-size: 1.35rem; line-height: 1.1; color: var(--black); overflow-wrap: anywhere; }
.std-join__n p { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--grey); }
.std-join__crop { position: relative; aspect-ratio: 1; overflow: hidden; background: #000; }
.std-join__crop img { position: absolute; width: 500%; max-width: none; }

/* ---------- 09 pixel to entity: the centrepiece ---------- */
.std-pe { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0 var(--space-lg); align-items: start; }
.std-pe__fig { margin: 0; }
.std-pe__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.std-pe__fig figcaption { margin-top: 0.5rem; font-family: var(--std-mono); font-size: 0.6875rem; color: var(--std-dim); }
.std-pe__frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.std-pe__hot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; cursor: pointer; }
.std-pe__hot::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 2px solid rgba(245, 244, 244, 0.85); box-shadow: 0 0 0 4px rgba(14, 11, 22, 0.35); transition: border-color 150ms ease, inset 150ms ease; }
.std-pe__hot::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--white); }
.std-pe__hot span { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); font-family: var(--std-mono); font-size: 0.6875rem; font-weight: 600; white-space: nowrap; color: var(--white); text-shadow: 0 0 6px #000, 0 0 2px #000; opacity: 0.8; }
.std-pe__hot:hover::before { border-color: var(--cyan); }
.std-pe__hot.is-on::before { inset: 4px; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(84, 255, 224, 0.25), 0 0 24px rgba(84, 255, 224, 0.5); }
.std-pe__hot.is-on::after { background: var(--cyan); }
.std-pe__hot.is-on span { color: var(--cyan); opacity: 1; }
.std-pe__chain { display: flex; flex-direction: column; }
.std-pe__step { position: relative; display: flex; flex-direction: column; gap: 0.4rem; padding: 0 0 1rem 1.4rem; border-left: 1px solid rgba(84, 255, 224, 0.35); }
.std-pe__step::before { content: ''; position: absolute; left: -4px; top: 0.2rem; width: 7px; height: 7px; background: var(--cyan); }
.std-pe__step:last-child { border-left-color: transparent; padding-bottom: 0; }
.std-pe__n { font-family: var(--std-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.std-pe__px { display: flex; align-items: center; gap: 1rem; }
.std-pe__px .std-join__crop { width: 72px; flex: 0 0 auto; }
/* its state: field tiles, two across. Four rows stay open whatever is selected (the fullest entity has seven fields),
   so moving from a player to the boss's three never shifts the page */
.std-pe__state { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(3.7rem, auto)); gap: 0 1.25rem; align-content: start; margin-top: 0.15rem; }
.std-pe__f { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; padding: 0.5rem 0; border-top: 1px solid rgba(245, 244, 244, 0.14); }
.std-pe__f span { font-family: var(--std-mono); font-size: 0.6875rem; color: var(--std-dim); }
.std-pe__f b { font-family: var(--std-mono); font-size: 0.8125rem; font-weight: 500; color: var(--white); overflow-wrap: anywhere; }
.std-pe__id { font-family: var(--std-mono); font-size: 0.75rem; color: var(--std-dim); }
.std-join__crop img { opacity: 0; }
.std-join__crop img.is-on { opacity: 1; }
.std-p2e .std-join__big { color: var(--white); }
.std-p2e .std-pe__step.std-ph { outline-offset: 2px; }
.std-pe__uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-xl); }
.std-pe__uses > div { padding-top: 0.75rem; border-top: 2px solid var(--std-rule-strong); }
.std-pe__uses h4 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.std-pe__uses p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--purple-tint); }
@media (max-width: 900px) {
  .std-pe { grid-template-columns: minmax(0, 1fr); }
  .std-pe__chain { margin-top: var(--space-md); }
  .std-pe__state { gap: 0 1rem; }
  .std-pe__uses { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 10 reconstruction, on a dark stage ---------- */
.std-cloud { position: relative; aspect-ratio: 16 / 9; background: var(--std-ink); overflow: hidden; }
.std-cloud img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 250ms ease; }
.std-cloud img.is-on { opacity: 1; }
.std-tag { position: absolute; transform: translate(-50%, -100%); margin-top: -8px; font-family: var(--std-mono); font-size: 0.6875rem; font-weight: 600; line-height: 1.3; white-space: nowrap; text-shadow: 0 0 6px var(--std-ink), 0 1px 2px var(--std-ink), 0 0 12px var(--std-ink); pointer-events: none; }
.std-tag::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 1px; height: 6px; background: currentColor; }
.std-tag--player { color: var(--cyan); }
.std-tag--enemy { color: #FFAA48; }
.std-tag--cam { color: var(--white); }
.std-tag small { display: block; font-size: 0.625rem; font-weight: 400; opacity: 0.85; }
.std-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); margin-top: 1.2rem; }
.std-stats > div { padding-top: 0.75rem; border-top: 1px solid var(--std-rule); }
.std-stats b { display: block; font-family: var(--font-heading); font-weight: 900; font-stretch: 125%; font-size: 1.4rem; line-height: 1.1; }
.std-stats span { display: block; margin-top: 0.35rem; font-size: 0.8125rem; line-height: 1.45; color: var(--std-dim); }

/* ---------- 11 provenance ---------- */
.std-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); counter-reset: none; }
.std-chain__n { display: flex; flex-direction: column; gap: 0.45rem; }
.std-chain__n h4 { margin: 0; font-family: var(--std-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ac-ink); }
.std-chain__n b { font-size: 1rem; color: var(--black); font-weight: 600; }
.std-chain__n span { font-size: 0.875rem; line-height: 1.55; color: var(--grey); }
.std-lic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-xl); }
.std-lic > div { padding-top: 0.75rem; border-top: 2px solid var(--std-rule-strong); }
.std-lic h4 { margin: 0 0 0.4rem; font-family: var(--std-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ac-ink); }
.std-lic p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--black); }

/* ---------- 12 download ---------- */
.std-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.std-tree { margin: 0; padding: 0.4rem 0 0; white-space: pre; overflow-x: auto; font-family: var(--std-mono); font-size: 0.8125rem; line-height: 1.8; color: var(--black); }
.std-tree b { color: var(--purple); font-weight: 600; }
.std-tree small { font-size: inherit; color: var(--std-dim); }
.std-dl__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: var(--space-md); }
.std-dl__cta small { color: var(--std-dim); font-size: 0.8125rem; }
.std-dl__cta small a { color: var(--ac-ink); }
.std-form { display: flex; flex-direction: column; gap: 0.9rem; }
.std-form h3 { margin: 0; font-size: 1.35rem; }
.std-form > p { margin: 0 0 0.3rem; color: var(--grey); font-size: 0.9375rem; line-height: 1.6; }
.std-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8125rem; font-weight: 600; color: var(--black); }
.std-form input, .std-form select, .std-form textarea { font: inherit; font-weight: 400; font-size: 0.9375rem; color: var(--black); background: var(--white-pure); border: 1px solid rgba(14, 11, 22, 0.2); padding: 0.7rem 0.8rem; min-height: 44px; }
.std-form textarea { min-height: 88px; resize: vertical; }
.std-form .btn { align-self: flex-start; margin-top: 0.3rem; }
.std-form__req { color: var(--ac-ink); font-weight: 700; margin-left: 0.15rem; }
.std-form__fine .std-form__req { margin-left: 0; }
.std-form__fine { margin: 0; font-size: 0.8125rem; color: var(--std-dim); }
.std-form__fine a { color: var(--ac-ink); }
.std-more { margin: var(--space-lg) 0 0; padding-top: 0.75rem; border-top: 1px solid var(--std-rule); font-size: 0.9375rem; color: var(--grey); }
.std-more a { color: var(--ac-ink); font-weight: 600; margin-left: 0.3rem; }

/* ---------- spec lists + file lines ---------- */
.std-spec { margin-top: var(--space-md); border-top: 1px solid var(--std-rule); }
.std-spec summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-family: var(--std-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ac-ink); }
.std-spec summary::-webkit-details-marker { display: none; }
.std-spec summary::after { content: '+'; font-size: 1.1rem; }
.std-spec[open] summary::after { content: '\2212'; }
.std-spec dl { margin: 0 0 var(--space-sm); display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.std-spec dt, .std-spec dd { margin: 0; padding: 0.55rem 0; border-bottom: 1px solid var(--std-rule); font-size: 0.875rem; line-height: 1.5; }
.std-spec dt { padding-right: 1.5rem; color: var(--std-dim); font-weight: 500; }
.std-spec dd { font-family: var(--std-mono); font-size: 0.8125rem; color: var(--black); }
.std-filesline { margin: var(--space-md) 0 0; max-width: 92ch; font-family: var(--std-mono); font-size: 0.8125rem; line-height: 1.75; color: var(--std-dim); }
.std-filesline b { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ac-ink); margin-bottom: 0.15rem; }
.std-filesline code { font-family: inherit; color: var(--black); }
.std-dark .std-filesline b { color: var(--cyan); }
.std-dark .std-filesline code { color: var(--white); }

/* ---------- questions + references ---------- */
.std-qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-xl); }
.std-qa > div { padding-top: 0.75rem; border-top: 1px solid var(--std-rule-strong); }
.std-qa h4 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.std-qa p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--grey); }
.std-refs-section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.std-refs { margin: var(--space-sm) 0 0; padding-left: 1.4rem; list-style: decimal; display: flex; flex-direction: column; gap: 0.7rem; max-width: 92ch; }
.std-refs li { font-size: 0.875rem; line-height: 1.6; color: var(--grey); padding-left: 0.3rem; }
.std-refs li::marker { color: var(--ac-ink); font-weight: 600; }
.std-refs li a { color: var(--ac-ink); overflow-wrap: anywhere; }

/* wipe positions, stepped so the canvas needs no style binding */
.std-wipe--w0 .std-wipe__over { clip-path: inset(0 0 0 0%); } .std-wipe--w0 .std-wipe__line { left: 0%; }
.std-wipe--w5 .std-wipe__over { clip-path: inset(0 0 0 5%); } .std-wipe--w5 .std-wipe__line { left: 5%; }
.std-wipe--w10 .std-wipe__over { clip-path: inset(0 0 0 10%); } .std-wipe--w10 .std-wipe__line { left: 10%; }
.std-wipe--w15 .std-wipe__over { clip-path: inset(0 0 0 15%); } .std-wipe--w15 .std-wipe__line { left: 15%; }
.std-wipe--w20 .std-wipe__over { clip-path: inset(0 0 0 20%); } .std-wipe--w20 .std-wipe__line { left: 20%; }
.std-wipe--w25 .std-wipe__over { clip-path: inset(0 0 0 25%); } .std-wipe--w25 .std-wipe__line { left: 25%; }
.std-wipe--w30 .std-wipe__over { clip-path: inset(0 0 0 30%); } .std-wipe--w30 .std-wipe__line { left: 30%; }
.std-wipe--w35 .std-wipe__over { clip-path: inset(0 0 0 35%); } .std-wipe--w35 .std-wipe__line { left: 35%; }
.std-wipe--w40 .std-wipe__over { clip-path: inset(0 0 0 40%); } .std-wipe--w40 .std-wipe__line { left: 40%; }
.std-wipe--w45 .std-wipe__over { clip-path: inset(0 0 0 45%); } .std-wipe--w45 .std-wipe__line { left: 45%; }
.std-wipe--w50 .std-wipe__over { clip-path: inset(0 0 0 50%); } .std-wipe--w50 .std-wipe__line { left: 50%; }
.std-wipe--w55 .std-wipe__over { clip-path: inset(0 0 0 55%); } .std-wipe--w55 .std-wipe__line { left: 55%; }
.std-wipe--w60 .std-wipe__over { clip-path: inset(0 0 0 60%); } .std-wipe--w60 .std-wipe__line { left: 60%; }
.std-wipe--w65 .std-wipe__over { clip-path: inset(0 0 0 65%); } .std-wipe--w65 .std-wipe__line { left: 65%; }
.std-wipe--w70 .std-wipe__over { clip-path: inset(0 0 0 70%); } .std-wipe--w70 .std-wipe__line { left: 70%; }
.std-wipe--w75 .std-wipe__over { clip-path: inset(0 0 0 75%); } .std-wipe--w75 .std-wipe__line { left: 75%; }
.std-wipe--w80 .std-wipe__over { clip-path: inset(0 0 0 80%); } .std-wipe--w80 .std-wipe__line { left: 80%; }
.std-wipe--w85 .std-wipe__over { clip-path: inset(0 0 0 85%); } .std-wipe--w85 .std-wipe__line { left: 85%; }
.std-wipe--w90 .std-wipe__over { clip-path: inset(0 0 0 90%); } .std-wipe--w90 .std-wipe__line { left: 90%; }
.std-wipe--w95 .std-wipe__over { clip-path: inset(0 0 0 95%); } .std-wipe--w95 .std-wipe__line { left: 95%; }
.std-wipe--w100 .std-wipe__over { clip-path: inset(0 0 0 100%); } .std-wipe--w100 .std-wipe__line { left: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .std-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) 0; }
  .std-ev:nth-child(3) { padding-left: 0; border-left: 0; }
  .std-tick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .std-tick > div:nth-child(4n + 2) { padding-left: 0; border-left: 0; }
  .std-index nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .std-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .std-onto { grid-template-columns: 180px minmax(0, 1fr); }
  .std-onto__card { grid-column: 1 / -1; padding: var(--space-md) 0 0; border-left: 0; border-top: 1px solid var(--std-rule); margin-top: var(--space-md); }
  .std-trio { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .std-hero__grid, .std-dl, .std-world, .std-viewer, .std-dip { grid-template-columns: minmax(0, 1fr); }
  .std-viewer__read { margin-top: var(--space-md); }
  .std-world__map { margin-bottom: var(--space-md); }
  .std-stack { height: 420px; }
  .std-stack__scene { width: 320px; height: 180px; margin: -90px 0 0 -190px; }
  .std-join { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
  .std-join__n + .std-join__n::before { display: none; }
  .std-lic, .std-score__foot, .std-qa, .std-stats { grid-template-columns: minmax(0, 1fr); }
  .std-index nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .std-index a { flex: 0 0 auto; }
}
@media (max-width: 700px) {
  .std-hero h1 { font-size: 2.35rem; }
  .std-stack { height: 360px; overflow: hidden; margin-top: var(--space-md); }
  .std-stack__scene { top: 48%; width: 230px; height: 130px; margin: -65px 0 0 -150px; }
  .std-stack__legend { font-size: 0.625rem; gap: 0.25rem 0.8rem; }
  .std-stack__stamp { bottom: 2.6rem; }
  .std-tick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .std-tick > div { padding-left: 0 !important; border-left: 0 !important; }
  .std-evidence, .std-chain, .std-join { grid-template-columns: minmax(0, 1fr); }
  .std-ev { padding: 0; border-left: 0; }
  .std-strips { --k: 92px; --v: 56px; --g: 0.5rem; }
  .std-pin__t { display: none; }
  .std-pin__n { display: block; }
  .std-dip__list { display: block; }
  .std-onto { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .std-onto__doms { flex-direction: row; overflow-x: auto; margin-bottom: var(--space-sm); border-bottom: 1px solid var(--std-rule); }
  .std-dom { flex: 0 0 auto; border-left: 0; border-bottom: 2px solid transparent; }
  .std-dom.is-on { border-bottom-color: var(--purple); }
  .std-onto__list { max-height: 300px; overflow-y: auto; }
  /* scorecard becomes one block per property */
  .std-score, .std-score tbody, .std-score tfoot, .std-score tr, .std-score th, .std-score td { display: block; width: auto !important; }
  .std-score thead { display: none; }
  .std-score caption { display: block; width: 100%; }
  .std-score tbody tr, .std-score tfoot tr { border-bottom: 1px solid var(--std-rule); padding: 0.4rem 0; }
  .std-score tbody th { padding-bottom: 0.3rem; border-bottom: 0; }
  .std-score td { border-bottom: 0; padding-top: 0.35rem; padding-bottom: 0.35rem; }
  .std-score td.is-us { padding-left: 0.6rem; }
  .std-score td::before { content: attr(data-k); display: block; font-family: var(--std-mono); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--std-dim); margin-bottom: 0.15rem; }
  .std-kv { grid-template-columns: minmax(0, 1fr); }
  .std-kv > span:nth-child(odd) { border-bottom: 0; padding-bottom: 0; }
  .std-spec dl { grid-template-columns: minmax(0, 1fr); }
  .std-spec dt { padding-bottom: 0; border-bottom: 0; }
}

/* ---------- labels: trace one value ---------- */
.std-trace-fig { margin-top: var(--space-xl); }
.std-trace { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr); gap: var(--space-xl); margin-top: var(--space-md); }
.std-trace__pick { display: flex; flex-direction: column; align-self: start; border-top: 1px solid var(--std-rule); }
.std-trace__pick button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.75rem; align-items: baseline; text-align: left; padding: 0.85rem 0.75rem; border: 0; border-bottom: 1px solid var(--std-rule); border-left: 2px solid transparent; background: none; color: var(--black); font: inherit; cursor: pointer; transition: background 150ms ease, border-color 150ms ease; }
.std-trace__pick button:hover { background: rgba(123, 112, 251, 0.05); }
.std-trace__pick button.is-on { border-left-color: var(--purple); background: rgba(123, 112, 251, 0.08); }
.std-trace__pick code { font-family: var(--std-mono); font-size: 0.8125rem; overflow-wrap: anywhere; }
.std-trace__pick b { font-family: var(--font-heading); font-size: 0.9375rem; }
.std-trace__pick span { grid-column: 1 / -1; font-family: var(--std-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--std-dim); }
.std-trace__chain { list-style: none; margin: 0; padding: 0; counter-reset: trace; }
.std-trace__chain > li { counter-increment: trace; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--space-md); padding: 1rem 0; border-top: 1px solid var(--std-rule); }
.std-trace__chain > li:first-child { border-top: 0; padding-top: 0.25rem; }
.std-trace__k { font-family: var(--std-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ac-ink); padding-top: 0.3rem; }
.std-trace__k::before { content: "0" counter(trace) "  "; white-space: pre; color: var(--std-dim); }
.std-trace__val { margin: 0 0 0.35rem; font-size: 1.375rem; line-height: 1.3; color: var(--black); }
.std-trace__val code { font-family: var(--std-mono); font-size: 0.85em; }
.std-trace__val b { font-family: var(--font-heading); font-weight: 900; font-stretch: 125%; }
.std-trace__sub { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--grey); }
.std-trace__sub b { color: var(--black); text-transform: capitalize; }
.std-trace__sub code { font-family: var(--std-mono); font-size: 0.8125rem; color: var(--black); }
.std-trace__code { display: flex; flex-direction: column; margin-top: 0.6rem; border-left: 2px solid var(--std-rule); font-family: var(--std-mono); font-size: 0.8125rem; white-space: pre-wrap; }
.std-trace__code span { padding: 0.35rem 0.85rem; color: var(--std-dim); }
.std-trace__code span.is-hit { margin-left: -2px; border-left: 2px solid var(--purple); background: rgba(123, 112, 251, 0.08); color: var(--black); font-weight: 600; }
.std-trace__ins { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); font-family: var(--std-mono); font-size: 0.8125rem; color: var(--black); }
.std-trace__ins span { padding: 0.4rem 0.75rem 0.4rem 0; border-bottom: 1px solid var(--std-rule); overflow-wrap: anywhere; }
.std-trace__ins span.h { padding-top: 0.15rem; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--std-dim); }
.std-trace__why { margin-top: var(--space-xl); }
@media (max-width: 900px) {
  .std-trace { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .std-trace__chain > li { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .std-trace__ins { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr); font-size: 0.75rem; }
  .std-trace__ins span { padding-right: 0.5rem; }
}

/* ---------- rendering: the planes as layers ---------- */
.std-layers-wrap { overflow: visible; background: transparent; }
.std-layers { --e: 1; position: absolute; inset: 0; perspective: 2600px; }
.std-layers--e0 { --e: 0; }
.std-layers--e10 { --e: 0.1; }
.std-layers--e20 { --e: 0.2; }
.std-layers--e30 { --e: 0.3; }
.std-layers--e40 { --e: 0.4; }
.std-layers--e50 { --e: 0.5; }
.std-layers--e60 { --e: 0.6; }
.std-layers--e70 { --e: 0.7; }
.std-layers--e80 { --e: 0.8; }
.std-layers--e90 { --e: 0.9; }
.std-layers--e100 { --e: 1; }
.std-layers__scene { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%;
  transform: translateY(calc(var(--e) * 2%)) scale(calc(1 - 0.42 * var(--e))) rotateX(calc(var(--e) * 57deg)) rotateZ(calc(var(--e) * -32deg));
  transition: transform var(--ly-t, 450ms) cubic-bezier(.2, .7, .2, 1); }
.std-layer { position: absolute; inset: 0; display: block; padding: 0; border: 0; margin: 0; background: #000; cursor: pointer; color: inherit; font: inherit;
  transform: translateZ(calc(var(--i) * 46px * var(--e)));
  --lo: 0.5; --l0: 0; opacity: max(var(--l0), calc(var(--e) * var(--lo))); box-shadow: 0 calc(var(--e) * 30px) calc(var(--e) * 60px) rgba(0, 0, 0, 0.5);
  transition: transform var(--ly-t, 450ms) cubic-bezier(.2, .7, .2, 1), opacity var(--ly-o, 300ms) ease, box-shadow var(--ly-o, 300ms) ease, background-color var(--ly-o, 300ms) ease, outline-color 200ms ease; outline: 2px solid transparent; outline-offset: 0; }
.std-layers-wrap .std-layer img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 1; pointer-events: none; }
.std-layer--hud { background: rgba(14, 11, 22, calc(var(--e) * 0.55)); }
/* composited is the stack seen from above, cut at the selected buffer: it and every buffer under it show, so HUD
   sits over Pre-HUD (the frame the player saw) and any other buffer, being opaque, shows alone. They fade to the
   others' level as the stack opens */
.std-layer.is-under { --l0: calc(1 - var(--e)); }
.std-layer:hover { --lo: 0.85; }
.std-layer.is-on { opacity: 1; outline-color: rgba(84, 255, 224, calc(var(--e) * 1)); }
.std-layer:focus-visible { outline-color: var(--cyan); }
.std-layer__n { position: absolute; left: 14px; top: 10px; font-family: var(--std-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--white); text-shadow: 0 0 6px #000, 0 0 2px #000; opacity: var(--e); }
.std-layer.is-on .std-layer__n { color: var(--cyan); }
.std-layer__px { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 3px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6); opacity: var(--e); pointer-events: none; }
.std-xhair.is-off { opacity: 0; }
.std-xhair { transition: opacity 200ms ease; }
.std-layers__ctl { position: absolute; left: 0; right: 0; bottom: -4.1rem; z-index: 3; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; font-family: var(--std-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--std-dim); }
.std-layers__ctl .std-range { margin: 0; }
#rendering .std-viewer { padding-bottom: 4.3rem; }
@media (max-width: 900px) {
  .std-layer { transform: translateZ(calc(var(--i) * 24px * var(--e))); }
  .std-layer__n { font-size: 10px; left: 8px; top: 6px; }
  #rendering .std-viewer__read { margin-top: calc(var(--space-md) + 4.3rem); }
  #rendering .std-viewer { padding-bottom: 0; }
}

/* ---------- scorecard: spec pills ---------- */
.std-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.std-pills > span { display: inline-block; font-family: var(--std-mono); font-size: 0.71875rem; font-weight: 500; line-height: 1.35; letter-spacing: 0.01em; color: var(--black); background: var(--white-pure); border: 1px solid rgba(123, 112, 251, 0.32); border-radius: 3px; padding: 0.2rem 0.5rem; white-space: nowrap; }
.std-score td.is-us { font-weight: 600; }
.std-score__foot .std-pills > span { border-color: var(--std-rule); }

/* ---------- segmentation: viewer beside its controls ---------- */
.std-segx { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-lg); margin-top: var(--space-md); align-items: start; }
.std-segx__main { margin: 0; }
.std-segx__side { display: flex; flex-direction: column; gap: 1.1rem; }
.std-segx__views { display: flex; flex-direction: column; border-top: 1px solid var(--std-rule); }
.std-segx__v { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; text-align: left; padding: 0.45rem 0.7rem; border: 0; border-bottom: 1px solid var(--std-rule); border-left: 2px solid transparent; background: none; color: var(--black); font: inherit; cursor: pointer; transition: background 150ms ease, border-color 150ms ease; }
.std-segx__v:hover { background: rgba(123, 112, 251, 0.05); }
.std-segx__v.is-on { border-left-color: var(--purple); background: rgba(123, 112, 251, 0.08); }
.std-segx__v b { font-size: 0.9375rem; font-weight: 600; }
.std-segx__v span { font-family: var(--std-mono); font-size: 0.6875rem; color: var(--std-dim); white-space: nowrap; }
.std-segx__scale .std-k { margin: 0 0 0.6rem; }
.std-segx__scale .std-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 0.6rem; }
.std-segx__scale .std-scale figcaption { margin-top: 0.3rem; font-size: 0.6875rem; }
.std-segx__scale .std-scale figcaption b { font-size: 1rem; margin-right: 0.35rem; }
.std-segx__note { margin: 0.6rem 0 0; font-size: 0.8125rem; line-height: 1.55; color: var(--grey); }
#segmentation .std-seg__uses { margin-top: var(--space-lg); }
@media (max-width: 900px) {
  .std-segx { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .std-segx__side { display: contents; }
  .std-segx__views { order: -1; }
  .std-segx__scale { margin-top: 0.4rem; }
}

/* ---------- inputs: device visualiser + the game's actions ---------- */
.std-ivz { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-xl); margin-top: var(--space-md); align-items: start; }
.std-ivz__tabs { display: flex; margin-bottom: 1rem; border-bottom: 1px solid var(--std-rule); }
.std-ivz__kbm, .std-ivz__pad { display: none; }
.std-ivz__kbm.is-on { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: var(--space-md); align-items: start; }
.std-ivz__pad.is-on { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-md); align-items: center; }
.std-kb { display: flex; flex-direction: column; gap: 4px; }
.std-kb__row { display: flex; gap: 4px; }
.std-key { flex: 1 1 0; min-width: 0; height: 34px; display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: var(--std-mono); font-size: 0.6875rem; color: var(--std-dim); background: var(--white-pure); border: 1px solid rgba(14, 11, 22, 0.12); border-radius: 3px; transition: background 120ms ease, color 120ms ease, border-color 120ms ease; }
.std-key.h1 { background: rgba(123, 112, 251, 0.16); color: var(--black); }
.std-key.h2 { background: rgba(123, 112, 251, 0.32); color: var(--black); }
.std-key.h3 { background: rgba(123, 112, 251, 0.5); color: var(--black); }
.std-key.h4 { background: rgba(123, 112, 251, 0.72); color: var(--black); }
.std-key.is-held { background: var(--std-ink); border-color: var(--std-ink); color: var(--white); font-weight: 700; }
.std-ivz__mouse { display: flex; flex-direction: column; gap: 0.6rem; }
.std-ms { display: block; width: 100%; max-width: 7.5rem; height: auto; }
.std-ms__body { fill: var(--white-pure); stroke: rgba(14, 11, 22, 0.25); stroke-width: 1.5; }
.std-mb { fill: var(--white-pure); stroke: rgba(14, 11, 22, 0.25); stroke-width: 1.5; transition: fill 120ms ease; }
.std-mb.h1 { fill: rgba(123, 112, 251, 0.16); } .std-mb.h2 { fill: rgba(123, 112, 251, 0.32); } .std-mb.h3 { fill: rgba(123, 112, 251, 0.5); } .std-mb.h4 { fill: rgba(123, 112, 251, 0.72); }
.std-mb.is-held { fill: var(--std-ink); }
.std-ms text { font-family: var(--std-mono); font-size: 11px; text-anchor: middle; fill: var(--white); pointer-events: none; }
.std-ivz__mouse p { margin: 0; display: flex; flex-direction: column; gap: 0.15rem; font-family: var(--std-mono); font-size: 0.6875rem; color: var(--std-dim); line-height: 1.45; }
.std-ivz__mouse p b { font-size: 1rem; color: var(--black); }
.std-pad { display: block; width: 100%; height: auto; }
.std-pad__body { fill: var(--white-pure); stroke: rgba(14, 11, 22, 0.25); stroke-width: 3; }
.std-pad__ring { fill: rgba(14, 11, 22, 0.04); stroke: rgba(14, 11, 22, 0.18); stroke-width: 3; }
.std-pad__c { fill: var(--white-pure); stroke: rgba(14, 11, 22, 0.3); stroke-width: 3; }
.std-pad text { font-family: var(--std-mono); font-size: 24px; font-weight: 600; text-anchor: middle; fill: var(--std-dim); }
.std-ivz__padnote { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--grey); }
.std-ivz__key { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.9rem; font-family: var(--std-mono); font-size: 0.6875rem; color: var(--std-dim); }
.std-ivz__key i { display: inline-block; width: 12px; height: 12px; margin-right: 0.45rem; vertical-align: -2px; border-radius: 2px; }
.std-ivz__key i.is-held { background: var(--std-ink); }
.std-ivz__key i.h4 { background: linear-gradient(90deg, rgba(123, 112, 251, 0.16), rgba(123, 112, 251, 0.72)); width: 26px; }
.std-ivz__act .std-k { margin: 0 0 0.75rem; }
.std-ivz__tbl { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, 0.6fr) minmax(0, 0.7fr); font-family: var(--std-mono); font-size: 0.75rem; color: var(--std-dim); border-top: 1px solid var(--std-rule); }
.std-ivz__tbl span { padding: 0.55rem 0.5rem 0.55rem 0; border-bottom: 1px solid var(--std-rule); overflow-wrap: anywhere; transition: color 120ms ease; }
.std-ivz__tbl span.h { font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.std-ivz__tbl span.is-on { color: var(--black); }
.std-ivz__tbl span.is-st.is-on { color: var(--ac-ink); font-weight: 700; }
.std-ivz__note { margin: 0.8rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--grey); }
.std-ivz__scrub { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 7.5rem; align-items: center; gap: 1rem; margin-top: var(--space-md); padding-top: 0.75rem; border-top: 1px solid var(--std-rule); font-family: var(--std-mono); font-size: 0.75rem; color: var(--black); }
.std-ivz__scrub span:last-child { text-align: right; color: var(--std-dim); }
.std-ivz__scrub .std-range { margin: 0; accent-color: var(--purple); }
.std-ivz__why { margin-top: var(--space-xl); }
@media (max-width: 900px) {
  .std-ivz { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .std-ivz__kbm.is-on { grid-template-columns: minmax(0, 1fr) 4.5rem; gap: 0.6rem; }
  .std-ivz__pad.is-on { grid-template-columns: minmax(0, 1fr); }
  .std-kb, .std-kb__row { gap: 2px; }
  .std-key { height: 22px; font-size: 0.5rem; border-radius: 2px; }
  .std-ivz__mouse p b { font-size: 0.875rem; }
  .std-ivz__scrub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .std-ivz__scrub .std-range { grid-column: 1 / -1; grid-row: 2; }
}


/* scorecard: rows keyed to the page chapters */
.std-score__n { display: block; margin-bottom: 0.15rem; font-family: var(--std-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; color: var(--purple); text-decoration: none; }
.std-score__n:hover { text-decoration: underline; }

/* ---------- labels: timeline bars, click to open a tick ---------- */
.std-lbz-fig { --lbz-id: 16rem; --lbz-v: 7.5rem; }
.std-lbz__rows { position: relative; margin-top: var(--space-md); border-top: 1px solid var(--std-rule); }
.std-lbz__row { display: grid; grid-template-columns: var(--lbz-id) minmax(0, 1fr) var(--lbz-v); align-items: center; height: 40px; border-bottom: 1px solid var(--std-rule); transition: background 150ms ease; }
.std-lbz__row:hover { background: rgba(14, 11, 22, 0.03); }
.std-lbz__row.is-on { background: rgba(123, 112, 251, 0.11); }
.std-lbz__row.is-on .std-lbz__id code, .std-lbz__id:hover code { color: var(--ac-ink); }
.std-lbz__row.is-on .std-lbz__id code { font-weight: 600; }
.std-lbz__row.is-on .std-lbz__v { color: var(--ac-ink); }
.std-lbz__id { display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 100%; min-width: 0; padding: 0 0.75rem 0 0.6rem; border: 0; border-left: 2px solid transparent; background: none; text-align: left; font: inherit; cursor: pointer; }
.std-lbz__row.is-on .std-lbz__id { border-left-color: var(--purple); }
.std-lbz__id code { font-family: var(--std-mono); font-size: 0.75rem; color: var(--black); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.std-lbz__id small { font-family: var(--std-mono); font-size: 0.625rem; color: var(--std-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.std-lbz__id small i { display: inline-block; width: 7px; height: 7px; margin: 0 3px 0 7px; vertical-align: 0; }
.std-lbz__id small i:first-child { margin-left: 0; }
.std-lbz__bar svg { display: block; width: 100%; height: 18px; }
.std-lbz__v { padding: 0 0.25rem 0 0.9rem; font-family: var(--std-mono); font-size: 0.75rem; font-weight: 600; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.std-lbz__cells { position: absolute; top: 0; bottom: 0; left: var(--lbz-id); right: var(--lbz-v); display: grid; }
.std-lbz__cell { display: block; padding: 0; margin: 0; border: 0; background: transparent; cursor: crosshair; }
.std-lbz__cell:hover { background: rgba(123, 112, 251, 0.1); }
.std-lbz__ph { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 2px solid var(--std-ink); pointer-events: none; transition: left 220ms ease; }
.std-lbz__ph::before { content: ""; position: absolute; top: -4px; left: -6px; border: 5px solid transparent; border-top: 6px solid var(--std-ink); }
.std-lbz__ph--c0 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.0017); }
.std-lbz__ph--c1 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.0517); }
.std-lbz__ph--c2 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.1017); }
.std-lbz__ph--c3 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.1517); }
.std-lbz__ph--c4 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.2017); }
.std-lbz__ph--c5 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.2517); }
.std-lbz__ph--c6 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.3017); }
.std-lbz__ph--c7 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.3517); }
.std-lbz__ph--c8 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.4017); }
.std-lbz__ph--c9 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.4517); }
.std-lbz__ph--c10 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.5017); }
.std-lbz__ph--c11 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.5517); }
.std-lbz__ph--c12 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.6017); }
.std-lbz__ph--c13 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.6517); }
.std-lbz__ph--c14 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.7017); }
.std-lbz__ph--c15 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.7517); }
.std-lbz__ph--c16 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.8017); }
.std-lbz__ph--c17 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.8517); }
.std-lbz__ph--c18 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.9017); }
.std-lbz__ph--c19 { left: calc(var(--lbz-id) + (100% - var(--lbz-id) - var(--lbz-v)) * 0.9517); }
.std-lbz__axis { display: grid; grid-template-columns: var(--lbz-id) minmax(0, 1fr) var(--lbz-v); margin-top: 0.4rem; }
.std-lbz__axis-t { position: relative; display: flex; justify-content: space-between; padding-top: 9px; font-family: var(--std-mono); font-size: 0.6875rem; color: var(--std-dim);
  background: repeating-linear-gradient(to right, var(--std-dim) 0 1px, transparent 1px 10%) top left / 100% 5px no-repeat; }   /* one mark per second */
.std-lbz__axis-t::after { content: ""; position: absolute; top: 0; right: 0; width: 1px; height: 5px; background: var(--std-dim); }
.std-lbz__zoom { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-lg); margin-top: var(--space-lg); align-items: start; }
.std-lbz__frame { margin: 0; }
.std-lbz__img { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.std-lbz__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 180ms ease; }
.std-lbz__img img.is-on { opacity: 1; }
.std-lbz__frame figcaption { margin-top: 0.5rem; font-family: var(--std-mono); font-size: 0.6875rem; color: var(--std-dim); }
.std-lbz__card { display: flex; flex-direction: column; gap: 0.6rem; }
.std-lbz__card h4 { margin: 0; font-family: var(--font-heading); font-size: 1.5rem; color: var(--black); }
.std-lbz__card h4 b { font-family: var(--std-mono); font-size: 1rem; font-weight: 700; color: var(--ac-ink); margin-left: 0.35rem; }
.std-lbz__card > p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--grey); }
.std-lbz__vals { font-family: var(--std-mono); font-size: 0.75rem !important; color: var(--black) !important; }
.std-lbz__vals span { margin-right: 0.75rem; color: var(--std-dim); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.625rem; }
.std-lbz__prov { margin-top: 0.4rem; padding-top: 0.8rem; border-top: 1px solid var(--std-rule-strong); display: flex; flex-direction: column; gap: 0.5rem; }
.std-lbz__prov .std-k { margin: 0; }
.std-lbz__prov .std-trace__code { margin-top: 0.2rem; }
.std-lbz__src { font-size: 0.8125rem !important; }
.std-onto-more { margin-top: var(--space-lg); }
.std-onto-more .std-onto-wrap { margin-top: var(--space-md); }
@media (max-width: 900px) {
  .std-lbz-fig { --lbz-id: 8.5rem; --lbz-v: 4.6rem; }
  .std-lbz__row { height: 32px; }
  .std-lbz__id code { font-size: 0.5625rem; }
  .std-lbz__id small { display: none; }
  .std-lbz__v { font-size: 0.625rem; padding-left: 0.4rem; }
  .std-lbz__axis-t span:nth-child(2) { display: none; }
  .std-lbz__zoom { grid-template-columns: minmax(0, 1fr); }
}
/* phone: each row is the name and value over a full-width bar, so nothing truncates and the bar gets the whole width */
@media (max-width: 700px) {
  .std-lbz-fig { --lbz-id: 0px; --lbz-v: 0px; }
  .std-lbz__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id v" "bar bar"; height: auto; padding: 0.35rem 0 0.4rem; row-gap: 0.2rem; }
  .std-lbz__id { grid-area: id; padding: 0 0 0 0.5rem; }
  .std-lbz__id code { font-size: 0.6875rem; }
  .std-lbz__id small { display: block; font-size: 0.5625rem; }
  .std-lbz__bar { grid-area: bar; }
  .std-lbz__bar svg { height: 14px; }
  .std-lbz__v { grid-area: v; align-self: start; font-size: 0.6875rem; padding: 0 0.25rem 0 0.5rem; }
  .std-lbz__axis-t span:nth-child(2) { display: inline; }
}

/* ---------- camera and 3D: synced across sessions ---------- */
.std-sync-fig { margin-top: var(--space-xl); }
.std-sync { display: block; width: 100%; height: auto; margin-top: var(--space-md); overflow: visible; }
.std-sync__axis { stroke: var(--std-ink); stroke-width: 1.5; }
.std-sync__now { stroke: var(--std-ink); stroke-width: 1.5; stroke-dasharray: 5 4; }
.std-sync__nowt, .std-sync__fr { font-family: var(--std-mono); font-size: 13px; font-weight: 600; fill: var(--black); }
.std-sync__who { font-family: var(--font-heading); font-size: 15px; font-weight: 700; fill: var(--black); }
.std-sync__k { font-family: var(--std-mono); font-size: 11px; fill: var(--std-dim); }
.std-sync__probe { stroke: rgba(14, 11, 22, 0.35); stroke-width: 1; }
.std-sync__pd { fill: var(--white-pure); stroke: rgba(14, 11, 22, 0.55); stroke-width: 1.2; }
.std-sync-fig code { font-family: var(--std-mono); font-size: 0.85em; color: var(--black); }
.std-sync__why { margin-top: var(--space-lg); }
.std-sync-wrap { overflow-x: auto; }
@media (max-width: 900px) { .std-sync { min-width: 720px; } }

/* ---------- camera and 3D: cloud as supporting proof beside the stats ---------- */
.std-recon { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-lg); align-items: start; margin-top: var(--space-md); }
.std-recon .std-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-lg); margin-top: 0; }
.std-recon .std-stats b { font-size: 1.25rem; }
.std-recon .std-tag { font-size: 0.5625rem; }
.std-recon .std-tag small { font-size: 0.5rem; }
@media (max-width: 900px) { .std-recon { grid-template-columns: minmax(0, 1fr); } }
.std-pe__plan { margin: 0.6rem 0 0; }

.std-lbz__foot { max-width: 72ch; }
.std-lbz__foot b { color: var(--black); font-weight: 600; }

/* ---------- problem diptych: rings, leader lines, docked labels ---------- */
.std-dip__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.std-dip__lines line { stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.std-dip__pane--guess .std-dip__lines line { stroke: rgba(245, 244, 244, 0.7); stroke-dasharray: 3 3; }
.std-dip__pane--know .std-dip__lines line { stroke: var(--cyan); }
.std-ring { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; display: grid; place-items: center; }
.std-ring b { font-family: var(--std-mono); font-size: 10px; font-weight: 700; line-height: 1; }
.std-dip__pane--guess .std-ring { border: 1.5px dashed rgba(245, 244, 244, 0.85); background: rgba(14, 11, 22, 0.55); }
.std-dip__pane--guess .std-ring b { color: var(--white); }
.std-dip__pane--know .std-ring { border: 1.5px solid var(--cyan); background: var(--cyan); box-shadow: 0 0 0 4px rgba(84, 255, 224, 0.22); }
.std-dip__pane--know .std-ring b { color: var(--std-ink); }
.std-call { position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 0.4rem 0.55rem; border-left: 2px solid; }
.std-call__k { font-family: var(--std-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; }
.std-call__v { font-family: var(--std-mono); font-size: 0.75rem; line-height: 1.35; }
.std-dip__pane--guess .std-call { background: rgba(14, 11, 22, 0.66); border-color: rgba(245, 244, 244, 0.6); }
.std-dip__pane--guess .std-call__k { color: rgba(245, 244, 244, 0.6); }
.std-dip__pane--guess .std-call__v { color: var(--white); }
.std-dip__pane--know .std-call { background: rgba(14, 11, 22, 0.82); border-color: var(--cyan); }
.std-dip__pane--know .std-call__k { color: var(--cyan); }
.std-dip__pane--know .std-call__v { color: var(--white); font-weight: 600; }
.std-dip__pane--know .std-dip__img img { filter: brightness(0.6) saturate(0.7); }
.std-dip__img img.std-dip__depth { position: absolute; inset: 0; height: 100%; opacity: 0.55; mix-blend-mode: screen; filter: none; }
.std-dip__legend { position: absolute; right: 3%; bottom: 3%; display: grid; grid-template-columns: auto 64px; grid-template-rows: auto auto; gap: 1px 0.5rem; align-items: center; padding: 0.3rem 0.5rem; background: rgba(14, 11, 22, 0.8); font-family: var(--std-mono); font-size: 0.5625rem; color: rgba(245, 244, 244, 0.75); }
.std-dip__legend > span:first-child { grid-row: 1 / 3; color: var(--cyan); letter-spacing: 0.06em; text-transform: uppercase; }
.std-dip__legend i { display: block; height: 6px; background: linear-gradient(90deg, #0E0B16, #281A5C, #7B70FB, #54FFE0, #F5F4F4); }
.std-dip__legend > span:nth-of-type(2), .std-dip__legend > span:nth-of-type(3) { display: none; }
@media (max-width: 900px) {
  .std-call, .std-dip__lines { display: none; }
  .std-dip__legend { font-size: 0.5rem; }
}

/* ---------- rendering: selected tile slides out, joined to its tab ---------- */
#rendering .std-viewer { position: relative; }
/* selected: slides forward in its own plane, no lift, so its left edge never leaves the connector's line */
.std-layer.is-on { transform: translateZ(calc(var(--i) * 46px * var(--e))) translateY(calc(var(--e) * 62%)); }
/* where the connector meets the tile: low enough on the edge that the slid tile still covers it */
.std-layer__pin { position: absolute; left: 0; top: 80%; width: 0; height: 0; }
.std-lylink { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.std-lylink.is-on { display: block; }
.std-lylink g { display: none; }
.std-lylink g.is-on { display: inline; }
.std-lylink path { fill: none; stroke: var(--cyan); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.std-lylink circle { fill: var(--cyan); }
@media (max-width: 900px) {
  .std-layer.is-on { transform: translateZ(calc(var(--i) * 24px * var(--e))) translateY(calc(var(--e) * 40%)); }
  .std-layers__scene { transform: translateY(calc(var(--e) * 6%)) scale(calc(1 - 0.36 * var(--e))) rotateX(calc(var(--e) * 57deg)) rotateZ(calc(var(--e) * -32deg)); }
  .std-lylink.is-on { display: none; }
}


/* ---------- sliders: flat track, rectangular thumb (no rounded parts) ---------- */
.std-range { -webkit-appearance: none; appearance: none; background: transparent; height: 26px; cursor: pointer; --rng: var(--cyan); --rng-track: rgba(245, 244, 244, 0.2); }
#inputs .std-range { --rng: var(--purple); --rng-track: rgba(14, 11, 22, 0.16); }
.std-range:focus { outline: none; }
.std-range:focus-visible { outline: 2px solid var(--rng); outline-offset: 4px; }
.std-range::-webkit-slider-runnable-track { height: 4px; background: var(--rng-track); border: 0; border-radius: 0; }
.std-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 10px; height: 24px; margin-top: -10px; background: var(--rng); border: 0; border-radius: 0; }
.std-range::-moz-range-track { height: 4px; background: var(--rng-track); border: 0; border-radius: 0; }
.std-range::-moz-range-progress { height: 4px; background: var(--rng); border-radius: 0; }
.std-range::-moz-range-thumb { width: 10px; height: 24px; background: var(--rng); border: 0; border-radius: 0; }
.std-scale figure.is-sq img { object-fit: contain; background: var(--std-ink); }

/* ---------- buffers without imagery yet: named plates ---------- */
.std-plane--ph, .std-layer--ph { background: linear-gradient(135deg, #1b1430, #0E0B16); border: 1px dashed rgba(255, 222, 81, 0.55); }
.std-plane__ph, .std-layer__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 900; font-stretch: 125%; font-size: 1.4rem; letter-spacing: 0.02em; color: rgba(245, 244, 244, 0.55); text-transform: uppercase; }
.std-plane__ph { font-size: 1rem; }


.std-stack__stamp { bottom: 3.6rem; }
@media (max-width: 900px) { .std-stack__stamp { bottom: 4.4rem; } }

/* ---------- rendering: buffer list on the left, each item level with its tile ---------- */
#rendering .std-viewer { grid-template-columns: 9.5rem minmax(0, 1fr) 280px; }
.std-bnav { grid-column: 1; grid-row: 1; }
.std-bnav__i { position: absolute; left: 0; width: 9rem; transform: translateY(-50%); display: flex; align-items: baseline; gap: 0.6rem; padding: 0.2rem 0.4rem 0.2rem 0.6rem; border: 0; border-left: 2px solid transparent; background: none; color: rgba(245, 244, 244, 0.62); font-family: var(--std-mono); font-size: 0.75rem; text-align: left; cursor: pointer; z-index: 3; transition: color 150ms ease, border-color 150ms ease; }
.std-bnav__i b { color: var(--std-dim); font-weight: 600; }
.std-bnav__i:hover { color: var(--white); }
.std-bnav__i.is-on { color: var(--white); border-left-color: var(--cyan); }
.std-bnav__i.is-on b { color: var(--cyan); }
#rendering .std-viewer__vp { grid-column: 2; grid-row: 1; }
#rendering .std-viewer__read { grid-column: 3; grid-row: 1; }
.std-lylink__base path { stroke: rgba(245, 244, 244, 0.16); }
@media (max-width: 900px) {
  #rendering .std-viewer { grid-template-columns: minmax(0, 1fr); }
  .std-bnav { grid-row: auto; display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; margin-bottom: 1rem; }
  .std-bnav__i { position: static; width: auto; transform: none; padding-left: 0.4rem; }
  #rendering .std-viewer__vp, #rendering .std-viewer__read { grid-column: 1; grid-row: auto; }
}
#rendering .std-viewer { padding-top: 2.5rem; }
@media (max-width: 900px) { #rendering .std-viewer { padding-top: 0; } }

.std-hero .std-ph-inline { color: #1a1400; background: var(--yellow); padding: 0.1rem 0.4rem; font-weight: 600; }

.std-stack__scene { top: 60%; }
@media (max-width: 900px) { .std-stack__scene { top: 60%; } }
@media (max-width: 600px) { .std-stack { height: 440px; } .std-stack__scene { top: 62%; } }

/* ---------- display headings: no kerning ----------
   Archivo's kerning pairs are cut for mixed case at normal width. Set in caps at 125% width
   with negative tracking, the W/Y/T pairs with full stops, commas and spaces overreach: "KNEW."
   tucked the stop under the W, and "EVERY BUFFER" lost its word gap. Unkerned caps space evenly. */
h1, h2, h3 { font-kerning: none; }

/* ---------- film: plays over the page from the hero, loads nothing until opened ---------- */
.std-film { position: fixed; inset: 0; z-index: 1100; display: none; place-items: center; padding: 4vh 4vw; background: rgba(14, 11, 22, 0.94); }
.std-film.is-on { display: grid; }
.std-film__box { position: relative; width: min(100%, calc((92vh - 3rem) * 16 / 9)); }
.std-film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.std-film__x { position: absolute; right: 0; bottom: 100%; margin-bottom: 0.5rem; padding: 0.3rem 0; border: 0; background: none; color: var(--white); font-family: var(--std-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.std-film__x:hover { color: var(--cyan); }


/* site only: the Rendering tiles play live (js/standard.js fills the data-keep hooks; the canvas keeps its stills) */
.std-layer__media { position: absolute; inset: 0; pointer-events: none; }
.std-layer__media:empty { display: none; }
.std-layer__media video, .std-layer__media canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 200ms ease; }
.std-layer__media .is-live { opacity: 1; }
.std-layer__tag { position: absolute; left: 12px; bottom: 10px; z-index: 1; font-size: 10px; padding: 0.2rem 0.45rem; }   /* bottom-left: the corner the stack never covers */
.std-rplay { display: flex; gap: 0.5rem; margin-left: auto; }
.std-rplay:empty { display: none; }
.std-rbtn { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--cyan); background: none; border: 1px solid rgba(84, 255, 224, 0.45); border-radius: 0; padding: 0.15rem 0.6rem; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.std-rbtn:hover { border-color: var(--cyan); }
.std-rbtn.is-on { background: rgba(84, 255, 224, 0.14); }
.std-rbtn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 900px) {
  .std-layer__tag { left: 6px; bottom: 5px; font-size: 8px; padding: 0.12rem 0.3rem; }
  .std-rplay { margin-left: 0; }
  .std-rstamp__g { display: none; }
}

/* site only: the open film holds the page still underneath it (class set by js/standard.js) */
.std-film-open, .std-film-open body { overflow: hidden; }

/* ---------- one clock: 05 Inputs, 06 World state and 07 Labels share state.t ---------- */
.std-wm__e { cursor: pointer; }
.std-wm__e.is-gone { display: none; }
.std-wm__hit { fill: transparent; }
.std-wm__sel { fill: none; stroke: var(--std-ink); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: 0; }
.std-wm__e.is-sel .std-wm__sel { opacity: 1; }
.std-wm__e.is-dead .std-wm__m { fill: #FFFFFF; stroke: var(--std-amber); stroke-width: 2; }
.std-lbz__phs { position: absolute; top: 0; bottom: 0; left: var(--lbz-id); right: var(--lbz-v); display: grid; grid-template-columns: repeat(300, minmax(0, 1fr)); pointer-events: none; }
.std-lbz__phs i { position: relative; display: block; }
.std-lbz__phs i.is-on::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: 50%; margin-left: -1px; border-left: 2px solid var(--std-ink); }
.std-lbz__phs i.is-on::before { content: ""; position: absolute; top: -10px; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top: 6px solid var(--std-ink); }
.std-lbz__img .std-lbz__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.std-lbz__img .std-lbz__clip.is-live { opacity: 1; }
/* the transport: site only (std_ext_timeline.js), fixed to the foot of the viewport while 05 to 07 are in view */
.std-tl { position: fixed; left: 50%; bottom: 16px; z-index: 40; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 0.9rem; width: min(820px, calc(100% - 32px)); padding: 6px 16px 6px 6px; background: #FFFFFF; border: 1px solid var(--std-rule-strong); font-family: var(--std-mono); font-size: 0.75rem; color: var(--std-ink); transform: translate(-50%, calc(100% + 24px)); visibility: hidden; transition: transform 220ms ease, visibility 0s linear 220ms; }
.std-tl.is-in { transform: translate(-50%, 0); visibility: visible; transition: transform 220ms ease; }
.std-tl__play { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 0; background: var(--purple); color: #FFFFFF; cursor: pointer; }
.std-tl__play svg { width: 13px; height: 13px; fill: currentColor; }
.std-tl__play:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.std-tl__i-pause, .std-tl.is-playing .std-tl__i-play { display: none; }
.std-tl.is-playing .std-tl__i-pause { display: block; }
.std-tl__tick { min-width: 6.5rem; font-weight: 600; white-space: nowrap; }
.std-tl__utc { color: var(--std-dim); white-space: nowrap; }
.std-tl .std-range { margin: 0; --rng: var(--purple); --rng-track: rgba(14, 11, 22, 0.16); }
@media (max-width: 640px) {
  .std-tl { grid-template-columns: auto auto minmax(0, 1fr); gap: 0.6rem; bottom: 12px; padding-right: 12px; }
  .std-tl__tick { min-width: 0; }
  .std-tl__utc { display: none; }
}
@media (prefers-reduced-motion: reduce) { .std-tl, .std-tl.is-in { transition: none; } }

/* phone: only the selected hotspot is named, so the four labels never collide over the frame */
@media (max-width: 700px) {
  .std-pe__hot:not(.is-on) span { display: none; }
  .std-pe__f b { font-size: 0.6875rem; }   /* the longest weapon id fits one line of a phone column */
}

/* Bounds colour key: shown with the Bounds buffer (Rendering) and the Bounds view (Segmentation) */
.std-bkey { display: none; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0.9rem 0 0; font-family: var(--std-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.std-bkey.is-on { display: flex; }
.std-bkey span { display: inline-flex; align-items: center; gap: 0.5rem; }
.std-bkey i { display: block; width: 18px; height: 12px; border: 2px solid #54FFE0; }
.std-bkey__p i { border-color: #968CFF; }

/* Pixel to entity, live (std_ext_p2e.js): an overlay canvas on the frame, a tooltip, entity chips, kind tags */
.std-pe__live { position: absolute; inset: 0; display: block; }
.std-pe__live canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: manipulation; }
.std-pe__live:not(:empty) ~ .std-pe__hot { display: none; }
.std-pe__tip { position: absolute; z-index: 3; pointer-events: none; padding: 0.3rem 0.55rem; background: rgba(14, 11, 22, 0.94); border: 1px solid rgba(245, 244, 244, 0.22); font-family: var(--std-mono); font-size: 0.6875rem; color: var(--purple-tint); white-space: nowrap; }
.std-pe__tip[hidden] { display: none; }
.std-pe__tip b { font-weight: 600; color: var(--white); }
.std-pe__tip b.std-pe__tip--entity { color: var(--cyan); }
.std-pe__tip b.std-pe__tip--prop { color: #968CFF; }
.std-pe__ents { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.9rem; }
.std-pe__ents:empty { display: none; }
.std-pe__sum { flex: 0 0 100%; margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--purple-tint); }
.std-pe__sum b { color: var(--cyan); font-weight: 600; }
.std-pe__ents .std-pe__key { flex: 0 0 100%; margin: 0.15rem 0 0.5rem; color: var(--purple-tint); }
.std-bkey__m i { border-color: rgba(245, 244, 244, 0.45); }
/* Pixel to entity key: each label in its outline colour */
.std-pe__key .std-bkey__e { color: #54FFE0; }
.std-pe__key .std-bkey__p { color: #968CFF; }
.std-pe__key .std-bkey__m { color: rgba(245, 244, 244, 0.45); }
.std-pe__tag { align-self: flex-start; padding: 0.15rem 0.45rem; border: 1px solid currentColor; font-family: var(--std-mono); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.std-pe__tag--entity { color: var(--cyan); }
.std-pe__tag--prop { color: #968CFF; }
.std-pe__tag--mesh { color: var(--std-dim); }
.std-pe__chain[data-keep] .std-pe__state { grid-template-rows: none; grid-auto-rows: auto; }
.std-pe__chain[data-keep] .std-pe__step { padding-bottom: 0.85rem; }
.std-pe__chain[data-keep] .std-pe__f { padding: 0.35rem 0; }
.std-pe__chain[data-keep] .std-join__crop { width: 56px; }
.std-pe__mode { margin: 0 0 0.9rem; font-family: var(--std-mono); font-size: 0.6875rem; color: var(--std-dim); }
.std-pe__mode b { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-tint); }
.std-pe__mode.is-sel b { color: var(--white); }
.std-pe__labs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.std-pe__labs span { display: inline-flex; gap: 0.4rem; padding: 0.25rem 0.5rem; border: 1px solid rgba(84, 255, 224, 0.3); font-family: var(--std-mono); font-size: 0.6875rem; color: var(--white); }
.std-pe__labs i { font-style: normal; color: var(--std-dim); }
.std-pe__live canvas:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Pixel to entity: the control row (std_ext_p2e.js), bottom left of the frame */
.std-pe__frame > img, .std-pe__live canvas, .std-pe__vid { transform-origin: 0 0; }
.std-pe__zoom { position: absolute; left: 0.6rem; bottom: 0.6rem; z-index: 4; display: flex; align-items: center; gap: 2px; }
.std-pe__zoom button { width: 30px; height: 30px; padding: 0; border: 1px solid rgba(245, 244, 244, 0.28); background: rgba(14, 11, 22, 0.88); font-family: var(--std-mono); font-size: 1rem; line-height: 1; color: var(--white); cursor: pointer; }
.std-pe__zoom button:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.std-pe__zoom button:disabled { opacity: 0.4; cursor: default; }
.std-pe__zoom button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }

/* Pixel to entity as a clip: the video sits over the still and under the overlay; play sits first in the control row */
.std-pe__vid { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.std-pe__zoom .std-pe__play { width: 38px; display: inline-flex; align-items: center; justify-content: center; border-color: rgba(84, 255, 224, 0.6); }
.std-pe__zoom .std-pe__play:disabled { opacity: 0.45; cursor: progress; }
.std-pe__py { display: block; width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--cyan); }
.std-pe__pz { display: block; width: 11px; height: 13px; border-left: 4px solid var(--cyan); border-right: 4px solid var(--cyan); }
.std-pe__crop { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Pixel to entity panel, simplified: one line per value, a fixed shape per record */
.std-pe__chain[data-keep] { min-width: 0; }
.std-pe__chain[data-keep] .std-pe__step { min-width: 0; }
.std-pe__chain[data-keep] .std-pe__state { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.std-pe__chain[data-keep] .std-pe__f { min-width: 0; }
.std-pe__chain[data-keep] .std-pe__f.is-wide { grid-column: 1 / -1; }
.std-pe__chain[data-keep] .std-pe__f b, .std-pe__chain[data-keep] .std-pe__id, .std-pe__mode, .std-pe__who .std-join__big { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; }
.std-pe__who { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.std-pe__who .std-pe__tag { flex: 0 0 auto; }
.std-pe__who .std-join__big { min-width: 0; }

/* Pixel to entity panel, condensed: the join in one row, one large line (what it is), fields one line each */
.std-pe__chain[data-keep] .std-pe__step { gap: 0.3rem; padding-bottom: 0.75rem; }
.std-pe__chain[data-keep] .std-pe__mode { margin-bottom: 0.7rem; }
.std-pe__jrow { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.std-pe__chain[data-keep] .std-pe__jrow .std-join__crop { width: 44px; flex: 0 0 auto; }
.std-pe__jcell { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.std-pe__jcell span { font-family: var(--std-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--std-dim); }
.std-pe__jcell b { font-family: var(--std-mono); font-size: 0.9375rem; font-weight: 600; color: var(--white); white-space: nowrap; }
.std-pe__jcell small { font-family: var(--std-mono); font-size: 0.6875rem; color: var(--std-dim); white-space: nowrap; }
.std-pe__arrow { font-family: var(--std-mono); color: var(--cyan); }
.std-pe__chain[data-keep] .std-pe__who .std-join__big { font-size: 1.15rem; }
.std-pe__kvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.std-pe__kv { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; min-width: 0; padding: 0.28rem 0; border-top: 1px solid rgba(245, 244, 244, 0.1); font-family: var(--std-mono); font-size: 0.6875rem; }
.std-pe__kv.is-wide { grid-column: 1 / -1; }
.std-pe__kv span { flex: 0 0 auto; color: var(--std-dim); }
.std-pe__kv b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; color: var(--white); text-align: right; }

/* Labels as pills, one per row and all one shape: the label id on the left, its enum value in a fixed-width cell on the
   right, so the values line up in a column whatever the label's length. */
.std-pe__pills { display: flex; flex-direction: column; gap: 4px; }
.std-pe__pill { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; align-items: stretch; border: 1px solid rgba(84, 255, 224, 0.28); font-family: var(--std-mono); font-size: 0.6875rem; line-height: 1; }
.std-pe__pill i { padding: 0.42rem 0.6rem; font-style: normal; color: var(--std-dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.std-pe__pill b { padding: 0.42rem 0.6rem; background: rgba(84, 255, 224, 0.12); border-left: 1px solid rgba(84, 255, 224, 0.28); font-weight: 600; color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Evidence cards share their rows: figure, unit, finding and citation each start at the same height across the row,
   so a longer citation runs down, never up. (Below 1101px the cards stack two or one to a row and size on their own.) */
@media (min-width: 1101px) {
  .std-evidence { row-gap: 0.55rem; }
  .std-ev { display: grid; grid-template-rows: subgrid; grid-row: span 4; gap: 0; row-gap: 0.55rem; }
  .std-ev cite { margin-top: 0; align-self: start; }
}

/* World state entity list: five rows show, the rest scroll, behind a square bar in the page's own colours */
.std-ents { max-height: 160px; overflow-y: scroll; overscroll-behavior: contain; padding-bottom: 0; padding-right: 0.5rem; }
@supports not selector(::-webkit-scrollbar) { .std-ents { scrollbar-width: thin; scrollbar-color: var(--purple) var(--std-rule); } }   /* Firefox; elsewhere the bar below, with no arrow buttons */
.std-ents::-webkit-scrollbar { width: 6px; }
.std-ents::-webkit-scrollbar-button { display: none; }
.std-ents::-webkit-scrollbar-track { background: var(--std-rule); }
.std-ents::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 0; }
.std-ents .std-ent { flex: 0 0 32px; }

.std-pe__step.is-none { display: none; }   /* the labels step, for an entity this sample has no labels for */

/* World state: the map a little smaller, so it ends level with the entity panel now the list beside it is five rows */
@media (min-width: 901px) { .std-world { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

/* ---------- problem: four gaps in video and inputs, what each costs a model, the chapter that closes it ---------- */
.std-why__k { margin: 0; padding-top: 0.75rem; border-top: 2px solid var(--std-rule-strong); }
.std-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0.6rem; margin-top: var(--space-md); }
.std-why article { display: grid; grid-template-rows: subgrid; grid-row: span 5; padding: 0 1.5rem; border-left: 1px solid var(--std-rule); }
.std-why article:first-child { padding-left: 0; border-left: 0; }
.std-why__s { font-family: var(--std-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--std-dim); }
.std-why h3 { margin: 0; font-family: var(--font-heading); font-weight: 800; font-stretch: 110%; font-size: 1.3rem; line-height: 1.15; color: var(--black); font-kerning: none; }
.std-why p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--grey); }
.std-why cite { align-self: start; font-style: normal; font-size: 0.75rem; line-height: 1.5; color: var(--std-dim); }
.std-why cite b { color: var(--purple); font-weight: 700; } .std-why cite a { color: var(--ac-ink); }
.std-why__fix { align-self: start; padding-top: 0.5rem; border-top: 1px solid var(--std-rule); font-family: var(--std-mono); font-size: 0.75rem; color: var(--std-dim); }
.std-why__fix a { color: var(--ac-ink); }
@media (max-width: 1100px) {
  .std-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .std-why article:nth-child(odd) { padding-left: 0; border-left: 0; }
  .std-why article:nth-child(n + 3) { margin-top: var(--space-lg); }
}
@media (max-width: 700px) {
  .std-why { grid-template-columns: minmax(0, 1fr); }
  .std-why article { padding: 0; border-left: 0; }
  .std-why article + article { margin-top: var(--space-lg); }
}

/* pixel to entity panel: state is one field per line (no half-width pairs), and the label pills are slimmer */
.std-pe__kvs { grid-template-columns: minmax(0, 1fr); }
.std-pe__pills { gap: 3px; }
.std-pe__pill { grid-template-columns: minmax(0, 1fr) 5.5rem; font-size: 0.625rem; }
.std-pe__pill i, .std-pe__pill b { padding: 0.28rem 0.5rem; }

/* pixel to entity: the three notes stack under the frame, in the space the taller panel leaves beside it */
.std-pe__uses--stack { display: block; margin-top: 1.1rem; }
.std-pe__uses--stack > div { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 0 1.25rem; align-items: baseline; padding: 0.65rem 0; border-top: 1px solid rgba(245, 244, 244, 0.14); }
.std-pe__uses--stack h4 { margin: 0; font-size: 0.9375rem; }
.std-pe__uses--stack p { font-size: 0.875rem; line-height: 1.55; }
@media (max-width: 700px) { .std-pe__uses--stack > div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; } }
@media (max-width: 900px) {   /* one column: frame, then the panel, then the notes */
  .std-pe__fig { display: contents; }
  .std-pe__chain { order: 1; }
  .std-pe__uses--stack { order: 2; margin-top: var(--space-md); }
}

/* camera and 3D: the figure's note sits under the stats, so the right column runs the height of the point cloud */
.std-recon__side .std-inst__foot { margin-top: var(--space-md); padding-top: 0.9rem; border-top: 1px solid var(--std-rule); }

/* pixel to entity panel: the rows shown are a few of many */
.std-pe__more { display: block; padding-top: 0.3rem; font-family: var(--std-mono); font-size: 0.625rem; color: var(--std-dim); }
.std-pe__kvs + .std-pe__more { border-top: 1px solid rgba(245, 244, 244, 0.1); }

/* chapter heads 01 to 09: the title keeps its measure, the intro under it runs the full width of the page */
.std-head--split { max-width: none; }
.std-head--split h2 { max-width: 42rem; }
.std-head--split .std-lede { max-width: none; }

.std-close--wide { max-width: none; }   /* the Problem section's closing line: two lines, one sentence each */

/* Final live pass, 11 Nov 2026 */
/* Labels: the closing paragraph sits under the frame; the card spans both rows, so its height never pushes the paragraph down */
.std-lbz__zoom { grid-template-rows: auto 1fr; row-gap: 0; }
.std-lbz__frame { grid-column: 1; grid-row: 1; }
.std-lbz__card { grid-column: 2; grid-row: 1 / span 2; }
.std-lbz__zoom > .std-lbz__foot { grid-column: 1; grid-row: 2; padding-top: var(--space-md); }
@media (max-width: 900px) {
  .std-lbz__zoom { grid-template-rows: none; row-gap: var(--space-lg); }
  .std-lbz__frame, .std-lbz__card, .std-lbz__zoom > .std-lbz__foot { grid-column: auto; grid-row: auto; }
  .std-lbz__zoom > .std-lbz__foot { padding-top: 0; }
}
/* Camera and 3D: the colour switch sits on the point cloud, top centre */
.std-cloud__modes { position: absolute; top: 0.9rem; left: 50%; z-index: 3; transform: translateX(-50%); display: inline-flex; gap: 2px; padding: 3px; background: rgba(14, 11, 22, 0.78); border: 1px solid rgba(245, 244, 244, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.std-cmode { font: inherit; font-family: var(--std-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; min-height: 30px; padding: 0 0.85rem; color: rgba(245, 244, 244, 0.62); background: transparent; border: 0; cursor: pointer; transition: background 150ms ease, color 150ms ease; }
.std-cmode:hover { color: var(--white); }
.std-cmode.is-on { color: var(--white); background: var(--purple); }
.std-cmode:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
@media (max-width: 520px) { .std-cloud__modes { top: 0.5rem; } .std-cmode { min-height: 28px; padding: 0 0.6rem; font-size: 0.625rem; } }
/* Pixel to entity: a crosshair through the pointer, edge to edge (as in the validator's frame probe) */
.std-pe__cross { position: absolute; z-index: 2; pointer-events: none; background: rgba(245, 244, 244, 0.5); }
.std-pe__cross--v { top: 0; bottom: 0; width: 1px; }
.std-pe__cross--h { left: 0; right: 0; height: 1px; }
.std-pe__cross[hidden] { display: none; }

/* Evaluation licence (#evalLicence): a modal <dialog> opened from the form's licence link. Light panel in the page's
   own type; the bar and the footer stay put while the text scrolls. */
.std-evl { position: fixed; inset: 0; margin: auto; width: min(760px, calc(100vw - 2rem)); max-width: none; max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--std-rule-strong); background: #FFFFFF; color: var(--std-ink); overflow: hidden; }
.std-evl[open] { display: flex; }
.std-evl::backdrop { background: rgba(14, 11, 22, 0.82); }
html:has(.std-evl[open]) { overflow: hidden; }
.std-evl__box { display: flex; flex-direction: column; min-height: 0; width: 100%; }
.std-evl__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem 1rem; border-bottom: 1px solid var(--std-rule); }
.std-evl__bar h2 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.std-evl__bar span { display: block; margin-top: 0.3rem; font-family: var(--std-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--std-dim); }
.std-evl__x { flex: none; padding: 0.35rem 0; background: none; border: 0; font-family: var(--std-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ac-ink); cursor: pointer; }
.std-evl__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0.4rem 1.5rem 1.4rem; font-size: 0.9375rem; line-height: 1.65; }
.std-evl__body h3 { margin: 1.6rem 0 0.5rem; font-size: 1rem; }
.std-evl__body p { margin: 0.7rem 0 0; color: #33333c; }
.std-evl__body strong { color: var(--std-ink); }
.std-evl__body a { color: var(--ac-ink); }
.std-evl__body hr { margin: 1.6rem 0 0; border: 0; border-top: 1px solid var(--std-rule); }
.std-evl__l { margin: 0.6rem 0 0; padding: 0; list-style: none; counter-reset: lic; }
.std-evl__l li { position: relative; margin-top: 0.5rem; padding-left: 2rem; color: #33333c; counter-increment: lic; }
.std-evl__l li::before { content: '(' counter(lic, lower-alpha) ')'; position: absolute; left: 0; font-family: var(--std-mono); font-size: 0.8125rem; color: var(--std-dim); }
.std-evl__caps { font-size: 0.8125rem; letter-spacing: 0.01em; }
.std-evl__addr { font-family: var(--std-mono); font-size: 0.75rem; color: var(--std-dim); }
.std-evl__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.5rem; border-top: 1px solid var(--std-rule); }
.std-evl__foot a { font-size: 0.875rem; font-weight: 600; color: var(--ac-ink); }
@media (max-width: 640px) {
  .std-evl { width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; }
  .std-evl__bar, .std-evl__foot { padding-left: 1.1rem; padding-right: 1.1rem; }
  .std-evl__body { padding-left: 1.1rem; padding-right: 1.1rem; }
}

/* Site only. build_std.py --site appends this to css/standard.css; the canvas
   never loads it. The download form's status line and result panels
   (std_ext_minute.js). */
.std-form[hidden] { display: none; }
.std-form > .std-form__status { margin: 0; min-height: 1.2em; font-size: 0.8125rem; color: var(--grey); }
.std-form__status.is-error { color: #c0392b; font-weight: 600; }
.std-form__done { display: none; scroll-margin-top: 6rem; padding: var(--space-lg); background: var(--white-pure); border: 1px solid var(--std-rule); }
.std-form__done:target, .std-form__done.is-on { display: block; }
.std-form__done:focus { outline: none; }
.std-form__done + .std-form__done { margin-top: var(--space-md); }
.std-form__done h3 { margin: 0.6rem 0 0.4rem; font-size: 1.35rem; }
.std-form__done p { margin: 0; color: var(--grey); font-size: 0.9375rem; line-height: 1.6; }
.std-form__done a { color: var(--ac-ink); font-weight: 600; }
.std-form__done--error { border-color: #c0392b; }
/* iOS Safari zooms the page into any field under 16px when it takes focus. */
@media (hover: none) and (pointer: coarse) {
  .std-form input, .std-form select, .std-form textarea { font-size: 16px; }
}

/* Rendering scroll-in (std_ext_rendering.js): the connector waits for the selected tile to arrive */
.std-lylink { transition: opacity 300ms ease; }
.std-ly-intro .std-lylink { opacity: 0; }

/* Labels hover guide (std_ext_timeline.js): replaces the canvas's cell highlight with the exact tick under the pointer */
.std-lbz__cell:hover { background: transparent; }
.std-lbz__hov { position: fixed; z-index: 30; width: 0; border-left: 1px dashed var(--purple); pointer-events: none; display: none; }
.std-lbz__hov.is-on { display: block; }
.std-lbz__hov b { position: absolute; bottom: 100%; left: 0; transform: translateX(-50%); margin-bottom: 6px; padding: 2px 6px; background: var(--std-ink); color: #FFFFFF; font-family: var(--std-mono); font-size: 0.625rem; font-weight: 600; white-space: nowrap; }
.std-lbz__tip { position: fixed; z-index: 31; display: none; transform: translate(12px, calc(-100% - 10px)); padding: 3px 7px; background: #FFFFFF; border: 1px solid var(--std-rule-strong); color: var(--std-ink); font-family: var(--std-mono); font-size: 0.6875rem; font-weight: 600; white-space: nowrap; pointer-events: none; }
.std-lbz__tip.is-on { display: block; }
