
:root{
  --bg:#050c12;
  --panel:#07131d;
  --panel2:#0c1a26;
  --line:#263b4d;
  --cream:#f4ead4;
  --muted:#c8d3db;
  --blue:#7fc7ef;
  --green:#8ed37d;
  --green2:#5fa35a;
  --gold:#d8c7a0;
  --amber:#d59a45;
  --red:#c45a4a;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--cream);font-family:Arial,Helvetica,sans-serif}
body{line-height:1.45}
a{color:inherit;text-decoration:none}
.wrap{max-width:1240px;margin:0 auto;padding:0 32px}

.site-header{
  height:92px;
  background:rgba(2,8,14,.96);
  border-bottom:1px solid rgba(127,199,239,.16);
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(8px);
}
.nav{
  height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.brand{display:flex;align-items:center;gap:16px}
.mark{
  width:54px;height:54px;
  border:1px solid #386380;
  display:grid;place-items:center;
  font:34px Georgia,serif;
  color:var(--gold);
  background:#071420;
}
.brand-title{
  font-size:25px;
  font-weight:900;
  letter-spacing:.055em;
  color:#f4ead4;
}
.brand-subtitle{
  font-size:12px;
  letter-spacing:.22em;
  color:var(--blue);
  text-transform:uppercase;
}
nav{
  display:flex;
  gap:28px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:14px;
  color:#d8d0bd;
}
nav a{padding:32px 0 24px;border-bottom:2px solid transparent}
nav a:hover,nav a.active{color:#fff;border-bottom-color:var(--blue)}
.beta{
  border:1px solid #6cb765;
  color:var(--green);
  padding:8px 20px;
  border-radius:6px;
  font-size:16px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

/* HOME */
.home-screen{
  height:100vh;
  min-height:0;
  overflow:hidden;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  background:#02070d;
}
.home-image{
  position:relative;
  /* container matches home.png's native 1.5 aspect so `contain` fills it edge-to-edge
     and the absolutely-positioned hotspots below map directly to image coordinates */
  width:min(100vw, calc(100vh * 1.5));
  height:min(100vh, calc(100vw / 1.5));
  background:url("../images/home.png") center center / contain no-repeat;
}
/* hotspots are positioned RELATIVE TO .home-image (not the viewport) so they track the
   artwork under any letterboxing. Percentages = pixel-position / 1536 (x) or / 1024 (y). */
.hotspot{position:absolute;z-index:5;display:block}
.hotspot:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:6px}
/* top nav row (baked into the artwork) */
.hot-home{left:33.8%;top:2.6%;width:5.7%;height:5.2%}
.hot-services-nav{left:41.8%;top:2.6%;width:7.7%;height:5.2%}
.hot-research-nav{left:49.8%;top:2.6%;width:11.7%;height:5.2%}
.hot-about-nav{left:62.0%;top:2.6%;width:7.0%;height:5.2%}
.hot-contact-nav{left:69.5%;top:2.6%;width:8.0%;height:5.2%}
/* hero call-to-action buttons */
.hot-services-btn{left:4.7%;top:55.5%;width:14.5%;height:6.5%}
.hot-research-btn{left:20.3%;top:55.5%;width:11.7%;height:6.5%}

.page-hero{
  min-height:376px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.page-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:center / cover no-repeat;
  opacity:.75;
}
.page-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(5,12,18,.96),rgba(5,12,18,.8) 45%,rgba(5,12,18,.24));
}
.hero-active::before{background-image:url("../images/lab_active.png")}
.hero-results::before{background-image:url("../images/lab_results.png")}
.hero-roadmap::before{background-image:url("../images/lab_roadmap.png")}
.hero-content{position:relative;z-index:2;max-width:860px;padding:54px 0}
.eyebrow{
  color:var(--blue);
  letter-spacing:.3em;
  text-transform:uppercase;
  font-size:13px;
  margin-bottom:14px;
}
h1{
  margin:0 0 18px;
  font-size:clamp(31px,4vw,50px);
  line-height:1.04;
  text-transform:uppercase;
  letter-spacing:-.02em;
}
h2{
  margin:0 0 16px;
  font-size:clamp(25px,3.3vw,40px);
  line-height:1.1;
}
h3{margin:0 0 10px}
p{color:var(--muted);font-size:16px;line-height:1.55}
.lead{font-size:18px;max-width:820px;color:#d6e2e9}
.section{padding:64px 0}
.dark{background:#08131d;border-top:1px solid rgba(255,255,255,.12);border-bottom:1px solid rgba(255,255,255,.12)}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.card{
  background:rgba(12,26,38,.96);
  border:1px solid rgba(127,199,239,.18);
  border-radius:16px;
  padding:22px;
}
.card h3{font-size:20px;color:var(--cream)}
.card p,.card li{font-size:15px;color:#b9c8d2;line-height:1.5}
/* clickable cards: lift + highlight so available paths read as links */
a.card{display:block;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}
a.card:hover{border-color:var(--blue);transform:translateY(-3px);box-shadow:0 16px 40px rgba(0,0,0,.28)}
.card-cta{display:inline-block;margin-top:14px;color:var(--blue);font-size:14px;font-weight:bold;letter-spacing:.02em}
/* not-yet-published cards: visibly inert */
.card-soon{opacity:.55}
.card-soon-tag{display:inline-block;margin-top:14px;color:#9fb0bd;font-size:11px;text-transform:uppercase;letter-spacing:.1em;border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:4px 11px}
.btn-row{display:flex;gap:16px;flex-wrap:wrap;margin-top:28px}
.btn{
  display:inline-flex;
  align-items:center;
  gap:12px;
  border-radius:6px;
  padding:14px 22px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.btn-primary{background:linear-gradient(#71b96b,#5fa35a);color:#f7ffe9}
.btn-secondary{border:1px solid rgba(255,255,255,.62);background:rgba(0,0,0,.16);color:#fff}

.video-layout{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);
  gap:28px;
  align-items:start;
  max-width:1040px;
  margin:0 auto;
}
.video-shell{
  background:#02070d;
  border:1px solid rgba(127,199,239,.22);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(0,0,0,.32);
}
video{width:100%;display:block;background:#000}
.video-caption{
  padding:18px 20px;
  border-top:1px solid rgba(255,255,255,.12);
  color:#b9c8d2;
  font-size:15px;
}
.callouts{display:grid;gap:14px}
.callout{
  border-left:4px solid var(--blue);
  background:rgba(255,255,255,.035);
  padding:16px 18px;
  border-radius:10px;
}
.callout.green{border-color:var(--green)}
.callout.amber{border-color:var(--amber)}
.callout.red{border-color:var(--red)}
.callout strong{display:block;color:#f4ead4;margin-bottom:4px}
.callout span{color:#b9c8d2;font-size:15px;line-height:1.5}

.signal-table{
  width:100%;
  border-collapse:collapse;
  background:#0b1721;
  border:1px solid rgba(127,199,239,.18);
  overflow:hidden;
  border-radius:14px;
}
.signal-table th,.signal-table td{
  border:1px solid rgba(127,199,239,.16);
  padding:16px;
  text-align:left;
  vertical-align:top;
}
.signal-table th{color:var(--gold);text-transform:uppercase;letter-spacing:.08em;font-size:13px}
.badge{
  display:inline-flex;
  padding:5px 9px;
  border-radius:99px;
  font-weight:800;
  font-size:13px;
}
.badge-both{background:rgba(142,211,125,.16);color:var(--green);border:1px solid rgba(142,211,125,.42)}
.badge-vector{background:rgba(127,199,239,.14);color:var(--blue);border:1px solid rgba(127,199,239,.4)}
.badge-bm25{background:rgba(213,154,69,.15);color:var(--amber);border:1px solid rgba(213,154,69,.42)}
.badge-red{background:rgba(196,90,74,.16);color:#ff9b8e;border:1px solid rgba(196,90,74,.42)}

.timeline{
  display:grid;
  gap:16px;
}
.phase{
  padding:20px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(127,199,239,.18);
  border-radius:14px;
}
.phase-label{
  color:var(--blue);
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:12px;
  margin-bottom:8px;
}
.phase h3{font-size:20px}
.phase p{font-size:15px;margin:0}

.lucy-preview{
  display:grid;
  grid-template-columns:1fr .8fr;
  gap:24px;
  align-items:center;
}
.lucy-preview img{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(127,199,239,.22);
  box-shadow:0 24px 70px rgba(0,0,0,.25);
}
footer{
  padding:30px 0;
  border-top:1px solid rgba(255,255,255,.15);
  text-align:center;
  color:#9fb0bd;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:13px;
}
/* In-page section nav ("On this page") */
.toc{padding:20px 0;border-bottom:1px solid rgba(255,255,255,.10);background:#08131d}
.toc .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.toc-label{color:var(--gold);text-transform:uppercase;letter-spacing:.08em;font-size:12px;margin-right:4px}
.toc a{display:inline-block;padding:7px 14px;border:1px solid rgba(127,199,239,.22);border-radius:999px;font-size:14px;color:#d6e2e9;background:rgba(12,26,38,.6)}
.toc a:hover{border-color:var(--blue);color:#fff}
/* inline code */
code{font-family:Consolas,"SFMono-Regular",monospace;font-size:.92em;background:rgba(127,199,239,.10);padding:1px 6px;border-radius:5px;color:#cfe3f1}

/* compact single-screen pages (services, about): trim vertical rhythm so the
   page fits one viewport without changing the shared/global spacing tokens */
.fit-page .page-hero{min-height:280px}
.fit-page .hero-content{padding:30px 0}
.fit-page .section{padding:34px 0}
.fit-page .card{padding:18px}
.fit-page .grid-2{gap:18px}

/* the home page paints its nav into the artwork and carries no text header on desktop;
   hide the (added) HTML header there, then reveal it on mobile (see media query) */
.home .site-header{display:none}

@media(max-width:980px){
  .site-header{height:auto}
  .nav{height:auto;padding:14px 0;flex-wrap:wrap;align-items:center}
  /* show the real 7-link nav on mobile as a wrapped row — replaces the old
     `nav{display:none}`, which left phones with no navigation at all */
  nav{display:flex;flex-wrap:wrap;order:3;width:100%;gap:10px 18px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(127,199,239,.16);font-size:13px}
  nav a{padding:4px 0}
  .beta{font-size:14px;padding:8px 12px}
  .home .site-header{display:block}
  .video-layout,.grid-2,.grid-3,.lucy-preview{grid-template-columns:1fr}
  .grid-4{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .grid-4{grid-template-columns:1fr}
  .wrap{padding:0 22px}.brand-title{font-size:19px}.brand-subtitle{font-size:10px}.mark{width:46px;height:46px;font-size:30px}
  h1{font-size:29px}.lead,p{font-size:16px}
  /* phone: the artwork becomes a plain hero — its painted nav is cropped and the
     hotspots no longer map, so disable them and rely on the HTML header above */
  .home-image{width:100vw;height:100vh;background-size:cover;background-position:center top}
  .hotspot{display:none}
}
