/* ==========================================================================
   Parallel Machines / pages / atlas.css
   The Atlas: a cyanotype plate (cartouche + constellation), the catalog (filters, sector bands with treated
   stills, specimen cards), the data note and the project drawer. Reads the semantic surface variables, so
   the plate is white-on-blue and the catalog ink-on-paper with the same components.
   ========================================================================== */

/* ---------- 1 plate ---------- */
.atlas-plate {
  --atlas-layout: stacked;         /* read by atlas.js: the map sits under the cartouche ... */
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: clip;
  background-color: #08195E;
  background-image:
    radial-gradient(58% 64% at 68% 40%, rgba(31, 103, 208, .52) 0%, rgba(31, 103, 208, .16) 52%, rgba(31, 103, 208, 0) 78%),
    radial-gradient(42% 46% at 16% 86%, rgba(16, 72, 178, .42) 0%, rgba(16, 72, 178, 0) 72%),
    linear-gradient(180deg, #0B1A8C 0%, #0A2384 46%, #081B63 100%);
}
/* a slow tonal vignette on top of the gradient (the print's edge burn) */
.atlas-plate__tone {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(5, 10, 42, 0) 55%, rgba(5, 10, 42, .38) 100%),
    linear-gradient(90deg, rgba(7, 14, 58, .3) 0%, rgba(7, 14, 58, 0) 38%);
}
.atlas-plate .grain::before { opacity: calc(var(--grain-opacity) * .75); }

.atlas-plate__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(28px, 4.2vw, 64px));
  padding-bottom: 18px;
  pointer-events: none;            /* the map under the empty parts of this box stays clickable */
}
.atlas-plate__inner > * { pointer-events: auto; }
.atlas-plate__room { flex: 1; min-height: 0; pointer-events: none !important; }

/* ---------- 2 cartouche ---------- */
.atlas-head { position: relative; max-width: 30.5rem; }
.atlas-head::before {              /* plate corner mark */
  content: "";
  position: absolute;
  left: -18px; top: -14px;
  width: 12px; height: 12px;
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
}
/* the page folio, one format across the site: "Plate I · Atlas" in .folio mono, as written */
.atlas-head__folio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; color: var(--fg-2); }
.atlas-head__folio .sep { opacity: .45; }
.atlas-head__title { margin-top: clamp(14px, 1.6vw, 22px); font-family: var(--font-serif); font-weight: 400; }
.atlas-head__t {
  display: block;
  font-size: clamp(3.75rem, 6.4vw, 6.5rem);
  line-height: .86;
  letter-spacing: -.016em;
}
.atlas-head__dek {
  display: block;
  margin-top: .32em;
  font-size: clamp(1.4375rem, 2.05vw, 2rem);
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--fg-2);
}
.atlas-head__intro {
  margin-top: clamp(16px, 1.8vw, 24px);
  max-width: 29rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg-2);
}

/* counts: two serif numbers, the status tally (one square per project, status as shape) and the date */
.atlas-counts { margin-top: clamp(18px, 2vw, 28px); min-height: 150px; }
.atlas-counts__list { display: flex; gap: clamp(28px, 3vw, 44px); margin: 0; }
.atlas-count { display: flex; flex-direction: column-reverse; gap: 6px; }
.atlas-count dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 3.8vw, 3.5rem);
  line-height: .86;
  letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
}
.atlas-count dt, .atlas-tally__keys, .atlas-verified {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--fg-2);
}
.atlas-tally { display: block; margin-top: 16px; }
.atlas-tally__row { display: flex; flex-wrap: wrap; gap: 3px; max-width: 352px; color: var(--fg); }
.atlas-tally__row i {
  width: 8px; height: 8px;
  flex: none;
  box-shadow: inset 0 0 0 1px currentColor;
}
.atlas-tally__row i[data-s="live"] { background: currentColor; }
.atlas-tally__row i[data-s="building"] { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.atlas-tally__row i[data-s="announced"] {
  box-shadow: none;
  background-image:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 2px),
    repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 2px),
    repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 2px);
  background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: no-repeat;
}
.atlas-tally__keys { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 9px; }
.atlas-tally__keys b { font-weight: 500; color: var(--fg); }
.atlas-verified { margin-top: 12px; color: var(--fg-3); }

/* ---------- 3 plate foot: legend + way down ---------- */
.atlas-plate__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: 12px;
  border-top: var(--hair) solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .04em;
  color: var(--fg-2);
}
.atlas-legend { display: flex; gap: 12px; margin: 0; }
.atlas-legend__fig { color: var(--fg); font-weight: 500; letter-spacing: .06em; }
.atlas-legend__keys { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.atlas-legend__keys li { display: inline-flex; align-items: center; gap: 7px; }
.atlas-legend__keys .status { font-size: var(--fs-micro); color: var(--fg-2); }
.atlas-legend__record {
  width: 8px; height: 8px;
  background-image: radial-gradient(circle, currentColor 0 .9px, transparent 1.2px);
  background-size: 3px 3px;
  background-position: -.5px -.5px;
}
.atlas-plate__skip { margin-left: auto; color: var(--fg); font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.atlas-plate__skip:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 4 constellation ---------- */
.constellation { position: absolute; inset: 0; z-index: 1; }
.constellation__canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.constellation__sectors,
.constellation__nodes { position: absolute; inset: 0; pointer-events: none; }
.constellation__nodes:focus-within { z-index: 3; }

.cn-sector {
  position: absolute;
  left: 0; top: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 4px;
  color: var(--white);
  white-space: nowrap;
  pointer-events: auto;
  will-change: transform, opacity;
}
.cn-sector__name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -.005em;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--dur-2) var(--ease);
}
.cn-sector__n { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .06em; opacity: .75; }
.cn-sector:hover .cn-sector__name,
.cn-sector[data-on="true"] .cn-sector__name { background-size: 100% 1px; }

.cn-jump {
  position: absolute;
  left: 0; top: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--r-1);
  background: rgba(5, 10, 42, .42);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
.cn-jump:hover { text-decoration: underline; text-underline-offset: 3px; }
.cn-jump:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.cn-jump .i { width: 11px; height: 11px; }
.cn-blurb {
  position: absolute;
  left: 0; top: 0;
  width: max-content;
  max-width: 21rem;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: .875rem;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 0 12px rgba(5, 10, 42, .85);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.cn-node {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  color: var(--white);
  pointer-events: auto;
  will-change: transform;
}
.cn-node__hit { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: var(--r-1); }
.cn-node__label {
  position: absolute;
  top: -8px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(5, 10, 42, .9), 0 0 2px rgba(5, 10, 42, .8);
  transition: opacity var(--dur-1) var(--ease);
}
.cn-node[data-side="l"] .cn-node__label { left: auto; right: 12px; }
.cn-node[data-label="off"] .cn-node__label { visibility: hidden; }
.cn-node:hover .cn-node__label { text-decoration: underline; text-underline-offset: 3px; }
.cn-node:focus-visible { outline: none; }
.cn-node:focus-visible .cn-node__hit { outline: 2px solid var(--white); outline-offset: 1px; }
.cn-node[data-rec="true"] .cn-node__label { color: rgba(255, 255, 255, .62); }

.constellation__empty {
  position: absolute;
  left: 50%; top: 58%;
  transform: translate(-50%, -50%);
  max-width: min(30rem, calc(100% - 32px));
  padding: 10px 14px;
  border-radius: var(--r-1);
  background: rgba(5, 10, 42, .55);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .03em;
  text-align: center;
  pointer-events: none;
}
.atlas-plate.is-nodata .constellation__empty { top: auto; bottom: 90px; }

/* ---------- 5 noscript index (the map's text twin) ---------- */
.atlas-index { position: relative; z-index: 2; padding-bottom: clamp(32px, 5vw, 64px); }
.atlas-index__lead { max-width: 40rem; color: var(--fg-2); font-size: .9375rem; margin-bottom: 20px; }
.atlas-index__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 28px; }
.atlas-index__name { font-family: var(--font-serif); font-size: 1.375rem; line-height: 1.1; margin-bottom: 8px; }
.atlas-index__name span { font-family: var(--font-mono); font-size: var(--fs-micro); opacity: .7; }
.atlas-index ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.atlas-index a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .05em; text-transform: uppercase; }
.atlas-index a:hover { text-decoration: underline; text-underline-offset: 3px; }
.atlas-index .status { color: var(--fg); }

/* ---------- 6 catalog layout ----------
   1200 px and up: the filters are a sticky rail beside the catalog. Below: a sticky bar above it (tablets: search and
   chips on one line; phones: "Filter · {n}", which opens the same filters). */
.atlas-catalog { padding-block: clamp(28px, 3.4vw, 48px) clamp(44px, 5vw, 72px); }
.atlas-catalog__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.atlas-results { min-width: 0; }
.atlas-sector { scroll-margin-top: calc(var(--header-h) + 72px); }
@media (min-width: 1200px) {
  .atlas-catalog__grid { grid-template-columns: 212px minmax(0, 1fr); gap: clamp(28px, 2.6vw, 40px); align-items: start; }
  .atlas-sector { scroll-margin-top: calc(var(--header-h) + 16px); }
  .atlas-filters {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    max-height: calc(100svh - var(--header-h) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

/* ---------- 7 filters ---------- */
.atlas-filters__bar { display: none; }
.atlas-filters__inner { display: grid; gap: 18px; padding-top: 12px; border-top: var(--hair) solid var(--line-strong); }
.atlas-filters__title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--fg);
}
.atlas-filters [data-atlas-region="filters"] { display: grid; gap: 18px; }
.atlas-filters__group { gap: 8px; min-width: 0; }
.atlas-filters .search .input { padding-right: 40px; }
.atlas-chips .chip { height: 30px; }
.atlas-chips .chip__count { margin-left: auto; padding-left: 10px; }
.atlas-chips .status { font-size: var(--fs-label); letter-spacing: .06em; color: inherit; text-transform: uppercase; }
.atlas-chips .chip[aria-pressed="true"] .status { color: inherit; }
.atlas-chips .chip:focus-visible { outline-offset: 2px; }
/* a chip that would show no entry with the other filters as they are (atlas.js paintCounts): muted ink, a dashed box;
   still a button (the empty state says why), and still 5.5:1 on paper */
.atlas-chips .chip[data-zero]:not([aria-pressed="true"]) { color: var(--fg-3); border-style: dashed; }
@media (min-width: 1200px) {
  .atlas-chips { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
  .atlas-chips .chip { width: 100%; justify-content: flex-start; }
  .atlas-chips--sector .chip__name { overflow: hidden; text-overflow: ellipsis; }
}
.atlas-filters__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 12px; border-top: var(--hair) solid var(--line); }
.atlas-filters__count { margin: 0; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .04em; color: var(--fg-2); min-height: 1.4em; }
.atlas-filters__clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
}
.atlas-filters__clear:hover { text-decoration: underline; text-underline-offset: 3px; }
.atlas-filters__clear .i { width: 10px; height: 10px; }

/* below 1200 px: the filters stick under the header, on paper, full bleed */
@media (max-width: 1199.98px) {
  .atlas-filters {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    margin-inline: calc(-1 * var(--page-margin));
    padding-inline: var(--page-margin);
    background: rgba(245, 247, 255, .94);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: var(--hair) solid var(--line);
  }
  .atlas-filters__title, .atlas-filters .field__label, .atlas-filters__count {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .atlas-chips { flex-wrap: nowrap; }
  .atlas-chips .chip { flex: none; }
}
/* tablets: search, status and sectors on one line; the chips scroll sideways (a fade says there is more) */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .atlas-filters__inner { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 0; }
  .atlas-filters__search { flex: 0 0 210px; }
  .atlas-filters [data-atlas-region="filters"] {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-block: 2px;
    -webkit-mask: linear-gradient(90deg, #000 calc(100% - 32px), transparent 100%);
    mask: linear-gradient(90deg, #000 calc(100% - 32px), transparent 100%);
  }
  .atlas-filters [data-atlas-region="filters"]::-webkit-scrollbar { display: none; }
  .atlas-filters__group { flex: none; }
  .atlas-chips { gap: 6px; }
  .atlas-filters__foot { flex: none; padding: 0; border: 0; }
  .atlas-filters__foot:has(.atlas-filters__clear[hidden]) { display: none; }
}
/* phones: a sticky "Filter · {n}" bar; it opens the filters under it */
@media (max-width: 767.98px) {
  .atlas-filters__bar { display: flex; align-items: center; gap: 14px; min-height: 48px; }
  .atlas-filters__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--fg);
  }
  .atlas-filters__toggle .sep { opacity: .5; }
  .atlas-filters__toggle .i { width: 12px; height: 12px; transition: transform var(--dur-1) var(--ease); }
  .atlas-filters.is-open .atlas-filters__toggle .i { transform: rotate(45deg); }
  .atlas-filters__summary {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: .04em;
    color: var(--fg-2);
  }
  .atlas-filters__inner {
    display: none;
    gap: 14px;
    max-height: calc(100vh - var(--header-h) - 56px);
    max-height: calc(100svh - var(--header-h) - 56px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 0 14px;
    border-top: var(--hair) solid var(--line);
  }
  .atlas-filters.is-open .atlas-filters__inner { display: grid; }
  .atlas-chips {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--page-margin));
    padding: 2px var(--page-margin) 4px;
    scroll-padding-inline: var(--page-margin);
    -webkit-mask: linear-gradient(90deg, transparent 0, #000 var(--page-margin), #000 calc(100% - 28px), transparent 100%);
    mask: linear-gradient(90deg, transparent 0, #000 var(--page-margin), #000 calc(100% - 28px), transparent 100%);
  }
  .atlas-chips::-webkit-scrollbar { display: none; }
  .atlas-filters__foot { padding-top: 10px; }
  .atlas-filters__foot:has(.atlas-filters__clear[hidden]) { display: none; }
}

/* ---------- 8 sector bands: the sector's index, name, one sentence and counts, beside one treated still ---------- */
.atlas-sector + .atlas-sector { margin-top: clamp(28px, 2.6vw, 36px); }
.atlas-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(92px, 26vw, 120px);
  gap: 10px 16px;
  padding-top: 12px;
  border-top: var(--hair) solid var(--line-strong);
  margin-bottom: 14px;
}
@media (min-width: 768px) {
  .atlas-band { grid-template-columns: minmax(0, 1fr) clamp(220px, 28vw, 340px); gap: 12px 28px; align-items: start; }
}
.atlas-band__text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.atlas-band__index {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--fg-2);
}
.atlas-band__index .sep { opacity: .5; }
.atlas-band__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.3vw, 2.125rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.atlas-band__blurb { max-width: 40rem; font-size: .9375rem; line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
.atlas-band__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 2px; width: 100%; }
.atlas-band__n { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .04em; color: var(--fg); }
.atlas-band__meta .status { font-size: var(--fs-micro); }
.atlas-band__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--dur-2) var(--ease), color var(--dur-1) var(--ease);
}
.atlas-band__map:hover { background-size: 100% 1px; color: var(--accent); }
.atlas-band__map .i { width: 11px; height: 11px; }

.atlas-band__still {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-1);
  aspect-ratio: 4 / 3;
  background: var(--print-1);
}
@media (min-width: 768px) { .atlas-band__still { aspect-ratio: auto; height: clamp(104px, 8.8vw, 120px); } }
.atlas-band__still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.atlas-band__still::after {          /* plate corner marks, like the specimen plates */
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) right top / 10px 1px no-repeat,
    linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) right top / 1px 10px no-repeat,
    linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) left bottom / 10px 1px no-repeat,
    linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) left bottom / 1px 10px no-repeat;
}
.atlas-sector:hover .atlas-band__still img { transform: scale(1.015); }
/* phones: the still sits beside the index and the name; the sentence and the counts run the full width under them */
@media (max-width: 767.98px) {
  .atlas-band__text { display: contents; }
  .atlas-band__index { grid-column: 1; grid-row: 1; align-self: end; }
  .atlas-band__title { grid-column: 1; grid-row: 2; align-self: start; }
  .atlas-band__still { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .atlas-band__blurb, .atlas-band__meta { grid-column: 1 / -1; }
  .atlas-band__blurb { font-size: .875rem; line-height: 1.45; }
  .atlas-band__meta .status { display: none; }
  .atlas-band { margin-bottom: 12px; }
}

/* ---------- 9 specimen cards: compact, the 4:3 plate on the left at every width ---------- */
.atlas-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr));
  gap: 12px;
}
.atlas-card {
  --plate-w: 132px;
  display: grid;
  grid-template-columns: var(--plate-w) minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  grid-template-areas: "plate name" "plate line" "plate facts" "plate links";
  column-gap: 14px;
  padding: 10px;
}
@media (min-width: 768px) { .atlas-card { --plate-w: 168px; column-gap: 16px; padding: 12px; } }
.atlas-card .specimen__body { display: contents; }
.atlas-card .specimen__plate {
  grid-area: plate;
  align-self: start;
  width: var(--plate-w);
  aspect-ratio: 4 / 3;
  border-radius: var(--r-1);
}
.atlas-card .specimen__plate::before, .atlas-card .specimen__plate::after { width: 7px; height: 7px; }
.atlas-card .specimen__plate::before { top: 6px; right: 6px; }
.atlas-card .specimen__plate::after { bottom: 6px; left: 6px; }
.atlas-card .specimen__id { top: 6px; left: 6px; padding: 2px 5px 1px; font-size: 10px; }
/* the twin steps up and to the right (the site's one hover direction); the card itself lifts 2 px */
.atlas-card:hover .specimen__twin, .atlas-card:focus-within .specimen__twin { transform: translate(var(--twin-step, 6px), calc(-1 * var(--twin-step, 6px))); }
/* a close-up: the same tile, cropped closer around its focus point (two projects never share a plate in a sector) */
.specimen__plate--detail > img { transform-origin: var(--plate-focus, 50% 50%); scale: 1.8; }
.atlas-card .specimen__name { grid-area: name; align-self: start; font-size: 1.4375rem; }
.atlas-card .specimen__line { grid-area: line; margin-top: 4px; font-size: .875rem; line-height: 1.4; text-wrap: pretty; }
.atlas-card__facts {
  grid-area: facts;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.5;
  letter-spacing: .03em;
  color: var(--fg-2);
}
/* the separators keep to the end of a line when the facts wrap (a no-break space before each dot) */
.atlas-card__facts .sep { color: var(--fg-3); }
.atlas-card__facts .status { display: inline-flex; color: var(--fg); font-size: var(--fs-micro); }
.atlas-card .specimen__links { grid-area: links; align-self: end; align-items: center; margin-top: 7px; padding-top: 7px; gap: 4px 14px; }
.atlas-card .specimen__links a, .atlas-card__sources { font-size: var(--fs-micro); }
/* phones: the plate beside the name and the line; the facts and the links use the full width under it */
@media (max-width: 599.98px) {
  .atlas-cards { gap: 8px; }
  .atlas-card { grid-template-rows: auto 1fr auto auto; grid-template-areas: "plate name" "plate line" "facts facts" "links links"; column-gap: 12px; padding: 8px; }
  .atlas-card .specimen__name { font-size: 1.3125rem; }
  .atlas-card .specimen__line { margin-top: 4px; font-size: .8125rem; line-height: 1.4; }
  .atlas-card__facts { margin-top: 8px; }
  .atlas-card .specimen__links { margin-top: 5px; padding-top: 6px; }
}
.atlas-card__open {
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 94%;
  background-repeat: no-repeat;
  transition: background-size var(--dur-2) var(--ease);
}
.atlas-card:hover .atlas-card__open { background-size: 100% 1px; }
.atlas-card__sources {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
  margin-left: auto;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  color: var(--fg);
}
.atlas-card__sources:hover { text-decoration: underline; text-underline-offset: 3px; }
.atlas-card__n {
  display: inline-grid;
  place-items: center;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border: var(--hair) solid var(--line-strong);
  border-radius: var(--r-1);
  font-size: var(--fs-micro);
  font-variant-numeric: tabular-nums;
}
.atlas-card__src { position: relative; z-index: 2; width: 100%; font-family: var(--font-mono); font-size: var(--fs-micro); }
.atlas-card__src summary { cursor: pointer; letter-spacing: .04em; }
.atlas-card__src ol { margin: 6px 0 0; padding-left: 1.6em; display: grid; gap: 2px; }
.atlas-card__src a { text-decoration: underline; text-underline-offset: 2px; }
html.js .atlas-card__src { display: none; }
html:not(.js) .atlas-card__sources,
html:not(.js) .atlas-filters,
html:not(.js) .atlas-band__map,
html:not(.js) .atlas-legend,
html:not(.js) .atlas-legend__keys,
html:not(.js) .constellation { display: none; }
html:not(.js) .atlas-card__open { cursor: text; background: none; }
html:not(.js) .atlas-card__open::after { display: none; }
html:not(.js) .atlas-plate { min-height: 0; }
html:not(.js) .atlas-plate__room { display: none; }
html:not(.js) .atlas-plate__foot { margin-top: 28px; }
html:not(.js) .atlas-catalog__grid { grid-template-columns: minmax(0, 1fr); }
/* without JS the header never learns it sits on blue: keep it on the plate, in white */
html:not(.js) .site-header {
  position: absolute;
  --fg: var(--white); --fg-2: rgba(255,255,255,.9); --fg-3: rgba(255,255,255,.75);
  --line: var(--line-on-blue); --line-strong: var(--line-on-blue-strong); --focus: var(--white);
  --btn-bg: var(--white); --btn-fg: var(--ink);
}

/* phones, no filter on: a sector opens with its first three entries and a button for the rest */
.atlas-more { display: none; }
@media (max-width: 599.98px) {
  .atlas-results[data-compact] .atlas-sector:not(.is-open) .atlas-card:nth-child(n+4) { display: none; }
  .atlas-results[data-compact] .atlas-sector:not(.is-open) .atlas-more { display: flex; }
  .atlas-more {
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    border: var(--hair) dashed var(--line-strong);
    border-radius: var(--r-1);
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fg);
  }
  .atlas-more .i { width: 11px; height: 11px; }
}

/* entering cards fade up (filters) */
@media (prefers-reduced-motion: no-preference) {
  html.js .atlas-card { animation: atlas-in var(--dur-2) var(--ease) backwards; animation-delay: calc(var(--k, 0) * 24ms); }
}
@keyframes atlas-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 10 empty state ---------- */
.atlas-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(48px, 7vw, 96px) 16px;
  text-align: center;
  border-radius: var(--r-1);
  background-image:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px 4px);
  background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: no-repeat;
}
.atlas-empty__mark {
  width: 22px; height: 22px;
  background-image: radial-gradient(circle, var(--ink) 0 1.6px, transparent 2px);
  background-size: 8px 8px;
  background-position: -1px -1px;
  opacity: .8;
}
.atlas-empty__title { font-family: var(--font-serif); font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.05; }
.atlas-empty__text { max-width: 34rem; color: var(--fg-2); font-size: .9375rem; }
.atlas-empty .btn { margin-top: 6px; }

/* ---------- 11 data note ---------- */
.atlas-about { padding-bottom: clamp(56px, 7vw, 104px); }
.atlas-about__grid { display: grid; gap: 22px 32px; padding-top: 14px; border-top: var(--hair) solid var(--line-strong); }
@media (min-width: 1024px) {
  .atlas-about__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3.2fr); align-items: start; }
}
.atlas-about__index {
  display: flex;
  gap: 10px;
  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);
}
.atlas-about__index .sep { opacity: .5; }
.atlas-about__title { margin-top: 12px; font-family: var(--font-serif); font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.02; letter-spacing: -.01em; max-width: 12ch; }
.atlas-about__note p + p { margin-top: .8em; }
.atlas-about__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.atlas-about__links a { display: inline-flex; align-items: center; gap: 6px; }
.atlas-about__links .i { width: 12px; height: 12px; }
.atlas-about__status { display: grid; gap: 12px; margin: 0; }
.atlas-about__status > div { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: var(--hair) solid var(--line); }
@media (max-width: 767.98px) {
  .atlas-about__title { max-width: none; font-size: 1.875rem; }
  .atlas-about__status { gap: 8px; }
  .atlas-about__status > div { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 10px; padding-bottom: 8px; }
  .atlas-about__status dd { font-size: .8125rem; }
}
.atlas-about__status dd { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--fg-2); }
.atlas-about__status .status { color: var(--fg); font-weight: 500; }

/* ---------- 12 drawer ---------- */
.atlas-drawer .drawer__head { gap: 10px; }
.atlas-drawer .drawer__kicker { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas-drawer__nav { display: flex; gap: 2px; margin-left: auto; flex: none; }
.atlas-drawer__nav .drawer__close .i { width: 15px; height: 15px; }
.atlas-pd__plate {
  margin: -20px -20px 18px;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}
.atlas-pd__plate:hover .specimen__twin { transform: translate(var(--twin-step-lg, 10px), calc(-1 * var(--twin-step-lg, 10px))); }
.atlas-pd__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 2px 0 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.atlas-pd__status .status { font-size: var(--fs-micro); color: var(--fg); }
.atlas-pd__line { font-size: 1.0625rem; line-height: 1.5; color: var(--fg); }
.atlas-pd__facts { margin: 18px 0 0; border-top: var(--hair) solid var(--line); }
.atlas-pd__facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: var(--hair) solid var(--line); font-size: .875rem; line-height: 1.5; }
.atlas-pd__facts dt { padding-top: 2px; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-3); }
.atlas-pd__facts dd { margin: 0; color: var(--fg-2); }
.atlas-pd__facts b { font-weight: 600; color: var(--fg); }
.atlas-pd__muted { color: var(--fg-3); font-size: .8125rem; font-weight: 400; letter-spacing: 0; text-transform: none; font-family: var(--font-sans); }
.atlas-pd__note { display: block; margin-top: 2px; color: var(--fg-3); font-size: .8125rem; }
.atlas-pd__block { margin-top: 24px; }
.atlas-pd__h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  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;
}
.atlas-pd__machines { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 0; padding: 0; }
.atlas-pd__machines img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--r-1); background: var(--sky); }
.atlas-pd__machines span { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .04em; color: var(--fg-2); }
.atlas-pd__terms { display: grid; gap: 8px; margin: 0; }
.atlas-pd__terms > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; font-size: .875rem; line-height: 1.5; }
.atlas-pd__terms dt { font-weight: 600; }
.atlas-pd__terms dd { margin: 0; color: var(--fg-2); }
.atlas-pd__sources { margin: 0; padding: 0; border-top: var(--hair) solid var(--line); }
.atlas-pd__sources li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: baseline; padding: 9px 0; border-bottom: var(--hair) solid var(--line); }
.atlas-pd__n { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.atlas-pd__sources a { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.atlas-pd__sources a:hover .atlas-pd__host { text-decoration: underline; text-underline-offset: 3px; }
.atlas-pd__sources .i { width: 10px; height: 10px; flex: none; align-self: center; color: var(--fg-3); }
.atlas-pd__host { flex: none; font-size: .875rem; font-weight: 600; }
.atlas-pd__path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--fg-3); }
.atlas-pd__locate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg);
}
.atlas-pd__locate:hover { text-decoration: underline; text-underline-offset: 3px; }
.atlas-pd__locate .i { width: 11px; height: 11px; }
/* the drawer foot: the project's links and the map; sharing the entry; the one correction line */
.atlas-drawer .drawer__foot { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
.atlas-pd__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.atlas-pd__share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.atlas-pd__sh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg);
}
.atlas-pd__sh:hover { text-decoration: underline; text-underline-offset: 3px; }
.atlas-pd__sh .i { width: 11px; height: 11px; }
.atlas-pd__copied { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .04em; color: var(--fg-2); }
.atlas-pd__copied:empty { display: none; }
.atlas-pd__fix, .atlas-about__fix { font-size: .8125rem; line-height: 1.45; color: var(--fg-2); }
.atlas-about__fix { margin-top: .8em; font-size: .875rem; }
.atlas-pd__fix a, .atlas-about__fix a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.atlas-pd__fix a:hover, .atlas-about__fix a:hover { text-decoration-color: currentColor; }

/* ---------- 13 responsive plate ---------- */
@media (min-width: 1200px) {
  .atlas-plate { --atlas-layout: wide; min-height: clamp(780px, 100svh, 1000px); }   /* ... or beside it */
}
/* short laptop screens (1280 x 720, 1366 x 768): a tighter cartouche leaves the map more room below it */
@media (min-width: 1200px) and (max-height: 860px) {
  .atlas-plate__inner { padding-top: calc(var(--header-h) + 28px); }
  .atlas-head__t { font-size: clamp(3.75rem, 5.6vw, 5.25rem); }
  .atlas-head__dek { font-size: clamp(1.375rem, 1.8vw, 1.75rem); }
  .atlas-head__intro { margin-top: 14px; font-size: .9375rem; }
  .atlas-counts { margin-top: 16px; min-height: 0; }
  .atlas-count dd { font-size: 2.75rem; }
  .atlas-tally { margin-top: 12px; }
}
@media (max-width: 1199.98px) {
  .atlas-head { max-width: 38rem; }
  .atlas-plate__room { flex: none; height: clamp(600px, 62vw, 720px); }
}
@media (min-width: 900px) and (max-width: 1199.98px) {
  .atlas-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); align-items: end; }
  .atlas-head > :not(.atlas-counts) { grid-column: 1; }
  .atlas-counts { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin-top: 0; min-height: 0; }
}
@media (max-width: 1023.98px) {
  .atlas-plate__room { height: clamp(620px, 100vw, 820px); }
}
@media (max-width: 599.98px) {
  .atlas-head::before { display: none; }
  /* the map keeps about three quarters of the screen; its keys and the way down sit at its bottom edge */
  .atlas-plate__room { height: clamp(440px, 75svh - 64px, 600px); }
  .atlas-plate__foot { gap: 8px 14px; padding-top: 10px; }
  .atlas-legend { display: none; }
  .atlas-legend__keys { gap: 4px 12px; }
  .atlas-plate__skip { margin-left: auto; }
  .atlas-legend__txt { display: none; }
  .cn-sector__name { font-size: 1.0625rem; }
  .cn-node__label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-band__still img, .cn-node__label, .cn-sector__name { transition: none; }
  .atlas-sector:hover .atlas-band__still img { transform: none; }
}
