/* ---- 00-base.css ---- */
/* ==========================================================================
   Women Development Baltistan — site styles
   Tokens come from the WDB brand book (colour.md, typography.md) and the
   Figma file "WDB — Brand Identity" (Website pages). Desktop is designed at
   1440 px, mobile at 390 px; sizes in between scale fluidly.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL; licences in /fonts) ---------- */
@font-face {
  font-family: "Besley";
  src: url("/fonts/besley-roman.woff2") format("woff2"), url("/fonts/besley-roman.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Besley";
  src: url("/fonts/besley-italic.woff2") format("woff2"), url("/fonts/besley-italic.woff") format("woff");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-roman.woff2") format("woff2"), url("/fonts/figtree-roman.woff") format("woff");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Colour (locked palette) */
  --glacier: #ecedef;          /* ground — white is never a background */
  --indigo: #2a3550;           /* Skardu Indigo */
  --terracotta: #b5674a;       /* fields, display ≥ 24 px, buttons */
  --terracotta-deep: #8a4630;  /* small accent text on light grounds */
  --terracotta-light: #e3a98c; /* small accent text on dark grounds */
  --river-stone: #8c7f70;      /* rules only */
  --rule: rgba(140, 127, 112, 0.5);
  --rule-on-dark: rgba(255, 255, 255, 0.28);
  --white: #ffffff;

  /* Type families */
  --serif: "Besley", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Fluid type: mobile (390 px) → desktop (1440 px) */
  --fs-kicker: clamp(12px, 11.63px + 0.095vw, 13px);
  --fs-h1: clamp(38px, 31.31px + 1.714vw, 56px);
  --fs-h2: clamp(30px, 24.8px + 1.333vw, 44px);
  --fs-h3: 26px;
  --fs-body-l: clamp(17px, 15.89px + 0.286vw, 20px);
  --lh-body-l: 1.5;
  --fs-body: 17px;
  --fs-caption: 14px;
  --fs-quote: clamp(22px, 19.03px + 0.762vw, 30px);
  --fs-quote-s: 22px;
  --fs-stat: clamp(40px, 37.03px + 0.762vw, 48px);
  --fs-link: 17px;
  --fs-button: 19px;

  /* Layout */
  --content: 1200px;
  --gutter: clamp(24px, -12px + 9.17vw, 120px);
  --section-y: clamp(64px, 46.17px + 4.571vw, 112px);
  --radius: 3px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--glacier);
  color: var(--indigo);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, h4, p, blockquote, figure, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--terracotta-light); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--indigo); color: var(--white);
  padding: 12px 18px; font-weight: 700; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--rule { border-top: 1px solid var(--rule); }
.section--rule-solid { border-top: 1px solid var(--river-stone); }
.bg-glacier { background: var(--glacier); }
.bg-indigo { background: var(--indigo); color: var(--white); }
.bg-terracotta { background: var(--terracotta); color: var(--white); }
.stack > * + * { margin-top: var(--stack, 18px); }

/* ---------- Type ---------- */
.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--fs-kicker);
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}
.on-dark .kicker, .kicker--light { color: var(--terracotta-light); }
.h1, .h2, .h3 { font-family: var(--serif); line-height: 1.2; text-wrap: pretty; }
.h1 { font-size: var(--fs-h1); font-weight: 700; }
.h2 { font-size: var(--fs-h2); font-weight: 700; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.22; }
.lede { font-size: var(--fs-body-l); line-height: var(--lh-body-l); }
@media (max-width: 760px) { .lede { line-height: 1.6; } }
.body { font-size: var(--fs-body); line-height: 1.6; }
.caption { font-size: var(--fs-caption); line-height: 1.5; }
.quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: var(--fs-quote); line-height: 1.32;
}
.quote--s { font-size: var(--fs-quote-s); line-height: 1.36; }
.stat-num {
  font-family: var(--serif); font-weight: 700;
  font-size: var(--fs-stat); line-height: 1.2;
  font-variant-numeric: lining-nums;
}
.measure { max-width: 760px; }
.text-terracotta { color: var(--terracotta); }
.text-deep { color: var(--terracotta-deep); }

/* Arrow link: "Read their stories  →" */
.arrow-link {
  display: inline;
  font-weight: 600; font-size: var(--fs-link); line-height: 1.4;
  color: var(--terracotta-deep); text-decoration: none;
}
.arrow-link::after { content: "\00a0\00a0→"; display: inline-block; white-space: pre; transition: transform 0.15s ease; }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.arrow-link:hover::after { transform: translateX(3px); }
.on-dark .arrow-link { color: var(--terracotta-light); }
.arrow-link--white, .on-dark .arrow-link--white { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 16px 28px;
  background: var(--terracotta); color: var(--white);
  font-family: var(--sans); font-weight: 700; font-size: var(--fs-button); line-height: 1.2;
  border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--terracotta-deep); }
.btn--nav { padding: 13px 22px; }
@media (max-width: 760px) { .btn { padding: 14px 24px; } }

/* ---------- Motifs ---------- */
/* Border C · Link: open flat-top hexagons joined by a bar (provisional motif). */
.border-c {
  height: 30px;
  background-color: var(--glacier);
  background-image: url("/img/motif/border-c.svg");
  background-repeat: repeat-x;
  background-position: -13.333px 0;
  background-size: 80px 30px;
}
.quatrefoil { flex: none; }

/* ---------- Photos ---------- */
.photo { position: relative; overflow: hidden; background: #d9d6d0; }
.photo > picture, .photo img { width: 100%; height: 100%; }
.photo img { object-fit: cover; }
.photo-caption {
  margin-top: 10px; font-size: var(--fs-caption); line-height: 1.5;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: relative; z-index: 20;
  background: var(--glacier);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 22px;
}
.lockup {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 10px; margin: -10px;
  text-decoration: none; color: var(--indigo);
}
.lockup__mark { width: 41px; height: 41px; }
.lockup__name {
  font-family: var(--serif); font-weight: 600; font-size: 13.4px; line-height: 1.115;
}
.lockup--light { color: var(--white); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav__links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-weight: 500; font-size: 16px; line-height: 1.2; text-decoration: none;
  padding-block: 8px; border-bottom: 2px solid transparent;
}
.nav__links a:hover { border-bottom-color: var(--rule); }
.nav__links a[aria-current="page"] { border-bottom-color: var(--terracotta); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 24px; height: 2.5px; background: var(--indigo);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7.5px; }
.nav-toggle__bars::after { top: 7.5px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .site-header__inner { padding-block: 22px; }
  .lockup__mark { width: 32px; height: 32px; }
  .lockup { gap: 10px; }
  .lockup__name { font-size: 10.4px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--glacier);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 28px;
    box-shadow: 0 18px 30px -24px rgba(42, 53, 80, 0.5);
  }
  .js .nav-open .nav { display: flex; }
  .no-js .nav-toggle { display: none; }
  .no-js .nav { display: flex; position: static; box-shadow: none; border: 0; padding: 0; }
  .no-js .site-header__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a {
    display: block; padding-block: 16px; font-size: 19px;
    border-bottom: 1px solid var(--rule);
  }
  .nav__links a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--terracotta-deep); }
  .nav .btn { margin-top: 24px; align-self: flex-start; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--indigo); color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-block: 56px 48px;
}
.site-footer__top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 0; padding: 0; }
.site-footer__links a { font-weight: 500; font-size: 16px; line-height: 1.2; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer__fine { margin-top: 32px; display: grid; gap: 10px; font-size: var(--fs-caption); line-height: 1.5; }
.site-footer__fine a { text-underline-offset: 0.15em; }
@media (max-width: 760px) {
  .site-footer__top { flex-direction: column; align-items: flex-start; }
  .site-footer__links { gap: 12px 20px; }
}

/* Contact form */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--indigo);
  background: var(--glacier); border: 1px solid var(--river-stone); border-radius: var(--radius);
  padding: 12px 14px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--terracotta); outline-offset: 0; border-color: var(--indigo); }
.form__note { font-size: var(--fs-caption); }
.form__status { font-weight: 600; }

/* ---- 15-v2.css ---- */
/* ==========================================================================
   v2 system (2026-10-23) — see DESIGN.md
   Five sizes, far apart. Terracotta only as whole fields. No labels above
   headings, no hairlines outside tables and forms, no outlined boxes.
   Loaded after 00-base.css, so these rules win where they overlap.
   ========================================================================== */

:root {
  /* Five type sizes: mobile (390 px) → desktop (1440 px) */
  --fs-display: clamp(52px, 32.69px + 4.952vw, 104px);
  --fs-title: clamp(36px, 28.57px + 1.905vw, 56px);
  --fs-heading: clamp(24px, 21.03px + 0.762vw, 32px);
  --fs-text: clamp(17px, 16.63px + 0.095vw, 18px);
  --fs-small: 14px;

  /* Motion tokens (brand motion.md) */
  --wdb-dur-instant: 100ms;
  --wdb-dur-quick: 200ms;
  --wdb-dur-base: 300ms;
  --wdb-dur-slow: 600ms;
  --wdb-dur-takeover: 900ms;
  --wdb-stagger: 80ms;
  --wdb-rise: 8px;
  --wdb-ease-settle: cubic-bezier(0.33, 1, 0.68, 1);
  --wdb-ease-carry: cubic-bezier(0.65, 0, 0.35, 1);
  --wdb-ease-exit: cubic-bezier(0.32, 0, 0.67, 0);
}
@media (prefers-reduced-motion: reduce) {
  :root { --wdb-dur-quick: 0ms; --wdb-dur-base: 150ms; --wdb-dur-slow: 0ms; --wdb-dur-takeover: 0ms; --wdb-rise: 0px; --wdb-stagger: 0ms; }
}

/* ---------- Type ---------- */
.display, .title, .heading { font-family: var(--serif); text-wrap: balance; }
.display { font-size: var(--fs-display); font-weight: 700; line-height: 1; letter-spacing: -0.015em; }
.title { font-size: var(--fs-title); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.heading { font-size: var(--fs-heading); font-weight: 600; line-height: 1.2; }
.body-text { font-size: var(--fs-text); line-height: 1.6; max-width: 36em; }
.small { font-size: var(--fs-small); line-height: 1.5; }
.testimony { font-style: italic; font-weight: 400; }
.text-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; font-weight: 600; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons: Indigo on light, Glacier on Indigo (D2) ---------- */
.btn {
  background: var(--indigo); color: var(--white);
  border-radius: 0; font-size: var(--fs-text);
  transition: background-color var(--wdb-dur-instant) var(--wdb-ease-settle);
}
.btn:hover { background: #1d2539; }
.on-dark .btn { background: var(--glacier); color: var(--indigo); }
.on-dark .btn:hover { background: var(--white); }
.btn--on-terracotta, .on-dark .btn--on-terracotta { background: var(--indigo); color: var(--white); }
.btn--on-terracotta:hover, .on-dark .btn--on-terracotta:hover { background: #1d2539; }

/* ---------- Header: no line; three-line lockup; hides on scroll ---------- */
.site-header {
  position: sticky; top: 0;
  border-bottom: 0;
  transition: transform var(--wdb-dur-quick) var(--wdb-ease-settle);
}
.site-header.is-hidden { transform: translateY(-100%); transition-timing-function: var(--wdb-ease-exit); }
.site-header__inner { padding-block: 20px; }
.lockup { gap: 0; }
.lockup__img { height: 52px; width: auto; }
.site-footer .lockup__img { height: 48px; }
@media (max-width: 960px) { .lockup__img { height: 44px; } }
.site-header--dark { background: var(--indigo); color: var(--white); }
.site-header--dark .nav-toggle__bars,
.site-header--dark .nav-toggle__bars::before,
.site-header--dark .nav-toggle__bars::after { background: var(--white); }
.nav-open .nav-toggle__bars { background: transparent !important; }
.site-header--dark .nav__links a:hover { border-bottom-color: rgba(255, 255, 255, 0.5); }
.site-header--dark .nav__links a[aria-current="page"] { border-bottom-color: var(--terracotta-light); }
.nav__links a[aria-current="page"] { border-bottom-color: var(--indigo); }
@media (max-width: 960px) {
  .nav { border-bottom: 0; box-shadow: none; }
  .site-header--dark .nav { background: var(--indigo); }
  .nav__links a { border-bottom: 0; }
}
.site-footer { border-top: 0; }

/* ---------- Photos set inside a line of type ---------- */
.inset {
  display: inline-block; vertical-align: -0.05em;
  width: 1.3em; height: 0.76em; margin-inline: 0.06em;
  overflow: hidden; background: #d9d6d0;
}
.inset picture, .inset img { width: 100%; height: 100%; }
.inset img { object-fit: cover; }

/* ==========================================================================
   Home v2
   ========================================================================== */

/* 1 · Hero: the line on Indigo, the photo full-bleed beneath it. No wash. */
.v2-hero { background: var(--indigo); color: var(--white); }
.v2-hero__text {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: 24px 64px; padding-block: clamp(40px, 20px + 5vw, 96px) clamp(36px, 24px + 3vw, 64px);
}
.v2-hero__aside { display: grid; gap: 24px; justify-items: start; max-width: 380px; padding-bottom: 0.4em; }
.v2-hero__photo { height: clamp(360px, 52vw, 720px); }
.v2-hero__photo img { object-position: 60% 40%; }
@media (max-width: 900px) {
  .v2-hero__text { grid-template-columns: 1fr; }
  .v2-hero__aside { max-width: none; padding-bottom: 0; }
}
@media (max-width: 760px) {
  .v2-hero__photo { height: 420px; }
  .v2-hero__photo img { object-position: 30% 50%; }
}

/* 2 · The statement */
.v2-statement { padding-block: clamp(80px, 40px + 10vw, 176px) clamp(64px, 40px + 6vw, 128px); }
.display--statement { max-width: 15em; }
.v2-statement__more {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px;
  margin-top: clamp(32px, 24px + 2vw, 56px); margin-left: auto; max-width: 640px;
}

/* 3 · Numbers: one big Terracotta field, two Indigo */
.v2-numbers { padding-bottom: clamp(80px, 40px + 8vw, 160px); }
.tiles {
  display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto;
  gap: clamp(12px, 8px + 1vw, 20px);
}
.tile { color: var(--white); padding: clamp(28px, 16px + 3vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.tile--big { grid-row: span 2; min-height: clamp(320px, 200px + 25vw, 560px); }
.tile--terracotta { background: var(--terracotta); }
.tile--indigo { background: var(--indigo); }
.tile__num { font-variant-numeric: lining-nums; }
.tile .body-text { font-weight: 500; }
/* White on Terracotta passes only at 24 px+ (colour.md §3): the big tile's label is set at Heading size. */
.tile--terracotta .tile__label { font-family: var(--serif); font-size: var(--fs-heading); font-weight: 600; line-height: 1.2; }
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; }
  .tile--big { grid-row: auto; min-height: 280px; }
}

/* 4 · Our work: names in large type, one sentence each */
.v2-work { padding-block: clamp(80px, 40px + 8vw, 160px); background: var(--glacier); }
.v2-work__head {
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px 96px; align-items: end;
}
.v2-work__intro { display: grid; gap: 24px; }
.v2-work__photo { aspect-ratio: 649 / 433; }
.v2-work__figure .photo-caption { font-size: var(--fs-small); }
.programme-list { margin-top: clamp(56px, 40px + 4vw, 104px); display: grid; gap: clamp(36px, 28px + 2vw, 56px); }
.programme {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 12px 64px; align-items: baseline;
}
.programme__name { font-size: var(--fs-title); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.programme__name a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; text-decoration-color: transparent; transition: text-decoration-color var(--wdb-dur-instant) var(--wdb-ease-settle); }
.programme__name a:hover, .programme__name a:focus-visible { text-decoration-color: currentColor; }
@media (max-width: 900px) {
  .v2-work__head { grid-template-columns: 1fr; }
  .v2-work__figure { max-width: 420px; }
  .programme { grid-template-columns: 1fr; }
}

/* 5 · One woman's story, full width on Indigo */
.v2-story { background: var(--indigo); color: var(--white); padding-block: clamp(80px, 40px + 9vw, 176px); }
.v2-story__quote { margin: 0; }
.v2-story__quote blockquote { margin: 0; max-width: 21em; font-size: var(--fs-title); }
.v2-story__quote .testimony { font-size: 1em; line-height: 1.15; }
.v2-story__quote figcaption { margin-top: 24px; color: var(--terracotta-light); font-weight: 600; }
.v2-story__more { margin-top: clamp(40px, 32px + 2vw, 64px); margin-left: auto; max-width: 560px; display: grid; gap: 16px; }

/* 6 · Partner with us: the hexagon takeover (motion.md §7) */
.takeover {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--terracotta); color: var(--white); text-align: center;
  padding-block: clamp(96px, 60px + 9vw, 192px);
}
.takeover__hex {
  position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 120px; height: 138.56px; margin: -69.28px 0 0 -60px;
  background: var(--terracotta);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transform: scale(var(--cover, 30));
  transition: transform var(--wdb-dur-takeover) var(--wdb-ease-carry);
}
.takeover__inner { display: grid; justify-items: center; gap: 32px; }
.takeover__inner .heading { max-width: 26em; }
.takeover__inner > * { transition: opacity var(--wdb-dur-base) var(--wdb-ease-settle) calc(var(--wdb-dur-takeover) * 0.6); }
/* Closed (only set by script, only when the section starts below the fold): */
.takeover.is-closed { background: var(--glacier); }
.takeover.is-closed .takeover__hex { transform: scale(1); }
.takeover.is-closed .takeover__inner > * { opacity: 0; transition: none; }
.takeover.is-opening { background: var(--glacier); }

/* ---------- Entrances (only where something arrives; script-only) ---------- */
.js [data-reveal].is-pending > *,
.js [data-reveal].is-pending .inset { opacity: 0; transform: translateY(var(--wdb-rise)); }
.js [data-reveal] > *,
.js [data-reveal] .inset {
  transition: opacity var(--wdb-dur-base) var(--wdb-ease-settle), transform var(--wdb-dur-base) var(--wdb-ease-settle);
  transition-delay: calc(var(--i, 0) * var(--wdb-stagger));
}
/* Inset photos fade in after their line is in place */
.js .display--statement[data-reveal] .inset { transition-delay: calc(var(--wdb-dur-base) + var(--i, 0) * var(--wdb-stagger)); }

/* Footer: readable sizes and line length */
.site-footer .kicker { font-size: var(--fs-small); }
.site-footer__fine { max-width: 75ch; }

/* ---- 20-pages.css ---- */
/* ==========================================================================
   Inner pages, v2 (2026-10-23) — see DESIGN.md
   Sections change by space or by ground (Glacier → Indigo → Terracotta).
   Hairlines only in real tables (partners, milestones, facts) and form fields.
   ========================================================================== */

.v2-section { padding-block: clamp(72px, 40px + 7vw, 144px); }
.v2-section--short { padding-block: clamp(48px, 32px + 4vw, 88px); }
.v2-section--flush { padding-block: 0; }
.v2-section--tint { } /* same Glacier ground: separated by space only */
.bg-indigo { background: var(--indigo); color: var(--white); }

.v2-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 28px + 3vw, 72px); }
.plain-link { text-decoration: none; }
.plain-link:hover, .plain-link:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.crumb { margin-bottom: 16px; }
.crumb a { color: var(--terracotta-light); text-underline-offset: 0.2em; }

/* Hero on inner pages */
.v2-hero--page .v2-hero__text { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.v2-hero--page .v2-hero__text > :first-child { grid-column: 1 / -1; }
.v2-hero--page .v2-hero__aside { grid-column: 2; max-width: 560px; gap: 20px; padding-bottom: 0; }
@media (max-width: 900px) { .v2-hero--page .v2-hero__text { grid-template-columns: 1fr; } .v2-hero--page .v2-hero__aside { grid-column: 1; } }
.v2-hero__photo--page { height: clamp(260px, 34vw, 520px); }

/* Testimony: Besley italic in terracotta (brand typography), her name in Small */
.testimony-block { margin: 0; }
.testimony-block blockquote, .st-story__quote { margin: 0; }
.testimony { color: var(--terracotta-deep); }
.on-dark .testimony { color: var(--terracotta-light); }
.testimony-block figcaption { margin-top: 16px; font-weight: 600; }

/* Number tiles, any count: the first spans the rows the others need */
.tiles--2 { grid-template-columns: 7fr 5fr; }
.tiles--2 .tile--big { grid-row: auto; }
.tiles--4 { grid-template-rows: repeat(3, auto); }
.tiles--4 .tile--big { grid-row: span 3; }
@media (max-width: 760px) {
  .tiles--2 { grid-template-columns: 1fr; }
  .tiles--4 .tile--big { grid-row: auto; }
}

/* A list in large type (Home's programme list uses the same shape) */
.big-list { display: grid; gap: clamp(36px, 28px + 2vw, 56px); }
.big-list__item { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 12px 64px; align-items: baseline; }
.big-list__text { display: grid; gap: 12px; }
.big-list--compact { gap: clamp(24px, 20px + 1vw, 36px); }
.big-list__name a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; text-decoration-color: transparent; transition: text-decoration-color var(--wdb-dur-instant) var(--wdb-ease-settle); }
.big-list__name a:hover, .big-list__name a:focus-visible { text-decoration-color: currentColor; }
@media (max-width: 900px) { .big-list__item { grid-template-columns: 1fr; } }

/* Columns of Heading + text, unboxed */
.v2-cols { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 48px 40px; }
.v2-cols > li { display: grid; gap: 12px; align-content: start; }
@media (max-width: 1100px) { .v2-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .v2-cols { grid-template-columns: 1fr; gap: 36px; } }

/* Year-by-year: a real table, so hairlines are allowed */
.milestones { list-style: none; margin: 0; padding: 0; }
.milestone { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 40px; padding-block: 20px; border-top: 1px solid var(--rule); align-items: baseline; }
.milestone:last-child { border-bottom: 1px solid var(--rule); }
.milestone__year { white-space: nowrap; }
@media (max-width: 680px) { .milestone { grid-template-columns: 1fr; } }

/* WDB's own field photos */
.field-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 600px)); gap: 40px; }
.field-photos__photo { aspect-ratio: 3 / 2; }
@media (max-width: 760px) { .field-photos { grid-template-columns: 1fr; } }

/* Stories on programme pages */
.story-quotes { display: grid; gap: 56px; max-width: 900px; }
.story-quotes--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 56px 80px; }
.story-quotes > li { display: grid; gap: 16px; align-content: start; }
@media (max-width: 900px) { .story-quotes--multi { grid-template-columns: 1fr; } }

.comes-next { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px 64px; align-items: baseline; }
.comes-next__text { font-weight: 400; }
.next-page { background: var(--glacier); }
.next-page__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; }
@media (max-width: 760px) { .comes-next { grid-template-columns: 1fr; } }

/* Why it matters (programme pages) */
.why { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 96px; align-items: start; }
.why__text { display: grid; gap: 24px; }
.why__quote { padding-top: 0.6em; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }

/* Our work: one row per programme, photo and text side by side */
.prog-rows { list-style: none; margin: 0; padding: 0; }
.prog-row { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(420px, 40vw, 600px); }
.prog-row--flip .prog-row__photo { order: 2; }
.prog-row__text {
  display: grid; gap: 20px; align-content: center;
  padding: clamp(40px, 24px + 4vw, 96px) var(--gutter);
  max-width: 680px;
}
.prog-row__photo { min-height: 320px; }
@media (max-width: 760px) {
  .prog-row { grid-template-columns: 1fr; min-height: 0; }
  .prog-row--flip .prog-row__photo { order: 0; }
  .prog-row__photo { height: 280px; min-height: 0; }
  .prog-row__text { padding: 40px var(--gutter) 64px; }
}

/* About */
.about-story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px 96px; align-items: start; }
.about-story__text { display: grid; gap: 22px; }
.about-story__text .title { margin-bottom: 12px; }
.founders { display: grid; gap: 24px; }
.founders__list { display: grid; gap: 14px; }
.founders__figure { margin-top: 16px; }
.founders__photo { aspect-ratio: 658 / 467; max-width: 400px; }
@media (max-width: 900px) { .about-story { grid-template-columns: 1fr; } }
.about-mv { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 80px; }
.about-mv > div { display: grid; gap: 20px; align-content: start; }
.about-mv h2 { color: var(--terracotta-light); }
.statement-text { font-size: var(--fs-text); }
@media (max-width: 900px) { .about-mv { grid-template-columns: 1fr; } }
.about-gov { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px 96px; align-items: start; }
@media (max-width: 900px) { .about-gov { grid-template-columns: 1fr; } }

/* Facts (a definition table: hairlines allowed) */
.facts { margin: 0; }
.facts__row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 6px 32px; padding-block: 16px; border-top: 1px solid var(--rule); }
.facts__row:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 600; color: var(--terracotta-deep); padding-top: 3px; }
.facts dd { margin: 0; }
.facts a { text-underline-offset: 0.15em; }
@media (max-width: 600px) { .facts__row { grid-template-columns: 1fr; } }

/* Stories page */
.st-story__cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px 96px; align-items: start; }
.st-story__who { display: grid; gap: 16px; }
.st-story__meta { font-weight: 600; }
.st-story__quote { margin-top: 16px; }
.st-story__steps { margin: 0; display: grid; gap: 28px; padding-top: 0.4em; }
.st-story__steps > div { display: grid; gap: 6px; }
.st-story__steps dt { font-weight: 600; color: var(--terracotta-deep); }
.on-dark .st-story__steps dt { color: var(--terracotta-light); }
.st-story__steps dd { margin: 0; }
@media (max-width: 900px) { .st-story__cols { grid-template-columns: 1fr; } }

/* Partners */
.proof { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 96px; align-items: start; }
.proof > div { display: grid; gap: 20px; }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; } }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-text); line-height: 1.5; }
.table th, .table td { text-align: left; vertical-align: top; padding: 16px 24px 16px 0; border-top: 1px solid var(--rule); }
.table tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
.table thead th { font-size: var(--fs-small); font-weight: 600; color: var(--terracotta-deep); border-top: 0; padding-bottom: 12px; }
.table__year { font-family: var(--serif); font-weight: 600; white-space: nowrap; }
.table__partner { font-weight: 600; }
.table__programme { font-size: var(--fs-small); padding-top: 19px !important; }
@media (max-width: 760px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table th, .table td { display: block; }
  .table tr { padding-block: 16px; border-top: 1px solid var(--rule); }
  .table tbody tr:last-child { border-bottom: 1px solid var(--rule); }
  .table th, .table td, .table tbody tr:last-child > * { border: 0; padding: 2px 0; }
  .table__programme { padding-top: 2px !important; }
}
.logo-groups { display: grid; gap: 56px; }
.logo-group { display: grid; gap: 24px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 32px 40px; align-items: center; }
.logo-grid__item { display: flex; align-items: center; justify-content: flex-start; min-height: 80px; color: var(--indigo); text-decoration: none; }
.logo-grid__item img { max-width: 150px; max-height: 64px; width: auto; height: auto; }
.logo-grid__name { font-weight: 600; font-size: var(--fs-small); line-height: 1.35; max-width: 16ch; }
a.logo-grid__item:hover img { opacity: 0.8; }

/* Closing band (inner pages) */
.closing { background: var(--indigo); color: var(--white); padding-block: clamp(72px, 40px + 6vw, 128px); }
.closing__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: start; }
.closing__inner > div { display: grid; gap: 24px; justify-items: start; }
@media (max-width: 760px) { .closing__inner { grid-template-columns: 1fr; } }

/* Partner with us: contact */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px 96px; align-items: start; }
.contact__form { display: grid; gap: 32px; }
.contact__details { padding-top: 0.6em; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.takeover .title { max-width: 18em; }

/* Forms: a single Indigo line under each field */
.field label { font-weight: 600; font-size: var(--fs-small); }
.field input, .field textarea {
  font-size: var(--fs-text); background: transparent;
  border: 0; border-bottom: 1px solid var(--indigo); border-radius: 0; padding: 10px 0;
}
.field textarea { border: 1px solid var(--indigo); padding: 10px 12px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--indigo); outline-offset: 2px; }

/* Privacy, 404 */
.prose-col { display: grid; gap: 40px; max-width: 760px; }
.prose-block { display: grid; gap: 12px; }
.prose-block a { text-underline-offset: 0.15em; }
.nf-links { display: grid; gap: 12px; }

.photo-caption { max-width: 62ch; }
