/* semiAIfoundry — portable public-site build, July 2026 */
:root {
  --ink: #111319;
  --muted: #5f6673;
  --faint: #68717d;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --mist: #f1f4f3;
  --line: #d9dde3;
  --blue: #0b5f86;
  --steel: #8fc5d7;
  --brand-red: #e30613;
  --shadow: 0 18px 45px rgba(29, 35, 45, 0.09);
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 42px);
  --radius: 12px;
  --topbar-height: 72px;
  --focus-ring: #0b5f86;
  --section-space: clamp(60px, 7vw, 88px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.contact-page {
  --ink: #ffffff;
  --muted: #c7d1d8;
  --faint: #91a4b2;
  --paper: #111319;
  --panel: rgba(255,255,255,0.055);
  --line: rgba(255,255,255,0.16);
  --blue: #8fc5d7;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(143,197,215,0.16), transparent 30%),
    linear-gradient(135deg, #111319, #17212b 62%, #111319);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 11px 14px;
  border-radius: 6px;
  background: #ffffff;
  color: #111319;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 14px; }

.brand-ai { color: var(--brand-red); font-weight: 800; }
.hero .brand-ai, .thesis-section .brand-ai, .research-header .brand-ai,
.contact-page .brand-ai { color: #ff4d57; }
.tm {
  margin-left: 0.08em;
  font-size: 0.48em;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0;
  vertical-align: super;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--topbar-height);
  border-bottom: 1px solid rgba(217,221,227,0.8);
  background: rgba(251,250,247,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.contact-page .topbar {
  border-bottom-color: rgba(255,255,255,0.16);
  background: rgba(17,19,25,0.86);
}
.topbar-inner {
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand-icon { width: 32px; height: 38px; object-fit: contain; }
.brand-wordmark { width: auto; height: 52px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a, .back-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"],
.back-link:hover, .back-link:focus-visible { color: var(--ink); }
.nav a[aria-current="page"], .footer-links a[aria-current="page"] {
  color: var(--blue);
  font-weight: 780;
}
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn:hover { background: rgba(17,19,25,0.05); }
.contact-page .menu-btn:hover { background: rgba(255,255,255,0.08); }

/* Shared focus states */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
.hero, .thesis-section, .portfolio-research-section, .research-header, .contact-page {
  --focus-ring: #9fd4e8;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Hero */
.hero {
  min-height: 66vh;
  padding: 78px 0 70px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(10,13,19,0.88) 0%, rgba(10,13,19,0.72) 46%, rgba(10,13,19,0.22) 100%),
    url('/assets/images/saf-frontier-expansion.webp') center / cover scroll no-repeat;
}
.kicker {
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9fd4e8;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: 0.015em;
}
.kicker::before, .eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: 0.72;
}
.hero h1 {
  max-width: 760px;
  font-size: clamp(50px, 5.8vw, 78px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero-sub {
  max-width: 690px;
  margin-top: 28px;
  color: #e1e7ed;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.45;
}
.hero-sub-follow { margin-top: 14px; }
.hero-inline-cta { margin-top: 26px; color: #9fd4e8; }
.about-hero {
  min-height: auto;
  padding: clamp(88px, 10vw, 132px) 0 clamp(72px, 8vw, 104px);
  align-items: flex-end;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 18%, rgba(143,197,215,0.14), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  --focus-ring: #0b5f86;
}
.about-hero h1 { max-width: 850px; font-size: clamp(44px, 5.2vw, 68px); font-weight: 620; line-height: 1.06; }
.about-hero .kicker { color: var(--blue); }
.about-hero .hero-aside {
  max-width: 720px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.48;
}

/* General sections */
.section { padding: var(--section-space) 0; }
.section-head {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 54px;
  align-items: start;
  margin-bottom: 42px;
}
.section-head h2 {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 740;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.section-head p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 680;
  letter-spacing: 0.015em;
}

/* Focus architecture */
.execution-map {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.4fr);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0f1821;
  color: #ffffff;
  box-shadow: none;
}
.execution-map::before, .loop-graphic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,0.95), transparent 92%);
}
.map-copy {
  min-height: 0;
  padding: clamp(36px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.map-copy h3 {
  max-width: 460px;
  margin-top: 22px;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.map-copy > p {
  max-width: 420px;
  margin-top: 26px;
  color: #c7d1d8;
  font-size: 16px;
  line-height: 1.65;
}
.axis {
  margin-top: auto;
  padding-top: 52px;
  color: #8fc5d7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.axis::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #8fc5d7, rgba(143,197,215,0.08));
}
.domain-modules { display: grid; grid-template-columns: 1fr; }
.domain-module {
  min-height: 0;
  padding: 30px clamp(30px, 4vw, 46px);
  display: grid;
  grid-template-columns: minmax(150px, 0.58fr) minmax(0, 1.42fr);
  align-items: center;
  gap: clamp(28px, 4vw, 54px);
  border-right: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: transparent;
}
.domain-module:last-child { border-bottom: 0; }
.module-top { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.module-code, .module-status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
}
.module-code { color: #8fc5d7; }
.module-status { color: #aab7c1; text-align: left; }
.domain-module h3 {
  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.domain-module p { margin-top: 16px; color: #c7d1d8; font-size: 16px; line-height: 1.58; }
.domain-module em { color: #8fc5d7; font-style: normal; }

/* Portfolio */
.portfolio-hero {
  min-height: auto;
  padding: clamp(88px, 10vw, 136px) 0 clamp(74px, 8vw, 108px);
  align-items: flex-end;
  background:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(143,197,215,0.18), transparent 34%),
    linear-gradient(135deg, #111319 0%, #17212b 62%, #0f1821 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
}
.portfolio-hero h1 { max-width: 980px; font-weight: 650; }
.portfolio-hero .hero-sub { max-width: 820px; font-size: clamp(19px, 1.8vw, 23px); }
.portfolio-architecture-section { padding-bottom: clamp(76px, 8vw, 112px); }
.portfolio-research-section { color: var(--ink); }
.portfolio-research-section h2 {
  max-width: 520px;
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 640;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.portfolio-research-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.portfolio-research-copy .inline-cta { margin-top: 24px; }

/* Thesis */
.thesis-section { background: #16181d; color: #ffffff; }
.thesis-section .section-head p { color: #c2c7ce; }
.thesis-statement {
  max-width: 1010px;
  margin: 4px 0 58px;
  color: #ffffff;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.012em;
}
.acceptance-loop {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 82px);
  align-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.loop-center {
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  background: transparent;
}
.loop-center h3 {
  margin-top: 22px;
  font-size: clamp(30px,3.4vw,48px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.loop-center p { margin-top: 24px; color: #c7d1d8; font-size: 16px; line-height: 1.65; }
.feedback-label {
  margin-top: 38px;
  padding-top: 0;
  color: #8fc5d7;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.02em;
}
.loop-graphic {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(143,197,215,0.18);
  border-radius: var(--radius);
  background: #0b151e;
}
.loop-graphic:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.system-diagram { width: 100%; height: 100%; min-height: 520px; }
.diagram-node { fill: rgba(11,21,30,0.94); stroke: rgba(143,197,215,0.48); stroke-width: 1.2; }
.diagram-core { fill: #101f2b; stroke: #8fc5d7; stroke-width: 1.8; }
.diagram-memory { fill: rgba(143,197,215,0.15); stroke: rgba(143,197,215,0.62); stroke-width: 1.2; }
.diagram-link { fill: none; stroke: #a7e3f5; stroke-width: 1.7; opacity: 0.68; marker-end: url(#arrow); }
.diagram-link.secondary { opacity: 0.26; stroke-width: 1.1; stroke-dasharray: 5 8; }
.diagram-label { fill: #8fc5d7; font-size: 11px; font-weight: 800; letter-spacing: 1.7px; }
.diagram-title { fill: #ffffff; font-size: 18px; font-weight: 720; }
.diagram-copy { fill: #d9e1e6; font-size: 12px; }
.diagram-core-title { fill: #ffffff; font-size: 21px; font-weight: 760; }
.diagram-core-sub { fill: #8fc5d7; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.diagram-credit { fill: rgba(217,225,230,0.56); font-size: 10px; }
.observation-list {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  border-top: 0;
}
.observation {
  display: block;
  padding: 25px 0 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  border-bottom: 0;
}
.observation-label { color: #8fc5d7; font-size: 14px; font-weight: 680; letter-spacing: 0.015em; }
.observation p { margin-top: 16px; color: #d7dbe0; font-size: 18px; line-height: 1.6; }

/* Editorial rails and closing actions */
.editorial-section {
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
}
.editorial-section-mist { background: var(--mist); }
.editorial-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 118px);
  align-items: start;
}
.editorial-rail { padding-top: 6px; }
.editorial-body { max-width: 790px; }
.editorial-body h2 {
  font-size: clamp(31px, 3.8vw, 50px);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.editorial-body p {
  max-width: 720px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.editorial-body .inline-cta { margin-top: 26px; }

/* Legacy button styles remain quiet for redirected static stubs. */
.cta-panel {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 118px);
  align-items: start;
  padding: 0;
  border-top: 1px solid var(--line);
}
.cta-copy h2 { max-width: 720px; margin-top: 18px; font-size: clamp(28px,3.5vw,44px); line-height: 1.08; letter-spacing: -0.025em; }
.cta-copy p { max-width: 660px; margin-top: 20px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.cta-button {
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 180ms ease;
}
.cta-button::after { content: "→"; transition: transform 180ms ease; }
.cta-button:hover { background: transparent; color: var(--ink); }
.cta-button:hover::after, .cta-button:focus-visible::after { transform: translateX(3px); }

/* Updates */
.updates-hero {
  min-height: auto;
  padding: clamp(76px, 8vw, 108px) 0 clamp(58px, 6vw, 82px);
  align-items: flex-end;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 18%, rgba(143,197,215,0.10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  --focus-ring: #0b5f86;
}
.updates-hero .kicker { color: var(--blue); }
.updates-hero h1 { max-width: 860px; font-size: clamp(42px, 4.8vw, 62px); font-weight: 650; }
.updates-hero .hero-sub { max-width: 760px; color: var(--muted); font-size: clamp(19px, 1.8vw, 23px); }
.updates-list-section {
  padding: clamp(58px, 6vw, 82px) 0 clamp(78px, 8vw, 112px);
  background: linear-gradient(180deg, #fbfaf7 0%, #f8f7f3 100%);
}
.updates-list-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(44px, 8vw, 116px);
  align-items: end;
  margin-bottom: 24px;
  padding: 27px 0 30px;
  border-top: 3px solid var(--ink);
}
.updates-list-head h2 {
  margin-top: 12px;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 610;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.updates-list-head p {
  max-width: 470px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.update-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 18px clamp(40px, 7vw, 96px);
  align-items: start;
  padding: clamp(32px, 4vw, 48px) 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  box-shadow: none;
  transition: background 180ms ease;
}
.updates-list-section .update-card {
  padding-inline: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.updates-list-section .update-card:hover {
  border-color: var(--line);
  background: rgba(255,255,255,0.46);
  box-shadow: none;
  transform: none;
}
.updates-list-section .update-card + .update-card { border-top: 0; }
.update-card:hover {
  border-color: var(--line);
  background: rgba(255,255,255,0.46);
  box-shadow: none;
  transform: none;
}
.update-card-meta, .post-meta {
  display: flex;
  color: var(--blue);
}
.update-card-meta {
  align-self: start;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 0 0;
  border: 0;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.015em;
}
.update-card-meta time {
  color: var(--muted);
  font-weight: 620;
  letter-spacing: 0.035em;
  text-transform: none;
}
.post-meta {
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.02em;
}
.update-card h3 {
  max-width: 720px;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
}
.update-card p {
  max-width: 680px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}
.update-card-arrow {
  grid-column: 2;
  justify-self: start;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--blue);
  font-size: 17px;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}
.update-card-arrow::before {
  content: "Read update";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.update-card:hover .update-card-arrow {
  transform: translateX(3px);
}
.home-update-section { border-top: 0; }
.home-update-copy h3 {
  max-width: 720px;
  margin-top: 14px;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
}
.home-update-item + .home-update-item {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.home-update-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.home-update-copy time {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.015em;
}
.post-header { padding: clamp(82px, 9vw, 126px) 0 clamp(56px, 7vw, 86px); }
.post-header-inner { max-width: 980px; }
.post-header h1 {
  max-width: 820px;
  margin-top: 22px;
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.post-deck {
  max-width: 760px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.5;
}
.post-body-section { padding: 0 0 clamp(90px, 10vw, 132px); }
.post-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: clamp(38px, 7vw, 100px);
  align-items: start;
}
.post-share {
  padding-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.post-share a {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 700;
  transition: color 160ms ease;
}
.post-share a:hover, .post-share a:focus-visible { color: var(--ink); }
.post-content p {
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.72;
}
.post-content p:first-child {
  color: var(--ink);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.55;
}
.post-content p + p { margin-top: 26px; }
.post-content h2 {
  margin: 52px 0 18px;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 660;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.post-content .post-close {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  transition: color 180ms ease;
}
.inline-cta span[aria-hidden="true"] { transition: transform 160ms ease; }
.inline-cta:hover span[aria-hidden="true"],
.inline-cta:focus-visible span[aria-hidden="true"] { transform: translateX(3px); }
.arrow-cta::after {
  content: "→";
  transition: transform 180ms ease;
}
.arrow-cta:hover::after, .arrow-cta:focus-visible::after { transform: translateX(3px); }

/* Research */
.research-header {
  min-height: auto;
  padding: clamp(92px, 11vw, 148px) 0 clamp(72px, 8vw, 108px);
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(143,197,215,0.13), transparent 34%),
    linear-gradient(135deg, #111319 0%, #17212b 68%, #0f1821 100%);
  background-size: 38px 38px, 38px 38px, auto, auto;
}
.research-header-inner { max-width: 1020px; }
.research-header h1 {
  max-width: 850px;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.research-deck {
  max-width: 790px;
  margin-top: 26px;
  color: #e1e7ed;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.5;
}
.research-statement-section {
  padding: clamp(72px, 8vw, 110px) 0 clamp(96px, 11vw, 148px);
}
.research-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: clamp(38px, 7vw, 100px);
  align-items: start;
}
.research-rail {
  position: sticky;
  top: calc(var(--topbar-height) + 32px);
  padding-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.research-rail p { margin-top: 14px; }
.research-statement > p {
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.78;
}
.research-statement > p + p { margin-top: 28px; }
.research-statement .research-lede {
  color: var(--ink);
  font-size: clamp(22px, 2.15vw, 28px);
  line-height: 1.58;
}
.research-principle {
  margin: clamp(44px, 6vw, 68px) 0;
  padding: 8px 0 8px clamp(24px, 3.4vw, 40px);
  border-left: 3px solid var(--blue);
}
.research-principle p {
  max-width: 680px;
  color: var(--ink);
  font-size: clamp(27px, 3.1vw, 40px);
  font-weight: 580;
  line-height: 1.24;
  letter-spacing: -0.025em;
}
.research-statement .research-close {
  margin-top: clamp(52px, 7vw, 76px);
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 650;
  line-height: 1.42;
  letter-spacing: -0.018em;
}

/* Research program index */
.research-programs-section {
  padding: clamp(72px, 8vw, 110px) 0 clamp(86px, 10vw, 132px);
  border-top: 1px solid var(--line);
  background: var(--mist);
}
.research-programs-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(44px, 8vw, 116px);
  align-items: end;
  margin-bottom: 40px;
}
.research-programs-head h2 {
  max-width: 620px;
  margin-top: 16px;
  font-size: 46px;
  font-weight: 610;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.research-programs-head > p {
  max-width: 510px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.66;
}
.research-program {
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
  gap: clamp(44px, 8vw, 112px);
  padding: 44px 0 48px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 180ms ease;
}
.research-program:hover { background: rgba(255,255,255,0.4); }
.research-program-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.research-program-meta time { color: var(--muted); font-weight: 560; }
.research-program-copy h3 {
  max-width: 760px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.028em;
}
.research-program-copy p {
  max-width: 680px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.64;
}
.research-program-link {
  margin-top: 25px;
  display: inline-flex;
  gap: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}
.research-program-link span { transition: transform 160ms ease; }
.research-program:hover .research-program-link span { transform: translateX(3px); }

/* Computation–Realization Geometry */
.crg-hero {
  position: relative;
  isolation: isolate;
  min-height: 660px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(128deg, #111319 0%, #14212a 68%, #0b151e 100%);
  background-size: 38px 38px, 38px 38px, auto;
  --focus-ring: #9fd4e8;
}
.crg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(17,19,25,0.98) 0%, rgba(17,19,25,0.87) 52%, rgba(17,19,25,0.22) 100%);
}
.crg-hero-inner { position: relative; z-index: 2; padding: 96px 0 88px; }
.crg-hero .kicker { color: #9fd4e8; }
.crg-hero h1 {
  max-width: 880px;
  font-size: 68px;
  font-weight: 610;
  line-height: 1.01;
  letter-spacing: -0.045em;
}
.crg-hero-deck {
  max-width: 720px;
  margin-top: 30px;
  color: #dbe4e9;
  font-size: 24px;
  line-height: 1.5;
}
.crg-hero-meta {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  color: #9fb0bc;
  font-size: 13px;
  font-weight: 640;
}
.crg-hero-meta span + span::before { content: "·"; margin-right: 28px; color: #8fc5d7; }
.crg-hero-geometry {
  position: absolute;
  top: 50%;
  right: max(-120px, calc((100vw - var(--container)) / 2 - 170px));
  z-index: 0;
  width: 720px;
  height: auto;
  opacity: 0.72;
  transform: translateY(-50%);
}
.crg-intro-section,
.crg-definition-section,
.crg-record-section,
.crg-accountability-section {
  padding: clamp(74px, 8vw, 110px) 0;
}
.crg-definition-section,
.crg-accountability-section { border-top: 1px solid var(--line); }
.crg-record-section { background: var(--mist); }
.crg-editorial-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 790px);
  gap: clamp(42px, 8vw, 112px);
  align-items: start;
}
.crg-rail { padding-top: 7px; }
.crg-editorial-copy h2 {
  max-width: 790px;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.032em;
}
.crg-editorial-copy > p {
  max-width: 740px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}
.crg-economics {
  padding: 0 0 clamp(74px, 8vw, 110px);
}
.crg-economics .container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.crg-number {
  min-height: 190px;
  padding: 32px 28px 30px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}
.crg-number + .crg-number { padding-left: 30px; }
.crg-number:nth-child(3) { border-right: 0; }
.crg-number strong {
  color: var(--ink);
  font-size: 48px;
  font-weight: 610;
  line-height: 1;
  letter-spacing: -0.04em;
}
.crg-number span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.crg-source {
  grid-column: 1 / -1;
  padding: 17px 0;
  color: var(--muted);
  font-size: 12px;
}
.crg-source a { color: var(--blue); font-weight: 700; }
.crg-sequence {
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--ink);
}
.crg-sequence li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.crg-sequence li > span { color: var(--blue); font-size: 13px; font-weight: 720; }
.crg-sequence strong { color: var(--ink); font-size: 22px; font-weight: 620; }
.crg-sequence p { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.crg-overview-section {
  padding: clamp(24px, 3vw, 42px) 0;
  overflow: hidden;
  border-top: 1px solid rgba(143,197,215,0.16);
  border-bottom: 1px solid rgba(143,197,215,0.16);
  background: #020d1f;
  --focus-ring: #9fd4e8;
}
.crg-overview-shell {
  width: min(1380px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.crg-overview-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(143,197,215,0.5) rgba(255,255,255,0.06);
}
.crg-overview-scroll a { display: block; }
.crg-overview-scroll img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(143,197,215,0.14);
  border-radius: 4px;
}
.crg-law-section {
  padding: clamp(82px, 9vw, 126px) 0;
  color: #ffffff;
  background: #0f1821;
  --focus-ring: #9fd4e8;
}
.crg-law-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.62fr);
  gap: clamp(54px, 9vw, 132px);
  align-items: end;
}
.crg-law-section .eyebrow { color: #9fd4e8; }
.crg-law-section h2 {
  max-width: 780px;
  margin-top: 26px;
  font-size: 52px;
  font-weight: 540;
  line-height: 1.13;
  letter-spacing: -0.035em;
}
.crg-law-section p { color: #c7d1d8; font-size: 18px; line-height: 1.7; }
.crg-system-section { padding: clamp(78px, 9vw, 122px) 0; }
.crg-system-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px clamp(48px, 8vw, 112px);
  align-items: end;
}
.crg-system-head .eyebrow { grid-column: 1 / -1; }
.crg-system-head h2 {
  font-size: 50px;
  font-weight: 610;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.crg-system-head > p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.crg-release-list {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 66px);
}
.crg-release-list article { padding-top: 25px; border-top: 1px solid var(--line); }
.crg-release-list article > span { color: var(--blue); font-size: 13px; font-weight: 700; }
.crg-release-list h3 { margin-top: 22px; font-size: 24px; font-weight: 610; line-height: 1.2; }
.crg-release-list p { margin-top: 15px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.crg-system-copy {
  max-width: 820px;
  margin: 58px 0 0 auto;
  padding-top: 34px;
  border-top: 3px solid var(--ink);
}
.crg-system-copy p { color: var(--muted); font-size: 19px; line-height: 1.7; }
.crg-system-copy p + p { margin-top: 24px; }
.crg-resource-list { margin-top: 44px; border-top: 3px solid var(--ink); }
.crg-resource-list a,
.post-resource-list a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 24px;
  gap: 30px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, background 160ms ease;
}
.crg-resource-list a:hover,
.post-resource-list a:hover { background: rgba(255,255,255,0.44); }
.crg-resource-list span,
.post-resource-list span { color: var(--blue); font-size: 13px; font-weight: 700; }
.crg-resource-list strong,
.post-resource-list strong { font-size: 17px; font-weight: 600; line-height: 1.45; }
.crg-resource-list b,
.post-resource-list b { color: var(--blue); font-size: 18px; font-weight: 500; }
.crg-accountability-section .inline-cta { margin-top: 30px; }
.crg-closing-section {
  padding: clamp(82px, 9vw, 126px) 0;
  border-top: 1px solid rgba(255,255,255,0.13);
  color: #ffffff;
  background: #111319;
  --focus-ring: #9fd4e8;
}
.crg-closing-section p {
  max-width: 880px;
  font-size: 52px;
  font-weight: 540;
  line-height: 1.13;
  letter-spacing: -0.035em;
}
.crg-closing-section .inline-cta { margin-top: 34px; color: #9fd4e8; }

/* Long-form research release */
.crg-post-header { border-bottom: 1px solid var(--line); }
.crg-post-header .post-header-inner { max-width: 1060px; }
.crg-post-header h1 { max-width: 1010px; }
.crg-post-header h1 em { font-weight: inherit; }
.crg-post-content a:not(.inline-cta) { color: var(--blue); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.crg-post-content strong { color: var(--ink); font-weight: 650; }
.post-sequence { margin: 24px 0 34px; padding-left: 24px; }
.post-sequence li { color: var(--muted); font-size: 19px; line-height: 1.65; }
.post-sequence li + li { margin-top: 9px; }
.post-principle {
  margin: 36px 0 44px;
  padding: 9px 0 9px 30px;
  border-left: 3px solid var(--blue);
}
.post-principle p {
  color: var(--ink);
  font-size: 32px;
  font-weight: 560;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.post-resource-list { margin-top: 52px; border-top: 3px solid var(--ink); }
.post-resource-list a { text-decoration: none !important; }
.crg-post-close > strong { display: block; max-width: 680px; font-size: 25px; line-height: 1.45; }
.crg-post-close .inline-cta { margin-top: 26px; text-decoration: none; }

/* About */
.about-section { padding: var(--section-space) 0; border-bottom: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}
.about-label { color: var(--blue); font-size: 15px; font-weight: 520; }
.about-copy p { color: var(--muted); font-size: clamp(20px,2vw,28px); line-height: 1.48; }
.about-copy p + p { margin-top: 28px; }
.founder-card { align-self: start; padding: 22px 0 2px; border-top: 1px solid var(--line); }
.founder-card span { display: block; margin-bottom: 18px; color: var(--blue); font-size: 16px; font-weight: 520; }
.founder-card h2 { font-size: clamp(28px,3vw,42px); font-weight: 620; line-height: 1.12; letter-spacing: -0.025em; }
.founder-copy p { color: var(--muted); font-size: clamp(19px,1.8vw,25px); line-height: 1.55; }
.founder-copy p + p { margin-top: 24px; }
.where-build-head { display: flex; justify-content: space-between; gap: 42px; align-items: end; margin-bottom: 42px; }
.where-build-head h2 { max-width: 650px; font-size: clamp(32px,3.8vw,52px); font-weight: 620; line-height: 1.12; letter-spacing: -0.035em; }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(42px, 7vw, 92px);
  border: 0;
}
.principle {
  min-height: 0;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  background: transparent;
}
.principle h3 { display: block; margin-bottom: 20px; color: var(--blue); font-size: 14px; font-weight: 680; }
.principle p { max-width: 470px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.about-paths {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
}

/* Contact */
.contact-main { min-height: calc(100vh - var(--topbar-height)); }
.contact-hero { padding: clamp(76px,9vw,126px) 0 58px; }
.contact-hero-grid { display: grid; grid-template-columns: 1.25fr 0.55fr; gap: clamp(46px,8vw,112px); align-items: end; }
.contact-hero h1 { max-width: 720px; margin-top: 22px; font-size: clamp(42px,5.4vw,70px); line-height: 1.02; letter-spacing: -0.045em; }
.contact-lede { max-width: 760px; margin-top: 28px; color: var(--muted); font-size: 19px; line-height: 1.62; }
.front-door-note { padding: 22px 0 2px; border-top: 1px solid var(--line); }
.front-door-note strong { color: var(--blue); font-size: 14px; font-weight: 680; letter-spacing: 0.015em; }
.front-door-note p { margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.58; }
.route-section { padding: 24px 0 64px; }
.route-tiles { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.route-tile { min-height: 150px; padding: 24px; background: rgba(255,255,255,0.045); }
.route-tile h2 { color: var(--blue); font-size: 12px; font-weight: 820; letter-spacing: 0.14em; text-transform: uppercase; }
.route-tile p { margin-top: 20px; color: #d7dbe0; font-size: 14px; line-height: 1.48; }
.contact-form-section { padding: 28px 0 clamp(76px,8vw,108px); }
.form-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1.48fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.form-intro, .form-shell { background: transparent; }
.form-intro {
  position: sticky;
  top: calc(var(--topbar-height) + 34px);
  padding: 4px 0 0;
}
.form-intro h2 { max-width: 320px; margin-top: 20px; font-size: clamp(24px,2.5vw,32px); line-height: 1.12; letter-spacing: -0.025em; }
.form-intro p { margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.form-shell { padding: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 9px; color: #ffffff; font-size: 14px; font-weight: 650; }
.field .optional { color: var(--faint); font-size: 12px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  background: rgba(255,255,255,0.065);
  color: #ffffff;
  font-size: 16px;
  padding: 13px 14px;
}
.field input::placeholder, .field textarea::placeholder { color: #91a4b2; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8fc5d7; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: none;
}
.field select option { color: #111319; }
.field textarea { min-height: 160px; resize: vertical; }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.submit-button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #8fc5d7;
  color: #111319;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease;
}
.submit-button:hover { background: #a8d6e6; }
.submit-button:disabled { cursor: wait; opacity: 0.6; }
.form-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-note[data-state="success"] { color: #b9f3d4; }
.form-note[data-state="error"] { color: #ffc7c7; }
.form-safety {
  margin-top: 22px;
  padding: 16px 18px;
  border: 0;
  border-radius: 10px;
  background: rgba(143,197,215,0.08);
  color: #c7d1d8;
  font-size: 13px;
  line-height: 1.6;
}
.form-safety a { color: #9fd4e8; font-weight: 720; transition: color 160ms ease; }
.form-safety a:hover, .form-safety a:focus-visible { color: #ffffff; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Legal */
.legal-main { padding: clamp(70px,8vw,110px) 0 96px; }
.legal-header { max-width: 850px; margin-bottom: 46px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.legal-header h1 { margin-top: 20px; font-size: clamp(42px,7vw,72px); line-height: 1; letter-spacing: -0.05em; }
.legal-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); font-size: 14px; }
.legal-content { max-width: 72ch; }
.legal-content > p:first-child { color: var(--ink); font-size: 18px; line-height: 1.7; }
.legal-content h2 { margin: 42px 0 14px; color: var(--ink); font-size: 19px; line-height: 1.3; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 16px; line-height: 1.75; }
.legal-content p + p { margin-top: 16px; }
.legal-content ul { margin: 14px 0 0; padding-left: 24px; }
.legal-content li + li { margin-top: 7px; }
.legal-content strong { color: var(--ink); font-weight: 700; }
.legal-content hr { margin: 34px 0 0; border: 0; border-top: 1px solid var(--line); }
.legal-content a { color: var(--blue); font-weight: 700; transition: color 160ms ease; }
.legal-content a:hover, .legal-content a:focus-visible { color: var(--ink); }

/* Foundry Insights */
.insights-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f7f8f8;
  color: #111319;
  --insights-line: #d8dde0;
  --insights-muted: #65707a;
  --insights-accent: #0b7084;
  --focus-ring: #0b7084;
}
.insights-shell {
  width: min(1320px, calc(100% - 2 * clamp(20px, 4vw, 52px)));
  margin-inline: auto;
}
.insights-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--insights-line);
  background: rgba(247,248,248,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.insights-topbar-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.insights-account { display: flex; align-items: center; gap: 20px; color: var(--insights-muted); font-size: 13px; }
.insights-account a { color: #111319; font-weight: 700; }
.insights-main { padding-bottom: 72px; }
.insights-hero {
  padding: clamp(58px, 7vw, 92px) 0 46px;
  border-bottom: 1px solid var(--insights-line);
  background: #111319;
  color: #ffffff;
}
.insights-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}
.insights-hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: 0;
}
.insights-hero p:not(.kicker) {
  max-width: 720px;
  margin-top: 22px;
  color: #c8d0d5;
  font-size: 18px;
  line-height: 1.58;
}
.insights-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.insights-range {
  display: inline-grid;
  grid-template-columns: repeat(4, 46px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  overflow: hidden;
}
.insights-range button {
  min-height: 40px;
  padding: 0;
  border: 0;
  border-right: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: #bfc8ce;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}
.insights-range button:last-child { border-right: 0; }
.insights-range button[aria-pressed="true"] { background: #8fc5d7; color: #111319; }
.insights-export {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.insights-export:disabled { opacity: 0.42; cursor: wait; }
.insights-status { min-height: 24px; padding: 20px 0 0; color: var(--insights-muted); font-size: 13px; }
.insights-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--insights-line);
  border-bottom: 1px solid var(--insights-line);
}
.insights-metrics article {
  min-width: 0;
  min-height: 158px;
  padding: 25px 22px;
  border-right: 1px solid var(--insights-line);
}
.insights-metrics article:last-child { border-right: 0; }
.insights-metrics span { display: block; color: var(--insights-muted); font-size: 12px; font-weight: 700; }
.insights-metrics strong { display: block; margin-top: 20px; font-size: clamp(29px, 3vw, 42px); font-weight: 620; line-height: 1; }
.insights-metrics small { display: block; margin-top: 14px; color: var(--insights-muted); font-size: 12px; line-height: 1.4; }
.insights-section { min-width: 0; padding: 54px 0 10px; border-bottom: 1px solid var(--insights-line); }
.insights-section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}
.insights-section-head span { color: var(--insights-accent); font-size: 12px; font-weight: 720; }
.insights-section-head h2 { margin-top: 8px; font-size: clamp(25px, 2.8vw, 36px); font-weight: 600; line-height: 1.12; letter-spacing: 0; }
.insights-section-head p { color: var(--insights-muted); font-size: 14px; }
.insights-chart {
  height: 240px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8px, 1fr);
  gap: 5px;
  align-items: end;
  padding: 20px 0 0;
  border-top: 1px solid var(--insights-line);
}
.insights-bar { height: 100%; display: grid; grid-template-rows: 1fr 24px; gap: 9px; align-items: end; }
.insights-bar > span { height: var(--bar-height); min-height: 4px; background: #0b7084; transition: height 180ms ease; }
.insights-bar small { overflow: hidden; color: var(--insights-muted); font-size: 10px; text-align: center; white-space: nowrap; }
.insights-chart-empty { align-self: center; color: var(--insights-muted); font-size: 15px; }
.insights-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.insights-table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; }
.insights-table-wrap th, .insights-table-wrap td { padding: 15px 12px; border-top: 1px solid var(--insights-line); font-size: 14px; text-align: right; }
.insights-table-wrap thead th { color: var(--insights-muted); font-size: 11px; font-weight: 720; }
.insights-table-wrap th:first-child, .insights-table-wrap td:first-child { padding-left: 0; text-align: left; }
.insights-table-wrap th:last-child, .insights-table-wrap td:last-child { padding-right: 0; }
.insights-table-wrap tbody th { max-width: 620px; color: #273039; font-weight: 600; overflow-wrap: anywhere; }
.insights-table-wrap tbody td { color: var(--insights-muted); }
.insights-empty { padding: 32px 0 !important; color: var(--insights-muted) !important; text-align: left !important; }
.insights-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 7vw, 96px); }
.insights-split > * { min-width: 0; }
.insights-governance { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 42px; padding: 40px 0 0; color: var(--insights-muted); }
.insights-governance span { color: var(--insights-accent); font-size: 12px; font-weight: 720; }
.insights-governance p { max-width: 740px; font-size: 13px; line-height: 1.6; }

@media (max-width: 1100px) {
  .insights-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insights-metrics article:nth-child(3) { border-right: 0; }
  .insights-metrics article:nth-child(-n+3) { border-bottom: 1px solid var(--insights-line); }
}
@media (max-width: 760px) {
  .insights-hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .insights-actions { justify-content: flex-start; }
  .insights-split { grid-template-columns: 1fr; gap: 0; }
  .insights-chart { gap: 3px; height: 210px; }
  .insights-account span { display: none; }
  .insights-governance { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 540px) {
  .insights-topbar-inner { min-height: 64px; }
  .insights-page .brand-wordmark { height: 42px; }
  .insights-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insights-metrics article { min-height: 146px; border-bottom: 1px solid var(--insights-line); }
  .insights-metrics article:nth-child(2n) { border-right: 0; }
  .insights-metrics article:nth-last-child(-n+2) { border-bottom: 0; }
  .insights-range { grid-template-columns: repeat(4, 42px); }
  .insights-section-head { align-items: flex-start; flex-direction: column; }
}

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 26px 42px; align-items: center; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--ink); }
.minimal-footer { padding: 30px 0; }

/* 404 */
.not-found { min-height: calc(100vh - var(--topbar-height)); display: grid; place-items: center; padding: 70px 0; }
.not-found h1 { max-width: 820px; margin-top: 18px; font-size: clamp(42px,7vw,78px); line-height: 1; letter-spacing: -0.05em; }
.not-found p { max-width: 580px; margin-top: 24px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.not-found-actions { margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 24px 34px; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 16px 22px; }
.not-found-links a { color: var(--blue); font-size: 14px; font-weight: 700; transition: color 160ms ease; }
.not-found-links a:hover, .not-found-links a:focus-visible { color: var(--ink); }

@media (max-width: 1000px) {
  .principles-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 880px) {
  :root { --topbar-height: 66px; }
  .brand-icon { width: 28px; height: 34px; }
  .brand-wordmark { height: 44px; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 20px var(--gutter) 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid rgba(217,221,227,0.9);
    background: #fbfaf7;
    backdrop-filter: blur(16px);
  }
  .contact-page .nav { border-bottom-color: rgba(255,255,255,0.16); background: #111319; }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; font-size: 16px; }
  .section-head, .about-grid, .contact-hero-grid, .form-panel,
  .editorial-row { grid-template-columns: 1fr; }
  .section-head { gap: 28px; }
  .editorial-row { gap: 24px; }
  .execution-map { grid-template-columns: 1fr; }
  .map-copy { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .domain-module { border-right: 0; }
  .domain-module:last-child { border-bottom: 0; }
  .acceptance-loop { grid-template-columns: 1fr; }
  .loop-center { border: 0; }
  .observation-list { grid-template-columns: 1fr; gap: 30px; }
  .observation p { font-size: 18px; }
  .cta-panel { grid-template-columns: 1fr; align-items: start; }
  .updates-list-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .update-card { grid-template-columns: 140px minmax(0, 1fr); }
  .update-card-meta {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 4px 0 0;
    border: 0;
  }
  .update-card-arrow { grid-column: 2; }
  .post-layout, .research-layout, .crg-editorial-layout { grid-template-columns: 1fr; gap: 34px; }
  .post-share { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .research-rail {
    position: static;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--line);
  }
  .research-programs-head, .research-program, .crg-law-inner, .crg-system-head { grid-template-columns: 1fr; }
  .research-programs-head { gap: 24px; align-items: start; }
  .research-program { gap: 28px; }
  .research-program-meta { flex-direction: row; justify-content: space-between; }
  .crg-hero { min-height: 620px; }
  .crg-hero h1 { max-width: 720px; font-size: 56px; }
  .crg-hero-geometry { right: -250px; opacity: 0.46; }
  .crg-law-inner { align-items: start; }
  .crg-release-list { grid-template-columns: 1fr; gap: 30px; }
  .crg-system-head .eyebrow { grid-column: auto; }
  .crg-system-copy { margin-left: 0; }
  .founder-card, .form-intro { position: static; }
  .where-build-head { flex-direction: column; align-items: flex-start; }
  .route-tiles { grid-template-columns: 1fr; }
  .route-tile { min-height: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 620px) {
  :root { --section-space: 52px; }
  .hero { padding: 68px 0 62px; background-attachment: scroll; }
  .principles-grid { grid-template-columns: 1fr; }
  .domain-module { grid-template-columns: 1fr; gap: 22px; }
  .contact-hero { padding-top: 70px; }
  .form-intro, .form-shell { padding: 0; }
  .research-programs-head h2 { font-size: 36px; }
  .research-program { padding: 34px 0 38px; }
  .research-program-meta { flex-direction: column; }
  .research-program-copy h3 { font-size: 30px; }
  .crg-hero { min-height: auto; }
  .crg-hero-inner { padding: 76px 0 70px; }
  .crg-hero h1 { font-size: 44px; line-height: 1.05; }
  .crg-hero-deck { font-size: 20px; }
  .crg-hero-meta { flex-direction: column; gap: 9px; }
  .crg-hero-meta span + span::before { display: none; }
  .crg-hero-geometry { right: -360px; opacity: 0.34; }
  .crg-editorial-copy h2 { font-size: 34px; }
  .crg-editorial-copy > p { font-size: 18px; }
  .crg-economics .container { grid-template-columns: 1fr; }
  .crg-number, .crg-number + .crg-number {
    min-height: 150px;
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .crg-number strong { font-size: 42px; }
  .crg-sequence li { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .crg-overview-shell { width: 100%; }
  .crg-overview-scroll { padding: 0 var(--gutter) 12px; }
  .crg-overview-scroll img { width: 980px; max-width: none; }
  .crg-law-section h2, .crg-closing-section p { font-size: 38px; }
  .crg-law-section p { font-size: 17px; }
  .crg-system-head h2 { font-size: 40px; }
  .crg-resource-list a, .post-resource-list a {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 10px 18px;
  }
  .crg-resource-list span, .post-resource-list span { grid-column: 1 / -1; }
  .crg-resource-list strong, .post-resource-list strong { grid-column: 1; }
  .crg-resource-list b, .post-resource-list b { grid-column: 2; grid-row: 2; }
  .post-principle { padding-left: 22px; }
  .post-principle p { font-size: 27px; }
  .post-sequence li { font-size: 18px; }
}

@media (max-width: 520px) {
  .hero {
    min-height: auto;
  }
  .hero:not(.about-hero):not(.portfolio-hero):not(.updates-hero) {
    background:
      linear-gradient(180deg, rgba(10,13,19,0.88) 0%, rgba(10,13,19,0.74) 64%, rgba(10,13,19,0.58) 100%),
      url('/assets/images/saf-frontier-expansion.webp') 36% center / cover scroll no-repeat;
  }
  .hero h1 { font-size: 39px; line-height: 1.06; }
  .hero-sub { font-size: 18px; line-height: 1.42; }
  .contact-hero h1 { font-size: 36px; line-height: 1.06; }
  .updates-hero h1 { font-size: 42px; }
  .updates-list-head { padding-top: 22px; }
  .update-card { grid-template-columns: 1fr; padding: 26px 23px 28px; }
  .update-card-meta { grid-column: 1; flex-direction: row; align-items: center; }
  .update-card-arrow { justify-self: start; margin-top: 2px; }
  .update-card-arrow { grid-column: 1; }
  .post-header h1 { font-size: 36px; line-height: 1.1; }
  .research-header { min-height: auto; padding: 76px 0 68px; }
  .research-header h1 { font-size: 44px; line-height: 1.06; }
  .research-deck { font-size: 19px; }
  .research-principle { margin: 42px 0; padding-left: 22px; }
  .research-principle p { font-size: 28px; }
  .map-copy { padding: 30px 25px; }
  .domain-module { padding: 26px 25px; }
  .domain-module h3 { font-size: 32px; }
  .loop-graphic {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
    touch-action: pan-x;
  }
  .system-diagram { min-width: 520px; }
  .cta-panel { padding-top: 46px; }
}

@media (max-width: 340px) {
  .contact-hero h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero { background-attachment: scroll; }
}
