/* The CellSpy look ("Graphite", as in the web app's app.css): a black brushed-metal band with a green edge and a
   fluorescence field, over clean light (or dark) sections. One accent: the green of a GFP channel. */
@font-face { font-family: Inter; src: url("assets/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #eef1f0;
  --panel: #ffffff;
  --text: #15201b;
  --muted: #55655e;
  --line: #d5dcd9;
  --accent: #0e7a47;
  --accent-hover: #0b6a3d;
  --accent-text: #ffffff;
  --code: #e3e9e6;
  --shadow: 0 1px 2px rgba(10, 20, 15, .05), 0 12px 32px -20px rgba(10, 20, 15, .35);
  /* The graphite band is the same in both modes. */
  --metal: linear-gradient(180deg, #2a2f2d 0%, #121514 55%, #0a0c0b 100%);
  --ink: #050807;
  --on-ink: #f2f5f4;
  --on-ink-muted: #b8c2be;
  --glow: #3ddc84;
  --steel: linear-gradient(135deg, #e9eeec 0%, #9aa5a1 45%, #c9d1ce 55%, #5e6865 100%);
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, Consolas, "SF Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0e0d; --panel: #141917; --text: #e3e9e6; --muted: #93a29b; --line: #27302c;
    --accent: #22b566; --accent-hover: #2bc873; --accent-text: #04130a; --code: #1e2724;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -20px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e0d; --panel: #141917; --text: #e3e9e6; --muted: #93a29b; --line: #27302c;
  --accent: #22b566; --accent-hover: #2bc873; --accent-text: #04130a; --code: #1e2724;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -20px rgba(0, 0, 0, .8);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
code { font-family: var(--mono); font-size: .88em; background: var(--code); padding: 1px 5px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 10px;
  background: var(--accent); color: var(--accent-text); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px -6px rgba(14, 122, 71, .6); }
.button:hover { background: var(--accent-hover); }
.button.big { min-height: 48px; padding: 0 24px; font-size: 16px; }
.button.ghost { background: rgba(255, 255, 255, .06); color: var(--on-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.button.ghost:hover { background: rgba(255, 255, 255, .12); }

/* The top bar and the hero share the graphite band */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--metal); border-bottom: 1px solid var(--glow);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: #2a2f2d; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.brand b { color: var(--glow); }
.brand small { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-muted);
  padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .2); }
.bar nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.bar nav a:not(.button) { color: var(--on-ink-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.bar nav a:not(.button):hover { color: var(--on-ink); }

.hero { background: radial-gradient(900px 420px at 80% 0%, rgba(61, 220, 132, .12), rgba(5, 8, 7, 0) 65%), var(--ink); color: var(--on-ink); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-block: 72px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); }
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; }
.lede { margin: 22px 0 0; max-width: 34em; font-size: 18px; color: var(--on-ink-muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* The fluorescence field, framed in steel */
.field { position: relative; margin: 0; padding: 3px; border-radius: 18px; background: var(--steel);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); }
.field > img { display: block; width: 100%; border-radius: 15px; background: #020504; }
.field figcaption { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px;
  border-radius: 999px; background: rgba(5, 8, 7, .72); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-ink-muted);
  font: 500 12px/1.4 var(--mono); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px var(--glow); }

/* Photos of the lab */
.photos { padding-block: 72px 24px; }
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.photo-row figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.photo-row img { display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow); background: var(--line); }
.photo-row figcaption { font-size: 15px; color: var(--muted); }

.section-title { margin: 0 0 28px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.how, .labs { padding-block: 64px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--metal); color: var(--glow); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .4); }
.steps h3, .facts h3 { margin: 0; font-size: 19px; font-weight: 700; }
.steps p, .facts p { margin: 0; color: var(--muted); }
.labs { border-top: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.facts > div { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--accent); }

.foot { background: var(--metal); color: var(--on-ink-muted); font-size: 14px; }
.foot-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; min-height: 72px; padding-block: 16px; }
.foot-inner a { color: var(--glow); text-decoration: none; margin-left: auto; }
.brand.small { font-size: 16px; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 48px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .photo-row, .steps, .facts { grid-template-columns: 1fr; }
  .bar nav a:not(.button) { display: none; }
  .hero-inner { padding-block: 40px 48px; }
}
