/* ==========================================================================
   HDIP — Health, Development, Information and Policy Institute
   Neutral grey system with the official logo blue (#0E49A3) as the only hue.
   ========================================================================== */

:root {
  /* Neutral scale — no warmth anywhere */
  --g-50:  #FAFBFC;
  --g-100: #F2F4F6;
  --g-200: #E6E9ED;
  --g-300: #D3D8DE;
  --g-400: #A8B0BA;
  --g-500: #78818D;
  --g-600: #5A636E;
  --g-700: #3E464F;
  --g-800: #272D35;
  --g-900: #161A1F;

  /* Official logo blue */
  --brand:    #0E49A3;
  --brand-dk: #0B3A82;
  --brand-lt: #7FA9E0;   /* for dark surfaces, where --brand fails 3:1 */
  --brand-sk: #E8EEF8;   /* faint blue tint for hovers and soft fills */

  /* Semantic */
  --bg:          var(--g-50);
  --bg-alt:      var(--g-100);
  --surface:     #FFFFFF;
  --ink:         var(--g-900);
  --ink-soft:    #4A535E;
  --ink-mute:    #667080;
  --line:        rgba(22, 26, 31, 0.10);
  --line-strong: rgba(22, 26, 31, 0.20);
  --accent:      var(--brand);
  --accent-deep: var(--brand-dk);
  --editorial:   var(--g-700);   /* display numerals, statement headings */
  --label:       var(--g-600);   /* small labels */
  --ember:       var(--brand);   /* legacy aliases, now blue */
  --ember-lo:    var(--brand-lt);
  --ember-tx:    var(--brand-dk);

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(22, 26, 31, 0.05);
  --shadow:    0 4px 20px -6px rgba(22, 26, 31, 0.12), 0 1px 3px rgba(22, 26, 31, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(22, 26, 31, 0.26), 0 4px 12px rgba(22, 26, 31, 0.06);

  --font-display: "Outfit", "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--ember); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 10vw, 132px); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section--alt { background: var(--bg-alt); }
.section--ink {
  background: var(--g-900);
  color: rgba(242, 244, 246, 0.72);
}
.section--ink h2, .section--ink h3 { color: var(--g-50); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 18px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Typography helpers ---------- */

.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--ink-soft); }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }
.center { text-align: center; margin-inline: auto; }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split {
  display: grid; gap: 28px; align-items: end;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
@media (max-width: 800px) { .section-head--split { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  font: inherit; font-size: 0.95rem; font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  box-shadow: 0 1px 2px rgba(22, 26, 31, 0.16);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(14, 73, 163, 0.45); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--g-700);
  border-color: var(--line-strong); box-shadow: none;
}
.btn--ghost:hover { background: var(--g-100); box-shadow: none; border-color: var(--g-400); }

.btn--ember { --btn-bg: var(--ember-tx); }
.btn--ember:hover { box-shadow: 0 10px 24px -10px rgba(14, 73, 163, 0.6); }

.btn--light { --btn-bg: var(--g-50); --btn-fg: var(--g-900); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.92rem; color: var(--brand);
  text-decoration: none;
  transition: gap 0.25s var(--ease), color 0.2s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--ember-tx); gap: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 251, 252, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(22, 26, 31, 0.5);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center;
  text-decoration: none; flex: none;
}
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.42rem;
  letter-spacing: -0.02em; color: var(--editorial); line-height: 1;
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 9px 14px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover { color: var(--brand); background: rgba(14, 73, 163, 0.07); }
.nav__link[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--ember);
}
.nav__menu { display: contents; }
.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__actions .btn { padding: 11px 20px; font-size: 0.88rem; }
/* The in-menu Contact button is for the collapsed mobile menu only. */
.nav__menu > .nav__actions { display: none; }

.nav__toggle {
  display: none; width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: transparent; cursor: pointer; padding: 0;
  place-items: center;
}
.nav__toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--g-700);
  border-radius: 2px; position: relative; transition: transform 0.3s var(--ease), background 0.2s;
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: var(--g-700); border-radius: 2px; transition: transform 0.3s var(--ease), top 0.2s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__toggle { display: grid; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 18px var(--gutter) 28px;
    display: grid; gap: 4px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { background: rgba(22, 26, 31, 0.1); }
  .nav__menu > .nav__actions { display: flex; margin-top: 14px; }
  .nav__menu > .nav__actions .btn { width: 100%; }
  .nav > .nav__actions { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 9vw, 124px) clamp(60px, 8vw, 104px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(760px 420px at 88% -8%, rgba(14, 73, 163, 0.22), transparent 62%),
    radial-gradient(640px 500px at 6% 12%, rgba(22, 26, 31, 0.16), transparent 60%),
    linear-gradient(180deg, var(--g-100), var(--bg) 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: var(--wave-field);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero__grid {
  display: grid; gap: clamp(40px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__title { margin-bottom: 24px; }
.hero__title em {
  /* The serif carried emphasis by italic; a geometric sans does it with
     weight and colour instead. */
  font-style: normal; font-weight: 700; color: var(--brand);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 14px; margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 500; color: var(--g-700);
  box-shadow: var(--shadow-sm);
}
.hero__badge b {
  background: var(--editorial); color: #fff; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* Hero side card */
.hero__panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-lg);
}
.hero__panel::before {
  content: ""; position: absolute; inset-inline: 22px; top: -1px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--ember-lo), var(--ember) 40%, var(--editorial));
}
.panel__title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.panel__title h3 { margin: 0; font-size: 1.15rem; }
.panel__title span {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute);
}
.ind-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ind {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: baseline;
}
.ind__num {
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 700;
  color: var(--editorial); letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ind__label { font-size: 0.88rem; line-height: 1.45; color: var(--ink-soft); }
.ind__label b { color: var(--ink); font-weight: 600; display: block; }

.bar { height: 6px; border-radius: 999px; background: var(--g-200); overflow: hidden; margin-top: 8px; }
.bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--ember-lo), var(--ember));
  width: 100%; transform: scaleX(0); transform-origin: left center;
  transition: transform 1.2s var(--ease);
}
[dir="rtl"] .bar > i { transform-origin: right center; }
.bar > i.alt { background: linear-gradient(90deg, var(--g-400), var(--g-500)); }

/* ---------- Stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow);
}
.stat { padding: clamp(24px, 3vw, 34px); border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat__num {
  font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700; color: var(--ink); letter-spacing: -0.035em; line-height: 1;
  display: block; margin-bottom: 10px; font-variant-numeric: tabular-nums;
}
.stat__num span { color: var(--ember); }
.stat__label { font-size: 0.86rem; color: var(--ink-mute); line-height: 1.45; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-inline-start: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 720px)  { .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 34px);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
a.card:hover {
  transform: translateY(-4px);
  border-color: var(--g-300);
  box-shadow: var(--shadow-lg);
}
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(145deg, var(--g-100), var(--g-200));
  color: var(--editorial);
  border: 1px solid var(--line);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; color: var(--ink-soft); }
.card__foot { margin-top: auto; padding-top: 22px; }
.card__index {
  position: absolute; top: 20px; inset-inline-end: 22px;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--label);
}

.card--feature {
  background: linear-gradient(160deg, var(--g-900), #3A2718 70%, var(--g-700));
  border-color: transparent; color: rgba(242, 244, 246, 0.76);
}
.card--feature h3 { color: var(--g-50); }
.card--feature p { color: rgba(242, 244, 246, 0.7); }
.card--feature .card__icon {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); color: var(--ember-lo);
}
.card--feature .link-arrow { color: var(--ember-lo); }
.card--feature .link-arrow:hover { color: #fff; }

/* Compact resource tiles */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  font-weight: 550; font-size: 0.95rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.tile:hover {
  transform: translateY(-3px); border-color: var(--g-300);
  box-shadow: var(--shadow); background: #fff;
}
.tile svg { width: 19px; height: 19px; color: var(--ember-tx); flex: none; }
.tile small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--ink-mute); margin-top: 1px; }

/* ---------- Split feature ---------- */
.split {
  display: grid; gap: clamp(36px, 5vw, 76px); align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split--rev > *:first-child { order: 2; }
@media (max-width: 900px) { .split--rev > *:first-child { order: 0; } }

.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: g; }
.goals li {
  counter-increment: g;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px;
  padding: 20px 4px;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
}
.goals li:last-child { border-bottom: 1px solid var(--line); }
.goals li::before {
  content: "0" counter(g);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--ember-tx); padding-top: 4px;
}
.goals b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 3px; }
.section--ink .goals li { border-color: rgba(242, 244, 246, 0.13); }
.section--ink .goals b { color: var(--g-50); }

/* Image-ish visual block */
.visual {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--g-200), var(--g-300) 55%, var(--g-400));
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 320px at 20% 15%, rgba(255, 255, 255, 0.5), transparent 60%);
}
.visual__inner {
  position: relative; z-index: 1; text-align: center; padding: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  max-height: 100%;
}
.visual svg { width: min(100%, 84%); height: auto; }
.visual__inner p { margin: 0; }

/* ---------- News ---------- */
.news { display: grid; gap: 0; }
.news__item {
  display: grid; gap: 22px; align-items: start;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.25s var(--ease);
}
.news__item:last-child { border-bottom: 1px solid var(--line); }
.news__item:hover { background: rgba(22, 26, 31, 0.045); }
.news__date {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--ink-mute); padding-top: 5px; font-variant-numeric: tabular-nums;
}
.news__body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.news__body p { font-size: 0.94rem; margin: 0; }
.news__tag {
  align-self: center;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px;
  background: var(--g-100); color: var(--g-700); border: 1px solid var(--line);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .news__item { grid-template-columns: 1fr; gap: 10px; }
  .news__tag { justify-self: start; }
}

/* ---------- Quote ---------- */
.quote {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 64px);
  background: linear-gradient(150deg, #fff, var(--g-100));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.35;
  letter-spacing: -0.02em; color: var(--ink);
}
.quote figcaption {
  margin-top: 24px; font-size: 0.86rem; color: var(--ink-mute);
  display: flex; align-items: center; gap: 12px;
}
.quote figcaption::before { content: ""; width: 28px; height: 1px; background: var(--g-400); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 76px);
  background: linear-gradient(140deg, var(--g-700), var(--g-800) 48%, var(--g-900));
  color: rgba(242, 244, 246, 0.78);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(14, 73, 163, 0.35), transparent 65%);
}
.cta > * { position: relative; z-index: 1; }   /* above the glow and the waves */
.cta h2 { color: #fff; }
.cta .btn--light:hover { box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.6); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(32px, 4vw, 56px); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.info-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 1px solid var(--line); }
.info-list svg { width: 19px; height: 19px; color: var(--ember-tx); margin-top: 3px; }
.info-list b { display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-bottom: 3px; }
.info-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.info-list a:hover { color: var(--brand); border-color: var(--brand); }

.form__note { font-size: 0.8rem; color: var(--ink-mute); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px) clamp(40px, 5vw, 64px);
  background: linear-gradient(180deg, var(--g-100), var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 340px at 85% -20%, rgba(14, 73, 163, 0.2), transparent 60%);
}
.page-hero > * { position: relative; }
.crumbs {
  font-size: 0.82rem; color: var(--ink-mute); margin-bottom: 22px;
}
.crumbs a { text-decoration: none; color: var(--label); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: var(--ink-mute); margin-inline: 8px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }

/* Prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-inline-start: 1.1em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--g-900); color: rgba(242, 244, 246, 0.6);
  padding-block: clamp(56px, 7vw, 84px) 32px;
  font-size: 0.9rem;
}
.footer__grid {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  padding-bottom: 48px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.site-footer .brand__name { color: var(--g-50); }
.site-footer .brand { margin-bottom: 4px; }
/* Bottom bar: row one is the copyright and the build credit at opposite ends,
   row two carries HDIP's own contact details. */
.footer__bottom {
  border-top: 1px solid rgba(242, 244, 246, 0.12);
  margin-top: 8px; padding-top: 26px;
  display: grid; gap: 10px;
  font-size: 0.82rem; color: rgba(250, 251, 252, 0.72);
}
.footer__row {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between; align-items: baseline;
}
.footer__row p { margin: 0; }
.footer__by { margin-inline-start: auto; text-align: end; }
@media (max-width: 700px) { .footer__by { margin-inline-start: 0; text-align: start; } }
.site-footer .footer__bottom a { color: inherit; text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
/* Scoped to .js-anim, which the script adds. Without JS — or if the observer
   never fires — the content simply renders. */
.js-anim [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-anim [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-anim [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Media — photography, bands, mosaics
   Photos come from twelve different cameras and decades. A shared warm tint
   plus a consistent frame is what makes them read as one system.
   ========================================================================== */

.media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--g-200);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
/* Warm unifying wash — skipped on .media--true (maps, documents) */
.media:not(.media--true)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  /* A cool neutral wash, so photography sits in the grey system. */
  background: linear-gradient(170deg, rgba(14, 73, 163, 0.10), rgba(22, 26, 31, 0.16));
  mix-blend-mode: multiply;
}
.media:not(.media--true) img { filter: saturate(0.82) contrast(1.03); }

.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }

a:hover > .media img, .card:hover .media img, .media--zoom:hover img { transform: scale(1.04); }

/* Caption + credit */
.media__cap {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  padding: 44px 22px 16px;
  background: linear-gradient(to top, rgba(18, 21, 25, 0.82), transparent);
  color: rgba(250, 251, 252, 0.94);
  font-size: 0.82rem; line-height: 1.4;
}
.media__cap b { display: block; font-weight: 600; }
.credit {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(250, 251, 252, 0.76);
  margin-top: 4px;
}
.credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.credit a:hover { color: #fff; }
/* Credit under a light-background figure */
.media + .credit, .credit--under {
  color: var(--ink-mute); margin-top: 10px; padding-inline: 2px;
}
.media + .credit a, .credit--under a { color: var(--label); }
.media + .credit a:hover, .credit--under a:hover { color: var(--brand); }


/* Indicator card floating over the hero photo */
.hero__float {
  position: absolute; z-index: 3;
  inset-inline-start: -28px; bottom: 28px;
  width: min(330px, 84%);
  background: rgba(250, 251, 252, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 1080px) { .hero__float { inset-inline-start: 18px; } }
@media (max-width: 520px)  { .hero__float { position: static; width: auto; margin-top: 16px; } }

/* ---------- Full-bleed photo band ---------- */
.band {
  position: relative;
  padding-block: clamp(90px, 13vw, 180px);
  overflow: hidden;
  isolation: isolate;
  color: rgba(250, 251, 252, 0.8);
}
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(16, 19, 23, 0.95) 0%, rgba(26, 31, 37, 0.9) 50%, rgba(39, 45, 53, 0.82) 100%),
    linear-gradient(180deg, rgba(128, 0, 0, 0.2), transparent 55%);
}
.band h2 { color: #fff; }
.band blockquote {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.45rem, 3.1vw, 2.5rem); line-height: 1.28;
  letter-spacing: -0.02em; color: #fff;
}
.band figcaption { margin-top: 26px; font-size: 0.86rem; color: rgba(250, 251, 252, 0.6); }
.band__credit {
  position: absolute; z-index: 2; inset-inline-end: var(--gutter); bottom: 14px;
  font-size: 0.75rem;
  color: rgba(250, 251, 252, 0.68);
}
.band__credit a { color: inherit; text-decoration: none; }
.band__credit a:hover { color: rgba(250, 251, 252, 0.85); }

/* ---------- Photo card ---------- */
.card--photo { padding: 0; overflow: hidden; }
.card--photo .media { border-radius: 0; box-shadow: none; }
.card--photo .card__body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; flex: 1; }
.card--photo .card__index { top: 16px; inset-inline-end: 18px; color: rgba(250, 251, 252, 0.7); z-index: 3; }
.card--photo .card__icon {
  position: absolute; z-index: 3; top: 14px; inset-inline-start: 16px;
  margin: 0; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(250, 251, 252, 0.92); border-color: transparent;
}
.card--photo .card__icon svg { width: 18px; height: 18px; }

/* ---------- Mosaic gallery ---------- */
.mosaic {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 180px;
}
.mosaic > * { margin: 0; }
.mosaic .m-wide { grid-column: span 2; }
.mosaic .m-tall { grid-row: span 2; }
.mosaic .m-big  { grid-column: span 2; grid-row: span 2; }
.mosaic > figure { display: block; height: 100%; }
.mosaic .media { height: 100%; aspect-ratio: auto; }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .mosaic .m-big { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 520px) {
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .mosaic .m-wide, .mosaic .m-big { grid-column: span 1; }
  .mosaic .m-tall, .mosaic .m-big { grid-row: span 1; }
}

/* ---------- Page hero with photo ----------
   A compact band: the photograph sits behind the title, blurred and darkened,
   rather than as a full-height image below it. */
.page-hero--media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 0;
  background: var(--g-900);
  color: rgba(250, 251, 252, 0.82);
  display: flex;
  align-items: flex-end;
  min-height: clamp(280px, 34vw, 400px);
  padding-block: clamp(64px, 9vw, 104px) clamp(38px, 5vw, 56px);
}
.page-hero--media::before { display: none; }

.page-hero__bg { position: absolute; inset: -30px; z-index: -2; }
.page-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(5px) saturate(0.82) brightness(1.18) contrast(0.95);
  transform: scale(1.06);
}
.page-hero--media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    /* readable behind the text on the leading edge, opens up towards the far edge.
       100deg is a PHYSICAL angle, so it must be mirrored for RTL or the Arabic
       text lands on the transparent end. See the [dir="rtl"] override below. */
    linear-gradient(100deg, rgba(16, 19, 23, 0.9) 0%, rgba(20, 24, 29, 0.74) 46%, rgba(32, 37, 44, 0.44) 100%),
    /* keeps the credit line and the join to the next section clean */
    linear-gradient(180deg, rgba(16, 19, 23, 0.42) 0%, transparent 32%, rgba(22, 15, 8, 0.6) 100%),
    radial-gradient(900px 420px at 88% -10%, rgba(14, 73, 163, 0.26), transparent 62%);
}

.page-hero__content { position: relative; z-index: 1; width: 100%; }
.page-hero--media h1 { color: #fff; }
.page-hero--media .lead { color: rgba(250, 251, 252, 0.8); }
.page-hero--media .crumbs { color: rgba(250, 251, 252, 0.78); }
.page-hero--media .crumbs a { color: var(--ember-lo); }
.page-hero--media .crumbs a:hover { color: #fff; }
.page-hero--media .crumbs span { color: rgba(250, 251, 252, 0.55); }

.page-hero__credit {
  position: absolute; z-index: 1;
  inset-inline-end: var(--gutter); bottom: 12px; margin: 0;
  font-size: 0.75rem;
  color: rgba(250, 251, 252, 0.68);
  max-width: 60%; text-align: end;
}
.page-hero__credit a { color: inherit; text-decoration: none; }
.page-hero__credit a:hover { color: rgba(250, 251, 252, 0.85); }
@media (max-width: 640px) {
  .page-hero__credit { position: static; max-width: none; text-align: start;
    padding: 14px var(--gutter) 0; }
  .page-hero--media { display: block; padding-bottom: 20px; }
}

/* The sticky header sits over a dark band on these pages */
.page-hero--media + * { margin-top: 0; }

/* ---------- News thumbnails ---------- */
.news__item { grid-template-columns: 132px 120px minmax(0, 1fr) auto; }
.news__thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .news__item { grid-template-columns: 1fr; }
  .news__thumb { aspect-ratio: 16 / 9; }
}

/* ---------- Figure pair ---------- */
.fig-pair { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig-pair > figure { margin: 0; }
@media (max-width: 560px) { .fig-pair { grid-template-columns: 1fr; } }

/* ---------- Credits page ---------- */
.credits-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.credits-list li {
  display: grid; gap: 20px; align-items: center;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.credits-list li:last-child { border-bottom: 1px solid var(--line); }
.credits-list .media { aspect-ratio: 3 / 2; border-radius: var(--radius-sm); box-shadow: none; }
.credits-list b { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.credits-list span { font-size: 0.85rem; }
.credits-list a { color: var(--label); }
.lic-tag {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--g-100); color: var(--g-700); border: 1px solid var(--line);
}
@media (max-width: 640px) {
  .credits-list li { grid-template-columns: 84px minmax(0, 1fr); }
  .credits-list .lic-tag { grid-column: 2; justify-self: start; }
}

/* ---------- Media: follow-ups ---------- */
figure { margin: 0; }
.news__thumb { display: block; }
.news__thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.88); }

/* Goals rendered over a photographic band */
.goals--light li { border-color: rgba(250, 251, 252, 0.22); }
.goals--light b { color: #fff; }
.goals--light { color: rgba(250, 251, 252, 0.78); }
.goals--light li::before { color: var(--ember-lo); }

/* Tiles on a dark or photographic background */
.tile--dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--g-50);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tile--dark:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.3); }

/* The band's own tiles sit closer together */
.band .tiles { gap: 12px; }

/* ==========================================================================
   Approved structure — components added for the HDIP site rebuild
   ========================================================================== */

/* ---------- Arabic / RTL ---------- */
:root[dir="rtl"], [dir="rtl"] {
  --font-body: "Almarai", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Almarai", "Segoe UI", Tahoma, sans-serif;
}
[dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  letter-spacing: 0; line-height: 1.3; font-weight: 700;
}
[dir="rtl"] .hero__title { line-height: 1.25; }
[dir="rtl"] .link-arrow::after { content: "←"; }
[dir="rtl"] .btn svg, [dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .crumbs span { margin-inline: 8px; }
[dir="rtl"] .stat__num, [dir="rtl"] .ind__num { font-family: var(--font-display); }
[dir="rtl"] .credit, [dir="rtl"] .page-hero__credit,
[dir="rtl"] .band__credit, [dir="rtl"] .card__index { font-family: var(--font-body); }
[dir="rtl"] .data th, [dir="rtl"] .data td { text-align: right; }
[dir="rtl"] .data th:first-child, [dir="rtl"] .data td:first-child { text-align: right; }

/* ---------- Language switch ---------- */
.nav__lang {
  display: inline-flex; align-items: center;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.85rem; font-weight: 600; color: var(--g-700);
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__lang:hover { background: rgba(14, 73, 163, 0.07); border-color: var(--brand); color: var(--brand); }
@media (max-width: 1080px) { .nav__menu > .nav__actions .nav__lang { flex: 1; justify-content: center; } }

/* ---------- Facts row (home) ---------- */
.facts { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.facts li { display: grid; gap: 2px; }
.facts b { font-family: var(--font-display); font-size: 1.5rem; color: var(--editorial); letter-spacing: -0.02em; }
.facts span { font-size: 0.86rem; color: var(--ink-mute); }

/* ---------- Chips (governorates) ---------- */
.chips { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--g-50); font-size: 0.9rem; font-weight: 500;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.chips svg { width: 16px; height: 16px; color: #9CC0EA; }

/* ---------- Definition list ---------- */
.deflist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.deflist li {
  display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 24px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.deflist li:last-child { border-bottom: 1px solid var(--line); }
.deflist b { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); font-weight: 600; }
.deflist span { font-size: 0.94rem; }
.deflist--wide li { grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr); }
.deflist--num { counter-reset: dl; }
.deflist--num li {
  grid-template-columns: 44px minmax(0, 0.34fr) minmax(0, 1fr);
  gap: 22px; align-items: start; padding-block: 24px; counter-increment: dl;
}
/* A filled circle carries the step number, as in the reference's process list. */
.deflist--num li::before {
  content: counter(dl, decimal-leading-zero);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0;
}
.deflist--light.deflist--num li::before { background: var(--brand-lt); color: var(--g-900); }
@media (max-width: 760px) {
  .deflist--num li { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 18px; }
  .deflist--num li > span { grid-column: 2; }
}
.deflist--light li { border-color: rgba(242, 244, 246, 0.14); }
.deflist--light b { color: var(--g-50); }
.deflist--light span { color: rgba(242, 244, 246, 0.72); }
@media (max-width: 760px) {
  .deflist li, .deflist--wide li { grid-template-columns: 1fr; gap: 6px; }
  .deflist--num li { grid-template-columns: auto 1fr; }
  .deflist--num li span:last-child { grid-column: 2; }
}

/* ---------- Numbered / checked lists ---------- */
.numlist { list-style: none; margin: 0; padding: 0; counter-reset: nl; display: grid; gap: 0; }
.numlist li {
  counter-increment: nl; position: relative;
  padding: 18px 0 18px 46px; border-top: 1px solid var(--line); font-size: 0.96rem;
}
[dir="rtl"] .numlist li { padding: 18px 46px 18px 0; }
.numlist li:last-child { border-bottom: 1px solid var(--line); }
.numlist li::before {
  content: counter(nl, decimal-leading-zero); position: absolute;
  inset-inline-start: 0; top: 21px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ember-tx);
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checklist li {
  position: relative; padding: 16px 0 16px 34px;
  border-top: 1px solid var(--line); font-size: 0.95rem;
}
[dir="rtl"] .checklist li { padding: 16px 34px 16px 0; }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 22px;
  width: 14px; height: 8px; border: 2px solid var(--ember-tx);
  border-top: 0; border-inline-end: 0; transform: rotate(-45deg);
}
.checklist--sm li { font-size: 0.88rem; padding-block: 11px; }
.section--ink .checklist li, .checklist--light li { border-color: rgba(242, 244, 246, 0.14); }

/* ---------- Objectives (about) ---------- */
.objectives { list-style: none; margin: 0; padding: 0; display: grid; gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
@media (max-width: 860px) { .objectives { grid-template-columns: 1fr; } }
.objectives li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 17px 0; border-top: 1px solid var(--line); font-size: 0.94rem;
}
.obj__n { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ember-tx); padding-top: 4px; }

/* ---------- Pillars (annual report) ---------- */
.pillars { display: grid; gap: 0; }
.pillar {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__n {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--g-500); line-height: 1; letter-spacing: -0.03em;
}
.pillar h3 { margin-bottom: 8px; }
.pillar p { font-size: 0.95rem; }
.pillar .checklist { margin-top: 14px; }
@media (max-width: 640px) { .pillar { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Data table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 620px; }
.data th, .data td { padding: 15px 18px; text-align: start; border-bottom: 1px solid var(--line); }
.data th {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500; background: var(--g-50);
}
.data td { font-variant-numeric: tabular-nums; }
.data td:first-child { font-weight: 600; color: var(--ink); font-variant-numeric: normal; }
.data tbody tr:last-child td { border-bottom: 0; }
.data .is-total { font-weight: 700; color: var(--editorial); background: var(--g-50); }

/* ---------- Status pill ---------- */
.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.01em;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--ongoing { background: rgba(74, 90, 52, 0.12); color: #3E464F; border: 1px solid rgba(74, 90, 52, 0.26); }
.status--completed { background: var(--g-100); color: var(--g-700); border: 1px solid var(--line-strong); }
[dir="rtl"] .status { font-family: var(--font-body); letter-spacing: 0; }

/* ---------- Report cards ---------- */
.report-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 30px); text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
a.report-card:hover { transform: translateY(-4px); border-color: var(--g-300); box-shadow: var(--shadow-lg); }
.report-card__year {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: var(--editorial); letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px;
}
.report-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.report-card p { font-size: 0.9rem; }
.report-card--empty {
  background: transparent; border-style: dashed; box-shadow: none;
  justify-content: flex-start;
}
.report-card--empty .report-card__year { color: var(--label); }
.report-card--empty p { color: var(--ink-mute); font-size: 0.85rem; }

/* ---------- "Content needed" placeholder ---------- */
.needed {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 30px); background: rgba(14, 73, 163, 0.035);
}
.needed__tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--ember-tx);
}
[dir="rtl"] .needed__tag { font-family: var(--font-body); letter-spacing: 0; }
.needed__tag svg { width: 14px; height: 14px; }
.needed h3 { font-size: 1.1rem; margin-bottom: 8px; }
.needed p { font-size: 0.89rem; color: var(--ink-mute); }

/* ---------- Inline note ---------- */
.note {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 22px; padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 0.85rem; line-height: 1.5;
}
.note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.note--warn { background: rgba(14, 73, 163, 0.09); border: 1px solid rgba(14, 73, 163, 0.24); color: var(--g-700); }
.note--warn svg { color: var(--ember-tx); }

/* ---------- Article ---------- */
.article { max-width: 72ch; margin-inline: auto; }
.article .lead { font-size: clamp(1.14rem, 1.8vw, 1.36rem); margin-bottom: 1.4em; }
.article-title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-link {
  display: inline-flex; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--g-50); font-size: 0.8rem; font-weight: 500; text-decoration: none;
  transition: background 0.2s var(--ease);
}
.tag-link:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Glance list ---------- */
.glance li { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; }
.glance b {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600; margin: 0;
}
[dir="rtl"] .glance b { letter-spacing: 0; font-size: 0.78rem; }
.glance span:last-child { text-align: end; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.glance > li > span { display: contents; }

/* ---------- Sources list ---------- */
.srclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.srclist li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 0.89rem; }
.srclist li:last-child { border-bottom: 1px solid var(--line); }
.srclist code {
  font-family: var(--font-mono); font-size: 0.78rem;
  background: var(--g-100); padding: 2px 7px; border-radius: 5px; color: var(--g-700);
}

/* ---------- Status pill inside panel title ---------- */
.panel__title .status { align-self: center; }

/* Arabic does not use italics — emphasise with colour and weight instead. */
[dir="rtl"] .hero__title em { font-style: normal; font-weight: 700; color: var(--editorial); }
[dir="rtl"] .quote blockquote, [dir="rtl"] .band blockquote { font-style: normal; }

/* Arabic is a connected script: letter-spacing and the mono face break it.
   Reset every small-label element that uses them in the Latin design. */
[dir="rtl"] .crumbs,
[dir="rtl"] .news__date,
[dir="rtl"] .panel__title span,
[dir="rtl"] .obj__n,
[dir="rtl"] .lic-tag,
[dir="rtl"] .info-list b,
[dir="rtl"] .data th,
[dir="rtl"] .hero__badge b,
[dir="rtl"] .deflist--num li::before,
[dir="rtl"] .numlist li::before {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
[dir="rtl"] .crumbs { font-size: 0.8rem; }
[dir="rtl"] .news__date { font-size: 0.8rem; }
[dir="rtl"] .info-list b { font-size: 0.8rem; }
[dir="rtl"] .data th { font-size: 0.78rem; }
/* Numeric markers stay in the mono face — digits are shared. */
[dir="rtl"] .deflist--num li::before,
[dir="rtl"] .numlist li::before,
[dir="rtl"] .obj__n { font-family: var(--font-mono); }
[dir="rtl"] .yrtab { font-family: var(--font-body); }

/* ---------- Year switch (impact by year, project phases, report nav) ---------- */
.yrswitch {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--g-100); border: 1px solid var(--line);
  border-radius: 999px; margin-bottom: 28px;
}
.yrtab {
  font: inherit; font-size: 0.86rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 9px 20px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-mute); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.yrtab:hover { color: var(--brand); }
.yrtab.is-on {
  background: var(--surface); color: var(--brand);
  box-shadow: 0 1px 3px rgba(22, 26, 31, 0.14);
}
.yrswitch--links { margin-bottom: 0; }
.section-head--split .yrswitch { margin-bottom: 0; justify-self: start; align-self: center; }

.yrpanel { display: none; }
.yrpanel.is-on { display: block; }
/* When the panels are the stat grid itself, the active panel becomes the grid. */
.yrpanels.stats { display: block; border: 0; background: none; box-shadow: none; overflow: visible; }
.yrpanels.stats .yrpanel.is-on {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow);
}
.yrpanels.stats .yrpanel .stat { border-inline-start: 1px solid var(--line); }
.yrpanels.stats .yrpanel .stat:first-child { border-inline-start: 0; }
@media (max-width: 860px) {
  .yrpanels.stats .yrpanel.is-on { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yrpanels.stats .yrpanel .stat:nth-child(3) { border-inline-start: 0; }
  .yrpanels.stats .yrpanel .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .yrpanels.stats .yrpanel.is-on { grid-template-columns: 1fr; }
  .yrpanels.stats .yrpanel .stat { border-inline-start: 0; }
  .yrpanels.stats .yrpanel .stat + .stat { border-top: 1px solid var(--line); }
}
.yrpanel > h3 { margin-bottom: 14px; }
.yrpanel .prose { max-width: 70ch; margin-bottom: 22px; }

/* ---------- Donor principles (About) ---------- */
.principles {
  list-style: none; margin: 0; padding: 0; counter-reset: pr;
  display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px;
}
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }
.principles li {
  counter-increment: pr; position: relative;
  padding: 18px 0 18px 42px;
  border-top: 1px solid rgba(242, 244, 246, 0.14);
  color: rgba(242, 244, 246, 0.82); font-size: 0.96rem;
}
[dir="rtl"] .principles li { padding: 18px 42px 18px 0; }
.principles li::before {
  content: counter(pr, decimal-leading-zero); position: absolute;
  inset-inline-start: 0; top: 21px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ember-lo);
}

/* ---------- Two-column checklist ---------- */
.checklist--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; display: grid; }
@media (max-width: 760px) { .checklist--two { grid-template-columns: 1fr; } }

/* ---------- Report card flag ---------- */
.report-card { position: relative; }
.report-card__flag {
  position: absolute; top: 18px; inset-inline-end: 18px;
  display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(14, 73, 163, 0.12); color: var(--ember-tx);
}
.report-card__flag svg { width: 14px; height: 14px; }

/* ==========================================================================
   Polish pass — hierarchy without kicker labels
   ========================================================================== */

/* Section heads now lead with the heading, so they need their own breathing room. */
.section-head h2 { max-width: 20ch; }
.section-head--split h2 { max-width: 16ch; }
.section-head--split { align-items: baseline; }
.section-head--split > p.lead { padding-bottom: 4px; }

/* A year or similar fact that belongs to a heading rides with it. */
.yr-tag {
  display: inline-block; vertical-align: 0.35em;
  font-family: var(--font-mono); font-size: max(0.75rem, 0.38em); font-weight: 500;
  letter-spacing: 0.02em; color: var(--label);
  padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
  margin-inline-start: 0.5em;
}
[dir="rtl"] .yr-tag { font-family: var(--font-body); vertical-align: 0.3em; }

/* Footer column headings — real headings, sized down. */
.footer__h {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ember-lo);
  margin: 0 0 16px;
}
[dir="rtl"] .footer__h { font-size: 0.88rem; letter-spacing: 0; }

/* Statement cards carry the words alone. */
.card--statement { padding-block: clamp(30px, 3.4vw, 42px); }
.card--statement h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 16px; color: var(--editorial);
}
.card--statement p { font-size: 1rem; line-height: 1.65; }

/* ---------- Browser surfaces: the parts we did not draw ---------- */
::selection { background: var(--brand); color: #fff; }
:root { accent-color: var(--brand); caret-color: var(--brand); color-scheme: light; }
html { scrollbar-color: var(--g-300) var(--g-100); }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-track { background: var(--g-100); }
*::-webkit-scrollbar-thumb {
  background: var(--g-300); border-radius: 999px;
  border: 3px solid var(--g-100);
}
*::-webkit-scrollbar-thumb:hover { background: var(--g-400); }
a { text-underline-offset: 0.18em; text-decoration-thickness: from-font; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
/* The ember ring drops to 1.9:1 on maroon and 2.9:1 on the footer brown —
   dark surfaces get a light ring instead. */
.site-footer :focus-visible,
.section--ink :focus-visible,
.band :focus-visible,
.cta :focus-visible,
.page-hero--media :focus-visible,
.card--feature :focus-visible { outline-color: var(--g-50); }
.data td, .stat__num, .ind__num, .facts b, .report-card__year { font-variant-numeric: tabular-nums; }

/* The table wrapper is a scroll container — tell people when it scrolls. */
.table-wrap { scrollbar-width: thin; }

/* Card titles keep one visual size whether they are h2 or h3. */
.card__body > h2, .card > h2, .report-card h2, .news__body h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25;
  margin: 0 0 10px;
}
.report-card h2 { font-size: 1.1rem; margin-bottom: 8px; }
.news__body h2 { font-size: 1.3rem; margin-bottom: 8px; }

/* A label over photography needs its own ground, not luck with the image. */
.card--photo .card__index {
  background: rgba(18, 21, 25, 0.72);
  color: rgba(250, 251, 252, 0.96);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  top: 14px; inset-inline-end: 14px;
}


/* ==========================================================================
   RTL: mirror the physically-angled washes
   A linear-gradient angle is physical, not logical. Left-anchored scrims put
   Arabic text — which starts on the right — on the transparent end.
   ========================================================================== */
[dir="rtl"] .page-hero--media::after {
  background:
    linear-gradient(260deg, rgba(16, 19, 23, 0.9) 0%, rgba(20, 24, 29, 0.74) 46%, rgba(32, 37, 44, 0.44) 100%),
    linear-gradient(180deg, rgba(16, 19, 23, 0.42) 0%, transparent 32%, rgba(22, 15, 8, 0.6) 100%),
    radial-gradient(900px 420px at 12% -10%, rgba(14, 73, 163, 0.26), transparent 62%);
}
[dir="rtl"] .band::before {
  background:
    linear-gradient(255deg, rgba(16, 19, 23, 0.95) 0%, rgba(26, 31, 37, 0.9) 50%, rgba(39, 45, 53, 0.82) 100%),
    linear-gradient(180deg, rgba(128, 0, 0, 0.2), transparent 55%);
}
[dir="rtl"] .hero__media::after {
  background: linear-gradient(195deg, rgba(14, 73, 163, 0.18), rgba(22, 26, 31, 0.4));
}
[dir="rtl"] .media:not(.media--true)::after {
  background: linear-gradient(190deg, rgba(14, 73, 163, 0.14), rgba(22, 26, 31, 0.22));
}

/* ---------- Tap targets: WCAG 2.5.5 wants 44x44 ---------- */
.nav__toggle { width: 44px; height: 44px; }
.yrtab { padding-block: 12px; min-height: 44px; }
.brand { min-height: 44px; }
.nav__lang { min-height: 44px; }
@media (max-width: 1080px) {
  .nav__link { min-height: 44px; display: flex; align-items: center; }
}
.footer__col a { display: inline-block; padding-block: 3px; }

/* ---------- Caption scrim: guarantee contrast over bright photography ---------- */
.media__cap {
  background: linear-gradient(to top,
    rgba(16, 19, 23, 0.92) 0%, rgba(16, 19, 23, 0.78) 45%, transparent 100%);
}

/* ---------- Arabic display register ----------
   The English face pairing (Outfit display vs Inter text) carries most of the
   site's character. Arabic collapses both to Almarai, so the contrast has to be
   rebuilt from the axes Arabic does have: weight, size and colour. */
[dir="rtl"] h1 { font-weight: 800; letter-spacing: -0.01em; }
[dir="rtl"] h2 { font-weight: 800; }
[dir="rtl"] h3 { font-weight: 700; }
[dir="rtl"] body { font-weight: 400; }
[dir="rtl"] .lead { font-weight: 300; font-size: clamp(1.12rem, 1.7vw, 1.34rem); }
[dir="rtl"] .hero__title { font-weight: 800; }
[dir="rtl"] .stat__num,
[dir="rtl"] .report-card__year,
[dir="rtl"] .facts b,
[dir="rtl"] .pillar__n { font-weight: 800; }
[dir="rtl"] .card--statement h3 { font-weight: 800; }
/* Almarai sits optically smaller than Outfit at the same size. */
[dir="rtl"] h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
[dir="rtl"] h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }

/* ==========================================================================
   Hero slideshow
   One job: show that HDIP's work is several kinds of room, not one photograph.
   The first slide ships visible so the hero survives a failed script.
   ========================================================================== */
/* Controls sit on the frame, not over the subject. */
.slideshow__ui {
  position: absolute; z-index: 3;
  inset-inline-start: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.slideshow__ui[hidden] { display: none; }

.slideshow__toggle {
  width: 32px; height: 32px; flex: none; padding: 0;
  display: grid; place-items: center;
  border: 1px solid rgba(250, 251, 252, 0.4);
  border-radius: 50%;
  background: rgba(16, 19, 23, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.slideshow__toggle:hover { background: rgba(16, 19, 23, 0.8); border-color: rgba(250, 251, 252, 0.7); }
/* Two bars = pause; one triangle = play. Drawn, not a glyph. */
.slideshow__bar, .slideshow__bar::after {
  content: ""; display: block;
  width: 3px; height: 11px; border-radius: 1px;
  background: var(--g-50);
}
.slideshow__bar { position: relative; margin-inline-end: 5px; }
.slideshow__bar::after { position: absolute; inset-inline-start: 5px; top: 0; }
.slideshow__toggle[data-paused] .slideshow__bar {
  width: 0; height: 0; margin: 0 0 0 2px; border-radius: 0;
  background: transparent;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  border-inline-start: 10px solid var(--g-50);
}
.slideshow__toggle[data-paused] .slideshow__bar::after { display: none; }

.slideshow__dots { display: flex; align-items: center; gap: 7px; }
.dot {
  width: 24px; height: 24px; padding: 0; flex: none;
  border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.dot::before {
  content: ""; display: block;
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(250, 251, 252, 0.45);
  box-shadow: 0 0 0 1px rgba(16, 19, 23, 0.35);
  transition: background 0.25s var(--ease), width 0.25s var(--ease),
              border-radius 0.25s var(--ease);
}
.dot:hover::before { background: rgba(250, 251, 252, 0.8); }
.dot.is-on::before { background: var(--g-50); width: 18px; border-radius: 999px; }

/* Reduced motion: no crossfade, no slow zoom. The slideshow becomes a
   manual picker — the controls still work, nothing moves on its own. */

/* ==========================================================================
   Full-section hero stage
   The whole hero is the slideshow; the headline sits on the photography.
   Text over moving imagery is the hardest legibility case on the site, so the
   scrim is firmer than anywhere else and is measured against the brightest
   pixels in these six photographs, not the average.
   ========================================================================== */
.hero--full {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: center;
  min-height: clamp(580px, 84vh, 900px);
  padding-block: clamp(80px, 11vw, 150px);
  background: var(--g-900);
}
/* The base .hero decoration does not apply to the photographic stage. */
.hero--full::before { content: none; }

.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slides .slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1100ms var(--ease), visibility 0s linear 1100ms;
}
.hero__slides .slide.is-on {
  opacity: 1; visibility: visible;
  transition: opacity 1100ms var(--ease), visibility 0s;
}
.hero__slides .slide img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.82) contrast(1.02);
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero__slides .slide.is-on img { transform: scale(1); }

/* The scrim. Angled toward the reading edge, mirrored for RTL below. */
.hero--full::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(95deg, rgba(14, 17, 20, 0.94) 0%, rgba(16, 19, 23, 0.9) 38%,
                           rgba(26, 31, 37, 0.5) 70%, rgba(32, 37, 44, 0.34) 100%),
    linear-gradient(180deg, rgba(14, 17, 20, 0.55) 0%, transparent 26%,
                            transparent 62%, rgba(14, 17, 20, 0.72) 100%),
    radial-gradient(1100px 520px at 88% 8%, rgba(14, 73, 163, 0.22), transparent 64%);
}
[dir="rtl"] .hero--full::after {
  background:
    linear-gradient(265deg, rgba(14, 17, 20, 0.94) 0%, rgba(16, 19, 23, 0.9) 38%,
                            rgba(26, 31, 37, 0.5) 70%, rgba(32, 37, 44, 0.34) 100%),
    linear-gradient(180deg, rgba(14, 17, 20, 0.55) 0%, transparent 26%,
                            transparent 62%, rgba(14, 17, 20, 0.72) 100%),
    radial-gradient(1100px 520px at 12% 8%, rgba(14, 73, 163, 0.22), transparent 64%);
}

.hero__overlay { position: relative; z-index: 2; }
.hero--full .hero__title { color: #fff; max-width: 13ch; }
.hero--full .hero__title em { color: var(--ember-lo); }
[dir="rtl"] .hero--full .hero__title em { color: var(--ember-lo); font-weight: 800; }
.hero--full .lead { color: rgba(250, 251, 252, 0.92); max-width: 44ch; }
.hero--full .hero__badge {
  background: rgba(16, 19, 23, 0.52);
  border-color: rgba(250, 251, 252, 0.26);
  color: rgba(250, 251, 252, 0.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero--full .hero__badge b { background: var(--g-50); color: var(--g-900); }

/* An outlined button needs a real border on photography, not a tint. */
.btn--outline {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(250, 251, 252, 0.55);
  box-shadow: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn--outline:hover {
  background: rgba(250, 251, 252, 0.14);
  border-color: var(--g-50);
  box-shadow: none;
}

/* Per-slide credit, opposite the controls. */
.hero__credit {
  position: absolute; z-index: 2;
  inset-inline-end: var(--gutter); bottom: 22px;
  margin: 0; max-width: 46%; text-align: end;
  font-size: 0.75rem; line-height: 1.4;
  color: rgba(250, 251, 252, 0.78);
}
.hero__credit b { display: block; font-weight: 600; color: rgba(250, 251, 252, 0.92); }
.hero__credit .credit { color: rgba(250, 251, 252, 0.6); }

/* Controls on the reading edge, aligned to the content column. */
.hero--full .slideshow__ui {
  position: absolute; z-index: 3;
  inset-inline-start: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.hero--full .slideshow__ui[hidden] { display: none; }

@media (max-width: 860px) {
  /* Narrow screens put the text across the full width, so an angled scrim
     leaves its far end exposed (measured 2.17:1). Below this breakpoint the
     wash becomes vertical and covers the whole content column. */
  .hero--full::after,
  [dir="rtl"] .hero--full::after {
    background:
      linear-gradient(180deg, rgba(14, 17, 20, 0.58) 0%, rgba(14, 17, 20, 0.86) 20%,
                              rgba(14, 17, 20, 0.9) 60%, rgba(14, 17, 20, 0.94) 100%),
      radial-gradient(700px 320px at 50% 0%, rgba(14, 73, 163, 0.16), transparent 68%);
  }
  .hero--full { min-height: clamp(520px, 78vh, 760px); }
  .hero--full .hero__title { max-width: 100%; }
  .hero__credit { max-width: 60%; font-size: 0.7rem; bottom: 18px; }
  .hero--full .slideshow__ui { bottom: 18px; }
}
@media (max-width: 560px) {
  /* With the controls and the credit both on one line, give the credit its
     own row rather than letting them collide. */
  .hero__credit { position: static; max-width: none; text-align: start;
    padding: 24px var(--gutter) 0; }
  .hero--full .slideshow__ui { position: static; padding: 18px var(--gutter) 0; }
  .hero--full { align-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slides .slide { transition: none; }
  .hero__slides .slide img,
  .hero__slides .slide.is-on img { transition: none; transform: none; }
}

/* ---------- Official logo ----------
   Supplied as artwork, so it is placed rather than re-typeset. Two renditions
   because the official blue only reaches 1.95:1 on the dark footer. */
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand__logo { width: 96px; height: auto; display: block; }
.brand__logo--light { display: none; }
.site-footer .brand__logo { display: none; }
.site-footer .brand__logo--light { display: block; width: 104px; }
@media (max-width: 1080px) { .brand__logo { width: 84px; } }

/* Build credit — quiet, and it should not compete with HDIP's own contact line. */
.footer__by { color: rgba(250, 251, 252, 0.52); }
.footer__by a {
  color: rgba(250, 251, 252, 0.78);
  text-decoration: underline;
  text-decoration-color: rgba(250, 251, 252, 0.3);
  text-underline-offset: 0.2em;
}
.footer__by a:hover { color: #fff; text-decoration-color: currentColor; }

/* ==========================================================================
   Home — amplification pass
   The system already owns a grey scale, the logo blue and real photography.
   This turns those up rather than introducing new primitives.
   ========================================================================== */

/* ---------- Section seams ----------
   Alternating tone alone made the middle of the page read as one slab. A
   hairline and a drawn rule give each section a visible start. */
.section--alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--alt + .section--alt { border-top: 0; }

/* The box stays its full size and an inner layer does the wipe — scaling the
   element itself gives it a zero-area rect, which IntersectionObserver can
   never see, so it would never animate in. */
.rule {
  display: block; width: 56px; height: 3px; margin-bottom: 22px;
  position: relative; overflow: hidden; border-radius: 2px;
}
.rule::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--brand);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 700ms var(--ease);
}
[dir="rtl"] .rule::after { transform-origin: right center; }
.rule.is-in::after,
[data-reveal].is-in .rule::after,
[data-stagger].is-in .rule::after { transform: scaleX(1); }
.band .rule::after, .section--ink .rule::after { background: var(--brand-lt); }

/* ---------- Statement numerals ----------
   The figures are the argument on this page, so let them carry weight. */
.stat__num {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  letter-spacing: -0.045em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.stat { padding: clamp(26px, 3.2vw, 38px); }
.stat__label { font-size: 0.88rem; max-width: 26ch; }

/* ---------- Cards ----------
   A blue edge that wipes in on hover, instead of only a lift. */
.card--photo { position: relative; }
.card--photo::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; z-index: 4;
  background: var(--brand); transform: scaleX(0); transform-origin: left center;
  transition: transform 420ms var(--ease);
}
[dir="rtl"] .card--photo::after { transform-origin: right center; }
a.card--photo:hover::after, a.card--photo:focus-visible::after { transform: scaleX(1); }
a.card--photo:hover { transform: translateY(-6px); }
.card--photo .media img { transition: transform 900ms var(--ease), filter 500ms var(--ease); }
a.card--photo:hover .media img { transform: scale(1.06); filter: saturate(1) contrast(1.04); }
.card__foot .link-arrow { transition: gap 300ms var(--ease); }
a.card--photo:hover .link-arrow { gap: 14px; }

/* ---------- Staggered reveal ----------
   Only for content that genuinely is a list or grid; prose reveals as one. */
.js-anim [data-stagger] > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js-anim [data-stagger].is-in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-anim [data-stagger] > * { opacity: 1; transform: none; transition: none; }
  .rule::after { transform: scaleX(1); transition: none; }
}

/* ---------- Governorate chips ---------- */
.chips li {
  transition: background 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.chips li:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }

/* ---------- Hero scroll cue ---------- */
.hero__cue {
  position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(250,251,252,0.45); border-radius: 999px;
  display: grid; justify-items: center; padding-top: 8px;
}
.hero__cue::before {
  content: ""; width: 3px; height: 8px; border-radius: 2px; background: rgba(250,251,252,0.8);
  animation: cue 1.9s var(--ease) infinite;
}
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1 } 55% { transform: translateY(13px); opacity: 0.2 } }
@media (prefers-reduced-motion: reduce) { .hero__cue::before { animation: none; } }
@media (max-width: 860px) { .hero__cue { display: none; } }

/* ==========================================================================
   Softer geometry
   The page itself runs edge to edge; only the photographic panels — the hero
   and the dark bands — are inset and rounded. Corners get noticeably softer
   throughout to match.
   ========================================================================== */
:root {
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
}

/* The page is one continuous surface; the wrapper adds no frame of its own. */
.canvas { position: relative; }

/* More air between sections, as in the reference. */
.section { padding-block: clamp(84px, 11vw, 148px); }
.section--tight { padding-block: clamp(64px, 8vw, 104px); }

/* Softer corners on the recurring surfaces */
.card, .report-card, .hero__panel, .table-wrap, .needed, .cta,
.media, .tile, .quote { border-radius: var(--radius-lg); }
.media--4x3, .media--3x2, .media--1x1, .media--4x5, .media--16x9, .media--tall {
  border-radius: var(--radius-lg);
}
.btn, .chips li, .status, .lic-tag, .yrswitch, .yrtab, .nav__link, .nav__lang { border-radius: 999px; }

/* The hero is now a panel inside the card rather than a full-bleed band. */
.hero--full { border-radius: 0; }
.band { border-radius: 0; }

/* ---------- Hero as an inset panel ----------
   In the reference the hero is a rounded image panel sitting inside the page
   card, not a band running to its edges. */
.hero--full {
  margin: 0 var(--hero-inset) var(--hero-inset);
  border-radius: var(--radius-xl);
  min-height: clamp(520px, 74vh, 760px);
}
:root { --hero-inset: clamp(10px, 1.4vw, 22px); }
.hero--full .wrap { padding-inline: clamp(28px, 4vw, 64px); }
@media (max-width: 700px) {
  :root { --hero-inset: 0px; --hero-r: 0px; }
}

/* The page hero on inner pages gets the same treatment. */
.page-hero--media {
  margin: 0 var(--hero-inset) var(--hero-inset);
  border-radius: var(--radius-xl);
}
@media (max-width: 700px) { .page-hero--media { border-radius: 0; } }

/* Photographic bands become inset panels too, so the card edge stays clean. */
.band {
  margin-inline: var(--hero-inset);
  border-radius: var(--radius-xl);
}
@media (max-width: 700px) { .band { margin-inline: 0; border-radius: 0; } }

/* ---------- Circular slideshow arrows ----------
   The reference pairs its carousel with round prev/next buttons. */
.slideshow__nav {
  position: absolute; z-index: 3;
  inset-inline-end: clamp(18px, 3vw, 34px); bottom: clamp(18px, 3vw, 30px);
  display: flex; gap: 10px;
}
.snav {
  width: 46px; height: 46px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(250, 251, 252, 0.92);
  border: 1px solid rgba(250, 251, 252, 0.5);
  color: var(--g-900);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}
.snav:hover { background: #fff; transform: translateY(-2px); }
.snav svg { width: 18px; height: 18px; }
[dir="rtl"] .snav svg { transform: scaleX(-1); }
@media (max-width: 560px) { .snav { width: 42px; height: 42px; } }

/* ---------- Impact: text column beside a 2x2 figure block ----------
   The reference pairs its "about" copy with a four-up grid of numbers; the
   figures carry more weight in a square block than in a single wide row. */
.impact {
  display: grid; gap: clamp(36px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
}
.impact__intro .lead { max-width: 38ch; margin-bottom: 28px; }
.impact .yrswitch { margin-bottom: 0; }
@media (max-width: 900px) { .impact { grid-template-columns: 1fr; } }

/* Inside the pairing, the figures sit 2x2 and lose the boxed card look. */
.impact .yrpanels.stats .yrpanel.is-on {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 0; background: none; box-shadow: none;
  gap: clamp(22px, 3vw, 44px) clamp(24px, 4vw, 56px);
}
.impact .yrpanels.stats .yrpanel .stat {
  border: 0 !important; padding: 0;
}
.impact .stat__num { font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 0.95; }
.impact .stat__label { margin-top: 10px; max-width: 24ch; }
@media (max-width: 480px) {
  .impact .yrpanels.stats .yrpanel.is-on { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact .stat__num { font-size: clamp(2rem, 9vw, 2.6rem); }
}


/* ==========================================================================
   Hero: inset at the top of the page, full-bleed once you scroll
   It rests as a rounded panel and opens out to the full width over the first
   stretch of scroll. The box never changes size — only what is visible of it
   — so nothing below reflows while scrolling. --hero-p runs 0 (inset) to 1
   (full bleed) and is written by the script; without JS the hero simply
   stays inset, which is a perfectly good resting state.
   ========================================================================== */
:root { --hero-p: 0; --hero-r: var(--radius-xl); }

.hero--full, .page-hero--media {
  /* The inset is drawn, not laid out. */
  margin: 0;
  border-radius: 0;
  clip-path: inset(
    0
    calc(var(--hero-inset) * (1 - var(--hero-p)))
    calc(var(--hero-inset) * (1 - var(--hero-p)))
    calc(var(--hero-inset) * (1 - var(--hero-p)))
    round calc(var(--hero-r) * (1 - var(--hero-p)))
  );
}

/* Anything anchored to a banner's edge has to clear the clip at its deepest.
   The clearance is a constant, not tied to --hero-p: captions that drifted
   as you scrolled would read as jitter, and a scroll-linked padding would
   put layout back into the scroll path, which this whole approach avoids. */
.hero--full .hero__cue { bottom: calc(26px + var(--hero-inset)); }

.hero--full .hero__credit,
.page-hero--media .page-hero__credit {
  bottom: calc(18px + var(--hero-inset));
  inset-inline-end: calc(var(--gutter) + var(--hero-inset));
}
.hero--full .slideshow__ui {
  bottom: calc(22px + var(--hero-inset));
  inset-inline-start: calc(
    max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) + var(--hero-inset)
  );
}
.hero--full .slideshow__nav {
  bottom: calc(clamp(18px, 3vw, 30px) + var(--hero-inset));
  inset-inline-end: calc(clamp(18px, 3vw, 34px) + var(--hero-inset));
}
/* The inner-page banner lays its text out in flow, so it needs the room in
   its own padding. */
.page-hero--media { padding-bottom: calc(clamp(38px, 5vw, 56px) + var(--hero-inset)); }

/* ==========================================================================
   Governorate network
   HDIP at the centre, a spoke to each governorate. The spokes draw in once
   the section is reached and then carry a slow pulse outward, so the section
   shows the reach rather than listing it. Below 760px the ring collapses to
   a wrapped row — a cramped ellipse would communicate nothing — and under
   reduced motion everything is simply present.
   ========================================================================== */
.netmap {
  position: relative;
  margin-top: clamp(28px, 4vw, 46px);
  aspect-ratio: 2.1 / 1;
  max-height: 480px;
}

.netmap__web { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.netmap__link, .netmap__pulse { stroke-linecap: round; fill: none; }
.netmap__link {
  stroke: rgba(250, 251, 252, 0.26);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.netmap__pulse {
  stroke: var(--brand-lt);
  stroke-width: 2.5;
  stroke-dasharray: 0.08 0.92;
  stroke-dashoffset: 1;
  opacity: 0;
}

/* The hub: the mark the spokes run from. */
.netmap__hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2;
  display: grid; place-items: center;
  width: clamp(104px, 13vw, 164px); aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(14, 73, 163, 0.34);
  border: 1px solid rgba(250, 251, 252, 0.26);
  backdrop-filter: blur(6px);
}
.netmap__hub img { width: 62%; height: auto; display: block; }
/* A soft ring that breathes outward, tying the pulses to the centre. */
.netmap__hub::after {
  content: ""; position: absolute; inset: -10%;
  border-radius: 50%; border: 1px solid rgba(127, 169, 224, 0.45);
  opacity: 0;
}

.netmap__nodes { list-style: none; margin: 0; padding: 0; }
.netmap__node {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px; white-space: nowrap;
  background: rgba(16, 19, 23, 0.62);
  border: 1px solid rgba(250, 251, 252, 0.22);
  backdrop-filter: blur(6px);
  color: rgba(250, 251, 252, 0.94);
  font-size: 0.92rem; font-weight: 500;
  transition: background 300ms var(--ease), border-color 300ms var(--ease),
              transform 300ms var(--ease);
}
.netmap__node:hover {
  background: rgba(14, 73, 163, 0.72);
  border-color: rgba(250, 251, 252, 0.5);
}
.netmap__pin { display: inline-grid; place-items: center; color: var(--brand-lt); }
.netmap__pin svg { width: 15px; height: 15px; }

/* ---- Arrival ---- */
.js-anim .netmap__node { opacity: 0; transform: translate(-50%, -50%) scale(0.86); }
.netmap.is-in .netmap__node {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
  transition: opacity 520ms var(--ease) calc(360ms + var(--i) * 70ms),
              transform 520ms var(--ease) calc(360ms + var(--i) * 70ms),
              background 300ms var(--ease), border-color 300ms var(--ease);
}
.netmap.is-in .netmap__link {
  animation: netdraw 700ms var(--ease) forwards;
  animation-delay: calc(var(--i) * 70ms);
}
.netmap.is-in .netmap__pulse {
  animation: netpulse 3.4s linear infinite;
  animation-delay: calc(1.1s + var(--i) * 260ms);
}
.netmap.is-in .netmap__hub::after { animation: nethub 3.4s var(--ease) infinite; }

@keyframes netdraw { to { stroke-dashoffset: 0; } }
@keyframes netpulse {
  0%   { stroke-dashoffset: 1; opacity: 0; }
  12%  { opacity: 0.95; }
  70%  { opacity: 0; }
  100% { stroke-dashoffset: 0.08; opacity: 0; }
}
@keyframes nethub {
  0%   { transform: scale(0.9); opacity: 0.6; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---- Small screens: a wrapped row, no ring ---- */
@media (max-width: 760px) {
  .netmap { aspect-ratio: auto; max-height: none; display: flex; flex-wrap: wrap; gap: 10px; }
  .netmap__web, .netmap__hub { display: none; }
  .netmap__nodes { display: contents; }
  .netmap__node { position: static; transform: none; }
  .js-anim .netmap__node { transform: none; }
  .netmap.is-in .netmap__node { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .netmap__node { opacity: 1; transform: translate(-50%, -50%); }
  .netmap__link { stroke-dashoffset: 0; }
  .netmap.is-in .netmap__link,
  .netmap.is-in .netmap__pulse,
  .netmap.is-in .netmap__hub::after { animation: none; }
  .netmap__pulse { display: none; }
}

/* ==========================================================================
   Governorate band, light
   The reach section reads as a diagram on paper rather than a photograph.
   The backdrop is a drawn field of figures, not a map: an invented outline
   of Palestine would be worse than no outline at all.
   ========================================================================== */
.band--light {
  color: var(--ink-soft);
  background: linear-gradient(180deg, var(--g-50), var(--g-100));
  padding-block: clamp(56px, 6.5vw, 86px);
}
.band--light h2 { color: var(--ink); }
.band--light .lead { color: var(--ink-soft); }
.band--light .rule::after { background: var(--brand); }

.band--light .band__bg { position: absolute; inset: 0; z-index: 0; }
.crowd {
  width: 100%; height: 100%; display: block;
  color: var(--g-300);
  opacity: 0.55;
}
.band--light .wrap { position: relative; z-index: 1; }

/* The network on a light ground */
.band--light .netmap { aspect-ratio: 2.6 / 1; max-height: 380px; }
.band--light .netmap__link { stroke: var(--g-400); }
.band--light .netmap__pulse { stroke: var(--brand); }
.band--light .netmap__hub {
  background: #fff;
  border-color: var(--g-300);
  box-shadow: 0 14px 40px -22px rgba(14, 35, 68, 0.55);
}
.band--light .netmap__hub::after { border-color: rgba(14, 73, 163, 0.35); }
.band--light .netmap__node {
  background: #fff;
  border-color: var(--line-strong, var(--g-300));
  color: var(--ink);
  box-shadow: 0 8px 22px -16px rgba(14, 35, 68, 0.5);
}
.band--light .netmap__node:hover {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.band--light .netmap__node:hover .netmap__pin { color: #fff; }
.band--light .netmap__pin { color: var(--brand); }

@media (max-width: 760px) {
  .band--light .netmap { aspect-ratio: auto; max-height: none; }
}

/* The light band drops the dark scrim the photographic bands rely on. */
.band--light::before { content: none; }
.band--light { padding-block: clamp(48px, 5.5vw, 74px); }
.band--light .netmap { margin-top: clamp(18px, 2.4vw, 30px); max-height: 300px; }
.band--light .lead { margin-bottom: 0; }

/* ==========================================================================
   Section rail
   A quick-navigation column on the trailing edge. Markers only until hover
   or focus, when the section's name slides out beside it. Built by script
   from the page's own headings, so it never promises a link that is not
   there. Hidden where there is no room for it beside the content.
   ========================================================================== */
.rail {
  position: fixed; z-index: 40;
  inset-inline-end: clamp(10px, 1.4vw, 20px);
  top: 50%; transform: translateY(-50%);
}
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rail a {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 5px 4px; text-decoration: none; color: var(--ink-mute);
  font-size: 0.78rem; line-height: 1;
}
.rail__name {
  max-width: 0; overflow: hidden; white-space: nowrap;
  opacity: 0; transform: translateX(6px);
  transition: max-width 320ms var(--ease), opacity 220ms var(--ease),
              transform 320ms var(--ease);
}
[dir="rtl"] .rail__name { transform: translateX(-6px); }
.rail__dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--g-400);
  box-shadow: 0 0 0 0 rgba(14, 73, 163, 0.18);
  transition: background 260ms var(--ease), transform 260ms var(--ease),
              box-shadow 260ms var(--ease);
}
.rail a.is-on .rail__dot {
  background: var(--brand); transform: scale(1.35);
  box-shadow: 0 0 0 5px rgba(14, 73, 163, 0.14);
}
.rail a:hover .rail__dot, .rail a:focus-visible .rail__dot { background: var(--brand); }
.rail a:hover .rail__name,
.rail a:focus-visible .rail__name,
.rail:hover a.is-on .rail__name {
  max-width: 190px; opacity: 1; transform: none;
  color: var(--ink);
}
/* A pill behind the names so they stay legible over any section. */
.rail:hover a .rail__name, .rail a:focus-visible .rail__name {
  background: rgba(250, 251, 252, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 11px;
  box-shadow: 0 10px 28px -20px rgba(14, 35, 68, 0.6);
}
.rail a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 999px; }

/* No room for it beside the content, and nothing to gain on a phone. */
@media (max-width: 1180px) { .rail { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .rail__name, .rail__dot { transition: none; }
}

/* The diagram is its own centred block, not a left-aligned one. */
.netmap { margin-inline: auto; }

/* ---- Footer lists ----
   These lost their reset in an earlier edit and came back as bulleted,
   underlined browser defaults. */
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer__col li + li { margin-top: 2px; }
.footer__col a {
  color: rgba(242, 244, 246, 0.72);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: var(--g-50); text-decoration: underline; }

/* The band earns its height from the diagram, not from padding. */
.band--light { padding-block: clamp(42px, 4.6vw, 62px); }
.band--light .netmap { max-height: 268px; }




:root {
  /* One wave field, shared by the closing panel and the footer. Single quotes
     throughout the SVG: a double quote would close the url("...") string
     early and take the rest of the declaration with it. */
  --wave-field: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 420' preserveAspectRatio='none' fill='none' stroke-width='1.8'><path d='M-200,18 Q-100,-12 0,18 T200,18 T400,18 T600,18 T800,18 T1000,18 T1200,18 T1400,18' stroke='%23A9C6EA' stroke-opacity='0.17'/><path d='M-100,56 Q0,16 100,56 T300,56 T500,56 T700,56 T900,56 T1100,56 T1300,56 T1500,56' stroke='%23A9C6EA' stroke-opacity='0.25'/><path d='M-200,94 Q-100,44 0,94 T200,94 T400,94 T600,94 T800,94 T1000,94 T1200,94 T1400,94' stroke='%23A9C6EA' stroke-opacity='0.33'/><path d='M-100,132 Q0,102 100,132 T300,132 T500,132 T700,132 T900,132 T1100,132 T1300,132 T1500,132' stroke='%23A9C6EA' stroke-opacity='0.41'/><path d='M-200,170 Q-100,130 0,170 T200,170 T400,170 T600,170 T800,170 T1000,170 T1200,170 T1400,170' stroke='%23A9C6EA' stroke-opacity='0.17'/><path d='M-100,208 Q0,158 100,208 T300,208 T500,208 T700,208 T900,208 T1100,208 T1300,208 T1500,208' stroke='%23A9C6EA' stroke-opacity='0.25'/><path d='M-200,246 Q-100,216 0,246 T200,246 T400,246 T600,246 T800,246 T1000,246 T1200,246 T1400,246' stroke='%23A9C6EA' stroke-opacity='0.33'/><path d='M-100,284 Q0,244 100,284 T300,284 T500,284 T700,284 T900,284 T1100,284 T1300,284 T1500,284' stroke='%23A9C6EA' stroke-opacity='0.41'/><path d='M-200,322 Q-100,272 0,322 T200,322 T400,322 T600,322 T800,322 T1000,322 T1200,322 T1400,322' stroke='%23A9C6EA' stroke-opacity='0.17'/><path d='M-100,360 Q0,330 100,360 T300,360 T500,360 T700,360 T900,360 T1100,360 T1300,360 T1500,360' stroke='%23A9C6EA' stroke-opacity='0.25'/><path d='M-200,398 Q-100,358 0,398 T200,398 T400,398 T600,398 T800,398 T1000,398 T1200,398 T1400,398' stroke='%23A9C6EA' stroke-opacity='0.33'/></svg>");
}

/* ==========================================================================
   Closing panel: wave field
   Contour lines in the logo blue, drifting slowly across the panel. They are
   masked away from the middle so the heading and the button keep their full
   contrast against the dark ground. The SVG uses single quotes throughout —
   a double quote would close the url("...") string early and take the rest
   of the rule with it.
   ========================================================================== */
.cta::after {
  content: "";
  position: absolute; inset: -4% -12%;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 420' preserveAspectRatio='none' fill='none' stroke-width='1.6'><path d='M-200,24 Q-100,-6 0,24 T200,24 T400,24 T600,24 T800,24 T1000,24 T1200,24 T1400,24' stroke='%23A9C6EA' stroke-opacity='0.10'/><path d='M-100,68 Q0,29 100,68 T300,68 T500,68 T700,68 T900,68 T1100,68 T1300,68 T1500,68' stroke='%23A9C6EA' stroke-opacity='0.15'/><path d='M-200,112 Q-100,64 0,112 T200,112 T400,112 T600,112 T800,112 T1000,112 T1200,112 T1400,112' stroke='%23A9C6EA' stroke-opacity='0.21'/><path d='M-100,156 Q0,126 100,156 T300,156 T500,156 T700,156 T900,156 T1100,156 T1300,156 T1500,156' stroke='%23A9C6EA' stroke-opacity='0.27'/><path d='M-200,200 Q-100,161 0,200 T200,200 T400,200 T600,200 T800,200 T1000,200 T1200,200 T1400,200' stroke='%23A9C6EA' stroke-opacity='0.10'/><path d='M-100,244 Q0,196 100,244 T300,244 T500,244 T700,244 T900,244 T1100,244 T1300,244 T1500,244' stroke='%23A9C6EA' stroke-opacity='0.15'/><path d='M-200,288 Q-100,258 0,288 T200,288 T400,288 T600,288 T800,288 T1000,288 T1200,288 T1400,288' stroke='%23A9C6EA' stroke-opacity='0.21'/><path d='M-100,332 Q0,293 100,332 T300,332 T500,332 T700,332 T900,332 T1100,332 T1300,332 T1500,332' stroke='%23A9C6EA' stroke-opacity='0.27'/><path d='M-200,376 Q-100,328 0,376 T200,376 T400,376 T600,376 T800,376 T1000,376 T1200,376 T1400,376' stroke='%23A9C6EA' stroke-opacity='0.10'/></svg>");
  background-size: 140% 100%;
  background-repeat: repeat-x;
  -webkit-mask-image: radial-gradient(118% 92% at 50% 50%,
    transparent 0%, transparent 22%, #000 62%);
  mask-image: radial-gradient(118% 92% at 50% 50%,
    transparent 0%, transparent 22%, #000 62%);
  animation: ctawave 34s linear infinite;
}

@keyframes ctawave {
  from { background-position: 0 50%; }
  to   { background-position: -1200px 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .cta::after { animation: none; }
}

/* ---- The same waves across the footer ----
   Every part of the footer carries text, so there is no middle to mask out
   here. Instead the field runs at a low, even strength: the peak stroke is
   0.41 and this multiplies it to about 0.14, which leaves the dimmest footer
   text — the light-blue column headings — above 5:1. It drifts more slowly
   than the panel so it stays background. */
.site-footer { position: relative; }
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--wave-field);
  background-size: 160% 100%;
  background-repeat: repeat-x;
  opacity: 0.34;
  animation: ctawave 58s linear infinite;
}
.site-footer > .wrap { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .site-footer::before { animation: none; }
}

/* ==========================================================================
   Where we work — figure column beside a ring
   A text column carrying the headline figure, with HDIP at the centre of a
   ring of governorates. The ring needs a roughly square area, which this
   two-column split gives it.
   ========================================================================== */
.where {
  display: grid; align-items: center;
  gap: clamp(32px, 5vw, 76px);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}
@media (max-width: 920px) { .where { grid-template-columns: 1fr; } }

.where__intro .eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 22px;
}
.where__intro .eyebrow .rule { width: 38px; }
.where__intro .lead { max-width: 34ch; margin-bottom: 26px; }

/* The headline figure does the work a heading would. */
.figure-head { margin: 0 0 20px; line-height: 1; }
.figure-head__num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(5rem, 11vw, 9.5rem); line-height: 0.82;
  letter-spacing: -0.045em; color: var(--brand);
}
.figure-head__label {
  display: block; margin-top: 14px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(0.82rem, 1.2vw, 0.98rem);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand-lt);
}

/* ---- The ring ---- */
.band--light .netmap {
  aspect-ratio: 1 / 1; max-height: none;
  /* An explicit width, not max-width plus auto margins: every child here is
     absolutely positioned, so a grid item that stops stretching collapses to
     almost nothing. */
  width: min(100%, 620px);
  margin-inline: auto;
}

/* Nodes are a disc with the name beneath, not a pill. */
.band--light .netmap__node {
  flex-direction: column; gap: 10px;
  padding: 0; border: 0; background: none; box-shadow: none;
  backdrop-filter: none;
  text-align: center; white-space: nowrap;
  font-size: 0.86rem; font-weight: 600; color: var(--ink);
}
.band--light .netmap__node:hover { background: none; }

.netmap__disc {
  display: block; width: clamp(74px, 11vw, 116px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  background: #fff;
  border: 1px solid var(--g-300);
  box-shadow: 0 14px 34px -22px rgba(14, 35, 68, 0.6);
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.netmap__disc .media { aspect-ratio: 1; border-radius: 50%; height: 100%; }
.netmap__disc .media img { width: 100%; height: 100%; object-fit: cover; }
.netmap__node:hover .netmap__disc { transform: scale(1.06); border-color: var(--brand); }

/* Governorates with no photograph of their own get a marker, not someone
   else's picture captioned with their name. */
.netmap__disc--mark {
  display: grid; place-items: center;
  background: var(--brand-sk); border-color: var(--brand-lt); color: var(--brand);
}
.netmap__disc--mark svg { width: 30%; height: 30%; }

.band--light .netmap__hub {
  width: clamp(116px, 17%, 186px);
  background: #fff; border: 1px solid var(--g-200);
  box-shadow: 0 20px 56px -28px rgba(14, 35, 68, 0.55);
}
.band--light .netmap__hub img { width: 58%; }

/* Dotted fields, as in the reference, well clear of the ring. */
.netmap::before, .netmap::after {
  content: ""; position: absolute; z-index: 0;
  width: 88px; height: 78px;
  background-image: radial-gradient(var(--brand-lt) 1.6px, transparent 1.6px);
  background-size: 15px 15px;
  opacity: 0.5; pointer-events: none;
}
.netmap::before { inset-block-start: 4%; inset-inline-start: -2%; }
.netmap::after  { inset-block-end: 6%; inset-inline-end: -2%; }

@media (max-width: 760px) {
  .band--light .netmap { aspect-ratio: auto; max-width: none; }
  .band--light .netmap__node { flex-direction: row; gap: 10px; }
  .netmap__disc { width: 40px; }
  .netmap::before, .netmap::after { display: none; }
}

/* ==========================================================================
   Annual report, standing as a book
   Drawn from HDIP's own cover elements rather than a rendered mockup, so
   nothing on the cover is invented. Purely decorative — the link beside it
   carries the meaning, and the figure is hidden from assistive technology.
   ========================================================================== */
.where--reports { align-items: center; }
.where--reports .where__intro .lead { max-width: 40ch; }
.where--reports .hero__actions { margin-top: 30px; align-items: center; gap: 20px; }

.bookshot {
  position: relative;
  display: grid; place-items: center;
  padding-block: clamp(24px, 4vw, 50px);
  perspective: 1400px;
}
.bookshot__book {
  position: relative;
  width: clamp(190px, 24vw, 272px);
  aspect-ratio: 3 / 4;
  transform: rotateY(-14deg) rotateX(2deg);
  transform-style: preserve-3d;
  box-shadow: 34px 44px 70px -38px rgba(14, 35, 68, 0.55);
  border-radius: 3px 8px 8px 3px;
}
[dir="rtl"] .bookshot__book { transform: rotateY(14deg) rotateX(2deg); }

.bookshot__face {
  position: absolute; inset: 0;
  background: #fff;
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  display: grid; grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: clamp(14px, 1.8vw, 22px) clamp(14px, 1.8vw, 22px) 0;
  border: 1px solid var(--g-200);
}
/* The board edge along the binding. */
.bookshot__spine {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 11px;
  background: linear-gradient(90deg, rgba(14, 35, 68, 0.22), rgba(14, 35, 68, 0.04));
  border-radius: 3px 0 0 3px;
  z-index: 2;
}
[dir="rtl"] .bookshot__spine {
  background: linear-gradient(270deg, rgba(14, 35, 68, 0.22), rgba(14, 35, 68, 0.04));
}

.bookshot__mark { width: 52px; height: auto; }
.bookshot__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem); line-height: 1.12;
  letter-spacing: -0.02em; color: var(--ink);
}
.bookshot__photo { overflow: hidden; border-radius: 4px 4px 0 0; }
.bookshot__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The second copy it stands on. */
.bookshot__base {
  position: absolute; z-index: -1;
  bottom: clamp(14px, 2.4vw, 32px);
  width: clamp(210px, 27vw, 300px); height: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(180deg, #fff, var(--g-200));
  border: 1px solid var(--g-200);
  border-radius: 4px;
  box-shadow: 0 26px 40px -28px rgba(14, 35, 68, 0.5);
  transform: rotateX(4deg);
}

@media (max-width: 920px) {
  .bookshot__book { transform: none; }
  [dir="rtl"] .bookshot__book { transform: none; }
}

/* With the ring and its dot fields carrying the section, the crowd texture
   steps right back — it is ground, not pattern. */
.crowd { opacity: 0.2; }

/* Arabic takes neither the mono face nor tracking, and has no letter case. */
[dir="rtl"] .where__intro .eyebrow,
[dir="rtl"] .figure-head__label {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.92rem;
}


/* ==========================================================================
   Four years of results — dark
   A figure column beside a large numeral filled with a cross-stitch field.
   The stitch pattern is geometric decoration, not a reproduction of any
   particular traditional motif.
   ========================================================================== */
:root { --ink-deep: #0E1C2E; --stitch: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='128' height='128' viewBox='0 0 128 128'><path d='M3.5,8 h9.0 M8,3.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M19.5,8 h9.0 M24,3.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M35.5,8 h9.0 M40,3.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M51.5,8 h9.0 M56,3.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M67.5,8 h9.0 M72,3.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M83.5,8 h9.0 M88,3.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M99.5,8 h9.0 M104,3.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M115.5,8 h9.0 M120,3.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M3.5,24 h9.0 M8,19.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M19.5,24 h9.0 M24,19.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M35.5,24 h9.0 M40,19.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M51.5,24 h9.0 M56,19.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.2' stroke-width='3' stroke-linecap='square'/><path d='M67.5,24 h9.0 M72,19.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M83.5,24 h9.0 M88,19.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M99.5,24 h9.0 M104,19.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M115.5,24 h9.0 M120,19.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M3.5,40 h9.0 M8,35.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M19.5,40 h9.0 M24,35.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M35.5,40 h9.0 M40,35.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M51.5,40 h9.0 M56,35.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M67.5,40 h9.0 M72,35.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M83.5,40 h9.0 M88,35.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.2' stroke-width='3' stroke-linecap='square'/><path d='M99.5,40 h9.0 M104,35.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M115.5,40 h9.0 M120,35.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M3.5,56 h9.0 M8,51.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M19.5,56 h9.0 M24,51.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.2' stroke-width='3' stroke-linecap='square'/><path d='M35.5,56 h9.0 M40,51.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M51.5,56 h9.0 M56,51.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M67.5,56 h9.0 M72,51.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M83.5,56 h9.0 M88,51.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M99.5,56 h9.0 M104,51.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M115.5,56 h9.0 M120,51.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M3.5,72 h9.0 M8,67.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M19.5,72 h9.0 M24,67.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M35.5,72 h9.0 M40,67.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M51.5,72 h9.0 M56,67.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M67.5,72 h9.0 M72,67.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M83.5,72 h9.0 M88,67.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M99.5,72 h9.0 M104,67.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.2' stroke-width='3' stroke-linecap='square'/><path d='M115.5,72 h9.0 M120,67.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M3.5,88 h9.0 M8,83.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M19.5,88 h9.0 M24,83.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M35.5,88 h9.0 M40,83.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.2' stroke-width='3' stroke-linecap='square'/><path d='M51.5,88 h9.0 M56,83.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M67.5,88 h9.0 M72,83.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M83.5,88 h9.0 M88,83.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M99.5,88 h9.0 M104,83.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M115.5,88 h9.0 M120,83.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M3.5,104 h9.0 M8,99.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M19.5,104 h9.0 M24,99.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M35.5,104 h9.0 M40,99.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M51.5,104 h9.0 M56,99.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M67.5,104 h9.0 M72,99.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.2' stroke-width='3' stroke-linecap='square'/><path d='M83.5,104 h9.0 M88,99.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M99.5,104 h9.0 M104,99.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M115.5,104 h9.0 M120,99.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M3.5,120 h9.0 M8,115.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M19.5,120 h9.0 M24,115.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M35.5,120 h9.0 M40,115.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M51.5,120 h9.0 M56,115.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M67.5,120 h9.0 M72,115.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M83.5,120 h9.0 M88,115.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/><path d='M99.5,120 h9.0 M104,115.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.45' stroke-width='3' stroke-linecap='square'/><path d='M115.5,120 h9.0 M120,115.5 v9.0' stroke='%238FB6E8' stroke-opacity='0.95' stroke-width='3' stroke-linecap='square'/></svg>"); }

.section--impact {
  position: relative; overflow: hidden;
  background: var(--ink-deep);
  color: rgba(234, 240, 248, 0.78);
}
.section--impact h2 { color: #fff; }
.section--impact .lead { color: rgba(234, 240, 248, 0.82); }
.section--impact .where__intro .eyebrow { color: var(--brand-lt); }
.section--impact .where__intro .eyebrow .rule::after { background: var(--brand-lt); }

.where--impact { margin-bottom: clamp(44px, 6vw, 76px); }

/* Faint survey marks in the corners, as in the reference. */
.xfield {
  position: absolute; z-index: 0; pointer-events: none;
  width: 190px; height: 190px; opacity: 0.5;
  background-image: var(--stitch);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 72%);
}
.xfield--a { inset-block-start: -34px; inset-inline-end: 4%; }
.xfield--b { inset-block-end: -40px; inset-inline-end: 16%; }
.section--impact .wrap { position: relative; z-index: 1; }

/* ---- The numeral ---- */
.stitchnum { display: grid; justify-items: center; gap: 18px; }
.stitchnum__fig {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(9rem, 22vw, 20rem); line-height: 0.78;
  letter-spacing: -0.05em;
  /* The stitch field shows through the glyph, over a solid brand base. */
  background-image: var(--stitch), linear-gradient(180deg, var(--brand), #1557BA);
  background-size: 54px 54px, 100% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stitchnum__label {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(234, 240, 248, 0.72);
  padding-inline-start: 0.34em;   /* tracking adds a trailing gap */
}
[dir="rtl"] .stitchnum__label {
  font-family: var(--font-body); letter-spacing: 0; text-transform: none;
  font-size: 1rem; padding-inline-start: 0;
}

/* ---- Year switch and figures on the dark ground ---- */
.section--impact .yrswitch { background: rgba(255, 255, 255, 0.07); }
.section--impact .yrtab { color: rgba(234, 240, 248, 0.68); }
.section--impact .yrtab.is-on, .section--impact .yrtab[aria-selected="true"] {
  background: #fff; color: var(--brand-dk);
}
.section--impact .yrtab:hover { color: #fff; }
.section--impact .yrpanels.stats .yrpanel.is-on {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
  border: 0; background: none; box-shadow: none;
}
.section--impact .stat { border: 0 !important; padding: 0; }
.section--impact .stat__num {
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1;
}
.section--impact .stat__label { color: rgba(234, 240, 248, 0.72); margin-top: 10px; }
.section--impact :focus-visible { outline-color: var(--g-50); }

@media (max-width: 920px) {
  .section--impact .yrpanels.stats .yrpanel.is-on { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xfield--b { display: none; }
}

/* Tighter, and the numeral carries more of the section. */
.section--impact { padding-block: clamp(54px, 6vw, 88px); }
.where--impact { margin-bottom: clamp(22px, 2.6vw, 38px); align-items: center; }
.stitchnum { gap: 8px; }
.stitchnum__fig { font-size: clamp(11rem, 27vw, 27rem); line-height: 0.74; }
.section--impact .yrswitch { margin-bottom: clamp(22px, 2.6vw, 32px); }

/* ==========================================================================
   Founding mark
   The founding year as the section's image: olive branches drawn
   geometrically with a cross-stitch field behind the numeral. Decoration in
   HDIP's own register rather than a photograph standing in for one, and
   hidden from assistive technology — the year is in the heading beside it.
   The timeline and the programme links below are real content.
   ========================================================================== */
.where--who { align-items: center; }

.yearmark__art {
  position: relative;
  aspect-ratio: 600 / 420;
  display: grid; place-items: center;
}
.yearmark__branches { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.yearmark__stitch {
  position: absolute; inset: 2% 16% 10%;
  z-index: 0;
  background-image: var(--stitch);
  background-size: clamp(34px, 5vw, 52px) clamp(34px, 5vw, 52px);
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(58% 62% at 50% 42%, #000 18%, transparent 78%);
  mask-image: radial-gradient(58% 62% at 50% 42%, #000 18%, transparent 78%);
}
.yearmark__fig {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(4.4rem, 12vw, 9rem); line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand);
}

/* 1989 ——————— Today */
.yearline {
  display: flex; align-items: center; gap: 14px;
  margin: clamp(10px, 1.6vw, 20px) 0 0;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.yearline__bar { flex: 1 1 auto; height: 1px; background: var(--g-300); position: relative; }
.yearline__bar::before, .yearline__bar::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand); transform: translateY(-50%);
}
.yearline__bar::before { inset-inline-start: 0; }
.yearline__bar::after { inset-inline-end: 0; }
[dir="rtl"] .yearline { font-family: var(--font-body); letter-spacing: 0; }

/* The programme areas, as the pillars under the timeline. */
.pillars {
  list-style: none; margin: clamp(16px, 2vw, 24px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px clamp(14px, 2vw, 26px);
}
.pillars li { position: relative; }
.pillars li + li::before {
  content: ""; position: absolute; top: 50%;
  inset-inline-start: calc(clamp(14px, 2vw, 26px) / -2);
  width: 1px; height: 14px; background: var(--line);
  transform: translateY(-50%);
}
.pillars a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.84rem; font-weight: 500;
  transition: color 0.2s var(--ease);
}
.pillars a:hover { color: var(--brand); text-decoration: underline; }

@media (max-width: 920px) {
  .yearmark { max-width: 560px; margin-inline: auto; }
}

/* ---- Founding mark: supplied artwork ----
   The source sits on white; multiply drops that ground into the page so the
   figure has no visible box edge, without repainting the artwork's pixels. */
.yearmark__art { aspect-ratio: auto; display: block; }
.yearmark__art img {
  display: block; width: 100%; height: auto;
  mix-blend-mode: multiply;
}

/* ---- Featured projects: a deeper ground ----
   The cards are white, so the default alt tone gave them almost nothing to
   sit against. */
.section--alt { background: var(--g-200); }

/* ---- Who we are: tighter ----
   The figure is tall, so the column beside it does not need to be. */
.where--who { gap: clamp(28px, 3.5vw, 56px); }
.where--who .where__intro .lead { max-width: 44ch; margin-bottom: 22px; }
/* The base .facts is a flex row that wraps; here the three facts should sit
   on one line, so switch it to a three-column grid. */
.where--who .facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px clamp(14px, 1.6vw, 24px);
  margin-block: 0;
}
.where--who .facts b { font-size: 1.28rem; }
.where--who .facts span { font-size: 0.8rem; }
.where--who .facts li { padding: 0; border: 0; }
.where--who .where__intro > p:last-child { margin-top: 20px; }
.yearmark .yearline { margin-top: clamp(6px, 1vw, 12px); }
.yearmark .pillars { margin-top: clamp(10px, 1.4vw, 16px); }

@media (max-width: 620px) {
  .where--who .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* The figure sets the section's height, so cap it. */
.yearmark { max-width: 470px; margin-inline: auto; }


/* ---- Annual report: supplied cover mockup ----
   Published as WebP with its alpha intact, not flattened onto the section
   colour: a baked ground would be an opaque rectangle sitting on top of the
   stitch field behind it, with a visible edge. No blend mode either — the
   cover is white and multiply would dissolve it into the grey. */
.bookshot { display: grid; place-items: center; padding-block: 0; perspective: none; }
.bookshot img {
  display: block; width: 100%; height: auto; max-width: 420px;
}

/* ---- Footer: stitch patches, not a wash ----
   The cross-stitch field in a few drifts rather than edge to edge, masked so
   it gathers in places and fades out between them. Every part of the footer
   carries text, so the strength is capped: the strongest stroke in the tile
   is 0.95 and this holds the composite near 0.17, which keeps the dimmest
   footer text — the light-blue column headings — above 5:1. */
.site-footer::before {
  background-image: var(--stitch);
  background-size: clamp(38px, 4vw, 52px) clamp(38px, 4vw, 52px);
  background-repeat: repeat;
  opacity: 0.18;
  animation: none;

  -webkit-mask-image:
    radial-gradient(42% 62% at 8% 22%, #000 0%, rgba(0,0,0,0.55) 42%, transparent 76%),
    radial-gradient(34% 58% at 92% 70%, #000 0%, rgba(0,0,0,0.5) 40%, transparent 74%),
    radial-gradient(26% 44% at 62% 8%, #000 0%, transparent 72%),
    radial-gradient(30% 50% at 34% 96%, #000 0%, transparent 70%);
  mask-image:
    radial-gradient(42% 62% at 8% 22%, #000 0%, rgba(0,0,0,0.55) 42%, transparent 76%),
    radial-gradient(34% 58% at 92% 70%, #000 0%, rgba(0,0,0,0.5) 40%, transparent 74%),
    radial-gradient(26% 44% at 62% 8%, #000 0%, transparent 72%),
    radial-gradient(30% 50% at 34% 96%, #000 0%, transparent 70%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* ---- Section opening: label, then heading ----
   Was scoped to the two-column sections; it is the house pattern now. */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 18px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow .rule { width: 38px; flex: none; }
.section--ink .eyebrow, .band .eyebrow { color: var(--brand-lt); }
[dir="rtl"] .eyebrow {
  font-family: var(--font-body); letter-spacing: 0;
  text-transform: none; font-size: 0.92rem;
}


/* ==========================================================================
   Stitch field overlay
   The cross-stitch motif as a MASK rather than a coloured image, so each
   section tints it from its own ground — a shade of the surface it sits on,
   not one fixed blue everywhere. Two mask layers intersect: the repeating
   tile, and a soft patch that gathers it in one area and fades it out.
   Strength is capped so text over it keeps AA; the per-section figures are
   noted at each tint.
   ========================================================================== */
:root { --stitch-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='128' height='128' viewBox='0 0 128 128' fill='none'><path d='M3,8 h10 M8,3 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M19,8 h10 M24,3 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M35,8 h10 M40,3 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M51,8 h10 M56,3 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M67,8 h10 M72,3 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M83,8 h10 M88,3 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M99,8 h10 M104,3 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M115,8 h10 M120,3 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M3,24 h10 M8,19 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M19,24 h10 M24,19 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M35,24 h10 M40,19 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M51,24 h10 M56,19 v10' stroke='%23fff' stroke-opacity='0.24' stroke-width='3.8' stroke-linecap='square'/><path d='M67,24 h10 M72,19 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M83,24 h10 M88,19 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M99,24 h10 M104,19 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M115,24 h10 M120,19 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M3,40 h10 M8,35 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M19,40 h10 M24,35 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M35,40 h10 M40,35 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M51,40 h10 M56,35 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M67,40 h10 M72,35 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M83,40 h10 M88,35 v10' stroke='%23fff' stroke-opacity='0.24' stroke-width='3.8' stroke-linecap='square'/><path d='M99,40 h10 M104,35 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M115,40 h10 M120,35 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M3,56 h10 M8,51 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M19,56 h10 M24,51 v10' stroke='%23fff' stroke-opacity='0.24' stroke-width='3.8' stroke-linecap='square'/><path d='M35,56 h10 M40,51 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M51,56 h10 M56,51 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M67,56 h10 M72,51 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M83,56 h10 M88,51 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M99,56 h10 M104,51 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M115,56 h10 M120,51 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M3,72 h10 M8,67 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M19,72 h10 M24,67 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M35,72 h10 M40,67 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M51,72 h10 M56,67 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M67,72 h10 M72,67 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M83,72 h10 M88,67 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M99,72 h10 M104,67 v10' stroke='%23fff' stroke-opacity='0.24' stroke-width='3.8' stroke-linecap='square'/><path d='M115,72 h10 M120,67 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M3,88 h10 M8,83 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M19,88 h10 M24,83 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M35,88 h10 M40,83 v10' stroke='%23fff' stroke-opacity='0.24' stroke-width='3.8' stroke-linecap='square'/><path d='M51,88 h10 M56,83 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M67,88 h10 M72,83 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M83,88 h10 M88,83 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M99,88 h10 M104,83 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M115,88 h10 M120,83 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M3,104 h10 M8,99 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M19,104 h10 M24,99 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M35,104 h10 M40,99 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M51,104 h10 M56,99 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M67,104 h10 M72,99 v10' stroke='%23fff' stroke-opacity='0.24' stroke-width='3.8' stroke-linecap='square'/><path d='M83,104 h10 M88,99 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M99,104 h10 M104,99 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M115,104 h10 M120,99 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M3,120 h10 M8,115 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M19,120 h10 M24,115 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M35,120 h10 M40,115 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M51,120 h10 M56,115 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M67,120 h10 M72,115 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M83,120 h10 M88,115 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/><path d='M99,120 h10 M104,115 v10' stroke='%23fff' stroke-opacity='0.5' stroke-width='3.8' stroke-linecap='square'/><path d='M115,120 h10 M120,115 v10' stroke='%23fff' stroke-opacity='1.0' stroke-width='3.8' stroke-linecap='square'/></svg>"); }

.stitchfield {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-color: var(--stitch-tint, currentColor);
  opacity: var(--stitch-op, 0.6);

  -webkit-mask-image: var(--stitch-mask),
    radial-gradient(var(--pw, 46%) var(--ph, 62%) at var(--px, 20%) var(--py, 30%),
                    #000 0%, rgba(0,0,0,0.55) 44%, transparent 76%);
  mask-image: var(--stitch-mask),
    radial-gradient(var(--pw, 46%) var(--ph, 62%) at var(--px, 20%) var(--py, 30%),
                    #000 0%, rgba(0,0,0,0.55) 44%, transparent 76%);
  -webkit-mask-repeat: repeat, no-repeat;
  mask-repeat: repeat, no-repeat;
  -webkit-mask-size: var(--stitch-tile, 44px) var(--stitch-tile, 44px), 100% 100%;
  mask-size: var(--stitch-tile, 44px) var(--stitch-tile, 44px), 100% 100%;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Annual reporting — the main placement. Tint is a darker shade of the
   section's own grey. Measured on it: heading ~10.6:1, lead ~4.8:1. */
/* The field spans the section, not the wrap — inside the wrap its edges cut
   the patches into hard-edged blocks. */
.section--alt { position: relative; overflow: hidden; }
.section--alt > .wrap { position: relative; z-index: 1; }
.section--alt .stitchfield { --stitch-tint: #B2BDCA; --stitch-op: 0.85; }
/* The finer cell needs more strength per mark to read at all; it is safe
   here because these three patches sit clear of the text column. */


/* Impact — a lighter shade of its navy. */
.section--impact .stitchfield { --stitch-tint: #426892; --stitch-op: 0.6; }

/* Footer — a lighter shade of its own ground, not brand blue.
   Measured: about-text ~5.1:1, column headings ~5.1:1. */
.site-footer .stitchfield { --stitch-tint: #465260; --stitch-op: 0.55; }


/* The footer's wave wash is replaced by the tinted stitch patches above. */
.site-footer::before { content: none; }


/* Two motifs at a finer cell: crosses, and a dot variant to alternate with
   them so no section repeats the same texture twice. */
:root { --dot-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='128' height='128' viewBox='0 0 128 128'><circle cx='8' cy='8' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='24' cy='8' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='40' cy='8' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='56' cy='8' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='72' cy='8' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='88' cy='8' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='104' cy='8' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='120' cy='8' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='8' cy='24' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='24' cy='24' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='40' cy='24' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='56' cy='24' r='3.0' fill='%23fff' fill-opacity='0.22'/><circle cx='72' cy='24' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='88' cy='24' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='104' cy='24' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='120' cy='24' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='8' cy='40' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='24' cy='40' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='40' cy='40' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='56' cy='40' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='72' cy='40' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='88' cy='40' r='1.9' fill='%23fff' fill-opacity='0.22'/><circle cx='104' cy='40' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='120' cy='40' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='8' cy='56' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='24' cy='56' r='3.0' fill='%23fff' fill-opacity='0.22'/><circle cx='40' cy='56' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='56' cy='56' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='72' cy='56' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='88' cy='56' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='104' cy='56' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='120' cy='56' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='8' cy='72' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='24' cy='72' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='40' cy='72' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='56' cy='72' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='72' cy='72' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='88' cy='72' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='104' cy='72' r='3.0' fill='%23fff' fill-opacity='0.22'/><circle cx='120' cy='72' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='8' cy='88' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='24' cy='88' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='40' cy='88' r='1.9' fill='%23fff' fill-opacity='0.22'/><circle cx='56' cy='88' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='72' cy='88' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='88' cy='88' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='104' cy='88' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='120' cy='88' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='8' cy='104' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='24' cy='104' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='40' cy='104' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='56' cy='104' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='72' cy='104' r='3.0' fill='%23fff' fill-opacity='0.22'/><circle cx='88' cy='104' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='104' cy='104' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='120' cy='104' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='8' cy='120' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='24' cy='120' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='40' cy='120' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='56' cy='120' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='72' cy='120' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='88' cy='120' r='3.0' fill='%23fff' fill-opacity='1.0'/><circle cx='104' cy='120' r='1.9' fill='%23fff' fill-opacity='0.5'/><circle cx='120' cy='120' r='3.0' fill='%23fff' fill-opacity='1.0'/></svg>"); }
.stitchfield { --stitch-tile: 34px; }
.stitchfield--dots { --stitch-mask: var(--dot-mask); --stitch-tile: 26px; }
