/* GKA Geographic Solutions · landing page
   Built from Paper "GKA Design" → Round 2 · Map-led → EF-0 (fog screen), AI-0 (E · Survey Index), FI-0 (About).
   Type scale and rules: DESIGN-RULES.md (14 · 15 · 16 · 18 · 22 · 28 · 40 · 56; weights 400/500). */

/* Brand sans: Aileron (CC0, dotcolon.net), closest free match to the GKA brand's Akzidenz-Grotesk.
   Aileron has no 500 weight, so one Regular face serves 400 and 500 (rule 3: never 600+).
   "GKA Fallback" = FreeSans subset (GPL + font exception) for glyphs Aileron lacks: ǥ ʼ ̱ ḵ. */
@font-face { font-family: "Aileron"; src: url("../assets/fonts/aileron-400.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap;
  /* Aileron ships conflicting metrics (hhea 970 vs typo 770), so browsers placed caps at different heights. Pin them: caps centred in the line box. */
  ascent-override: 92%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: "GKA Fallback"; src: url("../assets/fonts/freesans-fallback.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  /* Type scale */
  --text-14: 14px; --text-15: 15px; --text-16: 16px; --text-18: 18px;
  --text-22: 22px; --text-28: 28px; --text-40: 40px; --text-56: 56px;
  --tracking-56: -0.025em; --tracking-40: -0.02em; --tracking-28: -0.015em; --tracking-18: -0.005em;
  --leading-56: 1.05; --leading-40: 1.1; --leading-28: 1.2; --leading-body: 1.6;

  /* E · Survey Index */
  --e-ground: #F1F2EF;
  --e-ink: #121412;
  --e-muted: #5C605B;
  --color-footer-stone: #E5E7DF;
  --color-footer-rule: #C3C8BD;
  --accent: #785201;          /* GKA ochre */

  /* Editorial ink and rule tokens */
  --a-ink: #1D2320;
  --a-muted: #4F5551;
  --a-rule: #D6D4CC;

  --font-sans: "Aileron", "GKA Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-a-heading: "Source Serif 4", Georgia, serif;
  --font-a-body: "Source Sans 3", system-ui, sans-serif;

  --margin: 12px;
  --section: 128px;
  --header-h: 80px;
  --page-inset: clamp(24px, 4.45vw, 64px);
  --grid-gap: 64px;
  --editorial-columns: minmax(0, 3fr) minmax(0, 5fr);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--e-ground);
  color: var(--e-ink);
  font-family: var(--font-sans);
  font-size: var(--text-16);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-14);
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0;
}

.skip {
  position: absolute; left: var(--page-inset); top: -60px; z-index: 100;
  background: var(--e-ink); color: var(--e-ground); padding: 8px 16px;
  font-size: var(--text-14); text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- One masthead · fog and paper (Paper U8-0 / UV-0) ---------- */
.site-header {
  --masthead-rule: rgb(255 255 255 / .45);
  position: fixed; z-index: 50; inset: 0 0 auto; height: var(--header-h);
  padding: 16px var(--page-inset) 0;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff;
}
.site-header::after {
  content: ""; position: absolute; inset: auto var(--page-inset) 0;
  border-bottom: 1px solid var(--masthead-rule); pointer-events: none;
}
.site-header.is-paper { --masthead-rule: var(--a-rule); background: var(--e-ground); color: var(--e-ink); }
.site-header__logo { position: relative; width: 62px; height: 44px; flex: none; -webkit-tap-highlight-color: transparent; }
.site-header__logo:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.site-header .logo { position: absolute; inset: 50% auto auto 0; transform: translateY(-50%); width: 100%; height: auto; }
.logo--dark, .is-paper .logo--light { visibility: hidden; }
.is-paper .logo--dark { visibility: visible; }
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  font-size: var(--text-14); font-weight: 500; line-height: 18px;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  display: flex; align-items: center; height: 52px; padding: 0 4px;
}
.site-nav a:last-child { padding-inline-end: 0; }
.site-nav a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 5px; }
.site-nav a:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
@media (prefers-reduced-transparency: reduce) {
  .site-header:not(.is-paper) { background: #121412; }
}

/* ---------- Fog → Yoho (Paper Z6-0): independent film drift and map reveal ---------- */
body { --fog-height: max(560px, 100vh); --fog-height: max(560px, 100svh); }
.fog {
  position: relative;
  height: var(--fog-height);
  background: #121412 url("../assets/video/bc-fog-poster-1920.jpg") center / cover no-repeat;
  color: var(--e-ground);
  overflow: hidden;
  transform: scale(var(--fog-scale, 1));
}
.fog__video {
  position: absolute; inset: -10% 0 auto; width: 100%; height: 120%; object-fit: cover;
  transform: translateY(var(--film-drift, 0px));
}
.fog__shade { position: absolute; inset: 0; background: rgb(10 14 11 / .38); }
.fog__content {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-direction: column;
  opacity: var(--fog-copy, 1);
}
.fog__content:focus-within { opacity: 1; }
.fog__caption {
  display: flex; justify-content: space-between; gap: 24px;
  margin-inline: var(--margin);
  padding: 12px var(--margin) 20px;
  border-top: 1px solid rgba(241, 242, 239, 0.4);
  font-family: var(--font-mono); font-size: var(--text-14); line-height: 1.4; text-transform: uppercase;
}
.fog__caption a { text-decoration: none; }
.fog__caption a:hover { text-decoration: underline; text-underline-offset: 4px; }

main { position: relative; background: var(--e-ground); }

/* Maps are in flow; only the image aperture animates. */
.maps { scroll-margin-top: calc(-1 * var(--header-h)); padding-bottom: 24px; }
.maps-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 112px var(--page-inset) 28px;
}
.maps-head__title {
  font-size: var(--text-40); font-weight: 400; letter-spacing: var(--tracking-40); line-height: var(--leading-40);
  text-wrap: balance;
}
.yoho-help { color: var(--e-muted); }

/* ---------- Headline + intro (white, on the fog) ---------- */
.headline {
  display: block;
  padding: 0 var(--margin) 40px;
  font-size: var(--text-56); letter-spacing: var(--tracking-56); line-height: var(--leading-56);
  text-transform: uppercase; text-wrap: balance;
}
/* One line (user, 2026-11-23); the old left/right split is archived in Git (8e5bb74 and earlier). */
.headline__a, .headline__b { display: inline; }
.intro__row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 0 var(--margin) 32px;
}
.intro__label { width: 240px; flex-shrink: 0; }
.intro__text { width: 588px; max-width: 100%; }

/* ---------- Yoho comparison ---------- */
.diptych {
  width: calc(100% - 2 * var(--page-inset));
}
.diptych__window { clip-path: var(--map-clip, none); overflow: hidden; }
.yoho-plate {
  display: grid; grid-template-columns: minmax(0, 224fr) minmax(0, 640fr) minmax(0, 224fr);
  align-items: start; column-gap: clamp(16px, 2.3vw, 32px); row-gap: 12px;
  max-width: 1152px; margin-inline: auto;
}
.yoho-plate .diptych__window { grid-column: 2; grid-row: 1; }
.yoho-legend { width: 100%; height: auto; }
.yoho-legend--left { grid-column: 1; grid-row: 1 / span 2; }
.yoho-legend--right { grid-column: 3; grid-row: 1 / span 2; }
.yoho-compare {
  --split: calc(100% / 3);
  position: relative; aspect-ratio: 1; overflow: hidden; touch-action: pan-y pinch-zoom;
  transform: scale(var(--map-scale, 1));
}
.yoho-compare:has(.yoho-control:not([hidden])) { cursor: ew-resize; }
.yoho-compare:has(.yoho-control:focus-visible) { outline: 2px solid var(--e-ink); outline-offset: -3px; }
.yoho-compare img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.yoho-landforms { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.yoho-divider { position: absolute; inset-block: 0; left: var(--split); width: 2px; background: var(--e-ground); pointer-events: none; }
.yoho-compare[data-endpoint] .yoho-divider { visibility: hidden; }
.yoho-control { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  .yoho-plate { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 552px; }
  .yoho-plate .diptych__window { grid-column: 1 / -1; grid-row: 1; }
  .yoho-legend { max-width: 224px; }
  .yoho-legend--left { grid-column: 1; grid-row: 3; }
  .yoho-legend--right { grid-column: 2; grid-row: 3; }
  .yoho-plate .diptych__caption { grid-column: 1 / -1; }
}
.diptych__caption {
  grid-column: 2; grid-row: 2; color: var(--e-muted);
  font-size: var(--text-14); line-height: var(--leading-body);
}
.diptych__label { display: grid; }
.diptych__label > :first-child { color: var(--e-ink); }

/* ---------- Services ---------- */
.services { padding: var(--section) var(--page-inset) 0; }
.services__heading { margin-bottom: 24px; }

.service {
  display: grid; grid-template-columns: var(--editorial-columns); column-gap: var(--grid-gap);
  padding: 28px 0 64px;
  border-top: 1px solid var(--e-ink);
}
.service:last-child { border-bottom: 1px solid var(--e-ink); }
.service__title { display: flex; gap: 24px; padding-right: 24px; }
.service__num { color: var(--e-muted); line-height: 2.4; }
.service h3 {
  max-width: 420px;
  font-size: var(--text-28); letter-spacing: var(--tracking-28); line-height: var(--leading-28);
}
.service__body { display: flex; flex-direction: column; gap: 28px; }
.service__body > p { max-width: 588px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tiles--one { grid-template-columns: 1fr; }
.tile { display: flex; flex-direction: column; gap: 10px; }
.tile img, .tile__placeholder { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tile__placeholder {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--e-muted); color: var(--e-muted);
}
.tile figcaption { display: flex; flex-direction: column; gap: 2px; font-size: var(--text-14); line-height: 1.4; }
.tile figcaption span + span { color: var(--e-muted); }
.tile__full { display: inline-flex; align-items: center; gap: 4px; width: fit-content; min-height: 24px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* licence attribution for third-party photos (CC BY needs author + licence + "cropped") */
.tile .credit { margin-top: 4px; font-size: var(--text-14); line-height: 1.4; /* rule 1: on-scale size */ color: var(--e-muted); }
.tile .credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* ---------- About (A's look) ---------- */
.about {
  --about-portrait-width: 352px;
  display: grid; align-items: start; gap: 48px var(--grid-gap);
  grid-template-columns: var(--about-portrait-width) minmax(0, 1fr);
  grid-template-areas: "portrait text" ". locator";
  padding: var(--section) var(--page-inset);
  color: var(--a-ink);
  font-family: var(--font-a-body);
}
.about__portrait { grid-area: portrait; width: var(--about-portrait-width); height: auto; aspect-ratio: 352 / 350; object-fit: cover; }
.about__text { grid-area: text; min-width: 0; max-width: 896px; display: flex; flex-direction: column; gap: 32px; }
.about__name { display: flex; flex-direction: column; gap: 8px; }
.about__name h2 {
  font-family: var(--font-a-heading); font-weight: 400;
  font-size: var(--text-40); letter-spacing: var(--tracking-40); line-height: var(--leading-40);
}
.about__role, .about__bio { font-size: var(--text-18); letter-spacing: var(--tracking-18); line-height: var(--leading-body); }
.about__role { color: var(--a-muted); }
.about__bio { max-width: 688px; }
.about__facts { border-top: 1px solid var(--a-rule); }
.about__facts > div { display: flex; gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--a-rule); font-size: var(--text-15); line-height: var(--leading-body); }
.about__facts dt { flex: 0 0 200px; color: var(--a-muted); }
.about__facts dd { flex: 1 1 0; }

/* About buttons (Paper N4-0): 14px, one size below the 15px facts (rule 6); 44px tap height */
/* Contact lives here now (footer contact box removed as redundant): the invitation + the two buttons on one line */
.about__contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 8px; }
.about__email { flex: 1 0 100%; font-size: var(--text-15); color: var(--a-muted); }
.about__email-address { color: var(--a-ink); -webkit-user-select: text; user-select: text; cursor: text; }
.about__cta {
  font-family: var(--font-a-heading); font-weight: 400;
  font-size: var(--text-22); letter-spacing: var(--tracking-22, -0.01em); line-height: 1.3; text-wrap: balance;
}
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font-family: var(--font-a-body); font-size: var(--text-14); font-weight: 500;
  letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--a-ink);
  transition: background-color .2s ease, color .2s ease;
}
.btn--solid { background: var(--a-ink); color: var(--e-ground); }
.btn--solid:hover { background: transparent; color: var(--a-ink); }
.btn--linkedin {
  --color-linkedin: #0A66C2;
  background: transparent;
  color: var(--color-linkedin);
  border-color: var(--color-linkedin);
}
.btn--linkedin:hover { background: var(--color-linkedin); color: #fff; }
.btn--linkedin:focus-visible { outline-color: var(--color-linkedin); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Approved map plate (Paper NL-0). Beside the bio when there's room, below it otherwise. */
.about-locator {
  grid-area: locator; align-self: start; display: grid; gap: 16px; width: min(100%, 416px); min-width: 0;
}
.about-locator figcaption {
  font-family: var(--font-a-heading); font-size: var(--text-22); letter-spacing: -0.01em; line-height: 1.3;
}
.about-locator__map { position: relative; }
.about-locator__map img { width: 100%; height: auto; }
.about-locator__pin {
  --hit-x: 0px;
  position: absolute; top: var(--pin-y); left: var(--pin-x); transform: translate(calc(-50% + var(--hit-x)), -50%);
  appearance: none; border: 0; padding: 0; background: transparent; border-radius: 50%;
  width: 24px; height: 24px; cursor: pointer; color: var(--accent); touch-action: manipulation;
}
.about-locator__pin:disabled { cursor: default; opacity: 1; }
.about-locator__pin::before, .about-locator__pin[data-current]::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; transform: translate(calc(-50% - var(--hit-x)), -50%); border-radius: 50%;
}
.about-locator__pin::before { width: 8px; height: 8px; background: currentColor; box-shadow: 0 0 0 1px var(--e-ground); }
.about-locator__pin[data-current]::after { width: 18px; height: 18px; border: 1px solid currentColor; }
.about-locator__pin:focus-visible { z-index: 1; outline-offset: 1px; }
.about-locator__readout { display: grid; justify-items: start; gap: 4px; text-align: left; }
.about-locator__region { font-size: var(--text-16); color: var(--accent); }
.about-locator__project { font-size: var(--text-15); min-height: 3.2em; text-wrap: pretty; }
.about-locator__project-link {
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}
/* Locator beside the bio on laptop screens too (user, 2026-11-23): three columns from 1200px.
   Mid range uses the 280px portrait and a 48px gap so the bio keeps a readable measure;
   facts stack (label above value) while the text column is narrow. */
@media (min-width: 1200px) {
  .about {
    --about-portrait-width: 280px;
    column-gap: 48px;
    grid-template-columns: var(--about-portrait-width) minmax(0, 1fr) clamp(280px, 22vw, 416px);
    grid-template-areas: "portrait text locator";
  }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .about__facts > div { flex-direction: column; gap: 4px; }
  .about__facts dt { flex-basis: auto; }
}
@media (min-width: 1760px) {
  .about { --about-portrait-width: 352px; column-gap: var(--grid-gap); }
}

/* ---------- Footer · stone colophon (Paper 10V-0 / 11A-0) ---------- */
.footer {
  background: var(--color-footer-stone); color: var(--a-ink);
  padding: 56px var(--page-inset) 48px;
}
.footer__base {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  border-top: 1px solid var(--color-footer-rule);
  padding-top: 32px;
}
.footer__mark { width: 96px; height: auto; flex: none; }
.footer__identity { display: grid; gap: 4px; text-align: right; }
.footer__name {
  font: 400 var(--text-22)/var(--leading-22) var(--font-a-heading);
  letter-spacing: var(--tracking-22);
}
.footer__place { font: 400 var(--text-14)/20px var(--font-sans); color: var(--a-muted); }

/* ---------- Review mode (?review): outlines DRAFT copy for Gregory ---------- */
.review [data-draft] { outline: 1px dashed var(--accent); outline-offset: 4px; position: relative; }
.review [data-draft]::before {
  content: "Draft"; position: absolute; top: -22px; right: 0;
  font: 400 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .04em;
  background: var(--accent); color: #fff; padding: 3px 5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --grid-gap: 32px; }
  .about { --about-portrait-width: 280px; }
}

@media (max-width: 900px) {
  :root { --section: 80px; }
  .service { grid-template-columns: 1fr; row-gap: 20px; padding-bottom: 48px; }
  .service__title { padding-right: 0; }
  .about { grid-template-columns: minmax(0, 1fr); grid-template-areas: "portrait" "text" "locator"; gap: 40px; }

}

@media (max-width: 640px) {
  :root { --header-h: 64px; --page-inset: var(--margin); }
  .site-header { padding-top: 8px; }
  .site-header__logo { width: 54px; }
  .site-nav { gap: 0; }
  .site-nav a { height: 48px; padding-inline: clamp(2px, calc((100vw - 320px) / 12), 12px); }
  .headline { font-size: var(--text-40); letter-spacing: var(--tracking-40); line-height: var(--leading-40); padding-bottom: 32px; }
  .intro__row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .intro__label { width: auto; }
  .fog__caption { flex-direction: column; gap: 4px; }
  .fog__caption { flex-direction: row; }
  .fog__caption span { max-width: 70%; }
  .service h3 { font-size: var(--text-22); letter-spacing: -0.01em; line-height: 1.3; }
  .service__num { line-height: 1.3; padding-top: 3px; }
  .tiles { grid-template-columns: 1fr; }
  .about__portrait { flex-basis: auto; width: 100%; max-width: 352px; height: auto; aspect-ratio: 352 / 350; }
  .about__facts > div { flex-direction: column; gap: 4px; }
  .about__facts dt { flex-basis: auto; }
  .footer { padding-block: 40px 32px; }
  .footer__base { flex-direction: column; align-items: flex-start; padding-top: 24px; }
  .footer__mark { width: 88px; }
  .footer__identity { text-align: left; }
}

/* Maps is next on scroll; keep the four other links legible on phones. */
@media (max-width: 640px) {
  .site-nav a[href="#maps"] { display: none; }
}
@media (max-width: 380px) {
  .site-nav a { text-transform: none; }
  .site-header__logo { width: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fog, .yoho-compare { transform: none; }
  .fog__video { display: none; }
  .fog__content { opacity: 1; }
  .diptych__window { clip-path: none; }
}

/* Pull the fog copy and caption rule onto the masthead’s shared edges. */
.fog__content { inset-inline: var(--page-inset); }
.fog__content :is(.headline, .intro__row, .fog__caption) { padding-inline: 0; }
.fog__caption { margin-inline: 0; }
.fog__shade { box-shadow: inset 0 152px 72px -64px rgb(10 14 11 / .44); }

/* ---------- Projects, one page (Paper RR-0) ---------- */
.projects {
  display: grid; grid-template-columns: var(--editorial-columns); align-items: start; gap: var(--grid-gap);
  margin-inline: var(--page-inset); padding-block: 64px; border-bottom: 1px solid var(--a-rule);
}
.projects__head { display: grid; gap: 16px; align-content: start; }
.projects-heading, .services__heading {
  font-family: var(--font-a-heading); font-size: var(--text-40); font-weight: 400;
  letter-spacing: var(--tracking-40); line-height: var(--leading-40);
}
.projects__head p { max-width: 320px; font-size: var(--text-16); color: var(--e-muted); }
.projects__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--a-rule); }
.proj { border-bottom: 1px solid var(--a-rule); }
.proj__row {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) 12px; column-gap: 24px; align-items: start;
  padding-block: 16px; cursor: pointer; list-style: none;
}
.proj__row::-webkit-details-marker { display: none; }
.proj__row::marker { content: ""; }
.proj__row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.proj__year, .proj__meta { font-size: var(--text-15); color: var(--e-muted); }
.proj__year { font-variant-numeric: tabular-nums; padding-top: 4px; }
.proj__label { display: grid; gap: 4px; }
.proj__title {
  font-family: var(--font-a-heading); font-size: var(--text-22); font-weight: 400;
  letter-spacing: -0.01em; line-height: 1.3; text-wrap: pretty;
}
.proj__row:hover .proj__title, .proj__item[open] .proj__title { color: var(--accent); }
.proj__toggle { color: var(--accent); width: 12px; height: 12px; margin-top: 9px; position: relative; }
.proj__toggle::before, .proj__toggle::after {
  content: ""; position: absolute; inset: 5.5px 0 auto; height: 1px; background: currentColor;
}
.proj__toggle::after { transform: rotate(90deg); }
.proj__item[open] .proj__toggle::after { display: none; }
.proj__body { padding: 0 36px 16px 128px; }
.proj__body p { max-width: 544px; font-size: var(--text-16); line-height: var(--leading-body); }

@media (max-width: 900px) {
  .projects { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .projects { padding-block: 48px; }
  .proj__row { grid-template-columns: minmax(0, 1fr) 12px; grid-template-areas: "year toggle" "label label"; row-gap: 4px; }
  .proj__year { grid-area: year; padding-top: 0; }
  .proj__label { grid-area: label; }
  .proj__toggle { grid-area: toggle; margin-top: 4px; }
  .proj__body { padding: 0 0 16px; }
}
@media (max-width: 640px) {
  .maps-head { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 88px; }
  .maps-head__title { font-size: var(--text-40); letter-spacing: var(--tracking-40); line-height: var(--leading-40); }
  .maps { padding-bottom: 16px; }
}

/* Whole figures (e.g. the Guide 1 infographic) keep their own proportions: never cropped to 16:9 */
/* same column width as the 16:9 tiles above (one cell of the two-column grid) */
.tiles--one:has(.tile--figure) { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .tiles--one:has(.tile--figure) { grid-template-columns: 1fr; } }
.tile--figure img { aspect-ratio: 1600 / 1119; object-fit: contain; width: 100%; background: none; }
