/* ---------- Design tokens (driven by Tweaks via CSS vars) ---------- */
:root {
  /* Pharo brand palette: Indigo + Bone + Acacia (default) */
  --bg: #E8E3D8;          /* Bone */
  --bg-deep: #D8D2C3;
  --ink: #002F6C;         /* Pharo blue — Pantone 648 C */
  --ink-soft: #234C84;
  --ink-mute: #5A6473;   /* darkened for WCAG AA (>=4.5:1 on bone/white) */
  --rule: rgba(0, 47, 108, 0.18);
  --accent: #D9A441;      /* Acacia Gold */
  --accent-soft: #E9C06B;
  --paper: #FFFFFF;       /* White */
  --brand-blue: #002F6C;  /* Pharo blue — Pantone 648 C */

  /* Pharo Blue tonal ramp — one hue, stepped saturation+lightness, landing on --ink.
     Use for graded blues: values ladder, charts, layered fills. */
  --blue-400: #4E73B0;
  --blue-500: #3D62A0;
  --blue-600: #2C5190;
  --blue-700: #234C84;  /* == --ink-soft */
  --blue-800: #0E3979;
  --blue-900: #002F6C;  /* == --ink / --brand-blue */

  /* Density scale */
  --section-y: 96px;
  --gutter: 64px;
  --stack-sm: 12px;
  --stack: 24px;
  --stack-lg: 48px;

  /* Type */
  --display: Cambria, "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --display-weight: 700;
  --display-track: -0.015em;
  --body-track: -0.005em;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: var(--body-track);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
/* Inline links inside body prose must be distinguishable by more than colour
   (WCAG 1.4.1): underline them. Card/nav/standalone links opt out via their
   own rules (text-decoration:none) already. */
.belief-body a, .sp-body a, .pf-sent a, .cmp-sec p a, .fe-item p a {
  text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px;
}

/* ---------- Type system ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.eyebrow.accent { color: var(--ink); }
.eyebrow .bar {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 12px;
  opacity: 0.7;
}
.eyebrow.accent .bar { background: var(--accent); opacity: 1; }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.display-xxl { font-size: clamp(52px, 7.2vw, 124px); line-height: 0.96; font-weight: 400; }
.display-xl  { font-size: clamp(46px, 5.8vw, 100px); line-height: 0.98; font-weight: 400; }
.display-lg  { font-size: clamp(38px, 4.2vw, 72px); line-height: 1.02; font-weight: 400; }
.display-md  { font-size: clamp(28px, 2.6vw, 44px); line-height: 1.1; }
.display-sm  { font-size: clamp(22px, 1.8vw, 30px); line-height: 1.18; }

.lede {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
p { margin: 0; }

.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Layout helpers ---------- */
.page { width: 100%; overflow-x: clip; }
/* Anchored sections (e.g. #insights) stop just below the sticky nav when
   reached via a hash link, instead of hiding under it. */
section[id] { scroll-margin-top: 84px; }
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-wide {
  max-width: 1680px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-tight { padding-top: calc(var(--section-y) * 0.55); padding-bottom: calc(var(--section-y) * 0.55); }
.rule-top { border-top: 1px solid var(--rule); }
.rule-bot { border-bottom: 1px solid var(--rule); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.nav .nav-link { color: var(--ink); opacity: 0.85; }
.nav .nav-link:hover { opacity: 1; }
.nav.over-dark {
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.22);
  color: #fff;
}
.nav.over-dark .nav-link { color: #fff; opacity: 0.9; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav.over-dark .brand { color: #fff; }
/* Logo: brand-blue PNG (Pantone 2945 C). On light surfaces it shows as-is;
   on dark surfaces (over-dark hero, footer) a filter renders it white. */
.brand-logo {
  height: 46px;
  width: auto;
  display: block;
  flex: 0 0 auto;
  filter: none;
}
.nav.over-dark .brand-logo { filter: brightness(0) invert(1); }
.footer .brand { color: var(--bg); }
.footer .brand-logo { height: 64px; filter: brightness(0) invert(1); }
.nav-links {
  display: flex; gap: 30px; align-items: center;
  font-family: var(--body); font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-link { opacity: 0.85; }
.nav-link:hover { opacity: 1; }

/* ---------- Nav dropdowns (tree by branch) ---------- */
.nav-links { gap: 22px; }
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-link.has-menu { display: inline-flex; align-items: center; }
/* Caret is its own toggle button (sibling of the link), so it stays a valid
   target on touch and carries aria-expanded for assistive tech. */
.nav-disclose {
  appearance: none; -webkit-appearance: none; background: none; border: 0;
  margin: 0; padding: 0 0 0 5px; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; line-height: 1;
}
.caret { font-size: 9px; opacity: 0.55; transform: translateY(1px); transition: transform 160ms ease; display: inline-block; }
.nav-item.open .caret,
.nav-item:focus-within .caret { transform: translateY(1px) rotate(180deg); }

/* Active branch / current page */
.nav-link.is-active { opacity: 1; box-shadow: inset 0 -2px 0 var(--accent); }
.nav.over-dark .nav-link.is-active { box-shadow: inset 0 -2px 0 var(--accent-soft); }

/* Off-site link marker + screen-reader-only helper text */
.nav-menu a .ext { opacity: 0.6; font-size: 0.9em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.nav-menu {
  position: absolute; top: calc(100% + 12px); left: -16px;
  min-width: 248px;
  background: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: 0 24px 48px -24px rgba(16,22,33,0.4);
  padding: 8px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
  z-index: 60;
}
/* hover bridge so the menu doesn't close in the gap */
.nav-item::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px;
}
.nav-item.open .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-menu a {
  display: block;
  padding: 10px 14px;
  font-family: var(--body); font-size: 13.5px; font-weight: 500;
  color: var(--ink); opacity: 0.82;
  border-left: 2px solid transparent;
  transition: background 120ms ease, opacity 120ms ease, border-color 120ms ease;
}
.nav-menu a:hover {
  opacity: 1; background: var(--paper);
  border-left-color: var(--accent);
}
/* On dark hero the bar is transparent; keep the dropdown panel readable (light). */
.nav.over-dark .nav-menu { color: var(--ink); }

/* Engage CTA with its own dropdown, right-aligned so it never runs off-screen */
.nav-cta-wrap { position: relative; display: inline-flex; align-items: center; }
.nav-menu-right { left: auto; right: 0; }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 0;
}

/* ---------- Footer global offices ---------- */
.footer .offices {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.16);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
}
.footer .office .o-city {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: 18px; color: var(--bg); margin-bottom: 6px;
}
.footer .office .o-detail {
  font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.6);
}
@media (max-width: 880px) {
  .footer .offices { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.on-dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.on-dark.ghost { background: transparent; color: var(--paper); border-color: var(--paper); }

.arrow-link {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: baseline; gap: 8px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

/* ---------- HERO ---------- */
/* The cover hero tucks up behind the sticky nav so the transparent (over-dark)
   bar always has the dark image + scrim behind it, never the light page bg.
   Its container already pads content down (padding-top: 120px) to clear the bar. */
.page > main > .hero-cover { margin-top: calc(-1 * var(--nav-h, 72px)); }
.hero-cover {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero-cover image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-cover .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,26,58,0.74) 0%, rgba(12,26,58,0.30) 35%, rgba(12,26,58,0.42) 55%, rgba(8,18,44,0.95) 100%);
  pointer-events: none;
}
.hero-cover .scrim-side {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,26,58,0.62) 0%, rgba(12,26,58,0.18) 35%, rgba(12,26,58,0.0) 65%);
  pointer-events: none;
}
.hero-cover .container { position: relative; z-index: 2; padding-bottom: 72px; padding-top: 120px; }
.hero-cover .meta-band {
  display: flex; gap: 40px; align-items: baseline;
  margin-bottom: 36px;
  color: rgba(255,255,255,0.85);
}
.hero-cover .meta-band .eyebrow { color: rgba(255,255,255,0.78); }
.hero-cover h1 { color: #fff; max-width: 18ch; }
.hero-cover .lede { color: rgba(255,255,255,0.86); max-width: 64ch; margin-top: 28px; }
.hero-cover .hero-foot {
  margin-top: 48px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 24px;
}
.hero-cover .caption {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7); max-width: 40ch; line-height: 1.55;
  text-transform: uppercase;
}
.hero-cover .hero-cta { display: flex; gap: 14px; }

/* Hero, Split */
.hero-split {
  display: grid; grid-template-columns: 1.05fr 1fr;
  min-height: 86vh; align-items: stretch;
  border-bottom: 1px solid var(--rule);
}
.hero-split .text-pane {
  padding: 110px 72px 72px var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg);
}
.hero-split .image-pane { position: relative; background: var(--ink); }
.hero-split image-slot { width: 100%; height: 100%; }
.hero-split .image-meta {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  display: flex; justify-content: space-between; gap: 16px;
  text-transform: uppercase;
  pointer-events: none;
}

/* Hero, Type-led */
.hero-type { padding-top: 80px; padding-bottom: 0; }
.hero-type .headline-block { padding-top: 40px; padding-bottom: 56px; }
.hero-type .meta-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.hero-type .meta-row .stat { display: flex; flex-direction: column; gap: 4px; }
.hero-type .meta-row .stat-num {
  font-family: var(--display); font-size: 26px; font-weight: var(--display-weight);
  letter-spacing: -0.01em;
}
.hero-type .display-xxl { margin-top: 16px; }
.hero-type .filmstrip {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 4px;
  margin-top: 48px;
  height: 56vh;
  min-height: 460px;
}
.hero-type .filmstrip image-slot { width: 100%; height: 100%; }
.hero-type .filmstrip .frame { position: relative; background: var(--ink); }
.hero-type .filmstrip .frame .frame-cap {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.88); text-transform: uppercase;
}

/* ---------- Strategic spine (Educate. Unlock. Build.) ---------- */
.spine {
  background: var(--ink); color: var(--bg);
  padding: calc(var(--section-y) * 0.85) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.spine::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("uploads/0N5A0584.jpg");
  background-size: cover;
  background-position: 72% 30%;
  opacity: 0.16;
  z-index: -2;
}
.spine::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    var(--ink) 0%,
    var(--ink) 34%,
    rgba(0,47,108,0.82) 62%,
    rgba(0,47,108,0.6) 100%);
  z-index: -1;
}
.spine .container { position: relative; z-index: 1; }
.spine .head {
  display: grid; grid-template-columns: 0.7fr 1.6fr;
  gap: 64px; align-items: flex-start;
  margin-bottom: 64px;
}
.spine h2 {
  color: var(--bg);
  font-size: clamp(44px, 5vw, 84px);
  line-height: 1.0;
}
.spine h2 .eub-dot { color: var(--accent-soft); }
.spine .head .eyebrow { color: var(--accent-soft); }
.spine .lede { color: rgba(255,255,255,0.78); max-width: 64ch; }
.spine .arc {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.spine .step {
  padding: 40px 36px 36px 0;
  border-right: 1px solid rgba(255,255,255,0.16);
  position: relative;
}
.spine .step:last-child { border-right: 0; }
.spine .step + .step { padding-left: 36px; }
.spine .step-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--accent-soft); margin-bottom: 14px;
  text-transform: uppercase;
}
.spine .step h3 {
  color: var(--bg); font-size: clamp(28px, 2.4vw, 40px); margin-bottom: 16px;
  font-family: var(--display); font-weight: var(--display-weight);
}
.spine .step p {
  color: rgba(255,255,255,0.78); font-size: 16px; line-height: 1.6;
  max-width: 42ch;
}
.spine .step .fact {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.2);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7); text-transform: uppercase;
}
a.spine .step, .spine a.step { text-decoration: none; color: inherit; }
.spine a.step {
  display: block;
  transition: background 0.18s ease, transform 0.18s ease;
}
.spine a.step:hover { background: rgba(255,255,255,0.04); }
.spine .step-go {
  display: inline-block; margin-top: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-soft);
  opacity: 0.85; transition: opacity 0.18s ease, transform 0.18s ease;
}
.spine a.step:hover .step-go { opacity: 1; transform: translateX(4px); }
.spine a.step:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: -2px; }

/* ---------- Pharo Universe ---------- */
.universe .head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: flex-end; margin-bottom: 56px;
}
.universe-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.universe-cell {
  background: var(--bg);
  padding: 32px 28px 28px;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  grid-column: span 3;
}
.universe-cell.wide { grid-column: span 4; }
.universe-cell.parent {
  background: var(--ink); color: var(--bg);
  grid-column: span 4;
}
.universe-cell .u-num {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--ink-mute); text-transform: uppercase;
}
.universe-cell.parent .u-num { color: var(--accent-soft); }
.universe-cell h3 {
  font-family: var(--display); font-size: 24px; line-height: 1.1;
  font-weight: var(--display-weight); margin-top: 14px;
  color: var(--ink);
}
.universe-cell.parent h3 { color: var(--bg); }
.universe-cell p {
  font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin-top: 10px;
  max-width: 36ch;
}
.universe-cell.parent p { color: rgba(255,255,255,0.75); }
.universe-cell .u-foot {
  margin-top: 20px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink-mute); text-transform: uppercase;
}
.universe-cell.parent .u-foot { color: rgba(255,255,255,0.55); }
.universe-cell .arrow {
  font-family: var(--mono); font-size: 14px;
  transition: transform 0.25s ease;
}

/* Clickable mission cells: clear hover affordance */
a.universe-cell {
  text-decoration: none;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
a.universe-cell:hover {
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--accent);
  transform: translateY(-2px);
  z-index: 1;
}
a.universe-cell:hover .u-foot,
a.universe-cell:hover .arrow { color: var(--accent); }
a.universe-cell:hover .arrow { transform: translateX(4px); }
a.universe-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ---------- Hard facts (6) ---------- */
.facts { background: var(--bg-deep); }
.facts .lead {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: flex-end;
  margin-bottom: 72px;
}
.fact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
}
.fact-cell {
  background: var(--bg-deep);
  padding: 40px 32px 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 260px;
}
.fact-cell .num {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(48px, 4.6vw, 80px);
  letter-spacing: -0.022em; line-height: 0.96;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fact-cell .num .unit {
  font-size: 0.48em; vertical-align: top;
  color: var(--accent); margin-left: 4px;
  font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em;
}
.fact-cell .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.fact-cell .desc {
  font-size: 14px; line-height: 1.55; color: var(--ink-soft);
  margin-top: 10px;
  max-width: 32ch;
}

/* ---------- Pharo 3.0 strategy ---------- */
.strategy {
  background: var(--bg-deep);
}
.strategy .head {
  display: grid; grid-template-columns: 0.65fr 1.35fr;
  gap: 64px; margin-bottom: 72px;
}
.strategy h2 { font-size: clamp(56px, 6.6vw, 132px); line-height: 0.94; }
.strategy h2 .accent-fig { color: var(--accent); display: inline-block; margin-left: -0.08em; }
.strategy .layout {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: flex-start;
}
.strategy .allocation {
  background: var(--ink); color: var(--bg);
  padding: 40px;
}
.strategy .allocation h4 {
  color: var(--accent-soft);
  font-family: var(--mono); font-weight: 500;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 24px;
}
.strategy .alloc-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  align-items: baseline;
}
.strategy .alloc-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.strategy .alloc-row .num {
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.55);
}
.strategy .alloc-row .name {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: 22px; color: var(--bg);
}
.strategy .alloc-row .amt {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: 26px; color: var(--bg);
  font-variant-numeric: tabular-nums;
}
.strategy .alloc-bar {
  grid-column: 1 / -1;
  margin-top: 4px;
  height: 4px;
  background: rgba(255,255,255,0.12);
  position: relative;
}
.strategy .alloc-bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent-soft);
}
.strategy .total {
  margin-top: 32px; padding-top: 22px;
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid rgba(255,255,255,0.4);
}
.strategy .total .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
}
.strategy .total .val {
  font-family: var(--display); font-size: 44px; font-weight: var(--display-weight);
  color: var(--bg);
}

.strategy .targets {
  display: flex; flex-direction: column;
}
.strategy .target-row {
  display: grid; grid-template-columns: 64px 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.strategy .target-row:last-child { border-bottom: 1px solid var(--rule); }
.strategy .target-row .num {
  font-family: var(--display); font-size: 34px; font-weight: var(--display-weight);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.strategy .target-row .desc {
  font-size: 15px; line-height: 1.45; color: var(--ink);
  max-width: 60ch;
}
.strategy .target-row .by {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent); text-transform: uppercase;
}

/* ---------- Three pillars (renamed missions) ---------- */
.pillars-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: flex-end; margin-bottom: 56px;
}
.pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pillar-card { display: flex; flex-direction: column; }
.pillar-card .img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
  overflow: hidden;
  cursor: pointer;
}
.pillar-card .img-wrap image-slot { transition: transform 480ms cubic-bezier(0.2,0.7,0.2,1); }
.pillar-card .img-wrap:hover image-slot { transform: scale(1.04); }
.pillar-card image-slot { width: 100%; height: 100%; }
.pillar-card .badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--bg); color: var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px;
  z-index: 2;
}
.pillar-title-link { color: inherit; text-decoration: none; }
.pillar-title-link:hover { color: var(--accent); }
.pillar-card h3 {
  font-size: clamp(28px, 2.4vw, 40px);
  margin-top: 22px;
}
.pillar-card .body {
  font-size: 16px; line-height: 1.55; color: var(--ink-soft);
  margin-top: 14px; max-width: 38ch;
}
.pillar-card .stat-row {
  display: flex; gap: 32px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.pillar-card .stat-row .num {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: 26px; letter-spacing: -0.01em;
  display: block;
}
.pillar-card .stat-row .lbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-top: 4px; display: block;
}
.pillar-card .more {
  margin-top: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
}

/* ---------- Countries ---------- */
#countries { padding-top: calc(var(--section-y) * 0.6); background: var(--bg-deep); }
.countries .head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: flex-end; margin-bottom: 56px;
}
.country-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
}
.country-cell {
  background: var(--bg-deep);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
  min-height: 360px;
  position: relative;
  text-decoration: none; color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.country-cell:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(0,0,0,0.4); }
.country-cell:hover h3 { color: var(--accent); }
.country-cell .c-foot span:last-child { transition: transform 200ms ease; }
.country-cell:hover .c-foot span:last-child { transform: translateX(4px); }
.country-cell .c-img {
  aspect-ratio: 16 / 10;
  background: var(--ink);
  margin: -32px -28px 24px;
  position: relative;
  overflow: hidden;
}
.country-cell image-slot { width: 100%; height: 100%; }
.country-cell .c-num {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--ink-mute); text-transform: uppercase;
}
.country-cell h3 {
  font-family: var(--display); font-size: 32px;
  font-weight: var(--display-weight); letter-spacing: -0.015em;
  margin-top: 6px;
}
.country-cell .since {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent); text-transform: uppercase;
  margin-top: 8px;
}
.country-cell .programmes {
  margin-top: 20px;
  list-style: none; padding: 0; margin-block-end: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: var(--ink-soft);
  flex: 1;
}
.country-cell .programmes li {
  display: flex; gap: 10px; align-items: baseline;
}
.country-cell .programmes li::before {
  content: ""; width: 8px; height: 1px; background: var(--accent); flex: 0 0 auto;
  transform: translateY(-4px);
}
.country-cell .c-foot {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-mute); text-transform: uppercase;
}

/* ---------- Stories ---------- */
/* Indigo anchor band in the lower half (mirrors the Spine up top) so the
   bottom of the page doesn't read as one long tan stretch. The white
   story-cards sit on it with strong contrast. */
.stories { background: var(--ink); }
.stories .head h2 { color: var(--bg); }
.stories .head .eyebrow { color: rgba(255,255,255,0.85); }
.stories .head .lede { color: rgba(255,255,255,0.78); }
.stories .head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: flex-end; margin-bottom: 64px;
}
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.story-card {
  background: var(--bg);
  display: grid; grid-template-rows: 1fr auto;
  text-decoration: none; color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.story-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(0,0,0,0.4); }
.story-card:hover h3 { color: var(--accent); }
.story-card .read-more { color: var(--accent); transition: transform 200ms ease; }
.story-card:hover .read-more { transform: translateX(4px); }
.story-card .s-img {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.story-card image-slot { width: 100%; height: 100%; }
.story-card .s-body {
  padding: 36px;
}
.story-card .s-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.story-card h3 {
  font-family: var(--display); font-size: clamp(28px, 2.2vw, 36px);
  margin-top: 12px; line-height: 1.1;
}
.story-card .s-lede {
  font-size: 16px; line-height: 1.6; color: var(--ink-soft);
  margin-top: 16px;
}
.story-card .s-meta {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-mute); text-transform: uppercase;
}
.story-card .s-meta .person { color: var(--ink); }

/* ---------- Research ---------- */
.research-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.research-card { display: flex; flex-direction: column; }
.research-card .img-wrap {
  aspect-ratio: 5/4;
  background: var(--bg-deep);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.research-card image-slot { width: 100%; height: 100%; }
.research-card .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-top: 22px; margin-bottom: 10px;
}
.research-card h3 {
  font-size: 22px; line-height: 1.2; font-weight: var(--display-weight);
  font-family: var(--display); letter-spacing: -0.01em;
}
.research-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin-top: 12px; }
.research-card .file {
  margin-top: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-mute); text-transform: uppercase;
  display: flex; gap: 12px; align-items: center;
}

/* ---------- Insights hub ---------- */
.insights { background: var(--bg); color: var(--ink); }
.insights h2 { color: var(--ink); }
.insights .head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; margin-bottom: 30px; align-items: flex-end;
}
.insights .head .lede { color: var(--ink-soft); }
.insights .head .eyebrow { color: var(--ink); }
.insights-grid {
  display: flex; flex-direction: column;
  gap: 18px;
}
.insights-grid .media-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; align-items: stretch;
}
.insight-card.media {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
}
.insight-card.media .media-cap {
  padding: 13px 18px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto;
}
.insight-card.media .media-cap .i-foot { margin-top: auto; }

/* Click-to-play poster + video lightbox */
.podcast-embed.video-trigger {
  border: 0; cursor: pointer; padding: 0; width: 100%;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 50% 38%, rgba(255,255,255,0.10), transparent 60%),
    var(--brand-blue);
  transition: background 160ms ease;
}
.video-trigger .poster-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-trigger::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 18, 40, 0.32); transition: background 160ms ease;
}
.video-trigger:hover::after { background: rgba(0, 18, 40, 0.12); }
.video-trigger .play-btn {
  width: 54px; height: 54px; border-radius: 50%; position: relative; z-index: 2;
  background: rgba(0, 18, 40, 0.45); border: 1.5px solid rgba(255,255,255,0.85);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.video-trigger .play-btn::after {
  content: ''; position: absolute; left: 53%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.video-trigger:hover .play-btn { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.video-trigger:hover .play-btn::after { border-left-color: var(--ink); }
.video-trigger:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

.video-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 18, 40, 0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 6vw 5vw;
  animation: videoFade 180ms ease both;
}
@keyframes videoFade { from { opacity: 0; } to { opacity: 1; } }
.video-modal-inner { position: relative; width: min(1040px, 94vw); }
.video-modal-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute; top: -46px; right: -2px;
  background: none; border: 0; color: #fff; font-size: 34px; line-height: 1;
  cursor: pointer; padding: 4px 10px; transition: color 140ms ease;
}
.video-modal-close:hover { color: var(--accent-soft); }
@media (max-width: 560px) { .video-modal-close { top: -42px; } }
.insights-grid .text-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; align-items: stretch;
}
.insight-card {
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 20px 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 0;
  color: var(--bg);
}
.insight-card.featured {
  background: var(--ink);
  border-color: var(--accent);
  color: var(--paper);
}
.insight-card .i-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-soft);
}
.insight-card.featured .i-tag { color: var(--accent-soft); }
.insight-card h3 {
  color: var(--bg); margin-top: 10px;
  font-size: 19px; line-height: 1.2;
  font-family: var(--display); font-weight: var(--display-weight);
}
.insight-card.featured h3 { font-size: 19px; }
.insight-card .i-desc {
  font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.72);
  margin-top: 8px;
}
.insight-card.featured .i-desc { color: rgba(255,255,255,0.9); }
.insight-card .i-foot {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55); text-transform: uppercase;
}
.insight-card .i-foot a { transition: color 120ms ease; }
.insight-card .i-foot a:hover { color: var(--accent-soft); }

/* Text-link cards (the three <a> cards) stay white for contrast. The featured
   podcast card and the founder <article> card are both indigo media cards,
   so "watch / listen" reads blue and "read" reads white. */
a.insight-card:not(.featured) {
  background: var(--paper);
  border-color: rgba(0,0,0,0.10);
  color: var(--ink);
}
a.insight-card:not(.featured) .i-tag { color: var(--ink-mute); }
a.insight-card:not(.featured) h3 { color: var(--ink); }
a.insight-card:not(.featured) .i-desc { color: var(--ink-soft); }
a.insight-card:not(.featured) .i-foot { border-top-color: var(--rule); color: var(--ink-mute); }
a.insight-card:not(.featured) .i-foot a:hover { color: var(--ink); }

/* Field Notes card — correspondence-letter treatment (warm paper, letter voice,
   handwritten sign-off) so it reads like a note from the CEO, not a tile. */
a.insight-card.fieldnotes {
  background: #FAF6EA;
  border-color: rgba(0, 47, 108, 0.16);
}
.insight-card.fieldnotes .i-tag { color: var(--ink-mute); }
.insight-card.fieldnotes h3 { color: var(--ink); }
.insight-card.fieldnotes .i-desc {
  font-family: var(--display); font-style: italic;
  font-size: 16.5px; line-height: 1.5; color: var(--ink-soft);
  margin-top: 14px;
}
.insight-card.fieldnotes .fn-sign {
  margin-top: 14px; display: flex; flex-direction: column;
}
.insight-card.fieldnotes .fn-name {
  font-family: 'Caveat', var(--display), cursive;
  font-size: 26px; line-height: 0.95; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.insight-card.fieldnotes .fn-role {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 4px;
}

/* Podcast embed in ANY insight card (featured + the founder card) stays 16:9
   and fills its container, so the iframe never overflows a narrow column. */
.insight-card .podcast-embed {
  margin-top: 16px; position: relative; aspect-ratio: 16 / 9; overflow: hidden;
}
.insight-card.media .podcast-embed { margin: 0; width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
.insight-card .podcast-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
/* Podcast embed inside featured insight card */
.insight-card.featured .podcast-embed {
  margin-top: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.22);
  overflow: hidden;
}
.insight-card.featured .podcast-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.insight-card.featured .listen-on {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.insight-card.featured .listen-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-right: 4px;
}
.insight-card.featured .platform-chip {
  display: inline-flex; align-items: center;
  padding: 8px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  color: var(--bg);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  transition: background 120ms ease, border-color 120ms ease;
}
.insight-card.featured .platform-chip:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.4);
}

/* ---------- Partners ---------- */
/* Deep-tan band, consistent with the rest of the site. */
.partners { background: var(--bg-deep); }
.partners .head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: flex-end; margin-bottom: 40px;
}
.partner-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
}
.partner-cell {
  background: var(--bg-deep);
  padding: 24px 18px;
  display: flex; flex-direction: column; align-items: stretch; justify-content: space-between;
  gap: 12px;
  min-height: 150px;
}
.partner-cell image-slot {
  flex: 1 1 auto;
  display: block;
  min-height: 64px;
  /* The image-slot's own placeholder text is hidden — we use .p-name below. */
}
.partner-cell .p-name {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute); text-align: center;
}

/* ---------- Audience pathways ---------- */
.pathways .head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: flex-end; margin-bottom: 56px;
}
.path-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.path-cell {
  background: var(--bg);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 240px;
  text-decoration: none; color: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.path-cell:hover { background: var(--paper); }
.path-cell .p-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--ink-mute); text-transform: uppercase;
}
.path-cell h3 {
  font-family: var(--display); font-size: 24px; font-weight: var(--display-weight);
  margin-top: 12px;
}
.path-cell p {
  font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin-top: 10px;
}
.path-cell .p-cta {
  margin-top: 24px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink); color: var(--bg);
  padding-top: 60px; padding-bottom: 40px;
}
.footer .grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 0;
}
.footer .brand-block .mission {
  color: rgba(255,255,255,0.72); margin-top: 18px; max-width: 38ch;
  font-size: 15px; line-height: 1.6;
}
.footer .brand-block .funded {
  margin-top: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-soft);
}
.footer h3 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.62);
  margin-bottom: 22px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer ul a { font-size: 13px; line-height: 1.4; }
.footer a { color: rgba(255,255,255,0.85); font-size: 15px; }
.footer a:hover { color: var(--accent-soft); }
/* Keep the Pharo Management link at the same size as the surrounding funded line */
.footer .brand-block .funded a {
  font-size: inherit; letter-spacing: inherit; color: var(--accent-soft);
  text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px;
}
.footer .brand-block .funded a:hover { color: var(--bg); }
.footer .meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; flex-wrap: wrap; gap: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5); text-transform: uppercase;
}
.footer .meta-row .admin-link {
  color: rgba(255,255,255,0.6); font-size: inherit; letter-spacing: inherit;
  margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
}
.footer .meta-row .admin-link:hover { color: var(--accent-soft); }
.footer .socials { display: flex; gap: 12px; }
.footer .socials a {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
}
.footer .socials a svg { width: 17px; height: 17px; display: block; }
.footer .socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* ---------- Density variants ---------- */
[data-density="compact"]  { --section-y: 72px;  --gutter: 48px; --stack-lg: 32px; }
[data-density="standard"] { --section-y: 96px; --gutter: 56px; }
[data-density="spacious"] { --section-y: 132px; --gutter: 72px; }

image-slot {
  --is-bg: var(--bg-deep);
  background: var(--bg-deep);
}

/* ---------- Mobile menu toggle (hidden on desktop) ---------- */
.nav-toggle {
  display: none;
  appearance: none; -webkit-appearance: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: center; gap: 5px;
  margin: -6px -10px -6px 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 24px; background: currentColor;
  transition: transform 200ms ease, opacity 160ms ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-scrim { display: none; }

/* ============================================================
   RESPONSIVE / TABLET (861–1024px)
   Bridges the gap between the full desktop grids and the single
   mobile column, so 3- and 4-up grids step down to 2-up instead
   of staying cramped at ~900px and then snapping to one column.
   Scoped with min-width so it never collides with the mobile block.
   ============================================================ */
@media (min-width: 861px) and (max-width: 1024px) {
  :root,
  [data-density="compact"], [data-density="standard"], [data-density="spacious"] {
    --gutter: 40px;
  }

  .pillar-grid,
  .fact-grid,
  .path-grid,
  .research-grid,
  .country-grid { grid-template-columns: 1fr 1fr; }

  /* Universe: parent full width, the three arms two-up (inline spans need !important) */
  .universe-grid { grid-template-columns: 1fr 1fr; }
  .universe-cell { grid-column: auto !important; }
  .universe-cell.parent { grid-column: 1 / -1 !important; }

  /* Insights: two-up media row, three-up text row step to two-up */
  .insights-grid .text-row { grid-template-columns: 1fr 1fr; }

  /* Section heads keep their two-column heading/lede split, just tighter */
  .spine .head, .universe .head, .facts .lead, .pillars-head,
  .countries .head, .stories .head, .insights .head,
  .partners .head, .pathways .head { gap: 40px; }
}

/* ============================================================
   RESPONSIVE / MOBILE
   ============================================================ */
@media (max-width: 860px) {
  :root,
  [data-density="compact"], [data-density="standard"], [data-density="spacious"] {
    --gutter: 22px; --section-y: 76px; --stack-lg: 32px;
  }

  body { font-size: 16px; }

  /* --- Nav becomes a slide-in panel --- */
  /* backdrop-filter makes .nav a containing block for fixed children, which
     would trap the slide-in drawer inside the bar. Drop it on mobile. */
  .nav { padding: 12px var(--gutter); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: inline-flex; z-index: 80; }
  /* When the (bone) drawer is open, the close icon sits over it: force dark. */
  .nav.nav-open .nav-toggle { color: var(--ink); }
  .brand-logo { height: 40px; }

  .nav-scrim {
    display: block; position: fixed; inset: 0;
    background: rgba(16,22,33,0.45);
    opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 240ms;
    z-index: 65;
  }
  .nav-open .nav-scrim { opacity: 1; visibility: visible; }

  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(86vw, 360px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); color: var(--ink);
    border-left: 1px solid var(--ink);
    padding: 80px 26px 48px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 260ms cubic-bezier(0.4,0,0.2,1);
    z-index: 70;
    box-shadow: -30px 0 70px -40px rgba(16,22,33,0.6);
  }
  .nav-open .nav-links { transform: translateX(0); }

  .nav-item { display: flex; flex-wrap: wrap; align-items: center; width: 100%; }
  .nav-link, .nav .nav-link { flex: 1 1 auto; display: block; padding: 13px 0; font-size: 17px; opacity: 1; color: var(--ink); }
  .nav-link.has-menu { justify-content: space-between; }
  .nav-item:not(:last-child) { border-bottom: 1px solid var(--rule); }

  /* Caret becomes a full-size tap target that toggles the branch open. */
  .nav-disclose {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin: 0 -10px 0 auto; padding: 0;
  }
  .nav-disclose .caret { display: inline-block; font-size: 13px; opacity: 0.7; }

  /* Submenus are collapsed accordions: hidden until the branch is opened. */
  .nav-menu, .nav-item:focus-within .nav-menu {
    position: static; transform: none; min-width: 0;
    background: transparent; border: 0; box-shadow: none;
    flex-basis: 100%; display: none; opacity: 1; visibility: visible;
    padding: 0 0 10px 14px;
  }
  .nav-item.open .nav-menu { display: block; }
  .nav-item::after { display: none; }
  .nav-menu a, .nav .nav-menu a { padding: 8px 0; font-size: 14px; opacity: 0.72; border-left: 0; }
  .nav-menu a:hover { background: transparent; border-left: 0; }

  .nav-cta-wrap { margin-top: 18px; }
  .nav-cta { display: inline-block; flex: 0 0 auto; }

  /* on the dark hero, the open panel is still light, so force ink text inside it */
  .nav.over-dark .nav-links,
  .nav.over-dark .nav-link,
  .nav.over-dark .nav-menu a { color: var(--ink); }

  /* --- Stack the home-page grids --- */
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  /* Spine: stack the three steps cleanly (no desktop indent / vertical rules) */
  .spine .step { padding: 28px 0; border-right: 0; }
  .spine .step + .step { padding-left: 0; border-top: 1px solid rgba(255,255,255,0.16); }
  .spine .step p { max-width: none; }
  .hero-type .meta-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-type .filmstrip { grid-template-columns: 1fr; }
  .spine .head, .universe .head, .facts .lead, .strategy .head, .strategy .layout,
  .pillars-head, .countries .head, .stories .head, .insights .head,
  .partners .head, .pathways .head {
    grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px;
  }
  .spine .arc, .universe-grid, .fact-grid, .pillar-grid, .research-grid,
  .path-grid, .story-grid, .insights-grid { grid-template-columns: 1fr; }
  .insights-grid .media-row, .insights-grid .text-row { grid-template-columns: 1fr; }
  .insight-card.media { grid-template-columns: 1fr; gap: 18px; }
  .country-grid, .partner-row { grid-template-columns: 1fr 1fr; }
  .strategy .alloc-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .strategy .target-row { grid-template-columns: 1fr; gap: 8px; }
  .footer .grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer .offices { grid-template-columns: 1fr 1fr; }
  .footer .meta-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .footer .grid, .country-grid, .partner-row, .footer .offices { grid-template-columns: 1fr; }
  .hero-type .meta-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   TOUCH TARGETS — guarantee ~44px hit areas on touch layouts
   ============================================================ */
@media (max-width: 860px) {
  /* Social icons: bump from 34px to a full 44px touch target */
  .footer .socials { gap: 10px; }
  .footer .socials a { width: 44px; height: 44px; }
  /* Listen-on platform chips: taller, tappable */
  .insight-card .platform-chip { padding: 12px 16px; }
  /* Standalone inline arrow links sit in a 44px-tall row when tapped */
  .arrow-link,
  .pillar-card .more,
  .insight-card .i-foot a { display: inline-flex; align-items: center; min-height: 44px; }
  .pillar-card .more { margin-top: 14px; }
  /* Footer link lists: a little vertical breathing room between tap rows */
  .footer ul a { display: inline-block; padding: 5px 0; }
  /* In a single column the featured card must not reserve a 2nd empty row */
  .insight-card.featured { grid-row: auto; }
}

/* ============================================================
   SMALL PHONES — keep big display type from overflowing
   ============================================================ */
@media (max-width: 600px) {
  .display-xxl { font-size: clamp(36px, 11vw, 54px); line-height: 1.0; }
  .display-xl  { font-size: clamp(33px, 9.5vw, 46px); line-height: 1.02; }
  .hero-cover h1, .hero-split h1, .hero-type h1,
  .belief-statement { overflow-wrap: break-word; hyphens: auto; }
  /* Cover hero: trim the oversized top/bottom padding on tiny screens */
  .hero-cover .container { padding-top: 96px; padding-bottom: 48px; }
  .hero-cover .hero-foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-cover .hero-cta, .hero-split .hero-cta { flex-wrap: wrap; }
}

/* ---------- Homepage belief manifesto (belief-led narrative) ---------- */
.belief { background: var(--bg); }
.belief-grid { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 56px; align-items: start; }
.belief-grid .rail .eyebrow { display: inline-flex; align-items: center; }
.belief-statement {
  font-family: var(--display); font-weight: var(--display-weight);
  letter-spacing: -0.02em; font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.04; color: var(--ink); max-width: 22ch; text-wrap: balance;
}
.belief-statement em { font-style: italic; }
.belief-body { margin-top: 30px; max-width: 62ch; }
.belief-body p { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.belief-body p + p { margin-top: 18px; }
.belief-measure {
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--rule);
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(22px, 2.2vw, 32px); line-height: 1.22; color: var(--ink);
  max-width: 34ch; text-wrap: pretty;
}
@media (max-width: 900px) {
  .belief-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Accessibility: focus, skip link, reduced motion ---------- */

/* One consistent keyboard-focus ring for every interactive element. */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.nav-menu a:focus-visible,
.nav-cta:focus-visible,
.nav-disclose:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
/* On dark surfaces (hero overlay, dark Insights band) use the lighter accent. */
.nav.over-dark a:focus-visible,
.nav.over-dark button:focus-visible,
.insight-card.featured a:focus-visible {
  outline-color: var(--accent-soft);
}

/* Skip link: first focusable element, off-screen until focused. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
}
.skip-link:focus {
  left: 16px; top: 12px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  outline: 2px solid var(--accent-soft); outline-offset: 2px;
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
