/* ==========================================================================
   Deconstructing Design — layout, components, pages
   Load order: reset.css -> tokens.css -> style.css
   ========================================================================== */

/* Webfonts: loaded from Google Fonts in header. If offline, the stack in
   tokens.css falls back to Georgia / Inter-like system faces gracefully. */

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--text-body);
  background: var(--surface-page);
  /* subtle earthen paper texture via layered gradients, no image files */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(86,140,135,0.05), transparent 40%),
    radial-gradient(circle at 88% 8%,  rgba(166,49,23,0.045), transparent 38%);
  background-attachment: fixed;
}

/* ---------- Utilities ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2.5rem, var(--wrap-wide)); margin-inline: auto; }
.flow > * + * { margin-top: var(--sp-4); }
.flow-lg > * + * { margin-top: var(--sp-6); }
.measure { max-width: var(--measure); }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-7); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: var(--sp-4); top: -4rem; z-index: 999;
  background: var(--surface-ink); color: var(--text-on-dark);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* Global focus visibility (3:1 UI rule satisfied by terracotta ring) */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* ---------- Typographic elements ---------- */
h1, .h1 { font-family: var(--font-display); font-size: var(--step-4); font-weight: 600; color: var(--text-strong); letter-spacing: -0.01em; }
h2, .h2 { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; color: var(--text-strong); }
h3, .h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; color: var(--text-strong); }
h4, .h4 { font-family: var(--font-body); font-size: var(--step-1); font-weight: 600; color: var(--text-strong); letter-spacing: 0.01em; }
.lede { font-size: var(--step-1); color: var(--text-strong); font-weight: 400; }

a.text-link { color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; transition: color var(--dur) var(--ease); }
a.text-link:hover { color: var(--link-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  padding: 0.7em 1.4em; border-radius: var(--radius);
  border: 2px solid transparent; text-decoration: none;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  line-height: 1;
}
/* A button is inline-flex, so one long unbreakable token (a bare domain, a
   long label) sets its min-content width and pushes the page sideways.
   "anywhere" rather than "break-word" because only "anywhere" lowers the
   intrinsic minimum; break-word alone leaves the overflow in place. */
.btn { max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--surface-terracotta); color: var(--text-on-terra); }
.btn--primary:hover { background: #8f2913; }
.btn--teal { background: var(--surface-teal); color: var(--text-on-teal); }
.btn--teal:hover { background: #2b5f5f; }
.btn--ghost { background: transparent; color: var(--text-strong); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-ink); color: var(--text-on-dark); border-color: var(--surface-ink); }
.btn--ghost-light { background: transparent; color: var(--text-on-dark); border-color: var(--text-on-dark); }
.btn--ghost-light:hover { background: var(--c-sand); color: var(--text-strong); }
.btn--sm { font-size: var(--step--1); padding: 0.55em 1.1em; }


/* ==========================================================================
   TOUCH TARGETS — asked of the POINTER, not of the device
   A mouse lands on a 20px link; a thumb does not. WCAG 2.5.8 asks for 24px
   and a thumb is happier with more, so standalone navigation grows a row to
   sit in wherever the pointer is coarse. Nothing here applies to a desktop
   with a mouse: the layout there is untouched.

   SCOPED TIGHTLY. Padding on an inline link extends its hit area over the
   line above and below, so a link INSIDE A SENTENCE is deliberately left
   alone — which is the case WCAG exempts anyway. Only links standing on
   their own are widened: breadcrumbs, list rows, and a paragraph whose only
   content is the link.
   ========================================================================== */
@media (pointer: coarse) {
  .breadcrumb a { display: inline-block; padding-block: 0.3rem; }
  li > a:not(.btn):not(.door__link):not(.home-work__item) {
    display: inline-block; padding-block: 0.3rem;
  }
  p > a.text-link:only-child { display: inline-block; padding-block: 0.35rem; }
  /* 18px wide is the numeral itself; the row is already tall enough. */
  .colophon__n { padding-inline: 0.4rem; }
}

/* ==========================================================================
   LONG UNBREAKABLE TOKENS MUST NOT STRETCH THE PAGE
   A URL, a file path or an email address is a single token. With no rule
   here it sets the MIN-CONTENT width of whatever holds it, that floor
   propagates up through every auto-sized grid column and flex item, and the
   document grows wider than the viewport -- which is a horizontal scrollbar
   on a phone, from one link in a paragraph.

   break-word only breaks a word that would otherwise overflow, so ordinary
   prose wraps exactly as before. Code is set to anywhere because a path is
   meant to be read in place, not to push the layout sideways.
   ========================================================================== */
body { overflow-wrap: break-word; }
code, kbd, samp, pre { overflow-wrap: anywhere; }

/* ==========================================================================
   HEADER + PRIMARY NAV
   Used on: every page (via includes/header.php)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--c-sand-050) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); padding-block: var(--sp-3);
}
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--text-strong); }
/* The mark is 266x305, taller than it is wide, so it is sized by HEIGHT and
   keeps its own proportion; the old placeholder was a 40x40 tile and a square
   rule here would squash the D's. <picture> is an inline wrapper by default,
   which would sit on the text baseline inside the flex row, so it is made a
   flex item of its own. */
.brand__art { display: inline-flex; flex: none; }
.brand__mark { height: 40px; width: auto; flex: none; }
/* The footer mark is a bare <img>, not a <picture>: its ground is dark in
   both schemes, so it is always the on-dark file. */
.footer-mark__img { height: 24px; width: auto; display: block; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1; }
.brand__sub { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }

.nav-toggle { display: none; }

.primary-nav ul { display: flex; gap: var(--sp-4); align-items: center; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  text-decoration: none; color: var(--text-strong); font-weight: 500; font-size: var(--step--1);
  letter-spacing: 0.02em; padding: var(--sp-2) 0; position: relative;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--accent); transition: right var(--dur) var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after,
.primary-nav li.is-current > a::after { right: 0; }
.primary-nav a[aria-current="page"],
.primary-nav li.is-current > a { color: var(--accent); }

/* the quiet Support item sits at the end, slightly set apart, never shouting */
.primary-nav .nav-support a {
  border: 1.5px solid var(--rule-warm); border-radius: var(--radius);
  padding: 0.4em 0.9em; color: var(--accent-warm);
}
.primary-nav .nav-support a::after { display: none; }
.primary-nav .nav-support a:hover { background: var(--surface-ochre); color: var(--text-on-ochre); border-color: var(--surface-ochre); }

/* NFT nav item mute: when body has .nft-muted, hide the link entirely.
   Toggle documented in the master file + includes/config.php. */
body.nft-muted .nav-nft { display: none !important; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    font-weight: 600; color: var(--text-strong); padding: var(--sp-2);
  }
  .nav-toggle__box { width: 26px; height: 2px; background: var(--text-strong); position: relative; display: block; }
  .nav-toggle__box::before, .nav-toggle__box::after { content: ""; position: absolute; left: 0; width: 26px; height: 2px; background: var(--text-strong); }
  .nav-toggle__box::before { top: -8px; } .nav-toggle__box::after { top: 8px; }
  .primary-nav {
    position: fixed; inset: 4.2rem 0 auto 0; background: var(--surface-ink);
    max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease);
  }
  .primary-nav.open { max-height: 80vh; overflow-y: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--sp-4); }
  .primary-nav a { color: var(--text-on-dark); padding: var(--sp-4); border-bottom: 1px solid rgba(217,199,167,0.15); }
  .primary-nav a[aria-current="page"],
  .primary-nav li.is-current > a { color: var(--c-sand); }
  .primary-nav .nav-support a { border-color: var(--c-sand); color: var(--c-sand); margin-top: var(--sp-3); text-align: center; }
}

/* ==========================================================================
   HERO  (Home)  — the signature: a "living ground" section where the
   reinvestment cycle is the first thing you meet.
   ========================================================================== */
.hero { position: relative; overflow: clip; background: var(--surface-ink); color: var(--text-on-dark); }
.hero__inner { padding-block: var(--sp-9) var(--sp-8); position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-7); align-items: center; }
/* Headings on the dark hero. h1 was the only level covered here, because no
   deeper heading had ever been placed in a hero — so an h2 dropped in got the
   global heading color, --text-strong, which IS the hero's background. It
   rendered espresso on espresso: present, selectable, and invisible.
   Dark panels have had this rule since the start (see .panel--ink h2 below);
   the hero and the page head simply never got it. */
.hero h1, .hero h2, .hero h3, .hero h4 { color: var(--c-white); }
.hero h1 { font-size: var(--step-5); }
.hero h1 em { font-style: italic; color: var(--c-sand); }
.hero__lede { color: var(--text-on-dark); font-size: var(--step-1); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
/* soil strata bands behind hero, drawn with gradients (no images) */
.hero__strata { position: absolute; inset: 0; z-index: 1; opacity: 0.5;
  background:
    linear-gradient(180deg, transparent 55%, rgba(166,87,18,0.35) 55%, rgba(166,87,18,0.35) 68%, transparent 68%),
    linear-gradient(180deg, transparent 72%, rgba(166,49,23,0.30) 72%, rgba(166,49,23,0.30) 82%, transparent 82%),
    linear-gradient(180deg, transparent 86%, rgba(54,115,115,0.30) 86%, transparent 100%);
}
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FROM GUARDIAN TO GARDEN — interactive four-node cycle (signature element)
   Used on: Home + Support (support uses compact variant)
   ========================================================================== */
.cycle {
  --node: 118px;
  position: relative; aspect-ratio: 1;
  /* The four nodes are centered ON the box edges (translate(-50%,-50%)), so
     each hangs half a node outside the box. The box must reserve that overhang
     itself: on the support page the opaque detail row below was burying the
     bottom node ("03 Take part"), and in a single phone-width column the side
     nodes spilled past the viewport. Width gives the side nodes their room
     inside the column; margin-block gives the top and bottom nodes theirs.
     The widget's rendered footprint now equals its layout footprint. */
  width: min(100% - var(--node), 520px);
  margin-block: calc(var(--node) / 2);
  margin-inline: auto;
}
.cycle__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle__ring { fill: none; stroke: var(--c-sand); stroke-width: 2; stroke-dasharray: 4 7; opacity: 0.5; }
.cycle__arc { fill: none; stroke: var(--accent-warm); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; }
.cycle__node {
  position: absolute; width: var(--node); height: var(--node);
  transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 2px;
  background: var(--surface-teal); color: var(--text-on-teal);
  border: 2px solid rgba(217,199,167,0.6);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.cycle__node:hover, .cycle__node[aria-expanded="true"] { transform: translate(-50%,-50%) scale(1.06); background: var(--surface-terracotta); }
.cycle__node .num { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; opacity: 0.85; }
.cycle__node .verb { font-family: var(--font-display); font-size: var(--step-1); line-height: 1; }
.cycle__node[data-pos="top"]    { left: 50%;  top: 0; }
.cycle__node[data-pos="right"]  { left: 100%; top: 50%; }
.cycle__node[data-pos="bottom"] { left: 50%;  top: 100%; }
.cycle__node[data-pos="left"]   { left: 0;    top: 50%; }
.cycle__hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 44%; aspect-ratio: 1; border-radius: 50%;
  background: var(--surface-raised); color: var(--text-strong);
  display: grid; place-content: center; text-align: center; padding: var(--sp-3);
  box-shadow: var(--shadow-2); border: 1px solid var(--border-soft);
}
.cycle__hub .h { font-family: var(--font-display); font-size: var(--step-0); }
.cycle__hub .s { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.cycle-detail {
  margin-top: var(--sp-5); background: var(--surface-raised); border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent); border-radius: var(--radius); padding: var(--sp-5);
  min-height: 7rem; color: var(--text-body);
}
.cycle-detail h3 { color: var(--accent); margin-bottom: var(--sp-2); }
.cycle-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
@media (max-width: 820px) { .cycle-panel-grid { grid-template-columns: 1fr; } .cycle { --node: 96px; width: min(100% - var(--node), 380px); } }

/* ==========================================================================
   GENERIC SECTIONS, CARDS, GRIDS
   ========================================================================== */
.panel { border-radius: var(--radius-lg); padding: var(--sp-6); }
.panel--ink { background: var(--surface-ink); color: var(--text-on-dark); }
.panel--teal { background: var(--surface-teal); color: var(--text-on-teal); }
.panel--sage { background: var(--surface-sage); color: var(--text-on-sage); }
.panel--ochre { background: var(--surface-ochre); color: var(--text-on-ochre); }
.panel--raised { background: var(--surface-raised); box-shadow: var(--shadow-1); border: 1px solid var(--border-soft); }
.panel--ink h2, .panel--ink h3, .panel--teal h2, .panel--teal h3, .panel--ochre h2, .panel--ochre h3 { color: var(--c-white); }
.panel--ink .eyebrow, .panel--teal .eyebrow { color: var(--c-sand); }
/* Eyebrows on the dark heads. Terracotta #A63117 is 2.52:1 on espresso —
   below AA for small mono text — and had been shipping that way since v1.0:
   panels got the sand override above, the hero and page heads never did.
   The lightened warm (already the dark scheme's accent) is 6.61:1 and keeps
   the hue. Scoped :not() so the one light head keeps true terracotta. */
.hero .eyebrow,
.page-head:not(.page-head--light) .eyebrow { color: var(--accent-warm-on-dark); }

/* And the LINKS in those same dark heads, which that sweep missed. --link is
   a deepened teal tuned for sand and white; on espresso it is 1.88:1, and its
   hover is 2.52:1, so the link was invisible at rest and still failing once
   you found it. This redefines the two TOKENS on the dark context rather than
   restyling a.text-link, so anything inside a dark head that reads --link is
   corrected at once and nothing outside one is touched. Same :not() scope as
   the eyebrow rule, so the one light head keeps the light-ground values. */
.hero,
.page-head:not(.page-head--light) {
  --link:       var(--link-on-dark);     /* 8.29:1 on espresso */
  --link-hover: var(--accent-on-dark);   /* 5.20:1 on espresso */
}

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface-raised); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--rule-warm); }
.card__media { aspect-ratio: 4 / 3; background: var(--c-sand-100); position: relative; }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card__body h3 { font-size: var(--step-1); }
.card__tag { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.card__cta { margin-top: auto; padding-top: var(--sp-3); }

/* Artwork in a card. The program collages are transparent compositions,
   not photographs to crop: they sit contained on the card's sand field with
   a little air, the way the RIP mark and the Guardian portraits do. */
.card__media--art img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 5%;
}
/* ==========================================================================
   THE THREE PROGRAM OPENINGS — one composition each, not a shared grid
   --------------------------------------------------------------------------
   The programs are different kinds of work, and their pages open in
   different registers, each built from the same tokens:

     public art   THE POSTER     the collage hangs off the dark head over the
                                 seam into the sand; billboard statements below
     farming      THE FIELD      the copy runs around the circular collage
                                 (a float with a circular shape-outside),
                                 headed like an almanac's entries
     education    THE WORKSHEET  a drafting sheet with a title block, the
                                 collage pinned across it, lessons numbered

   All three contain the artwork rather than crop it — the collages are
   transparent compositions, not photographs — and all three collapse to a
   single stacked column under 900px.
   ========================================================================== */

/* ---- The poster (public-art.php) ---- */
.feature-poster { overflow: visible; position: relative; z-index: 2; }
.feature-poster__wrap { position: relative; }
.feature-poster__text .lede { max-width: 52ch; }
.feature-poster__art { margin: 0; }
@media (min-width: 900px) {
  .feature-poster__text { max-width: 54%; }
  /* Anchored to the head's top, sized to the wrap, and let to overhang the
     head's bottom edge by design: the poster pasted over the boundary. */
  .feature-poster__art {
    position: absolute; right: 0; top: 0;
    width: min(46%, 600px);
  }
  .feature-poster__art img { width: 100%; height: auto; display: block; }
  /* The section beneath makes room for the overhang under its right column
     only, so the first statement reads immediately beside the artwork. */
  .feature-poster__body .poster-statements { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
  .feature-poster__body .poster-statement:nth-child(2) { margin-top: clamp(140px, 17vw, 260px); }
}
@media (max-width: 899px) {
  .feature-poster__art { margin-top: var(--sp-6); }
  .feature-poster__art img { width: min(100%, 520px); height: auto; display: block; margin-inline: auto; }
}
.poster-statements { display: grid; gap: var(--sp-7); }
.poster-statement { border-top: 2px solid var(--border-strong); padding-top: var(--sp-4); }
.poster-statement__n {
  display: block; font-family: var(--font-mono); font-size: var(--step-2); line-height: 1;
  color: var(--rule-warm); margin-bottom: var(--sp-4);
}
.poster-statement__title { font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.01em; }
.poster-statement__lead {
  margin-top: var(--sp-4); font-family: var(--font-display); font-style: italic;
  font-size: var(--step-1); line-height: 1.3; color: var(--text-strong);
}
.poster-statement > p:not(.poster-statement__lead) { margin-top: var(--sp-3); max-width: 44ch; color: var(--text-body); }

/* ---- A wrapped header (programs/index.php, rip-methodology.php) ----
   A section header with its collage floated right and the copy wrapping the
   collage's curved edge, so the header is as short as the text beside the
   image. The collages are round-ish transparent compositions, so a circle
   shape-outside follows them closely enough. Paragraphs keep a measure of
   their own once they run out from under the float. */
.section-head--wrapped::after { content: ""; display: block; clear: both; }
.section-head--wrapped .measure { max-width: 82ch; }
.wrapped-art { margin: 0; }
.wrapped-art img { width: 100%; height: auto; display: block; }
@media (min-width: 900px) {
  .wrapped-art {
    float: right; width: min(46%, 640px);
    margin: 0 0 var(--sp-3) var(--sp-6);
    shape-outside: circle(50% at 50% 50%); shape-margin: var(--sp-5);
  }
}
/* The pillars collage is squarer than a circle — its piers run to the
   corners — so it keeps a rectangular clearance instead. */
.wrapped-art--square { shape-outside: margin-box; }
@media (max-width: 899px) {
  .wrapped-art { width: min(100%, 560px); margin: 0 auto var(--sp-5); }
}

/* ---- The origin row (about/index.php): keynote and wall in plan ---- */
.origin { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 900px) {
  .origin { grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-8); }
  .origin__note { margin-top: var(--sp-8); }      /* hung a step lower, like a margin note */
}
.origin__title { font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.01em; }
.origin__title em { display: block; font-style: italic; font-weight: 400; color: var(--c-ochre); }   /* 4.6:1 on sand-050; large text */
@media (prefers-color-scheme: dark) { .origin__title em { color: var(--accent-warm); } }
/* The keynote: a numbered hexagon — the drafting symbol for a note the
   drawing points to. Inline after the sentence it annotates; a larger twin
   sits on the note's corner. */
.keynote {
  display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-left: 0.4em;
  vertical-align: 0.3em; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; line-height: 1;
  color: var(--text-on-terra); background: var(--accent); text-decoration: none;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transition: background var(--dur) var(--ease);
}
.keynote:hover { background: var(--surface-ink); }
.origin__note { position: relative; }
.keynote--badge {
  position: absolute; top: -0.9rem; left: var(--sp-5); width: 1.8rem; height: 1.8rem; margin: 0;
  font-size: 0.75rem; color: var(--text-on-dark); background: var(--surface-ink);
}
/* The wall in plan along the row's foot: a double line with three openings,
   each with its leaf and swing. Espresso pens; the swings in deep teal, as on
   the support head's doors motif. */
.wall-plan { display: block; width: 100%; height: auto; margin-top: var(--sp-7); overflow: visible; }
.wall-plan__wall { fill: none; stroke: var(--text-strong); stroke-width: 2; stroke-opacity: 0.8; }
.wall-plan__jamb { fill: none; stroke: var(--text-strong); stroke-width: 2; }
.wall-plan__leaf { fill: none; stroke: var(--text-strong); stroke-width: 2.5; stroke-opacity: 0.8; }
.wall-plan__swing { fill: none; stroke: var(--link); stroke-width: 2; stroke-dasharray: 3 6; }
.wall-plan__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--text-body); }

/* ---- The three doors (about/index.php): a level register ----
   No frames, no plates: the collages float on the white row, and each door is
   an editorial entry — mono index, display title, a line, the way in. The
   whole entry is one link; the rule above each is the site's hairline, and it
   takes the accent on hover along with the title. Motion restraint: the lift
   is the site's 2px, nothing more.

   IT USED TO BE A STAIRCASE. Each column started var(--sp-8) lower than the
   last so the row read as a sequence left to right. It cost 137px: the third
   door carried 9rem of padding above it, the register was as tall as the
   TALLEST door plus that padding (855px against 718px of content), and the
   third door's button was pushed past the section's foot and clipped.

   The three doors are not a sequence — they are three ways in, and a reader
   picks one. Level, they read as the three choices they are, the row is the
   height of its own content, and every button lands on the same line.
   Both other registers had already opted out of the stagger
   (.doors--select, .doors--pair), so this rule was the last thing using it. */
.doors { list-style: none; padding: 0; margin: var(--sp-7) 0 0; display: grid; gap: var(--sp-7); }
@media (min-width: 900px) {
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-7); align-items: start; }
}
/* .door__panel is a door that is not a link: it carries the same glyph, rule
   and stack, so a door you press and a door that holds a field of its own sit
   on exactly the same lines. It takes none of the link's hover behaviour. */
.door__link, .door__panel {
  display: grid; gap: var(--sp-3); text-decoration: none; color: inherit;
  padding-top: var(--sp-4); border-top: 1px solid var(--border-strong);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.door__link:hover { transform: translateY(-2px); border-top-color: var(--accent); }
.door__link:hover .door__title { color: var(--accent); }
.door__link:hover .door__cta { background: var(--surface-ink); color: var(--text-on-dark); border-color: var(--surface-ink); }
/* The glyph above the hairline: drawn in the pen, takes the accent with
   the title on hover. */
.door__glyph { width: 44px; height: 44px; fill: none; stroke: var(--text-strong); stroke-width: 1.5; stroke-linejoin: round; margin-top: calc(-1 * var(--sp-4) - 44px - var(--sp-3)); margin-bottom: var(--sp-4); transition: stroke var(--dur) var(--ease); }
.door__glyph .door__glyph-fill circle { fill: var(--text-strong); stroke: none; transition: fill var(--dur) var(--ease); }
.door__link:hover .door__glyph { stroke: var(--accent); }
.door__link:hover .door__glyph .door__glyph-fill circle { fill: var(--accent); }
.door__link, .door__panel { margin-top: calc(44px + var(--sp-3)); }    /* room for the glyph above the rule */
.door__panel > form { display: grid; gap: var(--sp-3); }
.door__art { margin: 0 0 var(--sp-2); width: min(100%, 420px); }
.door__art img { width: 100%; height: auto; display: block; }
.door__n { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.2em; color: var(--rule-warm); }
.door__title { font-size: var(--step-2); line-height: 1.08; letter-spacing: -0.01em; transition: color var(--dur) var(--ease); }
.door__title em { font-style: normal; font-weight: 400; color: var(--rule-warm); }
.door__line { color: var(--text-body); max-width: 30ch; margin: 0; }
.door__cta { justify-self: start; margin-top: var(--sp-2); }
@media (max-width: 899px) { .door__art { width: min(100%, 360px); } }

/* ---- The intake (engage/index.php, contact.php): one form, three ways ----
   Chips and hints reuse the contribution form's classes; the way-specific
   fields show for the checked way by :has() and all show, all optional,
   where :has() is unsupported or nothing is checked yet. */
.intake { scroll-margin-top: 6rem; }
.intake__form { display: grid; gap: var(--sp-5); }
.intake__ways { border: 0; padding: 0; margin: 0; }
.intake__ways legend { font-weight: 600; color: var(--text-strong); font-size: var(--step--1); margin-bottom: var(--sp-3); }
.intake__who { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 620px) { .intake__who { grid-template-columns: 1fr; } }
.intake__opt { font-weight: 400; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-body); opacity: 0.8; }
.intake__actions { display: grid; gap: var(--sp-3); justify-items: start; }
.intake__form:has(input[name="way"]) .way-field { display: none; }
.intake__form:has(input[value="partner"]:checked)   .way-field[data-way="partner"],
.intake__form:has(input[value="volunteer"]:checked) .way-field[data-way="volunteer"] { display: flex; }
/* The intake row: head beside form on wide screens. */
.intake-grid { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) { .intake-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-8); } .intake-grid__head { margin-bottom: 0; } }
/* The three ways: the doors register without artwork, glyphs stroked as on the About page. */
.doors--ways .door__link { padding-top: var(--sp-4); }

/* A matched pair: two doors of equal weight, level with each other, so their
   glyphs, rules and titles each sit on one line across the page. */
@media (min-width: 900px) {
  .doors--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- The doors AS the form's control (engage/index.php) ----
   The same register, but each door is a radio label rather than a link, so
   choosing a door IS choosing the way and the page carries one copy of the
   three choices instead of two. :has() gives the chosen state; where it is
   unsupported the radio still works and every field shows, as before.

   THE CHOSEN DOOR HAS TO READ AS CHOSEN. It used to change three colours and
   fade a marker in, and nothing else in the register moved — so the state
   was legible only if you already knew which colour to look for. It reads as
   a section drawing now: a heavy accent rule is DRAWN across the top of the
   door the plane passes through, that door holds the 2px the hover only
   offered, and the other two doors' DRAWINGS step back. Only their drawings.
   See the note above the recede rules. */
.doors--select { margin-top: var(--sp-6); }
.doors--select .door__link { cursor: pointer; position: relative; }
.doors--select .door__input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.doors--select .door__link:has(.door__input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 4px; border-radius: 2px; }

/* THE CUT LINE. The chosen door's hairline is overdrawn by a heavy accent
   rule, and it is drawn — left to right, on the press — rather than simply
   appearing: the section pen arriving on the one door the plane cuts
   through. Absolute, so the pseudo-element is NOT a grid item in the label's
   own grid and adds no row; top:-1px so it lands ON the hairline instead of
   under it; var(--dur) is 0ms under prefers-reduced-motion, so with motion
   suppressed the line is just there and nothing is lost. The hairline still
   takes the accent underneath, which is what a browser without :has() would
   have shown and what shows if the pseudo-element is ever suppressed. */
.doors--select .door__link::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 3px;
  background: var(--accent); pointer-events: none;
  transition: width var(--dur) var(--ease);
}
.doors--select .door__link:has(.door__input:checked)::before { width: 100%; }

/* Pressed, the door keeps the 2px that hovering only offered — the lift
   stops being a preview and becomes the state. The glyph fills the way hover
   fills it and the number takes the accent, so rule, drawing, number, title
   and marker all move as one thing rather than three colours changing. */
.doors--select .door__link:has(.door__input:checked) {
  border-top-color: var(--accent); transform: translateY(-2px);
}
.doors--select .door__link:has(.door__input:checked) .door__title { color: var(--accent); }
.doors--select .door__link:has(.door__input:checked) .door__n { color: var(--accent); }
.doors--select .door__link:has(.door__input:checked) .door__glyph { stroke: var(--accent); }
.doors--select .door__link:has(.door__input:checked) .door__glyph .door__glyph-fill circle { fill: var(--accent); }

/* AND THE OTHER DOORS STEP BACK — but only their DRAWING does. One mark sets
   in and its neighbours recede is the contract the plat, the registers and
   the increment already run on; this is that contract on the register.

   THE WORDS ARE LEFT AT FULL STRENGTH ON PURPOSE. The unchosen doors are the
   choices still open, and a reader has to be able to read them to change
   their mind — fading a control's own label to signal "not selected" styles
   it out of legibility, which is not a trade this site makes. So the recede
   is held to the glyph and the hairline, neither of which carries meaning
   the label does not also carry.

   Nothing recedes until something is chosen, so all three open equal. And a
   receded door comes back up under the cursor (:not(:hover)), which keeps
   the hover hint working and makes the stepping-back feel held rather than
   spent. */
.doors--select .door__glyph { transition: stroke var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.doors--select:has(.door__input:checked) .door:not(:has(.door__input:checked)) .door__link:not(:hover) { border-top-color: var(--border-soft); }
.doors--select:has(.door__input:checked) .door:not(:has(.door__input:checked)) .door__link:not(:hover) .door__glyph { opacity: 0.38; }
.door__state {
  justify-self: start; margin-top: var(--sp-1);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.door__state::before { content: "\2014\00a0"; }   /* a real gap after the dash */
.doors--select .door__link:has(.door__input:checked) .door__state { opacity: 1; }
/* The form beneath the register: the doors run the full width, the fields
   keep a reading measure under them. */
.intake-wide { margin-top: var(--sp-5); }
.intake-wide .intake__form > *:not(.intake__ways) { max-width: 46rem; }

/* ---- The field (farming.php) ---- */
.feature-field::after { content: ""; display: block; clear: both; }
.feature-field__art { margin: 0; }
@media (min-width: 720px) {
  .feature-field__art {
    float: left; width: min(56%, 680px);
    shape-outside: circle(50% at 50% 50%); shape-margin: var(--sp-6);
    margin: 0 var(--sp-6) var(--sp-4) 0;
  }
}
@media (max-width: 719px) {
  .feature-field__art { width: min(100%, 520px); margin: 0 auto var(--sp-5); }
}
.feature-field__art img { width: 100%; height: auto; display: block; }
.feature-field__label {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-top: var(--sp-6);
}
.feature-field__label:first-of-type { margin-top: var(--sp-5); }
.feature-field__title { margin-top: var(--sp-2); font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.01em; }
.feature-field__title em { font-style: italic; font-weight: 400; color: var(--c-sage); }   /* 3.3:1 on sand-050 — large text only */
@media (prefers-color-scheme: dark) { .feature-field__title em { color: var(--link); } }
.feature-field__lead { margin-top: var(--sp-4); font-size: var(--step-1); line-height: 1.4; color: var(--text-strong); }
.feature-field > p:not(.feature-field__label):not(.feature-field__lead) { margin-top: var(--sp-4); color: var(--text-body); }

/* ==========================================================================
   THE GROUND — three plots, six lines, five markers (pages/programs/index.php
   · includes/render-ground.php · js/ground.js)
   --------------------------------------------------------------------------
   Drawn in the site's drafting language: a faint plat behind everything,
   the programs as hatched plots in their accents, the pillars as pen lines
   labelled along their length, the works as survey markers. Selected states
   are class-driven from the script; with no script every layer sits at its
   resting weight and every reading is open below the drawing.
   ========================================================================== */
.ground { display: grid; gap: var(--sp-6); scroll-margin-top: 6rem;   /* clears the sticky header when a deep link scrolls here */ }
.ground__stage { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 1000px) {
  .ground__stage { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr); gap: var(--sp-7); }
}
.ground__svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Lenses */
.ground__lenses { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.ground__lenses-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-right: var(--sp-2); }
.ground__lens {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5em 1em; border: 1px solid var(--border-soft); border-radius: 40px; color: var(--text-body);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ground__lens:hover { border-color: var(--border-strong); }
.ground__lens[aria-pressed="true"] { background: var(--surface-ink); color: var(--text-on-dark); border-color: var(--surface-ink); }

/* The plat */
.g-plat line { stroke: var(--text-body); stroke-opacity: 0.08; stroke-width: 1; }

/* The plots. Fill is a hatch pattern in the program's accent; the ring is
   the plot's boundary. Resting weight is quiet; selection brings a plot up
   and everything unselected recedes. */
.g-hatch { stroke-width: 1.5; stroke-opacity: 0.22; }
.g-hatch--public-art { stroke: var(--c-teal); }
.g-hatch--farming    { stroke: var(--c-sage); }
.g-hatch--education  { stroke: var(--c-ochre); }
.g-plot { transition: opacity var(--dur) var(--ease); cursor: pointer; }
.g-plot-ring { fill: none; stroke-width: 2; stroke-opacity: 0.6; pointer-events: none; transition: stroke-opacity var(--dur) var(--ease), stroke-width var(--dur) var(--ease); }
.g-plot-ring--public-art { stroke: var(--c-teal); }
.g-plot-ring--farming    { stroke: var(--c-sage); }
.g-plot-ring--education  { stroke: var(--c-ochre); }
.g-plot-ring.is-on, .g-plot-ring.is-near { stroke-opacity: 1; stroke-width: 3; }
[data-ground-enhanced][data-selected] .g-plot:not(.is-on):not(.is-near) { opacity: 0.35; }
[data-ground-enhanced][data-selected] .g-plot-ring:not(.is-on):not(.is-near) { stroke-opacity: 0.3; }

/* The lines: espresso pens at resting weight, the accent when selected. */
.g-line { fill: none; stroke: var(--text-body); stroke-opacity: 0.28; stroke-width: 2; pointer-events: none;
  transition: stroke-opacity var(--dur) var(--ease), stroke-width var(--dur) var(--ease), stroke var(--dur) var(--ease); }
.g-line--sound { stroke-opacity: 0.4; }
.g-line.is-on { stroke: var(--accent); stroke-opacity: 1; stroke-width: 3.5; }
.g-line.is-near { stroke-opacity: 0.7; stroke-width: 2.5; }
[data-ground-enhanced][data-selected] .g-line:not(.is-on):not(.is-near) { stroke-opacity: 0.12; }
.g-line-hit { fill: none; stroke: transparent; stroke-width: 22; cursor: pointer; }
.g-line-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--text-body); fill-opacity: 0.75; pointer-events: none; transition: fill-opacity var(--dur) var(--ease); }
.g-line-label textPath { dominant-baseline: text-after-edge; }
.g-line-label.is-on { fill: var(--accent); fill-opacity: 1; }
[data-ground-enhanced][data-selected] .g-line-label:not(.is-on):not(.is-near) { fill-opacity: 0.3; }

/* The connections: hairlines from each marker to the plots it feeds. */
.g-link { stroke: var(--text-body); stroke-opacity: 0.18; stroke-width: 1; stroke-dasharray: 2 5; pointer-events: none; transition: stroke-opacity var(--dur) var(--ease); }
.g-link.is-on { stroke: var(--accent); stroke-opacity: 0.9; stroke-dasharray: none; stroke-width: 1.5; }
[data-ground-enhanced][data-selected] .g-link:not(.is-on) { stroke-opacity: 0.06; }
[data-ground-enhanced][data-selected-kind="program"] .g-link.is-near { stroke-opacity: 0.6; }

/* Program callouts: leader from the plot's edge to a landing in the margin,
   the name on the landing — the drafting convention. */
.g-callout { transition: opacity var(--dur) var(--ease); }
.g-callout__leader { fill: none; stroke: var(--text-strong); stroke-width: 1.25; transition: stroke var(--dur) var(--ease); }
.g-callout__dot { fill: var(--text-strong); transition: fill var(--dur) var(--ease); }
.g-callout.is-on .g-callout__leader, .g-callout.is-near .g-callout__leader { stroke: var(--accent); stroke-width: 1.75; }
.g-callout.is-on .g-callout__dot, .g-callout.is-near .g-callout__dot { fill: var(--accent); }
.g-callout.is-on .g-name__t { fill: var(--accent); }
[data-ground-enhanced][data-selected] .g-callout:not(.is-on):not(.is-near) { opacity: 0.45; }
/* Program names */
.g-name { pointer-events: none; transition: fill-opacity var(--dur) var(--ease); }
.g-name__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; fill: var(--rule-warm); }
.g-name__t { font-family: var(--font-display); font-size: 26px; font-weight: 600; fill: var(--text-strong); }
[data-ground-enhanced][data-selected] .g-names > .g-name:not(.is-on):not(.is-near) { fill-opacity: 0.45; }

/* The overlaps and the centre */
.g-meet { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--text-body); fill-opacity: 0.85; pointer-events: none; transition: fill-opacity var(--dur) var(--ease); }
.g-meet.is-on { fill: var(--accent); fill-opacity: 1; }
.g-meet--center { font-family: var(--font-display); font-size: 15px; letter-spacing: 0; text-transform: none; fill: var(--text-strong); }
.g-center { fill: var(--surface-raised); stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 5; pointer-events: none; transition: stroke-dasharray var(--dur) var(--ease); }
.g-center.is-on { stroke-dasharray: none; }
.g-center-cross { stroke: var(--accent); stroke-width: 2; pointer-events: none; }
.g-meet-hit { fill: transparent; cursor: pointer; }
[data-ground-enhanced][data-selected] .g-meet:not(.is-on) { fill-opacity: 0.4; }

/* The works: survey markers */
.g-work__dot { fill: var(--surface-raised); stroke: var(--text-strong); stroke-width: 2; transition: fill var(--dur) var(--ease), stroke var(--dur) var(--ease); }
.g-work__cross { stroke: var(--text-strong); stroke-width: 1.5; pointer-events: none; }
.g-work__label { font-family: var(--font-display); font-size: 14px; fill: var(--text-strong); pointer-events: none; }
.g-work.is-on .g-work__dot { fill: var(--accent); stroke: var(--accent); }
.g-work.is-on .g-work__label { fill: var(--accent); }
.g-work-hit { fill: transparent; cursor: pointer; }
.g-work { transition: opacity var(--dur) var(--ease); }
[data-ground-enhanced][data-selected] .g-work:not(.is-on):not(.is-near) { opacity: 0.45; }

/* The Data lens: inputs and outputs, hidden until asked for. Inputs in the
   accent (the record), outputs in deep teal (the change). */
.g-data { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; fill: var(--accent); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); }
.g-data--out { fill: var(--link); }
.g-data__tag { font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 9px; }
@media (prefers-color-scheme: dark) { .g-data--out { fill: var(--link); } }
[data-lens="data"] .g-data { opacity: 1; }
[data-lens="data"] .g-lines, [data-lens="data"] .g-plat { opacity: 0.35; }
[data-lens="art"] .g-lines, [data-lens="art"] .g-plat { opacity: 0.25; }
[data-lens="art"] .g-link { stroke-opacity: 0.55; stroke-dasharray: none; }
[data-lens="art"] .g-work__dot { fill: var(--accent); stroke: var(--accent); }
[data-lens="architecture"] .g-works, [data-lens="architecture"] .g-links, [data-lens="architecture"] .g-meets { opacity: 0.25; }
[data-lens="architecture"] .g-line { stroke-opacity: 0.8; stroke-width: 2.5; }
[data-lens="architecture"] .g-line-label { fill-opacity: 1; }
[data-lens="architecture"] .g-plat line { stroke-opacity: 0.2; }
[data-lens="architecture"] .g-plot { opacity: 0.5; }
.g-lines, .g-links, .g-works, .g-meets, .g-plat, .g-plots { transition: opacity var(--dur) var(--ease); }

/* The readings. Unenhanced: all open, stacked. Enhanced: one cell, one shown. */
.ground__readings { display: grid; gap: var(--sp-6); }
/* A ruled panel, not a card: the readings share one cell when enhanced, so
   the column is as tall as the tallest of them, and a filled card would
   leave a white block under the short ones. Ruled, the empty ground is
   just ground. */
.g-reading {
  display: grid; gap: var(--sp-3); align-content: start;
  padding: var(--sp-4) 0 0; border-top: 3px solid var(--accent);
}
.g-reading--program { border-top-color: var(--c-teal); }
.g-reading--meet { border-top-color: var(--rule-warm); }
.g-reading--work { border-top-color: var(--text-strong); }
.g-reading__kind { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.g-reading__title { font-size: var(--step-2); line-height: 1.1; }
.g-reading > p { color: var(--text-body); margin: 0; }
.g-reading__label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-warm); margin-top: var(--sp-2) !important; }
.g-reading__formats { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.g-reading__formats li { display: flex; gap: var(--sp-3); align-items: baseline; font-family: var(--font-display); color: var(--text-strong); }
.g-reading__fn { font-family: var(--font-mono); font-size: 0.7rem; color: var(--rule-warm); }
.g-reading__pillars { font-family: var(--font-display); color: var(--text-strong) !important; }
.g-reading__format { font-size: var(--step--1); font-style: italic; }
.g-reading__data { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-strong) !important; }
/* The pipeline ledger on a program's reading: input, process, output. */
.g-ledger { margin: var(--sp-2) 0 0; display: grid; gap: 0; border-top: 1px solid var(--border-soft); }
.g-ledger__row { display: grid; grid-template-columns: 5.2rem 1fr; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--border-soft); }
.g-ledger dt { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.g-ledger__row--process dt { color: var(--rule-warm); }
.g-ledger__row--out dt { color: var(--link); }
.g-ledger dd { margin: 0; color: var(--text-body); font-size: var(--step--1); }
.g-ledger__row--in dd { font-family: var(--font-mono); color: var(--text-strong); }
.g-ledger__row--out dd { font-family: var(--font-display); font-size: var(--step-0); color: var(--text-strong); }
.g-reading__works { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.g-reading__works a { font-family: var(--font-display); color: var(--text-strong); text-decoration: none; border-bottom: 1px solid var(--rule-warm); }
.g-reading__works a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.g-reading .dual { margin: var(--sp-2) 0; }
[data-ground-enhanced] .ground__readings { gap: 0; }
[data-ground-enhanced] .g-reading { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity var(--dur) var(--ease); }
[data-ground-enhanced] .g-reading.is-current { visibility: visible; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ground * { transition: none !important; } }

/* The legend: the accessible controls */
.ground__legend { display: grid; gap: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--border-soft); }
@media (min-width: 720px) { .ground__legend { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); } }
.ground__group-head { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-3); }
.ground__group ul { display: grid; gap: 2px; }
.ground__key {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; text-align: left;
  padding: 0.45em 0.6em; border-radius: var(--radius); color: var(--text-body);
  font-family: var(--font-body); font-size: var(--step--1);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ground__key:hover { background: var(--c-sand-100); color: var(--text-strong); }
.ground__key[aria-pressed="true"] { background: var(--surface-raised); color: var(--text-strong); box-shadow: inset 3px 0 0 var(--accent); }
.ground__swatch { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text-body); background: transparent; }
.ground__key--teal .ground__swatch  { border-color: var(--c-teal);  background: color-mix(in srgb, var(--c-teal) 25%, transparent); }
.ground__key--sage .ground__swatch  { border-color: var(--c-sage);  background: color-mix(in srgb, var(--c-sage) 25%, transparent); }
.ground__key--ochre .ground__swatch { border-color: var(--c-ochre); background: color-mix(in srgb, var(--c-ochre) 25%, transparent); }
.ground__key--meet .ground__swatch  { border-style: dashed; border-color: var(--rule-warm); border-radius: 50%; }
.ground__key--line .ground__swatch  { width: 18px; height: 0; border: 0; border-top: 2px solid var(--text-body); border-radius: 0; }
.ground__key--work .ground__swatch  { border-color: var(--text-strong); background: var(--surface-raised); }
.ground__key[aria-pressed="true"] .ground__swatch { border-color: var(--accent); }

/* ==========================================================================
   THE SUBSTRUCTURE — six pillars as a section through made ground
   (pages/programs/rip-methodology.php · includes/render-substructure.php ·
   js/substructure.js)
   --------------------------------------------------------------------------
   A datum line, five hatched piers beneath it with the built element each
   holds up drawn above, the sixth pillar as a wave through all five, and
   the works pinned to the piers. The same pens as the Ground and the
   motifs; the same enhancement contract as the stratigraph.
   ========================================================================== */
.sub { display: grid; gap: var(--sp-6); scroll-margin-top: 6rem;   /* clears the sticky header when a deep link scrolls here */ }
.sub__svg { width: 100%; height: auto; display: block; overflow: visible; }

.sub__lenses { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.sub__lenses-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-right: var(--sp-2); }
.sub__lens {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5em 1em; border: 1px solid var(--border-soft); border-radius: 40px; color: var(--text-body);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.sub__lens:hover { border-color: var(--border-strong); }
.sub__lens[aria-pressed="true"] { background: var(--surface-ink); color: var(--text-on-dark); border-color: var(--surface-ink); }

/* Ground, datum, strata */
.s-strata path { fill: none; stroke: var(--text-body); stroke-opacity: 0.12; stroke-width: 1.5; }
.s-datum { fill: none; stroke: var(--text-strong); stroke-width: 3; }
.s-datum-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--text-body); }
.s-datum-label--below { fill: var(--rule-warm); }

/* Piers: hatched body, ruled edge, a footing; the built element above. */
.s-hatch { stroke: var(--text-body); stroke-opacity: 0.16; stroke-width: 1.5; }
.s-pier { transition: opacity var(--dur) var(--ease); }
.s-pier__body { transition: opacity var(--dur) var(--ease); }
.s-pier__edge { fill: none; stroke: var(--text-body); stroke-opacity: 0.55; stroke-width: 2; transition: stroke var(--dur) var(--ease), stroke-opacity var(--dur) var(--ease), stroke-width var(--dur) var(--ease); }
.s-pier__footing { fill: var(--surface-page); stroke: var(--text-body); stroke-opacity: 0.55; stroke-width: 2; }
.s-surface { fill: none; stroke: var(--text-strong); stroke-opacity: 0.75; stroke-width: 2.5; stroke-linejoin: round; transition: stroke var(--dur) var(--ease), stroke-opacity var(--dur) var(--ease); }
.s-pier__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; fill: var(--rule-warm); }
/* The plain-words caption above each surface element, on clear paper. It
   shares its slot with the Consequence lens's focus terms and yields to them. */
.s-surface-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--text-body); fill-opacity: 0.85; pointer-events: none; transition: fill var(--dur) var(--ease), fill-opacity var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.s-pier.is-on .s-surface-label { fill: var(--accent); fill-opacity: 1; }
[data-lens="consequence"] .s-surface-label { opacity: 0; }
.s-pier__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; fill: var(--text-strong); transition: fill var(--dur) var(--ease); }
.s-pier.is-on .s-pier__edge { stroke: var(--accent); stroke-opacity: 1; stroke-width: 3; }
.s-pier.is-on .s-hatch, .s-pier.is-on .s-pier__body { opacity: 1; }
.s-pier.is-on .s-surface { stroke: var(--accent); stroke-opacity: 1; }
.s-pier.is-on .s-pier__title { fill: var(--accent); }
[data-sub-enhanced][data-selected] .s-pier:not(.is-on) { opacity: 0.55; }
.s-hit { fill: transparent; cursor: pointer; }
.s-hit--wave { fill: none; stroke: transparent; stroke-width: 26; }

/* The sixth: the wave */
.s-wave { fill: none; stroke: var(--accent); stroke-opacity: 0.55; stroke-width: 2.5; stroke-dasharray: 4 7; pointer-events: none; transition: stroke-opacity var(--dur) var(--ease), stroke-width var(--dur) var(--ease); }
.s-wave-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--accent); pointer-events: none; }
.s-sound.is-on .s-wave { stroke-opacity: 1; stroke-width: 3.5; stroke-dasharray: none; }
[data-sub-enhanced][data-selected] .s-sound:not(.is-on) .s-wave { stroke-opacity: 0.3; }
[data-sub-enhanced][data-selected] .s-sound:not(.is-on) .s-wave-label { fill-opacity: 0.5; }

/* The consequence lens: focus terms above the surface, hidden until asked */
.s-cons { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--accent); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); }
[data-lens="consequence"] .s-cons { opacity: 1; }
[data-lens="consequence"] .s-pier__body, [data-lens="consequence"] .s-pier__edge, [data-lens="consequence"] .s-pier__footing, [data-lens="consequence"] .s-pier__title, [data-lens="consequence"] .s-strata { opacity: 0.25; }
[data-lens="consequence"] .s-surface { stroke: var(--accent); stroke-opacity: 1; }
[data-lens="force"] .s-surface { stroke-opacity: 0.35; }
[data-lens="force"] .s-pier__edge { stroke: var(--text-strong); stroke-opacity: 1; stroke-width: 3; }
[data-lens="force"] .s-hatch { stroke-opacity: 0.32; }
[data-lens="force"] .s-works, [data-lens="force"] .s-wave-label { opacity: 0.25; }

/* The work lens: markers, quiet at rest */
.s-work { transition: opacity var(--dur) var(--ease); }
.s-work circle { fill: var(--surface-raised); stroke: var(--text-strong); stroke-width: 2; }
.s-work path { stroke: var(--text-strong); stroke-width: 1.5; }
.s-work text { font-family: var(--font-display); font-size: 12.5px; fill: var(--text-strong); opacity: 0; transition: opacity var(--dur) var(--ease); }
.s-work.is-on circle { fill: var(--accent); stroke: var(--accent); }
.s-work.is-on text, [data-lens="work"] .s-work text { opacity: 1; }
[data-sub-enhanced][data-selected] .s-work:not(.is-on) { opacity: 0.3; }
[data-lens="work"] .s-work { opacity: 1 !important; }
[data-lens="work"] .s-work circle { fill: var(--accent); stroke: var(--accent); }
[data-lens="work"] .s-pier__body, [data-lens="work"] .s-surface, [data-lens="work"] .s-strata { opacity: 0.3; }
.s-works, .s-strata, .s-pier__footing, .s-pier__title { transition: opacity var(--dur) var(--ease); }

/* The legend: six keys in a row */
.sub__legend { display: grid; gap: 2px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: var(--sp-2) 0; }
@media (min-width: 720px) { .sub__legend { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sub__legend { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sub__key {
  display: grid; gap: 2px; text-align: left; padding: 0.6em 0.7em; border-radius: var(--radius);
  color: var(--text-body); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sub__key:hover { background: var(--c-sand-100); color: var(--text-strong); }
.sub__key[aria-pressed="true"] { background: var(--surface-raised); color: var(--text-strong); box-shadow: inset 0 3px 0 var(--accent); }
.sub__key-n { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--rule-warm); }
.sub__key-t { font-family: var(--font-display); font-size: var(--step-0); line-height: 1.2; }

/* The readings: the pillar entries, each with its collage */
.sub__readings { display: grid; gap: var(--sp-8); }
.sub-reading { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) { .sub-reading { grid-template-columns: minmax(320px, 1.1fr) 1fr; gap: var(--sp-7); align-items: center; } }
/* The pillar collages are transparent compositions, not photographs: no
   plate, no padding, no box. They float on the row's own ground at the
   full width of their column, the way the program collages float on their
   pages. Never cropped. */
.sub-reading__art { margin: 0; }
.sub-reading__art img { width: 100%; height: auto; display: block; }
.sub-reading .pillar-entry__head { margin: 0; }
.sub-reading.pillar-entry { border-top: 0; padding-top: 0; }
[data-sub-enhanced] .sub__readings { gap: 0; }
[data-sub-enhanced] .sub-reading { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity var(--dur) var(--ease); }
[data-sub-enhanced] .sub-reading.is-current { visibility: visible; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sub * { transition: none !important; } }

/* ---- The worksheet (education.php): the row is the sheet ----
   Dot-grid paper across the full row over its own sand ground, the ochre
   pin line at the row's top, the title block at the wrap's edges. The
   collage floats transparent on the grid — no plate — and the lessons hang
   off a margin rule as a drawing's annotations. */
.section--sheet {
  background-image: radial-gradient(var(--border-soft) 1px, transparent 1.2px);
  background-size: 24px 24px; background-position: 12px 12px;
  border-top: 5px solid var(--c-ochre);
  padding-block: var(--sp-5) var(--sp-8);
}
.sheet-block {
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  padding-bottom: var(--sp-3); margin-bottom: var(--sp-7);
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-body);
}
.sheet-block span:nth-child(2) { color: var(--accent); }
.sheet-grid { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 900px) { .sheet-grid { grid-template-columns: 1.15fr 1fr; gap: var(--sp-8); } }
.sheet-art { margin: 0; }
.sheet-art img { width: 100%; height: auto; display: block; }
/* The annotations: a margin rule, and each note hung off it by a leader tick. */
.sheet-notes {
  list-style: none; padding: 0 0 0 var(--sp-6); margin: 0;
  display: grid; gap: var(--sp-8);
  border-left: 1px solid var(--border-strong);
}
.sheet-note { position: relative; }
.sheet-note::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-6)); top: 0.55em;
  width: calc(var(--sp-6) - var(--sp-3)); border-top: 1px solid var(--border-strong);
}
.sheet-note__n { display: block; font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.2em; color: var(--rule-warm); }
.sheet-note__title { margin-top: var(--sp-2); font-size: var(--step-3); line-height: 1.02; letter-spacing: -0.01em; }
.sheet-note__title em { font-style: italic; font-weight: 400; color: var(--c-ochre); }   /* 4.6:1 on sand-050; large text */
@media (prefers-color-scheme: dark) { .sheet-note__title em { color: var(--accent-warm); } }
.sheet-note__mode {
  margin-top: var(--sp-3); font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.sheet-note > p:not(.sheet-note__mode) { margin-top: var(--sp-3); color: var(--text-body); max-width: 42ch; }
@media (max-width: 620px) { .sheet-notes { padding-left: var(--sp-5); } .sheet-note::before { left: calc(-1 * var(--sp-5)); width: calc(var(--sp-5) - var(--sp-2)); } }

/* pillar cards on home use a colored top rule that encodes the section */
.pillar { position: relative; }
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--rule-warm); }
.pillar[data-accent="teal"]::before { background: var(--c-teal); }
.pillar[data-accent="sage"]::before { background: var(--c-sage); }
.pillar[data-accent="terra"]::before { background: var(--c-terracotta); }
.pillar[data-accent="ochre"]::before { background: var(--c-ochre); }

/* ---------- Placeholder media (self-contained, no image files) ---------- */
.ph {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  gap: 6px; color: var(--text-on-dark);
  background:
    repeating-linear-gradient(45deg, rgba(38,24,16,0.05) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, var(--c-teal), var(--c-sage));
}
.ph[data-variant="ochre"] { background: repeating-linear-gradient(45deg, rgba(38,24,16,0.06) 0 10px, transparent 10px 20px), linear-gradient(135deg, var(--c-ochre), var(--c-terracotta)); }
.ph[data-variant="ink"] { background: repeating-linear-gradient(45deg, rgba(217,199,167,0.06) 0 10px, transparent 10px 20px), linear-gradient(135deg, #3a2617, var(--c-espresso)); }
.ph[data-variant="sand"] { color: var(--text-strong); background: repeating-linear-gradient(45deg, rgba(38,24,16,0.05) 0 10px, transparent 10px 20px), linear-gradient(135deg, var(--c-sand), var(--c-sand-100)); }
.ph__label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; }
.ph__glyph { font-size: 2rem; line-height: 1; }
.ph__note { font-size: 0.7rem; opacity: 0.75; max-width: 22ch; }

/* ==========================================================================
   BREADCRUMB + PAGE HEADER
   ========================================================================== */
.page-head { background: var(--surface-ink); color: var(--text-on-dark); padding-block: var(--sp-7); }
.page-head h1, .page-head h2, .page-head h3, .page-head h4 { color: var(--c-white); }
.page-head .lede { color: var(--text-on-dark); }
.breadcrumb { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.06em; margin-bottom: var(--sp-3); }
.breadcrumb a { color: var(--c-sand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--accent-warm); }

/* ==========================================================================
   ACCORDION + TABS (Policies, RIP, ArcGIS docs)
   ========================================================================== */
.accordion { border-top: 1px solid var(--border-soft); }
.accordion__item { border-bottom: 1px solid var(--border-soft); }
.accordion__trigger {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-2); font-family: var(--font-display); font-size: var(--step-1); color: var(--text-strong);
}
.accordion__trigger:hover { color: var(--accent); }
.accordion__icon { flex: none; width: 22px; height: 22px; position: relative; }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; background: var(--accent); }
.accordion__icon::before { left: 0; top: 10px; width: 22px; height: 2px; }
.accordion__icon::after { left: 10px; top: 0; width: 2px; height: 22px; transition: transform var(--dur) var(--ease); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: scaleY(0); }
.accordion__panel { overflow: hidden; max-height: 0; transition: max-height var(--dur) var(--ease); }
.accordion__panel-inner { padding: 0 var(--sp-2) var(--sp-5); color: var(--text-body); max-width: var(--measure); }

.tabs__list { display: flex; flex-wrap: wrap; gap: var(--sp-1); border-bottom: 2px solid var(--border-soft); }
.tabs__tab {
  padding: var(--sp-3) var(--sp-5); font-weight: 600; color: var(--text-body);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tabs__tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs__panel { padding-top: var(--sp-5); }
.tabs__panel[hidden] { display: none; }

/* ==========================================================================
   NFT / FOOD GUARDIANS
   ========================================================================== */
.region-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 1000px) { .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .region-grid { grid-template-columns: 1fr; } }
.region-tile {
  position: relative; display: block; text-decoration: none; color: var(--text-on-dark);
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; min-height: 260px;
  border: 1px solid var(--border-soft);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.region-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.region-tile__fill { position: absolute; inset: 0; background: linear-gradient(160deg, var(--c-teal), var(--c-espresso)); }
.region-tile[data-i="1"] .region-tile__fill { background: linear-gradient(160deg, var(--c-ochre), var(--c-espresso)); }
.region-tile[data-i="2"] .region-tile__fill { background: linear-gradient(160deg, var(--c-terracotta), var(--c-espresso)); }
.region-tile[data-i="3"] .region-tile__fill { background: linear-gradient(160deg, var(--c-sage), var(--c-espresso)); }
.region-tile[data-i="4"] .region-tile__fill { background: linear-gradient(160deg, #7a5a2a, var(--c-espresso)); }
.region-tile[data-i="5"] .region-tile__fill { background: linear-gradient(160deg, var(--c-teal), #10233a); }
.region-tile[data-i="6"] .region-tile__fill { background: linear-gradient(160deg, #5a7a30, var(--c-espresso)); }
.region-tile[data-i="7"] .region-tile__fill { background: linear-gradient(160deg, #8f6a1f, var(--c-espresso)); }
.region-tile__body { position: absolute; inset: auto 0 0 0; padding: var(--sp-5); background: linear-gradient(0deg, rgba(38,24,16,0.92), transparent); }
.region-tile__count { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.14em; color: var(--c-sand); }
.region-tile h3 { color: var(--c-white); font-size: var(--step-1); margin-top: 4px; }

.guardian-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--sp-5); }
.guardian {
  background: var(--surface-raised); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.guardian:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--rule-warm); }
.guardian__media { aspect-ratio: 1; background: var(--c-sand-100); position: relative; }
.guardian__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.guardian__name { font-family: var(--font-display); font-size: var(--step-1); color: var(--text-strong); }
.guardian__food { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.guardian__anchor { font-size: var(--step--1); color: var(--text-body); }
.guardian__more { margin-top: auto; padding-top: var(--sp-3); }
.guardian__region { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-warm); }

/* The story is a native <details>. The summary is styled to read like the
   button it replaced, but it needs no JS and cannot desynchronise from its
   panel the way an aria-expanded pair can. */
.guardian__detail { border-top: 1px dashed var(--border-soft); margin-top: var(--sp-3); padding-top: var(--sp-3); }
.guardian__summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 600; font-size: var(--step--1);
  padding: 0.55em 1.1em; border: 2px solid var(--border-strong); border-radius: var(--radius);
  color: var(--text-strong); line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.guardian__summary::-webkit-details-marker { display: none; }   /* Safari */
.guardian__summary::marker { content: ""; }
.guardian__summary:hover { background: var(--surface-ink); color: var(--text-on-dark); border-color: var(--surface-ink); }
.guardian__summary::after { content: "›"; transition: transform var(--dur) var(--ease); }
.guardian__detail[open] .guardian__summary::after { transform: rotate(90deg); }
/* Swap the label without duplicating the control */
.guardian__detail .guardian__summary-close { display: none; }
.guardian__detail[open] .guardian__summary-open { display: none; }
.guardian__detail[open] .guardian__summary-close { display: inline; }
.guardian__detail-inner { padding-top: var(--sp-4); font-size: var(--step--1); color: var(--text-body); }
.guardian__detail-inner > * + * { margin-top: var(--sp-3); }

.earmark-callout {
  background: var(--surface-teal); color: var(--text-on-teal);
  border-radius: var(--radius-lg); padding: var(--sp-6); border-left: 5px solid var(--c-sand);
}
.earmark-callout h2 { color: var(--c-white); }
.allocation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-4); }
@media (max-width: 620px){ .allocation { grid-template-columns: 1fr 1fr; } }
.allocation__cell { background: rgba(217,199,167,0.12); border: 1px solid rgba(217,199,167,0.3); border-radius: var(--radius); padding: var(--sp-4); text-align: center; }
.allocation__pct { font-family: var(--font-display); font-size: var(--step-3); color: var(--c-sand); line-height: 1; }
.allocation__label { font-size: var(--step--1); margin-top: var(--sp-2); }

/* ==========================================================================
   ARCGIS EMBEDS  (Maps, Research)
   ========================================================================== */
/* Embeds size responsively to the viewer's screen instead of being locked to a
   fixed aspect ratio or a narrow max-width. Height scales with the viewport and
   is bounded so maps are never cramped on large screens or too short on small
   ones. `dvh` (dynamic viewport height) is used where supported, with a `vh`
   fallback for older browsers. */
.embed-frame {
  position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-soft); background: var(--c-sand-100);
  box-shadow: var(--shadow-1);
  /* fluid default height: grows with the viewport, clamped for sanity */
  height: clamp(420px, 62vh, 760px);
  height: clamp(420px, 62dvh, 760px);
}
/* Wide interactive maps (Web Map / Experience Builder style) — a bit taller so
   panning room scales up on large monitors. */
.embed-frame--wide { height: clamp(440px, 68vh, 860px); height: clamp(440px, 68dvh, 860px); }
/* Immersive StoryMaps — no narrow cap; they fill the column width and stand
   tall enough to read comfortably, scaling with the screen. */
.embed-frame--story {
  max-width: none; margin-inline: 0;
  height: clamp(520px, 82vh, 1040px);
  height: clamp(520px, 82dvh, 1040px);
}
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Live map containers match the responsive wide-embed sizing. Both selectors
   are kept: #webmap-view for pages written before v1.7, [data-arcgis] for the
   attribute-driven form that allows more than one map per page. */
#webmap-view,
[data-arcgis] {
  position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-soft);
  height: clamp(440px, 68vh, 860px);
  height: clamp(440px, 68dvh, 860px);
}
/* On narrow phones, keep a usable but not overwhelming height. */
@media (max-width: 620px) {
  .embed-frame,
  .embed-frame--wide,
  #webmap-view,
  [data-arcgis] { height: clamp(340px, 60vh, 560px); height: clamp(340px, 60dvh, 560px); }
  .embed-frame--story { height: clamp(420px, 78vh, 680px); height: clamp(420px, 78dvh, 680px); }
}
.embed-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: var(--sp-3); text-align: center; padding: var(--sp-5);
  background: repeating-linear-gradient(45deg, rgba(38,24,16,0.05) 0 12px, transparent 12px 24px), linear-gradient(135deg, var(--c-sage), var(--c-teal)); color: var(--text-on-teal); }
.embed-placeholder code { background: rgba(38,24,16,0.35); padding: 2px 8px; border-radius: var(--radius); font-size: var(--step--1); }

/* ==========================================================================
   FORMS (Contact, Support, Newsletter)
   ========================================================================== */
/* A select is sized by its longest option and an input by its size
   attribute; neither respects a narrow container unless told to. The flex
   parent also needs min-width: 0, or its own auto minimum re-inflates it. */
.field { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
input, select, textarea, button { max-width: 100%; }
select { width: 100%; }
.field label { font-weight: 600; color: var(--text-strong); font-size: var(--step--1); }
.field input, .field textarea, .field select {
  padding: 0.7em 0.9em; border: 1.5px solid var(--border-soft); border-radius: var(--radius);
  background: var(--surface-raised); color: var(--text-body);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.form-note { font-size: var(--step--1); color: var(--text-body); }
.honeypot { position: absolute; left: -9999px; }
.form-status { padding: var(--sp-4); border-radius: var(--radius); margin-top: var(--sp-4); }
.form-status--ok { background: var(--surface-sage); color: var(--text-on-sage); }
.form-status--err { background: var(--surface-terracotta); color: var(--text-on-terra); }

/* Support tiers */
.tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 1000px){ .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px){ .tier-grid { grid-template-columns: 1fr; } }
.tier { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: var(--sp-5); background: var(--surface-raised); display: flex; flex-direction: column; gap: var(--sp-2); }
.tier__price { font-family: var(--font-display); font-size: var(--step-2); color: var(--accent); }
.tier__name { font-family: var(--font-display); font-size: var(--step-1); color: var(--text-strong); }

/* ==========================================================================
   TIMELINE (Milestones)
   ========================================================================== */
.timeline { position: relative; padding-left: var(--sp-6); }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--rule-warm); }
.timeline__item { position: relative; padding-bottom: var(--sp-6); }
.timeline__item::before { content: ""; position: absolute; left: -22px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-terracotta); border: 3px solid var(--surface-page); }
.timeline__year { font-family: var(--font-mono); letter-spacing: 0.1em; color: var(--accent); font-size: var(--step--1); }
.timeline__title { font-family: var(--font-display); font-size: var(--step-1); color: var(--text-strong); margin-top: 2px; }

/* ==========================================================================
   INSTAGRAM GALLERY
   ========================================================================== */
.ig-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
@media (max-width: 700px){ .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ig-cell { aspect-ratio: 1; position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: none; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
/* <dialog> handles its own visibility; ::backdrop replaces the hand-painted
   overlay, and the browser supplies the focus trap and Escape handling. */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(90vw, 900px); width: 100%; color: var(--text-body); }
.lightbox::backdrop { background: rgba(38,24,16,0.9); backdrop-filter: blur(2px); }
.lightbox[open] { display: block; }
.lightbox__inner { position: relative; width: 100%; background: var(--surface-raised); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.lightbox__media { aspect-ratio: 16/10; position: relative; }
.lightbox__caption { padding: var(--sp-4); color: var(--text-body); }
.lightbox__close { position: absolute; top: var(--sp-4); right: var(--sp-4); background: var(--surface-terracotta); color: var(--text-on-terra); width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; z-index: 2; }

/* ==========================================================================
   QUIET DONATE — persistent, understated. Not a popup.
   A small anchored ribbon that stays out of the way and never blocks content.
   ========================================================================== */
.quiet-support {
  position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 90;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--surface-raised); color: var(--text-strong);
  border: 1px solid var(--rule-warm); border-radius: 40px;
  padding: 0.5em 1em; box-shadow: var(--shadow-1); text-decoration: none;
  font-size: var(--step--1); font-weight: 600;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  opacity: 0.94;
}
.quiet-support:hover { transform: translateY(-2px); background: var(--surface-ochre); color: var(--text-on-ochre); border-color: var(--surface-ochre); }
.quiet-support__seed { width: 16px; height: 16px; }
@media (max-width: 560px){ .quiet-support .quiet-support__text { display: none; } .quiet-support { padding: 0.6em; } }

/* ==========================================================================
   FOOTER  — reinvestment tagline lives here on every page
   ========================================================================== */
.site-footer { background: var(--surface-ink); color: var(--text-on-dark); padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-9); }
.site-footer a { color: var(--c-sand); text-decoration: none; }
/* Standalone footer navigation, not links inside a sentence: give them a
   thumb-sized target. The text does not move -- the row grows around it. */
.site-footer li > a { display: inline-block; padding-block: 0.45rem; }
.site-footer a:hover { text-decoration: underline; color: var(--c-white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--c-sand); font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin-bottom: var(--sp-3); }
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-thesis { font-family: var(--font-display); font-size: var(--step-1); color: var(--c-sand); max-width: 34ch; line-height: 1.35; }
.footer-legal { border-top: 1px solid rgba(217,199,167,0.15); margin-top: var(--sp-6); padding-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; font-size: var(--step--1); color: rgba(217,199,167,0.75); }
.footer-mark { display: inline-flex; align-items: center; gap: var(--sp-3); }

/* ==========================================================================
   SCROLL REVEAL
   Progressive enhancement: content is visible by default. Only when JS adds
   the .js class to <html> do we hide-then-reveal. If JS never loads, nothing
   is hidden — the page is fully readable.
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* small helpers */
.stack-sm > * + * { margin-top: var(--sp-3); }
.pill { display: inline-block; font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3em 0.8em; border-radius: 40px; }
.pill--teal { background: var(--surface-teal); color: var(--text-on-teal); }
.pill--sand { background: var(--c-sand-100); color: var(--text-strong); }
.two-col { columns: 2; column-gap: var(--sp-6); }
@media (max-width: 700px){ .two-col { columns: 1; } }
.trademark { font-size: 0.7em; vertical-align: super; }

/* ==========================================================================
   THE COLOPHON — the mark at a size where it is the mark
   (pages/engage/contact.php · includes/render-colophon.php · js/colophon.js)

   The monogram is 40px in the header and 24px in the footer. Its pixel field
   is 10px per cell at the source's own 266x305, so at those sizes the cells
   render at 1.31 and 0.79 css px — sub-pixel, which is to say absent. Here it
   is 260px and they land at 8.52px.

   THE STATEMENT STANDS BESIDE THE MARK, NOT UNDER IT. Three passages stacked
   under a 260px mark made the plate taller than the thing it is about. They
   share one grid cell instead and are stepped through, so the plate is the
   height of the longest passage rather than the sum of three, and stepping
   moves nothing on the page because the cell is already as tall as it will get.

   THE GUTTER IS NOT A RULE. A line down the middle would be a demarcation;
   this is a field with no edge on any side — it fades out top, bottom and both
   flanks, so nothing in it ever resolves into an edge.
   ========================================================================== */
.section--colophon { padding-block: var(--sp-8); }
.colophon { display: grid; gap: var(--sp-5); }
.colophon__eyebrow { color: var(--accent-warm-on-dark); margin: 0; }

.colophon__plate {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, auto) clamp(28px, 5vw, 72px) minmax(0, 1fr);
  align-items: center;
}
/* THREE COLUMNS, AND THE MONOGRAM IS THE HINGE. What the work is FOR on one
   side, what the mark IS on the other, the artwork between them. One state
   drives both faces, because it is one argument — see render-colophon.php for
   the correspondence, which is the organization's own and not imposed. */
@media (min-width: 1100px) {
  .colophon__plate {
    grid-template-columns: minmax(0, 15rem) clamp(28px, 4vw, 56px) auto clamp(28px, 4vw, 56px) minmax(0, 1fr);
  }
  .colophon__concept { grid-column: 1; grid-row: 1; }
  .colophon__mark    { grid-column: 3; grid-row: 1; }
  .colophon__gutter  { grid-column: 4; grid-row: 1; }
  .colophon__read    { grid-column: 5; grid-row: 1; }
}

.colophon__concept { display: grid; gap: var(--sp-3); align-content: center; position: relative; z-index: 2; }
.colophon__concept-head {
  margin: 0; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(217, 199, 167, 0.6);
}
.colophon__terms { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.colophon__term {
  appearance: none; -webkit-appearance: none; background: none; border: 0;
  padding: var(--sp-2) 0; margin: 0; cursor: pointer; font: inherit;
  display: flex; align-items: baseline; gap: var(--sp-3); width: 100%;
  /* THE TERM IS A FLEX ROW THAT COULD NOT WRAP (2026-10-09), so its
     min-content was number + gap + name on one line. At 320px that held the
     whole colophon 341px wide inside a 280px container and the page scrolled
     sideways. Isolated by suppression: hiding the terms list cleared it and
     hiding the mark did not.

     flex-wrap is inert until the row genuinely cannot fit, so nothing moves
     at any width where it already fits -- no breakpoint needed, and the
     number stays beside the name everywhere there is room for it. */
  flex-wrap: wrap; min-width: 0;
  text-align: left; border-top: 1px solid var(--c-espresso-160);
  transition: border-color var(--dur) var(--ease);
}
.colophon__term-n {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em;
  color: rgba(217, 199, 167, 0.5); transition: color var(--dur) var(--ease);
}
.colophon__term-name {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  line-height: 1.1; color: rgba(217, 199, 167, 0.62);
  transition: color var(--dur) var(--ease);
}
.colophon__term:hover .colophon__term-name { color: var(--c-sand); }   /* hover HINTS */
.colophon__term:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 3px; }
.colophon__term.is-on { border-top-color: var(--accent-warm-on-dark); }
.colophon__term.is-on .colophon__term-n,
.colophon__term.is-on .colophon__term-name { color: var(--accent-warm-on-dark); }

/* The term's one line. The full statement is the home page's own section;
   this is the short form, not a second copy of it. */
.colophon__term-pull {
  margin: 0; color: var(--c-sand); font-size: var(--step--1); line-height: 1.5;
  max-width: 30ch;
}
[data-colophon-enhanced] .colophon__concept > .colophon__term-pull {
  grid-area: pull; opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease);
}
[data-colophon-enhanced] .colophon__concept {
  grid-template-areas: "head" "terms" "pull";
}
[data-colophon-enhanced] .colophon__concept-head { grid-area: head; }
[data-colophon-enhanced] .colophon__terms { grid-area: terms; }
[data-colophon-enhanced] .colophon__concept > .colophon__term-pull.is-current { opacity: 1; visibility: visible; }
.colophon__mark { height: 260px; width: auto; display: block; position: relative; z-index: 2; }

/* THE DATUM. The name, faded into the ground, with the two D's the leaders
   point at. Absolutely positioned, so it costs the plate no height at all —
   which is what made it affordable to bring back after the solid lockup beside
   the mark was the main thing making this plate tall.

   The alpha is low enough that the passage copy reading over it stays where it
   was: the suite measures the worst pixel behind that text and holds it to AA,
   so this number is not a taste. */
/* THE DATUM IS THE WHOLE WORD, BOTH OF THEM, COMPLETE.
   A D is not a whole. It is a letter standing for a word, and the monogram is
   an abbreviation twice over: two letters for two words. If the layer behind
   it is also an abbreviation then nothing on the plate is ever the thing
   itself, and the mark has nothing to be measured against.

   This is what the datum is for. The mark abbreviates; the ground completes.
   The leaders then say something true — this letter stands for that word —
   rather than pointing from one D at another D.

   It used to dissolve left to right, on the argument that the tails should be
   gone before they reached the body of the passage. That was a legibility
   worry solving itself at the cost of the idea: it cut both words off a few
   letters after their D, so the ground was an abbreviation of an
   abbreviation. The words run whole now and the alpha carries the legibility
   instead — measured, not guessed: the suite photographs the ground behind
   the passage copy and holds the worst pixel to AA.

   AND THE LETTERS ARE ALL ONE WEIGHT. Lifting the two D's out of their words
   made the ground read "D econstructing", which is the same omission again in
   a different form. A word whose first letter is emphasised is not a word
   being shown whole. The leaders find the D's by position, which is all a
   leader has ever needed. */
.colophon__datum {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  z-index: 0; pointer-events: none; user-select: none;
  padding-left: calc(260px * 266 / 305 + clamp(28px, 5vw, 72px));
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.04;
  letter-spacing: -0.02em; white-space: nowrap;
  color: rgba(244, 238, 226, 0.055);
}
.colophon__datum-line { display: block; }
.colophon__d { color: inherit; }

/* THIS HAS TO SIT AFTER THE BASE RULE, not up in the plate block with the rest
   of the three-column layout. A media query adds no specificity, so placed
   earlier it simply lost on source order: the datum kept its two-column
   offset, both D's landed at the mark's own left edge, and the leaders were
   correctly skipped by their own "too close to key anything" guard. The
   symptom was two missing hairlines; the cause was one declaration in the
   wrong place. */
@media (min-width: 1100px) {
  .colophon__datum { padding-left: calc(15rem + 260px * 266 / 305 + clamp(28px, 4vw, 56px) * 2); }
}

/* The leaders. Nothing until the script measures where the letters landed. */
.colophon__leaders {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; overflow: visible;
}
.colophon__leaders path {
  fill: none; stroke: var(--accent-warm-on-dark); stroke-width: 1; opacity: 0.55;
  transition: stroke-dashoffset var(--dur) var(--ease);
}
.colophon__leaders circle { fill: var(--accent-warm-on-dark); opacity: 0.55; }
[data-colophon-drawn] .colophon__leaders path { stroke-dashoffset: 0 !important; }

/* The breath between the two halves. Radial, so it has no edge anywhere: it
   is at its faintest at every boundary of its own box. */
.colophon__gutter {
  align-self: stretch; min-height: 100%; position: relative; z-index: 1;
  background: radial-gradient(ellipse at center,
              rgba(244, 238, 226, 0.07) 0%,
              rgba(244, 238, 226, 0.03) 45%,
              rgba(244, 238, 226, 0) 72%);
}

.colophon__read { display: grid; gap: var(--sp-4); max-width: 60ch; position: relative; z-index: 2; }

/* The three stations. Numbers, not titles: it is one argument in three moves,
   and a heading on each would break it into three. */
.colophon__index {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--sp-4);
}
.colophon__n {
  appearance: none; -webkit-appearance: none; background: none; border: 0;
  padding: 0 0 var(--sp-2); margin: 0; cursor: pointer; font: inherit;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  color: rgba(217, 199, 167, 0.55);
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.colophon__n:hover { color: var(--c-sand); }           /* hover HINTS, never selects */
.colophon__n:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 3px; }
.colophon__n.is-on { color: var(--accent-warm-on-dark); border-bottom-color: var(--accent-warm-on-dark); }

/* Unenhanced this is the three passages in order — the whole statement. */
.colophon__passages { display: grid; gap: var(--sp-4); }
.colophon__passage {
  margin: 0; color: var(--c-sand);
  font-size: var(--step-0); line-height: 1.55; max-width: 56ch;
}
.colophon__passage em { color: var(--accent-warm-on-dark); font-style: normal; }

/* Enhanced: one cell, one passage at a time, and the cell is already as tall
   as the tallest so stepping reflows nothing under the reader. */
[data-colophon-enhanced] .colophon__passages { gap: 0; }
[data-colophon-enhanced] .colophon__passage {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease);
}
[data-colophon-enhanced] .colophon__passage.is-current { opacity: 1; visibility: visible; }

/* Never folded: the notice is not a step. */
.colophon__tm {
  margin: 0; font-family: var(--font-mono); font-size: 0.66rem;
  line-height: 1.7; letter-spacing: 0.06em; color: rgba(217, 199, 167, 0.72);
}

@media (max-width: 1099px) {
  /* Under three columns the concept goes above the mark rather than beside
     it: a 15rem column squeezed next to a 260px artwork is neither. */
  .colophon__plate { grid-template-columns: auto clamp(28px, 5vw, 72px) minmax(0, 1fr); }
  .colophon__concept { grid-column: 1 / -1; grid-row: 1; margin-bottom: var(--sp-5); }
  .colophon__mark   { grid-column: 1; grid-row: 2; }
  .colophon__gutter { grid-column: 2; grid-row: 2; }
  .colophon__read   { grid-column: 3; grid-row: 2; }
  .colophon__terms { grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--sp-4); }
}
@media (max-width: 900px) {
  .colophon__plate {
    grid-template-columns: 1fr;
    justify-items: start; gap: var(--sp-5);
  }
  .colophon__concept, .colophon__mark, .colophon__read { grid-column: 1; }
  .colophon__concept { grid-row: 1; } .colophon__mark { grid-row: 2; } .colophon__read { grid-row: 3; }
  .colophon__mark { height: 180px; }

  /* Stacked, a field between the two halves would read as a band across the
     plate rather than a breath between columns, so there is simply a gap. */
  .colophon__gutter { display: none; }
  /* And the datum would sit under the mark rather than beside it, where a
     leader reads as an underline rather than a key. Both go; the passages
     carry the argument on their own, which is what they are for. */
  .colophon__datum, .colophon__leaders { display: none; }
}

/* THE CLAIM IS THE REGISTER.
   "Evidence. Access. Agency." is both the section's heading and its control:
   each term is the button for its own reading and carries its number. There
   used to be a station list two lines beneath repeating all three words,
   which is the same claim twice inside four lines.

   The terms stay at FULL STRENGTH in every state. A heading is a claim, and a
   claim with two thirds of it greyed out is no longer the claim — so what
   marks position is the accent on the full stop and the number above it. The
   punctuation was already doing the separating; now it does the pointing too.

   Each term is inline-block, so a line break can only fall BETWEEN terms and
   never inside one: a silo split across two lines is not a silo. */
.claim {
  text-wrap: balance;
  display: flex; flex-wrap: wrap; align-items: flex-end;
  column-gap: 0.4em; row-gap: var(--sp-2);
}
.claim__term {
  appearance: none; -webkit-appearance: none; background: none; border: 0;
  padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit;
  display: grid; justify-items: start; gap: 2px; text-align: left;
}
.claim__n {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em;
  color: var(--rule-warm);                    /* 5.26:1 */
  transition: color var(--dur) var(--ease);
}
.claim__t { display: inline-block; }
/* THE STOPS ARE ALWAYS FULL STRENGTH. They were briefly --c-espresso-400,
   which composites to 2.50:1 on white — under AA, and worse than that, the
   stops are the thing that silos the terms. Two of three faded out and the
   heading went back to reading "Evidence Access Agency" with three grey
   specks. The stop belongs to the claim; only the ACCENT moves. */
.claim__stop {
  color: inherit;                             /* 17.21:1 */
  transition: color var(--dur) var(--ease);
}
/* A HAIRLINE UNDER EACH TERM, always. Nothing is chosen at the start, and
   without a standing affordance a reader has no way to tell a heading from a
   control — which was exactly the problem when the section opened on Evidence
   with the chosen one looking like a title. The rule is the site's own
   hairline at rest, and takes the accent when the term is taken. */
.claim__term { border-bottom: 1px solid var(--border-soft); padding-bottom: var(--sp-2); }
.claim__term:hover { border-bottom-color: var(--rule-warm); }   /* hover HINTS */
.claim__term:hover .claim__n,
.claim__term:hover .claim__stop { color: var(--rule-warm); }
.claim__term:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.claim__term.is-on { border-bottom: 2px solid var(--accent); padding-bottom: calc(var(--sp-2) - 1px); }
.claim__term.is-on .claim__n,
.claim__term.is-on .claim__stop { color: var(--accent); }

.coverage__head { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.coverage__intro { margin: 0; color: var(--text-body); }

/* ==========================================================================
   A MESSAGE FROM THE FOUNDER — pages/about/team.php
   (includes/render-founder.php · includes/founder-message.php)

   Where four placeholder people used to be, and then where a letter I had
   drafted used to be. What is set here is a signed document, verbatim.

   Three of its passages are cascades rather than prose and are set as such:
   the nine transformations, the stated principle, the four spans. Each gets a
   drafting mark — a leader, a rule, a dimension string — because the document
   is already arguing in that language. The measure stays 62ch throughout so
   the cascades read as changes of register inside one letter, not as pull-out
   panels bolted onto it.
   ========================================================================== */
.founder { display: grid; gap: var(--sp-5); }
.founder h2 { margin: 0; }

/* The letter's own parts keep the reading measure. The sheet set below is the
   only thing allowed to use the full wrap, because an index needs somewhere
   to stand. */
.founder__head { display: grid; gap: var(--sp-4); max-width: 62ch; }
.founder__open, .founder__close, .founder__movement { max-width: 62ch; }

/* The governance status, in the site's own status vocabulary — the same way a
   project reads "in development" rather than pretending to be finished. */
.founder__status {
  display: flex; align-items: center; gap: var(--sp-2); margin: 0;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-body);
}
.founder__dot {
  width: 9px; height: 9px; flex: none;
  border: 1.5px solid var(--rule-warm); background: transparent;
}
.founder__sep { color: var(--border-strong); }
.founder__status strong { color: var(--rule-warm); font-weight: 500; }

.founder__note { font-size: var(--step-0); line-height: 1.6; color: var(--text-body); }
.founder__note > * { margin: 0; }
.founder__note > * + * { margin-top: var(--sp-4); }

/* ---- the nine transformations -------------------------------------------
   "Research becomes maps." The input and the output of the method, which is
   the register the coverage field on the home page draws. Each line takes a
   leader from the margin, the way a callout is led to what it names; the
   subject takes the display face so the column of inputs reads down the left.
   The word "becomes" stays in the running text — the split is typographic. */
.founder__becomes {
  display: grid; gap: var(--sp-3); list-style: none;
  margin-block: var(--sp-5); padding-block: var(--sp-5);
  border-block: 1px solid var(--border-soft);
}
.founder__becomes > li { position: relative; padding-left: var(--sp-6); line-height: 1.45; }
.founder__becomes > li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: calc(var(--sp-6) - var(--sp-3)); height: 1px; background: var(--rule-warm);
}
/* THE SUBJECT COLUMN. Every subject starts at one x and every predicate at
   another, so the register reads as a schedule with a single spine — and art
   sits IN the column with the other eight rather than adrift inside a
   sentence. Below this width the line simply flows: a fixed subject column on
   a phone leaves the predicate nowhere to go. */
@media (min-width: 38rem) {
  .founder__becomes > li {
    display: grid; grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: var(--sp-3); align-items: baseline;
  }
  /* a line that did not parse into subject and predicate spans the whole
     measure rather than sitting in half of it */
  .founder__becomes > li.founder__becomes--plain { display: block; }
}

.founder__from {
  font-family: var(--font-display); font-weight: 600; color: var(--text-strong);
}
/* "And" opens the last line because the author is summing the eight above it.
   It stays in the subject cell so the column holds, and stays a connective so
   that "art" reads at the weight of "Research". */
.founder__lead { font-family: var(--font-body); font-weight: 400; color: var(--text-body); }

/* ---- the stated principle -----------------------------------------------
   The paragraph above it ends in a colon and calls it a principle at the
   center of the organization. Set at the weight that claim is making. */
.founder__principle {
  margin-block: var(--sp-5); padding-left: var(--sp-4);
  border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-2);
  line-height: 1.2; color: var(--text-strong);
}

/* ---- the four spans ------------------------------------------------------
   "Between evidence and imagination." A span is a measured thing, so each
   line carries a dimension string: tick, line, tick, drawn as one box with
   inline borders and a centred hairline through it. */
.founder__between {
  display: grid; gap: var(--sp-4); list-style: none; margin-block: var(--sp-5);
}
.founder__between > li {
  position: relative; padding-left: var(--sp-6);
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3;
  color: var(--text-strong);
}
.founder__between > li::before {
  content: ""; position: absolute; left: 0; top: calc(0.56em - 3px);
  width: calc(var(--sp-6) - var(--sp-3)); height: 7px;
  border-inline: 1px solid var(--rule-warm);
  background: linear-gradient(var(--rule-warm), var(--rule-warm)) center / 100% 1px no-repeat;
}

/* ---- the last three lines ------------------------------------------------
   The end of the document, and one gesture rather than three sentences, so
   they are kept together above the signature rule. */
.founder__close {
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--border-soft);
  display: grid; gap: var(--sp-2);
}
.founder__close > p {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-1); line-height: 1.25; color: var(--text-strong);
}
.founder__close > p:last-child { color: var(--accent); }

/* ---- the sheet set -------------------------------------------------------
   Index left, body right. Without the script every movement is visible and
   this is simply a letter with a contents list beside it; the folding is the
   enhancement, and it is the only thing the script does.

   The index is sticky because it is a drawing's sheet index: the point of one
   is that it stays legible while you are looking at a sheet. */
.founder__sheets { display: grid; gap: var(--sp-5); }

@media (min-width: 60rem) {
  .founder__sheets {
    grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
    gap: var(--sp-7); align-items: start;
  }
  .founder__index { position: sticky; top: var(--sp-7); }
}


/* THE TITLE BLOCK. It was a faint mono label with nothing under it, which left
   the register looking like a list that happened to be there rather than one
   with a name. It is a title block now, in the drafting sense: the label, and
   a HEAVIER rule than the hairlines dividing the rows beneath it, which is how
   a sheet separates its title from its schedule.

   The rule is also the one dynamic part, and deliberately the quietest kind:
   it warms when the pointer or the keyboard is anywhere in the register, so
   the title answers the thing it names. It carries no STATE — which movement
   is current is said by the rows, and saying it twice four lines apart is the
   redundancy this page has already been corrected for once. */
.founder__index-head {
  margin: 0 0 var(--sp-3); padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--border-strong);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-strong);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.founder__index:hover .founder__index-head,
.founder__index:focus-within .founder__index-head { border-bottom-color: var(--rule-warm); }

.founder__index-list { list-style: none; margin: 0; padding: 0; display: grid; }

/* ==========================================================================
   THE FOUNDER'S POSTER — the five plates, pasted across the seam
   (pages/about/team.php · includes/render-founder.php :: render_founder_plates)

   The artwork was a column beside the message, which made it a loose element
   next to the page rather than part of it. It is the page's poster now:
   anchored to the top right of the head and let to OVERHANG the head's bottom
   edge into the row below — the same move .feature-poster makes on
   public-art.php and .home-ground makes on the seam of the home page.

   THE HEAD IS THEIR NATIVE GROUND. The collages were authored on black and
   the ground was lifted off them in the build, so on an espresso head the top
   of each plate sits on very nearly the field it was drawn against, and the
   overhang crosses onto the sand. That is the two-ground scrim the home plate
   does by hand, got here for free.

   THE OVERHANG IS SIZED, NOT LEFT TO CHANCE. These are 0.536-aspect portraits:
   at .feature-poster's min(46%, 600px) one would stand 970px tall and reach
   through the register below it. The width is capped so the depth below the
   head lands in the empty right of the message's opening, above the register.
   The suite measures that it clears. */
.founder-poster { overflow: visible; position: relative; z-index: 2; }
.founder-poster__wrap { position: relative; }
.founder-poster__art { margin: 0; position: relative; }
.founder__plate {
  width: 100%; height: auto; display: block;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
/* All five stack in one box so the poster cannot resize as the register
   steps; the first holds the box and the rest are laid over it. */
.founder__plate:not(:first-child) { position: absolute; inset: 0; }
.founder__plate.is-current { opacity: 1; visibility: visible; }

@media (min-width: 60rem) {
  .founder-poster__text { max-width: 60%; }
  .founder-poster__art {
    position: absolute; right: 0; top: var(--sp-6);
    width: min(36%, 400px);
  }
}
/* Below that the head stacks and there is no right margin to hang in, so the
   poster would push the whole message down the page. It does not appear. */
@media (max-width: 59.99rem) {
  .founder-poster__art { display: none; }
}

/* Each sheet is a row with its number in the margin, over a hairline.
   THE RULE GOES UNDER THE ROW, NOT OVER IT (corrected 2026-10-07). These rows
   carried border-TOP, so the accent marking the chosen sheet drew along its
   upper edge and read as belonging to the row above — the comment below even
   claimed it marked itself "the same way the chosen term on the home page"
   while doing the opposite. .claim__term underlines; so does this now. */
.founder__sheet {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: baseline; gap: var(--sp-2);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--border-soft);
  color: var(--text-body); text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.founder__sheet-n {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  color: var(--border-strong);
  transition: color var(--dur) var(--ease);
}
.founder__sheet-t { font-size: var(--step--1); line-height: 1.3; }

.founder__sheet:hover { color: var(--text-strong); }         /* hover HINTS */
.founder__sheet:hover .founder__sheet-n { color: var(--rule-warm); }
.founder__sheet:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* The chosen sheet takes the accent on its number and an UNDERLINE, the same
   way the chosen term on the home page marks itself — 2px with a pixel taken
   back out of the padding, so committing does not nudge the rows below. */
.founder__sheet.is-on {
  color: var(--text-strong);
  border-bottom: 2px solid var(--accent);
  padding-bottom: calc(var(--sp-3) - 1px);
}
.founder__sheet.is-on .founder__sheet-n { color: var(--accent); }
.founder__sheet.is-on .founder__sheet-t { font-family: var(--font-display); font-weight: 600; }

/* The folding. Until the script says it ran, every movement is visible and
   stacked — that is the whole letter, in order, which is the right fallback
   for a letter. */
.founder__movement { position: relative; }
.founder__movement + .founder__movement { margin-top: var(--sp-5); }

/* ONE CELL, SO NOTHING BELOW MOVES.
   The five movements are not the same length — 01 and 03 are short, 02 runs to
   thirteen paragraphs — so folding them by display:none made the closing
   lines, the signature and every governance panel below jump by hundreds of
   pixels on each step. A control that shoves the page out from under the
   reader is worse than the scroll it saved.

   So all five share ONE grid cell. The body is the height of the longest and
   stays there, the way the three readings of the coverage field do. Stepping
   changes what is in the cell and moves nothing at all.

   visibility, NOT display: a visibility:hidden movement still holds its space
   (which is the point) and is still gone from the accessibility tree, from
   find-in-page and from the tab order. */
[data-founder-enhanced] .founder__body { display: grid; }
[data-founder-enhanced] .founder__movement {
  grid-area: 1 / 1; margin-top: 0; visibility: hidden;
}
[data-founder-enhanced] .founder__movement.is-current {
  visibility: visible; animation: founder-in var(--dur) var(--ease) both;
}

/* ---- the ground of each movement ----------------------------------------
   One figure per movement, drawn from something countable in that movement
   (see founder_figure()) — which is the only reason they are here. This site
   does not decorate.

   IT TAKES THE SLACK, NOT THE TEXT. The first build laid the figure across
   the whole movement with the copy on top. It measured fine — the body copy
   still cleared AA on the worst actual pixel — and it looked wrong: horizontal
   marks behind horizontal lines of type read as highlighter, not as ground.
   Measuring something is not the same as looking at it.

   So the movement is a column: copy at the top, figure at the bottom, and the
   slack a short movement leaves becomes air between them. Nothing is ever
   drawn behind a word.

   IT FOLLOWS THE COPY, AND GROWS A LITTLE INTO THE SLACK. Two wrong turns
   got here. Letting it stretch freely handed the shortest movement a 938px
   drawing — a figure that changes size with whatever room is left is not a
   figure of anything. Pinning it to the bottom with margin-top:auto fixed the
   size and opened 300px of void in the MIDDLE of the cell, which reads as a
   mistake; the same space at the BOTTOM reads as section padding.

   So: it sits right under the copy, grows from 9rem to at most 15rem, and any
   remaining slack falls below it where it is indistinguishable from padding. */
[data-founder-enhanced] .founder__movement { display: flex; flex-direction: column; }
.founder__figure {
  flex: 1 1 auto; min-height: 9rem; max-height: 15rem; margin-top: var(--sp-6);
  width: 100%; color: var(--rule-warm); opacity: 0.4;
  pointer-events: none;
}
/* vector-effect is NOT an inherited property, so putting it on the <svg> did
   nothing and every stroke scaled with the box — 1px became an 8px band. */
.founder__figure line { vector-effect: non-scaling-stroke; }

/* Unenhanced the movements are in normal flow at their own heights, so there
   is no slack to fill and a figure would only sit under live copy. */
.founder:not([data-founder-enhanced]) .founder__figure { display: none; }

/* The movement takes focus when an index item is activated, so it needs a ring
   for the keyboard and none for the mouse — which is exactly what
   :focus-visible is for. */
.founder__movement:focus { outline: none; }
.founder__movement:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: var(--sp-3); }

@keyframes founder-in {
  from { opacity: 0; transform: translateY(var(--sp-2)); }
  to   { opacity: 1; transform: none; }
}

/* The sign-off sits under a short rule, the length of a signature line on a
   drawing rather than the full measure. */
.founder__sign {
  margin: var(--sp-3) 0 0; padding-top: var(--sp-4);
  border-top: 1px solid var(--border-strong); max-width: 34ch;
  display: grid; gap: 2px;
}
.founder__name {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  line-height: 1.1; color: var(--text-strong);
}
.founder__role {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-body);
}

/* ---- the name opens the bio ---------------------------------------------
   The board's bios are still in preparation and the founder's exists, so it
   is published rather than held back to arrive with theirs.

   The signature is where a reader asks "who wrote this?", so the name is the
   control. It is a real <button> reset to look like the signature it already
   was, and it takes the site's own register affordance: a hairline at rest
   that becomes the accent when open, exactly as .claim__term and
   .founder__sheet do. Hover only hints. */
.founder__name--opens {
  appearance: none; -webkit-appearance: none; background: none; border: 0;
  padding: 0 0 var(--sp-1); margin: 0; cursor: pointer; text-align: left;
  font: inherit; font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-1); line-height: 1.1; color: var(--text-strong);
  border-bottom: 1px solid var(--border-strong);
  /* inline, NOT inline-flex: as a flex container the name and the mark are two
     items, so the moment the name wrapped the text took the full width and
     threw the mark out to the right-hand edge, floating on its own. Inline
     keeps it attached to the last word. */
  display: inline;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.founder__name--opens:hover { border-bottom-color: var(--rule-warm); }
.founder__name--opens:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.founder__name--opens[aria-expanded="true"] { border-bottom-color: var(--accent); }

/* The mark says which way the control goes without adding a word: a plus that
   loses its upright when the bio is open. */
.founder__name-mark {
  position: relative; display: inline-block; width: 11px; height: 11px;
  margin-left: var(--sp-2); vertical-align: middle;
}
.founder__name-mark::before,
.founder__name-mark::after {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 11px; height: 1.5px; background: var(--rule-warm);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.founder__name-mark::after { transform: rotate(90deg); }
.founder__name--opens[aria-expanded="true"] .founder__name-mark::before,
.founder__name--opens[aria-expanded="true"] .founder__name-mark::after {
  background: var(--accent);
}
.founder__name--opens[aria-expanded="true"] .founder__name-mark::after { transform: rotate(0deg); }

.founder__bio {
  max-width: 62ch; margin-top: var(--sp-5);
  padding-left: var(--sp-5); border-left: 2px solid var(--accent);
}
.founder__bio:focus { outline: none; }
.founder__bio:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: var(--sp-3); }
@media (prefers-reduced-motion: no-preference) {
  .founder__bio:not([hidden]) { animation: founder-in var(--dur) var(--ease) both; }
}

/* ==========================================================================
   THE CONCEPT NOTE — a positional marker
   (includes/render-coverage.php :: render_concept_note)

   The three terms drawn as a run of stations, with the page's own position
   filled and the other two left open. Deliberately NOT interactive: the
   stepped versions are on the home page and on About, and a third would be
   repetition dressed as a feature. The job here is to place a page.
   ========================================================================== */
.concept-note {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid var(--border-soft);
  display: grid; gap: var(--sp-3); max-width: 62ch;
}
.concept-note__head {
  margin: 0; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--rule-warm);
}

/* The run. One hairline through three stations, so the terms read as an
   order rather than as a list of tags. */
.concept-note__run {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0;
}
.concept-note__step {
  display: flex; align-items: center; gap: var(--sp-2);
  padding-right: var(--sp-3);
}
/* the rule between stations, drawn by the step itself so it cannot outrun
   the last one */
.concept-note__step:not(:last-child)::after {
  content: ""; width: clamp(16px, 4vw, 46px); height: 1px;
  background: var(--border-soft); margin-left: var(--sp-3);
}
.concept-note__dot {
  width: 9px; height: 9px; flex: none;
  border: 1.5px solid var(--border-strong); background: transparent;
}
.concept-note__name {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-body);
}
.concept-note__step.is-here .concept-note__dot {
  background: var(--accent); border-color: var(--accent);
}
.concept-note__step.is-here .concept-note__name { color: var(--accent); }

.concept-note__line { margin: 0; color: var(--text-body); }
.concept-note__out { margin: 0; font-size: var(--step--1); }

@media (max-width: 599px) {
  .concept-note__step:not(:last-child)::after { display: none; }
  .concept-note__step { padding-right: var(--sp-4); }
}

/* ==========================================================================
   THE COVERAGE — evidence · access · agency
   (index.php / home.php · includes/render-coverage.php · js/coverage.js)

   One field of cells standing for a record: each cell is something that could
   have been measured. The same field is read three ways, because the argument
   is that a record means different things depending on who can reach it.

     evidence  marks where something was recorded, gaps where nothing was.
     access    only the reachable window stays lit; the rest is still there
               and still out of reach, which is not the same as absent.
     agency    the gaps fill in — new evidence, in the accent, made where the
               existing systems recorded nothing.

   Every state is pure CSS off [data-term]; the script sets that attribute and
   nothing else. 240 rectangles are not somewhere to run JavaScript.
   ========================================================================== */
.coverage { display: grid; gap: var(--sp-5); margin-top: var(--sp-6); }


/* ---- The record ------------------------------------------------------- */
.coverage__field {
  display: block; width: 100%; height: clamp(120px, 17vw, 200px);
  overflow: visible;
}
.coverage__cell {
  fill: var(--c-espresso-160);
  /* THE FIELD RESOLVES ACROSS ITSELF rather than flipping all at once. Each
     cell carries --i (its x + y, so 0..36) and waits that much longer than
     its neighbour up and to the left — a diagonal sweep, which is how a
     survey is actually walked.

     The stagger is DERIVED FROM --dur, not a fixed number: --dur is 0ms under
     prefers-reduced-motion, so every delay collapses to zero there without a
     second rule to remember. */
  transition: fill var(--dur) var(--ease),
              opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * var(--dur) / 60);
  transform-box: fill-box; transform-origin: center;
}

/* THE RECORD IS NOT ONE INK. Four sources, drawn in the site's own hues — no
   new colour enters the palette, and each clears 3:1 on the white row:
     institutional 17.21   spatial 5.45   policy 5.26   field 3.82
   A field in a single ink would say every measurement means the same thing,
   which is the opposite of what the passage beside it argues. */
.coverage__cell[data-s="institutional"] { --ink: var(--c-espresso); }
.coverage__cell[data-s="spatial"]       { --ink: var(--c-teal); }
.coverage__cell[data-s="policy"]        { --ink: var(--c-ochre); }
/* Not sage: sage sits at deltaE 10.4 from teal, which at 8px is not a
   distinction at all. This is the base ink lightened — a shade, not a new
   hue — at 28.6 from teal and 36.2 from espresso. */
.coverage__cell[data-s="field"]         { --ink: var(--c-espresso-mid); }



/* UNREAD: the record before anything is asked of it. Every collected cell is
   OUTLINED rather than inked — present, but not yet read for anything. This
   is what makes the first click do something: taking Evidence inks the field,
   rather than confirming a state it was already in. */
/* Scoped to the ENHANCED case on purpose. With no script there is nothing to
   take a term with, so "unread" would be a state the reader could never leave:
   the field would sit in outline forever. Unenhanced, the base rules below
   apply and the record arrives inked, with all three readings beside it. */
[data-coverage-enhanced][data-term="none"] .coverage__cell[data-c="1"] {
  fill: none; stroke: var(--c-espresso-mid); stroke-width: 1.2;
}
[data-coverage-enhanced][data-term="none"] .coverage__cell[data-c="0"] { fill: none; }

/* The base: the record inked by source. This is what the evidence state shows
   and what a reader without script gets. */
.coverage__cell[data-c="1"] { fill: var(--ink); }
.coverage__cell[data-c="0"] { fill: none; }

/* EVIDENCE: what was collected is drawn in its own source's ink; what never
   was is a gap. The gaps are the point, and they are invisible until the
   field is drawn. */
[data-term="evidence"] .coverage__cell[data-c="1"] { fill: var(--ink); }
[data-term="evidence"] .coverage__cell[data-c="0"] { fill: none; }

/* ACCESS: the record is unchanged and every cell is still there — but out of
   reach it also loses its KIND. You can see that something was measured and
   not what, which is the difference between holding data and being able to
   read it. Only the reachable window keeps its ink. */
[data-term="access"] .coverage__cell[data-c="1"] {
  fill: var(--c-espresso); opacity: 0.13;
}
[data-term="access"] .coverage__cell[data-c="0"] { fill: none; }
[data-term="access"] .coverage__cell[data-c="1"][data-a="1"] { fill: var(--ink); opacity: 1; }

/* AGENCY: the record keeps its kinds, and the gaps fill with evidence that
   was MADE rather than found. It is the one thing on the plate that is new,
   so it arrives scaled up from nothing.

   THE FOUND RECORD RECEDES HERE (2026-10-07). It used to stay at full
   strength, which gave made evidence exactly the weight of the four sources
   and made agency read as "evidence, plus some purple". Agency is not a
   fourth reading of the same rank: it is the OUTCOME the other two are for.
   The thing this term adds has to be the figure, and the record it completes
   has to be the ground.

   AND IT MUST NOT RECEDE THE WAY ACCESS DOES. Access already mutes cells —
   to 0.13, and collapsing all four inks to one, because its whole claim is
   that out of reach you can see THAT something was measured and not WHAT.
   If agency muted the same way, two different arguments would be drawn with
   the same device and the field would stop telling them apart.

   So the two recessions differ in kind, not just in degree:
     access   loses the kind   (one ink, 0.13)   — information is gone
     agency   keeps the kind   (four inks, 0.45) — only the emphasis moved
   The suite counts the distinct inks rendered in each state and fails if
   agency ever collapses to one.

   WHAT IT WAS ACTUALLY LOSING TO. "All the rectangles have equal weight" was
   the report; the measurement was worse than that. Made evidence reads 5.91:1
   against the row and institutional espresso read 17.21:1 — the purple was not
   one of equals, it was outranked nearly three to one by the loudest source on
   the plate. At 0.45 the loudest source is 2.88 and the purple leads.

   THE PRICE, PAID KNOWINGLY. Fading toward the ground desaturates, so the four
   kinds close on each other: spatial/field, already the tightest pair in the
   palette at deltaE 28.6, falls to 12.6 here. That is below the 25 this site
   uses for "reads as a different kind at 8px" — and it is the right state to
   spend it in. EVIDENCE is the reading that asks you to tell sources apart,
   and it keeps 28.6 and a full-strength key. Agency's claim is about what was
   ADDED. The suite holds both numbers so neither can drift.

   TWO ALTERNATIVES WERE MEASURED AND REJECTED BY LOOKING AT THEM.
     uniform 0.65          the knee where the purple first leads on paper.
                           deltaE 19.1, and on screen the plate still reads as
                           a mosaic of equals — the complaint, unfixed.
     institutional 0.35,   best on paper: deltaE 24.0 and the purple leads.
     the rest 0.95         Renders worst of the three. Ochre and teal come
                           forward at near-full chroma and shout louder than
                           the purple does. LUMINANCE CONTRAST IS NOT SALIENCE,
                           which is why the number was not allowed to decide. */
[data-term="agency"] .coverage__cell[data-c="1"] { fill: var(--ink); opacity: 0.45; }

/* MADE EVIDENCE IS DRAWN, NOT FILLED. Terracotta alone would not carry it:
   it sits at deltaE 21.4 from the ochre of policy & finance, close enough to
   be mistaken for one more source at this size — and this is the one mark on
   the plate that must not be. So it differs in FORM as well as colour: found
   data is a solid cell, made data is an outlined one, drawn in where nothing
   was recorded. That also survives a reader who cannot separate the two
   oranges at all. */
/* Solid, and the same size as every other cell: made evidence is evidence,
   not an annotation on it. An outline read as louder than the record it was
   completing, which is the wrong emphasis for the quietest claim on the page.
   --c-made is the one colour outside the brand families, chosen so it cannot
   be mistaken for a fifth source (deltaE 42.9 from the nearest of the four;
   terracotta measured 21.4 from ochre, which is why the accent could not
   carry it). */
/* Full strength, against a record that has stepped back: made evidence is the
   figure in this state, and the only mark on the plate at full opacity. */
[data-term="agency"] .coverage__cell[data-c="0"] { fill: var(--c-made); opacity: 1; }
.coverage__cell[data-c="0"] { transform: scale(0.35); }
[data-term="agency"] .coverage__cell[data-c="0"] { transform: scale(1); }

/* The key follows the drawing. If the field shows the four sources stepped
   back and the legend still shows them at full strength, the key is
   describing a plate that is not on screen. The LABELS keep full strength —
   they are text and have to stay legible — so only the swatches move. */
[data-term="agency"] .coverage__kind:not([data-s="made"]) .coverage__swatch { opacity: 0.45; }

/* ---- The key ---------------------------------------------------------- */
.coverage__legend {
  list-style: none; margin: var(--sp-4) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
}
.coverage__kind {
  display: flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-body);
}
.coverage__swatch { width: 9px; height: 9px; flex: none; background: var(--ink, var(--c-espresso)); }
.coverage__kind[data-s="institutional"] { --ink: var(--c-espresso); }
.coverage__kind[data-s="spatial"]       { --ink: var(--c-teal); }
.coverage__kind[data-s="policy"]        { --ink: var(--c-ochre); }
.coverage__kind[data-s="field"]         { --ink: var(--c-espresso-mid); }
/* the key's swatch for made evidence is drawn the way the cells are */
.coverage__kind[data-s="made"] { --ink: var(--c-made); color: var(--c-made); }

/* INSTITUTIONAL RECORDS WERE INVISIBLE ON THE DARK ROW (fixed 2026-10-07).
   This is the same failure the row-background work fixed site-wide, in the one
   place it was missed: the four source inks are literal brand hexes with no
   dark twin, while the row fill flips. Espresso #261810 on a dark row measured
   1.01:1 — not faint, GONE — at full strength, in the evidence state, since
   the field was built. A quarter of the record was missing for every reader in
   dark mode and the legend swatch beside it was blank.

   The other three clear 3:1 there and stay as they are; this one flips to the
   palette's light end. That keeps its ROLE as well as its visibility:
   institutional is the loudest source in both schemes — the darkest ink on a
   light row at 17.21:1, the lightest on a dark one at 10.44:1 — which is the
   point, because it is the authoritative record the other three sit against.
   deltaE 36.1 from the nearest of the rest, so it gains no ambiguity.

   IT SITS HERE, AFTER THE LEGEND, FOR A REASON. Both selectors are (0,2,0) and
   a media query adds no specificity, so this is decided purely on SOURCE
   ORDER. Placed up with the cell inks it fixed the field and left the legend
   swatch still invisible — the same trap the datum offset fell into. */
@media (prefers-color-scheme: dark) {
  .coverage__cell[data-s="institutional"],
  .coverage__kind[data-s="institutional"] { --ink: var(--c-sand); }
}


/* ---- The readings ----------------------------------------------------- */
.coverage__read { display: grid; gap: var(--sp-5); }
.coverage__reading { display: grid; gap: var(--sp-3); max-width: 68ch; }
.coverage__pull {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-1); line-height: 1.25; color: var(--accent);
  max-width: 34ch;
}
.coverage__body { margin: 0; color: var(--text-body); }
.coverage__body strong { color: var(--text-strong); font-weight: 600; }

/* Only while nothing is chosen, and only where the script ran: with no script
   all three readings are visible and there is nothing to prompt for. */
.coverage__prompt { display: none; }
[data-coverage-enhanced][data-term="none"] .coverage__prompt {
  display: block; grid-area: 1 / 1; margin: 0;
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: 0.04em; color: var(--rule-warm);
}

/* Enhanced: one reading at a time, in one cell, so the section is the height
   of the longest rather than the sum of three and stepping reflows nothing. */
[data-coverage-enhanced] .coverage__read { gap: 0; }
[data-coverage-enhanced] .coverage__reading {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease);
}
[data-coverage-enhanced] .coverage__reading.is-current { opacity: 1; visibility: visible; }

@media (min-width: 900px) {
  /* The pull sits beside the passage rather than over it, so the reading is
     one band and not two stacked blocks. */
  .coverage__reading { grid-template-columns: 22rem minmax(0, 1fr); gap: var(--sp-6); max-width: none; }
  .coverage__pull { max-width: none; }
}
@media (max-width: 599px) {
  .coverage__index { gap: var(--sp-4); }
  .coverage__title { font-size: var(--step-1); }
}

/* ==========================================================================
   CENTRALIZED ROW BACKGROUND SYSTEM
   Painted entirely from CSS custom properties set by render_row_background().
   A row with data-row-id gets its fill from --row-bg-color (color mode) or a
   layered image + readability overlay (image mode). Switching modes happens in
   includes/row-background-config.php only — never in page markup.
   ========================================================================== */

/* Color mode (default): the row is filled with its configured solid color.
   This reproduces each row's existing appearance exactly. */
[data-row-id] { background-color: var(--row-bg-color); }

/* The motif's drawing, held in a property by render_row_background() so it can
   have a dark twin. [data-row-id][data-row-motif] is (0,2,0) and so still wins
   against .page-head--light at (0,1,0), which is the collision the older
   inline background-image existed to win. */
[data-row-id][data-row-motif] { background-image: var(--row-motif); }

/* THE PAGE FIELD — the bare light rows (includes/fields.php).
   One background layer per block, each with its own position and size, so the
   field is painted once rather than tiled. That is not a detail: the block
   count is the page's own count, and a tile would lay it down a dozen times
   and make the number unreadable.

   (0,2,0), the same as the motif above, and the two can never collide:
   rb_row_takes_field() returns false for any row that carries a motif. The
   properties come from render_row_background() per row; a row without the
   field never sets them and this rule never matches it.

   NO DARK TWIN, unlike the motif. The two inks clear 4.5:1 on all four
   grounds — sand-050 and white, and the near-blacks they become under
   prefers-color-scheme — so one drawing serves both schemes and there is no
   second copy to drift. The reasoning and the measurements are in fields.php.

   Print strips it with everything else: print.css sets background #fff. */
[data-row-id][data-row-field] {
  background-image: var(--field-img);
  background-position: var(--field-pos);
  background-size: var(--field-size);
  background-repeat: no-repeat;
}

/* PAGE FIELD REVEAL — the blocks arrive as their row scrolls in.
   Registered so it can be interpolated: a plain custom property animates by
   swapping at 50%, which would make the field pop rather than arrive.
   initial-value 1 and the var() fallback in fields.php both say the same
   thing from different ends — with no @property, no scroll-driven animation,
   or reduced motion, the field is simply there.

   Same timeline and the same curve as [data-reveal] above, so the field and
   the copy it sits behind move together instead of arguing. Off the main
   thread where the browser supports it; where it does not, nothing runs and
   nothing is missing.

   This is the only animation on a field. The blocks do not drift, pulse or
   parallax — a background that keeps moving while you read is the opposite
   of a background. */
@property --field-reveal {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js [data-row-id][data-row-field] {
      animation: dd-field-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
    }
  }
}
@keyframes dd-field-in {
  from { --field-reveal: 0; }
  to   { --field-reveal: 1; }
}



/* Image mode: layer a readability overlay ABOVE the image so text stays legible
   regardless of the photo. The row is positioned so the ::before scrim can sit
   over the background image without covering the row's content. */
[data-row-bg="image"] {
  position: relative;
  isolation: isolate;                 /* keep the scrim behind content, above image */
  background-image: var(--row-bg-image);
  background-size: var(--row-bg-size, cover);
  background-position: var(--row-bg-position, center);
  background-repeat: var(--row-bg-repeat, no-repeat);
  background-attachment: var(--row-bg-attachment, scroll);
  background-color: var(--row-bg-color);   /* shows while the image loads / as fallback */
}
[data-row-bg="image"]::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--row-overlay, rgba(38,24,16,0.55));
  z-index: -1;                        /* above the row's background image, below content */
  pointer-events: none;
}
/* Ensure the row's own content paints above the scrim. */
[data-row-bg="image"] > * { position: relative; z-index: 0; }

/* THE DARK SCHEME, for rows.
   Row fills were literal hex written inline while every text token flipped
   under prefers-color-scheme, so a light row kept its light fill and its copy
   went light on top of it — sand on sand, 1:1, across 490 elements. These
   four declarations are the whole fix: what is inline is the custom PROPERTY,
   and the declarations that read it live here, where a media query can still
   answer them. The counterparts and the reasoning are in
   includes/row-background-config.php.

   IT SITS AFTER THE IMAGE-MODE RULES ON PURPOSE. [data-row-bg="image"] sets
   its own background-color at the same (0,1,0) specificity, so placed before
   them this block lost the image row and that row alone kept a white fill. */
@media (prefers-color-scheme: dark) {
  [data-row-id],
  [data-row-bg="image"] { background-color: var(--row-bg-color-dark, var(--row-bg-color)); }
  [data-row-id][data-row-motif] { background-image: var(--row-motif-dark, var(--row-motif)); }
  [data-row-bg="image"]::before { background: var(--row-overlay-dark, var(--row-overlay, rgba(38,24,16,0.55))); }
}

/* Responsive: use the mobile image variant when provided, on small screens. */
@media (max-width: 720px) {
  [data-row-bg="image"] { background-image: var(--row-bg-image-mobile, var(--row-bg-image)); }
  /* On small screens a fixed attachment janks and can crop badly — force scroll. */
  [data-row-bg="image"] { background-attachment: scroll; }
}

/* Lazy-load handoff: until the JS marks a row ready, the image prop may be held
   in data-row-bg-src instead of painted, to defer offscreen image loads. When
   JS is absent, the PHP-rendered --row-bg-image is already present, so images
   still show. (Progressive enhancement — see js/row-bg-lazy.js.) */
[data-row-bg="image"][data-row-bg-pending="true"] { background-image: none; }

/* ==========================================================================
   GUARDIAN TOOLBAR + SEARCH  (region pages, pages/food-guardians/search.php)
   ========================================================================== */
.guardian-toolbar {
  display: flex; flex-wrap: wrap; align-items: end; gap: var(--sp-5);
  margin-bottom: var(--sp-6); padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-soft);
}
.guardian-toolbar__search { flex: 1 1 320px; max-width: 420px; }
.guardian-toolbar__count {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-left: auto;
}
.guardian-toolbar__all { font-size: var(--step--1); }

.guardian-search {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: end;
  margin-bottom: var(--sp-5);
}
.guardian-search__field { flex: 1 1 260px; }
.guardian-search__actions { display: flex; gap: var(--sp-3); align-items: center; }

/* ==========================================================================
   GUARDIAN DETAIL PAGE  (pages/food-guardians/guardian.php)
   ========================================================================== */
.guardian-detail-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-7); align-items: start; }
@media (max-width: 860px) { .guardian-detail-grid { grid-template-columns: 1fr; } }

.guardian-detail__frame {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border-soft); box-shadow: var(--shadow-1);
}
.guardian-facts { margin-top: var(--sp-5); display: grid; gap: var(--sp-3); }
.guardian-facts > div { display: grid; gap: 2px; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--border-soft); }
.guardian-facts dt {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.guardian-facts dd { margin: 0; color: var(--text-strong); font-size: var(--step-0); }

/* Prev / region / next — reading straight through all 63 without an index. */
.guardian-pager {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4);
  margin-top: var(--sp-8); padding-top: var(--sp-6); border-top: 1px solid var(--border-soft);
}
@media (max-width: 720px) { .guardian-pager { grid-template-columns: 1fr; } }
.guardian-pager__link {
  display: grid; gap: 3px; padding: var(--sp-4); text-decoration: none;
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  background: var(--surface-raised);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.guardian-pager__link:hover { transform: translateY(-3px); border-color: var(--rule-warm); box-shadow: var(--shadow-2); }
.guardian-pager__link--next { text-align: right; }
.guardian-pager__link--index { text-align: center; }
.guardian-pager__dir { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.guardian-pager__name { font-family: var(--font-display); font-size: var(--step-1); color: var(--text-strong); }
.guardian-pager__food { font-size: var(--step--1); color: var(--text-body); }

/* ==========================================================================
   GUARDIAN ATLAS  (pages/food-guardians/atlas.php)
   ========================================================================== */
.atlas-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.atlas-filter {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 600;
  padding: 0.5em 1em; border-radius: 40px;
  border: 1.5px solid var(--border-soft); background: var(--surface-raised); color: var(--text-body);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.atlas-filter:hover { border-color: var(--rule-warm); color: var(--text-strong); }
.atlas-filter.is-active { background: var(--surface-ink); color: var(--text-on-dark); border-color: var(--surface-ink); }
.atlas-filter__n { font-family: var(--font-mono); font-size: 0.66rem; opacity: 0.75; }

.atlas-region { margin-bottom: var(--sp-7); }
.atlas-region__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-3); font-size: var(--step-1); margin-bottom: var(--sp-4); }
.atlas-region__count { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.atlas-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-3); list-style: none; padding: 0; margin: 0; }
.atlas-list a {
  display: grid; gap: 2px; padding: var(--sp-3) var(--sp-4); text-decoration: none;
  border-left: 3px solid var(--rule-warm); background: var(--surface-raised);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.atlas-list a:hover { transform: translateX(3px); border-left-color: var(--accent); }
.atlas-list__name { font-family: var(--font-display); font-size: var(--step-0); color: var(--text-strong); }
.atlas-list__food { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.atlas-list__anchor { font-size: var(--step--1); color: var(--text-body); opacity: 0.85; }

/* The embed placeholder needs a hint line on the map error state. */
.embed-placeholder__hint { max-width: 46ch; font-size: var(--step--1); opacity: 0.85; }

/* ==========================================================================
   PERFORMANCE + MODERN NAVIGATION
   ========================================================================== */

/* Long Guardian grids are expensive to lay out all at once. content-visibility
   lets the browser skip rendering work for cards that are off screen; the
   contain-intrinsic-size keeps the scrollbar length honest while they are. */
.guardian-grid > .guardian,
.atlas-region { content-visibility: auto; }
.guardian-grid > .guardian { contain-intrinsic-size: auto 420px; }
.atlas-region { contain-intrinsic-size: auto 320px; }

/* Cross-document view transitions. This is a multi-page PHP site, which is
   exactly the case this API was added for: the browser animates between two
   full page loads with no framework and no client-side router. Browsers
   without support simply navigate as they always did. */
@view-transition { navigation: auto; }

/* Name the persistent chrome so it stays put instead of cross-fading with the
   content it frames. */
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }
.quiet-support { view-transition-name: quiet-support; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Scroll-driven reveal: the same effect as the IntersectionObserver fallback in
   js/main.js, but declared in CSS so it runs off the main thread. main.js
   checks for support and stands down where this applies, so the two never both
   drive the same element. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
      opacity: 1; transform: none; transition: none;
      animation: dd-reveal linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 28%;
    }
  }
}
@keyframes dd-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   DARK-SCHEME ADJUSTMENTS
   Tokens do almost all of the work (see css/tokens.css). These are the few
   places that paint a color directly rather than through a token.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  /* The paper-texture wash is tuned for a light ground; soften it on dark so
     it reads as depth rather than haze. */
  body {
    background-image:
      radial-gradient(circle at 12% 18%, rgba(124, 192, 187, 0.06), transparent 40%),
      radial-gradient(circle at 88% 8%,  rgba(226, 105, 74, 0.05), transparent 38%);
  }
  .site-header { background: color-mix(in srgb, var(--surface-page) 92%, transparent); }

  /* Hero and page heads are already espresso; deepen them so they still
     separate from the page around them. */
  .hero, .page-head { background: var(--surface-ink); }
  .hero__strata { opacity: 0.35; }

  /* Placeholder art is built from gradients of the light palette. Dim it so a
     grid of placeholders does not glow against a dark page. */
  .ph { filter: brightness(0.82) saturate(0.9); }

  /* Region tiles fade to espresso, which is now the page color. Give the
     gradient somewhere darker to land. */
  .region-tile__fill { filter: brightness(0.85); }
}

/* ==========================================================================
   TIMELINE — tracks + filters (pages/programs/timeline.php)
   The base .timeline styles are above; these add the track color coding and
   the filter row, which reuses the .atlas-filter pill from the atlas page.
   ========================================================================== */
.timeline-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }

.timeline__track {
  display: inline-block; margin-top: var(--sp-2);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-warm);
}

/* One marker color per track, so the shape of the organization's history is
   legible at a glance rather than only by reading every entry. */
.timeline__item[data-track="governance"]::before { background: var(--c-teal); }
.timeline__item[data-track="research"]::before   { background: var(--c-sage); }
.timeline__item[data-track="program"]::before    { background: var(--c-ochre); }
.timeline__item[data-track="collection"]::before { background: var(--c-terracotta); }

/* Not-yet-happened milestones are drawn as an open ring, not a filled dot. */
.timeline__item[data-status="next"]::before {
  background: var(--surface-page);
  box-shadow: inset 0 0 0 3px var(--c-terracotta);
}
.timeline__item[data-status="next"] .timeline__year { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   v1.8 — THE METHODOLOGY AS A DESIGN SYSTEM
   --------------------------------------------------------------------------
   Every component in this block exists because the RIP methodology manual
   requires it. The rules being obeyed, in the manual's own words:

     "Muted civic palette with controlled highlight … architectural or
      infrastructural clarity … emotional restraint. No sensationalism."
     "Each composition must reveal both structural force and human or spatial
      consequence. No single-sided hero imagery."
     "Layer depth (minimum 4 analytical layers)."
     "Every public-facing claim must be traceable."
     "Complexity is preserved."
     "Equity applies to access. Accessibility is mandatory."

   In practice that means: highlight color is rationed rather than sprinkled;
   hierarchy is carried by rule weight, letterspacing, and indent rather than
   by size and saturation; nothing pulses, bounces, or demands attention.
   ========================================================================== */

/* --------------------------------------------------------------------------
   STRATA — the layering motif, made systemic
   The hero already drew soil strata as decoration. This turns the same idea
   into a reusable marker for "an analytical layer begins here". Four layers
   is the manual's stated minimum, so four is the default.
-------------------------------------------------------------------------- */
.strata { display: flex; flex-direction: column; gap: 2px; width: 52px; margin-bottom: var(--sp-4); }
.strata__layer { height: 2px; background: var(--rule-warm); border-radius: 1px; }
/* Each successive layer is shorter and fainter: depth read at a glance, with
   no image and no script. */
.strata__layer { width: calc(100% - (var(--i) * 9%)); opacity: calc(1 - (var(--i) * 0.17)); }

/* --------------------------------------------------------------------------
   PROVENANCE — "every public-facing claim must be traceable"
   A source line. Set in mono at small size with a hairline rule above it, so
   it reads as apparatus rather than as body copy.
-------------------------------------------------------------------------- */
.provenance {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: baseline;
  margin-top: var(--sp-6); padding-top: var(--sp-3);
  border-top: 1px solid var(--border-soft);
  font-size: var(--step--1); color: var(--text-body);
}
.provenance__label {
  flex: none; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.provenance__body { font-style: italic; }
.provenance__note { display: block; font-style: normal; opacity: 0.8; margin-top: 2px; }

/* --------------------------------------------------------------------------
   DUAL NARRATIVE — force and consequence, side by side
   The two halves share a spine. Neither is styled as dominant: same type
   size, same weight, distinguished only by the label and the spine's color
   shift. Showing one as the "hero" would violate the principle this renders.
-------------------------------------------------------------------------- */
.dual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin: var(--sp-5) 0;
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface-raised);
}
@media (max-width: 720px) { .dual { grid-template-columns: 1fr; } }
.dual__side { padding: var(--sp-5); display: grid; gap: var(--sp-2); align-content: start; }
.dual__side--force { border-right: 1px solid var(--border-soft); }
@media (max-width: 720px) {
  .dual__side--force { border-right: 0; border-bottom: 1px solid var(--border-soft); }
}
/* The spine: a 3px edge, teal for structure, terracotta for consequence.
   This is the "controlled highlight" — two uses, both load-bearing. */
.dual__side--force { border-left: 3px solid var(--c-teal); }
.dual__side--consequence { border-left: 3px solid var(--accent); }
.dual__label {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.dual__side--force .dual__label { color: var(--c-teal); }
@media (prefers-color-scheme: dark) { .dual__side--force .dual__label { color: var(--link); } }
.dual__side p { font-size: var(--step-0); color: var(--text-body); margin: 0; }

/* --------------------------------------------------------------------------
   HARD RULE — a stated prohibition, rendered without softening
   No icon, no fill, no exclamation. A bare rule and a heavier face. The
   manual states its limits flatly; so does this.
-------------------------------------------------------------------------- */
.hard-rule {
  margin-top: var(--sp-4); padding-left: var(--sp-4);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: var(--step-1);
  line-height: 1.3; color: var(--text-strong);
}

/* --------------------------------------------------------------------------
   SECTION HEAD — a consistent opener carrying a strata marker
-------------------------------------------------------------------------- */
.section-head { margin-bottom: var(--sp-7); }
.section-head h2 { margin-top: var(--sp-1); }
.section-head p { margin-top: var(--sp-3); }
.page-head__standard {
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px solid rgba(217,199,167,0.25);
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: 0.03em; line-height: 1.7; color: var(--c-sand); max-width: 62ch;
}

/* --------------------------------------------------------------------------
   PRINCIPLES — numbered, ruled, restrained
-------------------------------------------------------------------------- */
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: none; }
.principle {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--sp-5);
  padding: var(--sp-6) 0; border-top: 1px solid var(--border-soft);
}
.principle:last-child { border-bottom: 1px solid var(--border-soft); }
@media (max-width: 640px) { .principle { grid-template-columns: 1fr; gap: var(--sp-3); } }
.principle__n {
  font-family: var(--font-mono); font-size: var(--step-2); line-height: 1;
  color: var(--rule-warm); letter-spacing: 0.02em;
}
.principle__title { font-size: var(--step-2); }
.principle__rule {
  margin-top: var(--sp-2); font-size: var(--step-1);
  color: var(--text-strong); max-width: 60ch;
}
.principle__detail { margin-top: var(--sp-3); max-width: var(--measure); color: var(--text-body); }

/* --------------------------------------------------------------------------
   PILLARS — each rendered as a dual narrative
-------------------------------------------------------------------------- */
.pillars { display: grid; gap: var(--sp-8); }
.pillar-entry { padding-top: var(--sp-6); border-top: 2px solid var(--border-soft); }
.pillar-entry__head { display: flex; align-items: baseline; gap: var(--sp-4); flex-wrap: wrap; }
.pillar-entry__n {
  font-family: var(--font-mono); font-size: var(--step-3); line-height: 1;
  color: var(--rule-warm);
}
.pillar-entry__title { font-size: var(--step-2); }
.pillar-entry__summary { margin-top: var(--sp-3); font-size: var(--step-1); color: var(--text-strong); }
.pillar-entry__focus {
  display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: var(--sp-4) 0 0;
}
.pillar-entry__focus li {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.35em 0.8em;
  border: 1px solid var(--border-soft); border-radius: 40px; color: var(--text-body);
}
.pillar-entry__note {
  margin-top: var(--sp-4); padding: var(--sp-4);
  background: var(--c-sand-100); border-radius: var(--radius);
  font-size: var(--step--1); color: var(--text-body);
}
.pillar-entry__link { margin-top: var(--sp-4); }

/* --------------------------------------------------------------------------
   WILL NOT — the refusals list
   Each item is prefixed with a rule, not a bullet. A refusal is a line drawn.
-------------------------------------------------------------------------- */
.will-not { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: 0; }
.will-not li {
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--border-soft);
  font-size: var(--step-1); font-family: var(--font-display); color: var(--text-strong);
  position: relative;
}
.will-not li:last-child { border-bottom: 1px solid var(--border-soft); }
.will-not li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 14px; height: 2px; background: var(--accent);
}

/* --------------------------------------------------------------------------
   POLICY REGISTER
-------------------------------------------------------------------------- */
.policy-toolbar {
  display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: end;
  justify-content: space-between; margin-bottom: var(--sp-4);
}
.policy-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.policy-toolbar__search { flex: 1 1 260px; max-width: 340px; }
.policy-count {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-6);
}

.policy-group { margin-bottom: var(--sp-8); }
.policy-group__title { font-size: var(--step-2); }
.policy-group__blurb { margin-top: var(--sp-2); color: var(--text-body); }
.policy-group__head { margin-bottom: var(--sp-5); }

.policy-list { display: grid; gap: 0; }
.policy { border-top: 1px solid var(--border-soft); }
.policy:last-child { border-bottom: 1px solid var(--border-soft); }
.policy__disclosure { }
.policy__summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-2);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.policy__summary::-webkit-details-marker { display: none; }
.policy__summary::marker { content: ""; }
.policy__summary:hover { color: var(--accent); background: var(--c-sand-100); }
.policy__title { font-family: var(--font-display); font-size: var(--step-1); color: var(--text-strong); }
.policy__summary:hover .policy__title { color: var(--accent); }
/* A quiet disclosure indicator: a plus that becomes a minus. Matches the
   accordion elsewhere without the extra markup. */
.policy__summary::after {
  content: ""; flex: none; width: 18px; height: 18px; position: relative;
  background:
    linear-gradient(var(--accent), var(--accent)) center/18px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center/2px 18px no-repeat;
  transition: transform var(--dur) var(--ease);
}
.policy__disclosure[open] .policy__summary::after {
  background: linear-gradient(var(--accent), var(--accent)) center/18px 2px no-repeat;
  transform: rotate(180deg);
}
.policy__status {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.3em 0.7em; border-radius: 40px;
  border: 1px solid var(--border-soft); color: var(--text-body); margin-left: auto;
}
.policy__status[data-status="adopted"] { border-color: var(--c-sage); color: var(--link); }
.policy__body { padding: 0 var(--sp-2) var(--sp-6); max-width: var(--measure); }
.policy__purpose { color: var(--text-body); }
.policy__subhead {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-top: var(--sp-5); margin-bottom: var(--sp-3);
}
.policy__commitments { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.policy__commitments li {
  padding-left: var(--sp-5); position: relative; font-size: var(--step--1); color: var(--text-body);
}
.policy__commitments li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 12px; height: 2px; background: var(--rule-warm);
}
.policy__body .provenance { margin-top: var(--sp-5); }

/* --------------------------------------------------------------------------
   TIER PROFILES — "see themselves before they see a price point"
   The profile column leads. Price and tier metadata sit in a narrow margin
   column set in mono, at reference scale — present, never shouting.
-------------------------------------------------------------------------- */
.track-head { margin-bottom: var(--sp-7); }
.track-head h2 {
  font-family: var(--font-mono); font-size: var(--step-0); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-body); font-weight: 500;
  margin-block: var(--sp-2) var(--sp-4);
}

.tier-profiles { display: grid; gap: 0; }
.tier-profile {
  display: grid; grid-template-columns: 15rem 1fr; gap: var(--sp-7);
  padding: var(--sp-7) 0; border-top: 1px solid var(--border-soft);
}
.tier-profile:last-child { border-bottom: 1px solid var(--border-soft); }
@media (max-width: 820px) {
  .tier-profile { grid-template-columns: 1fr; gap: var(--sp-4); }
}
.tier-profile__meta { display: grid; gap: var(--sp-2); align-content: start; }
.tier-profile__index {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-body); opacity: 0.75;
}
.tier-profile__name { font-family: var(--font-display); font-size: var(--step-2); color: var(--text-strong); line-height: 1.1; }
/* --------------------------------------------------------------------------
   THE TIER KEY — the icon and the reading behind it, as a keyed callout.
   The note lives in the document beside the icon and shows on the key's
   hover, on focus within it, and when the button is expanded (main.js
   toggles it for touch). It is positioned, not in flow, so opening it
   moves nothing: a small leader tick, then the note in the hint style —
   ochre rule, sand tint — to the right of the icon on wide screens, below
   it on narrow ones. Print never shows it; the profile carries the meaning.
-------------------------------------------------------------------------- */
.tier-key { position: relative; display: inline-block; }
.tier-key__button { display: block; padding: 0; margin: 0; line-height: 0; border-radius: var(--radius); cursor: help; }
.tier-key__button .icon { display: block; }
.tier-key__note {
  position: absolute; z-index: 5; left: calc(100% + var(--sp-4)); top: 0;
  width: 19rem;
  padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--rule-warm);
  background: color-mix(in srgb, var(--c-sand) 18%, var(--surface-raised));
  box-shadow: var(--shadow-2); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step--1); line-height: 1.45; color: var(--text-body);
  opacity: 0; visibility: hidden; transform: translateX(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  pointer-events: none;
}
/* The leader: a tick from the icon to the note. */
.tier-key__note::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-4) - 3px); top: 0.9em;
  width: var(--sp-4); border-top: 1px solid var(--rule-warm);
}
.tier-key:hover .tier-key__note,
.tier-key:focus-within .tier-key__note,
.tier-key__button[aria-expanded="true"] + .tier-key__note {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
.tier-key__drawn { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-2); }
.tier-key__line { font-family: var(--font-display); font-style: italic; font-size: var(--step-0); color: var(--text-strong); quotes: "\201C" "\201D"; }
/* The note keeps to the right of the icon at every width — below it, it
   would cover the tier's own name — capped so it never leaves the viewport.
   Wide: the key is a 15rem grid cell, so 100% puts the note just past the
   meta column, beside the icon's row. Narrow: the cell is the full column,
   so the note is anchored to the icon's own width instead. */
.tier-key__note { max-width: min(19rem, calc(100vw - 7rem)); }

/* The fourth column has no room to its right: open its note leftward. */
@media (min-width: 1001px) {
  .tier-grid > li:nth-child(4n) .tier-key__note {
    left: auto; right: calc(100% + var(--sp-4));
    border-left: 0; border-right: 3px solid var(--rule-warm);
    border-radius: var(--radius) 0 0 var(--radius);
    transform: translateX(4px);
  }
  .tier-grid > li:nth-child(4n) .tier-key__note::before {
    left: auto; right: calc(-1 * var(--sp-4) - 3px);
  }
}
@media (max-width: 820px) { .tier-key__note { left: calc(44px + var(--sp-4)); } }
/* On the support cards the key is decorative and opens only when the pointer
   is on the icon itself — opening with the whole card covered the price and
   the name a reader was about to click. */
.tier-key--card { cursor: help; align-self: flex-start; }   /* hug the icon in the card's column, so the leader starts at it */
.tier-key--card .tier-key__note { width: 16rem; font-size: 0.8rem; }
.tier-key--card .tier-key__line { font-size: var(--step--1); }
@media (prefers-reduced-motion: reduce) { .tier-key__note { transition: none !important; } }
@media print { .tier-key__note { display: none !important; } }

/* The tier icon: the site's pen, in the track's accent (teal individual,
   ochre organizational) — the same colors the tier plate hatches in. */
.tier-profile__icon { display: block; margin-bottom: var(--sp-1); color: var(--c-teal); }
.tier-profile[data-track="organizational"] .tier-profile__icon { color: var(--c-ochre); }
.tier__icon { display: block; margin-bottom: var(--sp-1); color: var(--c-teal); }
.tier-grid[data-track="organizational"] .tier__icon { color: var(--c-ochre); }
@media (prefers-color-scheme: dark) {
  .tier-profile__icon, .tier__icon { color: var(--link); }
  .tier-profile[data-track="organizational"] .tier-profile__icon, .tier-grid[data-track="organizational"] .tier__icon { color: var(--accent-warm); }
}
/* Price is reference information, so it is set in mono at body size — not as
   a display figure. The source document is explicit that the price must not
   be the headline. */
.tier-profile__price {
  font-family: var(--font-mono); font-size: var(--step-0);
  color: var(--accent-warm); letter-spacing: 0.02em;
}
.tier-profile__vote {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-body);
  padding-top: var(--sp-2); border-top: 1px solid var(--border-soft); margin-top: var(--sp-1);
}
.tier-profile__vote.is-deliberative { color: var(--link); }
.tier-profile__body > * + * { margin-top: var(--sp-4); }
.tier-profile__opening {
  font-family: var(--font-display); font-size: var(--step-2);
  color: var(--text-strong); line-height: 1.25; max-width: 30ch;
}
.tier-profile__body p { max-width: var(--measure); color: var(--text-body); }
.tier-profile__close {
  font-family: var(--font-display); font-size: var(--step-1); font-style: italic;
  color: var(--accent); padding-top: var(--sp-4); border-top: 1px solid var(--border-soft);
}

/* --------------------------------------------------------------------------
   THE TIER PLATE — each tier as a lot on the track's plat
   (includes/render-tier-plate.php). Survey-sheet pens on a dot grid; the
   track's accent hatches this tier's lot; the benchmark is the site's
   controlled highlight. Every lot is the same size by principle.
-------------------------------------------------------------------------- */
.tier-plate { margin: var(--sp-4) 0 0; max-width: 15rem; --tp-accent: var(--c-teal); }
.tier-plate[data-accent="ochre"] { --tp-accent: var(--c-ochre); }
@media (prefers-color-scheme: dark) {
  .tier-plate { --tp-accent: var(--link); }
  .tier-plate[data-accent="ochre"] { --tp-accent: var(--accent-warm); }
}
.tier-plate__svg { width: 100%; height: auto; display: block; }
.tier-plate__grid { fill: var(--text-body); fill-opacity: 0.22; }
.tier-plate__lot { fill: none; stroke: var(--text-body); stroke-opacity: 0.45; stroke-width: 1; }
.tier-plate__lot.is-this { stroke: var(--tp-accent); stroke-opacity: 1; stroke-width: 1.5; }
.tier-plate__hatch { stroke: var(--tp-accent); stroke-opacity: 0.5; stroke-width: 1; }
.tier-plate__n { font-family: var(--font-mono); font-size: 8px; fill: var(--text-body); fill-opacity: 0.6; }
.tier-plate__n.is-this { fill: var(--tp-accent); fill-opacity: 1; font-weight: 600; }
.tier-plate__mono { font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--text-body); }
.tier-plate__title { fill: var(--text-strong); }
.tier-plate__north path { fill: var(--text-strong); }
.tier-plate__bm circle { fill: var(--surface-raised); stroke: var(--accent); stroke-width: 1.5; }
.tier-plate__bm path { fill: none; stroke: var(--accent); stroke-width: 1.25; }
.tier-plate__bm .tier-plate__ring2 { fill: none; stroke: var(--link); stroke-width: 1; stroke-dasharray: 2 2; }
.tier-plate__street { fill: none; stroke: var(--text-strong); stroke-width: 1.25; }
.tier-plate__centerline { fill: none; stroke: var(--text-body); stroke-opacity: 0.6; stroke-width: 0.8; stroke-dasharray: 5 4; }
.tier-plate__scale { fill: none; stroke: var(--text-strong); stroke-width: 1; }

/* --------------------------------------------------------------------------
   SUPPORT CARDS — one tier each, with its own door
   The card used to be one link to the profile; now the NAME is the link and
   the card carries Support Now (render_tier_entry, 'card'), so entering a
   tier from the support page is one press, not a page away. The icon's key
   is a real button here too.
-------------------------------------------------------------------------- */
li.tier { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
li.tier:hover { border-color: var(--rule-warm); box-shadow: var(--shadow-1); }
.tier__opening { font-size: var(--step--1); color: var(--text-body); margin-block: var(--sp-1) var(--sp-3); }

/* --------------------------------------------------------------------------
   THE ENTRY — "Support Now" (includes/render-entry.php)
   One button, one step to Stripe's card page. The label is the act row's
   mono caps; a range tier's amounts are a <select> in the same pen; the
   note beneath says what kind of transaction this is. When card giving is
   off, the same slot carries the honest label and the newsletter button.
-------------------------------------------------------------------------- */
.tier-entry { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.tier-entry__form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.tier-entry__label {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-body);
}
.tier-entry__amount { display: inline-flex; align-items: center; gap: var(--sp-2); }
.tier-entry__amount select {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.02em;
  padding: 0.45em 0.7em; border: 1.5px solid var(--border-soft); border-radius: var(--radius);
  background: var(--surface-raised); color: var(--text-strong);
}
.tier-entry__amount select:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-color: var(--accent); }
.tier-entry__note {
  flex-basis: 100%;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-body); opacity: 0.8;
}
.tier-entry__status { flex-basis: 100%; margin: 0; padding: var(--sp-3) var(--sp-4); font-size: var(--step--1); }
/* A card ends in two doors of equal weight — the profile, and the entry —
   and beneath them one BAND that always carries something: the tier's lot
   strip, or the outcome line when a reader comes back from Stripe without
   giving. The band is a fixed slot, so the doors never move between the two
   states and the row of cards does not jump. (The status used to sit on the
   doors' own row at full width, which pushed both buttons out of the card.) */
.tier-entry--card { margin-top: auto; padding-top: var(--sp-3); border-top: 1px dashed var(--border-soft); display: grid; gap: var(--sp-3); }
.tier-entry__doors { display: flex; gap: var(--sp-2); }
.tier-entry__doors > .tier-entry__more,
.tier-entry__doors > .tier-entry__form { flex: 1 1 0; min-width: 0; }
.tier-entry--card .btn { width: 100%; padding-inline: 0.6em; white-space: nowrap; }
.tier-entry__band { display: grid; align-content: center; min-height: 4.15rem; }
.tier-entry__band .tier-entry__status {
  margin: 0; padding: var(--sp-2) var(--sp-3); text-align: center;
  font-size: 0.8rem; line-height: 1.35;
}

/* --------------------------------------------------------------------------
   THE LOT STRIP — the tier plate at card scale (render_tier_strip)
   The track's block divided into as many lots as it has tiers, every lot the
   same size, this tier's hatched in the track's accent with a benchmark on
   it, the block fronting the street the archive keeps open. The caption is
   HTML, not SVG text, so it does not scale with the drawing.
-------------------------------------------------------------------------- */
.tier-strip { margin: 0; display: grid; gap: var(--sp-1); --ts-accent: var(--c-teal); }
.tier-strip[data-accent="ochre"] { --ts-accent: var(--c-ochre); }
.tier-strip__svg { width: 100%; height: auto; display: block; }
.tier-strip__hatch { stroke: var(--ts-accent); stroke-opacity: 0.55; stroke-width: 1; }
.tier-strip__lots line { stroke: var(--text-body); stroke-opacity: 0.35; stroke-width: 1; }
.tier-strip__this { stroke: var(--ts-accent); stroke-width: 1.5; }
.tier-strip__bm circle { fill: var(--surface-raised); stroke: var(--accent); stroke-width: 1.5; }
.tier-strip__bm path { fill: none; stroke: var(--accent); stroke-width: 1.25; }
.tier-strip__street { stroke: var(--text-strong); stroke-width: 1.25; }
.tier-strip__cap {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-body); opacity: 0.8;
}
@media (prefers-color-scheme: dark) {
  .tier-strip { --ts-accent: var(--link); }
  .tier-strip[data-accent="ochre"] { --ts-accent: var(--accent-warm); }
}

/* --------------------------------------------------------------------------
   THE GIVE WINDOW — the one step between a tier and Stripe's card page
   (includes/render-entry.php, render_give_window · js/give.js)
   A native <dialog>, so the backdrop, the focus trap, and Escape are the
   browser's. It opens in the tier's own pen: the icon cloned from that
   tier's key, the name, the vote, and the line its profile closes on; then
   the amount, then what the charge actually is.
-------------------------------------------------------------------------- */
.give { border: 0; padding: 0; background: transparent; width: min(92vw, 30rem); max-height: 92vh; color: var(--text-body); }
.give::backdrop { background: rgba(38,24,16,0.78); backdrop-filter: blur(2px); }
.give[open] { display: block; }
.give__inner {
  position: relative; display: grid; gap: var(--sp-4);
  padding: var(--sp-6); max-height: 92vh; overflow-y: auto;
  background: var(--surface-raised); border: 1px solid var(--border-soft);
  border-top: 3px solid var(--accent); border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
}
.give__close {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
  background: transparent; color: var(--text-body);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.give__close:hover { background: var(--c-sand-100); color: var(--text-strong); }
.give__eyebrow { margin: 0; padding-right: 2.5rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rule-warm); }
.give__head { display: flex; align-items: center; gap: var(--sp-3); }
.give__icon { flex: none; line-height: 0; color: var(--c-teal); }
.give__icon svg { width: 40px; height: 40px; }
.give__titles { display: grid; gap: 2px; }
.give__tier { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; color: var(--text-strong); }
.give__vote { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-body); }
.give__line { margin: 0; padding-top: var(--sp-3); border-top: 1px solid var(--border-soft); font-family: var(--font-display); font-style: italic; font-size: var(--step-0); color: var(--accent); }
.give__form { display: grid; gap: var(--sp-4); }
.give__amounts { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.give__amounts legend { padding: 0; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-body); }
.give__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.give__one { margin: 0; font-family: var(--font-display); font-size: var(--step-2); color: var(--accent); }
.give__chip { position: relative; }
.give__chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.give__chip-face {
  display: inline-flex; padding: 0.45em 1.1em;
  border: 1.5px solid var(--border-soft); border-radius: 999px;
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-body);
  background: var(--surface-raised);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.give__chip:hover .give__chip-face { border-color: var(--accent); }
.give__chip input:checked + .give__chip-face { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--surface-terracotta) 8%, var(--surface-raised)); }
.give__chip input:focus-visible + .give__chip-face { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.give__facts { list-style: none; margin: 0; padding: var(--sp-3) 0 0; display: grid; gap: var(--sp-2); border-top: 1px dashed var(--border-soft); font-size: var(--step--1); }
.give__facts li { display: grid; grid-template-columns: 1.1rem 1fr; gap: var(--sp-2); }
.give__facts li::before { content: "\2014"; color: var(--rule-warm); }
.give__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.give__note, .give__pending { margin: 0; font-size: var(--step--1); color: var(--text-body); }
.give__pending { font-size: var(--step-0); }
@media (prefers-color-scheme: dark) { .give__icon { color: var(--link); } }
@media (prefers-reduced-motion: reduce) { .give * { transition: none !important; } }
@media (max-width: 480px) { .give__inner { padding: var(--sp-5); } .give__actions .btn { width: 100%; } }

/* --------------------------------------------------------------------------
   THE WELCOME — where Stripe returns the donor (pages/archive/welcome.php)
   The entry as a card in the tier's own pen, what happens next as a
   numbered register, and the keep-in-touch form beside them.
-------------------------------------------------------------------------- */
.welcome-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--sp-7); align-items: start; }
@media (max-width: 820px) { .welcome-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }
.welcome-card {
  display: grid; gap: var(--sp-2); padding: var(--sp-6);
  background: var(--surface-raised); border: 1px solid var(--border-soft);
  border-left: 3px solid var(--c-teal); border-radius: var(--radius);
}
.welcome-card[data-track="organizational"] { border-left-color: var(--c-ochre); }
.welcome-card__icon { display: block; color: var(--c-teal); margin-bottom: var(--sp-2); }
.welcome-card[data-track="organizational"] .welcome-card__icon { color: var(--c-ochre); }
.welcome-card__tier { font-family: var(--font-display); font-size: var(--step-2); color: var(--text-strong); line-height: 1.1; }
.welcome-card__amount { font-family: var(--font-mono); font-size: var(--step-0); color: var(--accent-warm); letter-spacing: 0.02em; }
.welcome-card__close {
  font-family: var(--font-display); font-style: italic; font-size: var(--step-1);
  color: var(--accent); padding-top: var(--sp-3); border-top: 1px solid var(--border-soft); margin-top: var(--sp-2);
}
@media (prefers-color-scheme: dark) {
  .welcome-card__icon { color: var(--link); }
  .welcome-card[data-track="organizational"] .welcome-card__icon { color: var(--accent-warm); }
}
.welcome-next { list-style: none; padding: 0; margin: var(--sp-3) 0 0; display: grid; gap: var(--sp-3); counter-reset: next; }
.welcome-next li { display: grid; grid-template-columns: 2rem 1fr; gap: var(--sp-3); align-items: baseline; color: var(--text-body); }
.welcome-next li::before {
  counter-increment: next; content: "0" counter(next);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--accent);
}
.prefs { scroll-margin-top: 6rem; }
.prefs__form { display: grid; gap: var(--sp-4); }
.prefs__choices { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.prefs__choices legend { font-weight: 600; font-size: var(--step--1); color: var(--text-strong); margin-bottom: var(--sp-2); padding: 0; }
.check { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--step--1); color: var(--text-body); cursor: pointer; }
.check input { flex: none; margin-top: 0.3em; width: 1.05em; height: 1.05em; accent-color: var(--accent); }

/* --------------------------------------------------------------------------
   NOTE PANEL — an aside that is content, not chrome
-------------------------------------------------------------------------- */
.note-panel {
  padding: var(--sp-6); background: var(--surface-raised);
  border: 1px solid var(--border-soft); border-left: 3px solid var(--rule-warm);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   MOTION RESTRAINT — "emotional restraint. No sensationalism."
   Card lift on hover was -4px with a large shadow across the site. Halved,
   and the reveal distance reduced, so movement registers as response rather
   than as animation. Nothing on this site should perform.
-------------------------------------------------------------------------- */
.card:hover, .guardian:hover { transform: translateY(-2px); }
.btn:hover { transform: translateY(-1px); }
.js [data-reveal] { transform: translateY(10px); }
@keyframes dd-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   DARK-SCHEME ADJUSTMENTS for the v1.8 components
-------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  .pillar-entry__note { background: rgba(244, 238, 226, 0.05); }
  .policy__summary:hover { background: rgba(244, 238, 226, 0.05); }
  .policy__status[data-status="adopted"] { border-color: var(--link); color: var(--link); }
}

/* The per-page draft notice (see $content_status in includes/footer.php). */
.footer-draft { display: block; margin-top: 2px; opacity: 0.85; }

/* ==========================================================================
   ORGANIZATIONAL STATEMENTS + VALUES  (pages/about/mission.php)
   The mission and vision are adopted text. They are set as statements — large,
   ruled, unhurried — rather than as marketing lede copy, because that is what
   they are.
   ========================================================================== */
.statement { border-left: 3px solid var(--rule-warm); padding-left: var(--sp-5); }
.statement__label {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-3);
}
.statement__text {
  font-family: var(--font-display); font-size: var(--step-2);
  line-height: 1.35; color: var(--text-strong);
}

/* Values: quoted value, then the operational gloss. The two are visually
   distinct so a reader can tell adopted text from our commentary on it. */
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.value {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--sp-5);
  padding: var(--sp-6) 0; border-top: 1px solid var(--border-soft);
}
.value:last-child { border-bottom: 1px solid var(--border-soft); }
@media (max-width: 620px) { .value { grid-template-columns: 1fr; gap: var(--sp-3); } }
.value__glyph { font-size: 1.6rem; line-height: 1; color: var(--rule-warm); }
.value[data-accent="teal"]  .value__glyph { color: var(--c-teal); }
.value[data-accent="sage"]  .value__glyph { color: var(--c-sage); }
.value[data-accent="ochre"] .value__glyph { color: var(--c-ochre); }
.value[data-accent="terra"] .value__glyph { color: var(--c-terracotta); }
@media (prefers-color-scheme: dark) {
  .value[data-accent="teal"]  .value__glyph { color: var(--link); }
  .value[data-accent="sage"]  .value__glyph { color: var(--link); }
  .value[data-accent="ochre"] .value__glyph { color: var(--accent-warm); }
  .value[data-accent="terra"] .value__glyph { color: var(--accent); }
}
.value__name { font-size: var(--step-1); }
.value__quote {
  margin-top: var(--sp-2); font-family: var(--font-display); font-size: var(--step-1);
  color: var(--text-strong); max-width: 52ch;
}
.value__gloss { margin-top: var(--sp-3); max-width: var(--measure); color: var(--text-body); }
.value__policy { margin-top: var(--sp-3); font-size: var(--step--1); }

/* The mission head: the title's collage hung off the right of the dark head,
   overhanging into the statements row beneath — into the step the vision
   statement leaves. Same move as the public-art poster. */
.mission-head { overflow: visible; position: relative; z-index: 2; }
.mission-head__wrap { position: relative; }
.mission-head__art { margin: 0; }
.mission-head__art img { width: 100%; height: auto; display: block; }
@media (min-width: 1100px) {
  .mission-head__text { max-width: 62%; }
  /* Hung from the head's bottom edge: top at 100%, pulled up by 58% of its
     own height, so 42% overhangs into the sand row. */
  .mission-head__art { position: absolute; right: -2%; top: 100%; transform: translateY(-58%); width: min(36%, 440px); }
  /* The vision's step grows to clear the overhang. */
  .statement--vision { margin-top: 10.5rem; }
}
@media (max-width: 1099px) {
  .mission-head__art { margin-top: var(--sp-6); }
  .mission-head__art img { width: min(100%, 480px); margin-inline: auto; }
}

/* The statements as a stepped pair, and the mission's four means keyed. */
.mission-grid { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 900px) {
  .mission-grid { grid-template-columns: 1.2fr 0.8fr; gap: var(--sp-8); }
  .statement--vision { margin-top: var(--sp-9); }      /* hung a step lower */
}
.statement--mission .statement__text { font-size: var(--step-3); line-height: 1.18; letter-spacing: -0.005em; }
.statement--vision .provenance { margin-top: var(--sp-5); }
/* A keyed term: the word in the adopted text, set in the accent of where
   it lands — the palette's colors, each already assigned to a program — in
   italic over a hatched band that matches the key's swatches. The word is
   the link to that destination; hover fills the band solid. All four sit at
   display size, where every accent clears 3:1 on sand-050 (sage, the
   lowest, at 3.3:1). The text itself is unchanged. */
.key-term {
  --kt: var(--rule-warm);
  color: var(--kt); font-style: italic; text-decoration: none;
  padding-bottom: 0.06em;
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--kt) 55%, transparent) 0 2px, transparent 2px 6px) left bottom / 100% 0.3em no-repeat;
  transition: color var(--dur) var(--ease);
}
.key-term:hover, .key-term:focus-visible { color: var(--text-strong); background: linear-gradient(var(--kt), var(--kt)) left bottom / 100% 0.3em no-repeat; }
.key-term[data-accent="teal"]  { --kt: var(--c-teal); }
.key-term[data-accent="sage"]  { --kt: var(--c-sage); }
.key-term[data-accent="ochre"] { --kt: var(--c-ochre); }
.key-term[data-accent="terra"] { --kt: var(--c-terracotta); }
.mission-key { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--border-strong); display: grid; gap: var(--sp-4); }
.mission-key__head { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.mission-key ul { display: grid; gap: var(--sp-4) var(--sp-7); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mission-key li { display: grid; grid-template-columns: 22px 1fr; column-gap: var(--sp-3); row-gap: 2px; align-items: start; }
.mission-key li .text-link { grid-column: 2; font-size: var(--step--1); }
.mission-key__swatch { width: 22px; height: 14px; margin-top: 0.3em; border: 1px solid var(--text-strong); --sw: var(--rule-warm); background: repeating-linear-gradient(45deg, var(--sw) 0 2px, transparent 2px 6px); }
.mission-key__swatch[data-accent="teal"]  { --sw: var(--c-teal); }
.mission-key__swatch[data-accent="sage"]  { --sw: var(--c-sage); }
.mission-key__swatch[data-accent="ochre"] { --sw: var(--c-ochre); }
.mission-key__swatch[data-accent="terra"] { --sw: var(--c-terracotta); }
.mission-key__term { font-family: var(--font-display); font-size: var(--step-0); color: var(--text-strong); }
@media (prefers-color-scheme: dark) {
  .key-term[data-accent="teal"], .key-term[data-accent="sage"] { --kt: var(--link); }
  .key-term[data-accent="ochre"] { --kt: var(--accent-warm); }
  .key-term[data-accent="terra"] { --kt: var(--accent); }
  .mission-key__swatch[data-accent="teal"], .mission-key__swatch[data-accent="sage"] { --sw: var(--link); }
  .mission-key__swatch[data-accent="ochre"] { --sw: var(--accent-warm); }
  .mission-key__swatch[data-accent="terra"] { --sw: var(--accent); }
}

/* ==========================================================================
   THE BEARINGS — five values as bearings from one point
   (pages/about/mission.php · includes/render-bearings.php · js/bearings.js)
   A survey compass: the mission at the centre, the values as bearings fanned
   across the upper half of the ring, a needle that swings to the one taken.
   The same pens and the same enhancement contract as the other drawings.
   ========================================================================== */
.bearings { display: grid; gap: var(--sp-6); scroll-margin-top: 6rem; }
@media (min-width: 900px) {
  .bearings { grid-template-columns: minmax(320px, 1.05fr) 1fr; grid-template-areas: "svg readings" "legend readings"; gap: var(--sp-5) var(--sp-8); align-items: start; }
  .bearings__svg { grid-area: svg; }
  .bearings__legend { grid-area: legend; }
  .values--bearings { grid-area: readings; }
}
.bearings__svg { width: 100%; height: auto; display: block; overflow: visible; }
.b-ring { fill: none; stroke: var(--text-body); stroke-opacity: 0.45; stroke-width: 1.5; stroke-dasharray: 3 6; }
.b-base { fill: none; stroke: var(--text-strong); stroke-width: 2; }
.b-ticks line { stroke: var(--text-body); stroke-opacity: 0.6; stroke-width: 1.25; }
.b-bearing { transition: opacity var(--dur) var(--ease); }
.b-bearing__line { stroke: var(--text-body); stroke-opacity: 0.35; stroke-width: 1.5; stroke-dasharray: 2 5; transition: stroke var(--dur) var(--ease), stroke-opacity var(--dur) var(--ease); }
.b-bearing__dot { fill: var(--surface-raised); stroke: var(--text-body); stroke-width: 2; transition: fill var(--dur) var(--ease), stroke var(--dur) var(--ease); }
.b-bearing[data-accent="teal"]  .b-bearing__dot { stroke: var(--c-teal); }
.b-bearing[data-accent="sage"]  .b-bearing__dot { stroke: var(--c-sage); }
.b-bearing[data-accent="ochre"] .b-bearing__dot { stroke: var(--c-ochre); }
.b-bearing[data-accent="terra"] .b-bearing__dot { stroke: var(--c-terracotta); }
.b-bearing__name { font-family: var(--font-display); font-size: 15px; font-weight: 600; fill: var(--text-strong); transition: fill var(--dur) var(--ease); }
.b-bearing__deg { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--text-body); }
.b-bearing.is-on .b-bearing__line { stroke: var(--accent); stroke-opacity: 1; stroke-dasharray: none; stroke-width: 2; }
.b-bearing.is-on .b-bearing__dot { fill: var(--accent); stroke: var(--accent); }
.b-bearing.is-on .b-bearing__name { fill: var(--accent); }
[data-bearings-enhanced][data-selected] .b-bearing:not(.is-on) { opacity: 0.55; }
.b-hit { stroke: transparent; stroke-width: 28; cursor: pointer; }
.b-needle { transform-box: view-box; transform-origin: 440px 350px; transform: rotate(var(--bearing, 0deg)); transition: transform var(--dur) var(--ease); }
.b-needle__head { fill: var(--accent); }
.b-needle__tail { fill: var(--text-strong); }
.b-center { fill: var(--surface-raised); stroke: var(--text-strong); stroke-width: 2; }
.b-center__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--text-body); }
/* The legend: the accessible controls */
.bearings__legend { display: grid; gap: 2px; border-top: 1px solid var(--border-soft); padding-top: var(--sp-3); }
.bearings__key {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--sp-3); align-items: baseline; text-align: left;
  padding: 0.5em 0.7em; border-radius: var(--radius); color: var(--text-body);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.bearings__key:hover { background: var(--c-sand-100); color: var(--text-strong); }
.bearings__key[aria-pressed="true"] { background: var(--surface-raised); color: var(--text-strong); box-shadow: inset 3px 0 0 var(--accent); }
.bearings__key-b { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rule-warm); }
.bearings__key-t { font-family: var(--font-display); font-size: var(--step-0); }
/* The readings: the value entries, the bearing in the margin column */
.values--bearings .value { grid-template-columns: 6.5rem 1fr; }
.value__bearing { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rule-warm); padding-top: 0.4em; }
.value[data-accent="teal"]  .value__bearing { color: var(--c-teal); }
.value[data-accent="sage"]  .value__bearing { color: var(--c-sage); }
.value[data-accent="ochre"] .value__bearing { color: var(--c-ochre); }
.value[data-accent="terra"] .value__bearing { color: var(--c-terracotta); }
@media (prefers-color-scheme: dark) {
  .b-bearing[data-accent="teal"] .b-bearing__dot, .b-bearing[data-accent="sage"] .b-bearing__dot { stroke: var(--link); }
  .b-bearing[data-accent="ochre"] .b-bearing__dot { stroke: var(--accent-warm); }
  .b-bearing[data-accent="terra"] .b-bearing__dot { stroke: var(--accent); }
  .value[data-accent="teal"] .value__bearing, .value[data-accent="sage"] .value__bearing { color: var(--link); }
  .value[data-accent="ochre"] .value__bearing { color: var(--accent-warm); }
  .value[data-accent="terra"] .value__bearing { color: var(--accent); }
}
[data-bearings-enhanced] .values--bearings { display: grid; }
[data-bearings-enhanced] .values--bearings .value { grid-area: 1 / 1; border-bottom: 1px solid var(--border-soft); visibility: hidden; opacity: 0; transition: opacity var(--dur) var(--ease); }
[data-bearings-enhanced] .values--bearings .value.is-current { visibility: visible; opacity: 1; }
@media (max-width: 620px) { .values--bearings .value { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bearings * { transition: none !important; } }

/* ==========================================================================
   THE MIRROR LINE — the note on the tier profiles, drawn
   (pages/archive/founding-tiers.php · includes/render-mirror.php)
   A chain-dotted axis with the symmetry mark at each end. Left of it, what a
   page that sorts people by what they can pay usually is; right of it, what
   this one is. Selecting a pair shows the source line it rests on. The
   controls are radio inputs and the sources are siblings revealed by
   :checked, so there is no script here at all — selection, focus and arrow
   keys are the browser's own.
   ========================================================================== */
.mirror { margin-top: var(--sp-6); max-width: 58rem; margin-inline: auto; }
.mirror__caption {
  margin: 0 0 var(--sp-7); text-align: center;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--rule-warm);
}
.mirror__set { border: 0; padding: 0; margin: 0; min-width: 0; }
.mirror__pairs { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
/* The axis: a drafting centreline, long–short–long, running the full drawing. */
.mirror__pairs::before {
  content: ""; position: absolute; left: 50%; top: -10px; bottom: -10px;
  width: 1.5px; transform: translateX(-50%);
  background-image: repeating-linear-gradient(to bottom,
    var(--rule-warm) 0 15px, transparent 15px 21px,
    var(--rule-warm) 21px 24px, transparent 24px 30px);
}
/* The symmetry mark: two short strokes across the line at each end. */
.mirror__mark { position: absolute; left: 50%; transform: translateX(-50%); width: 24px; height: 8px; }
.mirror__mark--top { top: -18px; }
.mirror__mark--bottom { bottom: -18px; }
.mirror__mark::before, .mirror__mark::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--rule-warm); }
.mirror__mark::before { top: 0; }
.mirror__mark::after { bottom: 0; }

.mirror__pair { position: relative; }
.mirror__input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.mirror__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6);
  align-items: start; padding: var(--sp-3) 0; cursor: pointer; border-radius: var(--radius);
  transition: background var(--dur) var(--ease);
}
.mirror__row:hover { background: color-mix(in srgb, var(--c-sand-100) 60%, transparent); }
.mirror__input:focus-visible ~ .mirror__row { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.mirror__side { display: grid; gap: 2px; }
.mirror__side--was { text-align: right; }
.mirror__side--is { text-align: left; }
.mirror__tag { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; }
.mirror__side--was .mirror__tag { color: var(--text-body); opacity: 0.7; }
.mirror__side--is .mirror__tag { color: var(--accent); }
.mirror__term { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.18; }
.mirror__side--was .mirror__term { color: var(--text-body); }
.mirror__side--is .mirror__term { color: var(--text-strong); }
.mirror__more {
  margin-top: var(--sp-2); font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--rule-warm);
}
.mirror__more::after { content: " +"; }
/* The pair being read: its side of the line takes the accent and its source
   opens beneath, aligned to the side of the line it supports. */
.mirror__input:checked ~ .mirror__row { background: var(--surface-raised); }
.mirror__input:checked ~ .mirror__row .mirror__side--is .mirror__term { color: var(--accent); }
.mirror__input:checked ~ .mirror__row .mirror__more::after { content: " \2212"; }
.mirror__source { display: none; }
.mirror__input:checked ~ .mirror__source { display: block; }
.mirror__source {
  margin-left: calc(50% + var(--sp-6)); padding: 0 0 var(--sp-4);
}
.mirror__quote { margin: 0; padding-left: var(--sp-4); border-left: 2px solid var(--rule-warm); }
.mirror__quote p {
  margin: 0; font-family: var(--font-display); font-style: italic;
  font-size: var(--step-0); color: var(--text-strong); quotes: "\201C" "\201D";
}
.mirror__quote p::before { content: open-quote; }
.mirror__quote p::after { content: close-quote; }
.mirror__consequence { margin: var(--sp-3) 0 0; padding-left: var(--sp-4); font-size: var(--step--1); color: var(--text-body); }
@media (max-width: 760px) {
  /* The axis steps to the left edge and the pair stacks along it, which is
     how a mirror line is drawn when there is no room to set both sides. */
  .mirror__pairs::before, .mirror__mark { left: 3px; transform: none; }
  .mirror__row { grid-template-columns: 1fr; gap: var(--sp-2); padding-left: var(--sp-5); }
  .mirror__side--was, .mirror__side--is { text-align: left; }
  .mirror__source { margin-left: var(--sp-5); }
}
@media (prefers-reduced-motion: reduce) { .mirror * { transition: none !important; } }

/* ==========================================================================
   THE ARCHIVE HEAD — the collection as an object, under its own title
   (pages/archive/index.php). The case is a dark photograph, so it sits on
   the espresso head rather than being cut out of it; row 23 drops its shelf
   motif because this artwork now occupies that ground.
   ========================================================================== */
.archive-head__text { max-width: var(--measure); }
/* The title's claim, ruled into the collection's own lots: "everyone" carries
   a scale bar divided into as many equal parts as there are tiers, set from
   --lots so it cannot disagree with the sheet below. It surveys itself in on
   load rather than sitting there finished. */
.archive-title { text-wrap: balance; }
.lots-keyed { position: relative; display: inline-block; color: var(--accent-warm); }
.lots-keyed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.18em; height: 0.3em;
  border-bottom: 2px solid currentColor;
  background-image: repeating-linear-gradient(to right, currentColor 0 1.5px, transparent 1.5px calc(100% / var(--lots, 12)));
  transform-origin: left center;
  animation: lots-survey 0.9s var(--ease) 0.25s both;
}
@keyframes lots-survey { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.archive-title__cap {
  margin-top: var(--sp-4); font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-sand);
}
@media (prefers-reduced-motion: reduce) { .lots-keyed::after { animation: none; } }
.archive-case { margin: var(--sp-7) 0 0; }
.archive-case img {
  width: 100%; max-width: 1100px; height: auto; display: block; margin-inline: auto;
  border-radius: var(--radius-lg);
}
.archive-case__cap {
  margin: var(--sp-3) auto 0; max-width: 72ch; text-align: center;
  font-size: var(--step--1); color: var(--c-sand);
}

/* ==========================================================================
   THE PLAT — the whole collection as one survey sheet
   (pages/archive/index.php · includes/render-plat.php · js/plat.js)
   Three spreads on one continuous ground: the individual block, the street,
   the organizational block with the reserve. Each block carries an INDEX of
   buttons in the same columns as its lots — the block's lot schedule, since
   the lots themselves carry only numbers — and a NOTE that opens under that
   index rather than at the foot of the page. The dot grid is the SHEET'S
   background rather than a rect inside each drawing, so it runs unbroken
   across the drawings and straight through whatever a note opens.
   ========================================================================== */
.plat { scroll-margin-top: 6rem; margin-top: var(--sp-6); }
.plat__sheet {
  --p-dot: color-mix(in srgb, var(--text-body) 30%, transparent);
  background-image: radial-gradient(var(--p-dot) 0.9px, transparent 1px);
  background-size: 14px 14px; background-position: 7px 7px;
  padding-block: var(--sp-5) var(--sp-4);
}
.plat__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.plat__svg { width: 100%; height: auto; display: block; }
.plat__svg--street { margin-block: var(--sp-3); }
.plat__svg--foot { margin-top: var(--sp-5); }

/* ---- the pens ---- */
.p-hatch { stroke-width: 1; }
.p-hatch--teal { stroke: var(--c-teal); stroke-opacity: 0.6; }
.p-hatch--ochre { stroke: var(--c-ochre); stroke-opacity: 0.6; }
.p-street__edge { fill: none; stroke: var(--text-strong); stroke-width: 1.5; transition: stroke var(--dur) var(--ease), stroke-width var(--dur) var(--ease); }
.p-street__centre { fill: none; stroke: var(--text-body); stroke-opacity: 0.6; stroke-width: 1; stroke-dasharray: 11 7; }
.p-street__label { fill: var(--text-body); transition: fill var(--dur) var(--ease); }
.p-alley { fill: none; stroke: var(--text-body); stroke-opacity: 0.45; stroke-width: 1; stroke-dasharray: 6 5; }
.p-lot__face { fill: none; stroke: var(--text-body); stroke-opacity: 0.5; stroke-width: 1; transition: stroke var(--dur) var(--ease), stroke-opacity var(--dur) var(--ease), stroke-width var(--dur) var(--ease); }
.p-lot__hatch { opacity: 0; transition: opacity var(--dur) var(--ease); }
.p-lot__n { fill: var(--text-body); fill-opacity: 0.65; transition: fill var(--dur) var(--ease), fill-opacity var(--dur) var(--ease); }
/* The lot's second face: the tier's own mark, turned in about the lot's
   centre. A pointer turns it far enough to hint; selecting leaves it turned.
   The axis comes from --ox/--oy on the group, in sheet units. */
.p-lot__mark {
  opacity: 0; transform: scaleX(0.14);
  transform-box: view-box; transform-origin: var(--ox) var(--oy);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.p-lot__icon { color: var(--text-strong); stroke-width: 1.3; transition: color var(--dur) var(--ease); }
.p-lot__ring2 { fill: none; stroke: var(--link); stroke-width: 1; stroke-dasharray: 3 3; }
.p-lot:hover .p-lot__mark { opacity: 0.45; transform: scaleX(1); }
.p-lot.is-on .p-lot__mark { opacity: 1; transform: scaleX(1); }
.p-lot.is-on .p-lot__icon { color: var(--p-accent); }
.p-reserve__face { fill: none; stroke: var(--text-body); stroke-opacity: 0.5; stroke-width: 1.25; stroke-dasharray: 9 6; transition: stroke var(--dur) var(--ease), stroke-opacity var(--dur) var(--ease); }
.p-reserve[data-platted="true"] .p-reserve__face { stroke-dasharray: none; }
.p-reserve__label { fill: var(--text-body); fill-opacity: 0.75; transition: fill var(--dur) var(--ease); }
.p-block__label { fill: var(--rule-warm); }
.p-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; fill: var(--text-body); }
.p-north path { fill: var(--text-strong); }
.p-north text { fill: var(--text-strong); }
.p-title__rule { stroke: var(--text-strong); stroke-width: 1; }
.p-title__t { fill: var(--text-strong); }
.p-scale path { fill: none; stroke: var(--text-strong); stroke-width: 1; }
.p-hit { fill: transparent; cursor: pointer; }

/* ---- selection ---- */
.p-mark { transition: opacity var(--dur) var(--ease); }
.p-mark[data-accent="teal"]  { --p-accent: var(--c-teal); }
.p-mark[data-accent="ochre"] { --p-accent: var(--c-ochre); }
.p-lot.is-on .p-lot__hatch { opacity: 0.9; }
.p-lot.is-on .p-lot__face { stroke: var(--p-accent); stroke-opacity: 1; stroke-width: 2; }
.p-lot.is-on .p-lot__n { fill: var(--p-accent); fill-opacity: 1; font-weight: 600; }
.p-street.is-on .p-street__edge { stroke: var(--accent); stroke-width: 2; }
.p-street.is-on .p-street__label { fill: var(--accent); }
.p-reserve.is-on .p-reserve__face { stroke: var(--accent); stroke-opacity: 1; }
.p-reserve.is-on .p-reserve__label { fill: var(--accent); }
/* A lot under the pointer is exempt from the recession, so its hint is
   readable even while another lot is the one being read. */
[data-plat-enhanced][data-selected]:not([data-selected="the-collection"]) .p-lot:not(.is-on):not(:hover),
[data-plat-enhanced][data-selected]:not([data-selected="the-collection"]) .p-reserve:not(.is-on) { opacity: 0.42; }
@media (prefers-color-scheme: dark) {
  .p-mark[data-accent="teal"]  { --p-accent: var(--link); }
  .p-mark[data-accent="ochre"] { --p-accent: var(--accent-warm); }
}

/* ---- the index: each block's lot schedule, in the lots' own columns ---- */
.plat__index {
  display: grid; grid-template-columns: repeat(var(--cols, 8), minmax(0, 1fr));
  gap: 2px; margin-top: var(--sp-2);
  padding-left: 7%; padding-right: 7.4%;    /* the block's own inset on the sheet */
}
.plat__index--sheet { grid-template-columns: minmax(0, 20rem); padding-left: 3%; margin-top: var(--sp-3); }
.plat__key--wide { grid-column: 5 / -1; }
.plat__key {
  display: grid; gap: 1px; align-content: start; text-align: left;
  padding: 0.45em 0.55em 0.5em; border-radius: 0 0 var(--radius) var(--radius);
  color: var(--text-body); border-top: 2px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.plat__key:hover { background: var(--c-sand-100); color: var(--text-strong); }
.plat__key[aria-pressed="true"] { background: var(--surface-raised); color: var(--text-strong); border-top-color: var(--accent); }
.plat__key[data-accent="teal"][aria-pressed="true"]  { border-top-color: var(--c-teal); }
.plat__key[data-accent="ochre"][aria-pressed="true"] { border-top-color: var(--c-ochre); }
.plat__key-n { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rule-warm); }
.plat__key-t { font-family: var(--font-display); font-size: 0.86rem; line-height: 1.15; }
@media (max-width: 900px) {
  .plat__index { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 0; }
  .plat__key--wide { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .plat__index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- the note: the reading, keyed to the block it belongs to ---- */
.plat__note-inner { padding: 0 7.4% 0 7%; }
[data-plat-enhanced] .plat__note { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
[data-plat-enhanced] .plat__note.is-open { grid-template-rows: 1fr; }
[data-plat-enhanced] .plat__note-inner { overflow: hidden; min-height: 0; }
[data-plat-enhanced] .pl-reading { display: none; }
[data-plat-enhanced] .pl-reading.is-current { display: block; }
.pl-reading { padding-block: var(--sp-5) var(--sp-2); border-top: 1px dashed var(--border-soft); }
.pl-reading + .pl-reading { margin-top: var(--sp-5); }
.pl-reading__head { display: flex; align-items: center; gap: var(--sp-3); }
.pl-reading__icon { flex: none; color: var(--c-teal); }
.pl-reading[data-accent="ochre"] .pl-reading__icon { color: var(--c-ochre); }
.pl-reading__titles { display: grid; gap: 2px; }
.pl-reading__tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rule-warm); }
.pl-reading[data-accent="teal"]  .pl-reading__tag { color: var(--c-teal); }
.pl-reading[data-accent="ochre"] .pl-reading__tag { color: var(--c-ochre); }
.pl-reading h3 { font-size: var(--step-2); line-height: 1.12; }
.pl-reading--whole h3, .pl-reading--reserve h3 { margin-top: var(--sp-2); }
.pl-reading__meta { margin-top: var(--sp-3); font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent-warm); }
.pl-reading__lede { margin-top: var(--sp-3); font-size: var(--step-1); line-height: 1.35; color: var(--text-strong); max-width: 46ch; }
.pl-reading > p:not(.pl-reading__tag):not(.pl-reading__lede):not(.pl-reading__meta):not(.pl-reading__drawn):not(.pl-reading__act) { margin-top: var(--sp-3); color: var(--text-body); max-width: var(--measure); }
.pl-reading__drawn {
  margin-top: var(--sp-4); padding-left: var(--sp-3); border-left: 2px solid var(--rule-warm);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-body);
}
.pl-reading__act {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px dashed var(--border-soft);
}
.pl-reading__note { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-body); }
@media (prefers-reduced-motion: reduce) { .plat * { transition: none !important; } }
@media (prefers-color-scheme: dark) {
  .pl-reading[data-accent="teal"] .pl-reading__icon, .pl-reading[data-accent="teal"] .pl-reading__tag { color: var(--link); }
  .pl-reading[data-accent="ochre"] .pl-reading__icon, .pl-reading[data-accent="ochre"] .pl-reading__tag { color: var(--accent-warm); }
}

/* A phone scales each drawing to about a third, which renders the mono
   labels at three or four pixels. The lot numbers are what make a plat
   readable, so they are set larger in sheet units and the prose labels stand
   down; the index beneath carries every name at full size anyway. */
@media (max-width: 700px) {
  .plat__svg .p-street__label,
  .plat__svg .p-block__label,
  .plat__svg .p-reserve__label,
  .plat__svg .p-title__t,
  .plat__svg .p-scale,
  .plat__svg .p-north { display: none; }
  .plat__svg .p-lot__n { font-size: 30px; letter-spacing: 0; fill-opacity: 0.8; }
  .plat__svg .p-street__edge, .plat__svg .p-lot__face { stroke-width: 2.5; }
  .plat__svg .p-lot.is-on .p-lot__face { stroke-width: 4; }
  .plat__svg .p-reserve__face { stroke-width: 2.5; stroke-dasharray: 14 9; }
  .plat__svg .p-lot__mark { transform: scaleX(0.14) scale(1.7); }
  .plat__svg .p-lot:hover .p-lot__mark,
  .plat__svg .p-lot.is-on .p-lot__mark { transform: scale(1.7); }
  .plat__note-inner { padding-inline: 0; }
}

/* ==========================================================================
   THE TWO REGISTERS — a mark that holds, and a line that keeps going
   (pages/engage/support.php · includes/render-registers.php · js/registers.js)
   One ground line carries both: the Founding Archive as a benchmark set into
   the strata, and the Patreon as the sound line rising off the same ground
   and running out past the edge of the sheet, two stations on it. The ground
   line itself is the fourth reading. Same pens and the same enhancement
   contract as the other drawings.
   ========================================================================== */
.registers { display: grid; gap: var(--sp-6); scroll-margin-top: 6rem; margin-top: var(--sp-6); }
.registers__svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ---- the pens ---- */
.r-ground { stroke: var(--text-strong); stroke-width: 2; transition: stroke var(--dur) var(--ease), stroke-width var(--dur) var(--ease); }
.r-tick { fill: none; stroke: var(--text-body); stroke-width: 1; }
.r-strata line { stroke: var(--text-body); stroke-opacity: 0.45; stroke-width: 1.25; stroke-dasharray: 7 5; transition: stroke var(--dur) var(--ease), stroke-opacity var(--dur) var(--ease); }
.r-bm__stem { fill: none; stroke: var(--text-body); stroke-opacity: 0.5; stroke-width: 1.25; stroke-dasharray: 4 4; }
.r-bm__ring { fill: var(--surface-raised); stroke: var(--text-strong); stroke-width: 2; transition: fill var(--dur) var(--ease), stroke var(--dur) var(--ease); }
.r-bm__cross { fill: none; stroke: var(--text-strong); stroke-width: 1.5; transition: stroke var(--dur) var(--ease); }
.r-wave { fill: none; stroke: var(--text-strong); stroke-width: 2; stroke-dasharray: 9 5; transition: stroke var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.r-wave__arrow { fill: var(--text-strong); transition: fill var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.r-station { fill: var(--surface-raised); stroke: var(--text-strong); stroke-width: 2; transition: fill var(--dur) var(--ease), stroke var(--dur) var(--ease); }
.r-leader { fill: none; stroke: var(--text-body); stroke-opacity: 0.55; stroke-width: 1; stroke-dasharray: 2 3; }
.r-landing { stroke: var(--text-strong); stroke-width: 1; transition: stroke var(--dur) var(--ease), stroke-width var(--dur) var(--ease); }
.r-mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; fill: var(--text-body); }
.r-label { fill: var(--rule-warm); transition: fill var(--dur) var(--ease); }
.r-title__rule { stroke: var(--text-strong); stroke-width: 1; }
.r-hit { fill: transparent; stroke: transparent; stroke-width: 26; cursor: pointer; }

/* ---- selection: the mark taken sets in its accent, the rest recede ---- */
.r-mark { transition: opacity var(--dur) var(--ease); }
.r-mark[data-accent="teal"]  { --r-accent: var(--c-teal); }
.r-mark[data-accent="ochre"] { --r-accent: var(--c-ochre); }
.r-mark[data-accent="terra"] { --r-accent: var(--accent); }
.r-mark.is-on .r-bm__ring,
.r-mark.is-on .r-station { stroke: var(--r-accent); fill: color-mix(in srgb, var(--r-accent) 14%, var(--surface-raised)); }
.r-mark.is-on .r-bm__cross { stroke: var(--r-accent); }
.r-mark.is-on .r-strata line { stroke: var(--r-accent); stroke-opacity: 0.85; }
.r-mark.is-on .r-landing { stroke: var(--r-accent); stroke-width: 1.5; }
.r-mark.is-on .r-label { fill: var(--r-accent); }
.r-mark.is-on .r-ground { stroke: var(--r-accent); stroke-width: 3; }
/* The ground carries both, so it never dims for the marks standing on it. */
[data-registers-enhanced][data-selected] .r-mark:not(.is-on):not([data-r="register-sustains"]) { opacity: 0.4; }
/* The wave belongs to both stations: it lights for either and recedes for the record. */
[data-registers-enhanced][data-selected="register-listen"] .r-wave,
[data-registers-enhanced][data-selected="register-take"] .r-wave { stroke: var(--c-ochre); }
[data-registers-enhanced][data-selected="register-listen"] .r-wave__arrow,
[data-registers-enhanced][data-selected="register-take"] .r-wave__arrow { fill: var(--c-ochre); }
[data-registers-enhanced][data-selected="register-record"] .r-wave,
[data-registers-enhanced][data-selected="register-record"] .r-wave__arrow,
[data-registers-enhanced][data-selected="register-sustains"] .r-wave,
[data-registers-enhanced][data-selected="register-sustains"] .r-wave__arrow { opacity: 0.4; }
@media (prefers-color-scheme: dark) {
  .r-mark[data-accent="teal"]  { --r-accent: var(--link); }
  .r-mark[data-accent="ochre"] { --r-accent: var(--accent-warm); }
  [data-registers-enhanced][data-selected="register-listen"] .r-wave,
  [data-registers-enhanced][data-selected="register-take"] .r-wave { stroke: var(--accent-warm); }
  [data-registers-enhanced][data-selected="register-listen"] .r-wave__arrow,
  [data-registers-enhanced][data-selected="register-take"] .r-wave__arrow { fill: var(--accent-warm); }
}

/* On a phone the whole sheet scales to about a third, which renders the
   callout text at two or three pixels and the pens as hairlines. The drawing
   keeps its meaning without the callouts — a fixed mark on the left, a line
   leaving on the right — and the legend sits directly beneath naming all
   four, so below 700px the callout apparatus is dropped and the pens are
   thickened to survive the reduction. */
@media (max-width: 700px) {
  .registers__svg .r-leader,
  .registers__svg .r-landing,
  .registers__svg .r-mono,
  .registers__svg .r-tick,
  .registers__svg .r-title__rule { display: none; }
  .registers__svg .r-ground,
  .registers__svg .r-wave { stroke-width: 5; }
  .registers__svg .r-wave { stroke-dasharray: 18 10; }
  .registers__svg .r-strata line { stroke-width: 3; stroke-dasharray: 14 10; }
  .registers__svg .r-bm__ring,
  .registers__svg .r-station { stroke-width: 5; }
  .registers__svg .r-bm__cross { stroke-width: 4; }
  .registers__svg .r-bm__stem { stroke-width: 3; stroke-dasharray: 9 9; }
}

/* ---- legend + readings ---- */
.registers__body { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) {
  .registers__body { grid-template-columns: minmax(230px, 0.72fr) 1.6fr; gap: var(--sp-8); align-items: start; }
}
.registers__legend { display: grid; gap: 2px; align-content: start; border-top: 1px solid var(--border-soft); padding-top: var(--sp-3); }
.registers__key {
  display: grid; gap: 2px; text-align: left;
  padding: 0.55em 0.7em; border-radius: var(--radius); color: var(--text-body);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.registers__key:hover { background: var(--c-sand-100); color: var(--text-strong); }
.registers__key[aria-pressed="true"] { background: var(--surface-raised); color: var(--text-strong); box-shadow: inset 3px 0 0 var(--accent); }
.registers__key[data-accent="teal"][aria-pressed="true"]  { box-shadow: inset 3px 0 0 var(--c-teal); }
.registers__key[data-accent="ochre"][aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--c-ochre); }
.registers__key-n { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rule-warm); }
.registers__key-t { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.15; }
.registers__readings { display: grid; gap: var(--sp-7); }
.r-reading__tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rule-warm); }
.r-reading[data-accent="teal"]  .r-reading__tag { color: var(--c-teal); }
.r-reading[data-accent="ochre"] .r-reading__tag { color: var(--c-ochre); }
.r-reading[data-accent="terra"] .r-reading__tag { color: var(--accent); }
.r-reading h3 { font-size: var(--step-2); line-height: 1.12; margin-top: var(--sp-2); }
.r-reading__lede { margin-top: var(--sp-3); font-size: var(--step-1); line-height: 1.35; color: var(--text-strong); max-width: 46ch; }
.r-reading > p:not(.r-reading__tag):not(.r-reading__lede):not(.r-reading__act) { margin-top: var(--sp-3); color: var(--text-body); max-width: var(--measure); }
.r-reading__act {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px dashed var(--border-soft);
}
.r-reading__note { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-body); }
[data-registers-enhanced] .registers__readings { display: grid; }
[data-registers-enhanced] .r-reading { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity var(--dur) var(--ease); }
[data-registers-enhanced] .r-reading.is-current { visibility: visible; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .registers * { transition: none !important; } }
@media (prefers-color-scheme: dark) {
  .r-reading[data-accent="teal"] .r-reading__tag { color: var(--link); }
  .r-reading[data-accent="ochre"] .r-reading__tag { color: var(--accent-warm); }
}

/* ==========================================================================
   THE OVERLAY — three layers registered to one ground
   (pages/maps/index.php · includes/render-overlay.php · js/overlay.js)
   A map sheet stack in axonometric: the story layer on top, the data layer
   under it, the source layer at the base; dashed registration lines through
   the corners; each sheet carrying the drawing its layer is made of (a route
   with stations, a plat with points, a legend over a dot grid) and named by
   a callout to a landing in the margin. Selecting a layer lifts its sheet
   and sets it in its accent. The same pens and the same enhancement
   contract as the other drawings.
   ========================================================================== */
.overlay { display: grid; gap: var(--sp-6); scroll-margin-top: 6rem; margin-top: var(--sp-6); }
@media (min-width: 900px) {
  .overlay { grid-template-columns: minmax(340px, 1.1fr) 1fr; grid-template-areas: "svg readings" "legend readings"; gap: var(--sp-5) var(--sp-8); align-items: start; }
  .overlay__svg { grid-area: svg; }
  .overlay__legend { grid-area: legend; }
  .overlay__readings { grid-area: readings; }
}
.overlay__svg { width: 100%; height: auto; display: block; overflow: visible; }
.ov-dot { fill: var(--text-body); fill-opacity: 0.35; }
.ov-hatch { stroke: var(--text-body); stroke-opacity: 0.5; stroke-width: 1; }
.ov-reg line { stroke: var(--text-body); stroke-opacity: 0.45; stroke-width: 1; stroke-dasharray: 3 5; transition: stroke var(--dur) var(--ease), stroke-opacity var(--dur) var(--ease); }
.ov-sheet { transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.ov-sheet__face { fill: var(--surface-raised); stroke: var(--text-strong); stroke-width: 1.5; transition: stroke var(--dur) var(--ease), fill var(--dur) var(--ease); }
.ov-sheet__content { pointer-events: none; }
.ov-sheet__content path, .ov-sheet__content line, .ov-sheet__content rect, .ov-sheet__content circle { transition: stroke var(--dur) var(--ease), fill var(--dur) var(--ease); }
.ov-fill-dots { fill: url(#ov-dots); }
.ov-district { fill: url(#ov-hatch); stroke: var(--text-strong); stroke-width: 1.25; }
.ov-legendbox rect { fill: var(--surface-raised); stroke: var(--text-body); stroke-width: 1; }
.ov-legendbox line { stroke: var(--text-body); stroke-width: 1.25; }
.ov-legendbox .ov-swatch--hatch { fill: url(#ov-hatch); }
.ov-legendbox .ov-swatch--fill { fill: var(--text-body); fill-opacity: 0.55; }
.ov-cites path { fill: none; stroke: var(--text-body); stroke-width: 1.25; }
.ov-plat line { stroke: var(--text-body); stroke-opacity: 0.5; stroke-width: 1; }
.ov-points circle { fill: var(--text-strong); }
.ov-cursor circle { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.ov-cursor path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.ov-route { fill: none; stroke: var(--text-strong); stroke-width: 2; stroke-dasharray: 6 4; }
.ov-stations circle { fill: var(--surface-raised); stroke: var(--text-strong); stroke-width: 1.75; }
.ov-copy path { fill: none; stroke: var(--text-body); stroke-opacity: 0.7; stroke-width: 1.25; }
.ov-photo { fill: var(--c-sand-100); stroke: var(--text-body); stroke-width: 1; }
.ov-marks path { fill: none; stroke: var(--text-body); stroke-width: 1; }
.ov-callout__leader { fill: none; stroke: var(--text-body); stroke-opacity: 0.6; stroke-width: 1; stroke-dasharray: 2 3; }
.ov-callout__landing { stroke: var(--text-strong); stroke-width: 1; transition: stroke var(--dur) var(--ease); }
.ov-callout__n { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; fill: var(--rule-warm); }
.ov-callout__t { font-family: var(--font-display); font-size: 15px; font-weight: 600; fill: var(--text-strong); transition: fill var(--dur) var(--ease); }
.ov-hit { fill: transparent; stroke: none; cursor: pointer; }
.ov-ground { stroke: var(--text-strong); stroke-width: 2; }
.ov-mono { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--text-body); }
.ov-north path { fill: var(--text-strong); }
.ov-north text { font-family: var(--font-mono); font-size: 9px; fill: var(--text-strong); }
.ov-title line { stroke: var(--text-strong); stroke-width: 1; }
.ov-title__t { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; fill: var(--text-strong); }
.ov-scale path { fill: none; stroke: var(--text-strong); stroke-width: 1; }
/* Selection: the sheet taken lifts and sets in its accent; the others recede.
   The composite lights the registration lines instead. */
.ov-sheet[data-accent="teal"]  { --ov-accent: var(--c-teal); }
.ov-sheet[data-accent="ochre"] { --ov-accent: var(--c-ochre); }
.ov-sheet[data-accent="sage"]  { --ov-accent: var(--c-sage); }
.ov-sheet.is-on { transform: translateY(-12px); }
.ov-sheet.is-on .ov-sheet__face { stroke: var(--ov-accent); stroke-width: 2; fill: color-mix(in srgb, var(--ov-accent) 8%, var(--surface-raised)); }
.ov-sheet.is-on .ov-callout__t { fill: var(--ov-accent); }
.ov-sheet.is-on .ov-callout__landing { stroke: var(--ov-accent); stroke-width: 1.5; }
.ov-sheet.is-on .ov-route, .ov-sheet.is-on .ov-district, .ov-sheet.is-on .ov-stations circle, .ov-sheet.is-on .ov-legendbox rect { stroke: var(--ov-accent); }
.ov-sheet.is-on .ov-points circle { fill: var(--ov-accent); }
[data-overlay-enhanced][data-selected]:not([data-selected="layer-all"]) .ov-sheet:not(.is-on) { opacity: 0.38; }
[data-overlay-enhanced][data-selected="layer-all"] .ov-reg line { stroke: var(--accent); stroke-opacity: 0.9; }
@media (prefers-color-scheme: dark) {
  .ov-sheet[data-accent="teal"], .ov-sheet[data-accent="sage"] { --ov-accent: var(--link); }
  .ov-sheet[data-accent="ochre"] { --ov-accent: var(--accent-warm); }
}
/* The legend: the accessible controls */
.overlay__legend { display: grid; gap: 2px; border-top: 1px solid var(--border-soft); padding-top: var(--sp-3); }
.overlay__key {
  display: grid; grid-template-columns: 11.5rem 1fr; gap: var(--sp-3); align-items: baseline; text-align: left;
  padding: 0.5em 0.7em; border-radius: var(--radius); color: var(--text-body);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.overlay__key:hover { background: var(--c-sand-100); color: var(--text-strong); }
.overlay__key[aria-pressed="true"] { background: var(--surface-raised); color: var(--text-strong); box-shadow: inset 3px 0 0 var(--accent); }
.overlay__key[data-accent="teal"][aria-pressed="true"]  { box-shadow: inset 3px 0 0 var(--c-teal); }
.overlay__key[data-accent="ochre"][aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--c-ochre); }
.overlay__key[data-accent="sage"][aria-pressed="true"]  { box-shadow: inset 3px 0 0 var(--c-sage); }
.overlay__key-n { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rule-warm); }
.overlay__key-t { font-family: var(--font-display); font-size: var(--step-0); }
@media (max-width: 480px) { .overlay__key { grid-template-columns: 1fr; gap: 2px; } }
/* The readings: each layer's illustration, wrapped by its copy */
.overlay__readings { display: grid; gap: var(--sp-6); }
.o-reading { padding-bottom: var(--sp-5); border-bottom: 1px solid var(--border-soft); }
.o-reading::after { content: ""; display: block; clear: both; }
.o-reading__art { margin: 0 0 var(--sp-3); width: min(100%, 360px); }
.o-reading__art img { width: 100%; height: auto; display: block; }
@media (min-width: 620px) {
  .o-reading__art { float: right; width: 44%; max-width: 320px; margin: 0 0 var(--sp-3) var(--sp-5); shape-outside: circle(50% at 50% 50%); shape-margin: var(--sp-4); }
}
.o-reading__tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rule-warm); }
.o-reading[data-accent="teal"]  .o-reading__tag { color: var(--c-teal); }
.o-reading[data-accent="ochre"] .o-reading__tag { color: var(--c-ochre); }
.o-reading[data-accent="sage"]  .o-reading__tag { color: var(--c-sage); }
.o-reading h3 { font-size: var(--step-2); margin-top: var(--sp-2); }
.o-reading__lede { margin-top: var(--sp-3); font-size: var(--step-1); line-height: 1.35; color: var(--text-strong); max-width: 40ch; }
.o-reading > p:not(.o-reading__tag):not(.o-reading__lede):not(.o-reading__cta) { margin-top: var(--sp-3); color: var(--text-body); max-width: var(--measure); }
.o-reading__ledger { list-style: none; padding: var(--sp-3) 0 0; margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-2); border-top: 1px dashed var(--border-soft); clear: both; }
.o-reading__ledger li { display: grid; grid-template-columns: 11rem 1fr; gap: var(--sp-3); align-items: baseline; font-size: var(--step--1); color: var(--text-body); }
.o-reading__k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-strong); }
.o-reading__ledger li[data-state="live"] .o-reading__k::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 0.5em; vertical-align: 0.05em; }
.o-reading__ledger li[data-state="pending"] .o-reading__k { color: var(--text-body); }
.o-reading__cta { margin-top: var(--sp-4); }
@media (max-width: 480px) { .o-reading__ledger li { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-color-scheme: dark) {
  .o-reading[data-accent="teal"] .o-reading__tag, .o-reading[data-accent="sage"] .o-reading__tag { color: var(--link); }
  .o-reading[data-accent="ochre"] .o-reading__tag { color: var(--accent-warm); }
}
/* Enhanced: the readings fold into one panel; the legend and the sheets select among them. */
[data-overlay-enhanced] .overlay__readings { display: grid; }
[data-overlay-enhanced] .o-reading { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity var(--dur) var(--ease); }
[data-overlay-enhanced] .o-reading.is-current { visibility: visible; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .overlay * { transition: none !important; } }

/* Real Guardian crop artwork, where the compendium supplied it. Sits in the
   same square frame the placeholder uses, so a mixed grid stays even. */
.guardian__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   THE WORK  (pages/projects/)
   A register, not a gallery. Each project is a ruled entry with its number,
   status, and format stated before its title — the same apparatus-first
   treatment the policy register and tier profiles use, because these are all
   catalogue objects rather than marketing cards.
   ========================================================================== */
.work-list { display: grid; gap: 0; }
.work {
  display: grid; grid-template-columns: 9rem 1fr; gap: var(--sp-6);
  padding: var(--sp-7) 0; border-top: 1px solid var(--border-soft);
}
.work:last-child { border-bottom: 1px solid var(--border-soft); }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; gap: var(--sp-3); } }

.work__meta { display: grid; gap: var(--sp-2); align-content: start; }
.work__n { font-family: var(--font-mono); font-size: var(--step-2); line-height: 1; color: var(--rule-warm); }
.work__status {
  justify-self: start;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.3em 0.7em; border-radius: 40px;
  border: 1px solid var(--border-soft); color: var(--text-body);
}
.work__status[data-status="live"]      { border-color: var(--c-sage); color: var(--link); }
.work__status[data-status="published"] { border-color: var(--rule-warm); color: var(--accent-warm); }
.work__year { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-body); opacity: 0.8; }

.work__title { font-size: var(--step-2); }
.work__title a { color: var(--text-strong); text-decoration: none; }
.work__title a:hover { color: var(--accent); }
.work__subtitle { font-family: var(--font-display); font-size: var(--step-1); color: var(--text-body); margin-top: 2px; }
.work__format {
  margin-top: var(--sp-3); font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: 0.04em; color: var(--accent);
}
.work__summary { margin-top: var(--sp-3); color: var(--text-body); }

.work__pillars { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.work__pillars a {
  display: inline-block; text-decoration: none;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.35em 0.8em;
  border: 1px solid var(--border-soft); border-radius: 40px; color: var(--text-body);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.work__pillars a:hover { border-color: var(--rule-warm); color: var(--accent); }
.work__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }

/* ==========================================================================
   THE TRANSECT — a project's pillars as a survey line
   (pages/projects/index.php · includes/render-transect.php · js/transect.js)

   A transect is a line drawn across a site along which you record what you
   actually find. That is what a pillar does to a project: an instrument
   passed across the work, and the record is what it picked up. The stations
   sit ON the line as ticks; taking one drops a plumb to the record beneath.

   Deliberately not the site's other drawings — not the increment's build,
   not the plat's lots, not the register's set-in mark. The one thing it
   shares is the contract: every record is server-rendered and visible, and
   only [data-transect-enhanced] folds them.

   NOTE .work__pillars IS STILL LIVE and is not this. publications/
   publication.php still renders pillar chips with it; only the Work page
   moved to stations.
   ========================================================================== */
.transect { position: relative; margin: var(--sp-4) 0 0; }

/* The line, and the stations standing on it. The tick is pulled up by half
   its own height so it straddles the rule rather than hanging under it. */
.transect__line {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0 var(--sp-6);
  border-top: 1px solid var(--border-strong);
}
.transect__station { margin: 0; }
.transect__key {
  appearance: none; -webkit-appearance: none; background: none; border: 0;
  display: grid; justify-items: start; gap: var(--sp-2);
  padding: 0 0 var(--sp-2); margin: 0; cursor: pointer; text-align: left;
  font: inherit; font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-body);
  transition: color var(--dur) var(--ease);
}
.transect__tick {
  width: 9px; height: 9px; margin-top: -5px;   /* straddles the rule */
  border: 1.5px solid var(--rule-warm); background: transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
/* Hover HINTS. It never selects — the site's rule for every drawing. */
.transect__key:hover { color: var(--accent); }
.transect__key:hover .transect__tick { border-color: var(--accent); }
.transect__key:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* Taken: the tick is a filled survey marker and the label takes the accent. */
.transect__key.is-on { color: var(--accent); }
.transect__key.is-on .transect__tick {
  background: var(--accent); border-color: var(--accent);
  transform: scale(1.22);
}

/* The records. Unenhanced this is every record in order, each under its own
   heading — the whole content, just unfolded. */
.transect__records { position: relative; margin-top: var(--sp-5); display: grid; gap: var(--sp-5); }
.transect__record {
  border-top: 1px solid var(--border-soft);
  padding-top: var(--sp-4);
}
.transect__of {
  margin: 0 0 var(--sp-3); display: flex; flex-wrap: wrap; gap: 0 var(--sp-2);
  align-items: baseline;
}
.transect__of-pillar {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
}
.transect__of-in { font-size: var(--step--1); color: var(--rule-warm); }

/* Force / Consequence / Evidence. The manual's Dual Narrative principle is
   the shape of the record, so the two halves are drawn as a pair and the
   evidence line is what makes the pair checkable. */
.transect__legs { margin: 0; display: grid; gap: var(--sp-3); }
.transect__legs dt {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--rule-warm);
}
.transect__legs dd { margin: var(--sp-1) 0 0; color: var(--text-body); max-width: 62ch; }
.transect__legs dt + dd { margin-top: calc(-1 * var(--sp-2)); }
.transect__out { margin: var(--sp-4) 0 0; font-size: var(--step--1); }

/* ---- Enhanced: one record at a time, and a plumb line to say which ---- */
[data-transect-enhanced] .transect__records { gap: 0; }
[data-transect-enhanced] .transect__record { display: none; }
[data-transect-enhanced] .transect__record.is-current { display: block; }

/* The leader line from the taken station down to the record it opened. Its
   x is the one thing CSS cannot know (the stations wrap), so transect.js
   measures the station's centre and writes --tr-x. */
[data-transect-enhanced] .transect__records::before { content: none; }
[data-transect-enhanced][data-open] .transect__records::before {
  content: ""; position: absolute; left: var(--tr-x, 0); top: calc(-1 * var(--sp-5));
  width: 1px; height: var(--sp-5); background: var(--accent);
}
[data-transect-enhanced][data-open] .transect__record.is-current {
  border-top-color: var(--accent);
}

/* The record arrives, rather than appearing. var(--dur) is 0ms under
   prefers-reduced-motion, so with motion suppressed it is simply there. */
@keyframes transect-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
[data-transect-enhanced][data-open] .transect__record.is-current {
  animation: transect-drop var(--dur) var(--ease) both;
}

/* Narrow: the line turns on its side. Wrapping a horizontal rule leaves the
   stations on the second row standing on nothing — the rule belongs to the
   list, and the list only has one top edge — so below 720px each station
   carries its own, one per row, and the transect reads down the page instead
   of across it. The plumb goes with it: a taken station can be three rows up
   from the record, and a short leader hanging just above the panel points at
   nothing. The filled tick, the record's accent rule and its own pillar
   heading already say which station it came from. */
@media (max-width: 719px) {
  .transect__line { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 0; }
  .transect__station { border-top: 1px solid var(--border-strong); }
  .transect__key { width: 100%; padding-bottom: var(--sp-3); }
  [data-transect-enhanced][data-open] .transect__records::before { content: none; }
  .transect__legs dd { max-width: none; }
}


/* The work itself, when it is embeddable. Sits on the deepest ink row so the
   piece reads as the object and the page around it recedes. */
.work-video {
  position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-soft); background: #000; box-shadow: var(--shadow-2);
}
.work-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

/* Pillar cross-reference in the sidebar */
.work-pillar + .work-pillar { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border-soft); }
.work-pillar__title { font-size: var(--step-0); }
.work-pillar__summary { font-size: var(--step--1); color: var(--text-body); margin-top: var(--sp-2); }

/* Structure list — a table of contents, numbered in mono */
.work-structure { list-style: none; padding: 0; margin: var(--sp-3) 0 0; counter-reset: sect; display: grid; gap: 0; }
.work-structure li {
  counter-increment: sect; position: relative;
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-6);
  border-top: 1px solid var(--border-soft);
  font-size: var(--step--1); color: var(--text-body);
}
.work-structure li:last-child { border-bottom: 1px solid var(--border-soft); }
.work-structure li::before {
  content: counter(sect, decimal-leading-zero);
  position: absolute; left: 0; top: var(--sp-3);
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--rule-warm);
}

/* Cross-links to the other projects */
.work-pager {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-3);
  margin-top: var(--sp-8); padding-top: var(--sp-6); border-top: 1px solid var(--border-soft);
}
.work-pager__link {
  display: grid; gap: 3px; padding: var(--sp-4); text-decoration: none;
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  background: var(--surface-raised);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.work-pager__link:hover { transform: translateY(-2px); border-color: var(--rule-warm); }
.work-pager__label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.work-pager__name { font-family: var(--font-display); font-size: var(--step-0); color: var(--text-strong); }

@media (prefers-color-scheme: dark) {
  .work__status[data-status="live"]      { border-color: var(--link); color: var(--link); }
  .work__status[data-status="published"] { border-color: var(--accent-warm); color: var(--accent-warm); }
}

/* ==========================================================================
   EAST NEW YORK — evidence display (pages/research/east-new-york.php)
   Figures from the 2022 study. Set as apparatus, not as infographic: no
   illustrative icons, no gradients, no oversized numerals competing with the
   argument. "Muted civic palette with controlled highlight."
   ========================================================================== */
.findings { display: grid; gap: 0; margin: 0; }
.finding {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-4) 0; border-top: 1px solid var(--border-soft);
}
.finding:last-child { border-bottom: 1px solid var(--border-soft); }
.finding__label { grid-column: 1; font-size: var(--step-0); color: var(--text-strong); }
.finding__value {
  grid-column: 2; grid-row: 1; margin: 0;
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1; color: var(--accent);
}
.finding__compare {
  grid-column: 1 / -1; margin: 0;
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-body); opacity: 0.85;
}

/* Food environment — a counted list with proportional rules. The bar is a
   reading aid for the ratio, not a chart; it carries no color meaning. */
.foodenv { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.foodenv__item {
  display: grid; grid-template-columns: 4rem 1fr auto; align-items: center;
  gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-4) 0; border-top: 1px solid var(--border-soft);
}
.foodenv__item:last-child { border-bottom: 1px solid var(--border-soft); }
.foodenv__n { font-family: var(--font-mono); font-size: var(--step-1); color: var(--text-strong); }
.foodenv__bar { grid-column: 2; height: 6px; background: var(--c-sand-100); border-radius: 3px; overflow: hidden; }
.foodenv__bar > span { display: block; height: 100%; width: var(--w); background: var(--rule-warm); }
.foodenv__label { grid-column: 2; font-size: var(--step--1); color: var(--text-body); }
.foodenv__pct { grid-column: 3; grid-row: 1; font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); }
@media (max-width: 620px) {
  .foodenv__item { grid-template-columns: 3.5rem 1fr; }
  .foodenv__pct { grid-column: 2; grid-row: auto; justify-self: end; }
}

/* Gardens — named, addressed, sized. Real places get real specificity. */
.gardens { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-4); }
.garden {
  padding: var(--sp-5); background: var(--surface-raised);
  border: 1px solid var(--border-soft); border-left: 3px solid var(--c-sage);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.garden__name { font-size: var(--step-0); }
.garden__addr { margin-top: var(--sp-2); font-size: var(--step--1); color: var(--text-body); }
.garden__size {
  margin-top: var(--sp-3); font-family: var(--font-mono); font-size: var(--step-1); color: var(--accent-warm);
}
.garden__size span { font-size: var(--step--1); opacity: 0.8; }

/* Workshops — the method, numbered */
.workshops { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.workshop {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--sp-5);
  padding: var(--sp-6) 0; border-top: 1px solid var(--border-soft);
}
.workshop:last-child { border-bottom: 1px solid var(--border-soft); }
@media (max-width: 620px) { .workshop { grid-template-columns: 1fr; gap: var(--sp-2); } }
.workshop__n { font-family: var(--font-mono); font-size: var(--step-2); line-height: 1; color: var(--rule-warm); }
.workshop__title { font-size: var(--step-1); }
.workshop__mode {
  margin-top: 2px; font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.workshop__text { margin-top: var(--sp-3); color: var(--text-body); }

@media (prefers-color-scheme: dark) {
  .foodenv__bar { background: rgba(244, 238, 226, 0.1); }
  .garden { border-left-color: var(--link); }
}

/* Projects listed under the RIP pillar they work inside. */
.pillar-entry__works { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px dashed var(--border-soft); }
.pillar-entry__works-label {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-2);
}
.pillar-entry__works ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.pillar-entry__works li { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: baseline; }
.pillar-entry__works a { font-family: var(--font-display); font-size: var(--step-0); color: var(--text-strong); text-decoration: none; border-bottom: 1px solid var(--rule-warm); }
.pillar-entry__works a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.pillar-entry__works span { font-size: var(--step--1); color: var(--text-body); opacity: 0.85; }

/* The body of work, on the home page — a compact register, not a card grid. */
.home-work { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-3); margin-top: var(--sp-6); }
.home-work__item {
  display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-5);
  text-decoration: none; background: var(--surface-raised);
  border: 1px solid var(--border-soft); border-top: 3px solid var(--rule-warm);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.home-work__item:hover { transform: translateY(-2px); border-top-color: var(--accent); }
.home-work__status { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.home-work__title { font-family: var(--font-display); font-size: var(--step-1); color: var(--text-strong); line-height: 1.15; }
.home-work__format { font-size: var(--step--1); color: var(--text-body); opacity: 0.9; }

/* ==========================================================================
   LIST-WRAPPED GRIDS
   --------------------------------------------------------------------------
   These collections are marked up as <ul>/<li> rather than as bare runs of
   <a> siblings. That is a robustness decision, not a styling one: a bare run
   of links has no item boundaries of its own, so if the stylesheet fails to
   load — a stale cache, a blocked request, a slow connection — the whole
   collection collapses into a single line of words. It also collapses that way
   when the page is copied, scraped, or read aloud.

   With CSS present these render exactly as before: the reset already strips
   list-style and padding from ul[role="list"], and the grid moves to the <ul>
   with the <li> becoming the grid item. Without CSS the browser's own list
   rendering supplies the separation.

   The <li> is a flex box only so the anchor inside it still fills the cell.
   ========================================================================== */
.work-pager > li,
.guardian-pager > li,
.home-work > li,
.region-grid > li,
.tier-grid > li { display: flex; }   /* li.tier sets the column direction itself */

.work-pager > li > a,
.guardian-pager > li > a,
.home-work > li > a,
.region-grid > li > a { flex: 1 1 auto; }
/* .tier-grid is no longer in this list: its <li> IS the card (li.tier) and the
   only <a> inside is the tier's name, which must not grow to fill the cell. */

/* .region-tile carries its own aspect-ratio; let the cell drive the height so
   a tile inside an <li> matches one that is a direct grid child. */
.region-grid > li > .region-tile { width: 100%; }

/* ==========================================================================
   THE STRATIGRAPH — the home page's signature element
   --------------------------------------------------------------------------
   Six pillars drawn as a cut section. Reads top-down as surface-to-depth, so
   the numbering runs with the stack and each layer sits on the one below it.

   Chosen over the four-node wheel it replaced because the RIP manual asks for
   "coherent spatial logic … architectural or infrastructural clarity". A wheel
   is a generic infographic; a section drawing is the form the subject matter
   actually takes. It also makes the hero's existing soil-strata motif
   structural rather than decorative.

   Restraint rules still apply: no fills, no shadows, no color coding by
   category. Depth is carried by rule weight and inset alone.
   ========================================================================== */
.strat { display: grid; gap: var(--sp-5); }

/* ---- The section stack ---- */
.strat__stack {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid rgba(217, 199, 167, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(217, 199, 167, 0.04);
}
.strat__layer + .strat__layer { border-top: 1px solid rgba(217, 199, 167, 0.22); }

.strat__cut {
  position: relative; width: 100%; text-align: left;
  display: grid; grid-template-columns: 2.9rem 1fr; align-items: center;
  gap: var(--sp-3);
  padding: 0.85em var(--sp-4);
  color: var(--c-sand);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              padding-left var(--dur) var(--ease);
}
.strat__n {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  color: var(--accent-warm-on-dark);   /* ochre fails AA on espresso at this size */
}
.strat__name {
  font-family: var(--font-display); font-size: var(--step-0); line-height: 1.2;
}
/* The seam: a hairline that grows into the layer as it is selected — the cut
   being opened, rather than a highlight being applied. */
.strat__seam {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: 50% 0;
  transition: transform var(--dur) var(--ease);
}
.strat__cut:hover { background: rgba(217, 199, 167, 0.07); color: var(--c-white); }
.strat__cut[aria-expanded="true"] {
  background: rgba(217, 199, 167, 0.10);
  color: var(--c-white);
  padding-left: calc(var(--sp-4) + 6px);
}
.strat__cut[aria-expanded="true"] .strat__seam { transform: scaleY(1); }

/* ---- The readings ----
   Every reading is in the document. Only once the script has run does hiding
   become meaningful, so the collapse is gated on the enhanced flag: with JS
   off, all six stay open and the page is the whole argument. */
.strat__readings { display: grid; gap: var(--sp-6); }
.strat__reading { display: grid; gap: var(--sp-3); }
.strat__reading-title { font-size: var(--step-1); color: var(--c-white); }
.strat__reading-summary { color: var(--text-on-dark); max-width: 54ch; }
.strat__work-label {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-warm-on-dark);
}
.strat__work { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.strat__work a {
  font-family: var(--font-display); font-size: var(--step-0); color: var(--c-sand);
  text-decoration: none; border-bottom: 1px solid var(--rule-warm);
}
.strat__work a:hover { color: var(--c-white); border-bottom-color: var(--c-white); }
.strat__more { font-size: var(--step--1); }
.strat__more .text-link { color: var(--c-sand); }
.strat__more .text-link:hover { color: var(--c-white); }

/* The stratigraph sits on the espresso hero, so the dual-narrative panel needs
   to read on dark ground rather than on the light page it was designed for.
   SINCE 2026-09 THAT GROUND IS A PHOTOGRAPH (.hero__ground), and a 4-6% sand
   wash that was ample over flat espresso is not ample over a collage: the
   small sand link in .strat__more measured 3.9:1 against the brightest pixel
   behind it at 1440, under the 4.5:1 a link that size needs. Both panels now
   carry an espresso base under the same wash — the drawing keeps its weight,
   and a sheet laid over a photograph gets a ground, which is what a sheet is
   for. */
.strat__stack,
.strat .dual {
  background:
    linear-gradient(rgba(217, 199, 167, 0.055), rgba(217, 199, 167, 0.055)),
    color-mix(in srgb, var(--surface-ink) 86%, transparent);
  border-color: rgba(217, 199, 167, 0.28);
}
.strat .dual__side--force { border-right-color: rgba(217, 199, 167, 0.28); }
@media (max-width: 720px) {
  .strat .dual__side--force { border-right-color: transparent; border-bottom-color: rgba(217,199,167,0.28); }
}
.strat .dual__side p { color: var(--text-on-dark); }
.strat .dual__side--force { border-left-color: var(--c-sage); }
.strat .dual__side--force .dual__label { color: var(--c-sage); }
.strat .dual__side--consequence .dual__label { color: var(--accent-warm-on-dark); }

/* Wider than a phone: section on the left, reading on the right. */
@media (min-width: 900px) {
  .strat { grid-template-columns: minmax(230px, 0.85fr) 1.15fr; gap: var(--sp-6); align-items: start; }
}

/* The hero grid was sized for a square wheel; the stratigraph is taller than
   it is wide, so give the column more room and let the text column breathe. */
.hero__grid:has(.strat) {
  grid-template-columns: 1fr 1.25fr;
  /* Not centered: centring makes any height change move BOTH columns, which is
     half of what produced the shake. Top-aligned, the stack stays put. */
  align-items: start;
}
@media (max-width: 1100px) { .hero__grid:has(.strat) { grid-template-columns: 1fr; } }

/* ---- Enhanced state: one cell, zero layout shift ----
   With the script running, every reading occupies the SAME grid cell. The
   panel is therefore always as tall as the tallest reading, and choosing a
   layer changes nothing about the geometry. That is what makes selection safe:
   the first version swapped readings of different heights, the hero column
   re-centered, the stack moved under the pointer, and hover-select fed itself
   in a loop until the page shook.

   visibility (not display) keeps the inactive readings sized, so they still
   reserve the space — while remaining out of the accessibility tree and out of
   the tab order, which display:none and visibility:hidden both guarantee. */
.strat[data-strat-enhanced] .strat__readings { gap: 0; }
.strat[data-strat-enhanced] .strat__reading {
  grid-area: 1 / 1;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease);
  opacity: 0;
}
.strat[data-strat-enhanced] .strat__reading.is-current { visibility: visible; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .strat[data-strat-enhanced] .strat__reading { transition: none; }
}

/* Unenhanced (no JS): all six stay open, stacked normally and spaced apart. */
.strat:not([data-strat-enhanced]) .strat__readings { gap: var(--sp-7); }

/* ==========================================================================
   THE RECKONING IN PIXELS WORDMARK
   --------------------------------------------------------------------------
   The artwork is near-black letterforms with sand and ochre pixel blocks on
   transparency. It reads on light ground and vanishes on the espresso page
   heads, so the 'plate' variant sets it on a light field rather than
   recolouring it — the mark is not ours to invert.

   image-rendering: pixelated is deliberate. The mark is built from square
   blocks; smoothing them on upscale would soften the one property the design
   is about.
   ========================================================================== */
.rip-mark { display: block; }
.rip-mark img {
  display: block; width: 100%; height: auto;
  image-rendering: pixelated;
}
.rip-mark--sm { max-width: 120px; }
.rip-mark--md { max-width: 190px; }
.rip-mark--lg { max-width: 300px; }

/* On dark surfaces: a light plate, sized to the mark with breathing room. */
.rip-mark--plate {
  background: var(--c-sand-050);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  margin-block: var(--sp-3) var(--sp-4);
}
@media (prefers-color-scheme: dark) {
  /* The plate stays light in both schemes: it exists so the near-black
     letterforms have ground to sit on, which does not change with the theme. */
  .rip-mark--plate { background: var(--c-sand-050); }
}

/* Card media holding a mark rather than a photo: light field, contained, and
   no 4:3 crop pressure on a wordmark. */
.card__media--mark {
  display: grid; place-content: center;
  background: var(--c-sand-050);
  padding: var(--sp-5);
  aspect-ratio: 4 / 3;
}
.card__media--mark .rip-mark { max-width: 74%; margin-inline: auto; }
@media (prefers-color-scheme: dark) {
  .card__media--mark { background: var(--c-sand-050); }
}

/* When the mark is the heading it must not inherit display-heading sizing. */
h1.rip-mark, h2.rip-mark { font-size: 0; line-height: 0; margin: 0; }
h1.rip-mark { margin-block: var(--sp-3) var(--sp-4); }

/* ==========================================================================
   THE RIP PAGE HEAD — a light band, so the mark keeps its transparency
   --------------------------------------------------------------------------
   Every other page head on this site is espresso. This one cannot be. The
   wordmark's letterforms are #050708 — measured, 82.7% of its opaque pixels —
   which is 1.17:1 against espresso. The mark simply is not there.

   The previous fix set the mark on a light plate inside the dark head. That
   worked but boxed the artwork, and the artwork is 59.5% transparent by
   design: the letterforms are meant to sit IN a field, not on a card. So the
   band changes instead of the mark.

   Ground is sand-100. Measured against every text role in a page head it is
   the lightest option that still reads as a distinct band against the
   sand-050 page: mark 15.71:1, headings 13.39:1, body 11.39:1, the terracotta
   eyebrow 5.32:1. Plain --c-sand was rejected: it drops that eyebrow to
   4.13:1, under AA for its size.

   THE FIELD — and why it is cool, not warm.
   The first version used the logo's own accent colors on the logo's own 18px
   grid. Both were wrong, and measurably so. Composited over sand-100 those
   colors land dE 6.0-9.0 from #E1C5B5, the mark's lightest accent — the same
   color perceptually, so a block read as a detached piece of the mark rather
   than as ground. A sweep showed the problem is structural for any warm tone:
   darkening a tan over sand yields a darker tan, still the logo's family,
   never clearing dE 12 at any alpha.

   So the field moved to the brand's cool side. Sage and deep teal reach
   dE 12.4-16.1 from every logo accent while staying quiet against the ground
   (dE 9.5-21.0), and the letterforms keep 9.0-12.7:1 where they overlap a
   block — well clear of the 3:1 graphical-object floor.

   Sizes are 8, 12, 20, 28 and 36px. None is 18 and none is a clean multiple of
   it, so nothing in the field can register on the mark's module and be read as
   part of it. Alpha falls as size rises, because a 36px square carries far more
   weight than an 8px one. Coverage is 12.2% — below the threshold of pattern,
   per "emotional restraint. No sensationalism".
   ========================================================================== */
.page-head--light {
  background-color: var(--c-sand-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='144' viewBox='0 0 240 144'%3E%3Crect x='0' y='0' width='28' height='28' fill='%231f4f4f' opacity='0.22'/%3E%3Crect x='52' y='36' width='12' height='12' fill='%23568C87' opacity='0.30'/%3E%3Crect x='96' y='8' width='20' height='20' fill='%23568C87' opacity='0.26'/%3E%3Crect x='150' y='52' width='36' height='36' fill='%231f4f4f' opacity='0.22'/%3E%3Crect x='206' y='14' width='8' height='8' fill='%23568C87' opacity='0.34'/%3E%3Crect x='34' y='92' width='20' height='20' fill='%231f4f4f' opacity='0.26'/%3E%3Crect x='118' y='108' width='12' height='12' fill='%23568C87' opacity='0.30'/%3E%3Crect x='186' y='96' width='28' height='28' fill='%23568C87' opacity='0.22'/%3E%3Crect x='74' y='62' width='8' height='8' fill='%231f4f4f' opacity='0.34'/%3E%3Crect x='224' y='118' width='12' height='12' fill='%231f4f4f' opacity='0.30'/%3E%3C/svg%3E");
  background-size: 240px 144px;
  background-position: center;
}

/* Text roles flip to the light-ground tokens. .page-head sets white/sand for
   the dark band; every one of those needs an answer here or the head reads as
   a blank rectangle. */
.page-head--light h1,
.page-head--light h2,
.page-head--light h3,
.page-head--light h4 { color: var(--text-strong); }
.page-head--light .lede { color: var(--text-strong); }
.page-head--light .breadcrumb { color: var(--text-body); }
.page-head--light .breadcrumb a { color: var(--link); }
.page-head--light .breadcrumb span[aria-current] { color: var(--accent); }
.page-head--light .eyebrow { color: var(--accent); }
.page-head--light .page-head__standard {
  color: var(--text-body);
  border-top-color: var(--border-soft);
}

/* The mark sits bare on the field — no plate, no fill, transparency intact. */
.page-head--light .rip-mark--bare { margin-block: var(--sp-4) var(--sp-5); }

@media (prefers-color-scheme: dark) {
  /* The band stays light in both schemes. It is light because the artwork
     requires it, which is not a property of the viewer's theme. The tokens
     used above invert, so they are pinned back here. */
  .page-head--light { background-color: #ece2cf; }
  .page-head--light h1,
  .page-head--light h2,
  .page-head--light h3,
  .page-head--light h4,
  .page-head--light .lede { color: #261810; }
  .page-head--light .breadcrumb { color: #33261c; }
  .page-head--light .breadcrumb a { color: #1f4f4f; }
  .page-head--light .breadcrumb span[aria-current],
  .page-head--light .eyebrow { color: #A63117; }
  .page-head--light .page-head__standard {
    color: #33261c; border-top-color: rgba(38,24,16,0.16);
  }
}

/* ==========================================================================
   THE RIP LOCKUP — mark beside its text, not above it
   --------------------------------------------------------------------------
   A wordmark with a paragraph stacked underneath reads as two unrelated
   objects. Set beside the mark across a rule, the text reads as the mark's
   definition — which is what it is.
   ========================================================================== */
.rip-lockup {
  display: grid;
  grid-template-columns: minmax(170px, 250px) 1fr;
  gap: var(--sp-6);
  align-items: center;
  margin-top: var(--sp-5);
}
.rip-lockup .rip-mark { margin-block: 0; }
.rip-lockup__text {
  border-left: 1px solid var(--border-soft);
  padding-left: var(--sp-6);
  display: grid;
  gap: var(--sp-4);
}
/* The standard line carries its own rule when it sits under a heading. Inside
   the lockup the vertical separator already does that work. */
.rip-lockup__text .page-head__standard {
  border-top: 0; padding-top: 0; margin-top: 0;
}

@media (max-width: 780px) {
  .rip-lockup { grid-template-columns: 1fr; gap: var(--sp-4); align-items: start; }
  .rip-lockup .rip-mark { max-width: 210px; }
  .rip-lockup__text {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--border-soft); padding-top: var(--sp-4);
  }
}

@media (prefers-color-scheme: dark) {
  /* The band is pinned light, so its separator must be pinned dark. */
  .rip-lockup__text { border-color: rgba(38, 24, 16, 0.16); }
}

/* ==========================================================================
   PUBLICATIONS
   A catalogue of things that are not yet for sale, so it is set as a register
   rather than as a shop: no covers, no prices, no cart affordances. Extent and
   status lead, because those are the honest facts about a work in progress.
   ========================================================================== */
.pub-list { display: grid; gap: 0; }
.pub {
  display: grid; grid-template-columns: 11rem 1fr; gap: var(--sp-6);
  grid-template-areas: "meta body";
  padding: var(--sp-7) 0; border-top: 1px solid var(--border-soft);
}
.pub:has(.pub__media) { grid-template-columns: 11rem 1fr 13rem; grid-template-areas: "meta body media"; }
.pub__meta { grid-area: meta; }
.pub__body { grid-area: body; }
.pub__media {
  grid-area: media; margin: 0; align-self: start;
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow: hidden; background: var(--surface-raised); box-shadow: var(--shadow-1);
}
.pub__media img { display: block; width: 100%; height: auto; }
.pub:last-child { border-bottom: 1px solid var(--border-soft); }
@media (max-width: 900px) {
  .pub, .pub:has(.pub__media) { grid-template-columns: 1fr; grid-template-areas: "meta" "media" "body"; gap: var(--sp-4); }
  .pub__media { max-width: 260px; }
}

/* Cover figure on detail asides (publication.php, project.php). */
.pub-cover {
  margin: 0 0 var(--sp-5);
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow: hidden; background: var(--surface-raised); box-shadow: var(--shadow-1);
}
.pub-cover img { display: block; width: 100%; height: auto; }
.pub-cover figcaption {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-body);
  padding: var(--sp-2) var(--sp-3); border-top: 1px solid var(--border-soft);
}

.pub__meta { display: grid; gap: var(--sp-2); align-content: start; }
.pub__n { font-family: var(--font-mono); font-size: var(--step-2); line-height: 1; color: var(--rule-warm); }
.pub__status {
  justify-self: start;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.3em 0.7em; border-radius: 40px;
  border: 1px solid var(--border-soft); color: var(--text-body);
}
.pub__status[data-status="available"] { border-color: var(--c-sage); color: var(--link); }
.pub__series {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.pub__extent { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-body); opacity: 0.85; }

.pub__title { font-size: var(--step-2); }
.pub__title a { color: var(--text-strong); text-decoration: none; }
.pub__title a:hover { color: var(--accent); }
.pub__subtitle { font-family: var(--font-display); font-size: var(--step-1); color: var(--text-body); margin-top: 2px; }
.pub__kind {
  margin-top: var(--sp-3); font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: 0.04em; color: var(--accent);
}
.pub__summary { margin-top: var(--sp-3); color: var(--text-body); }
.pub__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.pub__buy { margin-top: var(--sp-4); }

@media (prefers-color-scheme: dark) {
  .pub__status[data-status="available"] { border-color: var(--link); color: var(--link); }
}

/* Character portraits sit contained on a light field — they are transparent
   PNGs of a figure, not photographs to be cropped to fill. */
.guardian__img--portrait {
  object-fit: contain;
  background: var(--c-sand-050);
  padding: 6%;
}
@media (prefers-color-scheme: dark) { .guardian__img--portrait { background: var(--c-sand-100); } }

.guardian__epithet {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--step--1); color: var(--text-body);
}
/* Entries added from the flashcard deck and not yet reconciled with the master
   compendium say so, rather than sitting silently alongside reviewed ones. */
.guardian__addendum {
  justify-self: start;
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-warm);
  border: 1px solid var(--rule-warm); border-radius: 40px; padding: 0.25em 0.6em;
}

/* ==========================================================================
   QR HANDOFF
   Rendered by render_qr_handoff(). Hidden by default: on a touch device the
   reader is already holding the destination, and a tap on the plain link is
   one gesture where scanning an on-screen code is impossible. Shown where the
   handoff is real — a fine-pointer screen, or paper.
   ========================================================================== */
.qr-handoff { display: none; }

@media (hover: hover) and (pointer: fine) {
  .qr-handoff {
    display: grid; gap: var(--sp-2); justify-items: center;
    width: 170px; margin: 0;
  }
  .qr-handoff img {
    width: 100%; height: auto; display: block;
    border-radius: var(--radius-lg); border: 1px solid var(--border-soft);
    /* The nametag card is white-on-black; keep it on its own card so it reads
       in both schemes without recolouring the code. */
    background: #fff;
  }
  .qr-handoff figcaption {
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
    text-transform: uppercase; text-align: center; color: var(--text-body);
    max-width: 20ch;
  }
}

@media print {
  .qr-handoff { display: grid !important; gap: 4pt; width: 32mm; }
  .qr-handoff img { width: 100%; height: auto; }
  .qr-handoff figcaption { font-size: 7pt; }
}

/* Follow CTA + QR side by side on the Instagram page; stacks when the QR is
   hidden (touch devices) because the figure contributes no box. */
.qr-cta { display: flex; align-items: center; justify-content: center; gap: var(--sp-7); flex-wrap: wrap; }

/* ==========================================================================
   COMMUNITY CONTRIBUTION — "add to the record"
   The participation the documents promise, given a form. Set as a ruled
   section, not a callout: contribution is part of the record's apparatus,
   not a marketing module.
   ========================================================================== */
.contribute {
  margin-top: var(--sp-8); padding-top: var(--sp-6);
  border-top: 2px solid var(--border-soft);
}
.contribute__heading { font-size: var(--step-2); margin-top: var(--sp-1); }
.contribute__prompt { margin-top: var(--sp-3); color: var(--text-body); }
.contribute__form { margin-top: var(--sp-5); display: grid; gap: var(--sp-4); max-width: 62ch; }
.contribute__who { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 620px) { .contribute__who { grid-template-columns: 1fr; } }
.contribute__opt {
  font-weight: 400; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-body); opacity: 0.8;
}
.contribute__actions { display: grid; gap: var(--sp-3); justify-items: start; }

/* ==========================================================================
   CYCLE STAGES — server-rendered, enhanced into one panel
   All four stage readings exist in the document (support.php). Without JS
   they all show, stacked — the commitments are readable by everyone. With JS
   ([data-cycle-enhanced]) they share the panel and the wheel selects one.
   ========================================================================== */
.cycle-stage + .cycle-stage { margin-top: var(--sp-5); }
.cycle-stage h3 { color: var(--accent); margin-bottom: var(--sp-2); }
[data-cycle-enhanced] .cycle-stage { display: none; margin-top: 0; }
[data-cycle-enhanced] .cycle-stage.is-current { display: block; }

/* One honest action per tier profile. */
.tier-profile__act {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px dashed var(--border-soft);
}
.tier-profile__act-label {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-body);
}

/* Filter toolbars are enhancement-only: without JS they are dead buttons that
   mislead. The full content is always rendered, so hiding the controls until
   the .js flag exists costs nothing and lies to no one. */
html:not(.js) .atlas-filters,
html:not(.js) .timeline-filters,
html:not(.js) .policy-filters { display: none; }

/* ==========================================================================
   ICONS — inline SVG line icons (includes/icons.php)
   Visual aids for scanning, never sole carriers of meaning: each icon sits
   beside its word and is aria-hidden. currentColor everywhere, so contrast
   is the text's own.
   ========================================================================== */
.icon { display: inline-block; flex: none; vertical-align: -0.18em; }  /* reset.css makes svg display:block */
.policy-group__title .icon--cat { margin-right: 0.4em; vertical-align: -0.12em; color: var(--accent); }
.atlas-filter .icon { margin-right: 0.35em; vertical-align: -0.22em; }
.work__format .icon--fmt,
.pub__kind .icon--fmt { margin-right: 0.45em; vertical-align: -0.22em; color: var(--accent-warm); }
.icon-list { list-style: none; padding-left: 0; }
.icon-list li { display: flex; gap: 0.6em; align-items: baseline; }
.icon-list .icon { color: var(--accent); transform: translateY(0.22em); }

/* ==========================================================================
   CONTRIBUTION KIND SELECTOR — radio chips, one choice required
   The radio itself stays real and focusable (opacity 0 over the chip), so
   keyboard, screen reader, and no-JS behavior are the native input's.
   ========================================================================== */
.contribute__kinds { border: 0; padding: 0; margin: 0; }
.contribute__kinds legend {
  font-weight: 600; color: var(--text-strong);
  margin-bottom: var(--sp-3); padding: 0;
}
.kind-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.kind-chip { position: relative; }
.kind-chip input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; margin: 0; cursor: pointer;
}
.kind-chip__face {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.5em 0.95em;
  border: 1.5px solid var(--border-soft); border-radius: 999px;
  font-size: var(--step--1); color: var(--text-body);
  background: var(--surface-raised);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.kind-chip:hover .kind-chip__face { border-color: var(--accent); }
.kind-chip input:checked + .kind-chip__face {
  border-color: var(--accent); color: var(--accent);
  background: color-mix(in srgb, var(--surface-terracotta) 8%, var(--surface-raised));
}
.kind-chip input:focus-visible + .kind-chip__face {
  outline: 3px solid var(--focus-ring); outline-offset: 2px;
}

/* ==========================================================================
   REGION TILES WITH IMAGERY — a real crop photograph under each tile's color
   The <img> sits under .region-tile__fill; when it is present the fill's
   gradient goes translucent (same hue per data-i) and lands on 95% espresso
   at the bottom where the text lives — white text stays >=10:1 over any
   photograph. Tiles whose region has no imaged guardian keep the original
   solid gradients untouched.
   ========================================================================== */
.region-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.region-tile__img + .region-tile__fill { background: linear-gradient(160deg, rgba(54,115,115,0.80), rgba(38,24,16,0.95)); }
.region-tile[data-i="1"] .region-tile__img + .region-tile__fill { background: linear-gradient(160deg, rgba(166,87,18,0.80), rgba(38,24,16,0.95)); }
.region-tile[data-i="2"] .region-tile__img + .region-tile__fill { background: linear-gradient(160deg, rgba(166,49,23,0.80), rgba(38,24,16,0.95)); }
.region-tile[data-i="3"] .region-tile__img + .region-tile__fill { background: linear-gradient(160deg, rgba(86,140,135,0.80), rgba(38,24,16,0.95)); }
.region-tile[data-i="4"] .region-tile__img + .region-tile__fill { background: linear-gradient(160deg, rgba(122,90,42,0.80), rgba(38,24,16,0.95)); }
.region-tile[data-i="5"] .region-tile__img + .region-tile__fill { background: linear-gradient(160deg, rgba(54,115,115,0.80), rgba(16,35,58,0.95)); }
.region-tile[data-i="6"] .region-tile__img + .region-tile__fill { background: linear-gradient(160deg, rgba(90,122,48,0.80), rgba(38,24,16,0.95)); }
.region-tile[data-i="7"] .region-tile__img + .region-tile__fill { background: linear-gradient(160deg, rgba(143,106,31,0.80), rgba(38,24,16,0.95)); }

/* ==========================================================================
   ATLAS LIST THUMBNAILS — an image column anchors 64 rows of text
   Crop image where one exists; otherwise the food's initial on a sand field,
   so every row has the same footprint and the list stays calm.
   ========================================================================== */
.atlas-list a { grid-template-columns: 48px 1fr; column-gap: var(--sp-3); }
.atlas-list__thumb {
  grid-row: 1 / span 3; align-self: center;
  width: 48px; height: 48px; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center;
  background: var(--c-sand-100); color: var(--accent);
  font-family: var(--font-display); font-size: var(--step-1);
}
.atlas-list__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atlas-list__name, .atlas-list__food, .atlas-list__anchor { grid-column: 2; }

/* The QR handoff nested in the contact channel list breathes a little. */
.icon-list .qr-handoff { margin-top: var(--sp-3); }

/* ==========================================================================
   KIND HINTS — what we mean when we ask
   Selecting a chip reveals one short paragraph saying what that kind can be
   (a memory is spatial, bodily, mental; place is memory, so is smell).
   Pure CSS via :has() — no JS; browsers without :has() simply never show
   hints and lose nothing. The container is aria-live so the reveal reads.
   ========================================================================== */
.kind-hints { margin-top: var(--sp-3); }
.kind-hint {
  display: none;
  max-width: 52ch;
  font-size: var(--step--1); color: var(--text-body);
  padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--rule-warm);
  background: color-mix(in srgb, var(--c-sand) 18%, var(--surface-raised));
  border-radius: 0 var(--radius) var(--radius) 0;
}
.contribute__kinds:has(input[value="memory"]:checked)     .kind-hint[data-kind-hint="memory"],
.contribute__kinds:has(input[value="dish"]:checked)       .kind-hint[data-kind-hint="dish"],
.contribute__kinds:has(input[value="recipe"]:checked)     .kind-hint[data-kind-hint="recipe"],
.contribute__kinds:has(input[value="name"]:checked)       .kind-hint[data-kind-hint="name"],
.contribute__kinds:has(input[value="correction"]:checked) .kind-hint[data-kind-hint="correction"],
.contribute__kinds:has(input[value="source"]:checked)     .kind-hint[data-kind-hint="source"],
.contribute__kinds:has(input[value="experience"]:checked) .kind-hint[data-kind-hint="experience"],
.contribute__kinds:has(input[value="trial"]:checked)      .kind-hint[data-kind-hint="trial"],
.contribute__kinds:has(input[value="other"]:checked)      .kind-hint[data-kind-hint="other"] { display: block; }

/* ==========================================================================
   WORKBENCH — the body of work, explorable in place (index.php)
   Without JS, or on touch: the work list keeps its card grid and the five
   detail panels read stacked below it — everything is on the page. With JS
   on a hover-capable device ([data-workbench-enhanced]) the list becomes a
   column and one panel previews beside it, following hover and focus.
   ========================================================================== */
.workbench__detail { margin-top: var(--sp-6); display: grid; gap: var(--sp-5); }
.workbench__panel { border-left: 3px solid var(--rule-warm); padding-left: var(--sp-5); }
/* ---- panels over a photograph ----
   A panel on a flat colour has nothing to gain from being translucent, and a
   panel over a picture has everything: the city on rows 4 and 6 has to be
   visible THROUGH the cards, not only around them. So the three panel kinds
   that appear on an image row give up part of their fill — and only there,
   scoped to [data-row-bg="image"], so every other panel on the site is
   untouched.

   The alphas are measured, not chosen. Each one is the point where its own
   copy still clears AA against the worst pixel the picture puts behind it;
   the README carries the numbers. --raised holds the most fill because its
   copy is dark on light, which is the pairing a busy image hurts first. */
/* Any section sitting over a ground plate lets it through. .section--over-city
   follows this block and overrides where the city needs its own number, so
   ORDER MATTERS here: general first, the exception after. */
.section--over-ground .panel--raised { background: color-mix(in srgb, var(--surface-raised) 92%, transparent); }

.section--over-city .panel--ink    { background: color-mix(in srgb, var(--surface-ink) 82%, transparent); }
.section--over-city .panel--raised { background: color-mix(in srgb, var(--surface-raised) 95%, transparent); }

/* .section--over-city .panel--teal IS DELIBERATELY NOT HERE. Measured at full opacity its body
   copy sits at 3.3:1 on its own fill — already under the 4.5:1 that size
   needs, and that predates any of this. Letting the picture through would
   have taken it to 2.3:1. A card that is already failing cannot pay for a
   background. It keeps its fill until --text-on-teal or --surface-teal is
   fixed, which is a separate change and worth making. */

/* On an image row the panel is the only text with no ground of its own — the
   rows beside it are already cards. Measured against the Body of Work
   background its eyebrow fell to 4.4:1, under the 4.5:1 a label that size
   needs, so it gets a ground. Scoped to [data-row-bg="image"] rather than to
   a row number: any workbench laid over a photograph wants this, and none
   laid on a flat colour does. */
[data-row-bg="image"] .workbench__panel {
  background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  padding: var(--sp-4) var(--sp-5);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.workbench__title { margin-top: var(--sp-1); }
.workbench__summary { max-width: 60ch; margin-top: var(--sp-2); }
.workbench__panel .btn { margin-top: var(--sp-3); }

/* CAPABILITY IS NOT WIDTH (2026-10-09).
   main.js enhances only where (hover: hover) and (pointer: fine), which is the
   right question to ask about a POINTER and tells you nothing about the
   viewport. A hover-capable device can still be narrow: a desktop window
   dragged small, an iPad with a Magic Keyboard, a Surface — all report hover
   and a fine pointer at phone and tablet widths.

   So the two-column split asked for room it did not have and the page scrolled
   sideways: 431px of document in a 390px viewport, 388 in 320. Measured across
   widths, it overflowed below ~500px and the panel stayed cramped (210px at
   560, 302px at 768) well above that.

   The capability check stays — it is what keeps a tap opening the work on a
   phone. This adds the second question. Below the floor the enhancement still
   runs and still shows one panel at a time; it just shows it STACKED under the
   list instead of beside it, which is the same arrangement a reader without
   JavaScript gets. */
@media (min-width: 900px) {
  [data-workbench-enhanced] {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    gap: var(--sp-7); align-items: start;
  }
  [data-workbench-enhanced] .home-work { grid-template-columns: 1fr; }
  [data-workbench-enhanced] .workbench__detail { position: sticky; top: var(--sp-6); }
}
[data-workbench-enhanced] .workbench__panel { display: none; }
[data-workbench-enhanced] .workbench__panel.is-current { display: block; }

/* Click-to-select states: the selected row holds the accent and a warm
   tint; unselected rows recede; hover only hints — the panel moves on
   click alone (see main.js). Cursor stays pointer: the rows are still
   interactive, they just select instead of navigating. */
[data-workbench-enhanced] .home-work__item {
  opacity: 0.6;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
[data-workbench-enhanced] .home-work__item:hover { opacity: 0.85; border-top-color: var(--accent); transform: none; }
[data-workbench-enhanced] .home-work__item.is-selected {
  opacity: 1;
  border-top-color: var(--accent);
  background: color-mix(in srgb, var(--surface-terracotta) 7%, var(--surface-raised));
}
@media (prefers-reduced-motion: no-preference) {
  [data-workbench-enhanced] .workbench__panel.is-current { animation: wb-in 260ms var(--ease); }
}
@keyframes wb-in { from { opacity: 0; transform: translateY(6px); } }

/* ==========================================================================
   ARCHITECTURAL BOARDS — A3 drawing sheets, pinned to the page
   The SVGs are white sheets with dark linework; they keep their own paper
   whatever the scheme, framed like drawings, never cropped.
   ========================================================================== */
.board { margin: 0; }
.board img {
  display: block; width: 100%; height: auto;
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.board figcaption {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-body);
  margin-top: var(--sp-2);
}
.guardian-board { margin-top: var(--sp-8); }
.guardian-board .board { margin-top: var(--sp-5); max-width: 980px; }
.board-gallery { margin-top: var(--sp-8); }
.board-gallery__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: var(--sp-5); margin-top: var(--sp-5);
}

/* ==========================================================================
   PRIMARY NAV MEGA-DROPDOWNS (desktop only — the mobile menu is untouched)
   Opened by CSS alone: :hover for the pointer, :focus-within for the
   keyboard, so the menu is complete without JS. main.js adds aria state
   and Escape. Each panel holds grouped links with one-line descriptions —
   straight to a project, a publication, a region, a policy area.
   ========================================================================== */
@media (min-width: 901px) {
  .primary-nav li.has-drop { position: relative; }
  .nav-drop {
    --drop-x: -50%;
    position: absolute; top: 100%; left: 50%;
    transform: translate(var(--drop-x), 8px);
    min-width: 20rem; max-width: min(88vw, 52rem); width: max-content;
    background: var(--surface-raised);
    border: 1px solid var(--border-soft); border-top: 3px solid var(--accent);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-2);
    padding: var(--sp-5) var(--sp-6);
    opacity: 0; visibility: hidden; z-index: 90;
  }
  /* hover bridge: no dead gap between the link and its panel */
  .nav-drop::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
  .primary-nav li.has-drop:hover > .nav-drop,
  .primary-nav li.has-drop:focus-within > .nav-drop {
    opacity: 1; visibility: visible; transform: translate(var(--drop-x), 0);
  }
  @media (prefers-reduced-motion: no-preference) {
    .nav-drop { transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 160ms; }
  }
  /* Escape closes (class from main.js) until the pointer leaves */
  .primary-nav li.has-drop.drop-closed > .nav-drop { opacity: 0 !important; visibility: hidden !important; }
  /* items near the right edge anchor their panel to the right instead */
  .primary-nav li[data-nav="nft"] .nav-drop,
  .primary-nav li[data-nav="maps"] .nav-drop,
  .primary-nav li[data-nav="engage"] .nav-drop { --drop-x: 0; left: auto; right: -1rem; }

  .nav-drop__inner { display: flex; gap: var(--sp-6); align-items: flex-start; }
  .nav-drop__group { min-width: 13rem; max-width: 17rem; }
  .nav-drop__group ul { margin: 0; padding: 0; }
  .nav-drop__head {
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--accent);
    padding-bottom: var(--sp-2); margin-bottom: var(--sp-2);
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-drop__group a {
    display: block; padding: var(--sp-2) var(--sp-3);
    margin-inline: calc(-1 * var(--sp-3));
    border-radius: var(--radius); text-decoration: none;
  }
  .nav-drop__group a::after { display: none; }   /* no underline animation here */
  .nav-drop__group a:hover { background: color-mix(in srgb, var(--surface-terracotta) 7%, var(--surface-raised)); }
  .nav-drop__label { display: block; font-weight: 600; font-size: var(--step--1); color: var(--text-strong); line-height: 1.3; }
  .nav-drop__group a:hover .nav-drop__label { color: var(--accent); }
  .nav-drop__desc { display: block; font-size: 0.78rem; color: var(--text-body); line-height: 1.35; margin-top: 1px; }
  /* label-only lists (the six pillars, the eight regions) stay compact */
  .nav-drop__group ul { display: grid; gap: 1px; }
}
@media (max-width: 900px) {
  .nav-drop { display: none; }   /* the mobile menu stays the simple list */
}

/* ==========================================================================
   THE PRINCIPLES LOOP — the five core principles, drawn as a closed loop
   (pages/programs/rip-methodology.php · includes/render-principles-loop.php
   · js/principles-loop.js)
   --------------------------------------------------------------------------
   Five stations on a ring, 01 at the top and clockwise from there; one
   reading shown at a time; a sweep from 01 to the station selected; the
   fifth's "next" returning to the first. The home hero draws the thesis in
   section; this draws the method in plan. The renderer's header says why a
   loop is the right form here when the hero refused a wheel.

   Restraint rules apply as they do to the stratigraph: stations are outlined
   on the raised surface, not filled; no color codes a category. The only
   color spent is the ochre station number and the terracotta of the selected
   station and the sweep — the same controlled-highlight budget as the
   dual-narrative spine. The hub is text alone, no plate.
   ========================================================================== */
.loop-grid { display: grid; gap: var(--sp-6); align-items: start; scroll-margin-top: 6rem;   /* clears the sticky header when a deep link scrolls here */ }
@media (min-width: 900px) {
  .loop-grid { grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: var(--sp-7); }
}

/* The ring is a control surface. Until the script has run it can do nothing,
   so it is not shown: five inert buttons would be worse than no ring, and
   the five readings are the whole content. */
.loop-grid:not([data-loop-enhanced]) .loop-grid__ring { display: none; }

/* ---- The ring ----
   Stations are centred ON the box's edge circle, so each hangs half a node
   outside the box; the box reserves that overhang itself (the fix the cycle
   widget needed, applied from the start here). */
.loop {
  --node: 118px;
  position: relative; aspect-ratio: 1;
  width: min(100% - var(--node), 520px);
  margin-block: calc(var(--node) / 2);
  margin-inline: auto;
}
.loop__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* The closure — always drawn, dashed, quiet. */
.loop__ring { fill: none; stroke: var(--text-body); stroke-opacity: 0.35; stroke-width: 2; stroke-dasharray: 4 7; }
/* The sweep — from 01 to the selected station. The script sets its dash to
   the full path length and moves the offset; only the offset transitions. */
.loop__sweep {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  transition: stroke-dashoffset var(--dur) var(--ease);
}

.loop__node {
  position: absolute; width: var(--node); height: var(--node);
  transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 4px;
  padding: var(--sp-2);
  background: var(--surface-raised); color: var(--text-strong);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
/* Hover hints; it never selects (see the script). */
.loop__node:hover { border-color: var(--border-strong); }
.loop__node[aria-expanded="true"] {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-2);
  transform: translate(-50%, -50%) scale(1.04);   /* the cycle's 1.06, halved per motion restraint */
}
.loop__num {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em;
  color: var(--rule-warm);                          /* ochre on white: 5.26:1 */
}
.loop__node[aria-expanded="true"] .loop__num { color: var(--accent); }
.loop__name { font-family: var(--font-display); font-size: var(--step-0); line-height: 1.15; }

/* The hub: text alone at the centre, no plate — the ring passes well outside
   it (r 120 of 150 against a 52% hub, r 78). */
.loop__hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; padding: var(--sp-3);
  color: var(--text-strong);
}
.loop__hub .h { font-family: var(--font-display); font-size: var(--step-0); line-height: 1.2; }
.loop__hub .s {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-top: 6px;
}

/* ---- The readings ----
   The .principle block is unchanged; this adds the anchor to the next rule
   and the enhanced collapse. */
.principle__next {
  margin-top: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: baseline;
}
.principle__next-label {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.principle__next a {
  font-family: var(--font-display); font-size: var(--step-0); color: var(--link);
  text-decoration: none; border-bottom: 1px solid var(--rule-warm);
}
.principle__next a:hover { color: var(--link-hover); border-bottom-color: currentColor; }

/* Enhanced: one cell, zero layout shift. Every reading occupies the SAME
   grid cell, so the column is always as tall as the tallest reading and
   choosing a station changes no geometry (the stratigraph's technique).
   visibility keeps the inactive readings sized while removing them from the
   accessibility tree and the tab order. */
[data-loop-enhanced] .principles--loop { display: grid; }
[data-loop-enhanced] .principles--loop .principle {
  grid-area: 1 / 1;
  border-bottom: 1px solid var(--border-soft);
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
[data-loop-enhanced] .principles--loop .principle.is-current { visibility: visible; opacity: 1; }

@media (max-width: 820px) {
  .loop { --node: 96px; width: min(100% - var(--node), 380px); }
  .loop__name { font-size: var(--step--1); }
}
@media (prefers-reduced-motion: reduce) {
  .loop__sweep, .loop__node, [data-loop-enhanced] .principles--loop .principle { transition: none; }
}

/* ==========================================================================
   THE INCREMENT — one figure, built in five parts
   (pages/research/hudson-yards.php · includes/render-increment.php ·
    includes/tif-config.php · js/increment.js)
   Every published explanation of tax increment financing is the same
   drawing: a base value frozen at a date, an assessed value that keeps
   rising, and the wedge between them. So the page draws that figure once
   and lets the five-part series assemble it. Unlike the other drawings on
   this site, selection here does not only highlight — it BUILDS. Layers
   ahead of the part you are on carry .is-pending and recede almost to
   nothing; stepping back un-draws them again. Same pens, same enhancement
   contract as the plat, the registers and the overlay.
   ========================================================================== */
.increment { display: grid; gap: var(--sp-6); scroll-margin-top: 6rem; margin-top: var(--sp-6); }
.increment__svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ---- the pens ---- */
.inc-datum { stroke: var(--text-strong); stroke-width: 2.5; transition: stroke var(--dur) var(--ease); }
.inc-datum--imported { stroke-width: 2; stroke-dasharray: 10 6; }   /* arriving from off the sheet */
.inc-value { fill: none; stroke: var(--text-strong); stroke-width: 2.5; transition: stroke var(--dur) var(--ease); }
.inc-freeze { stroke: var(--text-body); stroke-width: 1.25; stroke-dasharray: 8 4 2 4; }   /* chain-dotted: a datum, not a wall */
.inc-arrow { fill: var(--text-strong); transition: fill var(--dur) var(--ease); }
.inc-wedge { stroke: none; }
.inc-hatch__line { stroke: var(--rule-warm); stroke-width: 1; transition: stroke var(--dur) var(--ease); }
.inc-pledge { fill: none; stroke: var(--text-strong); stroke-width: 1.5; stroke-dasharray: 5 4; }
.inc-col { stroke: var(--text-body); stroke-width: 6; transition: stroke var(--dur) var(--ease); }
.inc-col--covered { stroke: var(--accent); stroke-dasharray: 3 3; }   /* the part the general fund makes up */
.inc-axis, .inc-tick { stroke: var(--text-body); stroke-opacity: 0.5; stroke-width: 1; }
.inc-ghost { fill: none; stroke: var(--text-body); stroke-opacity: 0.45; stroke-width: 1.25; }
.inc-ghost__tick { stroke: var(--text-body); stroke-opacity: 0.45; stroke-width: 1; }
.inc-disc { fill: var(--surface-raised); stroke: var(--text-strong); stroke-width: 2; transition: fill var(--dur) var(--ease), stroke var(--dur) var(--ease); }
.inc-disc__n { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.04em; fill: var(--text-strong); transition: fill var(--dur) var(--ease); }
.inc-leader { fill: none; stroke: var(--text-body); stroke-opacity: 0.55; stroke-width: 1; stroke-dasharray: 2 3; }
.inc-landing { stroke: var(--text-strong); stroke-width: 1; transition: stroke var(--dur) var(--ease), stroke-width var(--dur) var(--ease); }
.inc-mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; fill: var(--text-body); }
.inc-label, .inc-annot { fill: var(--rule-warm); transition: fill var(--dur) var(--ease); }
.inc-title__rule { stroke: var(--text-strong); stroke-width: 1; }
.inc-hit { fill: transparent; stroke: transparent; stroke-width: 22; cursor: pointer; }

/* ---- selection: the part taken sets in its accent, its neighbours recede ---- */
.inc-mark { transition: opacity var(--dur) var(--ease); }
.inc-mark[data-accent="teal"]  { --inc-accent: var(--c-teal); }
.inc-mark[data-accent="ochre"] { --inc-accent: var(--c-ochre); }
.inc-mark[data-accent="terra"] { --inc-accent: var(--accent); }
.inc-mark.is-on .inc-disc { stroke: var(--inc-accent); fill: color-mix(in srgb, var(--inc-accent) 14%, var(--surface-raised)); }
.inc-mark.is-on .inc-disc__n,
.inc-mark.is-on .inc-label { fill: var(--inc-accent); }
.inc-mark.is-on .inc-landing { stroke: var(--inc-accent); stroke-width: 1.5; }
.inc-mark.is-on .inc-datum,
.inc-mark.is-on .inc-value,
.inc-mark.is-on .inc-col { stroke: var(--inc-accent); }
.inc-mark.is-on .inc-arrow { fill: var(--inc-accent); }
/* The hatch pattern is declared in <defs>, outside every mark, so the wedge
   is set from the root rather than from the group that draws it. */
[data-increment-enhanced][data-selected="tif-the-machine"] .inc-hatch__line { stroke: var(--c-ochre); }

/* ---- the build: everything ahead of this part has not been drawn yet ----
   A layer that has not been reached is UNDERLAY, not a faded copy of the
   finished drawing: its geometry is pencilled in so you can see where the
   figure is going, but it is not LETTERED. A sheet gains its callouts when
   the layer is issued, so leaders, landings and annotation are held back
   entirely until the part is taken. */
[data-increment-enhanced] .inc-layer { transition: opacity var(--dur) var(--ease); }
[data-increment-enhanced] .inc-layer.is-pending { opacity: 0.11; }
[data-increment-enhanced] .inc-layer.is-pending .inc-leader,
[data-increment-enhanced] .inc-layer.is-pending .inc-landing,
[data-increment-enhanced] .inc-layer.is-pending .inc-mono,
[data-increment-enhanced] .inc-layer.is-pending .inc-disc,
[data-increment-enhanced] .inc-layer.is-pending .inc-disc__n { opacity: 0; }
/* [data-whole] is sheet 00, the general arrangement: no mark is singled out,
   so no mark recedes. It is the only state in which the finished figure is
   seen at full weight. */
[data-increment-enhanced][data-selected]:not([data-whole]) .inc-mark:not(.is-on):not(.is-pending) { opacity: 0.42; }

@media (prefers-color-scheme: dark) {
  .inc-mark[data-accent="teal"]  { --inc-accent: var(--link); }
  .inc-mark[data-accent="ochre"] { --inc-accent: var(--accent-warm); }
  [data-increment-enhanced][data-selected="tif-the-machine"] .inc-hatch__line { stroke: var(--accent-warm); }
}

/* On a phone the sheet scales to about a third, which renders the callouts
   at two or three pixels. The figure keeps its meaning without them — a
   line that stops rising, a line that does not, and the wedge between — so
   below 700px the callout apparatus is dropped, the pens are thickened, and
   the numbered discs are enlarged to stay legible as the only labels left.
   The title block goes with them, which is why the page repeats SCHEMATIC ·
   NOT TO SCALE underneath the drawing in text rather than only in the SVG. */
@media (max-width: 700px) {
  .increment__svg .inc-leader,
  .increment__svg .inc-landing,
  .increment__svg .inc-mono,
  .increment__svg .inc-axis,
  .increment__svg .inc-tick,
  .increment__svg .inc-title__rule { display: none; }
  .increment__svg .inc-datum,
  .increment__svg .inc-value { stroke-width: 8; }
  .increment__svg .inc-datum--imported { stroke-dasharray: 22 13; }
  .increment__svg .inc-freeze { stroke-width: 5; stroke-dasharray: 18 9 4 9; }
  .increment__svg .inc-col { stroke-width: 17; }
  .increment__svg .inc-pledge { stroke-width: 5; stroke-dasharray: 12 9; }
  .increment__svg .inc-ghost,
  .increment__svg .inc-ghost__tick { stroke-width: 5; }
  .increment__svg .inc-hatch__line { stroke-width: 3; }
  /* r and font-size are SVG user units, so they shrink with the sheet: these
     land at roughly a 26px disc carrying a 10px numeral on a 390px screen.
     Where the r property is unsupported the disc keeps its authored radius,
     which is small but not wrong. */
  .increment__svg .inc-disc { stroke-width: 6; r: 34; }
  .increment__svg .inc-disc__n { font-size: 26px; }
}

/* ---- the index (the accessible control) + the readings ---- */
.increment__body { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) {
  .increment__body { grid-template-columns: minmax(250px, 0.82fr) 1.6fr; gap: var(--sp-8); align-items: start; }
}
.increment__legend { display: grid; gap: 2px; align-content: start; border-top: 1px solid var(--border-soft); padding-top: var(--sp-3); }
.increment__key {
  display: grid; gap: 2px; text-align: left;
  padding: 0.55em 0.7em; border-radius: var(--radius); color: var(--text-body);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.increment__key:hover { background: var(--c-sand-100); color: var(--text-strong); }
/* Parts already built. The index doubles as the progress through the series:
   what is behind you carries a plain rule, what you are on carries its accent. */
.increment__key.is-passed { box-shadow: inset 3px 0 0 var(--border-strong); color: var(--text-strong); }
.increment__key[aria-pressed="true"] { background: var(--surface-raised); color: var(--text-strong); box-shadow: inset 3px 0 0 var(--accent); }
.increment__key[data-accent="teal"][aria-pressed="true"]  { box-shadow: inset 3px 0 0 var(--c-teal); }
.increment__key[data-accent="ochre"][aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--c-ochre); }
.increment__key-n { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rule-warm); }
.increment__key-t { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.15; }
/* Sheet 00 is the whole drawing, not a point in it, so it is ruled off from
   the five parts that follow rather than listed as a sixth of them. */
.increment__key[data-n="0"] { margin-bottom: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--border-soft); }

.increment__readings { display: grid; gap: var(--sp-7); }
.inc-reading__tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rule-warm); }
.inc-reading[data-accent="teal"]  .inc-reading__tag { color: var(--c-teal); }
.inc-reading[data-accent="ochre"] .inc-reading__tag { color: var(--c-ochre); }
.inc-reading[data-accent="terra"] .inc-reading__tag { color: var(--accent); }
.inc-reading h3 { font-size: var(--step-2); line-height: 1.12; margin-top: var(--sp-2); }
.inc-reading__lede { margin-top: var(--sp-3); font-size: var(--step-1); line-height: 1.35; color: var(--text-strong); max-width: 46ch; }
.inc-reading > p:not(.inc-reading__tag):not(.inc-reading__lede):not(.inc-reading__act) {
  margin-top: var(--sp-3); color: var(--text-body); max-width: var(--measure);
}
/* The series' own words, set as the series' own words. */
.inc-quote { margin-top: var(--sp-5); padding-left: var(--sp-5); border-left: 2px solid var(--accent); max-width: var(--measure); }
.inc-quote p { color: var(--text-strong); }
.inc-quote p + p { margin-top: var(--sp-3); }
.inc-quote cite {
  display: block; margin-top: var(--sp-3); font-style: normal;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--rule-warm);
}
.inc-reading__act {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px dashed var(--border-soft);
}
.inc-reading__note { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-body); }
[data-increment-enhanced] .increment__readings { display: grid; }
[data-increment-enhanced] .inc-reading { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity var(--dur) var(--ease); }
[data-increment-enhanced] .inc-reading.is-current { visibility: visible; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .increment * { transition: none !important; } }
@media (prefers-color-scheme: dark) {
  .inc-reading[data-accent="teal"]  .inc-reading__tag { color: var(--link); }
  .inc-reading[data-accent="ochre"] .inc-reading__tag { color: var(--accent-warm); }
}

/* ==========================================================================
   THE STUDY PLATES — three sheets from one drawer
   (pages/research/index.php · includes/render-study-plate.php ·
    includes/research-config.php)
   The research library's three cards opened with placeholder blocks that
   said REPLACE WITH FINAL ARTWORK on a page about evidence. Each card now
   opens with a small survey plate that is a reduction of the figure that
   study actually uses: the four East New York gardens plotted to their real
   relative area, the increment in section, and strata cut by a fault. One
   sheet size, one pen set, one title strip, so they read as a set.
   ========================================================================== */
.card__media--plate {
  aspect-ratio: 4 / 3; background: var(--c-sand-050);
  display: grid; place-items: stretch; padding: 0; overflow: hidden;
}
.plate { width: 100%; height: 100%; display: block; }

/* ---- the pens, shared by all three plates ---- */
.plate__hatch { stroke: var(--rule-warm); stroke-width: 0.9; transition: stroke var(--dur) var(--ease); }
.plate__block { fill: none; stroke: var(--text-strong); stroke-width: 1.6; }
.plate__kerb { stroke: var(--text-body); stroke-opacity: 0.45; stroke-width: 1.2; }
.plate__plot { stroke: var(--text-strong); stroke-width: 1.6; transition: stroke var(--dur) var(--ease); }
.plate__row { stroke: var(--text-body); stroke-opacity: 0.45; stroke-width: 0.8; }
.plate__datum { stroke: var(--text-strong); stroke-width: 1.8; transition: stroke var(--dur) var(--ease); }
.plate__datum--imported { stroke-width: 1.4; stroke-dasharray: 7 4; }
.plate__value { fill: none; stroke: var(--text-strong); stroke-width: 1.8; transition: stroke var(--dur) var(--ease); }
.plate__freeze { stroke: var(--text-body); stroke-width: 1; stroke-dasharray: 6 3 1.5 3; }
.plate__wedge { stroke: none; }
.plate__col { stroke: var(--text-body); stroke-width: 4; }
.plate__col--covered { stroke: var(--accent); stroke-dasharray: 2.5 2.5; }
.plate__ghost { fill: none; stroke: var(--text-body); stroke-opacity: 0.5; stroke-width: 1.1; }
.plate__arrow { fill: var(--text-strong); transition: fill var(--dur) var(--ease); }
.plate__bed { stroke: var(--text-strong); stroke-width: 1.4; transition: stroke var(--dur) var(--ease); }
.plate__strata { stroke: var(--text-body); stroke-opacity: 0.55; stroke-width: 1.1; }
.plate__strata--surface { stroke: var(--text-strong); stroke-opacity: 1; stroke-width: 1.8; }
.plate__fault { stroke: var(--text-strong); stroke-width: 2.2; transition: stroke var(--dur) var(--ease); }
.plate__sense { fill: none; stroke: var(--text-strong); stroke-width: 1.4; }
.plate__rule { stroke: var(--text-strong); stroke-width: 1; }
.plate__mono { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; fill: var(--rule-warm); }
.plate__title { letter-spacing: 0.14em; }

/* ---- the hover hint ----
   Hover on this site hints; it never selects. The card already lifts, and
   the plate answers by setting only its SUBJECT in the study's accent — the
   four plots, the wedge, the displaced beds — while the sheet around them
   stays in graphite. Keyboard users get it from :focus-within, so it is not
   a pointer-only affordance. */
.card__media--plate[data-accent="teal"]  { --plate-accent: var(--c-teal); }
.card__media--plate[data-accent="ochre"] { --plate-accent: var(--c-ochre); }
.card__media--plate[data-accent="terra"] { --plate-accent: var(--accent); }
.card:hover .plate__key .plate__plot,
.card:hover .plate__key .plate__bed,
.card:focus-within .plate__key .plate__plot,
.card:focus-within .plate__key .plate__bed { stroke: var(--plate-accent); }
.card:hover .plate__key .plate__hatch,
.card:focus-within .plate__key .plate__hatch { stroke: var(--plate-accent); }
.card:hover .plate__title,
.card:focus-within .plate__title { fill: var(--plate-accent); }

/* The hatch lives in <defs>, outside .plate__key, so the wedge and the beds
   are reached through the plate root rather than through the group that
   draws them. */
.card:hover .plate .plate__hatch,
.card:focus-within .plate .plate__hatch { stroke: var(--plate-accent); }

@media (prefers-color-scheme: dark) {
  .card__media--plate { background: var(--c-sand-050); }
  .card__media--plate[data-accent="teal"]  { --plate-accent: var(--link); }
  .card__media--plate[data-accent="ochre"] { --plate-accent: var(--accent-warm); }
}
@media (prefers-reduced-motion: reduce) { .plate * { transition: none !important; } }

/* The Shifting Landscapes plate carries two registers of one fault — what
   slid, in plan, and what dropped, in section — so it needs three pens the
   other two plates do not: the divider between the registers, the dashed
   trace showing where the ground would have been, and the gouge in the
   shear zone. The zone is two edges rather than one line because a fault
   that is still being worked is a width, not a break. */
.plate__divider { stroke: var(--text-body); stroke-opacity: 0.3; stroke-width: 1; stroke-dasharray: 3 4; }
.plate__trace--ghost { stroke: var(--text-body); stroke-opacity: 0.45; stroke-width: 1; stroke-dasharray: 5 4; }
.plate__dim { fill: none; stroke: var(--text-body); stroke-opacity: 0.6; stroke-width: 0.9; }
.plate__gouge { fill: none; stroke: var(--text-body); stroke-opacity: 0.75; stroke-width: 1.2; }

/* ==========================================================================
   THE DECLARED SPLIT — the counter-figure to the increment
   (pages/research/hudson-yards.php · includes/render-declared.php ·
    org_allocation())
   One bar is every dollar. It is divided at sixty, both shares dimensioned
   above the way a drawing that expects to be built from is dimensioned, and
   the whole width dimensioned again below to say what does not leave. A
   dimension is a commitment — the number the thing gets made to, on the
   sheet before anyone starts — which is the entire argument against the
   mechanism the rest of the page takes apart.

   NO SCRIPT. Three radios, three labels, sibling combinators. Selection,
   focus and arrow keys are the browser's own, one term is open at rest, and
   print shows all three.
   ========================================================================== */
.declared {
  display: grid; gap: var(--sp-6); margin-top: var(--sp-6);
  border: 0; padding: 0; min-inline-size: 0;   /* a fieldset, reset to a grid */
}
.declared__sheet { position: relative; }
.declared__svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ---- the pens ---- */
.dec-bar { fill: none; stroke: var(--text-strong); stroke-width: 2.5; }
.dec-seg { stroke: none; transition: fill var(--dur) var(--ease); }
.dec-seg--standing { fill: transparent; }
.dec-hatch__line { stroke: var(--rule-warm); stroke-width: 1; transition: stroke var(--dur) var(--ease); }
.dec-split { stroke: var(--text-strong); stroke-width: 1.25; stroke-dasharray: 8 4 2 4; }   /* chain-dotted: a division, not a wall */
.dec-ext { stroke: var(--text-body); stroke-opacity: 0.55; stroke-width: 1; }
.dec-dim { stroke: var(--text-strong); stroke-width: 1; transition: stroke var(--dur) var(--ease), stroke-width var(--dur) var(--ease); }
.dec-tick { fill: none; stroke: var(--text-strong); stroke-width: 1.25; }
.dec-mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; fill: var(--text-body); }
.dec-figure { font-size: 13px; letter-spacing: 0.1em; fill: var(--rule-warm); transition: fill var(--dur) var(--ease); }
.dec-figure--profit { font-size: 10px; letter-spacing: 0.14em; }
.dec-title__rule { stroke: var(--text-strong); stroke-width: 1; }

/* Transparent labels lying over the shapes: pointer conveniences with no
   accessible name and no tab stop. The three terms below are the control. */
.dec-hit { position: absolute; cursor: pointer; }

/* ---- selection, by the radio that names it ---- */
.dec-input:checked ~ .declared__sheet .dec-hatch__line { stroke: var(--rule-warm); }
/* The hatched share is filled by the pattern, set as a presentation
   attribute. A CSS fill here would win over it and erase the hatch
   entirely, so this share sets in through its PEN — the hatch stroke — and
   never through its fill. Only the plain share, which has no pattern, is
   tinted. */
#dec-programs:checked ~ .declared__sheet .dec-hatch__line   { stroke: var(--c-teal); }
#dec-programs:checked ~ .declared__sheet .dec-dim--programs { stroke: var(--c-teal); stroke-width: 2; }
#dec-programs:checked ~ .declared__sheet .dec-figure--programs { fill: var(--c-teal); }
#dec-standing:checked ~ .declared__sheet .dec-seg--standing { fill: color-mix(in srgb, var(--c-ochre) 12%, transparent); }
#dec-standing:checked ~ .declared__sheet .dec-dim--standing { stroke: var(--c-ochre); stroke-width: 2; }
#dec-standing:checked ~ .declared__sheet .dec-figure--standing { fill: var(--c-ochre); }
#dec-profit:checked ~ .declared__sheet .dec-dim--profit { stroke: var(--accent); stroke-width: 2; }
#dec-profit:checked ~ .declared__sheet .dec-figure--profit { fill: var(--accent); }

/* ---- the three terms: the control ---- */
.declared__terms { display: grid; gap: var(--sp-3); }
@media (min-width: 720px) { .declared__terms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dec-term {
  display: grid; gap: 2px; cursor: pointer;
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border-soft);
  color: var(--text-body);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.dec-term:hover { background: var(--c-sand-100); color: var(--text-strong); }
.dec-term__n { font-family: var(--font-mono); font-size: var(--step-1); letter-spacing: 0.08em; color: var(--rule-warm); transition: color var(--dur) var(--ease); }
.dec-term__t { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.15; }
#dec-programs:checked ~ .declared__terms .dec-term--programs,
#dec-standing:checked ~ .declared__terms .dec-term--standing,
#dec-profit:checked   ~ .declared__terms .dec-term--profit {
  color: var(--text-strong); border-top-width: 3px; border-top-color: currentColor;
}
#dec-programs:checked ~ .declared__terms .dec-term--programs { border-top-color: var(--c-teal); }
#dec-programs:checked ~ .declared__terms .dec-term--programs .dec-term__n { color: var(--c-teal); }
#dec-standing:checked ~ .declared__terms .dec-term--standing { border-top-color: var(--c-ochre); }
#dec-standing:checked ~ .declared__terms .dec-term--standing .dec-term__n { color: var(--c-ochre); }
#dec-profit:checked   ~ .declared__terms .dec-term--profit   { border-top-color: var(--accent); }
#dec-profit:checked   ~ .declared__terms .dec-term--profit .dec-term__n { color: var(--accent); }
/* The radios are visually hidden, so the focus ring has to be put back on
   the label the keyboard is actually sitting on. */
.dec-input:focus-visible ~ .declared__terms .dec-term--programs,
.dec-input:focus-visible ~ .declared__terms .dec-term--standing,
.dec-input:focus-visible ~ .declared__terms .dec-term--profit { outline: none; }
#dec-programs:focus-visible ~ .declared__terms .dec-term--programs,
#dec-standing:focus-visible ~ .declared__terms .dec-term--standing,
#dec-profit:focus-visible   ~ .declared__terms .dec-term--profit {
  outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px;
}

/* ---- the readings: one cell, so choosing a term moves no geometry ---- */
.declared__readings { display: grid; }
.dec-reading { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity var(--dur) var(--ease); max-width: var(--measure); }
#dec-programs:checked ~ .declared__readings .dec-reading--programs,
#dec-standing:checked ~ .declared__readings .dec-reading--standing,
#dec-profit:checked   ~ .declared__readings .dec-reading--profit { visibility: visible; opacity: 1; }
.dec-reading__lede { font-size: var(--step-1); line-height: 1.35; color: var(--text-strong); }
.dec-reading > p + p { margin-top: var(--sp-3); color: var(--text-body); }
.declared__source { border-top: 1px dashed var(--border-soft); padding-top: var(--sp-4); }

/* On a phone the sheet renders at about a third: the callout apparatus goes
   and the pens thicken, the same reduction the other drawings take. The bar
   and its division survive, which is the whole figure. */
@media (max-width: 700px) {
  .declared__svg .dec-mono:not(.dec-figure),
  .declared__svg .dec-title__rule,
  .declared__svg .dec-ext { display: none; }
  .declared__svg .dec-bar { stroke-width: 5; }
  .declared__svg .dec-split { stroke-width: 4; stroke-dasharray: 16 8 4 8; }
  .declared__svg .dec-dim { stroke-width: 3; }
  .declared__svg .dec-tick { stroke-width: 3; }
  .declared__svg .dec-hatch__line { stroke-width: 2; }
  .declared__svg .dec-figure { font-size: 30px; }
  .declared__svg .dec-figure--profit { font-size: 17px; }
}

/* Without :checked support, or in print, every term reads in order. */
@media print {
  .dec-reading { visibility: visible; opacity: 1; grid-area: auto; margin-bottom: var(--sp-4); }
  .declared__readings { display: block; }
}
@media (prefers-reduced-motion: reduce) { .declared * { transition: none !important; } }
@media (prefers-color-scheme: dark) {
  #dec-programs:checked ~ .declared__sheet .dec-hatch__line { stroke: var(--link); }
  #dec-programs:checked ~ .declared__sheet .dec-dim--programs,
  #dec-programs:checked ~ .declared__terms .dec-term--programs { border-top-color: var(--link); stroke: var(--link); }
  #dec-standing:checked ~ .declared__sheet .dec-dim--standing { stroke: var(--accent-warm); }
  #dec-standing:checked ~ .declared__terms .dec-term--standing { border-top-color: var(--accent-warm); }
}

/* ==========================================================================
   THE HOME GROUND — the collage on the seam
   (index.php / home.php · assets/home/hero-ground-*.webp · js/hero-ground.js)
   Images/main_image is the organization's own composition and it already
   makes this page's argument: a skyline drawn as data bars and a trend line,
   over brownstones, people, planting, and a cadastral plan at the base —
   structural force and human consequence in one frame, which is the first
   RIP principle and what the row below states in words.

   IT IS SHOWN WHOLE. The first version was a bleed anchored off two edges
   and clipped by .hero's overflow, which cut the composition at the sheet
   line. This is a plate at the image's own aspect ratio, so every edge of it
   is on the page.

   AND IT BELONGS TO BOTH ROWS. It sits on the seam between the hero and the
   row below — half on the espresso, half on the sand — which is why it is a
   sibling of the two sections and a child of neither: a child could never
   cross into the other row. .ground takes no space in the flow (height: 0),
   so its top edge IS the seam, and the plate is centred on it.

   THE NAME. It is .home-ground, not .ground: includes/render-ground.php has
   owned .ground since the programs page's own drawing was built, and a later
   rule here quietly won over it — `height: 0` collapsed that drawing's
   container while its stage stayed 985px tall, and every row below piled onto
   the same lines. A component that is only ever used on one page says so in
   its name.

   THE LAYERS. .home-ground is z-index 1, which puts it above both sections'
   backgrounds (a static section paints its background below any positive
   z-index) and below their copy, which sits at z-index 2: .hero__inner
   already did, .hero__strata is raised to it so the drawn strata still read
   over the photograph, and the row below gets .section--over-ground.

   THE SCRIM IS IN EACH ROW'S OWN GROUND COLOUR — espresso above the seam,
   sand below — which is the discipline motif_style() already uses on the
   page heads. It is measured, not chosen: see the README.
   ========================================================================== */
.home-ground {
  position: relative; z-index: 1;
  display: block; height: 0;          /* the top edge is the seam */
  pointer-events: none;
}
.home-ground__plate {
  position: absolute; right: 0; top: 0;
  width: min(54%, 860px);
  aspect-ratio: 1296 / 1212;          /* the image's own, so nothing is cropped */
  transform: translateY(calc(-50% + var(--ground-shift, 0px)));
}
.home-ground__plate img {
  display: block; width: 100%; height: 100%;
  max-width: none;                    /* a plate, not a content image */
  opacity: 1;                         /* full: the collage carries the row */
}
/* Espresso over the hero's half, sand over the row below's, meeting at the
   seam, which is the plate's own midpoint. */
.home-ground__plate::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--surface-ink) 62%, transparent) 0%,
      color-mix(in srgb, var(--surface-ink) 26%, transparent) 30%,
      color-mix(in srgb, var(--surface-ink) 6%, transparent) 48%,
      color-mix(in srgb, var(--c-sand-050) 24%, transparent) 52%,
      color-mix(in srgb, var(--c-sand-050) 54%, transparent) 76%,
      color-mix(in srgb, var(--c-sand-050) 66%, transparent) 100%);
}

/* The row below the seam keeps its copy above the plate. */
.section--over-ground > .wrap { position: relative; z-index: 2; }
/* The drawn strata stay over the photograph: same depth, one scroll apart.
   .hero is the home page's alone, so this is not a global change. */
.hero__strata { z-index: 2; }

@media (max-width: 1100px) {
  /* One column both sides of the seam, so the plate centres rather than
     hanging off the right, and the scrim carries more of the load. */
  .home-ground__plate {
    right: auto; left: 50%;
    width: min(94%, 560px);
    transform: translate(-50%, calc(-50% + var(--ground-shift, 0px)));
  }
  /* In one column there is no clear band on either side of the seam: the
     stratigraph's links end just above it and the next row's copy begins
     just below. Measured, the plate cost those two regions six points of
     contrast, so here it is a presence rather than a picture — the same
     image, carrying much more cover. */
  .home-ground__plate img { opacity: 0.88; }
  .home-ground__plate::after {
    background:
      linear-gradient(to bottom,
        color-mix(in srgb, var(--surface-ink) 88%, transparent) 0%,
        color-mix(in srgb, var(--surface-ink) 74%, transparent) 36%,
        color-mix(in srgb, var(--surface-ink) 56%, transparent) 49%,
        color-mix(in srgb, var(--c-sand-050) 60%, transparent) 51%,
        color-mix(in srgb, var(--c-sand-050) 80%, transparent) 70%,
        color-mix(in srgb, var(--c-sand-050) 88%, transparent) 100%);
  }
}

/* A phone stacks everything over the seam and the type is smaller, so the
   last of the margin is taken there: measured, the row below's body copy sat
   at 4.5:1 against the AA line exactly, and a threshold is not a margin. */
@media (max-width: 700px) {
  .home-ground__plate img { opacity: 0.82; }
  .home-ground__plate::after {
    background:
      linear-gradient(to bottom,
        color-mix(in srgb, var(--surface-ink) 90%, transparent) 0%,
        color-mix(in srgb, var(--surface-ink) 78%, transparent) 36%,
        color-mix(in srgb, var(--surface-ink) 62%, transparent) 49%,
        color-mix(in srgb, var(--c-sand-050) 68%, transparent) 51%,
        color-mix(in srgb, var(--c-sand-050) 86%, transparent) 70%,
        color-mix(in srgb, var(--c-sand-050) 92%, transparent) 100%);
  }
}

/* The travel is the script's; this is the guarantee that nothing moves
   without it, and nothing moves for a reader who has asked it not to. */
@media (prefers-reduced-motion: reduce) {
  .home-ground__plate { --ground-shift: 0px; }
}
/* Where color-mix is unsupported the scrim falls back to solid stops, which
   is safe: the copy gets MORE cover, not less. */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .home-ground__plate img { opacity: 0.5; }
  .home-ground__plate::after {
    background: linear-gradient(to bottom, var(--surface-ink) 0%, transparent 46%,
                                transparent 54%, var(--c-sand-050) 100%);
  }
}

/* ==========================================================================
   THE MISSION GROUND — one city filling the page's last stretch
   (index.php / home.php · assets/home/mission-ground-*.webp)
   Images/city_upside_down: buildings hanging from their own streets, an
   elevated train running over choropleths and charts. The mission stated as
   a picture — the built environment turned over to be looked at from
   underneath.

   WHY IT IS NOT A ROW BACKGROUND. It was two of them, one on row 4 and one
   on row 6, and two row backgrounds cannot help but seam: each is clipped to
   its own box, so the picture ended at one row's bottom edge and restarted
   at the next row's, leaving a hard line straight across the page. The only
   way to hide that with scrims was to wash the middle of the region out —
   and that wash IS what read as a line.

   So the two sections share one .mission-field and the picture is a single
   image covering it. One image cannot seam against itself. Covering also
   means it OCCUPIES the rows rather than sitting letterboxed inside them,
   which is what a row background did and what this has to keep doing: the
   field is wider in proportion than the picture, so the picture is scaled to
   fill and cropped at the sides. Cropping is acceptable here in a way it was
   not for the hero ground — that one had to be shown whole; this one is a
   field the rows stand on.

   THE LAYERS. The field isolates. Both sections are static, so their
   backgrounds paint below any positive z-index; the ground takes z-index 1
   and both rows' copy sits at z-index 2 (.section--over-ground, reused).
   ========================================================================== */
.mission-field { position: relative; isolation: isolate; }
.mission-ground {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden; pointer-events: none;
}
.mission-ground img {
  display: block; width: 100%; height: 100%;
  max-width: none;                 /* a field, not a content image */
  object-fit: cover; object-position: center;
}
