/* ============================================================
   Specialized Biotics — design tokens
   Ink (bio-dark) / Paper (clinical-mint) / Gold (agar) / Teal (colony) / Brick (alert)
   ============================================================ */

/* Google Fonts (Fraunces, Inter, IBM Plex Mono) are enqueued via functions.php,
   not @import'd here — @import blocks the render and enqueuing lets WP handle caching/versioning. */

:root{
  --ink: #12211D;
  --ink-2: #1A2E27;
  --paper: #F3F5EE;
  --paper-2: #E9ECE1;
  --gold: #C89B3C;
  --gold-soft: #E4C878;
  --teal: #1F6F5C;
  --teal-soft: #4C9484;
  --brick: #8C3B2E;
  --line-on-paper: rgba(18,33,29,0.14);
  --line-on-ink: rgba(243,245,238,0.16);
  --text-ink: #12211D;
  --text-ink-muted: rgba(18,33,29,0.64);
  --text-paper: #F3F5EE;
  --text-paper-muted: rgba(243,245,238,0.66);

  --display: 'Fraunces', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --container: 1160px;
  --radius: 2px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ max-width: 100%; overflow-x: hidden; }
body{
  margin:0;
  background: var(--paper);
  color: var(--text-ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--display); font-weight:600; margin:0; line-height:1.08; letter-spacing:-0.01em; }
p{ margin:0; }

:focus-visible{
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:7px; height:7px; border-radius:50%;
  background: var(--teal);
  flex-shrink:0;
}
.on-ink .eyebrow, .on-ink .eyebrow::before{ color: var(--gold-soft); background: var(--gold-soft); }

/* ---------- Nav ---------- */
.site-nav{
  position: sticky; top:0; z-index: 50;
  background: rgba(243,245,238,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-on-paper);
}
.site-nav .container{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.wordmark{
  display:flex; align-items:center; gap:10px;
}
.wordmark .mark{ width:28px; height:28px; flex-shrink:0; }
.logo-img{ height: 30px; width:auto; display:block; }
footer .logo-img{ height: 26px; }
.nav-links{ display:flex; align-items:center; gap: 22px; }
.nav-links a{
  font-size: 13.5px; font-weight:500; color: var(--text-ink-muted);
  position:relative; padding: 6px 0;
  transition: color .2s ease;
  white-space: nowrap;
}
.nav-links a:hover{ color: var(--text-ink); }
.nav-links a.active{ color: var(--text-ink); }
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background: var(--teal);
}
.nav-cta{
  font-family: var(--mono); font-size: 13px; font-weight:500;
  padding: 10px 18px; border: 1px solid var(--ink); border-radius: var(--radius);
  transition: background .2s ease, color .2s ease;
}
.nav-cta:hover, .nav-links a.nav-cta:hover{ background: var(--ink); color: var(--paper); }
.nav-toggle{ display:none; }
.mobile-toggle{
  display:none; background:none; border:1px solid var(--ink); border-radius: var(--radius);
  width: 42px; height: 38px; align-items:center; justify-content:center; cursor:pointer;
}
.mobile-toggle span, .mobile-toggle span::before, .mobile-toggle span::after{
  content:""; display:block; width:18px; height:1.5px; background: var(--ink); position:relative;
}
.mobile-toggle span::before{ position:absolute; top:-6px; }
.mobile-toggle span::after{ position:absolute; top:6px; }
@media (max-width: 1220px){
  .mobile-toggle{ display:flex; }
  .nav-links{
    display:none; position:absolute; top:76px; left:0; right:0;
    background: var(--paper); border-bottom: 1px solid var(--line-on-paper);
    flex-direction:column; align-items:flex-start; gap:0; padding: 8px 32px 20px;
  }
  .nav-links.mobile-open{ display:flex; }
  .nav-links a{ width:100%; padding: 14px 0; border-bottom: 1px solid var(--line-on-paper); }
  .nav-links .nav-cta{ margin-top:14px; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--mono); font-size: 13px; font-weight:500;
  padding: 14px 24px; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover{ background: var(--teal); border-color: var(--teal); }
.btn-outline{ border-color: var(--ink); color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--paper); }
.on-ink .btn-outline{ border-color: var(--text-paper); color: var(--text-paper); }
.on-ink .btn-outline:hover{ background: var(--text-paper); color: var(--ink); }
.btn-row{ display:flex; gap:14px; flex-wrap:wrap; }
.arrow{ transition: transform .2s ease; }
.btn:hover .arrow{ transform: translateX(3px); }

/* ---------- Sections ---------- */
section{ padding: 96px 0; }
section.tight{ padding: 64px 0; }
.on-ink{ background: var(--ink); color: var(--text-paper); }
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4{ color: var(--text-paper); }
.on-ink .muted{ color: var(--text-paper-muted); }
.muted{ color: var(--text-ink-muted); }
.on-paper-2{ background: var(--paper-2); }

.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 40px); margin-top:14px; }
.section-head p{ margin-top: 16px; font-size: 17px; color: var(--text-ink-muted); }
.on-ink .section-head p{ color: var(--text-paper-muted); }

hr.rule{ border:none; border-top: 1px solid var(--line-on-paper); margin: 0; }
.on-ink hr.rule{ border-top-color: var(--line-on-ink); }

/* ---------- Hero ---------- */
section.hero-wrap{ padding: 0; }
.hero{
  padding-top: 108px; padding-bottom: 100px;
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items:center;
}
.hero h1{ font-size: clamp(36px, 5vw, 58px); }
.hero .lede{ font-size: 19px; color: var(--text-ink-muted); max-width: 46ch; margin-top: 22px; }
.hero .btn-row{ margin-top: 34px; }
.hero-art{ position:relative; }
.hero-art svg{ width:100%; height:auto; }

/* page hero (non-home) */
.page-hero{ padding: 88px 0 64px; }
.page-hero h1{ font-size: clamp(32px, 4.6vw, 48px); max-width: 18ch; }
.page-hero .lede{ font-size: 18px; color: var(--text-ink-muted); max-width: 60ch; margin-top: 18px; }

/* ---------- Stat grid ---------- */
.stat-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-on-paper);
  border: 1px solid var(--line-on-paper);
}
.on-ink .stat-grid{ background: var(--line-on-ink); border-color: var(--line-on-ink); }
.stat-cell{ background: var(--paper); padding: 30px 26px; }
.on-ink .stat-cell{ background: var(--ink); }
.stat-num{ font-family: var(--mono); font-size: clamp(26px,3vw,34px); color: var(--brick); }
.on-ink .stat-num{ color: var(--gold-soft); }
.stat-label{ margin-top: 10px; font-size: 14px; color: var(--text-ink-muted); }
.on-ink .stat-label{ color: var(--text-paper-muted); }

/* ---------- Cards ---------- */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card{
  border: 1px solid var(--line-on-paper);
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--paper);
}
.on-ink .card{ border-color: var(--line-on-ink); background: var(--ink-2); }
.card h3{ font-size: 20px; }
.card p{ margin-top: 12px; color: var(--text-ink-muted); font-size: 15px; }
.on-ink .card p{ color: var(--text-paper-muted); }
.card .tag{ font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform:uppercase; color: var(--teal); }
.on-ink .card .tag{ color: var(--gold-soft); }

/* product card node icon */
.node-icon{ width:44px; height:44px; margin-bottom:18px; }

/* ---------- Timeline (real sequence: Year 1 / 2+ / 3+) ---------- */
.timeline{ display:grid; grid-template-columns: repeat(3,1fr); gap: 0; position:relative; }
.timeline::before{
  content:""; position:absolute; top: 13px; left: 6%; right:6%; height:1px; background: var(--line-on-paper);
}
.on-ink .timeline::before{ background: var(--line-on-ink); }
.tl-item{ padding: 0 20px 0 0; position:relative; }
.tl-dot{ width:12px; height:12px; border-radius:50%; background: var(--teal); margin-bottom: 18px; position:relative; z-index:2; }
.tl-tag{ font-family: var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color: var(--brick); }
.tl-year{ font-family: var(--mono); font-size: 13px; color: var(--text-ink-muted); margin-top:4px; }
.tl-item h3{ font-size: 21px; margin-top: 10px; }
.tl-item p{ margin-top: 10px; color: var(--text-ink-muted); font-size: 15px; }

/* ---------- Team ---------- */
.team-group{ margin-bottom: 56px; }
.team-group:last-child{ margin-bottom:0; }
.team-group-label{ font-family: var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color: var(--text-ink-muted); margin-bottom: 22px; }
.team-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.team-card{ display:flex; gap:18px; padding: 22px; border:1px solid var(--line-on-paper); border-radius: var(--radius); }
.team-avatar{ width:52px; height:52px; flex-shrink:0; }
.team-card h4{ font-size:16.5px; }
.team-card .role{ font-family: var(--mono); font-size: 12px; color: var(--teal); margin-top:4px; }
.team-card p{ margin-top:10px; font-size: 14px; color: var(--text-ink-muted); }

/* ---------- Comparison table (engrafting) ---------- */
.compare{ display:grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-on-paper); }
.compare-col{ padding: 32px; }
.compare-col + .compare-col{ border-left: 1px solid var(--line-on-paper); }
.compare-col h4{ font-family: var(--mono); font-size:13px; letter-spacing:.06em; text-transform:uppercase; margin-bottom: 20px; }
.compare-col.no h4{ color: var(--brick); }
.compare-col.yes h4{ color: var(--teal); }
.compare-row{ display:flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-on-paper); font-size: 14.5px; }
.compare-row:first-of-type{ border-top:none; }
.compare-mark{ flex-shrink:0; width:18px; }

/* ---------- Footnote / citation list ---------- */
.citations{ font-family: var(--mono); font-size: 12.5px; color: var(--text-ink-muted); line-height:1.9; }
.citations li{ padding-left: 1.4em; text-indent: -1.4em; }

/* ---------- Quote ---------- */
.quote{ font-family: var(--display); font-size: clamp(22px,2.6vw,30px); font-weight:500; max-width: 22ch; line-height:1.3; }
.quote-attr{ margin-top:18px; font-family: var(--mono); font-size:13px; color: var(--text-paper-muted); }

/* ---------- Validation list (pharma deals) ---------- */
.deal-list{ display:grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line-on-paper); border:1px solid var(--line-on-paper); }
.deal{ background: var(--paper); padding: 22px 26px; display:flex; justify-content:space-between; gap:20px; align-items:baseline; }
.deal-name{ font-size: 15px; font-weight:500; }
.deal-sub{ font-size:13px; color: var(--text-ink-muted); margin-top:3px; }
.deal-val{ font-family: var(--mono); font-size:15px; color: var(--brick); white-space:nowrap; }

/* ---------- Locations ---------- */
.locations{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.location h4{ font-size:18px; }
.location .role{ font-family: var(--mono); font-size:12px; color: var(--gold-soft); margin-top:6px; letter-spacing:.06em; text-transform:uppercase;}

/* ---------- Contact form ---------- */
.contact-wrap{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.field{ margin-bottom: 20px; }
.field label{ display:block; font-family: var(--mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase; color: var(--text-ink-muted); margin-bottom:8px; }
.field input, .field textarea{
  width:100%; padding: 13px 14px; font-family: var(--body); font-size:15px;
  border: 1px solid var(--line-on-paper); border-radius: var(--radius); background: var(--paper);
  color: var(--text-ink);
}
.field textarea{ min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus{ outline:2px solid var(--teal); outline-offset:1px; border-color: var(--teal); }

/* ---------- Newsletter ---------- */
.newsletter{ margin-top:22px; }
.newsletter label{ font-family: var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color: var(--text-paper-muted); }
.newsletter-row{ display:flex; gap:8px; margin-top:10px; }
.newsletter-row input{
  flex:1; padding: 10px 12px; font-family: var(--body); font-size:14px;
  border:1px solid var(--line-on-ink); background: transparent; color: var(--text-paper); border-radius: var(--radius);
}
.newsletter-row input::placeholder{ color: var(--text-paper-muted); }
.nl-btn{ padding: 10px 16px; font-size:12px; }

/* ---------- Audience split (For X / For Y patterns) ---------- */
.audience-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-on-paper); border:1px solid var(--line-on-paper); }
.audience{ background: var(--paper); padding: 40px 36px; }
.audience .tag{ font-family: var(--mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--brick); }
.audience h3{ font-size: 24px; margin-top:12px; }
.audience-list{ margin-top:20px; }
.audience-list li{ display:flex; gap:12px; padding: 10px 0; border-top:1px solid var(--line-on-paper); font-size:14.5px; color: var(--text-ink-muted); }
.audience-list li:first-child{ border-top:none; }
.audience-list li .dot{ width:6px; height:6px; border-radius:50%; background: var(--teal); margin-top:8px; flex-shrink:0; }

/* ---------- Feature list w/ icon ---------- */
.feature-row{ display:flex; gap:20px; padding: 26px 0; border-top:1px solid var(--line-on-paper); }
.feature-row:first-child{ border-top:none; }
.feature-row h4{ font-size:17px; }
.feature-row p{ margin-top:8px; color: var(--text-ink-muted); font-size:14.5px; }

/* ---------- Insights / content cards ---------- */
.content-card{ border:1px solid var(--line-on-paper); border-radius: var(--radius); overflow:hidden; display:flex; flex-direction:column; }
.content-thumb{
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--ink) 0%, var(--teal) 100%);
  display:flex; align-items:center; justify-content:center; position:relative;
}
.content-thumb svg{ width:56px; height:56px; opacity:.85; }
.content-body{ padding: 22px 22px 24px; }
.content-kind{ font-family: var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color: var(--teal); }
.content-card h4{ font-size:17px; margin-top:10px; font-family: var(--display); font-weight:600; }
.content-card p{ margin-top:8px; font-size:14px; color: var(--text-ink-muted); }
.content-meta{ margin-top:14px; font-family: var(--mono); font-size:12px; color: var(--text-ink-muted); }

/* ---------- Tabs (Insights filter look, purely visual) ---------- */
.tab-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:40px; }
.tab-pill{
  font-family: var(--mono); font-size:12.5px; padding:9px 16px; border:1px solid var(--line-on-paper);
  border-radius: 999px; color: var(--text-ink-muted);
}
.tab-pill.active{ background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Coming soon / empty state ---------- */
.empty-state{
  border: 1px dashed var(--line-on-paper); border-radius: var(--radius);
  padding: 48px 36px; text-align:center;
}
.empty-state h4{ font-size:18px; }
.empty-state p{ margin-top:10px; color: var(--text-ink-muted); font-size:14.5px; max-width:44ch; margin-left:auto; margin-right:auto; }

/* ---------- Case study / logo strip ---------- */
.logo-strip{ display:flex; flex-wrap:wrap; gap:14px; }
.logo-chip{
  font-family: var(--mono); font-size:12.5px; padding: 10px 16px; border:1px solid var(--line-on-paper);
  border-radius: 999px; color: var(--text-ink-muted);
}

/* ---------- Investors password screen (native WP post-password-form) ---------- */
.investor-gate-wrap{
  min-height: 70vh; display:flex; align-items:center; justify-content:center;
  background: var(--ink); padding: 24px;
}
.investor-gate-inner{ max-width: 420px; width:100%; text-align:center; }
.investor-gate-inner .logo-img{ height:28px; margin:0 auto 30px; }
.investor-gate-inner h1{ color: var(--text-paper); font-size:24px; }
.investor-gate-inner .gate-intro{ color: var(--text-paper-muted); margin-top:12px; font-size:14.5px; }
.post-password-form{ margin-top:28px; display:flex; flex-direction:column; gap:14px; }
.post-password-form label{ display:flex; flex-direction:column; gap:14px; }
.post-password-form label span{ display:none; } /* the default "Password:" label text; our heading above already explains it */
.post-password-form input[type="password"]{
  padding:14px 16px; font-family: var(--mono); font-size:14px; letter-spacing:.04em;
  border:1px solid var(--line-on-ink); background: var(--ink-2); color: var(--text-paper); border-radius: var(--radius);
  text-align:center; width:100%;
}
.post-password-form input[type="password"]:focus{ outline:2px solid var(--gold-soft); outline-offset:2px; }
.post-password-form input[type="submit"]{
  font-family: var(--mono); font-size: 13px; font-weight:500; padding: 14px 24px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--text-paper);
  border-radius: var(--radius); cursor:pointer; transition: all .2s ease;
}
.post-password-form input[type="submit"]:hover{ background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.investor-gate-hint{ margin-top:22px; font-size:12px; color: var(--text-paper-muted); opacity:.7; }
.investor-gate-hint a{ color: var(--text-paper-muted); text-decoration:underline; }

/* ---------- Footer ---------- */
footer.site-footer{ background: var(--ink); color: var(--text-paper); padding: 56px 0 32px; }
.footer-top{ display:flex; justify-content:space-between; gap: 40px; flex-wrap:wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-on-ink); margin-bottom: 26px; }
.footer-links{ display:flex; gap: 46px; flex-wrap:wrap; }
.footer-col h5{ font-family: var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color: var(--text-paper-muted); margin-bottom:14px; }
.footer-col a, .footer-col p{ display:block; font-size:14px; margin-bottom:8px; color: var(--text-paper-muted); }
.footer-col a:hover{ color: var(--gold-soft); }
.footer-bottom{ display:flex; justify-content:space-between; font-size: 12.5px; color: var(--text-paper-muted); flex-wrap:wrap; gap:10px; }

/* ---------- Node network animation ---------- */
.node-pulse{ animation: pulse 3.6s ease-in-out infinite; }
.node-pulse.d2{ animation-delay: .6s; }
.node-pulse.d3{ animation-delay: 1.2s; }
.node-pulse.d4{ animation-delay: 1.8s; }
@keyframes pulse{ 0%,100%{ opacity:.55; } 50%{ opacity:1; } }
@media (prefers-reduced-motion: reduce){
  .node-pulse{ animation: none; opacity: .9; }
  html{ scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px){
  .hero{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; max-width: 380px; margin: 0 auto; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .stat-grid{ grid-template-columns: repeat(2,1fr); }
  .timeline{ grid-template-columns: 1fr; gap: 34px; }
  .timeline::before{ display:none; }
  .team-grid{ grid-template-columns: 1fr; }
  .compare{ grid-template-columns: 1fr; }
  .compare-col + .compare-col{ border-left:none; border-top:1px solid var(--line-on-paper); }
  .deal-list{ grid-template-columns: 1fr; }
  .locations{ grid-template-columns: 1fr; gap: 36px; }
  .contact-wrap{ grid-template-columns: 1fr; gap: 36px; }
  .nav-links{ display:none; }
  section{ padding: 64px 0; }
}
