@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

:root {
  --bg-overlay: rgba(5, 2, 2, 0.70);
  --fg: #f7ede8;
  --fg-muted: rgba(247, 237, 232, 0.44);
  --border: rgba(234, 161, 128, 0.16);
  --accent: #eaa180;
  --accent-fg: #0e0604;
  --nav-bg: rgba(5, 2, 2, 0.84);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: #0e0604;
  background-image: url('/assets/bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Dark overlay — sits behind everything, above the bg image */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 0;
  pointer-events: none;
}

::selection { background: var(--accent); color: var(--accent-fg); }

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Nav ── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }

.nav-logo img {
  height: 24px;
  width: auto;
  opacity: 0.9;
}

nav ul { list-style: none; display: flex; gap: 2.5rem; align-items: center; }

nav ul a {
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.15s;
  font-weight: 500;
}

nav ul a:hover { color: var(--fg); }

/* ── Main ── */

main {
  flex: 1;
  padding: 9rem 2.5rem 5rem;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

/* ── Footer ── */

footer {
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.footer-nav { list-style: none; display: flex; gap: 2rem; }

.footer-nav a {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover { color: var(--fg); }

/* ── Home ── */

.hero { margin-bottom: 5rem; }

.hero-tagline {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 17ch;
  margin-bottom: 1.5rem;
}

.hero-tagline em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.88rem, 1.4vw, 0.98rem);
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 48ch;
  font-weight: 400;
}

.section-label {
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.research-list { list-style: none; border-top: 1px solid var(--border); }

.research-item { border-bottom: 1px solid var(--border); }

.research-item > a {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.research-item > a:hover { opacity: 0.5; }

.r-num {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  font-weight: 500;
}

.r-title {
  font-size: clamp(0.98rem, 1.7vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.r-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.45;
  font-weight: 400;
}

.r-status {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  white-space: nowrap;
}

.r-status.live {
  color: #8ecf92;
  border-color: rgba(142, 207, 146, 0.3);
}

/* ── Inner pages ── */

.eyebrow {
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 1.5rem;
}

.page-body {
  font-size: clamp(0.88rem, 1.4vw, 0.98rem);
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 54ch;
}

.page-body p + p { margin-top: 1.25rem; }

.tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.tag.live {
  color: #8ecf92;
  border-color: rgba(142, 207, 146, 0.3);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.back-link:hover { color: var(--fg); }

/* ── Contact ── */

.contact-intro {
  font-size: clamp(0.88rem, 1.4vw, 0.98rem);
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 44ch;
  margin-bottom: 2rem;
}

.contact-email {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-bottom: 3rem;
  transition: opacity 0.15s;
}

.contact-email:hover { opacity: 0.65; }

/* ── About ── */

.about-body {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: var(--fg-muted);
  line-height: 1.85;
  max-width: 54ch;
}

.about-body p + p { margin-top: 1.5rem; }

/* ── Legal ── */

.legal-content { max-width: 660px; }

.legal-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.legal-meta {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-bottom: 3.5rem;
  line-height: 1.6;
}

.legal-content h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.86rem;
  color: var(--fg-muted);
  line-height: 1.85;
  margin-bottom: 0.6rem;
}

.legal-content ul { padding-left: 1.4rem; margin-bottom: 0.75rem; }

.legal-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* ── Mobile ── */

@media (max-width: 640px) {
  nav { padding: 1.1rem 1.25rem; }
  nav ul { gap: 1.5rem; }

  main { padding: 6.5rem 1.25rem 4rem; }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.25rem;
  }

  .research-item > a {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
  }

  .r-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.5rem;
  }
}
