/* ============================================
   CRISPRPHARMACEUTICALS.COM — MAIN STYLESHEET
   Aesthetic: Light scientific editorial /
   Nature journal meets premium pharma
   ============================================ */

:root {
  --white:     #ffffff;
  --off-white: #f7f5f0;
  --paper:     #faf9f6;
  --ink:       #0e0e0e;
  --ink-mid:   #3a3a3a;
  --ink-light: #767676;
  --ink-faint: #c0bdb5;
  --red:       #c8102e;
  --red-light: #f0e8ea;
  --red-dark:  #8c0a1e;
  --blue-sci:  #004b8d;
  --border:    #e0ddd5;
  --border-dk: #c8c4bb;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Barlow', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;

  --max: 1320px;
  --radius: 2px;
}

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

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* DNA CANVAS BACKGROUND */
.dna-canvas-wrap {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.04;
}
#dnaCanvas { width: 100%; height: 100%; }

/* UTILITY */
.barlow-cond {
  font-family: var(--font-cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.red { color: var(--red); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ink);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 68px;
}
.nav-logo {
  text-decoration: none;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.logo-crispr { color: var(--red); font-weight: 700; }
.logo-pharma { color: var(--ink); }
.logo-tld { color: var(--ink-light); }

.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
}
.nav-links a {
  color: var(--ink-mid); text-decoration: none;
  font-family: var(--font-cond); font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red); }
.nav-cta {
  background: var(--red) !important; color: var(--white) !important;
  padding: 0.55rem 1.4rem; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

.hamburger {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--ink);
}
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  position: fixed; top: 68px; left: 0; right: 0; z-index: 850;
  background: var(--white); border-bottom: 2px solid var(--ink);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--ink); text-decoration: none;
  font-family: var(--font-cond); font-size: 1rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 1rem 2rem; border-bottom: 1px solid var(--border);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px 3rem 80px;
  max-width: var(--max); margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-label {
  font-size: 0.72rem; color: var(--red);
  margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-label::before {
  content: '';
  display: inline-block; width: 32px; height: 2px;
  background: var(--red);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8.5vw, 8rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.ht-line {
  display: block;
  opacity: 0; transform: translateX(-40px);
  animation: slideIn 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: var(--d);
}
.ht-red { color: var(--red); font-style: italic; }
@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

.hero-domain-display {
  display: flex; align-items: baseline; gap: 0; flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  border: 2px solid var(--ink);
  background: var(--off-white);
  width: fit-content;
}
.hdd-crispr {
  font-family: var(--font-cond); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--red); letter-spacing: 0.05em;
}
.hdd-sep {
  font-family: var(--font-cond); font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--ink-faint); margin: 0 0.4rem;
}
.hdd-pharma {
  font-family: var(--font-cond); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--ink); letter-spacing: 0.05em;
}
.hdd-tld {
  font-family: var(--font-cond); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--ink-light); letter-spacing: 0.05em;
}

.hero-sub {
  max-width: 600px; color: var(--ink-mid);
  font-size: 1.05rem; line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 5rem; }

.hero-proof-bar {
  display: flex; align-items: stretch;
  border: 1px solid var(--border-dk);
  width: fit-content; max-width: 100%;
  flex-wrap: wrap;
}
.proof-item { padding: 1.2rem 2.2rem; text-align: center; }
.proof-num {
  display: block;
  font-family: var(--font-cond); font-weight: 700;
  font-size: 1.6rem; color: var(--red); letter-spacing: 0.02em;
}
.proof-label { color: var(--ink-light); font-size: 0.68rem; display: block; margin-top: 0.2rem; }
.proof-div { width: 1px; background: var(--border-dk); }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--red); color: var(--white);
  padding: 0.9rem 2.2rem; font-family: var(--font-cond);
  font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--red);
  cursor: pointer; transition: all 0.2s;
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-primary.btn-lg { padding: 1.1rem 3rem; font-size: 1rem; }

.btn-outline {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--ink);
  padding: 0.9rem 2.2rem; font-family: var(--font-cond);
  font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--ink);
  cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-text-link {
  color: var(--red); text-decoration: none;
  font-family: var(--font-cond); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
  transition: opacity 0.2s;
}
.btn-text-link:hover { opacity: 0.7; }

/* MARQUEE */
.marquee-bar {
  overflow: hidden; background: var(--ink);
  padding: 0.85rem 0; border-top: none;
}
.marquee-inner {
  display: flex; gap: 2rem; white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--font-cond); font-size: 0.72rem;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.55);
}
.marquee-inner .bullet { color: var(--red); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* IDENTITY SECTION */
.identity {
  background: var(--off-white);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative; z-index: 1;
}
.identity-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 7rem 3rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: start;
}
.identity-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 1.5rem;
}
.identity-text p {
  color: var(--ink-mid); font-size: 0.95rem;
  line-height: 1.8; margin-bottom: 1.25rem;
}
.identity-text p strong { color: var(--ink); }
.identity-text p em { color: var(--red); font-style: normal; font-weight: 600; }

.iv-card {
  border: 2px solid var(--ink);
  background: var(--white);
}
.iv-row {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.iv-row:last-child { border-bottom: none; }
.iv-label {
  font-size: 0.7rem; color: var(--ink-light);
  white-space: nowrap; flex-shrink: 0;
}
.iv-val { font-size: 0.88rem; font-weight: 600; text-align: right; }
.iv-val.red { color: var(--red); }

/* INDUSTRIES */
.industries {
  position: relative; z-index: 1; background: var(--white);
}
.industries-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 7rem 3rem;
}
.industries-head { margin-bottom: 3.5rem; }
.industries-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; max-width: 700px; line-height: 1.2;
}
.ind-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border: 2px solid var(--ink);
}
.ind-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: background 0.2s;
}
.ind-card:hover { background: var(--red-light); }
.ind-card:nth-child(3), .ind-card:nth-child(6) { border-right: none; }
.ind-card:nth-child(4), .ind-card:nth-child(5), .ind-card:nth-child(6) { border-bottom: none; }
.ind-num {
  font-size: 0.72rem; color: var(--red);
  margin-bottom: 1rem; display: block;
  font-weight: 700;
}
.ind-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; }
.ind-card p { color: var(--ink-mid); font-size: 0.875rem; line-height: 1.65; }
.ind-cta { margin-top: 3rem; }

/* STAT BAND */
.stat-band {
  background: var(--red);
  border-top: 2px solid var(--red-dark);
  display: flex; align-items: stretch;
  position: relative; z-index: 1;
}
.sb-item {
  flex: 1; padding: 4rem 3rem; text-align: center;
}
.sb-num {
  display: block;
  font-family: var(--font-cond); font-weight: 700;
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--white); letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.sb-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem; max-width: 220px;
  display: block; margin: 0 auto;
}
.sb-div { width: 1px; background: rgba(255,255,255,0.2); margin: 2rem 0; }

/* HERO CTA */
.hero-cta {
  background: var(--off-white);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative; z-index: 1;
}
.hcta-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 8rem 3rem; text-align: center;
}
.hcta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 1.5rem; letter-spacing: -0.02em;
}
.hcta-inner p {
  color: var(--ink-mid); max-width: 520px;
  margin: 0 auto 3rem; font-size: 1rem; line-height: 1.75;
}

/* FOOTER */
.footer {
  background: var(--ink); color: var(--white);
  position: relative; z-index: 1;
}
.footer-top {
  max-width: var(--max); margin: 0 auto;
  padding: 3rem 3rem 2rem;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .logo-crispr { color: var(--red); }
.footer .logo-pharma { color: var(--white); }
.footer .logo-tld { color: rgba(255,255,255,0.4); }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-nav a {
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-family: var(--font-cond); font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--red); }
.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  padding: 1.5rem 3rem;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.7rem; }
.footer-disc { max-width: 500px; text-align: right; }

/* PAGE HEADER */
.page-header {
  padding: 130px 3rem 5rem;
  background: var(--off-white);
  border-bottom: 2px solid var(--ink);
  position: relative; z-index: 1;
  max-width: 100%;
}
.page-header-inner { max-width: var(--max); margin: 0 auto; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.02em; margin-top: 1rem;
}
.page-header h1 em { color: var(--red); font-style: italic; }
.page-header p {
  color: var(--ink-mid); max-width: 540px;
  font-size: 1.05rem; line-height: 1.75;
  margin-top: 1.5rem;
}

/* CONTENT SECTIONS */
.content-wrap {
  max-width: var(--max); margin: 0 auto;
  padding: 6rem 3rem; position: relative; z-index: 1;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.prose h3 {
  font-family: var(--font-display); font-size: 1.7rem;
  font-weight: 700; margin-bottom: 1rem; margin-top: 2.5rem;
}
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--ink-mid); font-size: 0.94rem; line-height: 1.8; margin-bottom: 1.2rem; }
.prose strong { color: var(--ink); }

/* TABLES */
.data-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.data-table th {
  text-align: left; padding: 0.9rem 1.25rem;
  font-family: var(--font-cond); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); background: var(--ink);
  border: none;
}
.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--ink-mid);
  vertical-align: top;
}
.data-table tr:hover td { background: var(--off-white); }
.data-table td:first-child { color: var(--ink); font-weight: 600; }
.data-table .td-red { color: var(--red); font-weight: 700; }

/* HIGHLIGHTED BOX */
.callout-box {
  border-left: 4px solid var(--red);
  background: var(--off-white);
  padding: 2rem 2rem 2rem 2.5rem;
  margin: 2.5rem 0;
}
.callout-box p {
  color: var(--ink); font-size: 1.05rem;
  line-height: 1.75; font-family: var(--font-display);
  font-style: italic; font-weight: 400;
}
.callout-box cite {
  display: block; margin-top: 1rem;
  font-family: var(--font-cond); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-light); font-style: normal;
}

/* BIG NUMBERS */
.big-numbers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink); margin: 3rem 0;
}
.bn-cell {
  padding: 2.5rem 1.75rem;
  border-right: 1px solid var(--ink);
}
.bn-cell:last-child { border-right: none; }
.bn-num {
  display: block; font-family: var(--font-cond); font-weight: 700;
  font-size: 3rem; color: var(--red); line-height: 1;
  margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.bn-label { font-size: 0.82rem; color: var(--ink-mid); line-height: 1.5; }

/* USE CASES */
.uc-list { border: 2px solid var(--ink); }
.uc-item {
  display: grid; grid-template-columns: 80px 1fr;
  border-bottom: 1px solid var(--ink);
  transition: background 0.2s;
}
.uc-item:last-child { border-bottom: none; }
.uc-item:hover { background: var(--off-white); }
.uc-num-col {
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-cond); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.08em;
  border-right: none;
  padding: 1.5rem 1rem;
}
.uc-body { padding: 1.75rem 2rem; }
.uc-body h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.uc-body p { color: var(--ink-mid); font-size: 0.88rem; line-height: 1.65; }

/* FAQ */
.faq-list { border: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--ink); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  text-align: left; padding: 1.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: var(--ink); transition: background 0.2s;
}
.faq-q:hover { background: var(--off-white); }
.faq-q .faq-arrow {
  width: 28px; height: 28px; border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0; transition: all 0.3s;
  color: var(--red); font-weight: 300;
}
.faq-q.open { background: var(--off-white); }
.faq-q.open .faq-arrow { background: var(--red); border-color: var(--red); color: var(--white); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  background: var(--off-white);
}
.faq-a.open { max-height: 400px; }
.faq-a-inner { padding: 1.25rem 2rem 1.75rem; color: var(--ink-mid); font-size: 0.9rem; line-height: 1.8; border-top: 1px solid var(--border); }

/* CONTACT FORM */
.contact-form { }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-family: var(--font-cond);
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-light);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--white);
  border: 2px solid var(--border-dk); color: var(--ink);
  padding: 0.85rem 1rem; font-family: var(--font-body);
  font-size: 0.9rem; outline: none;
  transition: border-color 0.2s; border-radius: 0;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* SECTION DIVIDER */
.section-rule {
  border: none; border-top: 2px solid var(--ink);
  margin: 0; position: relative; z-index: 1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .big-numbers { grid-template-columns: repeat(2,1fr); }
  .bn-cell:nth-child(2) { border-right: none; }
  .bn-cell:nth-child(3) { border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }
  .bn-cell:nth-child(4) { border-top: 1px solid var(--ink); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero { padding: 90px 1.5rem 60px; }
  .identity-inner, .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .industries-inner, .hcta-inner, .content-wrap { padding: 4rem 1.5rem; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-card:nth-child(2) { border-right: none; }
  .ind-card:nth-child(3) { border-right: 1px solid var(--ink); }
  .ind-card:nth-child(5) { border-right: none; border-bottom: 1px solid var(--ink); }
  .ind-card:nth-child(3), .ind-card:nth-child(4) { border-bottom: 1px solid var(--ink); }
  .ind-card:nth-child(6) { border-bottom: none; }
  .stat-band { flex-direction: column; }
  .sb-div { height: 1px; width: auto; margin: 0 2rem; }
  .sb-item { padding: 3rem 2rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-disc { text-align: left; max-width: 100%; }
  .page-header { padding: 100px 1.5rem 3rem; }
  .nav { padding: 0 1.5rem; }
  .hero-proof-bar { width: 100%; }
  .proof-item { flex: 1; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ind-grid { grid-template-columns: 1fr; }
  .ind-card { border-right: none !important; border-bottom: 1px solid var(--ink) !important; }
  .ind-card:last-child { border-bottom: none !important; }
  .big-numbers { grid-template-columns: 1fr 1fr; }
  .hero-domain-display { padding: 1rem; }
}
