:root {
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-strong: #eef3f2;
  --ink: #132127;
  --muted: #58656b;
  --line: #d8dfda;
  --blue: #164e78;
  --teal: #176d71;
  --violet: #5c4d8b;
  --amber: #b6652b;
  --shadow: 0 24px 60px rgba(19, 33, 39, 0.09);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(238, 243, 242, 0.75), rgba(246, 247, 242, 0) 520px),
    var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 223, 218, 0.9);
  border-radius: 8px;
  box-shadow: 0 14px 44px rgba(19, 33, 39, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--surface-strong);
  color: var(--ink);
}

.site-nav .nav-cta {
  background: var(--blue);
  color: #fff;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
  background: #0f3d61;
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero,
.page-hero,
.section,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 44px;
  min-height: calc(100vh - 124px);
  padding: 84px 0 58px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.8rem);
}

.hero-text,
.page-hero p {
  max-width: 760px;
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: #0f3d61;
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: #b9c5c0;
}

.hero-visual {
  min-width: 0;
}

.loop-shell {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(22, 78, 120, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 78, 120, 0.06) 1px, transparent 1px),
    var(--surface);
  background-size: 28px 28px;
  box-shadow: var(--shadow);
}

.loop-shell::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px dashed rgba(23, 109, 113, 0.42);
  border-radius: 8px;
}

.boundary {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.loop-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}

.loop-grid::before {
  content: "";
  position: absolute;
  inset: 38px 44px;
  border: 2px solid rgba(92, 77, 139, 0.24);
  border-radius: 48%;
  transform: rotate(-9deg);
}

.loop-node {
  position: relative;
  display: flex;
  min-height: 124px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(19, 33, 39, 0.08);
}

.loop-node span,
.card-index,
.timeline span,
.status {
  color: var(--violet);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loop-node strong {
  max-width: 180px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
}

.loop-node.reasoning {
  grid-column: span 2;
  margin-inline: 72px;
  border-color: rgba(22, 78, 120, 0.4);
  background: #f7fbfb;
}

.loop-node.actions {
  border-top: 4px solid var(--amber);
}

.loop-node.feedback {
  border-top: 4px solid var(--teal);
}

.page-hero {
  padding: 106px 0 54px;
}

.section {
  padding: 72px 0;
}

.section + .section {
  border-top: 1px solid rgba(216, 223, 218, 0.78);
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

h2 {
  max-width: 760px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.stacked-copy p {
  font-size: 1.04rem;
}

.callout-line {
  padding-left: 18px;
  border-left: 4px solid var(--teal);
  color: var(--ink);
  font-weight: 700;
}

.section-heading {
  display: grid;
  max-width: 820px;
  margin-bottom: 32px;
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.lab-card,
.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(19, 33, 39, 0.06);
}

.feature-card p,
.lab-card p,
.contact-card p {
  margin-bottom: 0;
}

.feature-card .card-index {
  display: inline-block;
  margin-bottom: 22px;
}

.band {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - var(--max)) / 2));
  background: #eaf0ee;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  padding: 9px 12px;
  border: 1px solid rgba(22, 78, 120, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.application-list,
.question-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.application-list article,
.question-list p {
  padding-top: 16px;
  border-top: 3px solid var(--teal);
}

.application-list p,
.question-list p {
  margin-bottom: 0;
}

.research-fit {
  align-items: center;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

.founder-strip,
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.founder-copy {
  max-width: 760px;
}

.founder-copy p:last-child,
.cta-panel p:last-of-type {
  margin-bottom: 0;
}

.cta-panel {
  display: block;
  margin-block: 72px;
  background: #132127;
  color: #fff;
}

.cta-panel h2,
.cta-panel p {
  color: #fff;
}

.cta-panel p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.cta-panel .button {
  margin-top: 22px;
  background: #f4f7f5;
  color: var(--ink);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  padding: 24px 0 0;
  border-top: 3px solid var(--violet);
}

.question-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-feature p {
  max-width: 680px;
}

.project-feature .button {
  margin-top: 12px;
}

.project-flow {
  display: grid;
  gap: 10px;
}

.project-flow span {
  position: relative;
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7fbfb;
  color: var(--ink);
  font-weight: 700;
}

.project-flow span:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 24px;
  width: 2px;
  height: 8px;
  background: var(--teal);
}

.lab-card h2 {
  margin-top: 14px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.lab-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.lab-card li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.lab-card.wide {
  grid-column: span 2;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.email-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(19, 33, 39, 0.06);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd5d1;
  border-radius: 7px;
  padding: 12px 13px;
  background: #fbfcfb;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

/* ── SVG illustration helpers ── */
.nm-diagram {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.research-pipeline {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 32px;
}

.card-icon {
  display: block;
  margin-bottom: 14px;
}

.about-visual {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  opacity: 0.9;
}

/* ── End SVG helpers ── */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .contact-layout,
  .project-feature {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 62px;
  }

  .hero-visual {
    max-width: 680px;
  }

  .feature-grid.four,
  .feature-grid.three,
  .application-list,
  .question-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    max-width: 230px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4.4rem);
  }

  .page-hero {
    padding-top: 72px;
  }

  .loop-shell {
    min-height: auto;
    padding: 18px;
  }

  .loop-shell::before,
  .loop-grid::before {
    display: none;
  }

  .loop-grid {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .loop-node.reasoning,
  .lab-card.wide {
    grid-column: auto;
    margin-inline: 0;
  }

  .feature-grid.four,
  .feature-grid.three,
  .application-list,
  .question-list,
  .timeline,
  .lab-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .founder-strip {
    display: grid;
    padding: 26px;
  }

  .cta-panel {
    padding: 28px;
  }

  .site-footer {
    display: grid;
  }
}
