/* ═══════════════════════════════════════════════════════════════
   37°N Labs — site styles  (Clinical Evolution)
   Builds on assets/colors_and_type.css
   ═══════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--sage-12); }

/* ── Layout shell ─────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 760px) { .wrap { padding: 0 24px; } }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mute);
}
.mono.sage { color: var(--sage); }

/* ── Continuous-line motif ────────────────────────────────── */
.line-art { color: var(--sage); opacity: 0.7; display: block; }
.line-art svg { display: block; width: 100%; height: 100%; }
.line-art svg path, .line-art svg line { stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.3px; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.mono { transition: color 0.18s ease; }
.nav-links a.mono:hover { color: var(--ink); }
.nav-links a.mono.active { color: var(--ink); }
@media (max-width: 760px) { .nav-links .nav-link-text { display: none; } }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--r);
  font-family: var(--font-sans); font-weight: 500; font-size: 14px; letter-spacing: 0.2px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { opacity: 0.92; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { opacity: 0.9; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--sage-06); border-color: var(--sage); }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ── Section rhythm ───────────────────────────────────────── */
section { position: relative; }
.section-pad { padding: 120px 0; }
@media (max-width: 760px) { .section-pad { padding: 80px 0; } }
.sec-label { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.sec-label .rule { flex: 1; height: 1px; background: var(--line); }

/* ── Reveal-on-scroll ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(.2,.7,.3,1), transform 0.8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Footer ───────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 64px 0 56px; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { font-size: 22px; }
.footer-tag { color: var(--mute); font-size: 13px; margin-top: 10px; max-width: 280px; line-height: 1.5; }
.footer-legal { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.footer-legal a { color: var(--mute); font-size: 11px; transition: color 0.15s; }
.footer-legal a:hover { color: var(--ink); }
.footer-legal-sep { color: var(--mute); font-size: 11px; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--sub); font-size: 13px; transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
