/* Mol* hero spike. Same locked palette as the homing prototype:
   near-black slate background, light text, the four functional colors
   only (pink DNA, teal RNA, green protein, red cut). The molecule
   carries the color; the page chrome stays neutral and minimal. */

:root {
  --bg: #0e1116;          /* near-black slate, not pure black */
  --bg-2: #141922;
  --ink: #e8ebf0;
  --ink-dim: #9aa3b2;
  --hair: #2a313c;
  --dna: #E91E63;
  --rna: #26A69A;
  --pro: #43A047;
  --cut: #E53935;
}

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

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* faint vignette so the slate is not flat, identical to the prototype */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 44%, var(--bg-2) 0%, var(--bg) 72%);
  z-index: 0;
  pointer-events: none;
}

/* the Mol* canvas host. Fills the viewport, transparent so our slate
   vignette shows through behind the lit molecule. */
#hero {
  position: fixed;
  inset: 0;
  z-index: 1;
}

/* Hard kill every piece of Mol* default UI. The spike must prove the
   molecule reads on the site aesthetic with no engine chrome at all. */
.msp-plugin .msp-layout-expanded,
.msp-plugin .msp-layout-standard { background: transparent; }
.msp-plugin canvas { background: transparent !important; }
.msp-viewport-controls,
.msp-layout-region.msp-layout-right,
.msp-layout-region.msp-layout-top,
.msp-layout-region.msp-layout-bottom,
.msp-layout-region.msp-layout-left,
.msp-viewport-top-left-controls,
.msp-highlight-toast-wrapper,
.msp-overlay,
.msp-loader-msp-btn-file,
.msp-logo,
.msp-help {
  display: none !important;
}

/* our own narrative overlay (the only on-screen chrome) */
#overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 0 56px 60px;
  pointer-events: none;
}

#kicker {
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  margin-bottom: 14px;
}

#title {
  color: var(--ink);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.005em;
  max-width: 22ch;
  line-height: 1.18;
}

#sub {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  align-items: center;
}

#pdb-tag {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 5px 11px;
  border: 1px solid var(--hair);
  border-radius: 4px;
}

#state-tag {
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* boot text, removed once the structure has rendered */
#boot {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: var(--bg);
  transition: opacity 0.6s ease;
}

#boot.gone { opacity: 0; pointer-events: none; }

/* a thin reference rail, bottom center, echoes the prototype's progress
   rail so the two pages feel like one system */
#rail {
  position: fixed;
  left: 50%;
  bottom: 26px;
  width: 180px;
  height: 3px;
  border-radius: 2px;
  background: var(--hair);
  transform: translateX(-50%);
  z-index: 3;
}

#rail-fill {
  width: 0%;
  height: 100%;
  border-radius: 2px;
  background: var(--ink-dim);
  transition: width 0.4s ease;
}
