/* ───────────────── Reactorfield design tokens ───────────────── */
:root {
  --nav-h: 64px;

  /* Base surfaces (warm paper) */
  --bg-0: #FAF9F6;            /* page */
  --bg-1: #F3F2EE;            /* section alternate */
  --bg-2: #FFFFFF;            /* card / panel */
  --bg-3: #F0EFEB;            /* raised / hover */

  /* Foreground scale (dark ink) */
  --fg-1: #111512;
  --fg-2: #424A45;
  --fg-3: #6F7772;
  --fg-4: #A3ABA6;

  /* Hairlines & grid rules */
  --hairline: rgba(17, 24, 20, 0.10);
  --hairline-strong: rgba(17, 24, 20, 0.20);
  --crosshair: rgba(17, 24, 20, 0.40);
  --grid-dot: rgba(17, 24, 20, 0.18);
  --grid-tri: rgba(17, 24, 20, 0.16);
  --grid-size: 56px;

  /* Accent: tech green */
  --accent: #00945C;
  --accent-bright: #00B36F;
  --accent-dim: #006B42;
  --accent-glow: rgba(0, 148, 92, 0.12);
  --accent-ink: #FFFFFF;

  /* Semantic aliases */
  --surface-card: var(--bg-2);
  --surface-raised: var(--bg-3);
  --text-heading: var(--fg-1);
  --text-body: var(--fg-2);
  --text-muted: var(--fg-3);
  --text-faint: var(--fg-4);
  --selection-bg: rgba(0, 148, 92, 0.20);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --type-display-xl: 500 clamp(40px, 6vw, 72px) / 1.04 var(--font-display);
  --type-h1: 500 clamp(30px, 4vw, 40px) / 1.15 var(--font-display);
  --type-h2: 500 28px / 1.15 var(--font-display);
  --type-h3: 500 20px / 1.3 var(--font-sans);
  --type-body: 400 16px / 1.6 var(--font-sans);
  --type-small: 400 14px / 1.5 var(--font-sans);
  --type-mono: 400 13px / 1.5 var(--font-mono);
  --type-label: 500 12px / 1.2 var(--font-mono);
  --ls-display: -0.03em;
  --ls-heading: -0.02em;
  --ls-label: 0.08em;

  /* Layout, radii, rules */
  --content-max: 1080px;
  --radius-1: 2px;
  --radius-2: 4px;
  --rule: 1px solid var(--hairline);
  --shadow-glow: 0 0 0 1px rgba(0, 148, 92, 0.35), 0 0 24px rgba(0, 148, 92, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
}

/* ───────────────── Base ───────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--bg-0);
  /* Field-triangle lattice - the page is a charted field of triangular wedges. */
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%3E%3Cpath%20d='M29.63%2026.37%20L28.21%2030.33%20L25.67%2027.79%20Z'%20fill='rgba(17,24,20,0.16)'/%3E%3C/svg%3E");
  background-size: var(--grid-size) var(--grid-size);
  color: var(--text-body);
  font: var(--type-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  /* clip the decorative corner crosshairs that bleed ~9px past the frame edge;
     `clip` (not `hidden`) avoids creating a scroll container that breaks the sticky nav */
  overflow-x: clip;
}
::selection { background: var(--selection-bg); color: var(--fg-1); }
h1, h2, h3, h4, p, ul, blockquote { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.label {
  font: var(--type-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.fine { font: var(--type-mono); font-size: 12px; color: var(--text-faint); }

/* ───────────────── Framed sections ───────────────── */
section.framed { position: relative; border-top: var(--rule); }
section.framed.alt { background: var(--bg-1); }
section.framed > .frame {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  border-left: var(--rule);
  border-right: var(--rule);
  padding: 96px 48px;
}
section.framed[id] { scroll-margin-top: calc(var(--nav-h) + 32px); }

/* The "+" mark at grid-line intersections */
.x {
  position: absolute;
  width: 9px; height: 9px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.x::before, .x::after { content: ""; position: absolute; background: var(--crosshair); }
.x::before { left: 0; top: 4px; width: 9px; height: 1px; }
.x::after  { left: 4px; top: 0; width: 1px; height: 9px; }
.x-tl { top: -0.5px; left: -0.5px; }
.x-tr { top: -0.5px; right: -9.5px; }
.x-bl { bottom: -9.5px; left: -0.5px; }
.x-br { bottom: -9.5px; right: -9.5px; }

.eyebrow { margin-bottom: 40px; display: flex; gap: 8px; }
.eyebrow .num { color: var(--accent); }
.eyebrow .slash { color: var(--fg-4); }
.accent-text { color: var(--accent); }

.h-section {
  font: var(--type-h1);
  letter-spacing: var(--ls-heading);
  color: var(--text-heading);
  max-width: 640px;
  text-wrap: balance;
}
.lead {
  font: var(--type-body);
  color: var(--text-body);
  max-width: 600px;
  margin-top: 20px;
  text-wrap: pretty;
}

/* ───────────────── Buttons & badges ───────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-1);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn-sm { font: 500 13px / 1 var(--font-sans); padding: 8px 14px; }
.btn-lg { font: 500 16px / 1 var(--font-sans); padding: 14px 28px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:active { background: var(--accent-dim); transform: translateY(1px); }
.btn-glow { box-shadow: var(--shadow-glow); }
.btn .arr { transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-bright); }
  .btn:hover .arr { transform: translateX(2px); }
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-1);
  font: var(--type-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.badge-accent { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-glow); }

/* ───────────────── Cards ───────────────── */
.card {
  position: relative;
  background: var(--surface-card);
  border: var(--rule);
  border-radius: var(--radius-2);
  padding: 28px;
}
.card-corners { border-radius: 0; }
.card-glow { border: 1px solid var(--accent-dim); box-shadow: var(--shadow-glow); }
.card .num { font: var(--type-mono); font-size: 12px; letter-spacing: var(--ls-label); color: var(--accent); }
.card h3 { font: var(--type-h3); color: var(--text-heading); }
.card p { font: var(--type-small); color: var(--text-body); margin-top: 12px; text-wrap: pretty; }

/* ───────────────── Brand assets ───────────────── */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: 24px;
  margin-top: 40px;
}
.brand-tile { padding: 0; overflow: hidden; }
.brand-swatch {
  display: flex; align-items: center; justify-content: center;
  height: 240px;
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  a.brand-swatch:hover { opacity: 0.85; }
}
.brand-swatch img { width: 120px; height: 120px; }
.brand-swatch-light { background: #FAF9F5; }
.brand-swatch-dark { background: #121512; }
.brand-tile-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-top: var(--rule);
}
.brand-dl {
  font: 500 13px / 1 var(--font-sans);
  color: var(--accent);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.brand-dl .arr { transition: transform var(--dur-fast) var(--ease-out); }
.brand-back { color: var(--accent); text-decoration: none; font: var(--type-small); }
.brand-back-top { margin-bottom: 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (hover: hover) and (pointer: fine) {
  .brand-dl:hover .arr { transform: translateY(2px); }
  .brand-back:hover { color: var(--accent-bright); }
}

.blog-feature {
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-1);
  border: var(--rule);
}
.blog-feature-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 16px;
}
.blog-feature time,
.article-meta {
  font: var(--type-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.blog-feature h2 {
  font: var(--type-h2);
  color: var(--text-heading);
  letter-spacing: var(--ls-heading);
}
.blog-feature h2 a,
.blog-read {
  color: inherit;
  text-decoration: none;
}
.blog-feature p {
  max-width: 720px;
  margin-top: 14px;
  color: var(--text-body);
  text-wrap: pretty;
}
.blog-read {
  display: inline-flex;
  gap: 6px;
  margin-top: 20px;
  font: 500 14px / 1.2 var(--font-sans);
  color: var(--accent);
}
.blog-read .arr { transition: transform var(--dur-fast) var(--ease-out); }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}
.article-kicker { margin-bottom: 22px; }
.article-title {
  font: var(--type-display-xl);
  letter-spacing: var(--ls-heading);
  color: var(--text-heading);
  text-wrap: balance;
}
.article-dek {
  margin-top: 22px;
  font: 400 20px / 1.45 var(--font-sans);
  color: var(--text-body);
  text-wrap: pretty;
}
.article-meta {
  margin-top: 28px;
  margin-bottom: 0;
}
.article-body {
  margin-top: 64px;
}
.article-body h2 {
  font: var(--type-h2);
  letter-spacing: var(--ls-heading);
  color: var(--text-heading);
  margin: 52px 0 16px;
}
.article-body p,
.article-body li {
  font: 400 18px / 1.72 var(--font-sans);
  color: var(--text-body);
  text-wrap: pretty;
}
.article-body p + p { margin-top: 22px; }
.article-body ul,
.article-body ol {
  margin: 22px 0 0;
  padding-left: 24px;
}
.article-body li + li { margin-top: 12px; }
.article-body a { color: var(--accent-dim); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-callout {
  margin: 36px 0;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  background: var(--bg-1);
}
.article-callout p {
  font: 500 19px / 1.55 var(--font-sans);
  color: var(--text-heading);
}
.article-image {
  margin: 32px 0;
}
.article-image a {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
}
.article-image img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--rule);
  background: var(--bg-2);
}
.article-sources {
  margin-top: 56px;
  padding-top: 24px;
  border-top: var(--rule);
}
.article-sources h2 {
  margin: 0 0 14px;
  font: var(--type-h3);
}
.article-sources li,
.article-sources p { font: var(--type-small); }
.article-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: var(--rule);
  font: var(--type-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.has-image-lightbox {
  overflow: hidden;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(8, 9, 8, 0.88);
}
.image-lightbox[hidden] {
  display: none;
}
.image-lightbox img {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  border: var(--rule);
  background: var(--bg-2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}
.image-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  min-height: 40px;
  padding: 0 14px;
  border: var(--rule);
  border-radius: 0;
  background: var(--bg-0);
  color: var(--text-heading);
  font: var(--type-mono);
  cursor: pointer;
}
@media (max-width: 600px) {
  .brand-grid { grid-template-columns: 1fr; }
  .image-lightbox { padding: 16px; }
  .image-lightbox img { max-height: calc(100vh - 88px); }
}

/* Persona rows (02 / Who should join) - flat horizontal cards: filled panels
   with no rules, the inverse of the program's open ruled grid. Each row reads
   who you are → your world → what AI changes; the AI line is always green. */
.persona-rows { display: grid; gap: 24px; }
.persona-row {
  background: var(--bg-1);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: minmax(180px, 25%) 1fr;
  gap: 16px 56px;
  transition: background var(--dur-fast) var(--ease-out);
}
.persona-row .tick {
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  margin-bottom: 16px;
  transition: width var(--dur-fast) var(--ease-out);
}
.persona-row h3 {
  font: var(--type-h3);
  color: var(--text-heading);
}
.persona-row .story p {
  font: var(--type-small);
  color: var(--text-body);
  text-wrap: pretty;
}
.persona-row .world,
.persona-row .ai { margin-top: 10px; }
.persona-row:active { background: var(--bg-3); }
@media (hover: hover) and (pointer: fine) {
  .persona-row:hover { background: var(--bg-3); }
  .persona-row:hover .tick { width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .persona-row, .persona-row .tick { transition: none; }
}

/* Team (06 / Team) - compact horizontal card: small 1:1 photo box (holding a
   monogram placeholder; a real <img> can later replace .team-monogram inside
   .team-photo) sits left of a text column. */
#team .card {
  background: var(--bg-1);
  border: none;
  border-radius: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px;
  transition: background var(--dur-fast) var(--ease-out);
}
#team .card:hover { background: var(--bg-3); }
.team-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.team-photo {
  position: relative;
  width: 120px;
  height: 120px;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-text { min-width: 0; }
.team-monogram {
  font: var(--font-mono);
  font-size: 26px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.team-socials {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.team-socials a {
  display: inline-flex;
  color: var(--fg-3);
  transition: color var(--dur-fast) var(--ease-out);
}
.team-socials a:hover,
.team-socials a:focus-visible { color: var(--accent); }
.team-socials svg { width: 18px; height: 18px; fill: currentColor; display: block; }
@media (prefers-reduced-motion: reduce) {
  .team-socials a { transition: none; }
}
.card .tick {
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  margin: 16px 0;
  transition: width var(--dur-fast) var(--ease-out);
}
.card:hover .tick { width: 48px; }
@media (prefers-reduced-motion: reduce) {
  #team .card, .card .tick { transition: none; }
}

/* ───────────────── Nav ───────────────── */
header.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--rule);
}
header.nav .frame {
  max-width: var(--content-max);
  margin: 0 auto;
  border-left: var(--rule);
  border-right: var(--rule);
  padding: 0 48px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}
header.nav nav { display: flex; align-items: center; gap: 32px; }
.mobile-menu { display: none; }
.navlink {
  font: var(--type-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.navlink:active { color: var(--fg-1); }
@media (hover: hover) and (pointer: fine) {
  .navlink:hover { color: var(--fg-1); }
}

.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.logo .wordmark {
  font-family: var(--font-sans); font-weight: 500;
  letter-spacing: -0.01em; color: var(--fg-1); line-height: 1;
}

/* ───────────────── Hero ───────────────── */
.hero {
  position: relative;
  /* lift headline + wormhole together so the throat keeps framing the h1;
     footnote is absolutely positioned and stays put */
  --hero-lift: 44px;
  --hero-floor: 720px;
  min-height: calc(100vh - var(--nav-h)); /* fallback for older browsers */
  /* fill the fold, but never squeeze below the content floor - short
     windows scroll a little instead of overlapping */
  min-height: max(var(--hero-floor), calc(100svh - var(--nav-h)));
  display: grid;
  /* empty spacer rows stay exactly equal at every viewport height,
     pinning .inner to the wormhole throat */
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  padding: 96px 48px 72px;
  overflow: hidden;
}
.hero svg.wormhole {
  position: absolute;
  /* shifted up via inset (not transform - the breathe animation owns that) */
  inset: calc(-1 * var(--hero-lift)) 0 var(--hero-lift);
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.88;
  transform-origin: 50% 50%;
  animation: rf-wormhole-breathe 10s var(--ease-out) infinite alternate;
}
.hero svg.wormhole polyline { stroke-opacity: 0.72; }
.hero svg.wormhole .rf-meridian { stroke-opacity: 0.52; }
.hero svg.wormhole .rf-orbit { stroke-opacity: 0.62; }
.hero .inner {
  position: relative;
  grid-row: 2;
  translate: 0 calc(-1 * var(--hero-lift));
  width: min(980px, 100%);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 32px;
}
.hero h1 {
  font: var(--type-display-xl);
  letter-spacing: var(--ls-display);
  color: var(--text-heading);
  width: 100%;
  max-width: 900px;
  text-wrap: balance;
}
.hero h1 .ai { color: var(--accent); }
.hero h1 sup.fn-ref {
  font: var(--type-mono);
  font-size: 0.30em;
  line-height: 0;
  color: var(--text-heading);
  margin-left: 1px;
}
.hero .footnote {
  /* out of flow so it never skews the throat-centering above */
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 1;
  width: min(680px, calc(100% - 96px));
  text-align: left;
}
.hero .footnote::before {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background: var(--hairline-strong);
  margin-bottom: 14px;
}
.hero .footnote p { font: var(--type-body); color: var(--text-muted); text-wrap: pretty; margin: 0; }
.hero .footnote summary { display: none; }
.hero .footnote p + p { margin-top: 12px; }
.hero .footnote .fn-num {
  font: var(--type-mono);
  font-size: 14px;
  color: var(--text-heading);
  margin-right: 2px;
}
@keyframes rf-orbit { to { stroke-dashoffset: var(--c); } }
@keyframes rf-wormhole-breathe {
  from { transform: scale(1) rotate(-0.5deg); }
  to { transform: scale(1.075) rotate(0.5deg); }
}
.rf-orbit { animation: rf-orbit linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero svg.wormhole,
  .rf-orbit { animation: none; }
}

/* ───────────────── Statement band (inverted) ───────────────── */
section.framed.invert {
  background-color: var(--fg-1);
  /* White NE-triangle field - inverted twin of the page lattice. */
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%3E%3Cpath%20d='M29.63%2026.37%20L28.21%2030.33%20L25.67%2027.79%20Z'%20fill='rgba(250,249,246,0.14)'/%3E%3C/svg%3E");
  background-size: var(--grid-size) var(--grid-size);
}
section.framed.invert > .frame {
  border-left-color: rgba(250, 249, 246, 0.15);
  border-right-color: rgba(250, 249, 246, 0.15);
  text-align: center;
}
section.framed.invert .x::before,
section.framed.invert .x::after { background: rgba(250, 249, 246, 0.35); }
.statement h2 {
  font: 500 clamp(30px, 4.5vw, 52px) / 1.15 var(--font-sans);
  letter-spacing: var(--ls-heading);
  color: var(--bg-0);
  max-width: 760px;
  margin: 0 auto;
  text-wrap: balance;
}
.statement h2 .next { color: var(--accent-bright); }
section.framed.statement > .frame { padding: 64px 48px; }

/* ───────────────── Partner strip (inverted) ───────────────── */
section.framed.partners > .frame { padding: 32px 48px; }
.partners .label {
  font: var(--type-h3);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.45);
}
.partners .logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 56px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  max-width: 1000px;
  margin-inline: auto;
}
/* Forced wrap only: 3 featured logos on top, the remaining 5 centered below. */
.partners .logo-row-break {
  flex-basis: 100%;
  height: 0;
}
.partners .partner-logo {
  height: var(--partner-logo-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.partners .partner-logo:focus-visible {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .partners .partner-logo:hover { opacity: 1; }
}
.partners .partner-logo img {
  display: block;
  height: 100%;
  width: auto;
}
/* Heights tuned to equal optical text cap-height, not box height:
   marks (Prime swoosh, Rowan flower, Muni dot-cluster) inflate the box, so
   their boxes run taller; ASI is a two-line lockup sized as a tamed block. */
.partners .partner-logo-anthropic { --partner-logo-height: 18px; }
.partners .partner-logo-nvidia { --partner-logo-height: 24px; }
.partners .partner-logo-asi { --partner-logo-height: 45px; }
.partners .partner-logo-muni { --partner-logo-height: 33px; }
.partners .partner-logo-rowan { --partner-logo-height: 32px; }
.partners .partner-logo-prime-intellect { --partner-logo-height: 22px; }
.partners .partner-logo-fulcrum { --partner-logo-height: 38px; }
.partners .partner-logo-answerthis { --partner-logo-height: 24px; }
@media (max-width: 720px) {
  section.framed.partners > .frame { padding: 28px 24px; }
  section.framed.statement > .frame { padding: 48px 24px; }
  .partners .logo-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 30px;
    max-width: 300px;
  }
  .partners .logo-row-break {
    display: none;
  }
  .partners .partner-logo {
    justify-self: center;
  }
  .partners .partner-logo-anthropic { --partner-logo-height: 15px; }
  .partners .partner-logo-nvidia { --partner-logo-height: 21px; }
  .partners .partner-logo-asi { --partner-logo-height: 38px; }
  .partners .partner-logo-muni { --partner-logo-height: 29px; }
  .partners .partner-logo-rowan { --partner-logo-height: 27px; }
  .partners .partner-logo-prime-intellect { --partner-logo-height: 19px; }
  .partners .partner-logo-fulcrum { --partner-logo-height: 33px; }
  .partners .partner-logo-answerthis { --partner-logo-height: 21px; }
}

/* ───────────────── Participants strip (twin of partners) ─────────────────
   Inherits .partners frame, label, hover/opacity, mobile stacking.
   Two bands: institutions (3) on top, universities (4) below — each a centered
   flex row, sharing one optical rhythm, with generous space between the bands
   so they read as distinct. */
.participants .logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 44px 64px; /* row gap generous so wraps and the two bands read as distinct */
  max-width: 720px;
  margin-inline: auto;
  margin-top: 28px; /* air under the label; heading owns both rows (was 16px, too tight) */
}
.participants .logo-band-universities {
  margin-top: 28px; /* matches the label gap so the two rows read as one grouped set, not two sections (was 44px, wider than the section padding) */
}
/* Heights calibrated so all read at the SAME optical size despite very
   different forms — wide wordmarks (Harvard, OpenAI), a chunky mark (MIT), a
   stacked lockup (Stanford), a solid square (YC), and a dense circular emblem
   (NASA meatball). A round badge reads heavier than a wordmark at equal height,
   so it is held down toward the square's size. Tuned by rendering the grid, not
   a single number; see tools/mono-logo.py for the asset pipeline. */
.participants .partner-logo { --partner-logo-height: 40px; }
.participants .plogo-berkeley { --partner-logo-height: 31px; } /* tight-cropped, big display "Berkeley" word; small box so its wordmark reads level with Harvard's caps, not oversized */
.participants .plogo-harvard  { --partner-logo-height: 41px; }
.participants .plogo-mit      { --partner-logo-height: 35px; }
.participants .plogo-nasa     { --partner-logo-height: 46px; } /* round emblem; slightly taller box, but denser so optically level */
.participants .plogo-openai   { --partner-logo-height: 41px; }
.participants .plogo-stanford { --partner-logo-height: 64px; } /* two-line wordmark; mixed-case runs bigger to match Harvard's all-caps */
.participants .plogo-yc       { --partner-logo-height: 34px; } /* solid square, held smaller */
@media (max-width: 720px) {
  /* Keep the affiliation proof compact: the institutions hold one row, while
     the university lockups form a deliberate two-by-two rather than a stack. */
  .participants .logo-row {
    display: grid;
  }
  .participants .logo-band-institutions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 340px;
  }
  .participants .logo-band-universities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
    max-width: 300px;
  }
}

/* ───────────────── Manifesto (inverted, serif) ───────────────── */
section.framed.manifesto > .frame { text-align: left; }
.manifesto .eyebrow .num { color: var(--accent-bright); }
.manifesto .eyebrow .slash { color: rgba(250, 249, 246, 0.35); }
.manifesto .eyebrow span:last-child { color: rgba(250, 249, 246, 0.60); }
.manifesto h2 {
  font: italic 400 clamp(36px, 5.4vw, 64px) / 1.02 var(--font-serif);
  letter-spacing: 0;
  color: var(--bg-0);
  max-width: 760px;
  text-wrap: balance;
}
.manifesto h2 .first { color: var(--accent-bright); }
.manifesto .cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  margin-top: 72px;
}
.manifesto .cols p {
  font: 400 22px / 1.35 var(--font-serif);
  letter-spacing: 0;
  color: var(--bg-0);
  text-wrap: pretty;
}
.manifesto .cols p + p { margin-top: 28px; }
.manifesto .dropcap::first-letter {
  font: 400 92px / 0.78 var(--font-serif);
  color: var(--accent-bright);
  float: left;
  padding: 8px 14px 0 0;
}
.manifesto .foryou { color: var(--accent-bright); }
@media (max-width: 900px) {
  .manifesto .cols { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
}

/* ───────────────── Spec-sheet section & ruled grid ───────────────── */
section.framed.sheet { background: transparent; }
.grid-ruled {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border: var(--rule);
}
.grid-ruled > div {
  padding: 28px;
  border-right: var(--rule);
  border-bottom: var(--rule);
  transition: background var(--dur-fast) var(--ease-out);
}
.grid-ruled > div:nth-child(3n) { border-right: none; }
.grid-ruled > div:nth-child(n+4) { border-bottom: none; }
@media (hover: hover) and (pointer: fine) {
  .grid-ruled > div:hover { background: var(--bg-0); }
  .grid-ruled > div:hover .num { color: var(--accent-bright); }
}
.grid-ruled .cell-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.grid-ruled .num {
  font: var(--type-mono); font-size: 12px;
  letter-spacing: var(--ls-label); color: var(--accent);
  transition: color var(--dur-fast) var(--ease-out);
}
.grid-ruled h3 { font: var(--type-h3); color: var(--text-heading); }
.grid-ruled p { font: var(--type-small); color: var(--text-body); margin-top: 12px; text-wrap: pretty; }

/* Pillared ruled grid (column-grouped) */
.grid-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: 18px;
  margin-top: 56px;
}
.grid-pillars .pillar {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  background: #F7F7F3;
  border: var(--rule);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.grid-pillars .pillar:hover { border-color: var(--accent-dim); }
.grid-pillars .pillar:hover .num,
.grid-pillars .pillar:hover .label { color: var(--accent-bright); }
.grid-pillars .pillar > div {
  padding: 28px;
  border-bottom: var(--rule);
}
.grid-pillars .pillar > div:last-child { border-bottom: none; }
.grid-pillars .cell-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.grid-pillars .num {
  font: var(--type-mono); font-size: 12px;
  letter-spacing: var(--ls-label); color: var(--accent);
}
.grid-pillars .num,
.grid-pillars .label { transition: color var(--dur-fast) var(--ease-out); }
.grid-pillars h3 { font: var(--type-h3); color: var(--text-heading); }
.grid-pillars p { font: var(--type-small); color: var(--text-body); margin-top: 12px; text-wrap: pretty; }
.grid-pillars .pillar-head p { font: var(--type-small); color: var(--text-muted); margin-top: 8px; }
.pillar-label { font-weight: 700; }
.pillar-callout {
  margin-top: 18px;
  padding-top: 18px;
  border-top: var(--rule);
}
.pillar-callout .badge { margin-bottom: 12px; }
.pillar-callout h4 {
  font: var(--type-h3);
  color: var(--text-heading);
  margin: 0;
}

.field-band { margin-top: 20px; }
.field-band .badge { margin-bottom: 14px; }
.field-deployment-band {
  margin-top: 28px;
  padding: 32px;
  background: #F7F7F3;
  border: var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.field-deployment-band:hover { border-color: var(--accent-dim); background: var(--bg-0); }
.field-deployment-band .badge { width: fit-content; margin-bottom: 16px; }
.field-deployment-band h3 {
  font: var(--type-h3);
  color: var(--text-heading);
}
.field-deployment-band p {
  font: var(--type-small);
  color: var(--text-body);
  margin-top: 12px;
  max-width: 680px;
  text-wrap: pretty;
}

/* ───────────────── Section grids ───────────────── */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Fit lists (Apply if / Not for you if) */
.fits { list-style: none; padding: 0; border-top: var(--rule); }
.fits li {
  display: flex; gap: 12px; align-items: baseline;
  font: var(--type-small); color: var(--text-body);
  padding: 10px 0;
  border-bottom: var(--rule);
}
.fits li .mark { font: var(--type-mono); flex-shrink: 0; }
.fits-yes .mark { color: var(--accent); }
.fits-no .mark { color: var(--text-faint); }
.fits-title { margin-bottom: 8px; }
.fits-title.yes { color: var(--accent); }

/* ───────────────── Values ───────────────── */
.values { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; border-top: var(--rule); }
.values > div { padding: 36px 40px 40px 0; }
.values > div:nth-child(odd) { border-right: var(--rule); }
.values > div:nth-child(even) { padding-left: 40px; }
.values > div:nth-child(-n+2) { border-bottom: var(--rule); }
.values .num { font: var(--type-mono); font-size: 12px; color: var(--accent); letter-spacing: var(--ls-label); }
.values h3 { font: var(--type-h3); color: var(--text-heading); margin-top: 12px; }
.values p { font: var(--type-small); color: var(--text-body); margin-top: 10px; max-width: 440px; text-wrap: pretty; }

/* ───────────────── People ───────────────── */
.people-note { font: var(--type-small); color: var(--text-muted); margin-top: 28px; max-width: 600px; }

/* ───────────────── Use cases ───────────────── */
.wf-intro {
  font: var(--type-body);
  color: var(--text-body);
  max-width: 680px;
  margin-top: 16px;
  text-wrap: pretty;
}
.wf-cases { border-top: var(--rule); margin-top: 40px; }
.wf-chev-sm { width: 14px; height: 14px; color: var(--text-faint); flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
details.wf[open] .wf-chev-sm { transform: rotate(180deg); color: var(--accent); }
details.wf summary:hover .wf-chev-sm { color: var(--accent); }
details.wf { border-bottom: var(--rule); }
details.wf summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) var(--ease-out);
}
details.wf summary::-webkit-details-marker { display: none; }
.wf-name {
  font: var(--type-h3); font-size: 17px;
  color: var(--text-heading);
  transition: color var(--dur-fast) var(--ease-out);
}
details.wf summary:hover .wf-name { color: var(--accent-dim); }
.wf-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 4px 0 24px;
}
.wf-col { min-width: 0; }
.wf-lab {
  display: block;
  font: var(--type-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.wf-lab.ai { color: var(--accent); }
.wf-body p {
  font: var(--type-small);
  color: var(--text-body);
  margin: 0;
  text-wrap: pretty;
}

/* ───────────────── FAQ ───────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.6fr);
  gap: 72px;
  align-items: start;
}
.faq { border-top: var(--rule); }
.faq details { border-bottom: var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 28px;
  min-height: 100px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
  font: var(--type-h3);
  color: var(--text-heading);
  transition: color var(--dur-fast) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--fg-1); }
.faq summary::after {
  content: "+";
  font: 400 24px / 1 var(--font-sans);
  color: var(--text-muted);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "-"; color: var(--accent); }
.faq details p {
  font: var(--type-small); color: var(--text-body);
  margin: -6px 48px 30px 0; max-width: 680px; text-wrap: pretty;
}

/* ───────────────── Apply band ───────────────── */
.apply-cta {
  padding: 48px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.apply-cta h2 { font: var(--type-h2); letter-spacing: var(--ls-heading); color: var(--text-heading); text-wrap: balance; }
.apply-cta .sub { font: var(--type-small); color: var(--text-body); margin-top: 12px; }
.apply-cta .action { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.closes { font: var(--type-mono); font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
.apply-form + .closes, .lead + .closes { margin-top: 24px; }
.apply-steps { margin-bottom: 24px; }
.apply-steps h3 { margin-top: 10px; }
.apply-steps p { margin-top: 8px; }
.apply-form {
  margin-top: 36px;
  max-width: 760px;
}
.apply-form .closes { margin-bottom: 18px; }
.apply-form iframe {
  display: block;
  width: 100%;
  /* guard against collapse/jump before Tally's dynamicHeight resize lands */
  min-height: 636px;
}

/* ───────────────── Footer (content over Solvay halftone) ───────────────── */
footer .foot-merged {
  position: relative;
  min-height: clamp(480px, 50vw, 640px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  /* fallback if the photo fails: light text must never sit on cream */
  background-color: #0B0F0C;
}
.science-ai-footer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.foot-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(11, 15, 12, 0) 32%,
    rgba(11, 15, 12, 0.72) 62%,
    rgba(11, 15, 12, 0.96) 100%);
}
footer .frame {
  position: relative;
  width: 100%;
  padding: 48px 48px 56px;
}
footer .foot-merged > .frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-left-color: rgba(250, 249, 246, 0.3);
  border-right-color: rgba(250, 249, 246, 0.3);
}
.foot-top { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 24px; }
.foot-top nav { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-merged .navlink { color: rgba(250, 249, 246, 0.95); text-shadow: 0 1px 8px rgba(11, 15, 12, 0.8); }
.foot-merged .navlink:hover { color: var(--accent-bright); }
.foot-merged :focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.foot-fine {
  border-top: 1px solid rgba(250, 249, 246, 0.2);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.foot-merged .fine { color: rgba(250, 249, 246, 0.85); text-shadow: 0 1px 8px rgba(11, 15, 12, 0.8); }
.foot-fine-text { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; }
.foot-socials { margin-top: 0; align-items: center; }
.foot-socials a { color: rgba(250, 249, 246, 0.85); filter: drop-shadow(0 1px 8px rgba(11, 15, 12, 0.8)); }
.foot-socials a:hover,
.foot-socials a:focus-visible { color: var(--accent-bright); }

/* ───────────────── Responsive ───────────────── */
@media (max-width: 900px) {
  section.framed > .frame { padding: 56px 24px; }
  header.nav .frame { padding: 0 24px; }
  /* Mobile hero: one vertically-centered column - badge, headline, CTA, then
     footnote - so breathing room distributes evenly instead of pooling into a
     void between the CTA and a bottom-pinned footnote. The landscape wormhole
     can't frame a portrait throat, so the composition carries itself. */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* wider svh-scaled gap drops the footnotes lower and lets the hero
       breathe; svh keeps the rhythm consistent across phone sizes and
       browser-chrome states */
    gap: clamp(32px, 7svh, 64px);
    min-height: calc(100svh - var(--nav-h));
    padding: clamp(28px, 6svh, 56px) 24px clamp(28px, 5svh, 44px);
  }
  /* throat (SVG vertical center) is anchored onto the headline by JS, which
     sets --wormhole-shift; we move via `top`/inset because the breathe
     animation owns `transform`. Falls back to filling the hero (0) without JS. */
  .hero svg.wormhole { inset: var(--wormhole-shift, 0px) 0 auto 0; }
  .hero .inner {
    translate: none;
    grid-row: auto;
    width: 100%;
    gap: clamp(20px, 3svh, 28px);
  }
  .hero h1 {
    width: 100%;
    max-width: 100%;
    font: 500 clamp(32px, 10vw, 48px) / 1.05 var(--font-display);
    text-wrap: balance;
  }
  .hero .footnote {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 480px;
  }
  .hero .footnote::before { margin-bottom: 10px; }
  .hero .footnote p { font: 400 clamp(13px, 3.6vw, 15px) / 1.45 var(--font-sans); }
  .hero .footnote p + p { margin-top: 10px; }
  .hero .badge { max-width: 100%; white-space: normal; justify-content: center; text-align: center; }
  .cards-3, .cards-2, .cols-2 { grid-template-columns: 1fr; }
  .blog-feature { padding: 28px 24px; }
  .article-title { font: 500 36px / 1.08 var(--font-display); }
  .article-dek { font-size: 18px; }
  .article-body { margin-top: 44px; }
  .article-body p,
  .article-body li { font-size: 16px; }
  .persona-row { grid-template-columns: 1fr; padding: 28px 24px; gap: 20px; }
  .grid-ruled { grid-template-columns: 1fr; }
  .grid-ruled > div { border-right: none !important; border-bottom: var(--rule) !important; }
  .grid-ruled > div:last-child { border-bottom: none !important; }
  .grid-pillars { grid-template-columns: 1fr; row-gap: 18px; }
  .grid-pillars .pillar { grid-template-rows: auto; grid-row: auto; }
  .field-deployment-band { grid-template-columns: 1fr; padding: 28px 24px; }
  .cols-2 { gap: 24px; }
  .values { grid-template-columns: 1fr; }
  .values > div { border-right: none !important; padding: 32px 0 !important; }
  .values > div:not(:last-child) { border-bottom: var(--rule); }
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq summary { min-height: 72px; }
  details.wf summary { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wf-body { grid-template-columns: 1fr; gap: 18px; }
  .apply-cta { padding: 32px 24px; }
  .apply-cta .action { align-items: flex-start; }
  footer .frame { padding: 40px 24px 44px; }
  footer .foot-merged { min-height: clamp(400px, 88vw, 500px); }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-fine { margin-top: 28px; }
}
@media (max-width: 720px) {
  header.nav .navlink { display: none; }
  .mobile-menu {
    display: block;
    position: relative;
  }
  .mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
    font: var(--type-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary span { transform: rotate(45deg); }
  .mobile-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 11;
    display: grid;
    min-width: 184px;
    padding: 8px 16px;
    background: var(--bg-0);
    border: var(--rule);
    box-shadow: 0 12px 28px rgba(11, 15, 12, 0.12);
  }
  header.nav .mobile-menu-panel .navlink {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .hero .footnote summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    cursor: pointer;
    color: var(--text-muted);
    font: var(--type-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    list-style: none;
  }
  .hero .footnote summary::-webkit-details-marker { display: none; }
  .hero .footnote summary span { transition: transform var(--dur-fast) var(--ease-out); }
  .hero .footnote[open] summary span { transform: rotate(45deg); }
  .hero .footnote:not([open])::before { margin-bottom: 0; }
  .hero .footnote[open] summary { margin-bottom: 10px; }
  /* Touch-target floor (44px) - grow hit areas, keep visuals unchanged */
  .btn { min-height: 44px; }
  .logo { min-height: 44px; }
  .team-socials { gap: 0; margin-top: 3px; }
  .team-socials a { padding: 13px; margin: -13px 0; }
  .foot-top nav .navlink { display: inline-flex; align-items: center; min-height: 44px; }
}
