:root {
  --cream: #f7f4ef;
  --cream-2: #f0ede6;
  --ink: #1a1610;
  --ink-2: #3a3428;
  --accent: #0b6f78;
  --accent-light: #58d7dc;
  --line: rgba(26, 22, 16, 0.1);
  --line-strong: rgba(26, 22, 16, 0.14);
  --body-font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: var(--body-font);

  /* type scale (fluid where useful, fixed where stable) */
  --t-hero-title: clamp(1.45rem, 0.85rem + 4.2vw, 3.875rem);
  --t-hero-title-mobile: clamp(1.45rem, 1rem + 3vw, 3rem);
  --t-hero-lead: 1.1875rem;
  --t-hero-lead-mobile: 1.0625rem;
  --t-page-title: clamp(2rem, 1.25rem + 2.4vw, 3.25rem);
  --t-section-title: clamp(1.5rem, 1.1rem + 1.4vw, 1.95rem);
  --t-card-title: 1.0625rem;
  --t-stat: clamp(1.55rem, 1.15rem + 1.35vw, 2.2rem);
  --t-body: 1rem;
  --t-small: 0.8125rem;
  --t-label: 0.6875rem;
  --t-button: 0.75rem;

  /* legacy aliases retained while we sweep */
  --type-body: var(--t-body);
  --type-display: var(--t-hero-title);
  --t-display: var(--t-hero-title);
  --t-h2: var(--t-section-title);
  --t-h3: var(--t-card-title);
  --t-eyebrow: var(--t-label);

  /* spacing on a 4px scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;
  --s-11: 88px;

  --container: 1180px;
  /* Total horizontal inset (left + right); keeps .nav and .container edges aligned */
  --page-edge: 48px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--body-font);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: var(--t-body);
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  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: 30;
  background: rgba(247, 244, 239, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav,
.container {
  width: min(var(--container), calc(100% - var(--page-edge)));
  margin-inline: auto;
  box-sizing: border-box;
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: auto;
}

.brand-name {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.nav-link,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0 22px;
  font-family: var(--display-font);
  font-size: var(--t-button);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.22s ease, background 0.2s ease;
  text-transform: none;
}

.nav-links .nav-link,
.nav-links .button {
  min-height: 50px;
  padding: 0 28px;
  font-size: 0.875rem;
}

.nav-link {
  color: rgba(26, 22, 16, 0.72);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.button {
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 0 rgba(26, 22, 16, 0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

.button-primary {
  background: var(--accent);
  color: var(--cream);
  border-color: var(--accent);
}

.button-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 18px -16px rgba(11, 111, 120, 0.55);
}

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

.button-secondary:hover {
  background: rgba(26, 22, 16, 0.04);
  box-shadow: 0 10px 18px -18px rgba(26, 22, 16, 0.22);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.section {
  padding: var(--s-10) 0;
}

.section-alt {
  background: var(--cream);
}

.section-heading {
  margin: 0;
  font-family: var(--display-font);
  font-size: var(--t-section-title);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.page-title {
  margin: 0;
  font-family: var(--display-font);
  font-size: var(--t-page-title);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: pretty;
}

.section-eyebrow {
  margin-top: 0;
  margin-bottom: var(--s-3);
  color: var(--accent);
  font-family: var(--display-font);
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-rule {
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
}

.muted {
  color: rgba(26, 22, 16, 0.74);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 16px;
  background: var(--cream);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(26, 22, 16, 0.04) 0, rgba(26, 22, 16, 0.04) 1px, transparent 1px, transparent 120px),
    repeating-linear-gradient(0deg, rgba(26, 22, 16, 0.035) 0, rgba(26, 22, 16, 0.035) 1px, transparent 1px, transparent 88px);
  pointer-events: none;
}

.hero .container.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-grid {
  --hero-text-max: min(680px, 100%);
  --hero-visual-max: min(540px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center;
  column-gap: 30px;
  row-gap: var(--s-3);
}

.hero-copy {
  min-width: 0;
  width: 100%;
  max-width: var(--hero-text-max);
  justify-self: start;
}

.hero-copy h1,
.hero-title {
  margin: 0 0 12px;
  max-width: 100%;
  font-family: var(--display-font);
  font-size: var(--t-hero-title);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.06em;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: pretty;
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero-copy h1.hero-title {
    font-size: var(--t-hero-title-mobile);
    margin-bottom: var(--s-2);
  }
}

.hero-copy p {
  max-width: min(650px, 100%);
  margin: 0;
  font-size: var(--t-hero-lead);
  color: rgba(26, 22, 16, 0.72);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.protein-card {
  position: relative;
  width: min(100%, 600px);
  max-width: var(--hero-visual-max);
  justify-self: center;
  margin-inline: 0;
  padding-top: 0;
  box-sizing: border-box;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  border: 0;
  background: var(--cream);
}

.protein-embed {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.protein-embed.is-ready {
  opacity: 1;
}

.protein-embed canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.work-section {
  padding: var(--s-8) 0 var(--s-10);
}

.stat-card {
  min-height: 0;
  padding: var(--s-4) var(--s-5);
  background: var(--cream);
}

.work-section .stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.work-section .stat-card .card-text {
  margin: 0;
  text-align: center;
  max-width: 22em;
  color: rgba(26, 22, 16, 0.62);
}

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: var(--s-2);
  color: rgba(11, 111, 120, 0.78);
  font-family: var(--display-font);
  font-size: var(--t-stat);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.partners-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
}

.partners-shell::before,
.partners-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 80px;
  pointer-events: none;
}

.partners-shell::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), rgba(247, 244, 239, 0));
}

.partners-shell::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), rgba(247, 244, 239, 0));
}

.ticker-track {
  display: flex;
  width: max-content;
  transform: translate3d(-50%, 0, 0);
  animation: partner-marquee 48s linear infinite;
}

.ticker-half {
  display: flex;
  flex: 0 0 auto;
}

.partners-shell:hover .ticker-track {
  animation-play-state: paused;
}

.partner-link {
  flex: 0 0 auto;
  width: 184px;
  height: 92px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding: 14px 18px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.22s ease, background 0.2s ease, box-shadow 0.22s ease, filter 0.2s ease;
}

.partner-link img {
  max-width: 154px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
}

/* Per-partner caps balance long wordmarks, dense institutional marks, and seals. */
.partner-link[aria-label="Codexis"] img { max-width: 138px; max-height: 30px; }
.partner-link[aria-label="Twist Bioscience"] img { max-width: 164px; max-height: 64px; }
.partner-link[aria-label="Allozymes"] img { max-width: 104px; max-height: 66px; }
.partner-link[aria-label="Birch Biosciences"] img { max-width: 168px; max-height: 50px; }
.partner-link[aria-label="Charles River Laboratories"] img { max-width: 158px; max-height: 28px; }
.partner-link[aria-label="UCLA"] img { max-width: 130px; max-height: 64px; }
.partner-link[aria-label="University of Manchester"] img { max-width: 166px; max-height: 64px; }
.partner-link[aria-label="DSHB"] img { max-width: 118px; max-height: 42px; transform: translateY(-2px); }

@keyframes partner-marquee {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.team-group-label {
  margin: 0 0 var(--s-4);
  font-family: var(--display-font);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.team-group-advisors {
  margin-top: var(--s-9);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

.team-card,
.advisor-card,
.investor-card,
.contact-card,
.info-card {
  border: 1px solid var(--line);
  background: var(--cream);
}

.stats-grid,
.investor-grid {
  border-color: var(--line);
}

.stat-card {
  border-color: var(--line-strong);
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s-8) var(--s-5) var(--s-5);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.team-card:hover {
  box-shadow: 0 1px 0 var(--line), 0 8px 18px -14px rgba(26, 22, 16, 0.18);
}

.team-card .mit-link {
  position: absolute;
  top: var(--s-4);
  right: var(--s-5);
  left: auto;
  line-height: 0;
}

.team-card .mit-link img {
  display: block;
  height: 24px;
  width: auto;
  mix-blend-mode: multiply;
  opacity: 0.88;
}

.team-card .mit-link:hover img {
  opacity: 1;
}

.headshot {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
}

.card-title {
  margin: 0 0 var(--s-2);
  font-family: var(--display-font);
  font-size: var(--t-card-title);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.card-meta {
  margin: 0 0 var(--s-3);
  color: var(--accent);
  font-family: var(--display-font);
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-text {
  margin: 0 0 var(--s-2);
  color: rgba(26, 22, 16, 0.78);
  font-weight: 500;
}

.text-link {
  color: var(--accent);
  font-family: var(--display-font);
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--ink);
}

.investor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.investor-card {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5) var(--s-6);
  background: var(--cream);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, background 0.2s ease, box-shadow 0.22s ease, filter 0.2s ease;
}

.investor-card:hover,
.investor-card:focus-visible {
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 0 0 1px rgba(11, 111, 120, 0.12), 0 12px 22px -22px rgba(26, 22, 16, 0.28);
  transform: translateY(-1px);
}

.partner-link:hover,
.partner-link:focus-visible {
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 0 0 1px rgba(11, 111, 120, 0.12);
  transform: translateY(-1px);
}

.investor-card:active,
.partner-link:active {
  transform: translateY(0);
  box-shadow: inset 0 0 0 1px rgba(11, 111, 120, 0.16);
}

.investor-card img {
  width: auto;
  height: auto;
  max-width: 84%;
  max-height: 50px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
}

/* Per-investor caps so wordmarks/lockups read at the same optical size. */
.investor-card[aria-label="Y Combinator"] img { max-height: 36px; max-width: 174px; }
.investor-card[aria-label="AIX Ventures"] img { max-height: 58px; max-width: 220px; }
.investor-card[aria-label="E14 Fund"] img { max-height: 64px; max-width: 90px; }
.investor-card[aria-label="Village Global"] img { max-height: 28px; max-width: 184px; }

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

.advisor-card {
  padding: var(--s-3) var(--s-4);
  text-align: center;
}

.advisor-card .card-title {
  font-size: var(--t-card-title);
  margin-bottom: var(--s-2);
}

.advisor-card .card-text {
  font-size: var(--t-small);
  line-height: 1.6;
  color: rgba(26, 22, 16, 0.78);
  margin: 0;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s-9);
  align-items: start;
}

.contact-page-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-4);
}

.contact-page-layout .contact-intro {
  max-width: 760px;
}

.contact-page-layout > #project-form {
  width: min(100%, 760px);
}

.contact-options-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
  align-items: stretch;
}

.contact-options-layout #project-form {
  grid-column: 1;
  min-height: 100%;
}

.contact-options-layout #book-consultation {
  grid-column: 2;
  min-height: 100%;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  padding: var(--s-7) 0 var(--s-7);
  background: var(--cream);
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(26, 22, 16, 0.04) 0, rgba(26, 22, 16, 0.04) 1px, transparent 1px, transparent 120px),
    repeating-linear-gradient(0deg, rgba(26, 22, 16, 0.035) 0, rgba(26, 22, 16, 0.035) 1px, transparent 1px, transparent 88px);
  pointer-events: none;
}

.contact-intro .section-rule {
  margin-bottom: var(--s-3);
}

.contact-page .contact-intro .page-title {
  margin-left: -0.04em;
}

.contact-lead {
  margin: 0 0 var(--s-3);
  max-width: min(100%, 60ch);
  color: rgba(26, 22, 16, 0.76);
  font-size: var(--t-hero-lead);
  font-weight: 500;
  line-height: 1.65;
  text-wrap: pretty;
}

.contact-lead strong {
  color: var(--ink);
  font-weight: 600;
}

.contact-card {
  padding: var(--s-7);
}

.form-heading .section-eyebrow {
  margin: 0;
}

.form-intro {
  margin: 0 0 4px;
  max-width: min(100%, 56ch);
  font-size: 0.95rem;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 540px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: var(--s-2);
}

.field-message {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.field-message textarea {
  flex: 1 1 auto;
  min-height: 150px;
}

.field label {
  font-family: var(--display-font);
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 22, 16, 0.72);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(26, 22, 16, 0.16);
  border-radius: 2px;
  background: #fffaf1;
  color: var(--ink);
  padding: 13px var(--s-4);
  outline: none;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 111, 120, 0.12);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.calendly-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: var(--s-2);
}

.calendly-intro {
  margin: 0 0 4px;
  max-width: min(100%, 56ch);
  font-size: 0.95rem;
}

.calendly-embed-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 0;
}

.calendly-embed-wrap .calendly-inline-widget {
  width: 100%;
  min-height: 420px;
}

@media (max-width: 600px) {
  .calendly-embed-wrap .calendly-inline-widget {
    min-height: 580px;
  }
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-message {
  border: 1px solid var(--line-strong);
  padding: var(--s-3) var(--s-4);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.5;
}

.form-message-error {
  background: rgba(11, 111, 120, 0.08);
  color: var(--ink);
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.confirmation-card {
  display: grid;
  gap: var(--s-3);
}

.confirmation-stack {
  display: grid;
  gap: var(--s-4);
}

.success-title {
  margin: 0;
  font-family: var(--display-font);
  font-size: var(--t-section-title);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.success-copy {
  margin: 0;
  color: rgba(26, 22, 16, 0.74);
  font-weight: 500;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.info-stack {
  display: grid;
  gap: var(--s-3);
  margin-top: 0;
}

.info-card {
  padding: var(--s-5);
  border-color: var(--line-strong);
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: var(--s-8) 0 var(--s-6);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(240, 237, 230, 0.035) 0, rgba(240, 237, 230, 0.035) 1px, transparent 1px, transparent 120px);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 26px;
  align-items: end;
  border-bottom: 1px solid rgba(240, 237, 230, 0.1);
  padding-bottom: var(--s-6);
  margin-bottom: var(--s-5);
}

.contact-page .footer-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s-9);
  align-items: start;
}

.footer-eyebrow {
  margin-top: 0;
  margin-bottom: var(--s-3);
  color: var(--accent-light);
  font-family: var(--display-font);
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-intro .footer-title {
  margin: 0;
}

.footer-title {
  max-width: 650px;
  font-family: var(--display-font);
  font-size: var(--t-page-title);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-copy {
  margin: 0;
  max-width: 34rem;
  color: rgba(240, 237, 230, 0.82);
  font-size: var(--t-body);
  font-weight: 500;
  line-height: 1.62;
  text-align: left;
  text-wrap: pretty;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--s-3);
  width: 100%;
}

.footer-actions .button-secondary {
  color: rgba(240, 237, 230, 0.88);
  border-color: rgba(240, 237, 230, 0.32);
}

.footer-actions .button-secondary:hover {
  background: rgba(240, 237, 230, 0.08);
}

.footer-actions .button-primary {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-2);
  color: rgba(240, 237, 230, 0.7);
  font-size: var(--t-small);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-left: -1px;
  color: var(--cream);
  text-decoration: none;
}

.footer-brand .brand-mark {
  opacity: 1;
}

.footer-brand .brand-name {
  color: rgba(240, 237, 230, 0.9);
}

.section-rule {
  position: relative;
}

.section-rule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.section-rule.is-revealed::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .ticker-track {
    animation: none !important;
    transform: none !important;
  }

  .protein-embed {
    transition: none;
  }

  .section-rule::after {
    transform: scaleX(1);
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-options-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-options-layout #project-form,
  .contact-options-layout #book-consultation {
    grid-column: auto;
  }

  .footer-grid {
    gap: var(--s-6);
    align-items: start;
  }

  .hero {
    padding: 22px 0 14px;
  }

  .hero-grid {
    --hero-text-max: 100%;
    --hero-visual-max: min(420px, 100%);
  }

  .hero-copy {
    justify-self: stretch;
    max-width: 100%;
    width: 100%;
  }

  .protein-card {
    justify-self: center;
    max-width: min(420px, 92vw);
    width: min(100%, 420px);
  }

  .stats-grid,
  .investor-grid,
  .advisor-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  :root {
    --page-edge: 28px;
    --t-page-title: clamp(2rem, 8vw, 2.55rem);
  }

  .nav {
    min-height: 60px;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--s-2);
    padding: 10px 0;
  }

  .brand-mark {
    width: 30px;
  }

  .brand {
    gap: var(--s-2);
  }

  .nav-links {
    width: auto;
    justify-content: flex-end;
    gap: var(--s-2);
  }

  .nav-links .nav-link {
    display: none;
  }

  .nav-links .nav-link,
  .nav-links .button {
    min-height: 44px;
    padding: 0 18px;
    font-size: var(--t-button);
  }

  .nav-links .button {
    flex: 0 0 auto;
  }

  .section {
    padding: var(--s-8) 0;
  }

  .work-section {
    padding: var(--s-6) 0 var(--s-8);
  }

  .hero {
    padding: 14px 0 10px;
  }

  .hero-grid {
    gap: var(--s-1);
    --hero-visual-max: min(180px, 56vw);
  }

  .hero-copy p {
    font-size: var(--t-hero-lead-mobile);
    line-height: 1.5;
  }

  .protein-card {
    max-width: min(180px, 56vw);
    width: min(100%, 180px);
    padding-top: 0;
  }

  .hero-copy h1.hero-title {
    margin-bottom: var(--s-2);
  }

  .stat-card,
  .team-card,
  .advisor-card,
  .contact-card,
  .info-card {
    padding: var(--s-5);
  }

  .work-section .stat-card {
    padding: 14px var(--s-4);
  }

  .stat-value {
    margin-bottom: var(--s-1);
  }

  .partners-shell::before,
  .partners-shell::after {
    width: 44px;
  }

  .partner-link {
    width: 146px;
    height: 76px;
    padding: var(--s-3);
  }

  .partner-link img {
    max-width: 122px;
  }

  /* Mobile caps keep optical balance while preserving width for long wordmarks. */
  .partner-link[aria-label="Codexis"] img { max-width: 118px; max-height: 26px; }
  .partner-link[aria-label="Twist Bioscience"] img { max-width: 140px; max-height: 54px; }
  .partner-link[aria-label="Allozymes"] img { max-width: 92px; max-height: 56px; }
  .partner-link[aria-label="Birch Biosciences"] img { max-width: 144px; max-height: 42px; }
  .partner-link[aria-label="Charles River Laboratories"] img { max-width: 132px; max-height: 24px; }
  .partner-link[aria-label="UCLA"] img { max-width: 112px; max-height: 54px; }
  .partner-link[aria-label="University of Manchester"] img { max-width: 142px; max-height: 54px; }
  .partner-link[aria-label="DSHB"] img { max-width: 104px; max-height: 36px; transform: translateY(-1px); }

  .team-card {
    padding: var(--s-7) var(--s-5) var(--s-5);
  }

  .team-card .mit-link img {
    height: 22px;
  }

  .headshot {
    width: 116px;
    height: 116px;
  }

  .investor-card {
    min-height: 88px;
    padding: var(--s-4) var(--s-5);
  }

  .investor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .investor-card img {
    max-width: 86%;
    max-height: 44px;
  }

  .investor-card[aria-label="Y Combinator"] img { max-height: 32px; max-width: 156px; }
  .investor-card[aria-label="AIX Ventures"] img { max-height: 48px; max-width: 190px; }
  .investor-card[aria-label="E14 Fund"] img { max-height: 56px; max-width: 78px; }
  .investor-card[aria-label="Village Global"] img { max-height: 24px; max-width: 164px; }

  .contact-layout {
    gap: var(--s-5);
  }

  .contact-page-layout,
  .contact-options-layout {
    gap: var(--s-5);
  }

  .contact-hero {
    padding: var(--s-7) 0 var(--s-8);
  }

  .contact-lead {
    font-size: var(--t-hero-lead-mobile);
    line-height: 1.55;
    margin-bottom: var(--s-5);
  }

  .contact-card {
    padding: var(--s-5);
  }

  .form-grid {
    gap: var(--s-4);
  }

  .field input,
  .field select,
  .field textarea {
    padding: 13px var(--s-4);
  }

  .field textarea {
    min-height: 150px;
  }

  .form-actions .button,
  .footer-actions .button {
    width: 100%;
  }

  .footer-actions {
    width: 100%;
  }

  .site-footer {
    padding: var(--s-7) 0 var(--s-6);
  }

  .footer-grid,
  .contact-page .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .footer-title {
    font-size: clamp(2rem, 8.6vw, 2.45rem);
    line-height: 1.06;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  :root {
    --page-edge: 24px;
  }

  .brand-mark {
    width: 28px;
  }

  .brand-name {
    font-size: var(--t-label);
  }

  .nav-links .nav-link,
  .nav-links .button {
    min-height: 44px;
    padding: 0 14px;
    font-size: var(--t-label);
  }

  .hero-copy .button {
    width: 100%;
  }
}
