/* =============================================================
   Paranormal Scientists — "Observatory" design system
   Cool near-black · warm bone text · spectral teal · citation gold
   Scholarly, archival, calm. Serious by design.
   ============================================================= */

:root {
  --bg:        #0b0d12;
  --bg-2:      #0f1219;
  --surface:   #141823;
  --surface-2: #1a1f2c;
  --line:      #242a39;
  --line-2:    #2f3647;

  --text-0:    #ece7da;   /* bone */
  --text-1:    #c2bcaa;
  --text-2:    #877f6d;
  --muted:     #5e5849;

  --spec:      #7ec8b8;   /* spectral teal accent */
  --spec-bright:#a9e2d4;
  --spec-deep: #3f8a78;
  --spec-glow: rgba(126, 200, 184, 0.22);
  --spec-faint:rgba(126, 200, 184, 0.07);

  --cite:      #c9a24c;   /* citation / data gold */
  --warn:      #d98a5a;
  --bad:       #d86a72;

  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --radius-1: 6px;
  --radius-2: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --transition: 260ms var(--ease);
  --container: 1160px;
  --measure: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text-1);
  font-family: var(--font-body); font-size: 17px; line-height: 1.68;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--spec); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--spec-bright); }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; color: var(--text-0);
  letter-spacing: -0.01em; line-height: 1.14; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); font-weight: 600; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
strong { color: var(--text-0); font-weight: 600; }
em { color: var(--text-0); }
.muted { color: var(--muted); }
.lede { font-size: 1.24rem; line-height: 1.6; color: var(--text-1); }
.in-spec { color: var(--spec); font-style: italic; }
::selection { background: var(--spec-deep); color: #06120f; }

/* layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 26px; }
.container--narrow { max-width: var(--measure); }
.section { padding: clamp(56px, 8vw, 108px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 68px) 0; }
.section--alt { background: var(--bg-2); }
.section--surface { background: var(--surface); }
.section__header { max-width: var(--measure); margin-bottom: clamp(34px,5vw,52px); }
.section__header.is-center { margin: 0 auto clamp(34px,5vw,52px); text-align: center; }
.section__header p { color: var(--text-2); font-size: 1.08rem; margin-bottom: 0; }

.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--spec); display: inline-flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--spec); opacity: 0.7; }
.is-center .eyebrow { justify-content: center; }

.visually-hidden, .skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: fixed; left: 16px; top: 16px; z-index: 9999; background: var(--spec-deep); color: #06120f; padding: 10px 16px; font-family: var(--font-mono); border-radius: var(--radius-1); }

/* ambient starfield glow */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-glow { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(130px); opacity: 0.16; }
.ambient-glow--1 { top: -22vw; right: -14vw; background: radial-gradient(circle, var(--spec) 0%, transparent 62%); }
.ambient-glow--2 { bottom: -26vw; left: -16vw; background: radial-gradient(circle, #4a6cff 0%, transparent 62%); opacity: 0.1; }
body > * { position: relative; z-index: 1; }

/* header / nav */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px);
  background: rgba(11,13,18,0.82); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text-0); }
.brand:hover { color: var(--text-0); }
.brand__mark { color: var(--spec); display: inline-flex; filter: drop-shadow(0 0 8px var(--spec-glow)); }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: 0.005em; }
.brand__word b { font-weight: 600; color: var(--spec); }
.brand__sub { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); margin-top: 2px; }
.site-nav__list { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav__list > li > a { color: var(--text-1); font-size: 0.93rem; font-weight: 500; position: relative; padding: 4px 0; }
.site-nav__list > li > a:hover { color: var(--spec); }
.site-nav__list > li > a.is-active { color: var(--spec); }
.site-nav__list > li > a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--spec); }
.site-nav__toggle { display: none; width: 40px; height: 40px; background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius-1); flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.site-nav__toggle-bar { width: 18px; height: 1.5px; background: var(--text-0); }
@media (max-width: 880px) {
  .site-nav__toggle { display: inline-flex; }
  .site-nav__list { position: fixed; inset: 0; top: 62px; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 30px 26px; gap: 6px; border-top: 1px solid var(--line); transform: translateY(-110%); visibility: hidden; transition: transform var(--transition), visibility var(--transition); overflow-y: auto; }
  .site-nav.is-open .site-nav__list { transform: translateY(0); visibility: visible; }
  .site-nav__list > li { width: 100%; }
  .site-nav__list > li > a { font-family: var(--font-display); font-size: 1.5rem; display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; font-family: var(--font-body); font-size: 0.96rem; font-weight: 600; background: transparent; color: var(--text-0); border: 1px solid var(--line-2); border-radius: var(--radius-1); cursor: pointer; transition: all var(--transition); }
.btn--spec { background: var(--spec-deep); border-color: var(--spec-deep); color: #06120f; }
.btn--spec:hover { background: var(--spec); border-color: var(--spec); color: #06120f; transform: translateY(-1px); }
.btn--ghost:hover { border-color: var(--spec); color: var(--spec); }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(3px); }

/* hero */
.hero { position: relative; padding: clamp(60px,9vw,120px) 0 clamp(48px,7vw,92px); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.30; filter: saturate(0.8); }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,18,0.6), var(--bg) 92%), radial-gradient(80% 60% at 70% 0%, transparent, rgba(11,13,18,0.7)); }
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { margin-bottom: 0; }
.hero__lede { margin-top: 24px; font-size: 1.24rem; color: var(--text-1); max-width: 660px; }
.hero__actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* the core caveat banner */
.creed { margin-top: 40px; border: 1px solid var(--line-2); border-left: 3px solid var(--cite); border-radius: var(--radius-1); background: rgba(201,162,76,0.05); padding: 20px 24px; max-width: 720px; }
.creed__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cite); margin-bottom: 8px; }
.creed p { margin: 0; color: var(--text-1); font-size: 1.02rem; }

/* page head */
.page-head { padding: clamp(34px,5vw,64px) 0 clamp(26px,3vw,40px); border-bottom: 1px solid var(--line); }
.page-head__inner { max-width: 840px; }
.page-head__lede { font-size: 1.18rem; color: var(--text-1); margin: 18px 0 0; max-width: var(--measure); }
.crumbs { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--text-2); } .crumbs a:hover { color: var(--spec); } .crumbs span { color: var(--text-0); }

/* prose */
.prose { max-width: var(--measure); }
.prose.is-wide { max-width: 880px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.7em; margin-bottom: 0.45em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; margin-bottom: 0.35em; color: var(--text-0); }
.prose p, .prose li { color: var(--text-1); }
.prose a { text-decoration: underline; text-decoration-color: rgba(126,200,184,0.4); text-underline-offset: 2px; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 0; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; padding-left: 1.6em; margin-bottom: 0.5em; }
.prose ul > li::before { content: ''; position: absolute; left: 0.1em; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--spec); opacity: 0.7; }
.prose ol { padding-left: 1.4em; } .prose ol li { margin-bottom: 0.5em; }
.prose ol li::marker { color: var(--spec); font-family: var(--font-mono); font-size: 0.9em; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2); padding: 22px 26px; margin-bottom: 36px; }
.toc__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 34px; }
.toc li { margin-bottom: 7px; } .toc a { color: var(--text-1); }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.pullquote { margin: clamp(28px,4vw,44px) 0; padding-left: 26px; border-left: 3px solid var(--spec-deep); }
.pullquote p { font-family: var(--font-display); font-size: clamp(1.3rem,2.4vw,1.7rem); font-style: italic; color: var(--text-0); line-height: 1.35; margin: 0; }
.pullquote cite { display: block; margin-top: 14px; font-family: var(--font-mono); font-style: normal; font-size: 0.78rem; color: var(--text-2); }

/* callouts */
.callout { border-radius: var(--radius-2); padding: 24px 26px; margin: clamp(26px,4vw,38px) 0; border: 1px solid var(--line); background: var(--surface); }
.callout__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 9px; }
.callout p:last-child { margin-bottom: 0; }
.callout--note { background: var(--spec-faint); border-color: #2a4a44; } .callout--note .callout__label { color: var(--spec); }
.callout--caution { background: rgba(217,138,90,0.07); border-color: #4a382a; } .callout--caution .callout__label { color: var(--warn); }
.callout--key { background: rgba(201,162,76,0.06); border-color: #463a22; } .callout--key .callout__label { color: var(--cite); }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2); padding: 28px 26px; display: flex; flex-direction: column; transition: transform var(--transition), border-color var(--transition); }
a.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card__kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--spec); margin-bottom: 11px; }
.card h3 { font-size: 1.3rem; margin-bottom: 9px; }
.card p { color: var(--text-2); font-size: 0.96rem; margin-bottom: 0; }
.card__more { margin-top: 16px; font-weight: 600; font-size: 0.92rem; color: var(--spec); display: inline-flex; gap: 6px; }
.card__more::after { content: '→'; transition: transform var(--transition); }
a.card:hover .card__more::after { transform: translateX(4px); }

/* stat strip */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; }
.stat-cell { background: var(--surface); padding: 28px 24px; }
.stat-cell__num { font-family: var(--font-display); font-size: clamp(2rem,4vw,2.8rem); font-weight: 600; color: var(--spec); line-height: 1; }
.stat-cell__label { margin-top: 10px; font-size: 0.98rem; color: var(--text-0); }
.stat-cell__sub { margin-top: 6px; font-size: 0.84rem; color: var(--text-2); }

/* ── evidence / topic block ── */
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2); padding: clamp(24px,3vw,34px); margin-bottom: 22px; scroll-margin-top: 90px; }
.topic__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topic__tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.topic h2 { margin: 4px 0 0; font-size: 1.7rem; }
.standing { margin: 18px 0 6px; }
.standing__bar { position: relative; height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.standing__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--bad), var(--cite) 55%, var(--spec)); }
.standing__scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.standing__label { font-size: 0.92rem; color: var(--text-1); margin-top: 10px; font-style: italic; }
.topic__grid { margin-top: 18px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-1); overflow: hidden; }
.topic__row { background: var(--surface); padding: 16px 20px; display: grid; grid-template-columns: 150px 1fr; gap: 18px; }
@media (max-width: 620px) { .topic__row { grid-template-columns: 1fr; gap: 5px; } }
.topic__k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 2px; }
.topic__k--claim { color: var(--text-2); }
.topic__k--evi { color: var(--spec); }
.topic__k--skep { color: var(--warn); }
.topic__k--rep { color: var(--cite); }
.topic__v { color: var(--text-1); font-size: 0.97rem; }
.topic__v em { color: var(--text-0); font-style: italic; }

/* ── people directory ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text-2); cursor: pointer; transition: all var(--transition); }
.chip:hover { color: var(--spec); border-color: var(--spec-deep); }
.chip.is-active { background: var(--spec-deep); border-color: var(--spec-deep); color: #06120f; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; margin-top: 26px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2); padding: 22px 22px; transition: border-color var(--transition); }
.person.is-hidden { display: none; }
.person:hover { border-color: var(--line-2); }
.person__name { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-0); font-weight: 600; }
.person__org { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-2); margin-top: 3px; }
.person__focus { color: var(--spec); font-size: 0.86rem; margin-top: 10px; }
.person__note { color: var(--text-1); font-size: 0.93rem; margin-top: 8px; }
.tagchip { display: inline-block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid; margin-top: 14px; }
.tag-proponent { color: var(--spec); border-color: #2a4a44; }
.tag-skeptic   { color: var(--warn); border-color: #4a382a; }
.tag-medicine  { color: #8fb6ff; border-color: #2c3a55; }
.tag-theory    { color: var(--cite); border-color: #463a22; }

/* ── institutions list ── */
.inst { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; }
.inst__row { background: var(--surface); padding: 22px 24px; display: grid; grid-template-columns: 1.3fr 2fr; gap: 20px; align-items: start; }
@media (max-width: 720px) { .inst__row { grid-template-columns: 1fr; gap: 8px; } }
.inst__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-0); font-weight: 600; }
.inst__where { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2); margin-top: 4px; }
.inst__note { color: var(--text-1); font-size: 0.96rem; }
.badge { display: inline-block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid; margin-top: 10px; }
.badge-active { color: var(--spec); border-color: #2a4a44; }
.badge-legacy { color: var(--cite); border-color: #463a22; }
.badge-skeptic{ color: var(--warn); border-color: #4a382a; }
.badge-defunct{ color: var(--bad); border-color: #4a2a2e; }

/* simple definition list (journals/funders) */
.deflist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; }
.deflist__row { background: var(--surface); padding: 18px 22px; }
.deflist__t { font-family: var(--font-display); font-size: 1.12rem; color: var(--text-0); }
.deflist__d { color: var(--text-2); font-size: 0.94rem; margin-top: 4px; }

/* references */
.references { margin-top: clamp(44px,7vw,72px); padding-top: 30px; border-top: 1px solid var(--line); }
.references h2 { font-size: 1.25rem; }
.references ol { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.55; color: var(--text-2); padding-left: 1.5em; }
.references li { margin-bottom: 9px; } .references li::marker { color: var(--muted); }

/* content meta + footer */
.content-meta { border-top: 1px solid var(--line); background: var(--bg-2); }
.content-meta__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; padding: 16px 0; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.content-meta a { color: var(--text-2); }
.site-footer { background: #07080c; border-top: 1px solid var(--line); padding-top: 56px; }
.site-footer__inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 38px; padding-bottom: 46px; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__tag { color: var(--text-2); margin-top: 10px; font-size: 0.92rem; max-width: 360px; }
.site-footer h3 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 5px 0; }
.link-list a { color: var(--text-1); font-size: 0.93rem; }
.link-list a:hover { color: var(--spec); }
.site-footer__base { border-top: 1px solid var(--line); padding: 22px 0; }
.site-footer__base-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.site-footer__base p { margin: 0; }

.center { text-align: center; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ambient-glow { display: none; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; }
}
