/* ==========================================================================
   The Impact Advantage
   One stylesheet, shared by the English and French pages.
   Order: fonts, tokens, base, layout, header, hero, sections, forms, footer,
   utilities, responsive, reduced motion.
   ========================================================================== */

/* --- Fonts -------------------------------------------------------------- */
/* Self-hosted. Nothing is requested from Google Fonts or any CDN.
   Source Serif 4 carries the optical size axis on the latin subset, so H1 and
   H2 can use the display cut. The latin-ext file is weight only; browsers fetch
   it solely when a character in that range appears. */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-latin-opsz.woff2') format('woff2-variations');
  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: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-latin-ext-wght.woff2') format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/public-sans-latin-wght.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/public-sans-latin-ext-wght.woff2') format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Palette. Contrast figures are measured, not estimated. */
  --limestone:     #F2F3EF;   /* page background                            */
  --deep-sea:      #0E3A40;   /* text and the dark section    11.1:1 on bg  */
  --slate:         #51626A;   /* secondary text                5.7:1 on bg  */
  --seagrass:      #3F7A6B;   /* meridian, focus ring, rules                */
  --seagrass-ink:  #3B7365;   /* link text                     4.9:1 on bg  */
  --ochre:         #B8892F;   /* markers, button fill, highlights           */
  --ochre-hover:   #A2762A;
  --ochre-text:    #8A6420;   /* ochre as text                 4.8:1 on bg  */
  --deep-sea-ink:  #092A2E;   /* label on the ochre button   4.8:1 on ochre */
  --mist:          #D9E2DF;   /* borders, dividers, panels                  */
  --mist-dark:     #B9C8C3;   /* border where mist sits on mist             */
  --rule-ink:      #849390;   /* separators between list items  2.9:1 on bg  */
  --sage:          #9CC0B2;   /* accent inside the dark section 6.2:1       */
  --white:         #FFFFFF;   /* form fields only                           */
  --panel:         rgba(217, 226, 223, 0.42);

  /* Type */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'Public Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --fs--2: 0.8125rem;                                        /* 13px        */
  --fs--1: clamp(0.9375rem, 0.905rem + 0.14vw, 1rem);        /* 15 -> 16    */
  --fs-0:  clamp(1.0625rem, 1.03rem + 0.14vw, 1.125rem);     /* 17 -> 18    */
  --fs-1:  clamp(1.25rem,  1.15rem + 0.42vw, 1.4063rem);     /* 20 -> 22.5  */
  --fs-2:  clamp(1.5rem,   1.35rem + 0.65vw, 1.7578rem);     /* 24 -> 28    */
  --fs-3:  clamp(1.75rem,  1.47rem + 1.2vw,  2.1973rem);     /* 28 -> 35    */
  --fs-4:  clamp(2.25rem,  1.68rem + 2.45vw, 3.375rem);      /* 36 -> 54    */

  --measure:       57ch;   /* about 67 rendered characters */
  --measure-tight: 50ch;

  /* Space, on an eight pixel ladder */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;

  --gutter:  clamp(1.25rem, 0.7rem + 2.4vw, 3rem);
  --section: clamp(3rem, 1.6rem + 5.6vw, 6rem);
  --header-h: 5.5rem;
  --header-h-compact: 4rem;

  --radius: 4px;
  --rule: 1px solid var(--mist);
  --shadow-header: 0 1px 0 rgba(14, 58, 64, 0.10), 0 6px 18px -12px rgba(14, 58, 64, 0.45);
  --speed: 150ms;
}

/* --- Base --------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + var(--s-5));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--limestone);
  color: var(--deep-sea);
  font-family: var(--sans);
  font-size: var(--fs-0);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--deep-sea);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-4); line-height: 1.08; letter-spacing: -0.015em; font-variation-settings: 'opsz' 60; }
h2 { font-size: var(--fs-3); line-height: 1.16; letter-spacing: -0.01em; font-variation-settings: 'opsz' 32; }
h3 { font-size: var(--fs-2); line-height: 1.25; }
h4 { font-size: var(--fs-1); line-height: 1.3; }

p, ul, ol, dl { margin: 0 0 var(--s-4); }
p { max-width: var(--measure); }
p:last-child, ul:last-child, ol:last-child, dl:last-child { margin-bottom: 0; }

a {
  color: var(--seagrass-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  transition: color var(--speed), text-decoration-thickness var(--speed);
}
a:hover { color: var(--deep-sea); text-decoration-thickness: 2px; }

strong { font-weight: 600; }
img, svg { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--seagrass);
  outline-offset: 2px;
  border-radius: 1px;
}

::selection { background: var(--mist); color: var(--deep-sea); }

:lang(fr) { hyphens: auto; }

/* --- Layout ------------------------------------------------------------- */

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

.section { padding-block: var(--section); }
.section + .section > .container > .section-head { border-top: 0; }

.section-head { margin-bottom: var(--s-7); }
.section-head p { max-width: var(--measure-tight); font-size: var(--fs-1); color: var(--slate); line-height: 1.5; }

.lede { font-size: var(--fs-1); line-height: 1.5; color: var(--slate); max-width: var(--measure-tight); }
.note { font-size: var(--fs--1); color: var(--slate); }

.section-dark {
  background: var(--deep-sea);
  color: var(--limestone);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--limestone); }
.section-dark .lede, .section-dark .note, .section-dark .section-head p { color: var(--mist); }
.section-dark a { color: var(--sage); }
.section-dark a:hover { color: var(--limestone); }
.section-dark :focus-visible { outline-color: var(--ochre); }

.skip {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 100;
  transform: translateY(-200%);
  background: var(--deep-sea);
  color: var(--limestone);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { transform: translateY(0); color: var(--limestone); }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: var(--fs--1);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.85em 1.4em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed), border-color var(--speed), color var(--speed);
}
.btn-primary { background: var(--ochre); color: var(--deep-sea-ink); }
.btn-primary:hover { background: var(--ochre-hover); color: var(--deep-sea-ink); }

.btn-secondary {
  background: transparent;
  color: var(--deep-sea);
  border-color: var(--mist-dark);
}
.btn-secondary:hover { background: var(--mist); color: var(--deep-sea); border-color: var(--slate); }
.section-dark .btn-secondary { color: var(--limestone); border-color: var(--sage); }
.section-dark .btn-secondary:hover { background: rgba(242, 243, 239, 0.1); color: var(--limestone); }

/* A secondary action set as a text link, per the brief. No appended arrows. */
.link-action {
  font-weight: 600;
  font-size: var(--fs--1);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-6);
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--limestone);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--speed), border-color var(--speed);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
  border-bottom-color: var(--mist);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--header-h);
  transition: min-height 200ms;
}
.site-header.is-scrolled .header-inner { min-height: var(--header-h-compact); }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand picture { display: block; }
.brand img {
  display: block;
  width: auto;
  height: 3rem;
  transition: height 200ms;
}
.site-header.is-scrolled .brand img { height: 2.375rem; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--deep-sea);
  text-decoration: none;
  font-size: var(--fs--1);
  font-weight: 500;
  padding-block: var(--s-2);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--seagrass-ink); border-bottom-color: var(--seagrass); }

.header-actions { display: flex; align-items: center; gap: var(--s-4); flex: 0 0 auto; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  font-size: var(--fs--2);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lang-switch a { color: var(--slate); text-decoration: none; }
.lang-switch a:hover { color: var(--deep-sea); text-decoration: underline; }
.lang-switch [aria-current='true'] { color: var(--deep-sea); }
.lang-switch .sep { color: var(--rule-ink); }
.section-dark .lang-switch a, .site-footer .lang-switch a { color: var(--mist); }
.site-footer .lang-switch [aria-current='true'] { color: var(--limestone); }
.site-footer .lang-switch .sep { color: var(--slate); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--s-2);
  background: transparent;
  border: 1px solid var(--mist-dark);
  border-radius: var(--radius);
  color: var(--deep-sea);
  font: inherit;
  font-size: var(--fs--1);
  font-weight: 600;
  padding: 0.5em 0.9em;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--mist); }

/* --- Hero and meridian -------------------------------------------------- */

.hero { padding-block: clamp(2.5rem, 1rem + 6vw, 5.5rem) var(--s-6); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  gap: var(--s-8);
  align-items: start;
}
.hero h1 { margin-bottom: var(--s-5); max-width: 22ch; }
.hero .lede { font-size: var(--fs-1); max-width: 54ch; }

.meridian { justify-self: end; width: 100%; max-width: 15rem; }
.meridian svg { display: block; width: 100%; height: auto; }

.meridian .m-line {
  fill: none;
  stroke: var(--seagrass);
  stroke-width: 1.25;
}
.meridian .m-equator { fill: none; stroke: var(--mist-dark); stroke-width: 1; }
.meridian .m-marker { fill: var(--ochre); }
.meridian .m-city {
  fill: var(--slate);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
}
.meridian .m-lat {
  fill: var(--slate);
  font-family: var(--sans);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

/* The one automatic animation on the site: the line draws north to south and
   each place appears as the line reaches its latitude. */
.meridian .m-line {
  stroke-dasharray: var(--m-len, 460);
  stroke-dashoffset: var(--m-len, 460);
  animation: meridian-draw 1200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.meridian .m-place, .meridian .m-equator-group {
  opacity: 0;
  animation: meridian-place 320ms ease-out forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes meridian-draw { to { stroke-dashoffset: 0; } }
@keyframes meridian-place { to { opacity: 1; } }

/* --- Services ----------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s-8);
}
.service {
  padding-block: var(--s-6);
  border-top: var(--rule);
}
.service .mark, .service .tool-mark { margin-bottom: var(--s-5); }
.service:nth-child(even) {
  padding-left: var(--s-8);
  border-left: var(--rule);
  margin-left: calc(-1 * var(--s-8) / 2);
}
.service h3 { font-size: var(--fs-2); margin-bottom: var(--s-3); }
.service p { max-width: 46ch; color: var(--slate); }
.service .link-action { display: inline-block; margin-top: var(--s-4); }

/* --- Two ways to work --------------------------------------------------- */

.panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
  align-items: start;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--mist-dark);
  padding: var(--s-6);
}
.panel h3 { font-size: var(--fs-2); }
.panel p { max-width: 48ch; }
.panel-list { list-style: none; margin: var(--s-5) 0; padding: 0; }
.panel-list li {
  padding-block: var(--s-3);
  border-top: 1px solid var(--mist-dark);
  font-size: var(--fs--1);
}
.panel-list li:last-child { border-bottom: 1px solid var(--mist-dark); }

/* --- Review sequence ---------------------------------------------------- */

.stages {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
.stage { position: relative; padding-top: var(--s-6); }
.stage::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ochre);
}
.stage:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 11px;
  right: calc(-1 * var(--s-6));
  height: 1px;
  background: var(--seagrass);
}
.stage-num {
  display: block;
  font-family: var(--serif);
  font-size: var(--fs-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ochre-text);
  line-height: 1;
  margin-bottom: var(--s-3);
}
.stage h3 { font-size: var(--fs-1); margin-bottom: var(--s-2); }
.stage p { color: var(--slate); font-size: var(--fs--1); max-width: 40ch; }

.outcome {
  background: var(--panel);
  border-left: 3px solid var(--ochre);
  padding: var(--s-6);
  max-width: var(--measure);
}
.outcome h3 { font-size: var(--fs-2); margin-bottom: var(--s-3); }

/* --- Platform ----------------------------------------------------------- */

/* Six tool blocks on hairlines, not six shadowed cards. Each mark is a small
   diagram of what the tool measures, drawn in the same line language as the
   meridian, so nothing here reads as a stock icon set. */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--s-7);
  margin-bottom: var(--s-8);
}
.tool {
  padding-block: var(--s-6);
  border-top: var(--rule);
}
.tool h3 {
  font-family: var(--sans);
  font-size: var(--fs--1);
  font-weight: 600;
  letter-spacing: 0.005em;
  margin: 0 0 var(--s-2);
}
.tool p {
  font-size: var(--fs--1);
  color: var(--slate);
  max-width: 34ch;
  margin: 0;
}

/* Both class names are matched on purpose: the markup carries "mark tool-mark"
   so a browser still holding an older stylesheet renders correctly too. */
.mark, .tool-mark {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--s-4);
}
.mark .tm-stroke, .tool-mark .tm-stroke {
  fill: none;
  stroke: var(--seagrass);
  stroke-width: 1.4;
  stroke-linecap: square;
}
.mark .tm-fill, .tool-mark .tm-fill { fill: var(--ochre); }
.mark .tm-fill-stroke, .tool-mark .tm-fill-stroke {
  fill: none;
  stroke: var(--ochre);
  stroke-width: 1.8;
  stroke-linecap: square;
}

.platform-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}

.plain-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.plain-list li {
  padding-block: var(--s-3);
  padding-left: var(--s-5);
  border-top: var(--rule);
  position: relative;
}
.plain-list li:last-child { border-bottom: var(--rule); }
.plain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(var(--s-3) + 0.65em);
  width: 8px;
  height: 1px;
  background: var(--ochre);
}

.sub-head {
  font-family: var(--sans);
  font-size: var(--fs--1);
  font-weight: 600;
  color: var(--deep-sea);
  margin: 0 0 var(--s-3);
}
.tools-grid + .platform-foot .sub-head { margin-bottom: var(--s-4); }

/* --- Selected work ------------------------------------------------------ */

/* Reference entries, not a card grid. Each carries a short meridian showing the
   practice's countries with this project's highlighted, so "where" is drawn
   from real latitudes rather than illustrated. */
.work-entry {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: var(--s-7);
  padding-block: var(--s-7);
  border-top: var(--rule);
  align-items: start;
}
.work-entry:last-of-type { border-bottom: var(--rule); }
.work-entry h3 { font-size: var(--fs-1); margin: 0 0 var(--s-2); }
.work-body p { max-width: 58ch; }
.work-body p + p { margin-top: var(--s-4); }

.work-meta {
  font-size: var(--fs--2);
  color: var(--slate);
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.work-meta .sep { color: var(--rule-ink); padding-inline: var(--s-2); }

.work-visual {
  background: var(--panel);
  border: 1px solid var(--mist-dark);
  padding: var(--s-4) var(--s-3);
}
.work-map { display: block; width: 100%; height: auto; }
.work-map .wm-axis { stroke: var(--seagrass); stroke-width: 1.25; }
.work-map .wm-equator { stroke: var(--mist-dark); stroke-width: 1; }
/* Every panel carries the full footprint; this project's countries are the
   ochre ones. The muted marks give the highlight something to read against. */
.work-map text {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
}
.work-map .wm-on  circle { fill: var(--ochre); }
.work-map .wm-on  text   { fill: var(--deep-sea); font-weight: 600; }
.work-map .wm-off circle { fill: var(--slate); opacity: 0.3; }
.work-map .wm-off text   { fill: var(--slate); opacity: 0.42; }

.experience-strip {
  margin-top: var(--s-7);
  padding-block: var(--s-5);
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.experience-strip .caption {
  font-size: var(--fs--2);
  font-weight: 600;
  color: var(--slate);
  margin-bottom: var(--s-3);
}
.experience-strip .names {
  font-family: var(--serif);
  font-size: var(--fs-1);
  color: var(--deep-sea);
  margin: 0;
  max-width: none;
}
.experience-strip .names .sep { color: var(--rule-ink); }

/* --- Publications ------------------------------------------------------- */

.pub-list { margin: 0; padding: 0; list-style: none; }
.pub {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: var(--s-5);
  padding-block: var(--s-5);
  border-top: var(--rule);
}
.pub:last-child { border-bottom: var(--rule); }
.pub-meta {
  font-size: var(--fs--2);
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.pub-meta .pub-year { display: block; font-weight: 600; color: var(--deep-sea); font-size: var(--fs--1); }
.pub-meta .pub-type { display: block; }
.pub h3 { font-size: var(--fs-1); margin-bottom: var(--s-2); }
.pub h3 a { color: var(--deep-sea); text-decoration-color: var(--rule-ink); }
.pub h3 a:hover { color: var(--seagrass-ink); text-decoration-color: currentColor; }
.pub p { font-size: var(--fs--1); color: var(--slate); max-width: var(--measure); margin-bottom: var(--s-2); }
.pub .outlet { font-size: var(--fs--2); color: var(--slate); margin-bottom: 0; }

/* --- About -------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}
.portrait {
  margin: 0;
  width: 100%;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--mist);
}
.portrait picture { display: block; }
.about-name { font-size: var(--fs-2); margin-bottom: var(--s-1); }
.about-role { color: var(--slate); font-size: var(--fs--1); margin-bottom: var(--s-5); }

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: var(--s-5);
  row-gap: 0;
  margin: var(--s-6) 0 0;
  background: var(--panel);
  border: 1px solid var(--mist-dark);
  padding: var(--s-5) var(--s-6);
}
.facts dt {
  font-size: var(--fs--2);
  font-weight: 600;
  color: var(--slate);
  padding-block: var(--s-3);
  border-top: 1px solid var(--mist-dark);
}
.facts dd {
  margin: 0;
  font-size: var(--fs--1);
  padding-block: var(--s-3);
  border-top: 1px solid var(--mist-dark);
}
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }

/* --- Contact and forms -------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}
/* The intro stays beside the form while the form is being filled in. */
@media (min-width: 961px) {
  .contact-grid > :first-child {
    position: sticky;
    top: calc(var(--header-h-compact) + var(--s-6));
  }
}

.form-field { margin-bottom: var(--s-5); }
.form-field label {
  display: block;
  font-size: var(--fs--1);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.form-field .req { font-weight: 400; color: var(--mist); }
.form-field .opt { font-weight: 400; color: var(--mist); }

.form-field input[type='text'],
.form-field input[type='email'],
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--white);
  color: var(--deep-sea);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: var(--fs--1);
  line-height: 1.5;
  padding: 0.7em 0.8em;
  transition: border-color var(--speed), box-shadow var(--speed);
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%),
                    linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--sage); }
.form-field input[aria-invalid='true'],
.form-field select[aria-invalid='true'],
.form-field textarea[aria-invalid='true'] { border-color: var(--ochre); box-shadow: 0 0 0 1px var(--ochre); }

.field-error {
  display: none;
  font-size: var(--fs--2);
  color: var(--ochre);
  margin-top: var(--s-2);
  font-weight: 600;
}
.field-error.is-visible { display: block; }

.consent {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: var(--s-3);
  align-items: start;
  margin-bottom: var(--s-5);
}
.consent input[type='checkbox'] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.18rem 0 0;
  accent-color: var(--ochre);
}
.consent label { font-size: var(--fs--1); font-weight: 400; margin: 0; }

.form-status {
  font-size: var(--fs--1);
  font-weight: 600;
  margin-top: var(--s-4);
}
.form-status:empty { margin-top: 0; }
.form-status.is-error { color: var(--ochre); }

.form-note { font-size: var(--fs--2); color: var(--mist); margin-top: var(--s-3); }

.form-success {
  border: 1px solid var(--sage);
  border-left: 3px solid var(--ochre);
  padding: var(--s-6);
  font-size: var(--fs-1);
  font-family: var(--serif);
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--deep-sea);
  color: var(--mist);
  padding-block: var(--s-8) var(--s-6);
}
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--limestone); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--ochre); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(156, 192, 178, 0.28);
}
.footer-brand img { height: 4.5rem; width: auto; display: block; margin-bottom: var(--s-4); }
.footer-tagline { color: var(--sage); font-family: var(--serif); font-size: var(--fs--1); max-width: 28ch; }

.footer-grid h2 {
  font-family: var(--sans);
  font-size: var(--fs--2);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sage);
  margin-bottom: var(--s-4);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: var(--s-2); font-size: var(--fs--1); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-5);
  font-size: var(--fs--2);
  color: var(--sage);
}

/* --- Placeholders ------------------------------------------------------- */

.todo {
  display: inline-block;
  background: rgba(184, 137, 47, 0.16);
  border: 1px dashed var(--ochre);
  color: var(--ochre-text);
  font-family: var(--sans);
  font-size: 0.9375em;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.15em 0.5em;
  border-radius: 2px;
}
.section-dark .todo, .site-footer .todo { color: var(--ochre); background: rgba(184, 137, 47, 0.2); }
.todo-block { display: block; padding: var(--s-5); text-align: left; }

/* --- Utilities ---------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page-head { padding-block: var(--s-8) var(--s-7); }
.page-head h1 { max-width: 18ch; }
.prose h2 { font-size: var(--fs-2); margin-top: var(--s-7); }
.prose h3 { font-size: var(--fs-1); margin-top: var(--s-6); }
.prose p, .prose li { max-width: var(--measure); }
.prose ul, .prose ol { padding-left: var(--s-5); }
.prose li { margin-bottom: var(--s-2); }
.prose dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--s-5); }
.prose dt { font-weight: 600; color: var(--slate); font-size: var(--fs--1); padding-block: var(--s-2); border-top: var(--rule); }
.prose dd { margin: 0; font-size: var(--fs--1); padding-block: var(--s-2); border-top: var(--rule); }
.prose dt:first-of-type, .prose dt:first-of-type + dd { border-top: 0; }

.centered-narrow { max-width: 42rem; }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-inner { gap: var(--s-6); }
  .site-nav ul { gap: var(--s-4); }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    margin-left: 0;
    padding-bottom: var(--s-5);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-top: var(--rule); }
  .site-nav a { display: block; padding-block: var(--s-3); font-size: var(--fs-0); }
  .header-inner { flex-wrap: wrap; row-gap: 0; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .hero h1 { max-width: 20ch; }
  .meridian { justify-self: start; max-width: 14rem; }

  .about-grid, .contact-grid, .platform-foot { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .about-grid .portrait { max-width: 20rem; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
  .work-entry { grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s-6); }
  .panels { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .service:nth-child(even) { padding-left: 0; border-left: 0; margin-left: 0; }

  .stages { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage {
    padding: 0 0 var(--s-6) var(--s-6);
    border-left: 1px solid var(--seagrass);
  }
  .stage:last-child { border-left-color: transparent; padding-bottom: 0; }
  .stage::before { top: 0.35em; left: -6px; }
  .stage:not(:last-child)::after { display: none; }
  .stage-num { margin-bottom: var(--s-2); font-size: var(--fs-1); }

  .pub { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .pub-meta { display: flex; gap: var(--s-2); }
  .pub-meta .pub-year, .pub-meta .pub-type { display: inline; }
  .pub-meta .pub-type::before { content: '· '; color: var(--rule-ink); }

  .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .tool p { max-width: none; }

  /* The map moves above the text so the entry keeps a readable measure. */
  .work-entry { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .work-visual { max-width: 12rem; }

  .facts { grid-template-columns: minmax(0, 1fr); padding: var(--s-5); }
  .facts dd { border-top: 0; padding-top: 0; }
  .facts dt { padding-bottom: var(--s-1); }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .experience-strip .names { font-size: var(--fs-0); }
}

/* Below 600px the header keeps one row: the leaf mark stands in for the
   lockup, so the call button and the language switcher both stay in view. */
@media (max-width: 600px) {
  .header-inner { flex-wrap: nowrap; gap: var(--s-3); min-height: 4.25rem; }
  .site-header.is-scrolled .header-inner { min-height: 3.5rem; }
  .brand img { height: 2.5rem; }
  .site-header.is-scrolled .brand img { height: 2.125rem; }
  .header-actions { margin-left: auto; gap: var(--s-3); }
  .header-actions .btn { padding: 0.8em 1em; }
  .nav-toggle { padding: 0.55em 0.75em; }
  .site-nav { order: 4; flex-basis: 100%; }
}

@media (max-width: 420px) {
  .actions { gap: var(--s-4); }
  .actions .btn { width: 100%; }
  .header-actions { gap: var(--s-2); }
  .lang-switch { gap: var(--s-1); }
}

/* --- Reduced motion ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .meridian .m-line { stroke-dashoffset: 0; }
  .meridian .m-place, .meridian .m-equator-group { opacity: 1; }
}

@media print {
  .site-header, .nav-toggle, .skip, form { display: none; }
  body { background: #fff; color: #000; }
}
