/* SimAxis design system — coordinate-axes motif, navy + gold + teal */
:root{
  --bg:#0b0f15; --bg2:#111722; --panel:#151c28; --line:#26303f;
  --text:#e9edf2; --muted:#9aa7b4; --gold:#F2C14E; --teal:#3bbfa4;
  --navy:#14213D; --maxw:980px;
}
*{box-sizing:border-box; margin:0; padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg); color:var(--text);
  font:16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--teal); text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px}
sup.tm{font-size:.55em; vertical-align:super; font-weight:500; color:var(--muted)}

/* header */
header{padding:24px 0; border-bottom:1px solid var(--line)}
.nav{display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap}
.mark{display:flex; align-items:center; gap:10px; font-weight:650; letter-spacing:.2px; color:var(--text); font-size:17px}
.mark svg{flex:none}
.navlinks{display:flex; gap:20px; font-size:15px; flex-wrap:wrap}
.navlinks a{color:var(--muted)}
.navlinks a:hover{color:var(--text); text-decoration:none}
.navlinks a.ext::after{content:" \2197"; color:var(--gold)}

/* hero with graph-paper motif */
.hero{
  position:relative; padding:76px 0 48px; overflow:hidden;
}
.hero::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(to right, rgba(154,167,180,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(154,167,180,.055) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:radial-gradient(ellipse 90% 100% at 30% 0%, #000 40%, transparent 78%);
  -webkit-mask-image:radial-gradient(ellipse 90% 100% at 30% 0%, #000 40%, transparent 78%);
}
.kicker{color:var(--gold); font-size:13.5px; letter-spacing:.14em; text-transform:uppercase; font-weight:650}
h1{font-size:clamp(32px,5.2vw,52px); line-height:1.13; margin:14px 0 18px; font-weight:700}
h1 .thin{color:var(--muted); font-weight:400}
.lede{font-size:clamp(17px,2.2vw,20px); color:var(--muted); max-width:660px}
.lede strong{color:var(--text); font-weight:600}
.ctas{display:flex; gap:14px; margin:32px 0 8px; flex-wrap:wrap}
.btn{display:inline-block; padding:12px 22px; border-radius:8px; font-weight:600; font-size:16px}
.btn-primary{background:var(--gold); color:#161c14}
.btn-primary:hover{background:#f7cf6d; text-decoration:none}
.btn-ghost{border:1px solid var(--line); color:var(--text)}
.btn-ghost:hover{border-color:var(--muted); text-decoration:none}
.btn-axis{background:#a5bdf8; color:#131a2e}
.btn-axis:hover{background:#b9ccfb; text-decoration:none}
.smallnote{font-size:14px; color:var(--muted); margin-top:10px}

/* sections */
section{padding:56px 0; border-top:1px solid var(--line)}
h2{font-size:26px; margin-bottom:10px}
h2 .tick{color:var(--gold)}
.sub{color:var(--muted); max-width:660px; margin-bottom:32px}
.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:18px}
.card{background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:20px 22px; position:relative}
.card::before{ /* small square motif in the corner */
  content:""; position:absolute; top:12px; right:14px; width:9px; height:9px;
  background:var(--gold); opacity:.5; border-radius:2px;
}
.card h3{font-size:16.5px; margin-bottom:6px}
.card p{font-size:15px; color:var(--muted)}
.card .tag{color:var(--gold); font-weight:600}
code{background:var(--bg2); border:1px solid var(--line); border-radius:5px; padding:1.5px 7px; font-size:14px; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; color:var(--gold)}

/* screenshots */
.shot{margin:40px 0 8px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--bg2)}
.shot img{display:block; width:100%; height:auto; cursor:zoom-in}
.shot-cap{font-size:13.5px; color:var(--muted); text-align:center; padding:10px 16px 22px}

/* quotes */
blockquote.quote{
  background:var(--panel); border:1px solid var(--line); border-left:3px solid var(--gold);
  border-radius:10px; padding:20px 24px; margin:0;
}
blockquote.quote p{color:var(--text); font-size:15.5px; font-style:italic}
blockquote.quote footer{color:var(--muted); font-size:14px; margin-top:10px; font-style:normal}
.quotegrid{display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:18px; align-items:start}

/* callout panel */
.panelbox{background:linear-gradient(180deg,var(--bg2),var(--bg)); border:1px solid var(--line); border-radius:12px; padding:32px 34px; margin-top:8px}
.panelbox p{color:var(--muted); max-width:680px}
.panelbox .big{font-size:20px; color:var(--text); font-weight:600; margin-bottom:10px}

/* principal / bio */
.bio{display:flex; gap:26px; align-items:flex-start; flex-wrap:wrap}
.bio .text{flex:1 1 420px}
.bio .text p{color:var(--muted); margin-bottom:14px}
.bio .text strong{color:var(--text)}

/* avatar */
.avatar-hero{display:flex; align-items:center; gap:28px; flex-wrap:wrap}
.avatar-hero img{width:140px; height:auto; border-radius:16px; border:1px solid var(--line)}

/* lightbox */
#lb{position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(8,10,14,.92); z-index:50; padding:24px; cursor:zoom-out}
#lb.open{display:flex}
#lb img{max-width:96vw; max-height:94vh; width:auto; height:auto; border-radius:8px; box-shadow:0 24px 80px rgba(0,0,0,.6)}
#lb .hint{position:absolute; bottom:14px; left:0; right:0; text-align:center; color:var(--muted); font-size:13px}

/* footer */
footer.site{border-top:1px solid var(--line); padding:34px 0 44px; font-size:14px; color:var(--muted)}
footer.site .wrap{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap}
footer.site a{color:var(--teal)}

/* role-card subtitles (agents page) */
.card h3 .rolesub{color:#b9c4cf;font-weight:600;font-size:14px;letter-spacing:.2px}

/* responsive video embed */
.video{position:relative;margin:36px 0 8px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--bg2);aspect-ratio:16/9}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* four-card sections: 2x2 on wide screens, single column on phones */
.grid-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:700px){.grid-2{grid-template-columns:1fr}}
