/* ============================================================
   io2tx.css — iO2 Therapeutics
   Companion stylesheet for index.html
   No inline styles remain in the HTML — all rules live here.
   ============================================================ */

/* ── RESET & CUSTOM PROPERTIES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink:    #0b0d0b;
  --paper:  #f7f5ef;
  --green:  #2ee87a;
  --green2: #1ab85c;
  --muted:  #8a9182;
  --rule:   rgba(46,232,122,0.18);
  --fill:   rgba(46,232,122,0.12);
  --fill2:  rgba(46,232,122,0.06);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(46,232,122,0.09) 1px, transparent 1px);
  background-size: 38px 38px;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(rgba(46,232,122,0.03) 1px, transparent 1px);
  background-size: 100% 38px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,13,11,0.95);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  backdrop-filter: blur(10px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
}
.nav-mono {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(46,232,122,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 0.85rem;
  color: var(--green);
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--green);
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--green2); }

/* ── SHARED SECTION ── */
.section-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 6rem 3rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 1;
}
.sec-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.sec-label--center { justify-content: center; }
.sec-label--center::after { display: none; }
h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--paper);
  margin-bottom: 2.5rem;
}
h2 em { color: var(--green); font-style: italic; }
.prose {
  font-family: 'Crimson Pro', serif;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgb(247, 245, 239);
  max-width: 62ch;
  margin-bottom: 1.5rem;
}
.lbl {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── COMPONENTS ── */
.btn {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: var(--green2); }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(46,232,122,0.35);
}
.btn-outline:hover { border-color: var(--green); color: var(--paper); }
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.75); }
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 5rem;
  max-width: 1000px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.hero-bg-word {
  position: absolute;
  right: -2vw;
  top: 8vh;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(12rem, 22vw, 20rem);
  color: rgba(46,232,122,0.035);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
.hero-inner { position: relative; z-index: 1; padding-top: 5rem; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.03;
  color: var(--paper);
  margin-bottom: 2rem;
  max-width: 16ch;
}
.hero-title em { color: var(--green); font-style: italic; }
.hero-thesis {
  font-family: 'Crimson Pro', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: rgb(247, 245, 239);
  max-width: 54ch;
  line-height: 1.6;
  margin-bottom: 3rem;
}
.hero-thesis strong { color: var(--green); font-weight: 400; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

/* ── CONTACT ── */
#contact { border-bottom: none; }
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-tagline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--paper);
  margin: 0 auto 1rem;
}
.cta-tagline em { color: var(--green); font-style: italic; }
.cta-sub {
  font-family: 'Crimson Pro', serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(247,245,239,0.6);
  margin-bottom: 2.5rem;
}
.cta-contact-grid {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--fill);
  border: 1px solid var(--fill);
  margin-bottom: 3rem;
  text-align: left;
}
.cta-contact-cell { background: rgba(11,13,11,0.92); padding: 1.5rem 2rem; }
.cta-contact-cell .lbl { margin-bottom: 0.4rem; }
.cta-contact-val { font-size: 12px; color: var(--paper); letter-spacing: 0.06em; }
.cta-contact-val a { color: var(--green); text-decoration: none; }
.cta-contact-val a:hover { color: var(--paper); }

/* ── FOOTER ── */
footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.footer-txt { font-size: 9px; letter-spacing: 0.15em; color: var(--muted); }
.footer-txt a { color: var(--muted); text-decoration: none; }
.footer-txt a:hover { color: var(--green); }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 780px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .section-wrap, #hero, .cta-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
  #hero { padding-bottom: 3rem; }
  .cta-contact-grid { grid-template-columns: 1fr; }
  footer { padding: 1.5rem; }
}
