*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #080b10;
  --ink-soft: #0d121a;
  --panel: #111823;
  --panel-2: #151e2b;
  --line: rgba(255,255,255,.11);
  --line-strong: rgba(255,255,255,.22);
  --paper: #edf1f5;
  --muted: #9ca7b5;
  --dim: #697483;
  --signal: #b9ff66;
  --signal-soft: rgba(185,255,102,.12);
  --cyan: #6de2ff;
  --orange: #ffb86b;
  --max: 1180px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: -1;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.mono { font-family: "IBM Plex Mono", monospace; }
.signal { color: var(--signal); }
.muted { color: var(--muted); }
section { padding: 120px 0; scroll-margin-top: 76px; }

[data-lang] { display: none; }
body.lang-en [data-lang="en"] { display: revert; }
body.lang-es [data-lang="es"] { display: revert; }
span[data-lang] { display: none; }
body.lang-en span[data-lang="en"] { display: inline; }
body.lang-es span[data-lang="es"] { display: inline; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--signal);
  font: 600 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--signal);
}
.section-title {
  max-width: 850px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 700;
}
.section-lead {
  max-width: 650px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.section-head { margin-bottom: 64px; }

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,11,16,.84);
  backdrop-filter: blur(18px);
}
.nav-inner {
  width: min(calc(100% - 48px), var(--max));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.brand-symbol { width: 32px; height: 32px; flex: 0 0 auto; }
.brand span { color: var(--signal); }
.nav-links { display: flex; list-style: none; gap: 28px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
#lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  padding: 3px;
}
#lang-toggle button {
  border: 0;
  color: var(--dim);
  background: transparent;
  padding: 5px 9px;
  font: 600 10px/1 "IBM Plex Mono", monospace;
  cursor: pointer;
}
#lang-toggle button.active { color: var(--ink); background: var(--signal); }
.nav-cta {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  text-decoration: none;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 700;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.nav-cta:hover { border-color: var(--signal); color: var(--signal); }

.page-nav { padding: 34px 0 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font: 600 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
}
.back-link:hover { color: var(--signal); }

#hero {
  min-height: calc(100vh - 76px);
  padding: 92px 0 60px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
}
#hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -240px;
  top: -120px;
  border-radius: 50%;
  background: var(--signal);
  filter: blur(170px);
  opacity: .08;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 72px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(185,255,102,.28);
  color: var(--signal);
  background: var(--signal-soft);
  padding: 7px 11px;
  font: 600 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(185,255,102,.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(185,255,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(185,255,102,0); }
}
.hero-title {
  font-size: clamp(52px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.07em;
  font-weight: 700;
  max-width: 780px;
}
.hero-title em {
  color: var(--signal);
  font-style: normal;
}
.hero-sub {
  max-width: 650px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--signal); color: var(--ink); border: 1px solid var(--signal); }
.btn-secondary { border: 1px solid var(--line-strong); color: var(--paper); }
.btn-secondary:hover { border-color: var(--signal); color: var(--signal); }

.system-window {
  border: 1px solid var(--line-strong);
  background: rgba(13,18,26,.8);
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
  position: relative;
}
.system-window::before {
  content: "";
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 1px solid rgba(185,255,102,.12);
  z-index: -1;
}
.window-head {
  height: 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: var(--dim);
  font: 500 9px/1 "IBM Plex Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }
.window-body { padding: 22px; }
.console-line {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font: 500 11px/1.45 "IBM Plex Mono", monospace;
}
.console-line:last-child { border-bottom: 0; }
.console-id { color: var(--dim); }
.console-value { color: var(--paper); }
.console-state { color: var(--signal); }
.console-state.cyan { color: var(--cyan); }
.console-state.orange { color: var(--orange); }
.window-foot {
  border-top: 1px solid var(--line);
  padding: 15px 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font: 500 9px/1.4 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.signals {
  border-bottom: 1px solid var(--line);
  background: var(--ink-soft);
}
.signals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.signal-item {
  min-height: 92px;
  padding: 22px;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font: 500 11px/1.5 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.signal-item:last-child { border-right: 1px solid var(--line); }
.signal-num { color: var(--signal); }

.thesis-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 80px;
  align-items: start;
}
.thesis-label {
  color: var(--dim);
  font: 500 11px/1.8 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  position: sticky;
  top: 110px;
}
.thesis-copy {
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.12;
  letter-spacing: -.05em;
  font-weight: 600;
}
.thesis-copy span { color: var(--muted); }
.thesis-note {
  margin-top: 40px;
  padding-left: 20px;
  border-left: 1px solid var(--signal);
  color: var(--muted);
  max-width: 650px;
  font-size: 15px;
  line-height: 1.8;
}

#practice { background: var(--ink-soft); }
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.practice-item {
  min-height: 340px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background .25s;
}
.practice-item:hover { background: var(--panel); }
.practice-index {
  color: var(--signal);
  font: 600 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .1em;
}
.practice-item h3 {
  margin-top: 70px;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.practice-item p {
  max-width: 470px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.practice-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.tag {
  border: 1px solid var(--line);
  padding: 6px 8px;
  color: var(--dim);
  font: 500 9px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.critical-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 74px;
  align-items: start;
}
.critical-copy .section-title { font-size: clamp(40px, 5vw, 68px); }
.critical-list {
  margin-top: 42px;
  list-style: none;
  border-top: 1px solid var(--line);
}
.critical-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.critical-list strong { color: var(--paper); display: block; margin-bottom: 3px; }
.critical-list b { color: var(--signal); font: 500 10px/1.6 "IBM Plex Mono", monospace; }
.assurance-board {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 22px;
}
.board-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 500 10px/1.4 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.assurance-row {
  display: grid;
  grid-template-columns: 130px 1fr 55px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font: 500 11px/1.3 "IBM Plex Mono", monospace;
}
.assurance-row:last-child { border-bottom: 0; }
.assurance-name { color: var(--paper); }
.assurance-track { height: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.assurance-track i { display: block; height: 100%; background: var(--signal); }
.assurance-state { color: var(--signal); text-align: right; font-size: 9px; }
.boundary {
  margin-top: 18px;
  border: 1px solid rgba(255,184,107,.25);
  background: rgba(255,184,107,.05);
  padding: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.boundary strong { color: var(--orange); }

#research { background: var(--paper); color: var(--ink); }
#research .eyebrow { color: #47651e; }
#research .eyebrow::before { background: #47651e; }
#research .section-lead { color: #53606d; }
.research-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 62px;
  border-top: 1px solid #bdc5cc;
  border-left: 1px solid #bdc5cc;
}
.research-step {
  min-height: 225px;
  padding: 25px;
  border-right: 1px solid #bdc5cc;
  border-bottom: 1px solid #bdc5cc;
}
.research-step b {
  color: #47651e;
  font: 600 10px/1 "IBM Plex Mono", monospace;
}
.research-step h3 { margin-top: 60px; font-size: 20px; letter-spacing: -.03em; }
.research-step p { margin-top: 10px; color: #64707c; font-size: 12px; line-height: 1.65; }
.directions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-top: 70px;
}
.direction {
  background: #e3e8ec;
  padding: 24px;
  min-height: 220px;
  position: relative;
}
.direction::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #7ca83a;
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .3s;
}
.direction:hover::before { transform: scaleX(1); }
.direction small {
  color: #71808d;
  font: 500 9px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.direction h3 { margin-top: 50px; font-size: 21px; line-height: 1.2; letter-spacing: -.03em; }
.direction p { margin-top: 12px; color: #64707c; font-size: 12px; line-height: 1.7; }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 74px;
  align-items: start;
}
.about-copy .section-title { font-size: clamp(38px, 5vw, 64px); }
.about-photo {
  width: 120px;
  height: 120px;
  border: 1px solid var(--line-strong);
  background: var(--panel) center/cover no-repeat;
  margin-bottom: 26px;
}
.book-cover {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line-strong);
  background: var(--panel-2) center/cover no-repeat;
  margin-bottom: 16px;
}
.about-bio {
  margin-top: 28px;
  color: var(--muted);
  max-width: 620px;
  font-size: 15px;
  line-height: 1.85;
}
.about-timeline {
  margin-top: 42px;
  list-style: none;
  border-top: 1px solid var(--line);
}
.about-timeline li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.about-timeline b { color: var(--signal); font: 500 10px/1.6 "IBM Plex Mono", monospace; }
.about-timeline strong { color: var(--paper); display: block; margin-top: 2px; margin-bottom: 4px; font-size: 14px; }
.about-timeline .about-date {
  display: block;
  color: var(--dim);
  font: 500 10px/1.6 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.talks-board {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 22px;
}
.talk-row {
  display: grid;
  grid-template-columns: 96px 1fr 76px;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.talk-row:last-child { border-bottom: 0; }
.talk-event {
  color: var(--paper);
  font: 600 10px/1.4 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.talk-title { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.talk-status {
  text-align: right;
  font: 600 9px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.talk-status.past { color: var(--dim); }
.talk-status.upcoming { color: var(--cyan); }
.book-card {
  margin-top: 18px;
  border: 1px solid rgba(185,255,102,.28);
  background: var(--signal-soft);
  padding: 22px;
}
.book-card .tag { border-color: rgba(185,255,102,.35); color: var(--signal); margin-bottom: 14px; display: inline-block; }
.book-card h4 { font-size: 20px; letter-spacing: -.03em; color: var(--paper); }
.book-card p { margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }

#collaborate { background: var(--ink-soft); }
.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.collab {
  min-height: 430px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.collab-type {
  color: var(--signal);
  font: 600 10px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.collab h3 { margin-top: 62px; font-size: 30px; line-height: 1.1; letter-spacing: -.045em; }
.collab p { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.collab ul { list-style: none; margin-top: auto; padding-top: 30px; }
.collab li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font: 500 10px/1.5 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.notes-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: start;
}
.channel-list { border-top: 1px solid var(--line); }
.channel {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.channel b { color: var(--signal); font: 600 10px/1 "IBM Plex Mono", monospace; }
.channel strong { font-size: 15px; }
.channel span { color: var(--dim); font: 500 9px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }

#contact {
  padding: 0;
  background: var(--signal);
  color: var(--ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 70px;
  padding: 100px 0;
}
#contact .eyebrow { color: #31451a; }
#contact .eyebrow::before { background: #31451a; }
#contact .section-title { max-width: 720px; }
#contact .section-lead { color: #3d4b33; }
.contact-email {
  background: var(--ink);
  color: var(--paper);
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 18px;
}
.contact-email-label {
  color: var(--muted);
  font: 500 9px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.contact-email-link {
  color: var(--ink);
  background: var(--signal);
  padding: 18px;
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 800;
  overflow-wrap: anywhere;
  transition: background .2s, color .2s;
}
.contact-email-link:hover { background: var(--paper); }
.contact-email-note { color: var(--dim); font-size: 10px; line-height: 1.6; }

footer { padding: 30px 0; background: var(--ink); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--dim);
  font: 500 9px/1.5 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.footer-inner a { color: var(--muted); text-decoration: none; }

.reveal { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a { display: block; padding: 18px min(24px, 5vw); font-size: 14px; }
  .hero-grid, .critical-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 62px; }
  .system-window { max-width: 650px; }
  .signals-grid { grid-template-columns: 1fr 1fr; }
  .signal-item:nth-child(2) { border-right: 1px solid var(--line); }
  .thesis-grid { grid-template-columns: 1fr; gap: 35px; }
  .thesis-label { position: static; }
  .research-flow { grid-template-columns: 1fr 1fr; }
  .collab-grid { grid-template-columns: 1fr; }
  .collab { min-height: 340px; }
  .notes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container, .nav-inner { width: min(calc(100% - 32px), var(--max)); }
  section { padding: 82px 0; }
  .nav-cta { display: none; }
  .brand { font-size: 15px; }
  #hero { padding: 70px 0 50px; min-height: auto; }
  .hero-title { font-size: clamp(45px, 14vw, 65px); }
  .hero-sub { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .console-line { grid-template-columns: 58px 1fr; }
  .console-state { grid-column: 2; }
  .window-foot { flex-direction: column; }
  .signals-grid, .practice-grid, .research-flow, .directions { grid-template-columns: 1fr; }
  .signal-item { border-right: 1px solid var(--line); }
  .practice-item { min-height: 310px; padding: 26px; }
  .practice-item h3 { margin-top: 55px; }
  .critical-grid, .about-grid { gap: 45px; }
  .talk-row { grid-template-columns: 1fr; gap: 6px; }
  .talk-status { text-align: left; }
  .assurance-row { grid-template-columns: 105px 1fr; }
  .assurance-state { grid-column: 2; text-align: left; }
  .research-step { min-height: 190px; }
  .research-step h3 { margin-top: 42px; }
  .collab { padding: 25px; }
  .contact-grid { padding: 78px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
