/* ============================================================
   Kevlab — genomics research lab
   Bespoke stylesheet (no frameworks)
   ============================================================ */

:root {
  --bg:        #0a0e1a;
  --bg-soft:   #0f1626;
  --surface:   #131c30;
  --surface-2: #18233b;
  --line:      rgba(255,255,255,.08);
  --ink:       #eaf0ff;
  --ink-soft:  #aeb9d4;
  --ink-mute:  #7585a6;
  --teal:      #2de2c6;
  --cyan:      #38bdf8;
  --indigo:    #6366f1;
  --violet:    #a855f7;
  --grad: linear-gradient(120deg, var(--teal), var(--cyan) 45%, var(--indigo));
  --grad-soft: linear-gradient(120deg, rgba(45,226,198,.16), rgba(99,102,241,.16));
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  --maxw: 1140px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Space Grotesk', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }
h1,h2,h3,h4 { font-family: var(--display); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem;
  font-weight: 600; color: var(--teal); margin: 0 0 14px;
}
.gradient-text {
  background: var(--grad); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}

/* ---------- Background aurora ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.aurora::before, .aurora::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: .5;
}
.aurora::before {
  width: 620px; height: 620px; top: -200px; right: -120px;
  background: radial-gradient(circle, rgba(45,226,198,.5), transparent 65%);
}
.aurora::after {
  width: 680px; height: 680px; bottom: -280px; left: -160px;
  background: radial-gradient(circle, rgba(99,102,241,.45), transparent 65%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,14,26,.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display);
  font-weight: 700; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #04121a; font-weight: 800;
  box-shadow: 0 6px 18px -6px rgba(45,226,198,.7);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: .92rem;
  padding: 9px 14px; border-radius: 10px; transition: all .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a.active { color: var(--ink); background: var(--grad-soft); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink);
  font-size: 1.6rem; cursor: pointer; margin-left: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); margin: 0 0 20px; }
.hero .lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 38ch; margin: 0 0 32px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s;
}
.btn-primary { background: var(--grad); color: #04121a; box-shadow: 0 12px 30px -10px rgba(56,189,248,.6); }
.btn-primary:hover { color: #04121a; transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--teal); transform: translateY(-2px); }

/* DNA helix figure */
.helix { display: grid; place-items: center; }
.helix svg { width: 100%; max-width: 380px; filter: drop-shadow(0 20px 40px rgba(45,226,198,.25)); }
.helix .rung { animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.35} 50%{opacity:1} }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 64px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; }
.stat .num { font-family: var(--display); font-size: 2.1rem; font-weight: 700; }
.stat .label { color: var(--ink-mute); font-size: .85rem; margin-top: 4px; }

/* ---------- Section ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 620px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin: 0 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; margin: 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s, border-color .2s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(45,226,198,.4); box-shadow: var(--shadow); }
.card:hover::after { transform: scaleX(1); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--grad-soft);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--teal);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; margin: 0 0 10px; }
.card p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* ---------- Publications ---------- */
.pub-list { display: flex; flex-direction: column; gap: 16px; }
.pub {
  display: flex; gap: 22px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 24px; transition: border-color .2s, transform .2s;
}
.pub:hover { border-color: rgba(56,189,248,.4); transform: translateX(4px); }
.pub .yr { font-family: var(--display); font-weight: 700; color: var(--teal); font-size: 1.05rem; min-width: 54px; }
.pub .meta h3 { font-size: 1.08rem; margin: 0 0 6px; font-weight: 600; }
.pub .meta .authors { color: var(--ink-soft); font-size: .92rem; }
.pub .meta .venue { color: var(--ink-mute); font-size: .88rem; font-style: italic; }
.badge { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em;
  background: var(--grad-soft); color: var(--teal); padding: 3px 9px; border-radius: 999px; margin-left: 8px; }

/* ---------- Highlights ---------- */
.highlight-list { display: flex; flex-direction: column; gap: 32px; }
.highlight {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 34px 36px;
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.highlight::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad);
}
.highlight:hover { border-color: rgba(45,226,198,.4); transform: translateY(-4px); }
.highlight-head { padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.highlight-head h3 { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 6px; }
.highlight-date { font-family: var(--display); font-weight: 700; color: var(--teal); font-size: 1rem; margin: 0 0 14px; }
.highlight-paper { margin: 0 0 8px; font-size: 1.02rem; font-weight: 600; }
.highlight-paper a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--teal); }
.highlight-paper a:hover { color: var(--teal); }
.highlight-meta { color: var(--ink-mute); font-size: .86rem; margin: 0; }
.highlight-meta .venue { font-style: italic; }
.highlight-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; }
.highlight-block {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px;
}
.highlight-block h4 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--teal); margin: 0 0 8px;
}
.highlight-block p { color: var(--ink-soft); font-size: .95rem; margin: 0; line-height: 1.6; }
.highlight-role {
  margin-top: 20px; background: var(--grad-soft);
  border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: 12px; padding: 18px 22px;
}
.highlight-role h4 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--teal); margin: 0 0 8px;
}
.highlight-role p { color: var(--ink-soft); font-size: .95rem; margin: 0; line-height: 1.6; }
.highlight-link { margin: 24px 0 0; }
.highlight-link a { color: var(--teal); font-weight: 600; text-decoration: none; }
.highlight-link a:hover { text-decoration: underline; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; transition: transform .2s, border-color .2s; }
.member:hover { transform: translateY(-5px); border-color: rgba(99,102,241,.4); }
.avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--grad); display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: #04121a;
}
.member h3 { font-size: 1.12rem; margin: 0 0 4px; }
.member .role { color: var(--teal); font-size: .86rem; font-weight: 600; margin-bottom: 12px; }
.member p { color: var(--ink-soft); font-size: .9rem; margin: 0; }

/* ---------- News ---------- */
.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
.news-item .date { color: var(--ink-mute); font-size: .85rem; }
.news-item h3 { font-size: 1.12rem; margin: 0 0 8px; }
.news-item p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.tag { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--cyan); border: 1px solid rgba(56,189,248,.35); padding: 2px 8px; border-radius: 999px; margin-top: 10px; }

/* ---------- Forms ---------- */
.form { max-width: 620px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font-family: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,226,198,.15);
}
.field textarea { resize: vertical; min-height: 140px; }
.alert { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4);
  color: #fecaca; border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.notice { background: var(--grad-soft); border: 1px solid rgba(45,226,198,.3);
  border-radius: var(--radius); padding: 40px; text-align: center; }
.notice h2 { margin-top: 0; }

/* ---------- Contact split ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-mute); margin-top: 20px; }
.contact-info dd { margin: 4px 0 0; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 50px 0 40px; margin-top: 40px; background: var(--bg-soft); }
.footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.footer .muted { color: var(--ink-mute); font-size: .88rem; }
.footer-links { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--ink-soft); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--grad-soft); border: 1px solid rgba(45,226,198,.25);
  border-radius: 24px; padding: 56px; text-align: center; margin: 20px 0;
}
.cta h2 { font-size: clamp(1.8rem,3vw,2.4rem); margin: 0 0 14px; }
.cta p { color: var(--ink-soft); max-width: 50ch; margin: 0 auto 28px; font-size: 1.08rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .helix { display: none; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column;
    background: rgba(10,14,26,.97); backdrop-filter: blur(14px); padding: 16px 24px;
    border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
}
