/* Lexideck Technologies - 2026 rebuild
   Dark, high-contrast, one accent, no gradients. */

:root{
  --bg:#0a0c0e;
  --panel:#111417;
  --panel-2:#161a1e;
  --line:#232a30;
  --line-soft:#1a2025;
  --text:#e9ecee;
  --muted:#9aa4ad;
  --accent:#666666;
  --link:#c3c9ce;
  --accent-ink:#0a0c0e;
  --measure:68ch;
  --wide:76rem;
  --r:10px;
}

*,*::before,*::after{box-sizing:border-box}

html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth }
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{animation:none!important;transition:none!important}
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  font-size:17.5px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

.mono{font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace}

a{color:var(--link);text-decoration:none;border-bottom:1px solid color-mix(in srgb, var(--link) 32%, transparent)}
a:hover{color:var(--accent-hi,var(--link));border-bottom-color:var(--link)}
a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}

img{max-width:100%;display:block}

/* ---------- layout ---------- */
.wrap{width:100%;max-width:var(--wide);margin:0 auto;padding:0 1.5rem}
.prose{max-width:var(--measure)}

/* ---------- header ---------- */
.site-head{
  position:sticky;top:0;z-index:50;
  background:rgba(10,12,14,.92);
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--line);
}
.head-inner{display:flex;align-items:center;gap:1.5rem;min-height:64px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.6rem;border:0;font-weight:600;letter-spacing:-.01em;color:var(--text)}
.brand img{height:26px;width:auto}
.brand:hover{border:0;color:var(--accent)}

.nav{display:flex;gap:.25rem;flex-wrap:wrap;margin-left:auto}
.nav a{
  border:0;color:var(--muted);
  padding:.4rem .7rem;border-radius:7px;
  font-size:.94rem;
}
.nav a:hover{color:var(--text);background:var(--panel-2)}
.nav a[aria-current="page"]{color:var(--accent);background:var(--panel-2)}

/* ---------- hero ---------- */
.hero{padding:5.5rem 0 3.5rem;border-bottom:1px solid var(--line-soft)}
.hero h1{
  font-size:clamp(2.2rem,5.5vw,3.4rem);
  line-height:1.12;letter-spacing:-.025em;
  margin:0 0 1.1rem;font-weight:650;
}
.hero p{font-size:1.15rem;color:var(--muted);margin:0;max-width:60ch}

.eyebrow{
  font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent);margin:0 0 1rem;font-weight:600;
}

/* ---------- sections ---------- */
section{padding:4rem 0;border-bottom:1px solid var(--line-soft)}
section:last-of-type{border-bottom:0}
h2{font-size:clamp(1.5rem,3vw,2rem);line-height:1.25;letter-spacing:-.02em;margin:0 0 1.25rem;font-weight:640}
h3{font-size:1.18rem;margin:2.25rem 0 .6rem;font-weight:620;letter-spacing:-.01em}
p{margin:0 0 1.1rem}
.lede{font-size:1.08rem;color:var(--muted)}

ul,ol{margin:0 0 1.1rem;padding-left:1.25rem}
li{margin:.35rem 0}
li::marker{color:var(--accent)}

/* ---------- cards ---------- */
.grid{display:grid;gap:1.25rem}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(340px,1fr))}

.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:1.6rem 1.5rem;
  display:flex;flex-direction:column;
}
.card h3{margin-top:0}
.card p:last-of-type{margin-bottom:0}
.card .card-link{margin-top:auto;padding-top:1.1rem;font-size:.95rem}

/* ---------- tier badge ---------- */
.tier{
  display:inline-block;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;
  font-weight:700;padding:.24rem .6rem;border-radius:999px;
  border:1px solid var(--line);color:var(--muted);background:var(--panel-2);
  margin-bottom:.9rem;
}
.tier-built{color:var(--accent);border-color:color-mix(in srgb, var(--accent) 45%, transparent)}
.tier-pub{color:#e8ebed;border-color:#39424a}

/* ---------- agents ---------- */
.agents{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(215px,1fr))}
.agent{
  background:var(--panel);border:1px solid var(--line);border-radius:var(--r);
  overflow:hidden;
}
.agent img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;background:var(--panel-2)}
.agent .body{padding:1.1rem 1.15rem}
.agent h3{margin:0 0 .1rem;font-size:1.05rem}
.agent .role{color:var(--accent);font-size:.85rem;margin:0 0 .6rem}
.agent p{font-size:.94rem;color:var(--muted);margin:0}

/* ---------- table ---------- */
.table-wrap{overflow-x:auto;margin:0 0 1.25rem}
table{border-collapse:collapse;width:100%;font-size:.96rem}
th,td{text-align:left;padding:.7rem .9rem;border-bottom:1px solid var(--line)}
th{color:var(--muted);font-weight:600;font-size:.82rem;letter-spacing:.06em;text-transform:uppercase}
tbody tr:last-child td{border-bottom:0}

/* ---------- tool list ---------- */
.tools{display:grid;gap:.6rem;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.tool{
  display:block;background:var(--panel);border:1px solid var(--line);
  border-radius:8px;padding:.85rem 1rem;color:var(--text);
}
.tool:hover{border-color:var(--accent);background:var(--panel-2)}
.tool .t-name{font-weight:600;font-size:.98rem}
.tool .t-desc{color:var(--muted);font-size:.87rem;margin-top:.1rem}

/* ---------- links list ---------- */
.linklist{list-style:none;padding:0;margin:0}
.linklist li{padding:.9rem 0;border-bottom:1px solid var(--line-soft);margin:0}
.linklist li:last-child{border-bottom:0}
.linklist .ll-name{font-weight:600}
.linklist .ll-desc{color:var(--muted);font-size:.95rem;display:block;margin-top:.15rem}

/* ---------- quote ---------- */
blockquote{
  margin:2rem 0;padding:1.1rem 1.4rem;
  border-left:2px solid var(--accent);
  background:var(--panel);border-radius:0 var(--r) var(--r) 0;
  color:var(--text);font-style:normal;
}
blockquote p{margin:0}

/* ---------- callout ---------- */
.note{
  border:1px solid var(--line);border-radius:var(--r);
  background:var(--panel);padding:1.2rem 1.35rem;margin:1.5rem 0;
}
.note p:last-child{margin-bottom:0}

/* ---------- footer ---------- */
.site-foot{border-top:1px solid var(--line);padding:2.5rem 0 3.5rem;color:var(--muted);font-size:.94rem}
.foot-nav{display:flex;gap:1.25rem;flex-wrap:wrap;margin-bottom:1rem}
.foot-nav a{color:var(--muted)}
.foot-nav a:hover{color:var(--accent)}

/* ---------- utility ---------- */
.stack-sm > * + *{margin-top:.5rem}
.muted{color:var(--muted)}
.small{font-size:.9rem}
hr{border:0;border-top:1px solid var(--line);margin:2.5rem 0}

@media (max-width:640px){
  body{font-size:17px}
  .hero{padding:3.5rem 0 2.5rem}
  section{padding:3rem 0}
  .head-inner{min-height:56px;padding:.5rem 0}
  .nav{margin-left:0;width:100%}
}


/* ---------- agent colour system ----------
   Base is gray. Colour begins at the agents section and carries through.
   blue writing/Lexi  white coding/Dexter  violet art/Maisie
   green research/Gus  pink maths/Anna  orange realizability/Titus */

.acc-blue   { --accent:#4d9fff; --link:#8fc4ff; }
.acc-white  { --accent:#ffffff; --link:#e6e9ec; }
.acc-violet { --accent:#a78bfa; --link:#c9b8fd; }
.acc-green  { --accent:#4ade80; --link:#8fe9b3; }
.acc-pink   { --accent:#f472b6; --link:#f9a8d1; }
.acc-orange { --accent:#fb923c; --link:#fdba74; }

section[class*="acc-"] > .wrap > h2::before,
section[class*="acc-"] > .wrap > .prose > h2::before{
  content:"";
  display:block;
  width:46px;
  height:3px;
  background:var(--accent);
  margin:0 0 1rem;
  border-radius:2px;
}
section[class*="acc-"] .eyebrow{color:var(--accent)}

/* ---------- agent grid ---------- */
.agent-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.15rem;
  margin:1.75rem 0 1.25rem;
  padding:0;
  list-style:none;
}
@media (max-width:820px){
  .agent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:520px){
  .agent-grid{grid-template-columns:1fr}
}
.agent-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-top:3px solid var(--ac,var(--accent));
  border-radius:var(--r);
  padding:1.05rem 1.1rem 1.15rem;
  margin:0;
}
.agent-card img{
  display:block;
  width:100%;
  max-width:260px;
  margin:0 auto .9rem;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:8px;
  background:var(--panel-2);
}
.agent-card .domain{
  font-size:.7rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ac,var(--accent));
  font-weight:700;
  display:block;
  margin-bottom:.3rem;
}
.agent-card .name{font-size:1.05rem;font-weight:640;letter-spacing:-.01em;display:block}
.agent-card .role{color:var(--ac,var(--accent));font-size:.94rem;margin-top:.1rem;display:block}
.agent-card p{color:var(--muted);font-size:.94rem;margin:.55rem 0 0}

.a-lexi   { --ac:#4d9fff }
.a-dexter { --ac:#ffffff }
.a-maisie { --ac:#a78bfa }
.a-gus    { --ac:#4ade80 }
.a-anna   { --ac:#f472b6 }
.a-titus  { --ac:#fb923c }

/* ---------- colour legend ---------- */
.legend{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem .9rem;
  padding:.9rem 1rem;
  margin:0 0 1.1rem;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--r);
  list-style:none;
  font-size:.86rem;
  color:var(--muted);
}
.legend li{display:flex;align-items:center;gap:.45rem;margin:0}
.legend .sw{width:11px;height:11px;border-radius:3px;background:var(--ac);flex:none;box-shadow:0 0 0 1px rgba(255,255,255,.12)}

/* ---------- embedded demos ---------- */
.demo-mount{margin:1.75rem 0 1rem}
.demo-frame{
  width:100%;
  min-height:560px;
  aspect-ratio:16/10;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:#000510;
  display:block;
  overflow:hidden;
}
.demo-note{font-size:.9rem;color:var(--muted);margin:.7rem 0 0}
@media (max-width:640px){ .demo-frame{min-height:420px;aspect-ratio:4/5} }


/* ---------- page-level accent ----------
   One accent per page, set on <body>. Sections inherit it; a section
   may still override with its own .acc-* class. */
body.page-blue   { --accent:#4d9fff; --link:#8fc4ff; }
body.page-white  { --accent:#ffffff; --link:#e6e9ec; }
body.page-violet { --accent:#a78bfa; --link:#c9b8fd; }
body.page-green  { --accent:#4ade80; --link:#8fe9b3; }
body.page-pink   { --accent:#f472b6; --link:#f9a8d1; }
body.page-orange { --accent:#fb923c; --link:#fdba74; }

/* the accent bar sits above any h2 in an accented section OR an accented page */
body[class*="page-"] section > .wrap > h2::before,
body[class*="page-"] section > .wrap > .prose > h2::before{
  content:"";display:block;width:46px;height:3px;
  background:var(--accent);margin:0 0 1rem;border-radius:2px;
}
body[class*="page-"] .hero h2::before{display:none}

/* ---------- alternating bands, for depth ---------- */
section.band{background:var(--panel);border-bottom:1px solid var(--line)}
section.band .card,section.band .tool,section.band blockquote,
section.band .note{background:var(--panel-2)}

/* ---------- figures ---------- */
figure.shot{
  margin:2rem 0;padding:0;
  display:grid;gap:1.5rem 2rem;
  grid-template-columns:minmax(0,320px) minmax(0,1fr);
  align-items:start;
}
figure.shot img{
  width:100%;height:auto;border-radius:var(--r);
  border:1px solid var(--line);background:var(--panel-2);
}
figure.shot figcaption{color:var(--muted);font-size:.95rem}
figure.shot figcaption p{margin:0 0 .8rem}
figure.shot figcaption p:last-child{margin-bottom:0}
figure.shot .credit{
  font-size:.82rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--accent);font-weight:600;margin:0 0 .5rem;
}
@media (max-width:760px){
  figure.shot{grid-template-columns:1fr}
}

/* full-width figure variant, for wide interface art */
figure.plate{margin:2rem 0;padding:0}
figure.plate img{
  width:100%;height:auto;border-radius:var(--r);
  border:1px solid var(--line);background:var(--panel-2);
}
figure.plate figcaption{color:var(--muted);font-size:.92rem;margin-top:.7rem}

/* ---------- badges ---------- */
.badges{display:flex;flex-wrap:wrap;gap:.4rem;margin:.55rem 0 0;padding:0;list-style:none}
.badge{
  display:inline-block;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;
  font-weight:700;padding:.2rem .5rem;border-radius:999px;
  border:1px solid var(--line);background:var(--panel-2);color:var(--muted);
}
.badge-a11y{
  color:#fb923c;
  border-color:color-mix(in srgb, #fb923c 45%, transparent);
}
.badge-local{
  color:var(--muted);
}

/* ---------- tool categories ---------- */
.cat{margin:0 0 1.1rem}
.cat h2{margin:0 0 .35rem}
.cat .cat-note{color:var(--muted);font-size:.95rem;margin:0}
section.cat-visual,section.cat-design{--accent:#a78bfa;--link:#c9b8fd}
.tool .t-name{display:block}
.tool .t-desc{display:block}

/* research instruments that exist but are not published yet */
.tool-off{opacity:.6;cursor:default}
.tool-off:hover{border-color:var(--line);background:var(--panel)}
.tool-off .t-off{
  display:block;margin-top:.35rem;font-size:.74rem;letter-spacing:.09em;
  text-transform:uppercase;font-weight:700;color:var(--muted);
}

/* ---------- hero epigraph ---------- */
.hero .epigraph{
  margin:1.4rem 0 0;
  padding-left:1rem;
  border-left:2px solid var(--line);
}
.hero .epigraph p{color:var(--muted);font-style:normal;margin:0;line-height:1.75}

/* ---------- taller demo box, for a demo whose content does not reflow ---------- */
.demo-frame.tall{
  aspect-ratio:auto;
  height:auto;
  min-height:820px;
}
@media (max-width:900px){ .demo-frame.tall{min-height:900px} }
@media (max-width:640px){ .demo-frame.tall{min-height:1180px;aspect-ratio:auto} }
