/* ============================================================================
   NeuroNose — shared stylesheet (neuronose.css)
   Used by: index, science, technology, team, contact, investors, privacy, terms
   ============================================================================ */

/* ---- Design tokens ---- */
:root {
  --ivory: #FBFAF6;
  --paper: #F5F2E9;
  --ink:   #0B1B2B;
  --ink-2: #2A3A4D;
  --ink-3: #5C6878;
  --rule:  #D8D4C7;
  --copper: #B85C38;
  --copper-dark: #8A4128;
  --cherry: #BC002D;
  --emerald: #1E5F4E;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--copper); color: var(--ivory); }

/* ---- Type system ---- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.body-large { font-size: 19px; line-height: 1.6; color: var(--ink-2); }

/* ---- Layout primitives ---- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
section { padding: clamp(4rem, 9vw, 8rem) 0; }

/* ---- Top navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 250, 246, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav__brand {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-size: 22px; font-weight: 400; letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__brand span { color: var(--copper); }
.nav__links {
  display: flex; gap: 2.25rem;
  font-size: 14px; font-weight: 400; color: var(--ink-2);
}
.nav__links a { transition: color 0.2s var(--ease); }
.nav__links a:hover,
.nav__links a.is-active { color: var(--copper); }
.nav__cta {
  font-size: 13px; font-weight: 500;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--ivory); }
.nav__lang {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-3); padding: 0.5rem 0.4rem;
  transition: color 0.2s var(--ease);
}
.nav__lang:hover { color: var(--copper); }
.nav__lang .sep { color: var(--rule); margin: 0 0.15rem; }
.nav__lang .on { color: var(--ink); }
@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ---- Page hero (interior pages) ---- */
.page-hero {
  padding-top: clamp(8rem, 13vw, 11rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.page-hero__eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--copper);
}
.page-hero__title {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-weight: 350;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 20ch;
}
.page-hero__title em {
  font-style: italic;
  color: var(--copper);
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
}
.page-hero__lede {
  margin-top: 1.75rem;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ---- Section heading ---- */
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { display: block; margin-bottom: 1.25rem; }
.section-head h2 {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-weight: 350;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 24ch;
}
.section-head h2 em {
  font-style: italic;
  color: var(--copper);
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 14px; font-weight: 500;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--ivory); }
.btn--primary:hover { background: var(--copper); }
.btn--ghost { color: var(--ink); border: 1px solid var(--rule); }
.btn--ghost:hover { border-color: var(--ink); }
.btn__arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---- Card ---- */
.card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* ---- Prose (legal / long-form text) ---- */
.prose { max-width: 70ch; }
.prose h2 {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--ink);
  margin: 2.75rem 0 1rem;
  letter-spacing: -0.01em;
}
.prose h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 1.75rem 0 0.5rem;
}
.prose p { color: var(--ink-2); margin-bottom: 1rem; line-height: 1.7; }
.prose ul { margin: 0 0 1rem 1.25rem; color: var(--ink-2); }
.prose li { margin-bottom: 0.4rem; line-height: 1.65; }
.prose a { color: var(--copper); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .updated {
  font-size: 13px; color: var(--ink-3); font-style: italic;
  margin-bottom: 2rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgba(251, 250, 246, 0.7);
  padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
.site-footer__brand {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-size: 24px; color: var(--ivory);
  margin-bottom: 0.75rem;
}
.site-footer__brand span { color: var(--copper); }
.site-footer__tag {
  font-size: 14px; line-height: 1.6;
  color: rgba(251, 250, 246, 0.55);
  max-width: 32ch;
}
.site-footer__col h4 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(251, 250, 246, 0.5);
  margin-bottom: 1rem; font-weight: 600;
}
.site-footer__col a,
.site-footer__col p {
  display: block;
  font-size: 14px; line-height: 2;
  color: rgba(251, 250, 246, 0.7);
  transition: color 0.2s var(--ease);
}
.site-footer__col a:hover { color: var(--copper); }
.site-footer__meta {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(251, 250, 246, 0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 12px;
  color: rgba(251, 250, 246, 0.45);
}

/* ---- Scroll-triggered fade-in (progressive enhancement) ---- */
.has-fade .fade {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.has-fade .fade.in { opacity: 1; transform: translateY(0); }

/* ---- Source footnote ---- */
.source-note {
  font-size: 12px; line-height: 1.55; font-style: italic;
  color: var(--ink-3); max-width: 80ch;
}
.source-note em { font-style: normal; }
