/* ── TOKENS ── */
:root {
  --teal:      #4C95A2;
  --teal-dark: #1A2E30;
  --teal-pale: #EEF6F8;
  --teal-mid:  #C8DDE0;
  --gold:      #C9A84C;
  --ink:       #1A2E30;
  --ink-mid:   #3A5558;
  --ink-light: #6A9198;
  --rule:      #C8DDE0;
  --paper:     #F2F8F9;
  --white:     #FFFFFF;
  --r:         10px;
  --r-lg:      16px;
  --r-pill:    100px;

  /* Type scale — nothing below 0.875rem (14px) */
  --text-xs:   0.875rem;   /* 14px — minimum */
  --text-sm:   1rem;       /* 16px */
  --text-base: 1.125rem;   /* 18px */
  --text-lg:   1.375rem;   /* 22px */
  --text-xl:   1.75rem;    /* 28px */
  --text-2xl:  2.25rem;    /* 36px */
  --text-3xl:  clamp(2.25rem, 5vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lora', serif;
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  line-height: 1;
}

.nav-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-wordmark {
  font-family: 'Lexend Giga', sans-serif;
  font-weight: 350;
  text-transform: uppercase;
  color: var(--teal);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.45rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-pill);
  color: var(--ink-mid);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover { background: var(--teal-pale); color: var(--ink); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  padding-top: 68px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
}

.hero-left {
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 4rem 4rem 4.5rem;
  position: relative;
}

.hero-left::before {
  content: '';
  position: absolute;
  top: 15%; left: 0;
  width: 4px; height: 70%;
  background: linear-gradient(to bottom, transparent, var(--teal) 20%, var(--teal) 80%, transparent);
  border-radius: 0 2px 2px 0;
}

.hero-wordmark {
  font-family: 'Lexend Giga', sans-serif;
  font-weight: 350;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero-subline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-mid);
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

.hero-subline em {
  font-style: normal;
  font-weight: 700;
  color: var(--teal);
}

.hero-tagline {
  font-family: 'Lora', serif;
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 2.5rem;
  max-width: 42ch;
}

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

.hero-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 0.25rem;
  transition: color 0.15s, border-color 0.15s;
}
.hero-link:hover { color: var(--teal); }

/* ── HERO RIGHT ── */
.hero-right {
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-left: 2px solid var(--teal);
}

.hero-right-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(76,149,162,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76,149,162,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-watermark {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.hero-scene {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1.05;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

.hero-roach {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(4rem, 7vw, 6.5rem);
  z-index: 4;
  animation: roach-sway 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.1));
  line-height: 1;
}
@keyframes roach-sway {
  0%,100% { transform: translate(-50%,-50%) rotate(-1.5deg); }
  50% { transform: translate(-50%,-53%) rotate(1.5deg); }
}

/* Sequence tags — kept, useful context */
.seq-tag {
  position: absolute;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid;
  z-index: 5;
}
.seq-tl { top: 10%; left: 2%; color: var(--teal); border-color: rgba(76,149,162,0.4); background: rgba(76,149,162,0.07); }
.seq-tr { top: 10%; right: 2%; color: #9A7830; border-color: rgba(201,168,76,0.45); background: rgba(201,168,76,0.07); }
.seq-bl { bottom: 12%; left: 2%; color: var(--teal); border-color: rgba(76,149,162,0.4); background: rgba(76,149,162,0.07); }
.seq-br { bottom: 12%; right: 2%; color: #9A7830; border-color: rgba(201,168,76,0.45); background: rgba(201,168,76,0.07); }

/* ── STAT STRIP ── */
.stat-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--teal);
  border-top: 3px solid var(--gold);
}

.ss-cell {
  padding: 1.4rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.ss-cell:last-child { border-right: none; }

.ss-label {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.ss-value {
  font-family: 'Lora', serif;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.ss-value.gold { color: #F5E0A0; }

/* ── SHARED SECTION ── */
.section { 
    border-top: 1px solid var(--rule);
}

.sec-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.sec-head {
  margin-bottom: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--teal);
}

.sec-chrome {
  display: flex;
  align-items: center;
  margin-bottom: 0.85rem;
}

.sec-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.sec-h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.sec-h2 em {
  font-style: italic;
  font-weight: 700;
  color: var(--teal);
  font-synthesis: none;
}

/* ── TECHNOLOGY ── */
#technology { background: var(--white); }

.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.tech-intro {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 2.5rem;
}
.tech-intro strong { color: var(--ink); font-weight: 600; }

.pillar-list { display: flex; flex-direction: column; }

.pillar {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.pillar:first-child { border-top: 1px solid var(--rule); }

.pillar-n {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--teal);
  padding-top: 0.25rem;
}

.pillar-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.pillar-body {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--ink-mid);
}

/* RNA strand */
#rna-strand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#rna-strand img {
  width: 300px;
  height: 300px;
  object-fit: contain;
}

/* VS Table — simplified, larger text */
.vs-panel {
  background: var(--paper);
  border: 1.5px solid var(--teal-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: 84px;
  box-shadow: 0 4px 20px rgba(76,149,162,0.1);
}

.vs-top {
  background: var(--teal);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 1.25rem;
}

.vs-col-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.vs-col-label.right { text-align: right; }

.vs-vs {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,0.95);
  text-align: center;
  padding: 0 0.75rem;
}

.vs-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  min-height: 46px;
}
.vs-row:last-child { border-bottom: none; }
.vs-row:nth-child(even) { background: rgba(240,247,248,0.5); }

/* Left col: red — Conventional bad */
.vs-neg {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #C0392B;
  padding: 0.75rem 1rem;
}

.vs-attr {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-mid);
  text-align: center;
  padding: 0.75rem 0.75rem;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

/* Right col: green — YBB good */
.vs-pos {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #27AE60;
  padding: 0.75rem 1rem;
  text-align: right;
}
.vs-pos.gold { color: #27AE60; }

.vs-footer {
  background: var(--teal-pale);
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--teal-mid);
}

.vs-footer p {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  color: var(--ink-mid);
  line-height: 1.5;
}

.vs-footer strong { font-weight: 600; color: var(--ink); display: block; margin-bottom: 0.2rem; }

/* ── MARKET ── */
#difference { background: var(--paper); }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.diff-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--teal-mid);
  border-radius: var(--r-lg);
  background: var(--white);
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.diff-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 8px 28px rgba(76,149,162,0.12); }

.diff-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.diff-card:hover::before { transform: scaleX(1); }

.diff-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.diff-icon svg { width: 16px; height: 16px; stroke: var(--white); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.diff-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.85rem;
}
.diff-title-row .diff-title { margin-bottom: 0; }

.diff-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.diff-body {
  font-size: var(--text-sm);
  line-height: 1.78;
  color: var(--ink-mid);
}

/* ── TEAM ── */
#team { background: var(--white); }

.team-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.char-card {
  border: 1.5px solid var(--teal-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.char-card:hover { box-shadow: 0 8px 28px rgba(76,149,162,0.14); transform: translateY(-3px); border-color: var(--teal); }

.char-header {
  background: var(--teal);
  padding: 2rem;
  position: relative; overflow: hidden;
}
.char-header::after {
  content: ''; position: absolute; top: -60%; right: -40px;
  width: 100px; height: 220%;
  background: rgba(255,255,255,0.05);
  transform: skewX(-10deg);
}

.char-photo-area {
  display: flex; align-items: center; gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.char-face {
  font-size: 3.5rem;
  opacity: 0.85;
  flex-shrink: 0;
  line-height: 1;
}

.char-meta { position: relative; z-index: 1; }

.char-role {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}

.char-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  line-height: 1.1;
}

.char-body { padding: 1.75rem; background: var(--white); }

.char-bio {
  font-size: var(--text-sm);
  line-height: 1.78;
  color: var(--ink-mid);
}

.char-bio-full { display: none; }
.char-bio-full.expanded { display: inline; }
.char-bio-short.hidden { display: none; }
.char-bio-ellipsis { display: inline; }
.char-bio-ellipsis.hidden { display: none; }

.char-readmore {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.char-readmore::after { content: ' →'; color: var(--gold); }
.char-readmore.is-hidden { display: none; }

/* ── INSIGHTS ── */
#insights { background: var(--paper); }

.ins-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; }

.ins-card {
  padding: 2.25rem;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--teal-mid);
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ins-card:hover { border-color: var(--teal); box-shadow: 0 6px 24px rgba(76,149,162,0.12); transform: translateY(-3px); }

.ins-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 1rem;
  flex: 1;
}

.ins-excerpt {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: 1.5rem;
}

.ins-link {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.15s;
}
.ins-link::after { content: '→'; color: var(--gold); }
.ins-card:hover .ins-link { gap: 0.65rem; }

/* ── CONTACT ── */
#contact { background: var(--white); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1.0;
}

.contact-intro {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 2.5rem;
}

.contact-channels { display: flex; flex-direction: column; }

.ch-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.ch-row:first-child { border-top: 1px solid var(--rule); }

.ch-icon {
  width: 44px; height: 44px;
  background: var(--teal-pale);
  border: 1px solid var(--teal-mid);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  color: var(--teal); flex-shrink: 0;
}

.ch-label {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.2rem;
}

.ch-value {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}
.ch-value:hover { color: var(--teal); }

/* ── FOOTER ── */
footer {
  background: var(--teal);
  border-top: 3px solid var(--gold);
  padding: 3rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-brand { display: flex; align-items: center; gap: 1rem; }

.footer-wordmark {
  font-family: 'Lexend Giga', sans-serif;
  font-weight: 350; text-transform: uppercase;
  color: var(--white); font-size: 1.15rem; line-height: 1.2;
}
.footer-wordmark small {
  display: block; font-size: 0.875rem; font-weight: 300;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-top: 0.2rem;
  font-family: 'DM Sans', sans-serif;
}

.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: var(--text-sm);
  color: rgba(255,255,255,0.6); text-align: center;
}

.footer-links {
  display: flex; gap: 1.5rem; list-style: none; justify-content: flex-end;
}
.footer-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs); font-weight: 500;
  color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs); color: rgba(255,255,255,0.35);
  text-align: center; margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  grid-column: 1 / -1; letter-spacing: 0.04em;
}

/* ── SCROLL REVEAL ── */
.rv {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.1s; }
.rv-d2 { transition-delay: 0.2s; }

/* ── MOBILE ── */
@media (max-width: 960px) {
  nav {
    height: 120px;
    min-height: 60px;
    padding: 0.75rem 1.5rem;
    flex-direction: column;
    align-items: center;
  }
  .nav-logo {
    justify-content: center;
    width: 100%;
  }


  .nav-wordmark {
    font-size: 1rem;
  }
  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    padding-bottom: 0.5rem;
  }


  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
    margin-top: -0.4rem;
  }

  #hero { grid-template-columns: 1fr; }
  .hero-left { padding: 3rem 1.5rem 2rem; min-height: auto; top: 20px;}
  .hero-left::before { display: none; }
  .hero-right { min-height: 320px; border-left: none; border-top: 2px solid var(--teal); }
  .section {scroll-margin-top: 100px;}

  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .ss-cell:nth-child(2) { border-right: none; }
  .ss-cell:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.12); }
  .ss-cell { padding: 1.1rem 1.25rem; }

  .tech-layout { grid-template-columns: 1fr; gap: 3rem; }
  .vs-panel { position: static; }
  .diff-grid { grid-template-columns: 1fr; }
  .team-layout { grid-template-columns: 1fr; }
  .ins-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 0; }
  .contact-mark { display: none; }

  .sec-inner { padding: 3.5rem 1.5rem; }
  .sec-h2 { font-size: var(--text-xl); }

  footer { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; gap: 1.5rem; }
  .footer-links { justify-content: flex-start; }
  .footer-tagline { text-align: left; }

  .hero-wordmark { font-size: clamp(1.2rem, 5vw, 1.8rem); }
}

@media (max-width: 480px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .hero-right { min-height: 280px; }
  .form-body { grid-template-columns: 1fr; }
  .f-cell { border-right: none; }
}
