/* JGC — dark precision theme (template 5)
   Inter + Space Mono · deep navy · teal mono kickers · terracotta accents */

:root {
  --bg: #0F2233;
  --bg-deep: #0B1A28;
  --panel: rgba(255,255,255,0.025);
  --line: rgba(255,255,255,0.12);
  --line-soft: rgba(255,255,255,0.08);
  --cream: #EDE8DF;
  --white: #FFFFFF;
  --muted: #9FB1BC;
  --teal: #63A8AE;
  --terra: #EE7741;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--white); }

h1, h2, h3 { color: var(--white); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { color: var(--white); font-size: 1rem; font-weight: 600; }
em.accent { font-style: normal; border-bottom: 3px solid var(--terra); padding-bottom: 2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 92px 0; }

.kicker {
  font-family: "Space Mono", monospace;
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.kicker b { color: var(--terra); font-weight: 400; }

.lead { font-size: 1.08rem; color: var(--muted); }
p { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 34, 51, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: #C9D5DD; font-weight: 500; font-size: 0.9rem; }
.nav-links a:hover, .nav-links a.active { color: var(--terra); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); margin: 5px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 3px;
  font-weight: 500; font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.4); color: var(--white);
  transition: all 0.18s ease; background: transparent; cursor: pointer; font-family: inherit;
}
.btn:hover, .btn:active, .btn.active,
.nav-links a.btn:hover, .nav-links a.btn:active, .nav-links a.btn.active { background: var(--white); color: var(--terra); border-color: var(--white); }
.btn-solid { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn-solid:hover { background: #d9622c; border-color: #d9622c; color: #fff; }
.btn-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 34px; align-items: center; }
.link { color: var(--cream); font-size: 0.9rem; font-weight: 500; }
.link::after { content: " →"; color: var(--terra); }
.link:hover { color: var(--terra); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero p.lead { margin-top: 24px; max-width: 480px; }
.hero-img img { border-radius: 8px; border: 1px solid var(--line); }
.hero-strip {
  margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 10px 40px;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.hero-strip span::before { content: "+ "; color: var(--terra); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 48px 36px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { font-size: 2.9rem; font-weight: 500; color: var(--white); letter-spacing: -0.02em; line-height: 1.1; }
.stat span { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 10px; line-height: 1.5; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 30px 28px; background: var(--panel);
  transition: border-color 0.2s ease;
}
.card:hover { border-color: rgba(255,255,255,0.28); }
.card .num { font-family: "Space Mono", monospace; color: var(--terra); font-size: 0.8rem; display: block; margin-bottom: 16px; }
.card h4, .card h3 { margin-bottom: 10px; }
.card p { font-size: 0.9rem; }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split + .split { margin-top: 96px; }
.split-img img { border-radius: 8px; border: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p { margin-top: 16px; }

/* ---------- Lists ---------- */
.check-list { list-style: none; margin-top: 20px; }
.check-list li { padding-left: 26px; position: relative; margin-bottom: 12px; font-size: 0.95rem; color: var(--muted); }
.check-list li::before { content: "+"; position: absolute; left: 0; top: 0; color: var(--terra); font-family: "Space Mono", monospace; }

/* ---------- Publications ---------- */
.pub {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  padding: 26px; align-items: center; margin-bottom: 22px;
  transition: border-color 0.2s ease;
}
.pub:hover { border-color: rgba(255,255,255,0.28); }
.pub .thumb img { border-radius: 6px; border: 1px solid var(--line); }
.pub .venue { font-family: "Space Mono", monospace; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.pub h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.pub .authors { font-size: 0.88rem; color: var(--muted); }
.pub .link { display: inline-block; margin-top: 14px; font-size: 0.85rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-deep);
  padding: 72px 56px; text-align: center;
}
.cta-band h2 { max-width: 740px; margin: 0 auto; }
.cta-band p { max-width: 620px; margin: 18px auto 0; }
.cta-band .btn-row { justify-content: center; }

/* ---------- About ---------- */
.about-photo img { border-radius: 8px; border: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 52px; align-items: center; margin-bottom: 52px; }
.about-grid img { border-radius: 8px; border: 1px solid var(--line); }
.strip {
  font-family: "Space Mono", monospace; font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--muted); border-left: 2px solid var(--terra);
  padding: 14px 0 14px 22px; margin-top: 40px; line-height: 1.8;
}
.strip b { color: var(--cream); font-weight: 400; }

/* ---------- Contact ---------- */
.contact-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 40px; }
.contact-card label { display: block; font-weight: 500; color: var(--cream); font-size: 0.85rem; margin: 18px 0 7px; }
.contact-card input, .contact-card textarea, .contact-card select {
  width: 100%; border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 14px; font: inherit; color: var(--white); background: rgba(255,255,255,0.05);
}
.contact-card select option { color: #111; }
.contact-card input:focus, .contact-card textarea:focus, .contact-card select:focus { outline: 1px solid var(--teal); border-color: var(--teal); }

/* ---------- Footer ---------- */
footer { background: var(--bg-deep); color: var(--muted); padding: 56px 0 32px; margin-top: 96px; border-top: 1px solid var(--line-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.footer-brand img { height: 44px; }
footer h4 { color: var(--white); font-family: "Space Mono", monospace; font-weight: 400; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 16px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: var(--muted); font-size: 0.9rem; }
footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--line-soft); margin-top: 44px; padding-top: 24px; font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .grid-3, .grid-2, .footer-grid, .stats, .about-grid { grid-template-columns: 1fr; }
  .about-grid img { max-width: 260px; }
  .split { gap: 38px; }
  .split.rev .split-img { order: -1; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .pub { grid-template-columns: 1fr; }
  .pub .thumb img { width: 100%; }
  section { padding: 60px 0; }
  .cta-band { padding: 52px 26px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg-deep); border-bottom: 1px solid var(--line);
    padding: 22px 28px; gap: 18px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
