/* ============================================================
   KinetiX Bio — Global Stylesheet
   Color palette: #000000 (black), #d5eb98 (lime), #ffffff (white)
   Aeonik Fono via @font-face + Inter fallback
   ============================================================ */

@font-face {
  font-family: 'Aeonik Fono';
  src: local('Aeonik Fono'),
       local('AeonikFono-Regular');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Aeonik Fono';
  src: local('Aeonik Fono Light'),
       local('AeonikFono-Light');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Aeonik Fono';
  src: local('Aeonik Fono Bold'),
       local('AeonikFono-Bold');
  font-weight: 700;
  font-style: normal;
}

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --black:   #000000;
  --lime:    #d5eb98;
  --lime-dk: #a8c464;
  --white:   #ffffff;
  --grey-1:  #0d0d0d;
  --grey-2:  #141414;
  --grey-3:  #1e1e1e;
  --grey-4:  #2a2a2a;
  --grey-5:  #666666;
  --grey-6:  #999999;

  --font-display: 'Aeonik Fono', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-h: 68px;
  --radius: 10px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 4rem;
}
.section-label__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  animation: dot-blink 2s ease-in-out infinite;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn--accent {
  background: var(--lime);
  color: var(--black);
  border-color: var(--lime);
}
.btn--accent:hover {
  background: var(--lime-dk);
  border-color: var(--lime-dk);
  box-shadow: 0 0 24px rgba(213,235,152,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn--outline:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn--sm  { padding: 0.55rem 1.1rem; font-size: 0.68rem; }
.btn--xs  { padding: 0.4rem 0.9rem;  font-size: 0.65rem; }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}
.nav.scrolled {
  background: rgba(0,0,0,0.95);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__logo { flex-shrink: 0; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
}
.nav__link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--grey-6);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.nav__link:hover { color: var(--white); }
.nav__cta { margin-left: 1.2rem; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: var(--grey-1);
  border-top: 1px solid var(--grey-3);
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  font-size: 0.9rem;
  color: var(--grey-6);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--grey-3);
  transition: color var(--transition);
}
.nav__mobile-link:hover { color: var(--white); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden; /* Canvas stays within section but can bleed to edges */
}
.hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 4rem 1rem; /* Reduced bottom padding */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  top: 10%; right: -100px;
  background: radial-gradient(circle, rgba(213,235,152,0.12) 0%, transparent 70%);
  animation: glow-pulse 6s ease-in-out infinite alternate;
}
.hero__glow--2 {
  width: 400px; height: 400px;
  bottom: 20%; left: 30%;
  background: radial-gradient(circle, rgba(213,235,152,0.07) 0%, transparent 70%);
  animation: glow-pulse 8s ease-in-out 2s infinite alternate;
}
@keyframes glow-pulse {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.15); }
}
.hero__canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}
.hero__content {
  position: relative;
  margin-top: -1rem;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.2rem); /* Smaller font size as requested */
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--white);
  max-width: 800px;
}
.hero__bottom {
  position: relative;
  margin-top: 2rem; /* Reduced from 4rem */
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
}
.hero__sub {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.6;
  max-width: 680px; /* Slightly tighter */
  text-align: right;
  opacity: 0.9;
}
.hero__mission {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.hero__mission:hover { color: var(--lime); }
.hero__mission-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  animation: dot-blink 2s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── PLATFORM ─────────────────────────────────────────────── */
.platform {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 4rem; /* Reduced from 3.5rem */
  border-top: 2px solid var(--grey-4);
}
.platform__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  border: 1.5px solid var(--grey-3);
  border-radius: var(--radius);
  overflow: hidden;
}
.platform__card {
  background: var(--grey-1);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-right: 1.5px solid var(--grey-3);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.platform__card:last-child { border-right: none; }

.platform__card:hover { 
  background: var(--grey-2);
  border-color: rgba(213,235,152,0.3);
  box-shadow: inset 0 -4px 20px rgba(213,235,152,0.05);
}

.platform__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.platform__card-index {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--lime);
  opacity: 0.6;
  letter-spacing: 0.1em;
}

.platform__badge {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--lime);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.platform__card-body { 
  display: flex; 
  flex-direction: column; 
  gap: 1.5rem; 
  flex: 1; 
}

.platform__card-desc {
  font-size: 0.9rem;
  color: var(--grey-6);
  line-height: 1.75;
  flex: 1;
}

.platform__card-footer {
  width: 40px;
  height: 2px;
  background: var(--lime);
  margin-top: auto;
  opacity: 0.3;
  transition: width var(--transition), opacity var(--transition);
}

.platform__card:hover .platform__card-footer {
  width: 100%;
  opacity: 1;
}

/* ── SCIENCE ─────────────────────────────────────────────── */
.science {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 4rem;
  border-top: 2px solid var(--grey-4);
}
.science__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.science__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.science__body {
  font-size: 0.9rem;
  color: var(--grey-6);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}
.science__text .btn { margin-top: 0.8rem; }

/* ── 3D DNA HELIX ────────────────────────────────────────── */
.science__visual {
  position: relative;
  width: 400px; height: 400px;
  margin: 0 auto;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.helix {
  position: relative;
  width: 200px; height: 350px;
  transform-style: preserve-3d;
  animation: helix-rotate 10s linear infinite;
}

@keyframes helix-rotate {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

.base-pair {
  position: absolute;
  top: 50%; left: 50%;
  width: 160px; height: 2px;
  background: rgba(213,235,152,0.15); /* The rung */
  transform-style: preserve-3d;
  /* Staggered vertical position and initial rotation */
  transform: 
    translate(-50%, -50%) 
    translateY(calc((var(--i) - 6.5) * 30px)) 
    rotateY(calc(var(--i) * 30deg));
}

/* Nucleotides at the ends of the rung */
.base-pair::before,
.base-pair::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  top: -6px;
  box-shadow: 0 0 15px var(--lime);
  animation: nucleotide-glow 3s ease-in-out infinite alternate;
}

.base-pair::before {
  left: -7px;
  background: var(--lime);
}

.base-pair::after {
  right: -7px;
  background: #fff;
  box-shadow: 0 0 15px #fff;
  animation-delay: -1.5s;
}

@keyframes nucleotide-glow {
  from { transform: scale(0.8); opacity: 0.6; }
  to   { transform: scale(1.1); opacity: 1; }
}

/* Add a central scanning beam or light for depth */
.helix::before {
  content: '';
  position: absolute;
  top: -20px; bottom: -20px;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(213,235,152,0.2), transparent);
  transform: translateX(-50%);
}

/* ── PIPELINE ─────────────────────────────────────────────── */
.pipeline {
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 4rem;
  border-top: 2px solid var(--grey-4);
}
.pipeline__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}
.pipeline__table { width: 100%; }
.pipeline__table-header {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.5fr 2.5fr 1.2fr;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-5);
  border-bottom: 1px solid var(--grey-3);
}
.pipeline__row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.5fr 2.5fr 1.2fr;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--grey-3);
  transition: background var(--transition);
}
.pipeline__row:hover { background: var(--grey-1); }
.pipeline__program {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--lime);
}
.pipeline__stage-bar {
  position: relative;
  height: 6px;
  background: var(--grey-3);
  border-radius: 100px;
  overflow: visible;
}
.pipeline__stage-fill {
  height: 100%;
  width: var(--fill);
  background: linear-gradient(90deg, var(--lime-dk), var(--lime));
  border-radius: 100px;
  box-shadow: 0 0 10px rgba(213,235,152,0.4);
}
.pipeline__stage-label {
  position: absolute;
  top: -1.5rem;
  right: 0;
  font-size: 0.65rem;
  color: var(--grey-5);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.pipeline__tag {
  display: inline-flex;
  padding: 0.3rem 0.8rem;
  background: var(--grey-3);
  border-radius: 100px;
  font-size: 0.68rem;
  color: var(--grey-6);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ── INQUIRE ──────────────────────────────────────────────── */
.inquire {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 4rem;
  border-top: 2px solid var(--grey-4);
}
.inquire__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
}
.inquire__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.inquire__sub {
  font-size: 1.1rem;
  color: var(--grey-6);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 480px;
}
.inquire__contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.inquire__detail-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--grey-5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.inquire__detail-value {
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
}

/* Form Elements */
.inquire__form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.form__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--grey-6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form__input {
  background: var(--grey-1);
  border: 1.5px solid var(--grey-3);
  padding: 1rem 1.2rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 15px rgba(213,235,152,0.1);
}
.btn--full {
  width: 100%;
  justify-content: center;
  padding: 1.2rem;
}

.form__success-msg {
  display: none;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--lime);
  padding: 1.5rem;
  background: rgba(213,235,152,0.05);
  border: 1px solid rgba(213,235,152,0.2);
  border-radius: 8px;
}
.form__success-msg.is-visible {
  display: flex;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--lime);
  color: var(--black);
  padding: 5rem 4rem 3rem;
  margin-top: 4rem;
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}
.footer__brand { display: flex; flex-direction: column; gap: 1.5rem; }
.footer__address {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(0,0,0,0.6);
}
.footer__links { display: flex; gap: 4rem; }
.footer__links-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__links-heading {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  margin-bottom: 0.5rem;
}
.footer__link {
  font-size: 0.85rem;
  color: var(--black);
  transition: opacity var(--transition);
}
.footer__link:hover { opacity: 0.6; }
.footer__social { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--black);
  transition: opacity var(--transition);
}
.footer__social-link:hover { opacity: 0.6; }

/* ── Scroll-reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .platform__grid { grid-template-columns: 1fr; }
  .platform__card { border-right: none; border-bottom: 1.5px solid var(--grey-3); }
  .platform__card:last-child { border-bottom: none; }
  .science__inner { grid-template-columns: 1fr; }
  .science__visual { display: none; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .press__grid { grid-template-columns: 1fr; }
  .press__item { border-right: none; border-bottom: 1.5px solid var(--grey-3); }
  .press__item:last-child { border-bottom: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .hero { padding: calc(var(--nav-h) + 4rem) 2rem 3rem; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .platform, .pipeline, .careers { padding: 5rem 2rem; }
  .science, .team, .press { padding: 5rem 2rem; }
  .footer { padding: 4rem 2rem 2.5rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .careers__locations { grid-template-columns: 1fr; }
  .pipeline__table-header { display: none; }
  .pipeline__row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.5rem;
    padding: 1.2rem;
  }
  .team__grid { grid-template-columns: 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}
