/* Truth Computing Research — shared stylesheet for every page under /research/.
   Generated pages live in /research/**; their source and data live in
   12_Miscellanious/research-src (not deployed). Edit there, then rebuild. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --bg: #ffffff;
  --surface: #f3f4f6;
  --surface-2: #e9ebef;
  --ink: #14171c;
  --navy: #0f1d33;
  --muted: #565d69;
  --line: #dfe2e7;
  --accent: #0b5fff;
  --accent-ink: #0a4fd4;
  --on-navy: #e8edf5;
  --on-navy-muted: #9fb0c8;

  --frame: 1240px;
  --gutter: 48px;
  --header-h: 76px;
  --ease: cubic-bezier(0.16, 0.84, 0.3, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0d0f13;
  --surface: #15181e;
  --surface-2: #1c2028;
  --ink: #eceef2;
  --navy: #0a1424;
  --muted: #9aa2af;
  --line: #2a2f38;
  --accent: #6b9dff;
  --accent-ink: #8db3ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.frame { max-width: var(--frame); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ───────── Header ───────── */
.r-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.r-header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.r-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.r-brand-home { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; color: var(--ink); }
.r-brand-home:hover .r-brand-org { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a.r-brand-unit { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
a.r-brand-unit:hover { color: var(--ink); }
.r-brand-mark { width: 30px; height: 30px; flex: none; border-radius: 6px; }
.r-brand-text { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.r-brand-org { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.r-brand-unit {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap;
}
.r-header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.r-mainsite {
  font-size: 14px; color: var(--muted); text-decoration: none; padding: 10px 12px; min-height: 44px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.r-mainsite:hover { color: var(--ink); }
.r-icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 6px;
}
.r-icon-btn:hover { background: var(--surface); }
.r-icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
.r-menu-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 6px 8px 14px;
  background: none; border: 0; color: var(--ink); cursor: pointer; font: inherit;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
}
.r-menu-btn:hover .r-menu-lines { transform: scaleX(0.85); }
.r-menu-lines { width: 26px; height: 14px; position: relative; display: inline-block; transition: transform 200ms ease; transform-origin: right; }
.r-menu-lines::before, .r-menu-lines::after, .r-menu-lines span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px;
}
.r-menu-lines::before { top: 0; }
.r-menu-lines span { top: 6px; }
.r-menu-lines::after { bottom: 0; }

/* ───────── Navigation panel ───────── */
.r-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(12, 18, 28, 0.34);
  opacity: 0; visibility: hidden; transition: opacity 360ms var(--ease), visibility 360ms;
}
.r-scrim.is-open { opacity: 1; visibility: visible; }
.r-nav {
  position: fixed; top: 0; right: 0; z-index: 100;
  width: clamp(340px, 32vw, 500px); max-width: 100%;
  height: 100vh; height: 100dvh;
  background: var(--bg); color: var(--ink);
  box-shadow: -30px 0 80px -40px rgba(0, 0, 0, 0.35);
  transform: translateX(100%); visibility: hidden;
  transition: transform 440ms var(--ease), visibility 440ms;
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
}
/* Visibility flips instantly on open so the close button can take focus on the first frame. */
.r-nav.is-open { transform: none; visibility: visible; transition: transform 440ms var(--ease), visibility 0s; }
.r-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px 18px 40px; min-height: var(--header-h); flex: none;
}
.r-nav-title { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.r-nav-close { width: 52px; height: 52px; margin-right: -8px; }
.r-nav-close svg { width: 26px; height: 26px; stroke-width: 1.8; }
.r-nav-links { list-style: none; margin: 0; padding: 8px 40px 24px; flex: 1 0 auto; }
.r-nav-links a {
  display: block; padding: 12px 0;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.2; letter-spacing: -0.015em; text-decoration: none; color: var(--ink);
  transition: color 160ms ease, transform 200ms ease;
}
.r-nav-links a:hover { color: var(--accent); }
.r-nav-links a[aria-current="page"] { color: var(--accent); }
.r-nav-foot { padding: 24px 40px 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); flex: none; }
.r-nav-foot p { margin-bottom: 10px; }
.r-nav-return { display: inline-flex !important; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink) !important; }
.r-nav-return::before { content: "\2190"; font-family: var(--font-body); }
.r-nav-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.r-nav-foot a { color: var(--ink); text-decoration: none; display: inline-block; padding: 6px 0; }
.r-nav-foot a:hover { color: var(--accent); }

/* ───────── Home hero ───────── */
.r-hero {
  position: relative; overflow: hidden;
  background: var(--surface);
  padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 120px);
}
.r-hero-geo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.r-hero-geo .g1 { fill: var(--bg); opacity: 0.55; }
.r-hero-geo .g2 { fill: var(--bg); opacity: 0.85; }
.r-hero-geo .g3 { fill: var(--surface-2); opacity: 0.7; }
.r-hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 72px);
  align-items: center; min-height: clamp(520px, 62vh, 720px);
}
.r-hero-title {
  font-size: clamp(42px, 4.6vw, 80px); line-height: 1.0; letter-spacing: -0.03em; font-weight: 800;
  color: var(--navy);
}
[data-theme="dark"] .r-hero-title { color: var(--ink); }
.r-hero-title span { display: block; }
@media (min-width: 901px) { .r-hero-title span { white-space: nowrap; } }
.r-hero-intro { margin-top: clamp(24px, 3vw, 36px); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; max-width: 34em; color: var(--ink); }
.r-hero-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* Hexagonal photo mosaic: positions are in container units so the honeycomb scales as one piece.
   Public pages show it only with approved photographs; the local preview shows empty slots. */
.hexes { container-type: inline-size; width: 100%; max-width: 720px; justify-self: end; }
.hexes-field { position: relative; height: 91.6cqw; }
.hexes-field[data-rows="2"] { height: 63.7cqw; }
/* Three photos: a triangle of larger tiles that fills the same space as the honeycomb. */
.hexes-field[data-count="3"] { height: 90.2cqw; }
.hexes-field[data-count="3"] .hex { --w: 44cqw; --pitch-x: 45.5cqw; --pitch-y: 39.3cqw; }
.hex {
  --w: 31cqw; --pitch-x: 32.2cqw; --pitch-y: 27.9cqw;
  position: absolute; margin: 0;
  left: calc(var(--x) * var(--pitch-x)); top: calc(var(--y) * var(--pitch-y));
  width: var(--w); aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--surface-2);
}
.hex img { width: 100%; height: 100%; object-fit: cover; }
.hero-credits { margin-top: 10px; font-size: 11.5px; line-height: 1.5; color: var(--muted); text-align: right; }
.hero-credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hex--empty { display: grid; place-items: center; text-align: center; padding: 0 14%; font-size: clamp(9px, 1.7cqw, 12px); color: var(--muted); background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--surface) 10px 20px); }
.r-hero--plain .r-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: clamp(360px, 46vh, 520px); }
.r-hero--plain .r-hero-title { font-size: clamp(46px, 7vw, 112px); }
.r-hero-orientation { margin-top: 22px; font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); line-height: 1.3; font-weight: 600; color: var(--ink); max-width: 30em; }

/* Editorial placeholders and draft text (local preview only) */
.placeholder { margin: 12px 0; padding: 10px 14px; border: 1px dashed #c98a00; background: #fff8e1; color: #6b4a00; font-size: 14.5px; }
[data-theme="dark"] .placeholder { background: #2a2210; color: #f0cf8a; }
.candidate { margin: 12px 0 20px; padding: 12px 16px; border-left: 3px solid #c98a00; background: var(--surface); }
.candidate-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9a6200; margin-bottom: 6px; }
.page-section + .page-section { margin-top: 8px; }
.page-section--draft { opacity: 0.92; }

/* ───────── Sections ───────── */
.r-section { padding: clamp(72px, 9vw, 128px) 0; }
.r-section + .r-section { border-top: 1px solid var(--line); }
.r-section--surface { background: var(--surface); border-top: 0 !important; }
.r-section--surface + .r-section { border-top: 0; }
.r-section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.r-section-title { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.025em; color: var(--navy); }
[data-theme="dark"] .r-section-title { color: var(--ink); }
.r-section-intro { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink); max-width: 38em; }
.r-section-foot { margin-top: clamp(32px, 4vw, 48px); }
.r-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.r-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; font-size: 16px; color: var(--accent-ink); text-decoration: none;
}
[data-theme="dark"] .r-link { color: var(--accent); }
.r-link::after { content: "\2192"; transition: transform 180ms ease; }
.r-link:hover::after { transform: translateX(3px); }
.r-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.r-link--ext::after { content: "\2197"; }
.prose a, .r-inline-link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
[data-theme="dark"] .prose a, [data-theme="dark"] .r-inline-link { color: var(--accent); }

/* Status chip (Active / Completed / Proposed; Live / In build / Planned) */
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--active, .chip--live { color: #13804a; }
.chip--in-build { color: #9a6200; }
.chip--proposed, .chip--planned, .chip--completed { color: var(--muted); }
[data-theme="dark"] .chip--active, [data-theme="dark"] .chip--live { color: #4ade80; }
[data-theme="dark"] .chip--in-build { color: #f0b454; }

/* ───────── Research areas ───────── */
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(32px, 5vw, 80px); }
.area { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; }
.area-figure { width: 120px; height: 120px; background: var(--surface); border-radius: 4px; display: grid; place-items: center; color: var(--navy); }
[data-theme="dark"] .area-figure { color: var(--ink); }
.area-figure svg { width: 76px; height: 76px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.area-figure .fill { fill: currentColor; stroke: none; }
.area-num { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.area-title { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.area-title a { text-decoration: none; }
.area-title a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.area-desc { margin-top: 12px; color: var(--ink); }
.topics { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics li { font-size: 13.5px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.area .r-link { margin-top: 10px; }

/* ───────── Application domains ───────── */
.domains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--navy); }
[data-theme="dark"] .domains { border-top-color: var(--ink); }
.domain { padding: 32px 32px 8px 0; }
.domain + .domain { padding-left: 32px; border-left: 1px solid var(--line); }
.domain-title { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.domain-desc { margin-top: 14px; }
.domain-meta { margin-top: 22px; font-size: 14.5px; }
.domain-meta dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.domain-meta dd { margin: 6px 0 0; }
.domain-meta a { color: var(--accent-ink); }
.domain-more { font-weight: 600; text-decoration: none !important; white-space: nowrap; }
[data-theme="dark"] .domain-meta a { color: var(--accent); }
.r-note { margin-top: 40px; font-size: 14.5px; color: var(--muted); max-width: 60em; padding-left: 16px; border-left: 2px solid var(--line); }

/* ───────── Publications ───────── */
.pubs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pub-side { font-size: 14px; color: var(--muted); }
.pub-year { font-family: var(--mono); font-size: 15px; color: var(--ink); }
.pub-type { margin-top: 4px; }
.pub-title { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; font-weight: 700; }
.pub-title a { text-decoration: none; }
.pub-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pub-authors { margin-top: 8px; font-size: 15px; }
.pub-venue { margin-top: 2px; font-size: 14.5px; color: var(--muted); font-style: italic; }
.pub-abstract { margin-top: 10px; font-size: 15.5px; color: var(--ink); max-width: 52em; }
.pub-links { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.pub-links a { font-size: 14.5px; font-weight: 600; color: var(--accent-ink); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
[data-theme="dark"] .pub-links a { color: var(--accent); }
.pub-links a:hover { text-decoration: underline; }
.pub-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.pub-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; border: 0; }
.pub-filter legend { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0; width: 100%; }
.pub-filter button {
  font: inherit; font-size: 14.5px; padding: 9px 16px; min-height: 40px; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
}
.pub-filter button:hover { border-color: var(--ink); }
.pub-filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme="dark"] .pub-filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pub-group-title { font-size: clamp(22px, 2vw, 28px); margin: 56px 0 8px; }
.pub-group-title:first-of-type { margin-top: 0; }
.pub-group-desc { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; max-width: 48em; }

/* ───────── Projects ───────── */
.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project { background: var(--bg); padding: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.r-section--surface .project { border-color: transparent; }
.project-title { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.project-title a { text-decoration: none; }
.project-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-q { font-family: var(--font-display); font-size: 18px; line-height: 1.45; font-style: italic; color: var(--ink); }
.project-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.projects--single { grid-template-columns: 1fr; margin-top: 8px; }
.project-meta { margin-top: auto; padding-top: 12px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.r-empty { padding: 32px 36px; background: var(--surface); color: var(--muted); border-left: 2px solid var(--line); }
.r-section--surface .r-empty, .r-page-hero + .r-section .r-empty { background: var(--surface); }
.r-section--surface .r-empty { background: var(--bg); }
.r-empty p + p { margin-top: 8px; }
.prose .r-empty { margin-top: 8px; }

/* ───────── People ───────── */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 48px 28px; }
.person a { text-decoration: none; display: block; }
.person-photo { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; background: var(--surface); filter: grayscale(0.15); transition: filter 220ms ease; }
.person a:hover .person-photo { filter: none; }
.person-photo--none { display: block; background: var(--surface); }
.person-name { margin-top: 16px; font-size: 21px; line-height: 1.2; }
.person a:hover .person-name { text-decoration: underline; text-underline-offset: 4px; }
.person-role { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.person-interests { margin-top: 8px; font-size: 14px; color: var(--ink); }
.person { display: flex; flex-direction: column; }
.person-edu { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.person-edu-inst { font-weight: 600; }
.person-focus { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.person-more { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent-ink); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.person-more:hover { text-decoration: underline; }
[data-theme="dark"] .person-more { color: var(--accent); }
.cred-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.cred-list li { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.cred-org { font-weight: 600; }
.cred-detail { font-size: 14.5px; color: var(--muted); }
@media (max-width: 700px) { .cred-list { grid-template-columns: 1fr; } }
.edu-list { list-style: none; padding: 0 !important; }
.edu-list li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line); }
.edu-list li + li { margin-top: 0 !important; }
.edu-inst { font-weight: 600; }
.edu-degree { font-size: 15.5px; }
.edu-status { font-size: 14px; color: var(--muted); }

/* ───────── Outreach ───────── */
.programs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.program { border-top: 2px solid var(--navy); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
[data-theme="dark"] .program { border-top-color: var(--ink); }
.program-title { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.program-kind { font-size: 13px; color: var(--muted); }

/* ───────── Applications, engineering, case studies ───────── */
.programs--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.program-title a { text-decoration: none; }
.program-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.chip--stage { white-space: normal; align-items: baseline; }
.chip--stage::before { flex: none; transform: translateY(-1px); }
.app-block { padding: 40px 0; border-top: 1px solid var(--line); }
.app-block:first-child { border-top: 0; padding-top: 0; }
.app-title { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; margin: 10px 0 14px; color: var(--navy); }
.app-summary { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink); margin: 0 0 22px; }
.app-work { margin: 0 0 18px; max-width: 70ch; }
.app-stage { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
.app-work p + p { margin-top: 0; }
.app-possible { margin: 0 0 18px; max-width: 70ch; }
.app-possible ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.app-possible li + li { margin-top: 4px; }
.app-focus { margin: 22px 0 0; max-width: 70ch; color: var(--muted); }
.app-focus span { font-weight: 600; color: var(--ink); }
.app-link { margin: 18px 0 0; }
[data-theme="dark"] .app-title { color: var(--ink); }
.app-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin: 8px 0 0; }
.app-facts dt, .case-study dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.app-facts dd, .case-study dd { margin: 0; }
.app-facts dd p + p { margin-top: 10px; }
.app-facts ul { padding-left: 1.1em; margin: 0; }
.capabilities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.capability { border-top: 2px solid var(--navy); padding-top: 18px; }
[data-theme="dark"] .capability { border-top-color: var(--ink); }
.capability-title { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; margin-bottom: 10px; }
.capability-support { margin-top: 12px; font-size: 14px; color: var(--ink); }
.capability-support span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.capability-support a { color: var(--accent-ink); }
[data-theme="dark"] .capability-support a { color: var(--accent); }
.capability-limit { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.capability-title a { text-decoration: none; }
.capability-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; }
.status--demonstrated { color: #13804a; }
.status--demonstrated::before { background: currentColor; }
.status--in_development { color: #9a6200; }
.status--in_development::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.status--experimental::before { border-style: dashed; }
[data-theme="dark"] .status--demonstrated { color: #4ade80; }
[data-theme="dark"] .status--in_development { color: #f0b454; }
/* Engineering: capability directory, area sections, related work */
.r-page-hero--compact { padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px); }
.r-section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.r-section--rule { border-top: 1px solid var(--line); }
.cap-dir-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.cap-dir-title { font-size: clamp(22px, 2vw, 28px); color: var(--navy); }
[data-theme="dark"] .cap-dir-title { color: var(--ink); }
.cap-dir { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cap-dir > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cap-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); text-decoration: none; color: var(--ink); transition: border-color 160ms ease, box-shadow 160ms ease; }
.cap-card:hover, .cap-card:focus-visible { border-color: var(--navy); box-shadow: 0 1px 0 var(--navy); }
[data-theme="dark"] .cap-card:hover { border-color: var(--ink); }
.r-section--surface .cap-card { border-color: transparent; }
.cap-card-top { display: flex; justify-content: space-between; align-items: center; }
.cap-num { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; }
.process li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 16px; }
.process li + li { border-left: 1px solid var(--line); }
.process-num { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.process-name { font-weight: 600; color: var(--ink); }
.process-text { font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 820px) {
  .process { grid-template-columns: 1fr; }
  .process li { flex-direction: row; align-items: baseline; text-align: left; gap: 14px; padding: 16px 20px; }
  .process li + li { border-left: 0; border-top: 1px solid var(--line); }
  .process-name { min-width: 5.5em; }
}
.cap-arrow { color: var(--muted); font-size: 15px; transition: transform 160ms ease, color 160ms ease; }
.cap-card:hover .cap-arrow { color: var(--accent-ink); transform: translate(2px, -2px); }
.cap-icon { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 4px; }
[data-theme="dark"] .cap-icon { stroke: var(--ink); }
.cap-card-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.25; }
.cap-card-desc { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.draft-tag--quiet { margin: 0; padding: 1px 6px; font-size: 10.5px; align-self: flex-start; }
.cap-sections { display: grid; gap: clamp(56px, 7vw, 88px); }
.cap-section { scroll-margin-top: calc(var(--header-h) + 20px); max-width: 980px; }
.cap-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cap-title { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; color: var(--navy); }
[data-theme="dark"] .cap-title { color: var(--ink); }
.cap-desc { margin-top: 14px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; max-width: 46em; }
.method-tags { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.method-tag { font-size: 13.5px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
.method-tag--experimental, .method-tag--prospective { color: var(--muted); border-style: dashed; }
.cap-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.related-work { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.related-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: var(--surface); border-radius: 6px; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color 160ms ease; }
.related-card:hover, .related-card:focus-visible { border-color: var(--navy); }
.related-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.related-meta { font-size: 12.5px; color: var(--muted); }
.related-desc { font-size: 14px; line-height: 1.5; margin-top: 4px; }
.related-go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
[data-theme="dark"] .related-go { color: var(--accent); }
.cap-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.offering-list { list-style: none; margin: 0; padding: 0; }
.offering-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.offering-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.offering-name { font-weight: 600; }
.offering-list p { margin-top: 4px; font-size: 14.5px; line-height: 1.55; }
.offering-evidence { color: var(--muted); }
.cap-applied { margin-top: 0; font-size: 14.5px; }
.status-help { margin-top: 8px; font-size: 14px; color: var(--muted); }
.status-help summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
.status-help dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin: 8px 0 0; }
.status-help dd { margin: 4px 0 0; }
.app-caption { margin-top: 6px !important; font-size: 13px; color: var(--muted); }
.case-study { margin: 8px 0 40px; padding: 24px 28px; background: var(--surface); border-left: 3px solid var(--navy); }
[data-theme="dark"] .case-study { border-left-color: var(--accent); }
.case-study h2 { margin-top: 0 !important; }
.case-study dl { display: grid; gap: 18px; margin: 0; }

/* ───────── About / principles ───────── */
.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; }
.principles li { counter-increment: p; padding: 22px 0; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; font-weight: 600; }
.principles li::before { content: counter(p, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); margin-bottom: 8px; }

/* ───────── Interior page hero ───────── */
.r-page-hero { background: var(--surface); padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.r-page-hero .r-hero-geo { opacity: 0.9; }
.r-crumbs { position: relative; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.r-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.r-crumbs li + li::before { content: "/"; margin: 0 8px 0 4px; color: var(--line); }
.r-crumbs a { color: var(--muted); text-decoration: none; }
.r-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.r-page-title { position: relative; font-size: clamp(40px, 5.6vw, 80px); line-height: 1.0; letter-spacing: -0.03em; font-weight: 800; color: var(--navy); max-width: 16em; }
[data-theme="dark"] .r-page-title { color: var(--ink); }
.r-page-lede { position: relative; margin-top: 24px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.6; max-width: 40em; }
.r-page-meta { position: relative; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; color: var(--muted); align-items: center; }

/* ───────── Detail layout ───────── */
.detail { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); }
.prose { max-width: 42em; }
.prose h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; margin: 56px 0 16px; color: var(--navy); }
[data-theme="dark"] .prose h2 { color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p + p { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 14px 0 0; }
.prose li + li { margin-top: 8px; }
.prose .topics, .prose .pubs, .prose .principles, .prose .steps, .prose .q-list { padding-left: 0; }
.prose .pubs li + li, .prose .topics li + li { margin-top: 0; }
.prose .pub-title a { color: inherit; text-decoration: none; }
.prose .pub-title a:hover { text-decoration: underline; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--navy); font-family: var(--font-display); font-size: 20px; line-height: 1.45; }
.aside { font-size: 15px; }
.aside-block + .aside-block { margin-top: 32px; }
.aside dt, .aside-title { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.aside dd { margin: 6px 0 18px; }
.aside ul { list-style: none; margin: 8px 0 0; padding: 0; }
.aside li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.aside a { color: var(--accent-ink); text-decoration: none; }
[data-theme="dark"] .aside a { color: var(--accent); }
.aside a:hover { text-decoration: underline; }
.profile-photo { width: 100%; max-width: 320px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); margin-bottom: 28px; }
.disclosure { margin-top: 48px; padding: 20px 24px; background: var(--surface); font-size: 14px; color: var(--muted); }
.disclosure strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.steps li { border-top: 2px solid var(--navy); padding-top: 14px; }
[data-theme="dark"] .steps li { border-top-color: var(--ink); }
.steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.steps span { font-size: 15.5px; }
.q-list { list-style: none; padding: 0 !important; }
.q-list li { padding: 14px 0 14px 20px; border-left: 2px solid var(--line); font-family: var(--font-display); font-size: 19px; line-height: 1.45; }
.q-list li + li { margin-top: 6px !important; }

/* Sources ledger */
.src-cat { border-top: 1px solid var(--line); }
.src-cat:last-of-type { border-bottom: 1px solid var(--line); }
.src-cat summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.src-cat summary::-webkit-details-marker { display: none; }
.src-cat summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.src-cat[open] summary::after { content: "\2212"; }
.src-count { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 10px; font-weight: 400; }
.src-table-wrap { overflow-x: auto; padding-bottom: 20px; }
.src-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.src-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.src-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.src-table td a { color: var(--accent-ink); }
[data-theme="dark"] .src-table td a { color: var(--accent); }
.src-fig { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.src-status { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.src-status.ok { color: #13804a; }
.src-status.note { color: #9a6200; }
[data-theme="dark"] .src-status.ok { color: #4ade80; }
[data-theme="dark"] .src-status.note { color: #f0b454; }
.src-removed summary, .src-removed td { color: var(--muted); }
.src-lede { font-size: 14.5px; color: var(--muted); margin: 4px 0 12px; max-width: 62ch; }

/* Long-form research writing: articles, reports, evaluation reports */
.standfirst { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink); margin-bottom: 28px; }
.prose--article { font-size: 18px; line-height: 1.7; }
.prose--wide { max-width: 60em; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--surface); padding: 1px 5px; border-radius: 3px; }
.prose pre.code, pre.code { margin: 20px 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; font-size: 14px; line-height: 1.55; }
.prose pre.code code { background: none; padding: 0; font-size: inherit; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.figure, .chart { margin: 28px 0; }
.figure img { width: 100%; height: auto; }
.figure figcaption, .chart figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.chart svg { width: 100%; height: auto; max-width: 640px; }
.chart-bar { fill: var(--navy); }
[data-theme="dark"] .chart-bar { fill: var(--accent); }
.chart-label, .chart-value { font-family: var(--font-body); font-size: 13px; fill: var(--ink); }
.chart-data summary, .bibtex summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent-ink); margin-top: 8px; }
.chart-error { color: #b4473f; }
.math-display { margin: 20px 0; overflow-x: auto; text-align: center; }
.toc { margin: 8px 0 32px; padding: 16px 20px; border-left: 2px solid var(--navy); background: var(--surface); }
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.toc ol { margin: 0; }
.toc a { text-decoration: none !important; }
.footnotes { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.fn-ref a { text-decoration: none !important; font-size: 0.8em; }
.fn-back { text-decoration: none !important; }
.cite-text { font-size: 15px; }
.eval-section + .eval-section { margin-top: 8px; }
.r-page-hero--article .r-page-title { max-width: 18em; }

/* Publication search and filters */
.pub-tools { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 0 0 12px; align-items: end; }
.pub-tool label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pub-tool input, .pub-tool select { width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; }
.pub-tool input:focus-visible, .pub-tool select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pub-count { font-size: 14px; color: var(--muted); margin: 0 0 24px; min-height: 1.4em; }
.pub-none { padding: 24px 0; color: var(--muted); }
.pub-group-title--spaced { margin-top: 56px; }
.people-group + .people-group { margin-top: clamp(56px, 7vw, 88px); }
.people-group-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.people-group-title { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: var(--navy); }
[data-theme="dark"] .people-group-title { color: var(--ink); }
.people-count { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* People hero: title, then the introduction in two columns */
.people-intro { position: relative; margin-top: 28px; column-count: 2; column-gap: 48px; max-width: 72em; color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.75; }
.people-intro p { break-inside: avoid; margin: 0 0 14px; }
.people-intro .placeholder { column-span: all; }

/* Team cards */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.team-card { display: flex; flex-direction: column; min-width: 0; }
.team-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms ease; }
.team-link:hover, .team-link:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--navy) 35%, var(--line)); box-shadow: 0 14px 32px -18px rgba(15, 29, 51, 0.35); }
[data-theme="dark"] .team-link:hover { box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.7); }
.team-photo-wrap { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface); }
.team-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 400ms var(--ease); }
.team-link:hover .team-photo { transform: scale(1.025); }
.team-photo--none { display: block; }
.team-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.team-name { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.team-role { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.team-meta { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.team-meta span { white-space: nowrap; }
.team-meta span:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--muted); }
@media (max-width: 380px) { .team-meta span { white-space: normal; } }
.team-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.team-tag { font-size: 12.5px; line-height: 1.3; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); }
.r-section--surface .team-tag { background: var(--surface-2); }
.team-more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
[data-theme="dark"] .team-more { color: var(--accent); }
.team-arrow { transition: transform 200ms var(--ease); }
.team-link:hover .team-arrow, .team-link:focus-visible .team-arrow { transform: translateX(4px); }
.team-card > .draft-tag { margin-top: 8px; align-self: flex-start; }
.people-group .people { margin-top: 24px; }
.contact-topics { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 24px; }
.contact-topics a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }

/* Drafts and preview (local preview builds only) */
.draft-tag { display: inline-block; margin: 0 8px 8px 0; padding: 2px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #7a4a00; background: #fff1cc; border: 1px dashed #c98a00; }
.preview-banner { position: sticky; top: 0; z-index: 70; padding: 8px 16px; text-align: center; font-size: 13px; font-weight: 700; color: #3d2600; background: #ffd666; }
.preview-banner ~ .r-header { top: 34px; }

/* ───────── Footer ───────── */
.r-footer { background: var(--navy); color: var(--on-navy); padding: 72px 0 48px; }
.r-footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); gap: 40px; }
.r-footer-name { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.15; color: #fff; }
.r-footer-about { margin-top: 14px; font-size: 14.5px; color: var(--on-navy-muted); max-width: 30em; }
.r-footer h2 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 14px; }
.r-footer ul { list-style: none; margin: 0; padding: 0; }
.r-footer li a { display: inline-block; padding: 5px 0; font-size: 15px; color: var(--on-navy); text-decoration: none; }
.r-footer li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.r-footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: var(--on-navy-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .r-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
  .areas { gap: 56px 40px; }
  .area { grid-template-columns: 1fr; gap: 18px; }
  .area-figure { width: 88px; height: 88px; }
  .area-figure svg { width: 56px; height: 56px; }
  .programs { grid-template-columns: 1fr 1fr; }
  .programs--four { grid-template-columns: 1fr 1fr; }
  .capabilities { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --gutter: 32px; }
  .r-mainsite { display: none; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .r-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hexes { justify-self: center; max-width: 600px; }
  .r-section-head { grid-template-columns: 1fr; }
  .domains { grid-template-columns: 1fr; border-top: 0; }
  .domain, .domain + .domain { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .domain:first-child { border-top: 2px solid var(--navy); }
  .projects { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .aside--profile { order: -1; }
  .aside--profile .profile-photo { max-width: 240px; }
  .r-footer-grid { grid-template-columns: 1fr 1fr; }
  .r-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .areas { grid-template-columns: 1fr; }
  .area { grid-template-columns: 72px minmax(0, 1fr); gap: 20px; }
  .area-figure { width: 72px; height: 72px; }
  .area-figure svg { width: 46px; height: 46px; }
  .pub { grid-template-columns: 1fr; gap: 4px; }
  .pub-side { display: flex; gap: 14px; align-items: center; }
  .pub-type { margin-top: 0; }
  .programs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .app-facts { grid-template-columns: 1fr; }
  .people-intro { column-count: 1; }
  .cap-dir, .cap-columns, .status-help dl { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .capabilities { grid-template-columns: 1fr; }
  .programs--four { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 16.5px; }
  .r-brand-mark { width: 26px; height: 26px; }
  .r-brand-org { font-size: 17px; }
  .r-brand-unit { font-size: 11.5px; letter-spacing: 0.12em; padding-left: 10px; }
  .r-brand-text { gap: 10px; }
  .r-brand, .r-brand-home { gap: 10px; }
  .r-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .r-menu-btn { padding: 8px 10px; }
  .r-nav { width: 100%; }
  .r-nav-head { padding: 10px 12px 10px 24px; }
  .r-nav-links { padding: 4px 24px 24px; }
  .r-nav-foot { padding: 20px 24px 32px; }
  .project { padding: 24px; }
  .hexes-field[data-rows="3"]:not([data-count="3"]) { height: 63.7cqw; }
  .hex[data-row="2"] { display: none; }
  .pub-tools { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .team-grid { grid-template-columns: 1fr; }
  .person-name { font-size: 18px; }
  .r-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .r-brand-unit { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .team-link:hover, .team-link:focus-visible, .team-link:hover .team-photo, .team-link:hover .team-arrow { transform: none; }
}
