@font-face{font-family:'EB Garamond';font-style:italic;font-weight:400;font-display:swap;src:url('/fonts/EBGaramond-400i-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'EB Garamond';font-style:italic;font-weight:400;font-display:swap;src:url('/fonts/EBGaramond-400i-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'EB Garamond';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/EBGaramond-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'EB Garamond';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/EBGaramond-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'EB Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/EBGaramond-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'EB Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/EBGaramond-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'EB Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/EBGaramond-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'EB Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/EBGaramond-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/IBMPlexMono-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/IBMPlexMono-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/IBMPlexMono-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/IBMPlexMono-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:italic;font-weight:400;font-display:swap;src:url('/fonts/IBMPlexSans-400i-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:italic;font-weight:400;font-display:swap;src:url('/fonts/IBMPlexSans-400i-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/IBMPlexSans-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/IBMPlexSans-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/IBMPlexSans-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/IBMPlexSans-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/IBMPlexSans-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/IBMPlexSans-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}


/* The #30DayMapChallenge 2026 gallery.
 *
 * ONE RULE RUNS THROUGH ALL OF IT: the map stage is dark, every reading surface is light.
 *
 * That is not a taste decision, it is the one the reading research supports. Dark text on a light
 * ground is read faster and more accurately, and the advantage is strongest for small text and
 * sustained reading, which is exactly what the post text, the limits and the methods notes are.
 * Dark grounds win on glare and comfort, which is what an image stage needs: a dark neutral
 * surround does not compete with a map or bias how its colours read, and over half of these maps
 * are themselves dark.
 *
 * So: the grid and the map stage are navy, the panels and the dashboard are paper.
 * See docs/tech-decisions.md section 4 for the evidence.
 */

:root {
  /* From the owner's own brand file, 02_Admin/06_Templates_Branding/Branding colour codes.txt */
  --navy-900: #091431;   /* the dark blue of the current geodat.ai header bar */
  --navy-850: #0B1A3C;
  --navy-800: #0E2841;
  --navy-600: #163E64;
  --orange:   #E6841A;
  --orange-ink: #8A4A05; /* orange dark enough to pass AA on paper for small text */

  --paper:   #FAF8F5;
  --paper-2: #F2EEE8;
  --ink:     #0E2841;
  --ink-2:   #163E64;
  --ink-3:   #5A6B80;

  --on-dark:   #EFEAE2;  /* warm off-white. Pure white on navy reads as glare at body size. */
  --on-dark-2: #C2CBDE;
  --on-dark-3: #8C99B4;
  --rule-dark: rgba(194, 203, 222, .22);
  --rule-light: rgba(14, 40, 65, .16);

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px; --s7: 128px;
  --panel-w: 440px;
  --head-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--on-dark);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;          /* nothing may scroll sideways, ever */
}
/* height:auto is not optional here. Every map img carries width= and height= attributes so the
   browser can reserve the box and nothing shifts while loading, but those attributes are
   PRESENTATIONAL HINTS: without this rule the height attribute wins over aspect-ratio, and an
   element sized by CSS width alone renders at its full intrinsic height. That is what made the
   filmstrip 532px tall and put its thumbnails on top of the stage controls. */
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Keyboard users must be able to jump past the header on every page. */
.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--orange); color: #14100A; padding: 12px 18px; font-weight: 500;
  text-decoration: none; transition: top .15s;
}
.skip:focus { top: var(--s2); }

/* ───────────────────────────── header and footer ───────────────────────────── */

.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s2) var(--s3); border-bottom: 1px solid var(--rule-dark);
  min-height: var(--head-h);
}
.wordmark {
  font: 500 1rem/1 var(--sans); letter-spacing: .14em; text-decoration: none; color: var(--on-dark);
}
.wordmark span { color: var(--orange); }
.site-head nav { display: flex; gap: var(--s3); font-size: .875rem; }
.site-head nav a {
  color: var(--on-dark-2); text-decoration: none; padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--on-dark); border-bottom-color: var(--orange); }

.site-foot { border-top: 1px solid var(--rule-dark); padding: var(--s4) var(--s3) var(--s5); }
.site-foot p { font-size: .875rem; color: var(--on-dark-2); max-width: 70ch; }
.site-foot .small { font-size: .8125rem; color: var(--on-dark-3); margin-top: var(--s2); }
.site-foot a { color: var(--orange); text-decoration: none; border-bottom: 1px solid transparent; }
.site-foot a:hover { border-bottom-color: currentColor; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }

/* ───────────────────────────── the intro page ───────────────────────────── */

.intro { padding: var(--s5) var(--s3) var(--s4); }
.eyebrow {
  font: 500 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange);
}
.intro h1 {
  font-family: var(--serif); font-size: 2.5rem; line-height: 1.06;
  margin: var(--s3) 0; max-width: 17ch;
}
.intro .standfirst { font-size: 1.125rem; line-height: 1.65; color: var(--on-dark-2); max-width: 62ch; }
.intro .standfirst + .standfirst { margin-top: var(--s3); }
.intro-figures {
  display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s5);
  padding-top: var(--s4); border-top: 1px solid var(--rule-dark);
}
.fig b {
  display: block; font-family: var(--serif); font-size: 2.5rem; line-height: 1;
  font-weight: 400; color: var(--on-dark);
}
.fig span { display: block; margin-top: 6px; font-size: .8125rem; color: var(--on-dark-3); max-width: 22ch; }

/* ───────────────────────────── the grid ───────────────────────────── */

.grid-wrap { padding: 0 var(--s3) var(--s6); }
.grid-head {
  display: flex; flex-wrap: wrap; gap: var(--s2); align-items: baseline;
  justify-content: space-between; padding: var(--s3) 0 var(--s2);
  border-bottom: 1px solid var(--rule-dark); margin-bottom: var(--s3);
}
.grid-head h2 {
  font: 500 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-dark-3);
}
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
.tile { position: relative; display: block; text-decoration: none; background: var(--navy-850); }
.tile img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--navy-850);
  transition: opacity .2s ease;
}
.tile:hover img, .tile:focus-visible img { opacity: .78; }
.tile-label {
  position: absolute; inset: auto 0 0 0; padding: var(--s2) var(--s2) 12px;
  background: linear-gradient(to top, rgba(9, 20, 49, .92) 0%, rgba(9, 20, 49, .72) 55%, transparent 100%);
}
.tile-day {
  font: 500 .6875rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange);
}
.tile-title {
  display: block; margin-top: 5px; font-family: var(--serif); font-size: 1rem; line-height: 1.2;
  color: var(--on-dark);
}
.tile-theme { display: block; margin-top: 3px; font-size: .6875rem; color: var(--on-dark-3); }
.tile[hidden] { display: none; }
/* An animated map says so with a play mark, not with a word.
 *
 * Chosen by the owner as option A on 2026-11-28, from three rendered on the real grid. The corner
 * badge that used to be here said VIDEO in 10px type, which he could not see: "animations need the
 * play button on then to shwo they are an anmation". On day 16 it also landed on the map's own
 * title, because the tile IS the map and the map has its own words in that corner.
 *
 * The word is kept for screen readers, as .tile-video.sr-only in the markup, because the mark is
 * aria-hidden and an icon on its own tells a screen reader nothing. The disc is the site's navy
 * rather than black, so it reads as part of the page and not as an embedded video player. */
.tile-play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.tile-play svg {
  width: 56px; height: 56px; fill: #fff; border-radius: 50%;
  background: rgba(9, 20, 49, .72); box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  transition: background .15s ease;
}
.tile:hover .tile-play svg, .tile:focus-visible .tile-play svg { background: rgba(9, 20, 49, .9); }
@media (prefers-reduced-motion: reduce) { .tile-play svg { transition: none; } }

/* Filters. Buttons, not a select, so the whole set is visible and keyboard reachable. */
.filters { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s3) 0 var(--s4); }
.filter {
  font: 400 .8125rem/1.3 var(--sans); background: transparent; color: var(--on-dark-2);
  border: 1px solid var(--rule-dark); padding: 9px 12px; cursor: pointer; min-height: 40px;
}
.filter:hover { border-color: var(--on-dark-2); color: var(--on-dark); }
.filter[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #14100A; }
.filter b { font-weight: 500; opacity: .7; margin-left: 5px; }
.filter-count { font-size: .8125rem; color: var(--on-dark-3); align-self: center; }

/* ───────────────────────────── the map stage ───────────────────────────── */

.stage-page { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.stage-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: 10px var(--s2); border-bottom: 1px solid var(--rule-dark); flex: 0 0 auto;
}
.stage-id { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1 1 auto; }
.stage-id .n {
  font: 500 .6875rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); flex: 0 0 auto;
}
/* This is an h1, sized to sit in a toolbar rather than to shout. A map page's heading is the
   map; the words are the label on it. */
.stage-id .t {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: 1.0625rem; line-height: 1.2; color: var(--on-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stage-tools { display: flex; gap: 6px; flex: 0 0 auto; }

.iconbtn {
  background: transparent; border: 1px solid var(--rule-dark); color: var(--on-dark-2);
  min-height: 40px; min-width: 40px; padding: 0 12px; cursor: pointer;
  font: 400 .8125rem/1 var(--sans); display: inline-flex; align-items: center; gap: 7px;
}
.iconbtn:hover { color: var(--on-dark); border-color: var(--on-dark-2); }
.iconbtn[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #14100A; }
.iconbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.stage { position: relative; flex: 1 1 auto; min-height: 0; background: var(--navy-900);
  overflow: hidden; }   /* clips the filmstrip when it is parked below the edge */
.osd { position: absolute; inset: 0; }
/* The still image shown before OpenSeadragon has anything to paint. Never lazy-loaded: it is the
   largest thing on the page and therefore the LCP element. */
.stage-still {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; transition: opacity .35s ease;
}
.stage.ready .stage-still { opacity: 0; pointer-events: none; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.stage-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: 10px var(--s2); border-top: 1px solid var(--rule-dark); flex: 0 0 auto;
}
.panel-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.stepper { display: flex; gap: 6px; }
.stepper a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; min-width: 40px; padding: 0 10px;
  border: 1px solid var(--rule-dark); color: var(--on-dark-2); text-decoration: none;
}
.stepper a:hover { color: var(--on-dark); border-color: var(--on-dark-2); }
.stepper a[aria-disabled="true"] { opacity: .35; pointer-events: none; }

/* ───────────────────────────── the reading panel ─────────────────────────────
   Paper, over the dark stage, never covering all of it. This is the surface where the research
   actually bites: it holds hundreds of words of the owner's post and methods notes. */

.panel {
  position: fixed; z-index: 30; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .45);
  transition: transform .26s cubic-bezier(.33, 1, .68, 1);
}
.panel[hidden] { display: none; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: var(--s2) var(--s3); border-bottom: 1px solid var(--rule-light); flex: 0 0 auto;
}
.panel-head h2 {
  font: 500 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}
.panel-close {
  background: transparent; border: 1px solid var(--rule-light); color: var(--ink);
  min-height: 40px; min-width: 40px; cursor: pointer; font-size: 1rem; line-height: 1;
}
.panel-close:hover { background: var(--paper-2); }
.panel-body { overflow-y: auto; padding: var(--s3); -webkit-overflow-scrolling: touch; }

/* Body type on paper: 17px, 1.7 line height, measure capped. These are the numbers that make the
   difference between a panel someone reads and one they close. */
.panel-body p, .panel-body li { font-size: 1.0625rem; line-height: 1.7; max-width: 64ch; }
.panel-body > p + p { margin-top: var(--s2); }
.panel-body h3 {
  font: 500 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); margin: var(--s4) 0 var(--s2);
  padding-bottom: 6px; border-bottom: 1px solid var(--rule-light);
}
.panel-body h3:first-child { margin-top: 0; }
.panel-body ul { margin: 0; padding-left: 1.15em; }
.panel-body li { margin-bottom: 10px; }
.panel-lede { font-family: var(--serif); font-size: 1.3125rem !important; line-height: 1.5 !important; }
.panel-data {
  background: var(--paper-2); border-left: 3px solid var(--orange);
  padding: var(--s2) var(--s3); margin-top: var(--s4);
}
.panel-data p, .panel-data li { font-size: .9375rem !important; line-height: 1.65 !important; color: var(--ink-2); }
.panel-link {
  display: inline-block; margin-top: var(--s3); font-weight: 500; font-size: .9375rem;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px;
}
.panel-note { font-size: .8125rem !important; color: var(--ink-3); margin-top: var(--s2); }

/* Long-form notes rendered from the owner's markdown. */
.md h2 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin: var(--s4) 0 var(--s2); }
.md h3 {
  font: 500 .8125rem/1.4 var(--sans); letter-spacing: .08em; text-transform: none;
  color: var(--ink); border: 0; margin: var(--s3) 0 var(--s1); padding: 0;
}
.md p, .md li { font-size: 1rem; line-height: 1.7; }
.md p { margin-bottom: var(--s2); }
.md table { border-collapse: collapse; width: 100%; font-size: .875rem; margin: var(--s2) 0; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--rule-light); padding: 7px 10px; text-align: left; vertical-align: top; }
.md th { background: var(--paper-2); font-weight: 500; }
.md code { font-size: .875em; background: var(--paper-2); padding: 1px 5px; }
.md a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* phone: a sheet from the bottom, leaving a strip of map visible */
@media (max-width: 899px) {
  .panel { left: 0; right: 0; bottom: 0; max-height: 72dvh; }
  .panel[data-state="closed"] { transform: translateY(101%); }
}
/* desktop: a column on the right, and the stage shrinks rather than being covered */
@media (min-width: 900px) {
  .panel { top: 0; right: 0; bottom: 0; width: var(--panel-w); box-shadow: -8px 0 40px rgba(0, 0, 0, .45); }
  .panel[data-state="closed"] { transform: translateX(101%); }
  .stage-page.panel-open .stage-head,
  .stage-page.panel-open .stage,
  .stage-page.panel-open .stage-foot { margin-right: var(--panel-w); }
  .stage-head, .stage, .stage-foot { transition: margin-right .26s cubic-bezier(.33, 1, .68, 1); }
}

/* ───────────────────────────── the filmstrip ───────────────────────────── */

.strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; gap: 4px; padding: var(--s2); overflow-x: auto; scrollbar-width: thin;
  background: linear-gradient(to top, rgba(9, 20, 49, .94), rgba(9, 20, 49, 0));
  transform: translateY(100%); transition: transform .22s ease;
}
.stage:hover .strip, .strip:focus-within, .strip.open { transform: translateY(0); }
.strip a { flex: 0 0 auto; display: block; position: relative; }
.strip img { width: 44px; aspect-ratio: 4 / 5; object-fit: cover; opacity: .55; transition: opacity .15s; }
.strip a:hover img, .strip a:focus-visible img { opacity: 1; }
.strip a[aria-current] img { opacity: 1; outline: 2px solid var(--orange); outline-offset: -2px; }

/* ───────────────────────────── the data page ─────────────────────────────
   A reading and figures surface, so paper. */

body.light { background: var(--paper); color: var(--ink); }
body.light .site-head { border-bottom-color: var(--rule-light); }
body.light .wordmark { color: var(--ink); }
body.light .wordmark span { color: var(--orange-ink); }
body.light .site-head nav a { color: var(--ink-2); }
body.light .site-head nav a:hover, body.light .site-head nav a[aria-current] { color: var(--ink); }
body.light .site-foot { border-top-color: var(--rule-light); }
body.light .site-foot p { color: var(--ink-2); }
body.light .site-foot .small { color: var(--ink-3); }
body.light .site-foot a { color: var(--ink); border-bottom-color: var(--orange); }
body.light .eyebrow { color: var(--orange-ink); }

.dash { padding: var(--s5) var(--s3) var(--s6); }
.dash h1 { font-family: var(--serif); font-size: 2.25rem; line-height: 1.08; margin: var(--s3) 0; max-width: 20ch; }
.dash .standfirst { font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); max-width: 64ch; }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--rule-light); border: 1px solid var(--rule-light); margin: var(--s5) 0;
}
.stat { background: var(--paper); padding: var(--s3); }
.stat b { display: block; font-family: var(--serif); font-size: 2.25rem; line-height: 1; font-weight: 400; }
.stat span { display: block; margin-top: 6px; font-size: .8125rem; line-height: 1.4; color: var(--ink-3); }
.section-head {
  font: 500 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); padding-bottom: var(--s2); border-bottom: 1px solid var(--ink);
  margin: var(--s5) 0 var(--s3);
}
.bars { list-style: none; margin: 0; padding: 0; }
.bars li {
  display: grid; grid-template-columns: 1fr 30% 2.5em; gap: var(--s2); align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(14, 40, 65, .08);
}
.bars button {
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer;
  font: 400 .875rem/1.3 var(--sans); color: var(--ink); text-decoration: underline;
  text-decoration-color: transparent; text-underline-offset: 3px;
}
.bars button:hover { text-decoration-color: var(--orange); }
.bars li[aria-selected="true"] button { font-weight: 600; text-decoration-color: var(--orange); }
.bar { display: block; height: 9px; background: var(--paper-2); }
.bar i { display: block; height: 100%; background: var(--orange); }
.bar-n { font-size: .8125rem; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dash .grid { margin-top: var(--s3); }
.dash .tile { background: var(--paper-2); }
.dash .tile-title { color: var(--on-dark); }

@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
  .intro, .dash { padding-left: var(--s5); padding-right: var(--s5); }
  .grid-wrap { padding-left: var(--s5); padding-right: var(--s5); }
  .site-head, .site-foot { padding-left: var(--s5); padding-right: var(--s5); }
  .intro h1 { font-size: 3.25rem; }
  .dash h1 { font-size: 3rem; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .strip img { width: 54px; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .dash-split { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: var(--s6); align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ───────────────────────────── the intro hero ─────────────────────────────
   One map beside the text on desktop, above it on a phone. It is the LCP element on the home
   page, so it is eager and high priority, never lazy. */
.intro-fig { margin: var(--s5) 0 0; }
.intro-img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--navy-850); }
.intro-fig figcaption {
  margin-top: var(--s2); font-size: .8125rem; line-height: 1.55; color: var(--on-dark-3);
}
.intro-fig figcaption a { color: var(--orange); text-decoration: none; border-bottom: 1px solid currentColor; }

@media (min-width: 900px) {
  .intro {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
    gap: var(--s6); align-items: center; padding-top: var(--s6); padding-bottom: var(--s6);
  }
  .intro-fig { margin: 0; }
  /* Height-bound, so a 4:5 map is never cropped and never letterboxed. */
  .intro-img { height: min(66vh, 860px); width: auto; max-width: 100%; aspect-ratio: auto; margin-inline: auto; }
  .intro-fig figcaption { text-align: center; }
}

/* ───────────────────────────── buttons ─────────────────────────────
   Two only. 48px minimum so they are thumb-sized, and a focus ring that is never removed.
   Used on the 404 page and anywhere a page needs one clear action. */
.btn {
  display: inline-block; min-height: 48px; padding: 13px 24px;
  font: 500 .9375rem/1.4 var(--sans); text-decoration: none;
  border: 1px solid transparent; transition: background .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--orange); color: #14100A; border-color: var(--orange); }
.btn-primary:hover { background: #F39C33; }
.btn-secondary { border-color: var(--rule-dark); color: var(--on-dark); }
.btn-secondary:hover { border-color: var(--on-dark); }
.hero-cta { display: flex; gap: var(--s2); flex-wrap: wrap; }
code { font-size: .9em; background: rgba(194, 203, 222, .12); padding: 1px 6px; }
body.light code { background: var(--paper-2); }

/* ───────────────────────────── maps first ─────────────────────────────
   The top of the home page is one line and one map, and the grid starts straight after. The
   explanation lives in .about, below the maps. */
.intro { padding: var(--s3) var(--s3) var(--s2); }
.intro-text { padding-top: var(--s3); }
.intro h1 { font-size: 1.875rem; margin: var(--s1) 0 var(--s2); max-width: none; }
.intro .standfirst { font-size: 1rem; }

.about { padding: var(--s6) var(--s3) var(--s4); border-top: 1px solid var(--rule-dark); }
.about p { color: var(--on-dark-2); font-size: 1rem; line-height: 1.7; max-width: 62ch; }
.about p + p { margin-top: var(--s3); }
.about .intro-figures { border-top: 0; padding-top: 0; margin-top: var(--s4); }
.about-body { display: grid; gap: var(--s4); }

@media (min-width: 900px) {
  /* Map on the right, the one line on the left, both compact. The grid is then within a screen
     of the top on a laptop as well as on a phone. */
  .intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
    align-items: center; padding: var(--s4) var(--s5) var(--s3);
  }
  .intro-fig { order: 2; }
  .intro-text { order: 1; padding-top: 0; }
  .intro h1 { font-size: 2.75rem; }
  .intro-img { height: min(52vh, 620px); }
  .about { padding: var(--s6) var(--s5); }
  .about-body { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: var(--s6); }
  .about .intro-figures { display: block; margin-top: 0; }
  .about .fig + .fig { margin-top: var(--s4); }
}

/* ───────────────────────────── the story button ─────────────────────────────
   Filled, not outlined, and it says what the reader gets. On a wide screen it carries the opening
   line of the post underneath, so there is a reason to press it rather than a label to ignore. */
.iconbtn-primary {
  background: var(--orange); border-color: var(--orange); color: #14100A; font-weight: 500;
  flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 14px; text-align: left;
}
.iconbtn-primary:hover { background: #F39C33; border-color: #F39C33; color: #14100A; }
.btn-label { font-size: .875rem; line-height: 1.2; }
.btn-teaser { display: none; }
.intro-actions { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }

@media (min-width: 760px) {
  .btn-teaser {
    display: block; font-size: .6875rem; line-height: 1.25; opacity: .78;
    max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
}

/* ───────────────────────────── phone: the grid IS the hero ─────────────────────────────
   On a phone a full-height hero map followed by a grid of maps is the same thing twice, and it
   pushes the grid off the first screen. So below 900px the hero is dropped and the grid starts
   straight after a two-line title. On a desktop the hero earns its place beside the text, because
   there the grid is already visible underneath it. */
@media (max-width: 899px) {
  .intro-fig { display: none; }
  .intro { padding: var(--s3) var(--s3) var(--s2); }
  .intro-text { padding-top: 0; }
  .intro h1 { font-size: 1.75rem; }
  .intro .standfirst { font-size: .9375rem; line-height: 1.55; }
  .grid-wrap { padding-top: 0; }
  .grid-head { padding-top: var(--s2); }

  /* The nav wrapped to two lines and made the header twice as tall as it needed to be. */
  .site-head { padding: 10px var(--s3); gap: var(--s2); }
  .site-head nav { gap: var(--s2); font-size: .8125rem; }
  .wordmark { font-size: .875rem; letter-spacing: .1em; white-space: nowrap; }
}

/* ───────────────────────────── touch gestures belong to the map ─────────────────────────────
   Without touch-action:none the browser can claim a pinch for its own page zoom before the
   viewer sees it, and the reader is left zoomed in with no way back out. OpenSeadragon sets this
   on its canvas, but the gesture can start on the wrapper or on the still image above it, so it
   is set on both. The still image is decorative once the viewer is running and must never take
   a touch at all. */
.osd, .osd * { touch-action: none; }
/* AND ON THE STAGE ITSELF, added 2026-11-30. The rule above only ever covered `.osd`, and `.osd`
   DOES NOT EXIST until the viewer starts: it is created lazily, on idle or on the reader's first
   gesture. A pinch inside that window, or one that begins on the stage rather than on the canvas,
   was the browser's to interpret, and the browser's interpretation is to zoom the page. The
   reader is then left magnified with nothing to pinch back out on, because every later gesture is
   swallowed by a viewer already sitting at its home zoom.
   The owner, from his phone: "on mobiel pinch zoom in maps get stuck cant zoom out agian".
   NOT REPRODUCED IN EMULATION, and that is said plainly rather than glossed: headless Chrome does
   not perform page pinch-zoom from synthetic touch events, so the test that would prove it cannot
   be written here. What IS measured is the gap, `getComputedStyle(.stage).touchAction` reading
   `auto`, and the comment directly above describes this exact failure while the rule under it did
   not cover the case.
   Safe on a map page: `.stage-page` is 100dvh with overflow hidden, so there is no page scrolling
   to lose. */
.stage { touch-action: none; }

/* The way back, made visible while it is needed. `Fit` sits in the header looking like every
   other control, and the moment a reader is zoomed in it is the only control that matters.
   Added 2026-11-30, with the double-tap toggle, after the owner was stuck three times. */
.iconbtn.needed { border-color: var(--orange); color: var(--orange); }

/* The play mark over a video poster, the same disc as the grid tiles, for the same reason: a
   video with a poster is indistinguishable from a still map until something says otherwise.
   Added 2026-11-30. It goes when the video is playing and comes back when it is paused, so the
   reader always has a target that is bigger than the browser's own control. */
/* THE NEXT AND PREVIOUS ARROWS, LIFTED. On a phone the edge arrows are hidden and these two are
   the only way through the set, and they were styled exactly like Method and Days: the same faint
   rule on the same navy, so the one control a reader needs most looked like the two they need
   least. The owner, 2026-11-30: "can the nav arrow sbeyween maps be slitglty mor epromine t maybe
   biorder or smeting". A brighter border and a white arrow, which lifts them without reaching for
   the orange that the story button already owns in that bar. */
.stage-foot [data-prev], .stage-foot [data-next] {
  border-color: var(--on-dark-3); color: var(--on-dark);
}
.stage-foot [data-prev]:hover, .stage-foot [data-next]:hover {
  border-color: var(--on-dark); background: rgba(255, 255, 255, .08);
}

.stage-video { position: absolute; inset: 0; }
.stage-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.stage-play svg {
  width: 72px; height: 72px; fill: #fff; border-radius: 50%;
  background: rgba(9, 20, 49, .72); box-shadow: 0 2px 18px rgba(0, 0, 0, .4);
  transition: background .15s ease;
}
.stage-play:hover svg, .stage-play:focus-visible svg { background: rgba(9, 20, 49, .92); }
.stage-video.playing .stage-play { display: none; }
@media (max-width: 899px) { .stage-play svg { width: 60px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { .stage-play svg { transition: none; } }
.stage-still { pointer-events: none; touch-action: none; }

/* ───────────────────────────── phone: let the gestures do it ─────────────────────────────
   Pinch and double-tap are how anyone zooms on a touch screen, so + and - are two buttons' worth
   of clutter on a 390px header. "Fit" stays, because being lost at full zoom is the usual
   complaint about deep zoom and no single gesture gets you back. The owner: "Do you really need
   zoom buttons on mobile?" */
@media (max-width: 759px) {
  .stage-tools [data-zoom="in"], .stage-tools [data-zoom="out"] { display: none; }
  .stage-id .t { font-size: 1rem; }
  .stage-head { padding: 8px var(--s2); }
}

/* ───────────────────────────── phone: one row of controls ─────────────────────────────
   The footer wrapped onto two rows, which ate map height and looked accidental. Everything is
   tightened so the story button, the method, the filmstrip and the stepper sit on one line at
   390px, and the story button takes the space that is left because it is the one to press. */
@media (max-width: 759px) {
  .stage-foot { padding: 8px 10px; gap: 6px; }
  .panel-buttons { flex: 1 1 auto; flex-wrap: nowrap; gap: 5px; min-width: 0; }
  .stage-foot .iconbtn { padding: 0 9px; min-width: 38px; font-size: .8125rem; }
  .iconbtn-primary { flex: 1 1 auto; justify-content: center; align-items: center; padding: 0 10px; }
  .iconbtn-primary .btn-label { font-size: .8125rem; white-space: nowrap; }
  .stepper { gap: 5px; }
  .stepper a { min-width: 38px; padding: 0 6px; }

  /* The title had room to spare once + and - went, so let it use it. */
  .stage-id { flex: 1 1 auto; min-width: 0; }
  .stage-tools { gap: 5px; }
  .stage-tools .iconbtn { padding: 0 10px; font-size: .8125rem; }
}
.narrow-only { display: none; }
@media (max-width: 759px) {
  .wide-only { display: none; }
  .narrow-only { display: inline; }
}

/* ───────────────────────────── tap targets ─────────────────────────────
   Measured by scripts/audit.mjs, which found 99 of them under 36px: the nav links were 31px
   high, the footer links 23px, the wordmark 14px, and every row of the data page's source list
   18px. WCAG 2.2 puts the minimum at 24x24, which they passed, but a 23px-high link is still a
   poor thing to hit with a thumb on a moving train.

   The trick throughout is padding on the link rather than a taller line, so the type keeps its
   rhythm and only the hit area grows. */
.site-head nav a { padding: 12px 2px; }
.wordmark { display: inline-block; padding: 10px 0; }
.foot-links a { display: inline-block; padding: 10px 0; }
.site-foot .small a { padding: 8px 0; display: inline-block; }

/* The source list on the data page: the whole row is the target, not just the words. */
.bars li { padding: 0; }
.bars button { padding: 11px 0; width: 100%; min-height: 40px; }
.bars li .bar, .bars li .bar-n { pointer-events: none; }

/* The filmstrip thumbnails are deliberately small, but the link around them is not. */
.strip a { padding: 6px 2px; }

/* The last few targets the audit found under 36px. */
.wordmark { padding: 12px 4px; margin-left: -4px; }
.site-head nav a { padding: 12px 6px; }
.intro-fig figcaption a { display: inline-block; padding: 9px 0; }

/* ───────────────────────────── filmstrip day numbers ─────────────────────────────
   Thirty thumbnails of thirty dark maps are hard to tell apart at 54px, so each one says which
   day it is. The owner, looking at the strip on his phone: try that with day 01, day 02 etc. */
.strip a { position: relative; }
.strip-n {
  position: absolute; left: 2px; right: 2px; bottom: 6px;
  font: 500 .5625rem/1 var(--sans); letter-spacing: .06em; text-align: center;
  color: var(--on-dark); background: rgba(9, 20, 49, .82); padding: 3px 0;
}
.strip a[aria-current] .strip-n { background: var(--orange); color: #14100A; }
.strip img { opacity: .62; }
.strip a:hover img, .strip a:focus-visible img { opacity: 1; }
@media (min-width: 700px) { .strip img { width: 58px; } }

/* ───────────────────────────── previous and next, at the edges ─────────────────────────────
   Where a reader reaches for them in anything that shows one picture at a time. They were small
   arrows in the bottom right corner of the window, which on a wide desktop put them nowhere near
   the map and nowhere near the eye.

   They sit over the dark surround beside the map rather than over the map itself, because at
   these widths a 4:5 map never fills the stage. */
.edge {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 15;
  width: 56px; height: 56px; display: none;
  align-items: center; justify-content: center;
  color: var(--on-dark-2); text-decoration: none;
  background: rgba(9, 20, 49, .55); border: 1px solid var(--rule-dark);
  transition: background .15s, color .15s, border-color .15s;
}
.edge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.edge:hover { background: var(--orange); border-color: var(--orange); color: #14100A; }
.edge-prev { left: var(--s3); }
.edge-next { right: var(--s3); }
.edge[aria-disabled="true"] { opacity: .2; pointer-events: none; }

@media (min-width: 900px) {
  .edge { display: flex; }
  /* The footer pair would then be a second way to do the same thing, two inches apart. */
  .stage-foot .stepper { display: none; }
  /* And with the stepper gone, the buttons centre under the map instead of hugging the window. */
  .stage-foot { justify-content: center; }
  .panel-buttons { justify-content: center; }
  /* The filmstrip too: it was pinned to the bottom left corner of the window, nowhere near the
     map it belongs to. */
  .strip { justify-content: center; }
}
/* While a panel is open the stage is narrower, so the next arrow must move with it. */
.stage-page.panel-open .edge-next { right: var(--s3); }

/* The filmstrip while the map is being zoomed or panned. Higher specificity than the hover and
   .open rules above, so it wins without !important, and it comes back on its own two seconds
   after the reader stops. */
.stage.busy .strip,
.stage.busy:hover .strip,
.stage.busy .strip.open { transform: translateY(100%); }

/* ───────────────────────────── the Geodat mark ─────────────────────────────
   The real logo, as an SVG, from 02_Admin/06_Templates_Branding/03_Logos/01-Geodat/. It replaces
   the text wordmark that stood in for it.

   It links to geodat.ai rather than to this gallery's home. The gallery is one section of the
   Geodat site, and someone pressing the company's mark expects the company. "Maps" in the nav
   goes back to the grid, and every map page also carries "All maps". */
.brand { display: inline-flex; align-items: center; padding: 8px 0; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand:hover img { opacity: .85; }

.brand-foot { margin-bottom: var(--s3); }
.brand-foot img { height: 46px; }

/* The light page gets the dark-on-light file, chosen in the HTML rather than by a CSS `content`
   swap: that trick works in Chrome and Safari and does nothing in Firefox, which would have left
   a white logo on cream paper for a sixth of readers. */

@media (max-width: 759px) {
  .brand img { height: 32px; }
  .brand-foot img { height: 38px; }
}

/* The map stage has no site header, so the mark sits beside the day number, small, and steps
   out of the way on a phone where the header has room for the title and nothing else. */
.brand-stage { display: none; margin-right: var(--s3); flex: 0 0 auto; }
.brand-stage img { height: 26px; }
@media (min-width: 760px) { .brand-stage { display: inline-flex; } }

/* ───────────────────────────── very wide screens ─────────────────────────────
   The owner, on a ~1900px monitor: "looks slightly weird on big screen as big gap in middle".

   He was right and the cause is the reading measure. Body text is capped at about 62 characters
   because a longer line is harder to read, so on a 1900px screen the left column stopped at
   640px and left 450px of nothing before the map began. The gap was inside the text column, not
   between the columns, so no amount of adjusting the grid would have closed it.

   The fix is to stop the PAGE growing past the point where its content wants to. Everything is
   capped at 1560px and centred, so wide screens get margins that read as deliberate rather than
   a hole in the middle of the layout. */
:root { --page-max: 1560px; }

.site-head, .intro, .grid-wrap, .dash, .site-foot, .about {
  max-width: var(--page-max);
  margin-inline: auto;
}

@media (min-width: 1500px) {
  /* Five across rather than four, or the tiles become posters. */
  .grid { grid-template-columns: repeat(5, 1fr); }
  /* And the hero's two columns sit closer, because the text has stopped growing. */
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 34%); gap: var(--s5); }
}

/* The hero's two columns are sized to their CONTENT and the pair is centred, rather than stretched
   to fill whatever width the window happens to be. Capping the page alone still left 350px of
   nothing between the end of the text and the start of the map at 1900px, because the slack was
   inside the text column where the reading measure stops. */
@media (min-width: 900px) {
  .intro {
    grid-template-columns: minmax(0, 62ch) minmax(0, 470px);
    justify-content: center;
    gap: var(--s5);
  }
}
@media (min-width: 1500px) {
  .intro { grid-template-columns: minmax(0, 62ch) minmax(0, 520px); gap: var(--s6); }
}

/* The full methods note, inside the same panel as the short version. A rule and space separate
   the two so the long note reads as "and here is all of it" rather than more of the same. */
.panel-long {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule-light);
}
.panel-long > h3 { margin-top: 0; }

/* ═══════════════════════════ the website, not the gallery ═══════════════════════════
   Everything below is for the site preview at /site/. It reuses the gallery's tokens, type and
   chrome: one stylesheet, one header, one footer. That is the whole point of having built the
   gallery as the website's first section rather than as a separate thing. */

.site-band { max-width: var(--page-max); margin-inline: auto; padding: var(--s6) var(--s3); }
.band-lede { font-size: 1.125rem; line-height: 1.65; color: var(--on-dark-2); max-width: 62ch;
  margin-bottom: var(--s5); }
.contact-row { display: grid; gap: var(--s2); }
.contact-row a { color: var(--orange); text-decoration: none; border-bottom: 1px solid transparent; }
.contact-row a:hover { border-bottom-color: currentColor; }
.preview-note {
  max-width: var(--page-max); margin: var(--s5) auto 0; padding: var(--s3);
  border: 1px dashed var(--rule-dark); color: var(--on-dark-3);
  font-size: .8125rem; line-height: 1.6;
}
@media (min-width: 700px) { .site-band, .preview-note { padding-left: var(--s5); padding-right: var(--s5); } }

/* ───────────────────────────── the rolling showcase ─────────────────────────────
   The owner: the current site uses generic Wix content for its background where it should be
   using Geodat outputs. "Rolling gallery type thing, mix of maps, data science."

   Six of his own outputs, crossfading. Pure CSS, so it costs no JavaScript and cannot jank; one
   stacking context, one animation, six delays. Under prefers-reduced-motion it stops on the
   first and stays there, which is handled by the global reduced-motion rule plus the opacity
   reset below. */
.showcase { position: relative; }
.showcase-item {
  position: absolute; inset: 0; display: block; opacity: 0;
  animation: showcase 42s infinite;
  animation-delay: calc(var(--i) * 7s);
}
.showcase-item:first-child { position: relative; }
.showcase-item img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: var(--navy-850);
}
/* THE WINDOWS MUST OVERLAP OR THE HERO GOES BLACK. Six items, 42s, 7s apart, so each one owns
   16.67% of the cycle. A visible window narrower than that leaves a gap where nothing is on
   screen at all, and the first capture caught exactly that: an empty hero with a caption under
   it. The window below is 18.5% wide, so each image is still fading out as the next fades in. */
@keyframes showcase {
  0%           { opacity: 0; }
  1.5%, 15%    { opacity: 1; }
  18.5%, 100%  { opacity: 0; }
}
.showcase figcaption { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .showcase-item { animation: none; opacity: 0; }
  .showcase-item:first-child { opacity: 1; }
}

@media (min-width: 900px) {
  .showcase-item img { height: min(66vh, 860px); width: auto; max-width: 100%;
    aspect-ratio: auto; margin-inline: auto; }
  .showcase-item { display: flex; align-items: center; justify-content: center; }
}

/* ───────────────────────────── the marquee of everything ─────────────────────────────
   Thirty-four outputs, moving slowly. The argument for the company is the body of work, so the
   body of work is on the page rather than described. The track is doubled and translated by
   exactly half, so the loop has no seam. */
.marquee-band { padding: var(--s4) 0; border-block: 1px solid var(--rule-dark); overflow: hidden; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: var(--s2); width: max-content; animation: marquee 140s linear infinite; }
.marquee:hover .marquee-track, .marquee-track:focus-within { animation-play-state: paused; }
.marquee-item { flex: 0 0 auto; display: block; }
.marquee-item img {
  width: 120px; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  background: var(--navy-850); opacity: .6; transition: opacity .2s;
}
.marquee-item:hover img, .marquee-item:focus-visible img { opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}
@media (min-width: 900px) { .marquee-item img { width: 150px; } }

/* ───────────────────────────── site components ─────────────────────────────
   The "three ways" blocks and the work cards. These existed only in the design mockups and never
   in the real stylesheet, because the gallery has neither. The site preview rendered them as
   unstyled stacked text with full-width images, which is what a missing component looks like. */

.ways-grid { display: grid; gap: var(--s5); }
.way { padding-top: var(--s3); border-top: 2px solid var(--orange); }
.way-n { font: 500 .75rem/1 var(--sans); letter-spacing: .1em; color: var(--on-dark-3); }
.way h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin: var(--s2) 0 var(--s1); }
.way p { font-size: .9375rem; line-height: 1.7; color: var(--on-dark-2); max-width: 46ch; }

.work-grid { display: grid; gap: var(--s4); }
.work-card { display: block; text-decoration: none; }
.work-card img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--navy-850);
  transition: opacity .2s;
}
.work-card:hover img { opacity: .82; }
.work-meta { padding-top: var(--s2); border-top: 1px solid var(--rule-dark); margin-top: var(--s2); }
.work-meta h3 { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; }
.work-blurb { font-size: .9375rem; line-height: 1.65; color: var(--on-dark-2); margin-top: var(--s2); }
.more {
  display: inline-block; margin-top: var(--s2); font-size: .8125rem; letter-spacing: .04em;
  color: var(--on-dark); border-bottom: 1px solid var(--orange); padding-bottom: 2px;
}

@media (min-width: 860px) {
  .ways-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

/* The site has seven navigation items against the gallery's three, and seven do not fit on a
   390px phone: they pushed 84px off the side of every page. The header wraps instead, with the
   navigation taking its own line under the mark. */
@media (max-width: 759px) {
  .site-head { flex-wrap: wrap; row-gap: 4px; }
  .site-head nav {
    flex: 1 0 100%; flex-wrap: wrap; gap: 2px var(--s2);
    padding-bottom: 6px; font-size: .8125rem;
  }
  .site-head nav a { padding: 8px 0; }


  /* The desktop rhythm costs too much on a phone. A 96px gap under a header that already takes
     two rows pushed the page title most of a screen down. */
  .page-head { padding-top: var(--s4); padding-bottom: var(--s3); }
  .site-band { padding-block: var(--s5); }
  .page-hero-fig { margin-bottom: var(--s4); }
}

/* ═══════════════════════════ the website ═══════════════════════════
   GEODAT'S OWN COLOURS THROUGHOUT: the navy from his brand file and #E6841A orange. The
   reference sites looked at while designing this use a cream ground and a yellow accent; neither
   is here, because the palette is his and the research was about structure, not colour.

   What the research did change: the type is bigger. Felt sets its headline at 69px and Stamen at
   60px, against the 48px this had. A consultancy home page has one thing to say and the room to
   say it, and a 48px headline on a 1900px screen reads as timid. */

.hero { padding: var(--s6) var(--s3) var(--s5); display: grid; gap: var(--s5); }
.hero-text .eyebrow { margin-bottom: var(--s3); }
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.03;
  letter-spacing: -.02em; margin-bottom: var(--s3); max-width: 14ch;
}
.hero-lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); line-height: 1.6;
  color: var(--on-dark-2); max-width: 54ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* The credibility row: his own memberships and pledges, which the Wix footer already carries.
   The equivalent of the logo wall every consultancy site puts under its hero, except his is
   earned rather than a client list he cannot name. */
.credibility { max-width: var(--page-max); margin-inline: auto; padding: 0 var(--s3) var(--s5); }
.badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4);
  padding-top: var(--s4); border-top: 1px solid var(--rule-dark);
}
.badges img { height: 56px; width: auto; opacity: .85; }
.badges img:hover { opacity: 1; }
.site-foot .badges { border-top: 0; padding-top: 0; margin-top: var(--s3); }

.band-title {
  font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12;
  margin-bottom: var(--s2);
}
.band-lede { font-size: 1.0625rem; line-height: 1.7; color: var(--on-dark-2); max-width: 60ch; margin-bottom: var(--s5); }

/* Three short sections become three columns. On the services page each carries one of his own
   maps instead of the stock photograph it had: a hand holding a phone, a circuit board and a
   glowing brain, none of which are anything he made. */
.cols-3 { display: grid; gap: var(--s5); }
.col-fig { margin-bottom: var(--s3); }
.col-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--navy-850); }
.col h2 {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.2;
  padding-top: var(--s2); border-top: 2px solid var(--orange); margin-bottom: var(--s2);
}
.col p { font-size: 1rem; line-height: 1.75; color: var(--on-dark-2); }

/* Longer or list-heavy sections become cards. The tech page is seven of them. */
.cards { display: grid; gap: var(--s3); }
.card { background: var(--navy-850); padding: var(--s4); border-top: 2px solid var(--orange); }
.card h2 { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; margin-bottom: var(--s2); }
.card p, .card li { font-size: 1rem; line-height: 1.75; color: var(--on-dark-2); }
.card p + p { margin-top: var(--s2); }
.card ul { margin: 0; padding-left: 1.15em; }
.card li { margin-bottom: 10px; }

.page-head { max-width: var(--page-max); margin-inline: auto; padding: var(--s6) var(--s3) var(--s4); }
.page-head h1 {
  font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05;
  letter-spacing: -.02em; margin-bottom: var(--s3); max-width: 18ch;
}
.page-lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--on-dark-2); max-width: 62ch; }
.page-intro { font-size: 1rem; line-height: 1.75; color: var(--on-dark-3); max-width: 62ch; margin-top: var(--s2); }

/* Title and intro on the left, one of his maps on the right. Below 900px the map drops under
   the text, which is the only arrangement that works when the column is a phone wide. */
.page-top { max-width: var(--page-max); margin-inline: auto; }
.page-top > .page-head { max-width: none; margin-inline: 0; }
.page-top + .site-band, .page-top + * > .site-band { padding-top: var(--s3); }
@media (min-width: 900px) {
  /* Centred, not top-aligned. These intros run three or four lines against a 540px map, so
     top-aligning them left a column of empty navy under the text that read as a mistake. */
  .page-top-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
    gap: var(--s3) var(--s5); align-items: center; }
  .page-top-split .page-head { padding-top: var(--s5); padding-bottom: var(--s5); }
  /* Capped by HEIGHT, not width, because these are portrait maps. Sized only by width, a 4:5 map
     beside a three-line intro ran 800px tall and left most of the left column empty. */
  .page-top-split .page-hero-fig > a { width: fit-content; margin-left: auto; }
  .page-top-split .page-hero-fig img { max-height: 540px; width: auto; max-width: 100%; }
  .page-top-split .page-hero-fig figcaption { text-align: right; margin-left: auto; }
}

.page-hero-fig { max-width: var(--page-max); margin: 0 auto var(--s5); padding: 0 var(--s3); }
.page-hero-fig img { display: block; width: 100%; height: auto; }
.page-hero-fig > a { display: block; max-width: 560px; border-radius: var(--r); overflow: hidden;
  background: var(--navy-850); box-shadow: 0 18px 50px rgb(0 0 0 / .4); }
.page-hero-fig > a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.page-hero-fig figcaption {
  margin-top: var(--s2); max-width: 560px;
  font-size: .8125rem; line-height: 1.55; color: var(--on-dark-3);
}
/* Inline, NOT inline-block. With `display:inline-block` plus vertical padding the link sat off
   the baseline and shoved the rest of the sentence around it. 2.5.8 Target Size exempts a link
   inside a sentence, so the 24px rule does not apply here. */
/* Inline, NOT inline-block, and it has to say so loudly because two other rules want it to be a
   block: the frame rule above and the global `figcaption a` target-size rule. With either of
   those winning, the link became a full-width band that shoved the rest of the sentence onto
   lines of its own. WCAG 2.5.8 exempts a target inside a sentence from the 24px minimum, which
   is exactly this case. */
.page-hero-fig figcaption a { display: inline; padding: 0; min-height: 0;
  color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
    align-items: center; gap: var(--s6);
    padding: var(--s7) var(--s5) var(--s6); max-width: var(--page-max); margin-inline: auto;
  }
  .cols-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
  .cards { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
  .credibility, .page-head, .page-hero-fig { padding-left: var(--s5); padding-right: var(--s5); }
  .badges img { height: 64px; }
}

/* ───────────────────────────── the full footer ─────────────────────────────
   Rebuilt to carry what his Wix footer carries and the first port dropped: a site list, a
   contact block, and the accreditation badges. */
.foot-top { display: grid; gap: var(--s4); margin-bottom: var(--s4); }
.foot-col h2 {
  font: 500 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-3); margin-bottom: var(--s2);
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { font-size: .9375rem; line-height: 1.5; color: var(--on-dark-2); }
.foot-col li a { color: var(--on-dark-2); text-decoration: none; display: inline-block; padding: 7px 0; }
.foot-col li a:hover { color: var(--on-dark); border-bottom: 1px solid var(--orange); }
.foot-brand p { margin-top: var(--s2); max-width: 36ch; }
body.light .foot-col li { color: var(--ink-2); }
body.light .foot-col li a { color: var(--ink-2); }

@media (min-width: 760px) {
  .foot-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s5); }
}

/* The showcase is one link wrapping a decorative stack. */
.showcase-link { display: block; position: relative; text-decoration: none; }
.showcase-item { position: absolute; inset: 0; display: block; }
.showcase-item:first-child { position: relative; }

/* WCAG 2.2 Target Size (Minimum) is 24x24. "See them all" was 107x20 and failed it. */
.cap-link, figcaption a { display: inline-block; padding: 6px 0; min-height: 24px; }

/* ═══════════════════════════ device sweep fixes ═══════════════════════════
   Found by scripts/responsive.mjs across ten widths from 320 to 1920. */

/* 1. THE PANEL AT TABLET WIDTHS. The side panel was a fixed 440px from 900px up, so on a 1024px
      iPad in landscape it took 440 of the 584px stage and left the map 144px. A map page where
      the map is a strip down the side is not a map page.

      The side layout now starts at 1100px, and below that the panel is the bottom sheet the
      phone uses, which leaves the map the full width. The panel also stops being a fixed width:
      it is the smaller of 440px and 38% of the window. */
:root { --panel-w: min(440px, 38vw); }

/* ORIENTATION, NOT JUST WIDTH. A 1024px iPad in landscape took the bottom sheet, which covered
   72% of the height and turned the map into a strip. In landscape there is width to spare and no
   height to spare, so the panel goes beside the map; in portrait it is the other way round. A
   breakpoint on width alone cannot tell those two apart. */
@media (max-width: 1099px) and (orientation: portrait), (max-width: 699px) {
  .panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 72dvh;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, .45); }
  .panel[data-state="closed"] { transform: translateY(101%); }
  .stage-page.panel-open .stage-head,
  .stage-page.panel-open .stage,
  .stage-page.panel-open .stage-foot { margin-right: 0; }
}
/* Landscape from 700px up: a phone held sideways has 390px of height and plenty of width,
   so a sheet taking 72% of that height left 110px of map. Beside it, not under it. */
@media (min-width: 1100px), (min-width: 700px) and (orientation: landscape) {
  .panel { top: 0; right: 0; bottom: 0; left: auto; width: var(--panel-w); max-height: none;
    box-shadow: -8px 0 40px rgba(0, 0, 0, .45); }
  .panel[data-state="closed"] { transform: translateX(101%); }
  .stage-page.panel-open .stage-head,
  .stage-page.panel-open .stage,
  .stage-page.panel-open .stage-foot { margin-right: var(--panel-w); }
}

/* 2. TEXT UNDER 12px. Eleven and ten pixel labels are unreadable on a phone whatever the design
      says, and they were on the tiles, the video badge, the day number and the story teaser.
      Twelve is the floor now. */
.tile-day, .tile-theme { font-size: .75rem; }
/* The video badge used to be a 10px word here. It is a play mark now, chosen 2026-11-28, so there
   is no type to raise, and the mark is sized down instead: a 56px disc on a phone tile covers the
   map rather than labelling it. */
.tile-play svg { width: 44px; height: 44px; }
.stage-id .n { font-size: .75rem; }
.btn-teaser { font-size: .75rem; }
.strip-n { font-size: .6875rem; }   /* a 44px thumbnail cannot hold 12px type; it is a label on
                                       an image, not running text, and the title is in the link */

/* ───────────────────────────── the projects grid ─────────────────────────────
   Twelve real pieces of client work, each a screenshot with its client named underneath. On the
   Wix site the client sits in an orange bar across the image; here it sits under it, because a
   caption over a screenshot covers the thing it is describing. */
/* A BAND THAT FOLLOWS THE PAGE TITLE DOES NOT NEED ITS OWN FULL TOP PADDING. Measured, not
   guessed: the projects page had 330px of empty navy between the last line of the intro and the
   first tile, because the head's bottom padding and the band's top padding were stacking. */
.page-head + .site-band, .site-band + .site-band { padding-top: var(--s3); }

/* Subgrid so every card's title starts on the same line and every card's link ends on the same
   line, whatever the title wraps to. Without it a two-line title in one tile pushes its own
   link 42px below its neighbours' and the row reads as broken. */
.proj-grid { display: grid; gap: var(--s4); }
.proj { display: grid; grid-template-rows: auto 1fr; text-decoration: none; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 640px) {
    .proj-grid { grid-template-rows: auto; }
    .proj { grid-row: span 2; grid-template-rows: subgrid; }
  }
}
.proj-link .more { margin-top: auto; padding-top: var(--s2); }
.proj-shot { background: var(--navy-850); border: 1px solid var(--rule-dark); overflow: hidden; }
.proj-shot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center;
  transition: transform .3s ease; }
.proj-link:hover .proj-shot img { transform: scale(1.03); }
.proj-meta { padding-top: var(--s2); border-top: 2px solid var(--orange); margin-top: var(--s2);
  display: flex; flex-direction: column; align-items: start; }
.proj-meta h2 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }
.proj-client {
  font: 500 .75rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-3); margin-top: 6px;
}

@media (min-width: 640px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .proj-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s4) var(--s3); } }

/* The page's own prose, after the card row. A reading measure, not a card and not full width. */
/* The measure goes on the paragraphs, not on the band. Putting it on the band let the band's
   own `margin-inline: auto` centre a 68ch column in a 1440px page, so the prose floated in the
   middle with empty navy either side instead of starting at the page's left edge. */
.page-body p { max-width: 68ch;
  font-size: 1.0625rem; line-height: 1.75; color: var(--on-dark-2); margin-bottom: var(--s3); }
.page-body p:last-child { margin-bottom: 0; }
.page-body-contact a { color: var(--orange); text-decoration: none;
  border-bottom: 1px solid currentColor; display: inline-block; padding: 6px 0; }

.band-head { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2;
  letter-spacing: -.01em; margin-bottom: var(--s2); }

/* THE RULE BELONGS TO THE SECTION, NOT TO THE BADGES. With `.credibility` made a flex row the
   badges became a flex item, so their own border-top shrank to the width of the four logos and
   showed as a short line floating above them. */
.credibility {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5);
  padding-top: var(--s4); border-top: 1px solid var(--rule-dark);
}
.credibility .badges { border-top: 0; padding-top: 0; }
.cred-label {
  font: 500 .75rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-dark-3); margin: 0;
}

/* A wide gap under the caption, a tight one above it: the caption names the map, not the
   service heading that follows, and at an even spacing it read as the heading's kicker. */
.col-fig { margin: 0 0 var(--s4); }
.col-fig > a { display: block; overflow: hidden; border-radius: var(--r); background: var(--navy-850); }
.col-fig > a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.col-fig img { display: block; width: 100%; height: auto; transition: transform .3s ease; }
.col-fig > a:hover img { transform: scale(1.03); }
.col-fig figcaption { margin-top: var(--s1); font-size: .8125rem; line-height: 1.5; color: var(--on-dark-3); }
.col-fig figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 3px;
  display: inline-block; padding: 4px 0; }
.col-fig figcaption a:hover { color: var(--orange); }
@media (prefers-reduced-motion: reduce) { .col-fig img { transition: none; } .col-fig > a:hover img { transform: none; } }

/* ── the contact page ───────────────────────────────────────────────────────
   The form first, because that is what the page is for, with the address beside it for anyone
   who would rather write or call. One column on anything narrower than a small laptop: a form
   in a 340px column beside anything else is unusable. */
.contact-grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s5) var(--s6); } }

.contact-form { max-width: 46rem; }
.field-pair { display: grid; gap: var(--s3); }
@media (min-width: 560px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: var(--s3); }
.field label {
  display: block; margin-bottom: 6px;
  font: 500 .875rem/1.4 var(--sans); color: var(--on-dark-2);
}
.field .req { font-weight: 400; color: var(--on-dark-3); }
.field input, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  font: 1rem/1.5 var(--sans); color: var(--on-dark);
  background: var(--navy-850); border: 1px solid var(--rule-dark); border-radius: var(--r);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--on-dark-3); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px; border-color: var(--orange);
}
/* :user-invalid, not :invalid: a required box is invalid from the moment the page loads, so
   :invalid paints every field red before anyone has typed a character. */
.field input:user-invalid, .field textarea:user-invalid { border-color: #E2725B; }
.form-note { max-width: 52ch; margin: var(--s3) 0; font-size: .875rem; line-height: 1.6; color: var(--on-dark-3); }

.contact-card { display: flex; flex-direction: column; gap: 2px; font-style: normal;
  font-size: 1.0625rem; line-height: 1.7; color: var(--on-dark-2); }
.contact-card .contact-org { color: var(--on-dark); font-weight: 500; }
.contact-card a { color: var(--orange); text-decoration: none; width: fit-content;
  border-bottom: 1px solid transparent; padding: 6px 0; min-height: 24px; }
.contact-card a:hover { border-bottom-color: currentColor; }
.contact-notes { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--rule-dark); }
.contact-notes p { max-width: 46ch; font-size: .9375rem; line-height: 1.65; color: var(--on-dark-3); margin-bottom: var(--s2); }
.contact-notes p:last-child { margin-bottom: 0; }

/* ORDER MATTERS, AND THIS ONE WAS AT THE WRONG END OF THE FILE. The first attempt put this in
   the phone media block at line 818, where the plain .badges rule 40 lines later overrode it:
   same specificity, later wins. Measured rather than assumed, which is how it was caught.

   Four badges at 56px with a 40px gap need 349px and a 390px phone gives 342 of usable width,
   so the fourth wrapped to a line of its own and the footer looked broken. 24px fits all four. */
@media (max-width: 759px) { .badges { gap: var(--s3); } }

/* ── PROJECT PAGES ────────────────────────────────────────────────────────────
   One page per project, built by scripts/build-projects.mjs from the ten blocks
   in docs/project-pages.md. Everything above the blocks reuses the website's own
   page-head, page-lede and page-hero-fig, so a project page and an about page are
   visibly the same site rather than two designs sharing a header.

   THE WEBSITE IS DARK, AND THE FIRST VERSION OF THIS BLOCK FORGOT IT. It used
   --ink and --ink-2, which are the navy text colours for the light paper ground
   the gallery's data page uses, so the whole body came out navy on navy and was
   unreadable. Caught by looking at the capture rather than at the markup. Every
   colour here is an on-dark token, the same ones .page-body and .work-meta use. */
.work-body { max-width: var(--page-max); margin-inline: auto; padding: 0 var(--s3) var(--s6); }
/* The block is wider than its prose on purpose: the heading rule and the data
   table want the room, a paragraph does not. Measured at 1440 the first version
   put everything at 68ch and the page read as a thin ribbon down the left. */
.work-block { margin-top: var(--s5); max-width: 56rem; }
.work-block h2 {
  font-family: var(--serif); font-size: 1.625rem; line-height: 1.2; color: var(--on-dark);
  padding-bottom: var(--s1); border-bottom: 1px solid var(--rule-dark); margin-bottom: var(--s3);
}
.work-block p, .work-block li {
  font-size: 1.0625rem; line-height: 1.75; color: var(--on-dark-2); margin-bottom: var(--s3);
  max-width: 68ch;
}
.work-block strong { color: var(--on-dark); font-weight: 600; }
.work-block a { color: var(--orange); text-decoration: none; border-bottom: 1px solid currentColor; }
/* The data block is a table on every project, so it is styled once here rather than
   per page. It scrolls inside itself: a source and a licence is wider than a phone,
   and the page itself must never scroll sideways. */
.work-block .work-table { max-width: none; overflow-x: auto; margin-bottom: var(--s3); }
.work-block table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.work-block th, .work-block td {
  text-align: left; vertical-align: top; padding: var(--s2) var(--s3) var(--s2) 0;
  border-bottom: 1px solid var(--rule-dark); color: var(--on-dark-2); line-height: 1.55;
}
.work-block th { font-family: var(--sans); font-weight: 600; color: var(--on-dark); white-space: nowrap; }
.work-links { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2); }
.work-link {
  font-family: var(--sans); font-size: .9375rem; text-decoration: none; color: var(--on-dark);
  border: 1px solid var(--rule-dark); border-radius: 999px; padding: .4rem .9rem;
}
.work-link:hover { background: var(--navy-800, #0E2841); border-color: var(--orange); }
@media (min-width: 700px) { .work-body { padding-left: var(--s5); padding-right: var(--s5); } }

/* ── CLASSES THAT USED TO BE INLINE STYLES ───────────────────────────────────
 *
 * The live site sends `Content-Security-Policy: style-src 'self'` with no
 * `'unsafe-inline'`, from the geodatSecurityHeaders rule set on Front Door. A browser obeying
 * that throws away EVERY `style` attribute in the HTML, silently.
 *
 * MEASURED ON LAUNCH DAY, 2026-11-30, after the owner noticed the data page: "these plots same
 * size". He was right. Every bar in "every source, by how many maps used it" was drawn at full
 * width, because the one thing that made them different lengths was an inline style the live host
 * was dropping. **79 style attributes across the site were dead**, and not one local check could
 * see it: the build has no CSP, so on localhost every one of them worked.
 *
 * The fix is classes rather than loosening the policy. `'unsafe-inline'` on style-src would have
 * been one line in the rule set and would have un-broken all 79 at once, and it is the wrong
 * trade: this site renders no user input, so the strict policy costs nothing to keep and is worth
 * keeping. `no-inline-styles` in scripts/check.mjs is what stops them coming back.
 */
.flush { margin-top: 0; }
.hero-cta-gap { margin-top: var(--s4); }
.filter-all { text-decoration: none; display: inline-flex; align-items: center; }

/* Bar widths, 0 to 100 in whole percents. Generated here rather than inline. */
.w0{width:0%} .w1{width:1%} .w2{width:2%} .w3{width:3%} .w4{width:4%} .w5{width:5%} .w6{width:6%} .w7{width:7%} .w8{width:8%} .w9{width:9%}
.w10{width:10%} .w11{width:11%} .w12{width:12%} .w13{width:13%} .w14{width:14%} .w15{width:15%} .w16{width:16%} .w17{width:17%} .w18{width:18%} .w19{width:19%}
.w20{width:20%} .w21{width:21%} .w22{width:22%} .w23{width:23%} .w24{width:24%} .w25{width:25%} .w26{width:26%} .w27{width:27%} .w28{width:28%} .w29{width:29%}
.w30{width:30%} .w31{width:31%} .w32{width:32%} .w33{width:33%} .w34{width:34%} .w35{width:35%} .w36{width:36%} .w37{width:37%} .w38{width:38%} .w39{width:39%}
.w40{width:40%} .w41{width:41%} .w42{width:42%} .w43{width:43%} .w44{width:44%} .w45{width:45%} .w46{width:46%} .w47{width:47%} .w48{width:48%} .w49{width:49%}
.w50{width:50%} .w51{width:51%} .w52{width:52%} .w53{width:53%} .w54{width:54%} .w55{width:55%} .w56{width:56%} .w57{width:57%} .w58{width:58%} .w59{width:59%}
.w60{width:60%} .w61{width:61%} .w62{width:62%} .w63{width:63%} .w64{width:64%} .w65{width:65%} .w66{width:66%} .w67{width:67%} .w68{width:68%} .w69{width:69%}
.w70{width:70%} .w71{width:71%} .w72{width:72%} .w73{width:73%} .w74{width:74%} .w75{width:75%} .w76{width:76%} .w77{width:77%} .w78{width:78%} .w79{width:79%}
.w80{width:80%} .w81{width:81%} .w82{width:82%} .w83{width:83%} .w84{width:84%} .w85{width:85%} .w86{width:86%} .w87{width:87%} .w88{width:88%} .w89{width:89%}
.w90{width:90%} .w91{width:91%} .w92{width:92%} .w93{width:93%} .w94{width:94%} .w95{width:95%} .w96{width:96%} .w97{width:97%} .w98{width:98%} .w99{width:99%}
.w100{width:100%} 

/* Stagger for the showcase strip, which used to be an inline --i. */
.si-0{--i:0} .si-1{--i:1} .si-2{--i:2} .si-3{--i:3} .si-4{--i:4} .si-5{--i:5} .si-6{--i:6} .si-7{--i:7}

