/* ==========================================================================
   Parallel Machines / pages / about.css
   About (.ab-*): what and why, method (#method), sources (#sources), colophon.
   Paper throughout; one treated footage plate (c25, assembly-line arms) carries the
   head. Also the 404 (.nf-*, at the end of this file): a twin with no machine.
   Solid = the machine / now; dots = the twin / the record.
   Reads the semantic surface variables only (tokens.css).
   ========================================================================== */

/* ---------- shared section rhythm ---------- */
.ab-section { padding-block: clamp(48px, 6vw, 96px); }
.ab-section + .ab-section { padding-top: 0; }
.ab-section__head { margin-bottom: clamp(24px, 3vw, 40px); }

/* ==========================================================================
   Head: folio, scattered title, lead, the plate
   ========================================================================== */
.ab-head {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(36px, 6vw, 96px));
  padding-bottom: clamp(16px, 2.5vw, 40px);
}
.ab-head__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(36px, 5vw, 56px);
  align-items: end;
}
.ab-head__copy {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.6vw, 34px);
  min-width: 0;
}
/* the plate folio ("Plate IV · About"): the atlas's mono folio pattern, uppercase with label tracking */
.ab-folio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
.ab-folio__sep { opacity: .5; }

.ab-title {
  --scatter-size: clamp(3.25rem, 6.4vw, 6.75rem);
  --scatter-col: 1.04em;
  --scatter-row: 1.02em;
  margin-top: 2px;
}
.ab-lead { max-width: 33rem; color: var(--fg-2); }

/* the plate: c25 (assembly-line arms + their twin), printed on the paper like a photographic plate */
.ab-plate { grid-column: 1 / -1; min-width: 0; }
.ab-plate__stage {
  --footage-ratio: 3 / 2;
  border-radius: var(--r-1);
  background: var(--print-1);
}
.ab-plate__cap {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin-top: 12px;
  font-size: var(--fs-micro);
  letter-spacing: .03em;
  text-transform: none;
  color: var(--fg-3);
}
/* separators trail their span, so a wrapped line never starts with one */
.ab-plate__cap > span:not(:last-child)::after { content: "\00B7"; margin: 0 .7em; opacity: .7; }
.ab-plate__cap > span:first-child { color: var(--fg); font-weight: 500; }
/* crop marks at two corners of the print: the plate as a specimen */
.ab-plate__frame { position: relative; }
.ab-plate__mark {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  border: 0 solid var(--fg);
  opacity: .5;
  pointer-events: none;
}
.ab-plate__mark--tl { top: -9px; left: -9px; border-top-width: 1px; border-left-width: 1px; }
.ab-plate__mark--br { right: -9px; bottom: -9px; border-bottom-width: 1px; border-right-width: 1px; }

@media (min-width: 1024px) {
  .ab-head__copy { grid-column: 1 / span 6; }
  .ab-plate { grid-column: 7 / span 6; }
}

/* ==========================================================================
   01 The atlas: two standfirsts + four principles
   ========================================================================== */
.ab-stand {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px var(--gutter);
}
.ab-stand__item { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ab-stand__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--fg-2);
}
.ab-stand__text {
  max-width: 26ch;
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 2.45vw, 2.375rem);
  line-height: 1.12;
  letter-spacing: -.008em;
  color: var(--fg);
  text-wrap: pretty;
}
.ab-stand__text abbr[title] { text-decoration-thickness: 1px; text-underline-offset: .14em; }
@media (min-width: 768px) {
  .ab-stand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ab-principles__h {
  margin-top: clamp(48px, 6vw, 88px);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--fg-2);
}
.ab-principles {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--hair) solid var(--line-strong);
}
.ab-principle {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-content: start;
  column-gap: 12px;
  row-gap: 6px;
  padding: 18px 0 22px;
  border-bottom: var(--hair) solid var(--line);
}
.ab-principle__no {
  grid-row: 1 / span 2;
  padding-top: .55em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .04em;
  color: var(--fg-3);
}
.ab-principle__name {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.ab-principle__text { max-width: 30ch; font-size: .9375rem; line-height: 1.5; color: var(--fg-2); }
@media (min-width: 640px) {
  .ab-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
}
@media (min-width: 1024px) {
  .ab-principles { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; border-bottom: var(--hair) solid var(--line); }
  .ab-principle {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 24px 28px;
    border-bottom: 0;
    border-left: var(--hair) solid var(--line);
  }
  .ab-principle:first-child { border-left: 0; padding-left: 0; }
  .ab-principle__no { grid-row: auto; padding-top: 0; margin-bottom: 14px; }
}

/* ==========================================================================
   02 Method: four steps, each with its instrument
   ========================================================================== */
.ab-steps { border-top: var(--hair) solid var(--line-strong); }
.ab-step {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 18px;
  padding-block: clamp(22px, 2.6vw, 34px);
  border-bottom: var(--hair) solid var(--line);
}
.ab-step__no {
  grid-row: 1 / span 2;
  padding-top: .55em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--fg-3);
}
.ab-step__copy { min-width: 0; max-width: 44ch; }
.ab-step__copy p { color: var(--fg-2); }
.ab-step__title {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.ab-step__copy code { white-space: nowrap; }
.ab-step__inst { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1024px) {
  .ab-step { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .ab-step__no { grid-column: 1 / span 1; grid-row: auto; }
  .ab-step__copy { grid-column: 2 / span 5; }
  .ab-step__inst { grid-column: 7 / span 6; align-self: start; padding-top: .45em; }
}

/* instrument: mono readouts on paper */
.ab-inst { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .02em; color: var(--fg-2); }
.ab-inst__line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .03em;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.ab-inst__line > span:first-child { color: var(--fg); }

/* 2.1 endpoints: one row per public endpoint; shape says the state, never colour */
.ab-endpoints { display: grid; margin: 0; padding: 0; list-style: none; border-top: var(--hair) solid var(--line); }
.ab-endpoint {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-height: 40px;
  padding: 8px 0;
  border-bottom: var(--hair) solid var(--line);
  font-variant-numeric: tabular-nums;
}
.ab-endpoint__sq {
  width: 8px;
  height: 8px;
  box-shadow: inset 0 0 0 1px currentColor;
  color: var(--fg-3);
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.ab-endpoint[data-state="ok"] .ab-endpoint__sq { color: var(--fg); }
.ab-endpoint[data-current] .ab-endpoint__sq { background: var(--fg); color: var(--fg); box-shadow: none; }
.ab-endpoint[data-state="failing"] .ab-endpoint__sq,
.ab-endpoint[data-state="cooling"] .ab-endpoint__sq { transform: rotate(45deg) scale(.8); }
.ab-endpoint__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.ab-endpoint__host { color: var(--fg); white-space: nowrap; }
.ab-endpoint__note { color: var(--fg-3); font-size: var(--fs-micro); }
.ab-endpoint__state {
  justify-self: end;
  font-size: var(--fs-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
}
.ab-endpoint[data-current] .ab-endpoint__state { color: var(--fg); font-weight: 500; }
.ab-inst__status { margin-top: 14px; }
.ab-inst__status:not(.live-status) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: var(--fs-label);
  letter-spacing: .02em;
  color: var(--fg-3);
}
.ab-inst__status:not(.live-status) b { font-weight: 600; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg); }

/* 2.2 the record: one dot per sampled block, one row per UTC day */
.ab-record { margin: 0; }
.ab-record__swatch { position: relative; width: 100%; color: var(--fg); }
.ab-record__swatch svg { display: block; width: auto; max-width: 100%; height: auto; overflow: visible; }
.ab-swatch__on { fill: currentColor; }
.ab-swatch__off { fill: currentColor; opacity: .2; }
.ab-swatch__tick { fill: var(--fg-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .02em; }
.ab-swatch__hot { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0; shape-rendering: crispEdges; }
.ab-swatch__hot.is-on { opacity: .6; }
.ab-record__key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: var(--fs-micro); color: var(--fg-3); }
.ab-record__key i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 1px; background: var(--fg); }
.ab-record__key i.is-off { opacity: .2; }

/* 2.3 datasets */
.ab-datasets { display: grid; gap: 0; margin: 0; border-top: var(--hair) solid var(--line); }
.ab-dataset {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 18px;
  padding: 12px 0 14px;
  border-bottom: var(--hair) solid var(--line);
  font-variant-numeric: tabular-nums;
}
.ab-dataset dt { font-size: .8125rem; font-weight: 500; color: var(--fg); }
.ab-dataset dd { margin: 0; color: var(--fg-2); }
.ab-k { color: var(--fg-3); }
@media (min-width: 560px) {
  .ab-dataset { grid-template-columns: 9.5rem minmax(0, 1fr) auto; align-items: baseline; }
  .ab-dataset dd:last-child { text-align: right; }
}

/* 2.4 limits */
.ab-limits {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--hair) solid var(--line);
  font-family: var(--font-sans);
  font-size: .9375rem;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--fg-2);
}
.ab-limits li { position: relative; padding: 11px 0 12px 22px; border-bottom: var(--hair) solid var(--line); }
.ab-limits li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 6px;
  height: 6px;
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: .7;
}
.ab-limits b { font-weight: 600; color: var(--fg); }

/* ==========================================================================
   03 Sources: domains in three groups, one dot per cited page; a domain opens
   the drawer with its pages
   ========================================================================== */
.ab-src {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "peaq" "chain" "press";
  gap: clamp(32px, 4vw, 44px) var(--gutter);
  align-items: start;
}
@media (min-width: 640px) {
  .ab-src { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "peaq chain" "press press"; }
}
@media (min-width: 1100px) {
  .ab-src { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "peaq chain press press"; }
}
.ab-src__empty { grid-column: 1 / -1; }
.ab-src__group { min-width: 0; }
.ab-src__group--peaq { grid-area: peaq; }
.ab-src__group--chain { grid-area: chain; }
.ab-src__group--press { grid-area: press; }
.ab-src__h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding-bottom: 10px;
  border-bottom: var(--hair) solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--fg);
}
.ab-src__h small { font-size: inherit; font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--fg-3); }
.ab-src__list { margin: 0; padding: 0; list-style: none; }
.ab-src__group--press .ab-src__list { column-count: 2; column-gap: var(--gutter); }
@media (min-width: 900px) and (max-width: 1099.98px) {
  .ab-src__group--press .ab-src__list { column-count: 3; }
}
.ab-src__item { break-inside: avoid; border-bottom: var(--hair) solid var(--line); }
.ab-src__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 2.5ch;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 7px 2px 7px 0;
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.35;
  letter-spacing: .005em;
  color: var(--fg);
  text-align: left;
  font-variant-numeric: tabular-nums;
  border-radius: var(--r-1);
  transition: background-color var(--dur-micro) var(--ease);
}
.ab-src__row:hover { background: var(--well); }
.ab-src__row:hover .ab-src__dom { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ab-src__row:focus-visible { outline-offset: 1px; }
.ab-src__row[aria-expanded="true"] { background: var(--well-strong); }
.ab-src__dom { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 639.98px) {
  .ab-src__group--press .ab-src__list { column-gap: 16px; }
  .ab-src__group--press .ab-src__row { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 6px; font-size: .75rem; letter-spacing: -.01em; }
}
.ab-src__dots { display: block; justify-self: end; color: var(--fg); }
.ab-src__dots svg { display: block; }
.ab-src__n { text-align: right; color: var(--fg-2); }

/* the drawer: one domain's pages */
.ab-drawer__title { font-family: var(--font-mono); font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ab-drawer__meta { margin-bottom: 18px; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .02em; color: var(--fg-3); }
.ab-drawer__list { display: grid; margin: 0; padding: 0; list-style: none; border-top: var(--hair) solid var(--line); counter-reset: src; }
.ab-drawer__list li {
  position: relative;
  padding: 10px 0 11px 34px;
  border-bottom: var(--hair) solid var(--line);
  counter-increment: src;
  font-size: .9375rem;
  line-height: 1.45;
}
.ab-drawer__list li::before {
  content: counter(src, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .02em;
  color: var(--fg-3);
}
.ab-drawer__list a { color: var(--fg); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ab-drawer__list a:hover { color: var(--accent); text-decoration-color: currentColor; }
.ab-drawer__url { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .01em; color: var(--fg-3); overflow-wrap: anywhere; }
.ab-drawer__foot { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .02em; color: var(--fg-3); }
.ab-drawer__foot a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* ==========================================================================
   04 Colophon: the disclaimer + contact, the four faces, made with + changelog
   ========================================================================== */
.ab-colo {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 32px;
  align-items: end;
}
.ab-disclaimer {
  grid-column: 1 / -1;
  max-width: 28ch;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 3.125rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--fg);
  text-wrap: balance;
}
.ab-contact { grid-column: 1 / -1; max-width: 34ch; color: var(--fg-2); font-size: .9375rem; line-height: 1.55; }
.ab-contact p + p { margin-top: .4em; }
.ab-contact .link { color: var(--fg); }
@media (min-width: 900px) {
  .ab-disclaimer { grid-column: 1 / span 8; }
  .ab-contact { grid-column: 9 / span 4; justify-self: end; width: 100%; }
}
.ab-mast__h {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--fg);
}
.ab-faces__h { margin-top: clamp(40px, 5vw, 72px); margin-bottom: 14px; color: var(--fg-2); }
.ab-faces {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--hair) solid var(--line-strong);
}
.ab-face {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  min-height: 112px;
  padding: 18px 0 16px;
  border-bottom: var(--hair) solid var(--line);
}
.ab-face__name { font-size: clamp(1.75rem, 2.5vw, 2.375rem); line-height: 1; color: var(--fg); white-space: nowrap; }
.ab-face__role { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-3); }
.ab-face--serif .ab-face__name { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.01em; }
.ab-face--sans .ab-face__name { font-family: var(--font-sans); font-weight: 500; letter-spacing: -.025em; }
.ab-face--mono .ab-face__name { font-family: var(--font-mono); font-weight: 400; font-size: clamp(1.375rem, 1.95vw, 1.875rem); letter-spacing: -.02em; }
.ab-face--dots .ab-face__name { font-family: var(--font-dots); font-weight: 700; letter-spacing: .02em; }
@media (min-width: 640px) {
  .ab-faces { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
}
@media (min-width: 1024px) {
  .ab-faces { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; border-bottom: var(--hair) solid var(--line); }
  .ab-face { padding: 20px 24px 18px; border-bottom: 0; border-left: var(--hair) solid var(--line); }
  .ab-face:first-child { border-left: 0; padding-left: 0; }
}

.ab-mast {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
  margin-top: 20px;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--fg-2);
}
.ab-made { max-width: 52ch; }
.ab-log { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0; }
.ab-log__k { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
.ab-log__v { font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .02em; color: var(--fg); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ab-endpoint__sq, .ab-src__row { transition: none; }
}

/* ==========================================================================
   404: "This twin has no machine." One metaphor: the dot-matrix twin of the
   arm runs with no solid machine beside it, and the word "twin" exists only
   as dots (caption: "solid: not found · dots: its record").
   ========================================================================== */
.nf { display: flex; align-items: stretch; }
.nf__stage {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  margin: 0;
}
/* the twin keeps clear of the header and of the light haze at the bottom */
.nf__stage .twin-stage { position: absolute; inset: calc(var(--header-h) + 12px) 0 76px 0; }
/* fallback (no WebGL, Save-Data): the arm's twin layer alone (devices/robotArm-twin.webp). The tile frames the
   twin right of its centre (the print sat on the left), so it is moved back to the middle of the stage. */
.nf__stage .twin-stage__fallback[src*="/img/devices/"] { transform: translateX(-16%); }
.nf__cap {
  position: absolute;
  /* the container's right edge: the stage is 58% of the section, so 100% / .58 is the section width */
  right: max(var(--page-margin), (100% / .58 - var(--max)) / 2);
  bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 2 * var(--page-margin));
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .03em;
  color: var(--ink-2);
}
.nf__cap > span:not(:last-child)::after { content: "\00B7"; margin: 0 .7em; opacity: .7; }
.nf__cap > span:first-child { color: var(--ink); font-weight: 500; }

.nf__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-content: center;
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: 88px;
}
.nf__copy {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 30px);
  min-width: 0;
}
/* the plate folio ("Plate 404 · Not found"): the atlas's mono folio pattern */
.nf__folio { display: flex; gap: 10px; align-items: baseline; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
.nf__sep { opacity: .5; }
.nf__title {
  --scatter-size: clamp(3rem, 5.8vw, 6.25rem);
  --scatter-col: 1.2em;
  --scatter-row: 1.02em;
}
.nf__lede { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.nf__sub { max-width: 30rem; font-size: var(--fs-lead); line-height: 1.45; color: var(--fg); }
.nf__path {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .02em;
  color: var(--fg-2);
}
.nf__k { letter-spacing: var(--tr-label); text-transform: uppercase; }
.nf__path code {
  max-width: 100%;
  padding: .2em .5em;
  overflow-wrap: anywhere;
  border-radius: var(--r-1);
  background: var(--well-strong);
  color: var(--fg);
  font-size: .8125rem;
}
.nf__links { margin-top: 6px; }

@media (min-width: 1024px) {
  .nf__copy { grid-column: 1 / span 6; }
}
@media (max-width: 1023.98px) {
  .nf.hero-frame { height: auto; max-height: none; min-height: 100vh; min-height: 100svh; flex-direction: column; }
  .nf__stage {
    position: relative;
    top: auto; right: auto; bottom: auto;
    width: 100%;
    margin-top: var(--header-h);
  }
  .nf__stage .twin-stage { position: relative; inset: auto; height: clamp(240px, 40svh, 440px); }
  .nf__cap { position: static; max-width: none; margin: 4px var(--page-margin) 0; justify-content: flex-start; color: var(--fg-3); }
  .nf__cap > span:first-child { color: var(--fg); }
  .nf__inner { align-content: start; padding-top: 12px; padding-bottom: 120px; }
  /* Stacked, the CTA row lands where the hero sky turns light (white "Live pulse" read 3.4:1 there). The 404's sky
     keeps its mid blue under the copy and presses the haze into the last ~80 px, and the backlight glow stays low,
     so every CTA holds 4.5:1 or more; the haze still meets the footer. */
  .nf.hero-frame {
    background-image:
      var(--sky-vignette),
      radial-gradient(64% 15% at 66% 100%, rgba(220,235,250,.42) 0%, rgba(220,235,250,.14) 48%, rgba(220,235,250,0) 80%),
      linear-gradient(180deg, #0B3A9C 0%, #1F67D0 max(55%, calc(100% - 300px)), #2A6BD2 calc(100% - 80px), #6BA9E8 calc(100% - 28px), #BFD9F2 100%);
  }
}
