/* Layout: sticky brand bar + multi-page site over the SEM hyphae texture; content in a 1080px column.
   Text colours follow the Ekaush slide deck (greyscale theme):
     --title   #5F5F5F  page titles, eyebrows, roles      (slide titles "Home", "Team", stat labels)
     --heading #3F3F3F  main headings, card headings      ("First-in-class", "What We Do")
     --body    #4D4D4D  running text                      (slide body copy)
     --stat    #000000  key figures                       (bold numbers on the burden slide)  */
:root{
  --bg:#f6f6f5; --surface:rgba(255,255,255,.86);
  --title:#5f5f5f; --heading:#3f3f3f; --body:#4d4d4d; --stat:#000000; --muted:#5f5f5f;
  --line:#dcdcdc; --accent:#3f3f3f; --accent-ink:#ffffff; --accent-soft:#e8e8e8;
  --bar-a:#3f3f3f; --bar-b:#a6a6a6; --ph:#a3460f;
  --tex-op:1; --tex-filter:none; --logo-filter:none;
  --fg:var(--heading);
  --f-display:"Poppins",ui-sans-serif,system-ui,sans-serif;
  --f-body:"Source Sans 3",ui-sans-serif,system-ui,sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#161616; --surface:rgba(30,30,30,.9);
  --title:#b3b3b3; --heading:#e3e3e3; --body:#cfcfcf; --stat:#ffffff; --muted:#b3b3b3;
  --line:#333333; --accent:#e3e3e3; --accent-ink:#161616; --accent-soft:#2b2b2b;
  --bar-a:#e3e3e3; --bar-b:#7a7a7a; --ph:#f0a46a;
  --tex-op:.3; --tex-filter:invert(1); --logo-filter:invert(1); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#161616; --surface:rgba(30,30,30,.9);
  --title:#b3b3b3; --heading:#e3e3e3; --body:#cfcfcf; --stat:#ffffff; --muted:#b3b3b3;
  --line:#333333; --accent:#e3e3e3; --accent-ink:#161616; --accent-soft:#2b2b2b;
  --bar-a:#e3e3e3; --bar-b:#7a7a7a; --ph:#f0a46a;
  --tex-op:.3; --tex-filter:invert(1); --logo-filter:invert(1); color-scheme:dark}

*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--body);font:400 17px/1.6 var(--f-body);position:relative;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
/* footer always at the bottom of the window, even on short pages */
body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:url("../img/bg-tile.jpg") repeat;background-size:600px auto;
  opacity:var(--tex-op);filter:var(--tex-filter)}
img{max-width:100%}
[hidden]{display:none!important}
a{color:var(--heading)}
.wrap{position:relative;z-index:1;max-width:1080px;margin:0 auto;padding-inline:20px}

header{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;background:var(--surface);
  backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-block:12px}
.logo{display:block;line-height:0}
.logo img{height:44px;width:auto;filter:var(--logo-filter)}
nav{display:flex;gap:4px;flex-wrap:wrap}
nav a{font:500 14px/1 var(--f-display);color:var(--title);text-decoration:none;padding:9px 12px;border-radius:6px}
nav a:hover{color:var(--heading)}
nav a[aria-current="page"]{color:var(--heading);background:var(--accent-soft);font-weight:600}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

main{position:relative;z-index:1;flex:1 0 auto}
section.page{padding-block:56px 72px}
.eyebrow{font:500 12px/1.4 var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--title)}
h1,h2,h3{font-family:var(--f-display);text-wrap:balance;margin:0}
h1{font-size:clamp(34px,5.4vw,58px);line-height:1.08;font-weight:600;letter-spacing:-.02em;max-width:18ch;color:var(--heading)}
h2{font-size:clamp(26px,3.4vw,36px);line-height:1.15;font-weight:600;letter-spacing:-.01em;color:var(--title)}
h3{font-size:19px;font-weight:600;line-height:1.3;color:var(--heading)}
p{margin:0;max-width:65ch}
.lede{font-size:20px;color:var(--body);max-width:60ch}
.stack{display:flex;flex-direction:column;gap:18px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:26px}
/* Orange highlight for any website text that still starts with TODO (set in build_site.R) */
.ph{color:var(--ph);border-bottom:1px dashed currentColor}
.note{font:400 13px/1.5 var(--f-body);color:var(--muted)}

.hero{display:grid;gap:22px;padding-block:24px 32px}
.hero .sub{font:500 clamp(20px,2.4vw,26px)/1.3 var(--f-display);color:var(--body)}
.hero .sub b{color:var(--heading);font-weight:600}
.btns{display:flex;gap:12px;flex-wrap:wrap}
.btn{font:500 15px/1 var(--f-display);padding:13px 20px;border-radius:7px;text-decoration:none;border:1px solid var(--accent)}
.btn.pri{background:var(--accent);color:var(--accent-ink)}
.btn.sec{color:var(--accent);background:transparent}
button.btn{cursor:pointer}

.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}
.grid3>*,.grid2>*{min-width:0}
.area h3{margin-block:10px 8px}
.area p{color:var(--body);font-size:16px}
.big h3{font-size:clamp(24px,2.8vw,30px);margin-bottom:10px}
.tag{display:inline-block;font:500 11px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--title);background:var(--accent-soft);padding:6px 8px;border-radius:4px}

/* burden figures */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:18px}
.stat{display:flex;flex-direction:column;gap:4px;min-width:0}
.stat b{font:700 clamp(30px,3.6vw,42px)/1 var(--f-display);color:var(--stat);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.stat span{font-size:15px;color:var(--title);line-height:1.35}
.stats.small b{font-size:clamp(24px,2.6vw,30px)}
.group-title{font:600 16px/1.3 var(--f-display);color:var(--heading)}
.chart{display:grid;gap:16px}
.chart .row{display:grid;grid-template-columns:minmax(120px,190px) 1fr;gap:6px 16px;align-items:center}
.chart .row>*{min-width:0}
.chart .cat{font-size:15px;color:var(--heading);font-weight:600}
.chart .bars{display:grid;gap:5px}
.chart .hbar{display:flex;align-items:center;gap:8px;font:500 13px/1 var(--f-mono);color:var(--body);font-variant-numeric:tabular-nums}
.chart .hbar i{display:block;height:14px;border-radius:3px;background:var(--bar-a);min-width:2px}
.chart .hbar.b i{background:var(--bar-b)}
.legend{display:flex;gap:18px;flex-wrap:wrap;font-size:14px;color:var(--title)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:12px;height:12px;border-radius:2px;background:var(--bar-a);display:inline-block}
.legend .b i{background:var(--bar-b)}
@media (max-width:560px){.chart .row{grid-template-columns:1fr}}
.sources{font-size:12.5px;color:var(--muted)}

/* pipeline */
.pipe{overflow-x:auto}
.pipe table{width:100%;min-width:760px;border-collapse:collapse}
.pipe th{font:500 11px/1.3 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--title);text-align:left;padding:0 10px 12px;border-bottom:1px solid var(--line);vertical-align:bottom}
.pipe td{padding:18px 10px;border-bottom:1px solid var(--line);vertical-align:middle;color:var(--body)}
.pipe .prog b{display:block;font:600 17px/1.3 var(--f-display);color:var(--heading)}
.pipe .prog span{font-size:14px;color:var(--title)}
.track{position:relative;height:12px;background:var(--line);border-radius:6px}
.track i{position:absolute;left:0;top:0;bottom:0;background:var(--accent);border-radius:6px}
.stages{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
dl.facts{display:grid;grid-template-columns:max-content 1fr;gap:8px 18px;margin:0;font-size:16px}
dl.facts dt{font:500 11px/1.9 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--title)}
dl.facts dd{margin:0;color:var(--heading)}

/* team */
.person{display:flex;gap:20px;align-items:flex-start}
.person>div{min-width:0}
.avatar{flex:none;width:96px;height:96px;border-radius:50%;object-fit:cover;background:var(--accent-soft);border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line)}
div.avatar{display:grid;place-items:center;font:600 24px var(--f-display);color:var(--title)}
.role{font:500 12px/1.4 var(--f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--title);margin-block:4px 10px}
.person p{font-size:16px;color:var(--body)}
ul.creds{margin:8px 0 0;padding-left:18px;font-size:15.5px;color:var(--body);display:grid;gap:3px}
@media (max-width:480px){.person{flex-direction:column}}

/* news */
.news-item{display:grid;grid-template-columns:120px 1fr;gap:18px;padding-block:18px;border-top:1px solid var(--line)}
.news-item time{font:500 13px/1.6 var(--f-mono);color:var(--title)}
@media (max-width:560px){.news-item{grid-template-columns:1fr;gap:4px}}

/* contact */
form{display:grid;gap:14px}
label{display:grid;gap:6px;font:500 13px var(--f-display);color:var(--heading)}
input,select,textarea{font:400 16px var(--f-body);padding:11px 12px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--heading);width:100%}
textarea{min-height:120px;resize:vertical}
.kv{display:grid;gap:16px}
.kv>div{color:var(--heading);font-size:17px}
.kv .k{display:block;font:500 11px/1.6 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--title)}
.kv .who{font:600 20px/1.3 var(--f-display);color:var(--heading)}
.form-status{font-size:15px;margin:0}
.form-status.ok{color:var(--heading)}
.form-status.err{color:var(--ph)}

footer{position:relative;z-index:1;border-top:1px solid var(--line);background:var(--surface)}
footer .wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-block:20px;font-size:14px;color:var(--title)}
footer a{color:inherit}
.skip{position:absolute;left:-999px;top:8px;background:var(--accent);color:var(--accent-ink);padding:8px 12px;border-radius:6px;z-index:10}
.skip:focus{left:12px}
@media (prefers-reduced-motion:no-preference){section.page{animation:fade .35s ease}@keyframes fade{from{opacity:.4;transform:translateY(6px)}}}
