@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f3f3f1;
  --sheet: #fafaf8;
  --ink: #232325;
  --ink-2: #4e4e52;
  --grey: #6d6d71;
  --rule: #cfcfcb;
  --red: #b61d22;
  --red-dark: #751112;
  --on-red: #ffffff;
  --on-red-2: #f2cfcf;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --space-section: clamp(64px, 9vw, 128px);

  --narrow: 72%;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--grey) var(--paper);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: var(--on-red); }

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--red); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

h1, h2, h3 {
  margin: 0;
  font-stretch: var(--narrow);
  line-height: 1.05;
  text-wrap: balance;
}
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
}
.skip:focus { top: 12px; }

/* Header */

.site-header { border-bottom: 1px solid var(--ink); }

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 18px;
}

.brand img { width: auto; height: 34px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding-block: 8px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}
.site-nav .nav-contact {
  padding: 8px 16px;
  border: 1px solid var(--ink);
}
.site-nav .nav-contact:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(64px, 10vw, 152px) clamp(56px, 8vw, 120px);
}

.hero h1 {
  font-size: clamp(2.75rem, 1.1rem + 6.4vw, 7.25rem);
  font-weight: 650;
  font-stretch: 68%;
  letter-spacing: -0.025em;
  line-height: 0.95;
  max-width: 19ch;
}

.hero-lead {
  max-width: 40ch;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.hero .hero-lead { margin-top: clamp(24px, 3vw, 40px); max-width: 46ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: clamp(28px, 3.5vw, 44px);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 26px;
  background: var(--red);
  color: var(--on-red);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 120ms ease-out;
}
.button:hover { background: var(--red-dark); color: var(--on-red); }

.text-link {
  font-weight: 500;
  padding-block: 12px;
}

.hero-sectors {
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--grey);
}

/* Sheets: diagrams set on the drafting ground */

.sheet {
  margin: 0;
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--ink);
  background: var(--sheet);
}
.sheet svg { width: 100%; height: auto; }

.sheet-ground { fill: var(--sheet); }

.route {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-dasharray: 6 5;
}

.caption rect,
.caption-strip,
.title-block rect {
  fill: var(--sheet);
  stroke: var(--ink);
  stroke-width: 1;
}
.caption text {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.marker { cursor: pointer; }
.marker circle {
  fill: var(--red-dark);
  stroke: var(--sheet);
  stroke-width: 2.5;
  transition: fill 120ms ease-out;
}
.marker .tick { stroke: var(--ink); stroke-width: 1.4; }
.caption-name {
  fill: var(--ink);
  font-size: 15px;
  font-weight: 700;
  font-stretch: 75%;
  letter-spacing: 0.06em;
}
.caption-coords {
  fill: var(--ink-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.marker:hover circle,
.marker:focus-visible circle { fill: var(--red); }
.marker:hover .caption-strip,
.marker:focus-visible .caption-strip { stroke: var(--red); stroke-width: 2; }
.marker:focus-visible { outline: none; }

.leader { stroke: var(--ink); stroke-width: 1; }

.title-block path { stroke: var(--ink); stroke-width: 1; }
.title-block .tb-swatch { stroke: var(--red-dark); stroke-width: 1; }
.title-block text {
  fill: var(--ink-2);
  font-size: 12px;
  font-stretch: 85%;
}
.title-block .tb-name {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Zimbabwe sheet */

.zm-country text { fill: var(--grey); font-size: 13px; font-weight: 600; font-stretch: 85%; letter-spacing: 0.22em; }
.zm-country .zm-home { fill: var(--red-dark); font-size: 17px; font-weight: 700; letter-spacing: 0.3em; }
.zm-dyke { fill: none; stroke: var(--ink); stroke-width: 4; stroke-dasharray: 1 4; stroke-linecap: round; }
.zm-town circle { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.4; }
.zm-town text {
  fill: var(--ink-2);
  font-size: 13px;
  font-stretch: 85%;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.zm-pt { fill: var(--ink); stroke: var(--sheet); stroke-width: 1.5; }

.where-list { margin-top: clamp(24px, 3vw, 40px); }
.where-list li { font-size: 1.0625rem; font-weight: 400; color: var(--ink-2); }
.where-list span {
  display: block;
  font-weight: 650;
  font-stretch: 85%;
  color: var(--ink);
}

/* Specialist network sheet */

.sp-line { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.sp-node rect { fill: var(--sheet); stroke: var(--ink); stroke-width: 1; }
.sp-item { fill: var(--ink); font-size: 15.5px; font-weight: 500; font-stretch: 85%; }
.sp-note { fill: var(--ink-2); font-size: 13px; font-stretch: 85%; }
.sp-out { fill: var(--ink); font-size: 15px; font-weight: 600; font-stretch: 85%; }

/* Capital-flow sheet */

.fl-head { fill: var(--ink); font-size: 14px; font-weight: 700; font-stretch: 75%; letter-spacing: 0.08em; }
.fl-head-meta { fill: var(--grey); font-size: 13px; font-stretch: 85%; }
.fl-rule { stroke: var(--ink); stroke-width: 1; }
.fl-num { fill: var(--red-dark); font-size: 13px; font-weight: 650; font-stretch: 75%; font-variant-numeric: tabular-nums; }
.fl-item { fill: var(--ink); font-size: 16px; font-weight: 500; font-stretch: 85%; }
.fl-frame { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.5; }
.fl-bar { fill: var(--red-dark); }
.fl-bar-name { fill: var(--on-red); font-size: 16px; font-weight: 700; font-stretch: 75%; letter-spacing: 0.08em; }
.fl-bar-meta { fill: var(--on-red-2); font-size: 12px; font-stretch: 85%; letter-spacing: 0.06em; }
.fl-step { fill: var(--ink); font-size: 19px; font-weight: 650; font-stretch: 72%; }
.fl-note { fill: var(--ink-2); font-size: 12.5px; font-stretch: 85%; }

/* Bands */

.band {
  padding-block: var(--space-section);
  border-top: 1px solid var(--ink);
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(32px, 5vw, 80px);
}

.band h2,
.contact h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.015em;
}

/* Stacked bands: heading above, content across the full width */

.band-stack {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
}
.band-stack .band-note { max-width: 48ch; }
.band-stack .split .ruled li {
  padding-block: 14px;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

/* Partner names */

.name-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--ink);
}
.name-grid li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 14px 16px;
  border-top: 1px solid var(--ink);
}
.name-grid .name {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.3;
}
.name-grid .tag {
  font-size: 0.8125rem;
  color: var(--grey);
}

/* Centred quote band */

.quote-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.quote-label {
  font-size: 1.0625rem;
  font-weight: 650;
  font-stretch: 85%;
  color: var(--grey);
}
.band .quote-label { font-size: 1.0625rem; letter-spacing: 0; }
.quote {
  margin: clamp(20px, 2.5vw, 32px) 0 0;
  padding-top: 24px;
  border-top: 3px solid var(--red-dark);
}
.quote p {
  max-width: 30ch;
  font-size: clamp(1.875rem, 1.1rem + 2.8vw, 3.5rem);
  font-weight: 600;
  font-stretch: 70%;
  line-height: 1.08;
  text-wrap: balance;
}
.quote-note {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 60ch;
  color: var(--ink-2);
}

.prose { max-width: 66ch; }
.prose p + p { margin-top: 1.1em; }
.prose .lead {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.4;
  color: var(--ink);
}
.prose p:not(.lead) { color: var(--ink-2); }

.split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 3vw, 48px);
}
.split h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  font-stretch: 85%;
  color: var(--grey);
  padding-bottom: 12px;
}

.ruled {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--ink);
}
.ruled li {
  padding-block: 16px;
  border-top: 1px solid var(--ink);
  font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.375rem);
  font-weight: 500;
  line-height: 1.3;
}

/* Page head (inner pages) */

.page-head {
  padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 72px);
}
.page-head h1 {
  font-size: clamp(2.6rem, 1.4rem + 3.8vw, 4.75rem);
  font-weight: 650;
  font-stretch: 68%;
  letter-spacing: -0.02em;
  line-height: 0.98;
  max-width: 18ch;
}
.page-head .hero-lead { margin-top: clamp(20px, 2.5vw, 32px); }

.page-head-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 72px);
}
.page-head-sheet .sheet { justify-self: end; }

.band-note {
  margin-top: 16px;
  max-width: 28ch;
  color: var(--grey);
}

.more { margin-top: clamp(24px, 3vw, 36px); }
.prose .more { margin-top: clamp(24px, 3vw, 36px); }

.philosophy {
  margin: 0 0 1.4em;
  padding-left: 20px;
  border-left: 3px solid var(--red-dark);
}
.prose .philosophy p {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  font-weight: 600;
  font-stretch: 75%;
  line-height: 1.2;
  color: var(--ink);
}

.ruled.facts li { font-weight: 400; }

/* Numbered rows */

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--ink);
}
.prose + .rows,
.prose + .ruled { margin-top: clamp(32px, 4vw, 48px); }
.rows li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 6px 24px;
  padding-block: 22px 24px;
  border-top: 1px solid var(--ink);
}
.rows .num {
  grid-row: span 2;
  font-size: 1.125rem;
  font-weight: 650;
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  color: var(--red-dark);
}
.rows h3 {
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  font-weight: 650;
}
.rows p {
  max-width: 62ch;
  color: var(--ink-2);
}

/* Team */

.person {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 24px clamp(24px, 3vw, 40px);
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.team-prose {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.person img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 45% 30%;
  border: 1px solid var(--ink);
  background: var(--sheet);
  filter: grayscale(1) contrast(1.05);
}
.person h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 650;
}
.person-links { margin-top: 12px; }
.person h3 { padding-top: 4px; }
.person-role { margin-top: 6px; color: var(--grey); }

/* Contact */

.contact {
  padding-block: var(--space-section);
  background: var(--red-dark);
  color: var(--on-red);
}
.contact ::selection { background: var(--on-red); color: var(--red-dark); }
.contact :focus-visible { outline-color: var(--on-red); }
.contact a:hover { color: var(--on-red-2); }

.contact-intro {
  margin-top: 16px;
  color: var(--on-red-2);
  font-size: 1.125rem;
}
.contact-social { margin-top: 20px; }
.contact-social a {
  display: inline-block;
  padding-block: 6px;
  font-weight: 600;
}

.offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 4vw, 56px);
}

.office {
  padding-top: 20px;
  border-top: 1px solid var(--on-red-2);
  scroll-margin-top: 24px;
}
.office:target { border-top: 4px solid var(--on-red); padding-top: 17px; }

.office h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 650;
}
.office-meta {
  margin-top: 6px;
  color: var(--on-red-2);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.office address {
  margin-top: 20px;
  font-style: normal;
  line-height: 1.55;
}
.office-links {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}
.office-links a {
  display: inline-block;
  padding-block: 6px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer { padding-block: 32px; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  color: var(--grey);
  font-size: 0.9375rem;
}
.footer-row img { height: 24px; width: auto; margin-right: auto; }

/* Responsive */

@media (max-width: 960px) {
  .page-head-sheet,
  .band-grid { grid-template-columns: 1fr; }
  .page-head-sheet .sheet { justify-self: start; }
  .name-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .brand img { height: 28px; }
  .site-nav ul { gap: 0 20px; }
  .split,
  .offices,
  .person { grid-template-columns: 1fr; }
  .person img { max-width: 280px; }
  .rows li { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 6px 12px; }
  .footer-row img { margin-right: 0; flex-basis: 100%; max-width: 160px; height: auto; }

  /* Sheets render at ~60% scale on phones: enlarge the lettering that matters, drop the rest. */
  .zm-site .caption-name,
  .sheet-zim .marker .caption-name { font-size: 17px; }
  .zm-site .caption-coords,
  .sheet-zim .marker .caption-coords,
  .zm-town text { font-size: 0; }
  .fl-item { font-size: 21px; }
  .fl-head { font-size: 18px; }
  .fl-step { font-size: 24px; }
  .fl-num { font-size: 16px; }
  .fl-bar-meta { font-size: 15px; }
  .fl-head-meta,
  .fl-note { font-size: 0; }
  .sp-item { font-size: 18px; }
  .sp-note { font-size: 16px; }
  .sp-out { font-size: 18px; }
  .sheet-network .fl-head { font-size: 16px; }
}
