@font-face {
  font-family: "IBM Plex Sans";
  src: url("/static/61f0c841c98c47485338/playground_fonts/sans-400.ttf");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/static/61f0c841c98c47485338/playground_fonts/sans-600.ttf");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/61f0c841c98c47485338/playground_fonts/mono-400.ttf");
  font-weight: 400;
  font-display: swap;
}

:root {
  --spock-type-scale: .75;
  color-scheme: dark;
  --page: #141413;
  --panel: #191918;
  --line: #393732;
  --ink: #f5f2e9;
  --muted: #bdb8ae;
  --accent: #f2836d;
  --brand: #c8361c;
  --button-ink: #1b1511;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f5f4f0;
  --panel: #fff;
  --line: #d9d6cd;
  --ink: #141414;
  --muted: #5a5a55;
  --accent: #b02f18;
  --button-ink: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
a:hover { color: var(--accent); }
p, h1, h2, dl, dd, figure { margin: 0; }

section[id] { scroll-margin-top: 28px; }

.skip-link {
  position: fixed;
  z-index: 1;
  inset: 12px auto auto 12px;
  padding: 12px;
  background: var(--page);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.brand-period, .hero-period { color: var(--accent); }

.hero, .system {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(44px, 7.5vw, 115px);
}
.hero {
  align-items: center;
  padding: clamp(74px, 10vw, 151px) 0 clamp(75px, 9vw, 126px);
}
.hero h1 {
  max-width: 680px;
  font-size: calc(clamp(56px, 6.9vw, 103px) * var(--spock-type-scale));
  font-weight: 600;
  letter-spacing: -.078em;
  line-height: .98;
  text-wrap: balance;
}
.hero-copy > p {
  max-width: 520px;
  margin-top: 30px;
  color: var(--muted);
  font-size: max(15px, calc(clamp(18px, 1.85vw, 23px) * var(--spock-type-scale)));
  line-height: 1.48;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.primary, .secondary { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; }
.primary { padding: 11px 14px; background: var(--accent); color: var(--button-ink); }
.primary:hover { filter: brightness(.93); color: var(--button-ink); }
.secondary { padding-block: 8px; border-bottom: 1px solid var(--line); }
.secondary:hover { border-color: var(--accent); }

.spock-hero-frame {
  align-self: end;
  min-width: 0;
  padding: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.spock-hero-video {
  display: block;
  width: 100%;
  height: auto;
}
:root[data-theme="light"] .spock-hero-video {
  filter: invert(1) hue-rotate(180deg);
}
.section-intro { display: block; }
.label {
  font: 400 12px/1.45 var(--mono);
}

.system, .sel-section {
  padding: 60px 0 72px;
  border-top: 1px solid var(--line);
}
.sel-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 8vw, 120px);
}
h2 { font-size: calc(clamp(34px, 4.4vw, 61px) * var(--spock-type-scale)); font-weight: 600; letter-spacing: -.06em; line-height: 1.04; text-wrap: balance; }
.section-intro > p, .sel-section > div > p:not(.label) { margin-top: 19px; color: var(--muted); font-size: max(15px, calc(19px * var(--spock-type-scale))); line-height: 1.55; max-width: 440px; }
.label { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: var(--accent); }
.sel-section { align-items: start; }
.sel-section > div > p:not(.label) { margin-top: 0; max-width: 540px; }

.selection-maze {
  display: block;
  width: min(100%, 290px);
  height: auto;
  margin-top: 12px;
}
.selection-maze-walls { fill: var(--line); }
.selection-maze-path { fill: var(--accent); }
.selection-maze-endpoints { fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .selection-maze.is-waiting .selection-maze-path { opacity: 0; }
}

.site-footer { border-top: 1px solid var(--line); min-height: 80px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.footer-brand { color: var(--ink); font-weight: 600; font-size: 24px; letter-spacing: -.065em; }

@media (max-width: 960px) {

  .hero, .system { gap: 36px; }
  .hero h1 { font-size: calc(clamp(52px, 7.9vw, 76px) * var(--spock-type-scale)); }
  .flow-node p { font-size: 15px; }
}

@media (max-width: 760px) {



  .hero, .system, .sel-section { grid-template-columns: 1fr; }
  .hero { padding-top: 57px; padding-bottom: 52px; }
  .hero h1 { max-width: 600px; font-size: calc(clamp(51px, 10.8vw, 74px) * var(--spock-type-scale)); }
  .hero-copy > p { margin-top: 22px; }
  .spock-hero-frame, .exchange-frame { max-width: 545px; }
  .system, .sel-section { padding-block: 39px 45px; }
  .section-intro > p, .sel-section > div > p:not(.label) { font-size: max(15px, calc(17px * var(--spock-type-scale))); }
}

.research-page { padding-block: clamp(60px, 9vw, 112px); min-height: 67vh; }
.research-page h1 {
  font-size: calc(clamp(56px, 8vw, 92px) * var(--spock-type-scale));
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: 1;
}
.research-posts { margin: 42px 0 0; padding: 0; max-width: 790px; list-style: none; }
.research-posts li { border-top: 1px solid var(--line); }
.research-posts li:last-child { border-bottom: 1px solid var(--line); }
.research-posts a {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
}
.research-posts h2 { font-size: calc(clamp(26px, 4.4vw, 40px) * var(--spock-type-scale)); text-wrap: initial; }
.research-posts p { margin-top: 8px; color: var(--muted); font-size: max(15px, calc(17px * var(--spock-type-scale))); line-height: 1.45; }
.post-arrow { color: var(--accent); font-size: 24px; }
.thesis { max-width: 740px; }
.research-back { display: inline-block; margin-bottom: 22px; color: var(--accent); font-size: 15px; }
.thesis h1 { margin-bottom: 30px; }
.thesis h2 { margin: 45px 0 17px; font-size: calc(clamp(30px, 4.5vw, 45px) * var(--spock-type-scale)); text-wrap: initial; }
.thesis p { margin-bottom: 18px; color: var(--muted); font-size: max(15px, calc(clamp(17px, 2vw, 20px) * var(--spock-type-scale))); line-height: 1.68; }
.thesis .secondary { margin-top: 7px; }
.exchange-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23px minmax(0, 1.6fr) 23px minmax(0, 1fr);
  align-items: center;
}
.exchange-agent, .exchange-spock {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
}
.exchange-flow h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; line-height: 1.25; }
.thesis .exchange-agent p { margin: 0; font-size: 14px; line-height: 1.45; }
.thesis .exchange-agent p + p { margin-top: 10px; }
.exchange-spock { border-top: 2px solid var(--accent); }
.exchange-spock h3 { font-size: 25px; letter-spacing: -.055em; }
.exchange-spock dl > div { padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--line); }
.exchange-spock dt { font-size: 14px; font-weight: 600; }
.exchange-spock dd { font-size: 14px; line-height: 1.4; color: var(--muted); }
.exchange-link { text-align: center; color: var(--accent); font: 17px/1 var(--mono); }
.exchange-link::before { content: "↔"; }

@media (max-width: 640px) {
  .exchange-flow { grid-template-columns: 1fr; }
  .exchange-link { padding-block: 5px; }
  .exchange-link::before { content: "↕"; }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 810px;
  margin-top: 40px;
}
.team-card { background: var(--panel); border: 1px solid var(--line); }
.team-portrait {
  display: grid;
  place-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.team-photo { display: block; width: min(100%, 220px); height: auto; aspect-ratio: 1; object-fit: cover; }
.team-profile { padding: 20px; }
.team-profile h2 { font-size: calc(28px * var(--spock-type-scale)); }
.team-role { margin: 8px 0 14px; color: var(--accent); font: 14px/1.4 var(--mono); }
.team-email { color: var(--muted); }
.team-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; }
.thesis.blog-essay { --hairline: var(--line); }
.blog-essay a:not(.research-back) { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 620px) {
  .team-grid { grid-template-columns: 1fr; }
}
