/* ── legacy.css ─────────────────────────────────────────────────
   The v5 component styles, kept alive for the generated case-study
   and field-note pages until those templates are rebuilt on v6.
   The v5 token names are remapped onto the v6 palette and typeface,
   so these pages inherit the new look without a template rewrite.

   ponytail: two sheets beats one sheet with a cascade fight. Delete
   this file the day case-studies/build.py and field-notes/build.py
   emit v6 markup.
   ─────────────────────────────────────────────────────────── */
:root {
  --panel: #f1f3f4;
  --ink: #1b2327;
  --ink-soft: #5c686e;
  --ink-faint: #94a0a5;
  --hair: #d3dade;
  --mark: #a87422;

  --paper: var(--panel);
  --ink-2: var(--ink-soft);
  --ink-3: var(--ink-faint);
  --rule: var(--hair);
  --plate: #e8ecee;
  --pen: var(--mark);

  --serif: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
body { font-size: 17px; }
.italic-serif { font-style: normal; }

/* ── Tokens ─────────────────────────────────────────────
   paper   warm off-white page
   ink     near-black text
   rule    hairlines
   plate   background for sketch plates
   pen     the one accent: red pen. Marks leaks, links, the CTA. Nothing else.
*/

/* ── Base ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "kern", "liga", "tnum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
figure,
blockquote,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
::selection {
  background: var(--pen);
  color: var(--paper);
}

/* ── Type ─────────────────────────────────────────────── */
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.98;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.display-sm {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.08;
  font-variation-settings: "opsz" 36;
}
.italic-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label--plain {
  text-transform: none;
  letter-spacing: 0;
}
.label--ink {
  color: var(--ink);
}
.label--pen {
  color: var(--pen);
}
.measure {
  max-width: 36rem;
}
.body-lg {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.body-sm {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--rule);
  transition:
    text-decoration-color 200ms,
    text-underline-offset 200ms,
    color 200ms;
}
.link:hover {
  text-decoration-color: var(--pen);
  text-underline-offset: 0.32em;
}

/* ── CTAs ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.875rem 1.5rem;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 200ms;
}
.btn:hover {
  background: var(--pen);
}
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 15px;
  color: var(--ink);
}
.textlink .arrow {
  transition: transform 200ms;
}
.textlink:hover .arrow {
  transform: translateX(2px);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
}

/* ── Layout ───────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.rule {
  border-top: 1px solid var(--rule);
}
.grid {
  display: grid;
  gap: 3rem 2rem;
}
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.margin-note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.margin-note .label {
  display: block;
  margin-bottom: 0.75rem;
}
.aside-pen {
  max-width: 22rem;
  border-left: 1px solid var(--pen);
  padding-left: 1.25rem;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(4px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.nav__brand,
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__brand img,
.footer__brand img {
  height: 1.25rem;
  width: auto;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 14px;
  color: var(--ink-2);
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__links .nav__cta {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--pen);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.nav__menu {
  position: relative;
}
.nav__menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
}
.nav__menu summary::-webkit-details-marker {
  display: none;
}
.nav__menu summary .close,
.nav__menu[open] summary .open {
  display: none;
}
.nav__menu[open] summary .close {
  display: inline;
}
.nav__menu ul {
  position: absolute;
  right: 0;
  top: 2rem;
  width: 14rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.25rem;
}
.nav__menu li {
  padding: 0.5rem 0;
}
.nav__menu li a {
  font-size: 15px;
}
.nav__menu li.sep {
  margin-top: 0.75rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
.nav__menu li.sep a {
  color: var(--pen);
  font-weight: 500;
}
@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
  .nav__menu {
    display: none;
  }
}

/* ── 01 Hero ──────────────────────────────────────────── */
.hero {
  padding: 4rem 0 6rem;
}
.hero h1 {
  font-size: 4rem;
}
.hero__sub {
  margin-top: 1.5rem;
  font-size: 1.75rem;
  line-height: 1.15;
}
.hero .body-lg {
  margin-top: 2.5rem;
}
.hero__sketch {
  min-width: 0;
}
@media (min-width: 480px) {
  .hero h1 {
    font-size: 5rem;
  }
}
@media (min-width: 768px) {
  .hero {
    padding-top: 6rem;
  }
  .hero h1 {
    font-size: 6.5rem;
  }
  .hero__sub {
    font-size: 2.25rem;
  }
  .hero .body-lg {
    font-size: 1.125rem;
  }
}
@media (min-width: 1024px) {
  .hero {
    padding-bottom: 8rem;
  }
  .hero h1 {
    font-size: 7.5rem;
  }
  .hero__copy {
    grid-column: span 7;
  }
  .hero__sketch {
    grid-column: span 5;
    padding-top: 6rem;
  }
}

/* ── 02 Point of view ─────────────────────────────────── */
.pov {
  padding-top: 5rem;
}
.pov h2 {
  max-width: 18ch;
  font-size: 2.75rem;
}
.pov__line {
  margin-top: 1.5rem;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--pen);
}
.pov__copy {
  margin-top: 4rem;
}
.pov__copy p + p {
  margin-top: 1.5rem;
}
.pov__figure {
  margin-top: 5rem;
  gap: 2.5rem 2rem;
}
.pov__figure .sketch-wrap {
  min-width: 0;
}
@media (min-width: 480px) {
  .pov h2 {
    font-size: 3.25rem;
  }
}
@media (min-width: 768px) {
  .pov {
    padding-top: 7rem;
  }
  .pov h2 {
    font-size: 4.5rem;
  }
  .pov__line {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .pov h2 {
    font-size: 5.5rem;
  }
  .pov__copy > div {
    grid-column: 7 / span 6;
  }
  .pov__figure .sketch-wrap {
    grid-column: span 8;
  }
  .pov__figure aside {
    grid-column: 10 / span 3;
    padding-top: 2.5rem;
  }
}

/* ── 03 Where growth quietly disappears ───────────────── */
.leaks {
  margin-top: 6rem;
  padding-top: 5rem;
}
.leaks__head h2 {
  font-size: 2.125rem;
}
.leaks__head .body-sm {
  margin-top: 2rem;
}
.leaks__head .aside-pen {
  margin-top: 2.5rem;
}
.ledger li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
}
.ledger .label {
  padding-top: 0.375rem;
  font-variant-numeric: tabular-nums;
}
.ledger h3 {
  font-size: 1.5rem;
}
.ledger p {
  margin-top: 0.5rem;
}
@media (min-width: 480px) {
  .leaks__head h2 {
    font-size: 2.5rem;
  }
}
@media (min-width: 768px) {
  .leaks {
    margin-top: 8rem;
    padding-top: 7rem;
  }
  .leaks__head h2 {
    font-size: 3rem;
  }
  .ledger li {
    grid-template-columns: 4rem 1fr;
  }
  .ledger h3 {
    font-size: 1.75rem;
  }
}
@media (min-width: 1024px) {
  .leaks__head {
    grid-column: span 5;
  }
  .leaks__head > div {
    position: sticky;
    top: 7rem;
  }
  .ledger {
    grid-column: 7 / span 6;
  }
}

/* ── 03 How we work — the four P's ─────────────────────── */
.fourps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.fourps article {
  background: var(--paper);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fourps h3 {
  font-size: 1.5rem;
}
.fourps p {
  margin: 0;
}
@media (min-width: 600px) {
  .fourps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 768px) {
  .fourps h3 {
    font-size: 1.75rem;
  }
}
@media (min-width: 1024px) {
  .fourps {
    grid-column: 7 / span 6;
  }
}

/* ── 04 Case study ────────────────────────────────────── */
.case {
  margin-top: 6rem;
  scroll-margin-top: 6rem;
}
.case > .label {
  display: block;
  margin-bottom: 1.5rem;
}
.dossier {
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}
.dossier__file {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.dossier h3 {
  margin-top: 2.5rem;
  font-size: 2.5rem;
}
.dossier__pair {
  margin-top: 3rem;
  gap: 2.5rem 2rem;
}
.dossier__pair .label {
  display: block;
  margin-bottom: 0.75rem;
}
.dossier__pair p.italic-serif {
  font-size: 1.625rem;
  line-height: 1.2;
}
.dossier__pair .assumed {
  color: var(--ink-3);
}
.dossier__body {
  margin-top: 4rem;
  gap: 3rem 2rem;
}
.findings li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0;
}
.findings .label {
  padding-top: 0.5rem;
}
.findings .metric {
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
}
.findings .title {
  margin-top: 0.5rem;
  font-weight: 500;
}
.findings .detail {
  margin-top: 0.25rem;
}
.dossier__sketch {
  min-width: 0;
}
.dossier__cta {
  margin-top: 3rem;
}
.case__note {
  display: block;
  margin-top: 1.5rem;
}
@media (min-width: 480px) {
  .dossier h3 {
    font-size: 3rem;
  }
}
@media (min-width: 768px) {
  .case {
    margin-top: 8rem;
  }
  .dossier h3 {
    font-size: 4rem;
  }
  .dossier__pair,
  .dossier__body {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .dossier__pair .assumed-col {
    grid-column: span 5;
  }
  .dossier__pair .found-col {
    grid-column: span 7;
  }
  .dossier__pair p.italic-serif {
    font-size: 1.875rem;
  }
  .findings {
    grid-column: span 7;
  }
  .findings .metric {
    font-size: 2.5rem;
  }
  .dossier__sketch {
    grid-column: span 5;
    padding-top: 1.75rem;
  }
}
@media (min-width: 1024px) {
  .dossier h3 {
    font-size: 4.5rem;
  }
}

/* ── 05 Results ───────────────────────────────────────── */
.results {
  margin-top: 7rem;
}
.results__head h2 {
  font-size: 2.125rem;
}
.results__head .body-sm {
  margin-top: 2rem;
}
.stats {
  display: grid;
  gap: 2.5rem;
}
.stat {
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
}
.stat__value {
  font-size: 3.5rem;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 0.75rem;
  font-size: 15px;
  font-weight: 500;
}
.stat__note {
  margin-top: 0.25rem;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-3);
}
.results__note {
  display: block;
  margin-top: 2.5rem;
}
@media (min-width: 480px) {
  .results__head h2 {
    font-size: 2.5rem;
  }
}
@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .results {
    margin-top: 9rem;
  }
  .results__head h2 {
    font-size: 3rem;
  }
  .stat__value {
    font-size: 4.5rem;
  }
}
@media (min-width: 1024px) {
  .results__head {
    grid-column: span 4;
  }
  .stats {
    grid-column: span 8;
    gap: 2rem;
  }
}

/* ── Pull quote ───────────────────────────────────────── */
.quote-section {
  margin-top: 7rem;
}
.pullquote {
  border-left: 1px solid var(--pen);
  padding-left: 1.5rem;
}
.pullquote p {
  font-size: 1.5rem;
  line-height: 1.25;
}
.pullquote footer {
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .quote-section {
    margin-top: 9rem;
  }
  .pullquote {
    padding-left: 2rem;
  }
  .pullquote p {
    font-size: 1.875rem;
  }
}
@media (min-width: 1024px) {
  .pullquote {
    grid-column: 3 / span 8;
  }
}

/* ── 06 Field Notes ───────────────────────────────────── */
.notes {
  margin-top: 7rem;
  padding-top: 5rem;
  scroll-margin-top: 6rem;
}
.notes__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.notes__head h2 {
  font-size: 2.75rem;
}
.notes__head .textlink {
  margin-bottom: 0.5rem;
}
.archive {
  margin-top: 3.5rem;
  border-bottom: 1px solid var(--rule);
}
.archive li {
  border-top: 1px solid var(--rule);
}
.archive a {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1.75rem 0;
}
.archive h3 {
  font-size: 1.5rem;
  transition: color 200ms;
}
.archive a:hover h3 {
  color: var(--pen);
}
.archive .summary {
  margin-top: 0.5rem;
}
@media (min-width: 480px) {
  .notes__head h2 {
    font-size: 3.25rem;
  }
}
@media (min-width: 768px) {
  .notes {
    margin-top: 9rem;
    padding-top: 7rem;
  }
  .notes__head h2 {
    font-size: 4.25rem;
  }
  .archive a {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: baseline;
    padding: 2rem 0;
  }
  .archive .num {
    grid-column: span 2;
  }
  .archive .entry {
    grid-column: span 8;
  }
  .archive .time {
    grid-column: span 2;
    text-align: right;
  }
  .archive h3 {
    font-size: 1.75rem;
  }
}
@media (min-width: 1024px) {
  .notes__head h2 {
    font-size: 5rem;
  }
}

/* ── Documents ────────────────────────────────────────── */
.docs {
  margin-top: 7rem;
  padding-top: 5rem;
}
.docs__row {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .docs__row {
    grid-template-columns: 1fr 1fr;
  }
}
.doc {
  display: block;
  background: var(--plate);
  padding: 1.75rem 1.5rem;
}
.doc h3 {
  margin: 0.75rem 0 0.5rem;
}
.doc p {
  color: var(--ink-2);
}
.doc .textlink {
  margin-top: 1.25rem;
}
.doc:hover .textlink {
  color: var(--pen);
}

/* ── 07 Diagnostic ────────────────────────────────────── */
.diagnostic {
  margin-top: 7rem;
  scroll-margin-top: 6rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 4rem 0;
}
.diagnostic .label {
  display: block;
  margin-bottom: 2rem;
}
.diagnostic h2 {
  max-width: 14ch;
  font-size: 2.75rem;
}
.diagnostic .body-lg {
  margin-top: 2rem;
}
.diagnostic .btn {
  margin-top: 2.5rem;
}
@media (min-width: 480px) {
  .diagnostic h2 {
    font-size: 3.25rem;
  }
}
@media (min-width: 768px) {
  .diagnostic {
    margin-top: 9rem;
    padding: 6rem 0;
  }
  .diagnostic h2 {
    font-size: 4.5rem;
  }
}
@media (min-width: 1024px) {
  .diagnostic h2 {
    font-size: 5rem;
  }
  .diagnostic__main {
    grid-column: span 8;
  }
  .diagnostic aside {
    grid-column: 10 / span 3;
    align-self: flex-end;
  }
}

/* ── 08 About ─────────────────────────────────────────── */
.about {
  margin-top: 7rem;
  scroll-margin-top: 6rem;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--plate);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1);
}
.about figcaption {
  margin-top: 0.75rem;
}
.about__copy .label {
  display: block;
  margin-bottom: 2rem;
}
.about__copy .display-sm {
  font-size: 1.875rem;
}
.about__copy .body-lg {
  margin-top: 2rem;
}
.about__domains {
  margin-top: 2.5rem;
}
.about__copy .textlink {
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .about {
    margin-top: 9rem;
  }
  .about__copy .display-sm {
    font-size: 2.5rem;
  }
}
@media (min-width: 1024px) {
  .about figure {
    grid-column: span 4;
  }
  .about__copy {
    grid-column: 6 / span 7;
  }
}

/* ── 09 Final CTA ─────────────────────────────────────── */
.final {
  margin-top: 7rem;
  padding: 6rem 0 7rem;
}
.final h2 {
  max-width: 14ch;
  font-size: 3rem;
}
.final .cta-row {
  margin-top: 3rem;
}
@media (min-width: 480px) {
  .final h2 {
    font-size: 3.5rem;
  }
}
@media (min-width: 768px) {
  .final {
    margin-top: 9rem;
    padding: 9rem 0 10rem;
  }
  .final h2 {
    font-size: 5rem;
  }
}
@media (min-width: 1024px) {
  .final h2 {
    font-size: 6rem;
  }
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.footer__brand {
  font-family: var(--serif);
}
.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ── Sketch plates ────────────────────────────────────── */
.plate {
  position: relative;
  overflow-x: auto;
  background: var(--plate);
}
.plate--bleed {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.sketch {
  padding: 1.25rem;
  min-width: var(--mw, 0);
}
.sketch svg {
  display: block;
  width: 100%;
  height: auto;
}
.plate__tag {
  position: absolute;
  left: 1rem;
  bottom: 0.75rem;
  pointer-events: none;
  font-size: 9px;
  opacity: 0.7;
}
figcaption.label {
  display: block;
  margin-top: 0.75rem;
}
@media (min-width: 768px) {
  .plate--bleed {
    margin: 0;
    padding: 0;
  }
  .sketch {
    padding: 2rem;
    min-width: 0;
  }
}

.sketch path,
.sketch circle,
.sketch ellipse,
.sketch line,
.sketch polyline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Every stroke carries pathLength="1", so dash units are fractions of the path. */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1100ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sketch .pen {
  stroke: var(--pen);
  stroke-width: 1.9;
  transition-delay: 900ms;
  transition-duration: 700ms;
}
.sketch .thin {
  stroke-width: 1.1;
}
.sketch .dashed {
  stroke-dasharray: 0.02 0.025;
  stroke-dashoffset: 0;
}
.sketch text {
  font-family: var(--sans);
  font-size: 11px;
  fill: var(--ink-2);
  letter-spacing: 0.01em;
}
.sketch text.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  fill: var(--ink-3);
}
.sketch text.pen-text {
  fill: var(--pen);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
}
.in .sketch path,
.in .sketch circle,
.in .sketch ellipse,
.in .sketch line,
.in .sketch polyline {
  stroke-dashoffset: 0;
}

/* ── Reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sketch path,
  .sketch circle,
  .sketch ellipse,
  .sketch line,
  .sketch polyline {
    stroke-dashoffset: 0;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════
   Subpages
   ═══════════════════════════════════════════════════════ */

/* Page header: eyebrow, headline, deck */
.page-head {
  padding: 4rem 0 3rem;
}
.page-head .eyebrow {
  margin-bottom: 2rem;
}
.page-head h1 {
  max-width: 16ch;
  font-size: 2.75rem;
}
.page-head .deck {
  margin-top: 2rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 40rem;
}
@media (min-width: 480px) {
  .page-head h1 {
    font-size: 3.25rem;
  }
}
@media (min-width: 768px) {
  .page-head {
    padding: 6rem 0 4rem;
  }
  .page-head h1 {
    font-size: 4.5rem;
  }
  .page-head .deck {
    font-size: 1.375rem;
  }
}
@media (min-width: 1024px) {
  .page-head h1 {
    font-size: 5rem;
  }
}

/* Prose blocks: a section label in the left column, copy on the right */
.prose-section {
  padding: 4rem 0;
  border-top: 1px solid var(--rule);
}
.prose-section .section-label {
  margin-bottom: 1.5rem;
}
.prose h2 {
  font-size: 1.875rem;
  max-width: 20ch;
  margin-bottom: 1.5rem;
}
.prose p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 36rem;
}
.prose p + p,
.prose ul + p,
.prose p + ul {
  margin-top: 1.25rem;
}
.prose p strong {
  color: var(--ink);
  font-weight: 500;
}
.prose em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1.08em;
}
.prose ul {
  max-width: 36rem;
}
.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.prose ul li + li {
  margin-top: 0.75rem;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.75rem;
  height: 1px;
  background: var(--pen);
}
.prose .pullquote {
  margin: 2.5rem 0;
}
@media (min-width: 768px) {
  .prose-section {
    padding: 5rem 0;
  }
  .prose h2 {
    font-size: 2.25rem;
  }
}
@media (min-width: 1024px) {
  .prose-section .section-label {
    grid-column: span 3;
    margin-bottom: 0;
    position: sticky;
    top: 7rem;
    align-self: start;
  }
  .prose-section .prose {
    grid-column: 4 / span 7;
  }
  .prose-section .prose--wide {
    grid-column: 4 / span 9;
  }
  .prose-section .prose--wide p,
  .prose-section .prose--wide ul {
    max-width: 44rem;
  }
}

/* Empty sketch plate: where a photographed diagram goes */
.plate--empty {
  aspect-ratio: var(--ratio, 16 / 9);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  border: 1px dashed var(--rule);
  overflow: hidden;
}
.plate--empty .label {
  max-width: 28rem;
  line-height: 1.6;
}
.plate--empty .label strong {
  color: var(--ink-2);
  font-weight: 400;
}
figure.sketch-figure {
  margin: 2.5rem 0;
}
figure.sketch-figure figcaption {
  margin-top: 0.75rem;
}

/* Fact list: label / value pairs */
.facts {
  display: grid;
  gap: 1.25rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 36rem;
}
.facts dt {
  margin-bottom: 0.25rem;
}
.facts dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}

/* Metric strip at the top of a case study */
.metric-strip {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 0;
  border-top: 2px solid var(--ink);
  margin-top: 3rem;
}
.metric-strip .stat {
  border-top: 0;
  padding-top: 0;
}
.metric-strip .stat__value {
  font-size: 2.5rem;
}
@media (min-width: 640px) {
  .metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .metric-strip .stat__value {
    font-size: 3.25rem;
  }
}

/* Thought vs. found */
.contrast {
  display: grid;
  gap: 2rem;
  margin: 0 0 3rem;
}
.contrast .label {
  display: block;
  margin-bottom: 0.75rem;
}
.contrast p.italic-serif {
  font-size: 1.5rem;
  line-height: 1.25;
}
.contrast .assumed {
  color: var(--ink-3);
}
@media (min-width: 768px) {
  .contrast {
    grid-template-columns: 5fr 7fr;
    gap: 2rem;
  }
  .contrast p.italic-serif {
    font-size: 1.75rem;
  }
}

/* Numbered steps (approach, method) */
.steps {
  counter-reset: step;
  max-width: 44rem;
}
.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
}
.steps li .label {
  padding-top: 0.35rem;
}
.steps h3 {
  font-size: 1.375rem;
}
.steps p {
  margin-top: 0.5rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
@media (min-width: 768px) {
  .steps li {
    grid-template-columns: 4rem 1fr;
  }
}

/* Before / after table */
.results-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 44rem;
  font-size: 15px;
}
.results-table th,
.results-table td {
  text-align: left;
  padding: 0.875rem 1rem 0.875rem 0;
  border-top: 1px solid var(--rule);
  vertical-align: top;
}
.results-table th {
  font-weight: 400;
  border-top: 0;
  padding-top: 0;
}
.results-table td:first-child {
  color: var(--ink);
}
.results-table td {
  color: var(--ink-2);
}
.results-table td.after {
  color: var(--ink);
  font-weight: 500;
}
.results-table td.delta {
  color: var(--pen);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table-scroll {
  overflow-x: auto;
}

/* "On the record" note */
.record {
  border-left: 1px solid var(--ink);
  padding-left: 1.5rem;
  max-width: 36rem;
}
.record .label {
  display: block;
  margin-bottom: 0.75rem;
}
.record p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Page-level CTA band */
.page-cta {
  border-top: 2px solid var(--ink);
  padding: 4rem 0 6rem;
}
.page-cta h2 {
  max-width: 16ch;
  font-size: 2.5rem;
}
.page-cta p {
  margin-top: 1.5rem;
  max-width: 36rem;
}
@media (min-width: 768px) {
  .page-cta {
    padding: 6rem 0 8rem;
  }
  .page-cta h2 {
    font-size: 3.5rem;
  }
}

/* Prev / next between notes and cases */
.pager {
  display: grid;
  gap: 2rem;
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 4rem;
}
.pager a {
  display: block;
}
.pager .label {
  display: block;
  margin-bottom: 0.5rem;
}
.pager h3 {
  font-size: 1.375rem;
  transition: color 200ms;
}
.pager a:hover h3 {
  color: var(--pen);
}
@media (min-width: 640px) {
  .pager {
    grid-template-columns: 1fr 1fr;
  }
  .pager .next {
    text-align: right;
  }
}

/* Back link */
.back {
  display: inline-block;
  margin-top: 2rem;
  font-size: 14px;
  color: var(--ink-2);
}

/* Case study archive rows */
.dossier-list li {
  border-top: 1px solid var(--rule);
}
.dossier-list li:last-child {
  border-bottom: 1px solid var(--rule);
}
.dossier-list a {
  display: grid;
  gap: 1rem 2rem;
  padding: 2.5rem 0;
}
.dossier-list .file {
  display: block;
}
.dossier-list h2 {
  font-size: 1.75rem;
  transition: color 200ms;
}
.dossier-list a:hover h2 {
  color: var(--pen);
}
.dossier-list .summary {
  margin-top: 0.75rem;
  max-width: 36rem;
}
.dossier-list .metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}
.dossier-list .metrics span {
  display: block;
}
.dossier-list .metrics b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) {
  .dossier-list a {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }
  .dossier-list .file {
    grid-column: span 2;
    padding-top: 0.5rem;
  }
  .dossier-list .body {
    grid-column: span 6;
  }
  .dossier-list .metrics {
    grid-column: span 4;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 0.25rem;
  }
  .dossier-list h2 {
    font-size: 2.125rem;
  }
}

/* Note pages */
.note-head {
  padding: 4rem 0 2rem;
}
.note-head .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}
.note-head h1 {
  max-width: 18ch;
  font-size: 2.5rem;
}
.note-head .deck {
  margin-top: 1.5rem;
  font-size: 1.375rem;
  line-height: 1.35;
  max-width: 30ch;
}
.note-body {
  padding: 2rem 0 4rem;
}
.note-body .prose p {
  max-width: 38rem;
}
.note-body .prose h2 {
  margin-top: 3rem;
  font-size: 1.625rem;
}
.note-body .prose h2:first-child {
  margin-top: 0;
}
.note-aside {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.note-aside .label {
  display: block;
  margin-bottom: 0.75rem;
}
.note-aside p + p {
  margin-top: 1rem;
}
.note-aside .textlink {
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .note-head {
    padding: 6rem 0 2rem;
  }
  .note-head h1 {
    font-size: 3.5rem;
  }
  .note-head .deck {
    font-size: 1.625rem;
  }
}
@media (min-width: 1024px) {
  .note-head h1 {
    font-size: 4rem;
  }
  .note-body .prose {
    grid-column: 1 / span 7;
  }
  .note-body .note-aside {
    grid-column: 10 / span 3;
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

/* Two ways in (about page) */
.doors {
  display: grid;
  gap: 2rem;
  max-width: 44rem;
}
.door {
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
}
.door .label {
  display: block;
  margin-bottom: 0.75rem;
}
.door h3 {
  font-size: 1.625rem;
}
.door .terms {
  margin-top: 0.25rem;
  font-size: 14px;
  color: var(--ink-3);
}
.door p.body-sm {
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .doors {
    grid-template-columns: 1fr 1fr;
  }
}

/* Quotes list (about / case) */
.quotes {
  display: grid;
  gap: 2.5rem;
  max-width: 44rem;
}
.quotes blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.35;
}
.quotes blockquote footer {
  margin-top: 0.75rem;
}

/* Diagnostic */
.quiz fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.quiz-area {
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
}
.quiz-area .area-label {
  margin-bottom: 1.5rem;
}
.q {
  max-width: 40rem;
}
.q + .q {
  margin-top: 2.5rem;
}
.q legend {
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ink);
  padding: 0;
  margin-bottom: 1rem;
}
.q .opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.q .opts label {
  position: relative;
}
.q .opts input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.q .opts span {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    border-color 150ms,
    color 150ms,
    background-color 150ms;
}
.q .opts input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.q .opts input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.quiz-submit {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--rule);
}
.quiz-submit .hint {
  margin-top: 1rem;
  font-size: 14px;
  color: var(--ink-3);
}
.quiz-submit button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.results {
  display: none;
  padding: 4rem 0 2rem;
  border-top: 2px solid var(--ink);
}
.results.show {
  display: block;
}
.results h2 {
  font-size: 2.25rem;
  max-width: 18ch;
}
.results .intro {
  margin-top: 1.5rem;
}
.results ol {
  margin-top: 3rem;
  max-width: 44rem;
}
.results li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0;
}
.results li .label {
  padding-top: 0.35rem;
}
.results h3 {
  font-size: 1.5rem;
}
.results .score {
  display: block;
  margin-top: 0.25rem;
}
.results .bar {
  height: 2px;
  background: var(--rule);
  margin-top: 0.75rem;
  max-width: 20rem;
}
.results .bar i {
  display: block;
  height: 100%;
  background: var(--pen);
  width: 0;
  transition: width 700ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.results p.why {
  margin-top: 0.75rem;
}
.results .textlink {
  margin-top: 0.75rem;
}
.results .all {
  margin-top: 3rem;
  max-width: 44rem;
}
.results .all li {
  grid-template-columns: 1fr auto;
  padding: 0.75rem 0;
  align-items: baseline;
}
.results .all li span:first-child {
  font-size: 15px;
}
@media (min-width: 768px) {
  .results h2 {
    font-size: 3rem;
  }
  .results li {
    grid-template-columns: 4rem 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   v7 bridge — appended 2026-09-15
   The generated note and case pages keep their v5 markup and
   inherit the v7 identity from here: one typeface on three
   width axes, sentence-case meta, non-sticky nav, bigger air.
   Appended last so it wins the cascade at equal specificity.

   ponytail: overrides, not a template rewrite. Delete this block
   and the v5 rules above it the day both build.py scripts emit
   v7 markup and can share styles.css outright.
   ═══════════════════════════════════════════════════════ */

:root {
  --panel: #eceeec;
  --ink: #171a19;
  --ink-soft: #5e655f;
  --ink-faint: #8c948d;
  --hair: #d3d7d2;
  --mark: #a87422;

  --paper: var(--panel);
  --ink-2: var(--ink-soft);
  --ink-3: var(--ink-faint);
  --rule: var(--hair);
  --plate: #e2e5e2;
  --pen: var(--mark);
}

body { font-size: 17px; line-height: 1.6; font-variation-settings: "wdth" 100, "wght" 400; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: 1240px; padding-inline: clamp(1.25rem, 5vw, 3.5rem); }

/* ── the three physiques ────────────────────────────────── */

/* light and wide: size does the hierarchy, not weight */
.display, .page-head h1, .note-head h1, .page-cta h2 {
  font-weight: 400;
  font-variation-settings: "wdth" 100, "wght" 400;
  letter-spacing: -0.032em;
  line-height: 0.98;
  text-wrap: balance;
}
.page-head h1, .note-head h1 { max-width: 21ch; }
.page-cta h2 { max-width: 20ch; }

.display-sm, .prose h2, .pager h3, .dossier-list h2, .archive .display-sm {
  font-weight: 500;
  font-variation-settings: "wdth" 100, "wght" 500;
  letter-spacing: -0.022em;
  line-height: 1.12;
}

.italic-serif { font-style: normal; font-variation-settings: "wdth" 100, "wght" 400; }

/* meta: sentence case, no tracking. no eyebrows anywhere. */
.label {
  font-size: 0.9375rem;
  letter-spacing: -0.008em;
  text-transform: none;
  font-variation-settings: "wdth" 108, "wght" 500;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.label--ink { color: var(--ink-2); }
.label--pen { color: var(--mark); }

.body-lg { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.4; letter-spacing: -0.012em; color: var(--ink); max-width: 46ch; }
.body-sm { font-size: 1.0625rem; line-height: 1.6; }
.measure { max-width: 64ch; }

/* ── page + note headers ────────────────────────────────── */

.page-head { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2.6rem, 7.2vw, 6rem); }
.page-head .eyebrow { margin-bottom: 1.75rem; }
.page-head .deck {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.38;
  letter-spacing: -0.008em;
  color: var(--ink);
  max-width: 46ch;
}

.note-head { padding: clamp(3rem, 7vw, 6rem) 0 2rem; }
.note-head h1 { font-size: clamp(2.4rem, 6.2vw, 4.8rem); }
.note-head .meta { gap: 0.4rem 1.75rem; margin-bottom: 2rem; }
.note-head .deck {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.38;
  letter-spacing: -0.008em;
  color: var(--ink-2);
  max-width: 44ch;
}
@media (min-width: 768px) {
  .page-head h1, .note-head h1 { font-size: clamp(2.9rem, 8.2vw, 7rem); }
  .note-head h1 { font-size: clamp(2.4rem, 6.2vw, 4.8rem); }
  .page-head .deck, .note-head .deck { font-size: clamp(1.2rem, 2vw, 1.55rem); }
}
@media (min-width: 1024px) {
  .page-head h1 { font-size: clamp(2.6rem, 7.2vw, 6rem); }
  .note-head h1 { font-size: clamp(2.4rem, 6.2vw, 4.8rem); }
}

/* ── the essay itself: the reason anyone is here ────────── */

.note-body { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3.5rem, 7vw, 6rem); }
.prose p, .note-body .prose p, .prose ul li {
  font-size: 1.1875rem;
  line-height: 1.68;
  letter-spacing: -0.011em;
  color: var(--ink-2);
  max-width: 62ch;
}
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1.2em; }
.prose h2, .note-body .prose h2 {
  font-size: clamp(1.4rem, 2.7vw, 1.95rem);
  margin-top: clamp(2.75rem, 5vw, 4rem);
  margin-bottom: 1.1rem;
  max-width: 24ch;
}
.prose ul { max-width: 62ch; }
.prose ul li::before { background: var(--mark); top: 0.85em; }
.prose em { font-style: italic; font-size: 1em; font-variation-settings: "wdth" 100, "wght" 500; color: var(--ink); }
.prose-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.note-aside { font-size: 1rem; line-height: 1.6; }
@media (min-width: 1024px) {
  .note-body .note-aside { top: 3rem; }
  .prose-section .section-label { top: 3rem; }
}

/* ── archive rows: article titles as campaign headlines ─── */

.archive { border-top: 1px solid var(--rule); }
.archive li { border-bottom: 1px solid var(--rule); border-top: 0; }
.archive a {
  display: grid;
  gap: 0.75rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}
.archive .entry { display: grid; gap: 0.7rem; }
.archive .display-sm { font-size: clamp(1.4rem, 2.8vw, 2.1rem); transition: color 160ms; }
.archive .summary { max-width: 52ch; font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); }
.archive a:hover .display-sm { color: var(--mark); }
@media (min-width: 820px) {
  .archive a { grid-template-columns: 8.5rem minmax(0, 1fr) 5.5rem; gap: 2.5rem; align-items: baseline; }
  .archive .time { text-align: right; }
}
@media (max-width: 640px) { .archive .time { display: none; } }

/* ── case rows ──────────────────────────────────────────── */

.dossier-list a { padding-block: clamp(2rem, 4vw, 3rem); }
.dossier-list h2, .dossier-list a h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); }
.dossier-list a:hover h2 { color: var(--mark); }
.dossier-list .summary { font-size: 1.1875rem; line-height: 1.6; letter-spacing: -0.011em; max-width: 54ch; }
.dossier-list .metrics b {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-variation-settings: "wdth" 122, "wght" 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* ── metric strips and readouts inside a case ───────────── */

.metric-strip b, .fact-list b, .before-after b { font-variant-numeric: tabular-nums; }

/* ── CTAs and links ─────────────────────────────────────── */

.btn {
  padding: 1rem 1.75rem;
  font-size: 1.0625rem;
  font-variation-settings: "wdth" 100, "wght" 500;
  border: 1px solid var(--ink);
  transition: background-color 160ms, border-color 160ms;
}
.btn:hover { background: var(--mark); border-color: var(--mark); color: #fff; }
.textlink { font-size: 1.0625rem; letter-spacing: -0.008em; font-variation-settings: "wdth" 100, "wght" 500; }
.link { text-decoration: none; border-bottom: 1px solid var(--mark); padding-bottom: 2px; }
.link:hover { color: var(--mark); }

.page-cta { border-top: 1px solid var(--rule); padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 9vw, 8rem); }
.page-cta h2 { font-size: clamp(2.6rem, 7.2vw, 6rem); }
.page-cta p { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

.pager { padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.pager h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.pager a:hover h3 { color: var(--mark); }
.back { margin-top: 0; font-size: 1rem; }

/* ── nav: five words and a hairline. never sticky, never hidden. ── */

.nav { position: static; border-bottom: 1px solid var(--rule); background: var(--paper); backdrop-filter: none; }
.nav__in {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 0.75rem 2rem;
  padding-block: 1.6rem 1.4rem;
}
.nav__brand {
  display: inline; font-size: 1.0625rem;
  font-variation-settings: "wdth" 100, "wght" 500;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.nav__links {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: clamp(1.1rem, 3vw, 2.5rem); font-size: 1.0625rem;
}
.nav__links a { color: var(--ink-2); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--mark); }
@media (max-width: 640px) {
  .nav__in { padding-block: 1.1rem 1rem; }
  .nav__links { gap: 1rem; font-size: 0.9375rem; }
}

/* ── footer ─────────────────────────────────────────────── */

.foot {
  background: #13303a;
  color: #9aabae;
  border-top: 0;
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(3.5rem, 7vw, 5rem);
}
.foot__links a { color: #9aabae; }
.foot__links a:hover { color: #e9ece8; border-bottom-color: #8fbcc6; }
.foot__in { display: grid; gap: 2rem; }
@media (min-width: 760px) { .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; align-items: start; } }
.foot__mark { display: flex; align-items: center; gap: 0.85rem; }
.foot__mark img { width: 34px; }
.foot__mark span { font-size: 0.9375rem; color: #9aabae; line-height: 1.45; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.9rem 2rem; font-size: 0.9375rem; color: var(--ink-2); }
.foot__links a { border-bottom: 1px solid transparent; padding-bottom: 2px; }
.foot__links a:hover { color: var(--ink); border-bottom-color: var(--mark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* No scroll motion. Restraint is the point; a page that fades itself in
   section by section reads as a marketing funnel. The .in class is still
   applied by script.js, so sketch draw-in still works where there's art. */
.reveal { opacity: 1; transform: none; transition: none; }

/* The page body never scrolls sideways. Grid tracks are allowed to shrink,
   and the two things that are legitimately wider than a phone (result tables
   and case figures) scroll inside their own box instead of the page. */
.grid, .grid > * { min-width: 0; }
.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.prose table th, .prose table td { white-space: nowrap; }
.sketch-figure, .sketch-figure svg, .figure-wrap svg { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════════
   v7 colour — appended 2026-09-15

   Two hues with two jobs, matching styles.css. Steel is the
   writing: links, underlines, bullets, the CTA. Amber is the
   money: figures only. Most of this is one token swap, because
   the v5 rules already route every accent through --pen.

   Essay pages sit on the steel wash (body.on-wash): the writing
   lives on different paper from the rest of the site. Case pages
   stay on ground, because a case is evidence, not writing.
   ═══════════════════════════════════════════════════════ */

:root {
  --wash: #e1e9ea;
  --steel: #2e6b7a;
  --steel-deep: #1f4e5a;
  --amber: #a87422;

  --mark: var(--steel);
  --pen: var(--steel);
  --plate: transparent;
  --ink-soft: #5a6462;
  --ink-faint: #87918f;
  --hair: #d0d7d6;
}

.nav { background: transparent; }

/* figures are the one amber thing on these pages */
.dossier-list .metrics b,
.metric-strip b,
.fact-list b,
.sketch text.pen-text { color: var(--amber); fill: var(--amber); }
.sketch .pen { stroke: var(--amber); }
.sketch path, .sketch circle, .sketch ellipse, .sketch line, .sketch polyline { stroke: var(--ink-soft); }
.plate { background: transparent; }

/* the CTA is the one solid colour block */
.btn { background: var(--steel); color: #fff; border-color: var(--steel); }
.btn:hover { background: var(--steel-deep); border-color: var(--steel-deep); color: #fff; }
.page-cta { border-top: 1px solid var(--hair); }

::selection { background: var(--steel); color: #fff; }
:focus-visible { outline: 2px solid var(--steel); }

/* ═══════════════════════════════════════════════════════
   v7 territories — appended 2026-09-15

   A page belongs to one territory, declared on <body>, and the
   territory sets the hero panel and every mark on the page.
   Most of this lands through --mark and --pen, which the v5
   rules already route every accent through.

     default        steel  the engagement
     .t-writing     coral  thinking, and every essay
     .t-record      deep   work, and every case study
                    steel  (marks stay steel: evidence is sober)
   ═══════════════════════════════════════════════════════ */

:root {
  --steel: #2e6b7a;
  --steel-deep: #1f4e5a;
  --coral: #c9483a;
  --coral-deep: #a63527;
  --amber: #a87422;

  --door: var(--steel);
  --territory: var(--steel);
  --territory-ink: var(--steel-deep);

  --mark: var(--territory);
  --pen: var(--territory);
  --wash: #f0e7e5;
}

body.t-writing {
  --door: var(--coral);
  --territory: var(--coral);
  --territory-ink: var(--coral-deep);
}
body.t-record {
  --door: #13303a;
  --territory: var(--steel);
  --territory-ink: var(--steel-deep);
}

/* the section front doors get a full-bleed panel, like the homepage */
.hero--panel {
  background: var(--door);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero--panel .page-head, .hero--panel .note-head { padding: 0; }
.hero--panel h1 { color: #fff; }
.hero--panel .deck { color: rgba(255, 255, 255, 0.88); }
.hero--panel .label { color: rgba(255, 255, 255, 0.72); }

/* hovers take the value that passes AA as text */
.btn:hover { background: var(--territory-ink); border-color: var(--territory-ink); }
.link:hover,
.archive a:hover .display-sm,
.dossier-list a:hover h2,
.pager a:hover h3 { color: var(--territory-ink); }
.nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: var(--territory); }
.prose ul li::before { background: var(--territory); }

/* amber is not a territory: it means money, on every page */
.dossier-list .metrics b,
.metric-strip b,
.fact-list b { color: var(--amber); }
.sketch .pen { stroke: var(--amber); }
.sketch text.pen-text { fill: var(--amber); }

::selection { background: var(--territory); color: #fff; }
:focus-visible { outline: 2px solid var(--territory); }

/* The v5 archive rows are placed on a 12-column grid (span 2 / 8 / 2).
   The v7 template is three named tracks, so the old spans overflow into
   implicit columns and every row stacks. Clear the placement and let the
   v7 template do it. */
.archive .num, .archive .entry, .archive .time { grid-column: auto; }


/* ═══════════════════════════════════════════════════════
   v7 panels and alternation — appended 2026-09-15

   Every page opens on its door: a full-bleed panel in the
   territory colour, light type on it. Then sections alternate
   ground / wash down the page, wash being the territory tint.

   The generated pages moved their .wrap from <main> to the inside
   of each section, so a section background can go edge to edge.
   ═══════════════════════════════════════════════════════ */

:root { --wash: #e1e9ea; }
body.t-writing { --wash: #f0e7e5; --hair: #ded1ce; --rule: #ded1ce; }
body.t-record  { --wash: #e1e9ea; }


/* everything inside a panel goes light */
.hero--panel .display,
.hero--panel h1,
.hero--panel .stat__value { color: #fff; }
.hero--panel .deck,
.hero--panel .stat__label { color: rgba(255, 255, 255, 0.86); }
.hero--panel .label,
.hero--panel .back,
.hero--panel .dossier__file { color: rgba(255, 255, 255, 0.7); }
.hero--panel .label--ink { color: rgba(255, 255, 255, 0.92); }
.hero--panel .metric-strip { border-color: rgba(255, 255, 255, 0.28); }
.hero--panel .metric-strip .stat { border-color: rgba(255, 255, 255, 0.28); }
.hero--panel a:hover { color: #fff; }
.hero--panel .back:hover { color: #fff; }

/* the alternate band on a generated page */
.prose-section { border-top: 0; }
.prose-section--alt { background: var(--wash); }
.page-cta { border-top: 0; }

/* bands: the section paints edge to edge, the .wrap inside holds the gutter */
.note-band, .pager-band { padding: 0; }
.note-band--alt, .page-cta--alt { background: var(--wash); }
.pager > .wrap, .page-cta > .wrap, .note-band > .wrap { padding-inline: clamp(1.25rem, 5vw, 3.5rem); }
.sec-band { padding-block: clamp(3rem, 6vw, 5rem); }
.sec-band--alt { background: var(--wash); }

/* a delta in the strip stays on one line; it sets its own size to do it */
.hero--panel .metric-strip .stat__value {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  white-space: nowrap;
  letter-spacing: -0.025em;
}

/* The diagrams are static, like the homepage. The v5 draw-in sets
   stroke-dasharray:1 and leans on pathLength="1" to mean "one dash, whole
   path"; that normalisation does not resolve here, so the strokes render as
   a near-invisible dash pattern and the diagram disappears. The site has no
   scroll motion anyway, so the animation goes and the drawing stays. */
.sketch path, .sketch circle, .sketch ellipse, .sketch line, .sketch polyline {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  transition: none;
}
.sketch .dashed { stroke-dasharray: 4 3; }
