/* DeNovoLabs — marketing site styles */

:root {
  --base: #07090e;          /* near-black */
  --navy: #0a1626;          /* deep-navy section bg */
  --blue: #6f9bff;          /* primary accent */
  --teal: #2fe0c6;          /* secondary accent */
  --ink: #eef2fb;           /* primary text */
  --muted: #97a3bd;         /* secondary text */
  --faint: #6b7793;         /* tertiary text */
  --hair: rgba(255,255,255,0.10);
  --hair-soft: rgba(255,255,255,0.06);
  --card: rgba(255,255,255,0.04);
  --card-hi: rgba(255,255,255,0.06);
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);

  --f-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(111,155,255,0.30); color: #fff; }

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

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

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
}
.eyebrow.blue { color: var(--blue); }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.lede { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 60ch; text-wrap: pretty; }
p { text-wrap: pretty; }

.section-title { font-size: clamp(30px, 4.4vw, 52px); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 140px); }

.section-navy {
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(111,155,255,0.10), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(47,224,198,0.06), transparent 55%),
    var(--navy);
}

.hairline { border: 0; border-top: 1px solid var(--hair); margin: 0; }

/* ambient protein motifs sitting behind section content */
.section-pad { overflow: hidden; }
.section-pad > .wrap { position: relative; z-index: 2; }
.section-motif { position: absolute; z-index: 1; pointer-events: none; opacity: 0.42; }
.section-motif canvas { width: 100%; height: 100%; display: block; }
.motif-tr { top: -8%; right: -6%; width: clamp(320px, 38vw, 560px); height: clamp(320px, 38vw, 560px); }
.motif-bl { bottom: -10%; left: -8%; width: clamp(300px, 34vw, 500px); height: clamp(300px, 34vw, 500px); }
.motif-r  { top: 50%; right: -10%; transform: translateY(-50%); width: clamp(340px, 40vw, 600px); height: clamp(340px, 40vw, 600px); }
@media (max-width: 760px) { .section-motif { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  background: rgba(7,9,14,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { background: rgba(7,9,14,0.82); border-bottom-color: var(--hair); }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand .mark { width: 22px; height: 22px; flex: none; }
.brand b { font-weight: 600; }
.brand span { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--muted);
  font-family: var(--f-body);
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--hair); color: var(--ink);
  width: 44px; height: 44px; border-radius: 2px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px;
  font-family: var(--f-body); font-size: 15px; font-weight: 500;
  border: 1px solid var(--hair); border-radius: 2px;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
  background: transparent; color: var(--ink);
}
.btn:hover { border-color: rgba(255,255,255,0.28); background: var(--card); }
.btn-primary {
  background: var(--blue); border-color: var(--blue); color: #061025; font-weight: 600;
  box-shadow: 0 0 0 0 rgba(111,155,255,0.5);
}
.btn-primary:hover { background: #84acff; border-color: #84acff; box-shadow: 0 10px 40px -12px rgba(111,155,255,0.7); }
.btn-ghost { background: transparent; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 40px;
  padding-top: 96px;
  background:
    radial-gradient(80% 70% at 70% 35%, rgba(111,155,255,0.14), transparent 60%),
    radial-gradient(70% 70% at 18% 90%, rgba(47,224,198,0.07), transparent 55%),
    var(--navy);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 120%, rgba(7,9,14,0.9), transparent 60%);
}
.hero .wrap { width: 100%; display: contents; }

.hero-copy { position: relative; z-index: 2; padding-left: var(--pad); max-width: 640px; justify-self: end; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 84px);
  margin: 22px 0 0;
}
.hero h1 .accent { color: var(--blue); }
.hero .tagline { font-size: clamp(19px, 2.1vw, 27px); color: var(--ink); margin-top: 18px; font-family: var(--f-display); font-weight: 400; letter-spacing: -0.01em; }
.hero .subline { margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-canvas-wrap {
  position: relative; z-index: 1;
  align-self: stretch; justify-self: stretch;
  min-height: 60svh;
}
.hero-canvas-wrap canvas { width: 100%; height: 100%; display: block; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
}
.scroll-hint .line { width: 1px; height: 34px; background: linear-gradient(var(--faint), transparent); }

/* ---------- generic section header ---------- */
.head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 68px); }
.head .eyebrow { display: inline-block; margin-bottom: 18px; }
.head p { margin-top: 20px; }

/* ---------- problem / stats ---------- */
.problem-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.bond-callout {
  border: 1px solid var(--hair); background: var(--card);
  padding: 30px; position: relative; overflow: hidden;
}
.bond-callout .big { font-family: var(--f-display); font-size: clamp(44px, 7vw, 72px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.bond-callout .big .unit { font-size: 0.42em; color: var(--muted); font-weight: 400; margin-left: 6px; }
.bond-callout .cf { font-family: var(--f-mono); color: var(--teal); font-size: 13px; letter-spacing: 0.12em; margin-bottom: 16px; }
.bond-callout .desc { color: var(--muted); margin-top: 14px; font-size: 15px; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1px; border: 1px solid var(--hair); background: var(--hair); }
.stat {
  background: var(--navy); padding: 26px 24px;
}
.stat .num { font-family: var(--f-display); font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.stat .num span { color: var(--blue); }
.stat .label { color: var(--muted); font-size: 14px; margin-top: 8px; }
.stat .src { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 12px; }

.problem-points { display: grid; gap: 22px; }
.problem-points .pt { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.problem-points .pt .idx { font-family: var(--f-mono); font-size: 12px; color: var(--teal); padding-top: 3px; letter-spacing: 0.1em; }
.problem-points .pt h3 { font-size: 19px; font-family: var(--f-display); }
.problem-points .pt p { color: var(--muted); font-size: 15px; margin: 6px 0 0; }

/* ---------- card grid (why now) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--hair); background: var(--hair); }
.card {
  background: var(--navy); padding: 30px 26px 34px; min-height: 260px;
  display: flex; flex-direction: column; transition: background .25s ease;
}
.card:hover { background: #0c1b30; }
.card .knum { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--blue); margin-bottom: 22px; }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .glyph { width: 30px; height: 30px; margin-bottom: 20px; color: var(--teal); }

/* ---------- vision ---------- */
.vision { position: relative; overflow: hidden; text-align: center; }
.vision .motif { position: absolute; inset: 0; z-index: 0; opacity: 0.5; }
.vision .motif canvas { width: 100%; height: 100%; }
.vision .wrap { position: relative; z-index: 2; }
.vision h2 { font-size: clamp(32px, 6vw, 76px); max-width: 18ch; margin: 22px auto 0; }
.vision h2 em { font-style: normal; color: var(--blue); }
.vision .lede { margin: 28px auto 0; text-align: center; }

/* ---------- platform pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: pillar; }
.pillar {
  border: 1px solid var(--hair); background: var(--card); padding: 34px 30px 38px; position: relative;
  transition: border-color .25s ease, transform .25s ease;
}
.pillar:hover { border-color: rgba(111,155,255,0.4); transform: translateY(-3px); }
.pillar .step { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--teal); text-transform: uppercase; }
.pillar h3 { font-size: 24px; margin: 16px 0 12px; }
.pillar p { color: var(--muted); font-size: 15px; margin: 0; }
.engine-note {
  margin-top: 40px; border: 1px solid var(--hair); background: var(--card);
  padding: 28px 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: space-between;
}
.engine-note .cycle { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.engine-note .cycle b { color: var(--ink); font-weight: 500; }
.engine-note .cycle .sep { color: var(--blue); }
.engine-note .tag { font-family: var(--f-display); font-size: clamp(18px, 2.4vw, 26px); color: var(--ink); letter-spacing: -0.01em; }
.engine-note .tag span { color: var(--teal); }

/* ---------- flagship pfas ---------- */
.flagship-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.status-card { border: 1px solid var(--hair); background: var(--card); padding: 30px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
  border: 1px solid rgba(47,224,198,0.4); padding: 7px 12px; border-radius: 2px;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.status-card h3 { font-size: 22px; margin: 22px 0 10px; }
.status-card p { color: var(--muted); font-size: 15px; }
.status-card .target { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--hair); }
.status-card .target .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.status-card .target .v { font-family: var(--f-display); font-size: 28px; margin-top: 8px; }
.status-card .target .v small { font-size: 14px; color: var(--muted); font-family: var(--f-body); display: block; margin-top: 4px; letter-spacing: 0; }

.timeline { display: grid; gap: 0; }
.timeline .t {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--hair-soft);
}
.timeline .t:last-child { border-bottom: 0; }
.timeline .t .marker { display: flex; flex-direction: column; align-items: center; }
.timeline .t .ring { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--faint); margin-top: 4px; }
.timeline .t.active .ring { border-color: var(--teal); background: rgba(47,224,198,0.18); box-shadow: 0 0 14px rgba(47,224,198,0.5); }
.timeline .t.done .ring { border-color: var(--blue); background: var(--blue); }
.timeline .t .stem { width: 2px; flex: 1; background: var(--hair); margin-top: 6px; }
.timeline .t:last-child .stem { display: none; }
.timeline .t .phase { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.timeline .t.active .phase { color: var(--teal); }
.timeline .t h4 { font-family: var(--f-display); font-size: 19px; font-weight: 600; margin: 8px 0 6px; }
.timeline .t p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- team ---------- */
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.leader { border: 1px solid var(--hair); background: var(--card); overflow: hidden; display: flex; flex-direction: column; }
.leader .photo {
  aspect-ratio: 1/1; position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 10px, rgba(255,255,255,0) 10px 20px),
    var(--navy);
  border-bottom: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.leader .photo picture { width: 100%; height: 100%; display: block; }
.leader .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: filter .4s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.leader:hover .photo img { transform: scale(1.03); }
.leader .photo .ph { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); border: 1px dashed var(--hair); padding: 8px 12px; }
.leader .body { padding: 24px 26px 28px; }
.leader h3 { font-size: 22px; }
.leader .role { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-top: 8px; }
.leader p { color: var(--muted); font-size: 15px; margin-top: 14px; }

.hiring { margin-top: 30px; border: 1px solid var(--hair); background: var(--card); padding: 30px; }
.hiring .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.hiring .roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 20px; border: 1px solid var(--hair-soft); background: var(--hair-soft); }
.hiring .roles .r { background: var(--navy); padding: 22px 20px; }
.hiring .roles .r h4 { font-family: var(--f-display); font-size: 16px; font-weight: 600; margin: 0; }
.hiring .roles .r p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-copy h2 { font-size: clamp(30px, 4.4vw, 52px); }
.contact-copy .lede { margin-top: 20px; }
.audience { display: grid; gap: 14px; margin-top: 30px; }
.audience .a { display: flex; gap: 14px; align-items: baseline; }
.audience .a .b { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; transform: translateY(-2px); }
.audience .a span { color: var(--muted); font-size: 15px; }
.audience .a b { color: var(--ink); font-weight: 600; }
.email-cta { margin-top: 32px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.email-cta a { font-family: var(--f-mono); font-size: 15px; color: var(--teal); letter-spacing: 0.02em; border-bottom: 1px solid rgba(47,224,198,0.4); padding-bottom: 2px; }
.email-cta a:hover { color: #56f0d8; }

form.partner { border: 1px solid var(--hair); background: var(--card); padding: clamp(26px, 3vw, 38px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(7,9,14,0.6); border: 1px solid var(--hair); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; padding: 13px 14px; border-radius: 2px; min-height: 46px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(111,155,255,0.18);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2397a3bd' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }
.field .err { color: #ff8a8a; font-size: 12px; margin-top: 7px; display: none; font-family: var(--f-mono); letter-spacing: 0.04em; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: rgba(255,138,138,0.7); }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.partner .btn-primary { width: 100%; margin-top: 6px; }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .check { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid var(--teal); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--muted); margin-top: 10px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hair); background: var(--base); }
.footer .wrap { padding-block: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--faint); }
.footer .meta span { color: var(--muted); }
.footer .links { display: flex; gap: 24px; }
.footer .links a { font-size: 14px; color: var(--muted); }
.footer .links a:hover { color: var(--ink); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hiring .roles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,9,14,0.97); border-bottom: 1px solid var(--hair); padding: 12px var(--pad) 20px;
  }
  .nav.open .nav-links a { padding: 12px 0; font-size: 16px; width: 100%; }

  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 110px; padding-bottom: 40px; }
  .hero-copy { justify-self: stretch; max-width: 100%; padding-right: var(--pad); order: 2; }
  .hero-canvas-wrap { order: 1; min-height: 46svh; height: 46svh; }
  .scroll-hint { display: none; }

  .problem-grid, .flagship-grid, .contact-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .engine-note { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .leaders { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .hiring .roles { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
}
