/* ============================================================
   Convergenomics — Home redesign (cinematic / museum-grade)
   Gold-on-black editorial. Playfair display · Crimson Pro reading
   body · IBM Plex Mono for data & labels. 12-discipline palette.
   ============================================================ */

:root {
  --gold: #c8a96e;
  --gold-bright: #e7cf9b;
  --gold-dim: #97824f;
  --ink: #ece5d6;
  --ink-soft: #b8b09e;
  --bg: #080706;
  --bg2: #0c0a08;
  --bg3: #110e0b;
  --line: #2a2520;
  --line-soft: #1a1713;
  --muted: #8c8475;
  --dim: #5f594f;

  /* discipline palette */
  --c-earth: #c89b6e;
  --c-genetics: #c8485c;
  --c-archaeology: #d97e3a;
  --c-linguistics: #5cb8d8;
  --c-scripture: #c8a96e;
  --c-historio: #d4c789;
  --c-cartography: #5b9bc8;
  --c-oral: #b07ad6;
  --c-architecture: #9bab4a;
  --c-law: #7e9bb8;
  --c-psychology: #d06cb6;
  --c-political: #6eb87e;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif: 'Crimson Pro', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --maxw: 1180px;
  --measure: 660px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.62;
  overflow-x: hidden;
  /* film grain + subtle warm vignette over the whole page */
  position: relative;
}
body::before {
  /* very subtle grain */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(200, 169, 110, 0.28); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.66rem;
  font-weight: 500;
}

/* ---------- top nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 7, 6, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.brand .tld {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.32em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: clamp(14px, 1.8vw, 30px);
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a:hover::after { width: 100%; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ============================================================
   HERO — twelve threads converge on a face
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero-photo img {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: min(58%, 920px);
  object-fit: cover;
  object-position: 50% 28%;
  filter: grayscale(0.18) contrast(1.04) brightness(0.92) sepia(0.12) saturate(0.92);
}
/* gradient scrims: black from left, top, bottom — leave the face glowing */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, var(--bg) 18%, rgba(8,7,6,0.86) 42%, rgba(8,7,6,0.32) 64%, rgba(8,7,6,0.55) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(8,7,6,0) 30%),
    radial-gradient(120% 90% at 80% 35%, rgba(200,169,110,0.10), rgba(8,7,6,0) 55%);
}
/* the converging-threads SVG overlay */
.hero-threads {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.hero-copy { max-width: 820px; }
.hero-eyebrow {
  color: var(--gold);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--ease) 0.2s, transform 1s var(--ease) 0.2s;
}
body.loaded .hero-eyebrow { opacity: 1; transform: none; }
.hero-eyebrow::before {
  content: '';
  width: 38px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 8.4vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 28px;
  white-space: nowrap;
}
.hero h1 .grad {
  font-weight: 400;
  background: linear-gradient(96deg, var(--gold-bright), var(--gold) 45%, var(--gold-dim));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .wordmark {
  display: inline-block;
  overflow: hidden;
}
.hero h1 .wordmark > span,
.hero h1 .wordmark > b {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.05s var(--ease);
}
.hero h1 .wordmark > b { transition-delay: 0.12s; }
body.loaded .hero h1 .wordmark > span,
body.loaded .hero h1 .wordmark > b { transform: none; }
.hero-lede {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 38px;
  opacity: 0;
  transition: opacity 1s var(--ease) 0.9s;
}
.hero-lede em {
  color: var(--gold-bright);
  font-style: italic;
  font-family: var(--font-display);
}
body.loaded .hero-lede { opacity: 1; }
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 1s var(--ease) 1.1s;
}
body.loaded .hero-cta { opacity: 1; }

.btn {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  padding: 15px 26px;
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn:hover { background: var(--gold); color: #100c06; border-color: var(--gold); }
.btn.solid { background: var(--gold); color: #100c06; border-color: var(--gold); }
.btn.solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* photo credit + scroll cue */
.hero-credit {
  position: absolute;
  right: clamp(16px, 3vw, 34px);
  bottom: 24px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: rgba(236, 229, 214, 0.5);
  text-align: right;
  max-width: 240px;
  line-height: 1.5;
}
.hero-credit a { color: rgba(236,229,214,0.7); text-decoration: underline; text-underline-offset: 2px; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1s ease 1.6s;
}
body.loaded .scroll-cue { opacity: 1; }
.scroll-cue .line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@media (max-width: 760px) { .hero-credit { display: none; } }

/* ============================================================
   shared section scaffolding
   ============================================================ */
.section { padding: clamp(80px, 11vh, 150px) clamp(20px, 4vw, 48px); position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.wrap-narrow { max-width: 820px; margin: 0 auto; }

.kicker {
  color: var(--gold);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.kicker::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--gold-dim);
}
.kicker.center { justify-content: center; }

h2.head {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h2.head em { font-style: italic; color: var(--gold); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ============================================================
   THESIS / METHOD
   ============================================================ */
.thesis { background: var(--bg); border-top: 1px solid var(--line-soft); }
.pullquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 4.6vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 980px;
  margin: 0 auto 14px;
  text-align: center;
  text-wrap: balance;
}
.pullquote .hl { color: var(--gold-bright); }
.thesis-sub {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 70px;
}

.method-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.method-copy p { margin-bottom: 22px; color: var(--ink-soft); }
.method-copy .lead-cap { color: var(--ink); font-size: 1.18rem; line-height: 1.58; }
.method-copy .lead-cap::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.6rem;
  line-height: 0.78;
  padding: 6px 12px 0 0;
  color: var(--gold);
}
.method-names {
  margin-top: 30px;
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
}
.method-names .nrow {
  display: flex;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.method-names .who {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 116px;
  flex-shrink: 0;
}
.method-names .what { color: var(--ink-soft); font-size: 0.98rem; }

/* convergence diagram (scroll-drawn) */
.diagram-card {
  position: relative;
  background: linear-gradient(160deg, var(--bg2), var(--bg));
  border: 1px solid var(--line-soft);
  padding: 28px;
  aspect-ratio: 1 / 1;
}
.diagram-card svg { width: 100%; height: 100%; overflow: visible; }
.diagram-card .dlabel {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--muted);
}
.diagram-card .claim-label {
  font-family: var(--font-display);
  font-style: italic;
  fill: var(--ink);
  font-size: 13px;
}
@media (max-width: 820px) {
  .method-grid { grid-template-columns: 1fr; }
  .diagram-card { max-width: 460px; margin: 0 auto; }
}

/* ============================================================
   TWELVE THREADS
   ============================================================ */
.threads { background: var(--bg2); border-top: 1px solid var(--line-soft); }
.threads-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 54px;
  flex-wrap: wrap;
}
.threads-head p { color: var(--muted); max-width: 360px; font-size: 1rem; }
.disc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(30px, 5vw, 80px);
}
.disc-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.3s var(--ease);
}
.disc-row:hover { padding-left: 8px; }
.disc-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--dim);
}
.disc-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--ink);
}
.disc-row:hover .disc-name { color: var(--gold-bright); }
.disc-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}
@media (max-width: 720px) { .disc-list { grid-template-columns: 1fr; } }

/* ============================================================
   ELVIS — five stages
   ============================================================ */
.elvis { background: var(--bg); border-top: 1px solid var(--line-soft); text-align: center; }
.elvis-word {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.elvis-word b { color: var(--gold); font-weight: 400; }
.stage-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.stage-track::before {
  content: '';
  position: absolute;
  top: 38px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 15%, var(--gold-dim) 85%, transparent);
}
.stage {
  position: relative;
  padding: 0 14px;
}
.stage .node {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold-dim);
  margin: 32px auto 26px;
  position: relative;
  transition: all 0.3s var(--ease);
}
.stage:hover .node { background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.stage .letter {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--gold);
  line-height: 1;
}
.stage .name {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 14px 0 10px;
}
.stage .desc { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) {
  .stage-track { grid-template-columns: 1fr; gap: 28px; }
  .stage-track::before { display: none; }
}

/* ============================================================
   FULL-BLEED evidentiary moment
   ============================================================ */
.bleed {
  position: relative;
  isolation: isolate;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.bleed-img {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
  will-change: transform;
}
.bleed-img img {
  width: 100%; height: 124%;
  object-fit: cover;
  object-position: center 38%;
  filter: grayscale(0.16) contrast(1.05) brightness(0.84) sepia(0.12);
}
.bleed::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--bg) 2%, rgba(8,7,6,0.6) 22%, rgba(8,7,6,0.06) 58%, rgba(8,7,6,0.34) 100%),
    linear-gradient(72deg, rgba(8,7,6,0.92) 0%, rgba(8,7,6,0.42) 34%, rgba(8,7,6,0) 62%);
}
.bleed-copy {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(56px, 8vh, 100px);
  width: 100%;
}
.bleed-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  line-height: 1.28;
  color: var(--ink);
  max-width: 820px;
  text-wrap: balance;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.6);
}
.bleed-attr {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}
.bleed-credit {
  position: absolute;
  right: clamp(16px, 3vw, 34px);
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  color: rgba(236,229,214,0.45);
}

/* ============================================================
   WAYS INTO THE EVIDENCE
   ============================================================ */
.ways { background: var(--bg2); border-top: 1px solid var(--line-soft); }
.ways-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 50px;
}
.way {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 30px 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.35s var(--ease);
}
.way:nth-child(odd) { border-right: 1px solid var(--line); }
.way::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.way:hover { background: rgba(200,169,110,0.045); }
.way:hover::before { transform: scaleY(1); }
.way-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-dim);
  padding-top: 6px;
}
.way-micro {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
}
.way-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--gold);
  margin-bottom: 9px;
  line-height: 1.05;
}
.way-desc { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.5; max-width: 44ch; }
.way-arrow {
  font-family: var(--font-mono);
  color: var(--dim);
  font-size: 1.1rem;
  padding-top: 4px;
  transition: transform 0.3s var(--ease), color 0.3s;
}
.way:hover .way-arrow { color: var(--gold); transform: translate(4px, -4px); }
@media (max-width: 760px) {
  .ways-grid { grid-template-columns: 1fr; }
  .way:nth-child(odd) { border-right: none; }
  .way { grid-template-columns: 44px 1fr; }
  .way-arrow { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding: 70px clamp(20px, 4vw, 48px) 48px;
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-brand {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
}
.foot-tag { color: var(--muted); font-size: 0.95rem; margin-top: 8px; max-width: 420px; }
.foot-meta {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-align: right;
  line-height: 1.9;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .foot-meta { text-align: left; }
}

/* ---------- keyframes ---------- */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-clip { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1) translateY(42px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .ln span, .hero h1 .wordmark > span, .hero h1 .wordmark > b, .hero-eyebrow, .hero-lede, .hero-cta, .scroll-cue { opacity: 1; transform: none; }
}
