/* Z-Society — terminal design system (no third-party fonts) */
:root{
  color-scheme:dark;
  --bg:#0b0912;
  --panel:#12101a;
  --panel-2:#181522;
  --panel-3:#1e1a2b;
  --line:#2e2940;
  --line-strong:#423a5c;
  --text:#eef0f8;
  --muted:#a8a0bf;
  --dim:#726b8a;
  --accent:#8ea0ff;
  --accent-rgb:142,160,255;
  --accent-soft:rgba(142,160,255,.14);
  --accent-glow:rgba(142,160,255,.4);
  --green:#6ee7a8;
  --red:#ff6b7a;
  --yellow:#f5c76e;
  --mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  --sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --radius:8px;
  --header-h:56px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 1.5rem)}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:15px/1.65 var(--mono);
  -webkit-font-smoothing:antialiased;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.22;
  background-image:
    linear-gradient(rgba(142,160,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(142,160,255,.04) 1px,transparent 1px);
  background-size:40px 40px;
}
a{color:inherit;text-underline-offset:.2em}
a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
img{max-width:100%;height:auto;display:block}
.wrap{width:min(100% - 2rem,1080px);margin-inline:auto}
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.skip-link{
  position:absolute;left:1rem;top:-5rem;z-index:100;
  padding:.5rem .9rem;background:var(--accent);color:var(--bg);
  font-weight:600;text-decoration:none;border-radius:4px;
}
.skip-link:focus{top:1rem}

.site-header{
  position:sticky;top:0;z-index:50;height:var(--header-h);
  border-bottom:1px solid var(--line);
  background:rgba(11,9,18,.92);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.header-inner{
  height:100%;display:flex;align-items:center;
  justify-content:space-between;gap:1rem;
}
.wordmark{
  display:inline-flex;align-items:center;gap:.55rem;
  font:500 .82rem var(--mono);letter-spacing:.04em;
  text-decoration:none;color:var(--text);
}
.mark{
  display:inline-grid;place-items:center;width:26px;height:26px;
  background:var(--accent);color:var(--bg);
  font-weight:700;font-size:.72rem;border-radius:4px;
}
.wordmark-tail{color:var(--dim);font-size:.72rem}
.prompt-user{color:var(--accent);font-weight:500}
.prompt-host{color:var(--muted)}
nav{display:flex;align-items:center;flex-wrap:wrap;gap:.2rem 1.1rem}
nav a{
  color:var(--muted);font-size:.78rem;text-decoration:none;
  transition:color .15s ease;
}
nav a:hover{color:var(--accent)}

.term-window{
  background:var(--panel);
  border:1px solid var(--line-strong);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 12px 40px rgba(0,0,0,.4),0 0 0 1px rgba(142,160,255,.06);
}
.term-titlebar{
  display:flex;align-items:center;gap:.55rem;
  padding:.55rem .85rem;background:var(--panel-2);
  border-bottom:1px solid var(--line);
  font-size:.72rem;color:var(--dim);
}
.term-dots{display:flex;gap:.35rem}
.term-dots span{width:10px;height:10px;border-radius:50%}
.term-dots .r{background:var(--red)}
.term-dots .y{background:var(--yellow)}
.term-dots .g{background:var(--green)}
.term-title{flex:1;text-align:center;color:var(--muted);letter-spacing:.04em}
.term-body{padding:1rem 1.1rem;font-size:.84rem;line-height:1.7}
.term-body .prompt{color:var(--accent);margin-bottom:.35rem}
.term-body .out{color:var(--muted);margin:.25rem 0 .9rem}
.term-body .key{color:var(--dim)}
.term-body .contact-lines{line-height:1.9}

.button{
  display:inline-flex;align-items:center;gap:.5rem;
  min-height:42px;padding:.55rem 1.1rem;
  border:1px solid var(--line);
  font:600 .82rem var(--mono);
  text-decoration:none;border-radius:5px;
  transition:border-color .15s ease,background .15s ease,transform .15s ease;
}
.button:hover{border-color:var(--accent);transform:translateY(-1px)}
.button-primary{
  background:var(--accent);color:var(--bg);border-color:var(--accent);
}
.button-primary:hover{
  background:#a3b2ff;box-shadow:0 6px 20px var(--accent-glow);
}

.page-intro{padding:3.5rem 0 2.2rem}
.page-kicker{
  color:var(--accent);font-size:.78rem;letter-spacing:.05em;margin:0 0 .6rem;
}
.page-intro h1{
  margin:.4rem 0 .7rem;font-family:var(--sans);
  font-size:clamp(2.2rem,6vw,3.4rem);line-height:1.1;letter-spacing:-.04em;
}
.page-intro > .squad-hero-copy > p,
.squad-hero-copy > p{
  max-width:560px;color:var(--muted);font-size:.95rem;margin:0 0 1.1rem;
}
.accent{color:var(--accent)}
.muted{color:var(--muted)}
.inline-link{
  color:var(--accent);text-decoration:none;
}
.inline-link:hover{text-decoration:underline;text-underline-offset:.2em}
.muted-line{
  color:var(--muted);font-size:.84rem;margin:0 0 1rem;max-width:640px;
}
.records-intro{margin-top:-.4rem}

.stat-row{
  display:flex;flex-wrap:wrap;gap:.75rem;
  margin-top:.25rem;
}
.stat{
  min-width:88px;
  padding:.65rem .85rem;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.stat-value{
  display:block;
  font-family:var(--sans);
  font-size:1.15rem;
  font-weight:700;
  color:var(--accent);
  letter-spacing:-.02em;
}
.stat-label{
  display:block;
  margin-top:.15rem;
  font-size:.68rem;
  color:var(--dim);
  text-transform:uppercase;
  letter-spacing:.06em;
}

.squad-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:1.25rem 1.75rem;
  align-items:center;
}
.squad-hero-copy{min-width:0}
.squad-hero-logo{flex:0 0 auto;width:clamp(88px,22vw,220px)}
.squad-hero-logo img{
  width:100%;max-width:220px;max-height:220px;object-fit:contain;
  border-radius:6px;
}

.archive-panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:1.25rem;
  margin-bottom:1.5rem;
}
.archive-top{
  display:flex;justify-content:space-between;gap:1rem;
  padding-bottom:.9rem;border-bottom:1px solid var(--line);
  font-size:.75rem;color:var(--muted);
}
.archive-top span:last-child{color:var(--accent)}

.squad-feature{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:1.5rem;
  align-items:center;
  padding:1.6rem 0;
}
.squad-founder-photo{
  border:1px solid var(--line-strong);
  border-radius:4px;
  overflow:hidden;
  background:var(--panel-2);
}
.squad-founder-photo img{
  width:100%;max-height:220px;object-fit:cover;object-position:center top;
}
.squad-feature h2{
  margin:.35rem 0;font-family:var(--sans);
  font-size:clamp(1.35rem,3vw,2rem);line-height:1.25;letter-spacing:-.03em;
}
.squad-lead{color:var(--muted);margin:.4rem 0 0;font-size:.88rem}
.squad-lead.secondary{margin-top:.55rem}

.section-label{
  display:flex;align-items:center;gap:.6rem;
  font-size:.78rem;color:var(--muted);margin-bottom:.75rem;
}
.section-label .cmd{color:var(--accent)}
.section-label .path{color:var(--dim)}
.section-heading-inline{margin-bottom:.4rem}

.squad-members{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:.9rem;
  margin:1rem 0 1.4rem;
}
.squad-member{
  width:100%;max-width:320px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:1.1rem;
  box-shadow:0 4px 20px rgba(0,0,0,.18);
  transition:border-color .15s,transform .15s,box-shadow .15s;
}
.squad-member:hover{
  border-color:var(--line-strong);
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(0,0,0,.28);
}
.member-photo{
  aspect-ratio:4/3;overflow:hidden;
  border:1px solid var(--line-strong);
  border-radius:3px;margin-bottom:.9rem;
  background:var(--panel-2);
}
.member-photo img{
  width:100%;height:100%;object-fit:cover;object-position:center top;
}
.squad-member h3{
  margin:0 0 .25rem;font-family:var(--sans);font-size:1rem;
}
.squad-member p{margin:0;color:var(--muted);font-size:.84rem}
.member-university{
  display:block;margin-top:.35rem;color:var(--dim);font-size:.75rem;
}

.tag-list{
  display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.65rem;
}
.tag-list span{
  padding:.2rem .45rem;
  border:1px solid var(--line);
  border-radius:3px;
  font-size:.68rem;
  color:var(--muted);
  background:var(--panel-2);
}
.tag-list.compact{margin-top:.55rem}

.squad-values{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:.8rem;
  padding-top:.2rem;
}
.squad-values article{
  padding:.9rem;
  background:var(--accent-soft);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.squad-values article>span{color:var(--accent);font-size:.7rem}
.squad-values h3{
  margin:.5rem 0 .3rem;font-family:var(--sans);font-size:.95rem;
}
.squad-values p{margin:0;color:var(--muted);font-size:.82rem}

.squad-footnote{
  margin-top:1.1rem;padding-top:.85rem;
  border-top:1px solid var(--line);
  font-size:.72rem;color:var(--dim);
}
.squad-footnote.motto{
  text-align:center;
  letter-spacing:.08em;
  color:var(--accent);
  border-top:none;
  margin-top:1.6rem;
  padding-top:0;
}

.achievement-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:1rem;
}
.achievement-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 4px 20px rgba(0,0,0,.18);
  transition:border-color .15s,transform .15s,box-shadow .15s;
}
.achievement-card:hover{
  border-color:var(--line-strong);
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(0,0,0,.28);
}
.achievement-card.featured{
  border-color:rgba(142,160,255,.45);
  box-shadow:0 8px 28px rgba(142,160,255,.12);
}
.achievement-art{
  min-height:145px;padding:1rem;
  background:linear-gradient(160deg,var(--accent-soft),var(--panel-2));
  display:flex;flex-direction:column;justify-content:space-between;
}
.achievement-card.featured .achievement-art{
  background:linear-gradient(160deg,rgba(142,160,255,.22),var(--panel-2));
}
.achievement-art-code{color:var(--accent);font-size:.72rem}
.achievement-art-icon{font-size:1.6rem;color:var(--accent);opacity:.7}
.achievement-art-bottom{color:var(--muted);font-size:.72rem}
.achievement-copy{padding:1.1rem}
.achievement-copy h3{
  margin:.5rem 0 .35rem;font-family:var(--sans);font-size:1.05rem;
}
.achievement-copy p{color:var(--muted);font-size:.84rem;margin:0 0 .5rem}
.achievement-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;
  font-size:.7rem;color:var(--dim);margin-bottom:.4rem;
}
.pill{
  display:inline-block;
  padding:.12rem .4rem;
  border-radius:3px;
  background:var(--accent);
  color:var(--bg);
  font-size:.65rem;
  font-weight:600;
  letter-spacing:.04em;
}
.achievement-link{
  display:inline-block;margin-top:.35rem;
  color:var(--accent);font-size:.75rem;text-decoration:none;
}
.achievement-link:hover{
  text-decoration:underline;text-underline-offset:.2em;
}

.social-links{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.social-links a{
  display:inline-flex;align-items:center;justify-content:center;
  width:2.3rem;height:2.3rem;padding:0;
  border:1px solid var(--line);border-radius:50%;
  color:#eef0f8;text-decoration:none;
  transition:border-color .15s,color .15s,background .15s;
}
.social-links a:hover{
  color:var(--accent);border-color:var(--accent);background:var(--accent-soft);
}
.social-links a svg{
  display:block;width:1rem;height:1rem;fill:#eef0f8;color:#eef0f8;
}

.access-granted{
  font-family:var(--mono);font-size:.82rem;font-weight:500;
  color:var(--accent);letter-spacing:.03em;
  margin:1.35rem 0 .35rem;
  display:flex;align-items:center;line-height:1.2;
}
.access-granted .cursor{
  display:inline-block;width:.52em;height:1.05em;margin-left:.12em;
  background:var(--accent);border-radius:1px;flex-shrink:0;
  animation:blink-cursor 1.05s step-end infinite;
}
@keyframes blink-cursor{
  0%,100%{opacity:1}
  50%{opacity:0}
}

.back-link{
  display:inline-block;margin-top:2rem;
  color:var(--accent);font-size:.8rem;text-decoration:none;
}
.back-link:hover{opacity:.85}

footer{border-top:1px solid var(--line);margin-top:1.5rem}
.footer-inner{
  min-height:72px;display:flex;justify-content:space-between;
  align-items:center;gap:1rem;font-size:.78rem;color:var(--dim);
}
.footer-inner .wordmark{color:var(--text)}
.footer-inner a{color:var(--muted);text-decoration:none}
.footer-inner a:hover{color:var(--accent)}

.mt-section{margin-top:1.6rem}
.mt-section-small{margin-top:1.4rem}
.collaborator-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

::selection{background:rgba(142,160,255,.35);color:var(--text)}

@media(max-width:860px){
  .squad-feature{grid-template-columns:1fr}
  .squad-founder-photo{max-width:180px}
}
@media(max-width:640px){
  .wrap{width:min(100% - 1.5rem,1080px)}
  .header-inner{
    flex-direction:column;align-items:flex-start;
    height:auto;padding:.65rem 0;gap:.5rem;
  }
  .site-header{height:auto}
  nav{
    width:100%;gap:.3rem .9rem;overflow-x:auto;
    flex-wrap:nowrap;-webkit-overflow-scrolling:touch;
  }
  nav a{font-size:.74rem;flex:0 0 auto}
  .squad-hero{gap:.9rem 1rem}
  .squad-hero-logo{width:clamp(72px,26vw,120px)}
  .squad-hero-logo img{max-width:120px;max-height:120px}
  .page-intro{padding:2.5rem 0 1.6rem}
  .archive-panel{padding:.85rem}
  .squad-feature{gap:1rem;padding:1.2rem 0}
  .stat{min-width:72px;padding:.55rem .7rem}
  .stat-value{font-size:1rem}
  .collaborator-grid{grid-template-columns:minmax(0,1fr)}
  .achievement-grid{grid-template-columns:1fr}
  .footer-inner{
    flex-direction:column;align-items:flex-start;
    padding:1.2rem 0;gap:.5rem;
  }
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .access-granted .cursor{animation:none;opacity:1}
  *,*::before,*::after{
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
  }
}

/* 2026 refinement: clearer hierarchy, stronger focus states, and better small-screen flow */
:root{--content-width:1080px;--surface-shadow:0 18px 55px rgba(0,0,0,.28)}
body{
  background:
    radial-gradient(ellipse at 12% 4%,rgba(89,75,166,.14),transparent 34rem),
    radial-gradient(ellipse at 92% 30%,rgba(72,94,180,.09),transparent 30rem),
    var(--bg)
}
.wrap{width:min(100% - 2rem,var(--content-width))}
:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:3px}
section[id]{scroll-margin-top:calc(var(--header-h) + 1rem)}
.site-header{box-shadow:0 8px 30px rgba(0,0,0,.12)}
nav a{padding:.35rem 0;position:relative}
nav a::after{content:"";position:absolute;left:0;right:100%;bottom:.05rem;height:1px;background:var(--accent);transition:right .18s ease}
nav a:hover::after,nav a:focus-visible::after{right:0}
.access-granted{margin-top:1.7rem}
.squad-hero{position:relative;padding:3.8rem 1.5rem 2.7rem;margin:0 -1.5rem .5rem;border-bottom:1px solid rgba(142,160,255,.15)}
.squad-hero::before{content:"";position:absolute;inset:1.2rem 0;z-index:-1;background:linear-gradient(110deg,rgba(142,160,255,.07),transparent 68%);border:1px solid rgba(142,160,255,.09);border-radius:12px}
.squad-hero-logo img{filter:drop-shadow(0 12px 28px rgba(0,0,0,.4));transition:transform .25s ease,filter .25s ease}
.squad-hero-logo img:hover{transform:translateY(-3px) rotate(1deg);filter:drop-shadow(0 16px 32px rgba(142,160,255,.15))}
.hero-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.25rem}
.button-quiet{background:rgba(255,255,255,.025);color:var(--text)}
.button-quiet:hover{background:var(--accent-soft)}
.stat{min-width:92px;transition:border-color .18s ease,transform .18s ease}
.stat:hover{border-color:var(--line-strong);transform:translateY(-2px)}
.archive-panel{box-shadow:var(--surface-shadow);padding:clamp(1rem,2.5vw,1.5rem)}
.archive-top{align-items:center;letter-spacing:.045em}
.squad-feature{gap:clamp(1.25rem,3vw,2rem)}
.squad-founder-photo img{transition:transform .35s ease}
.squad-founder-photo:hover img{transform:scale(1.025)}
.squad-member,.achievement-card{height:100%}
.squad-member{max-width:none}
.squad-member h3{line-height:1.35}
.member-photo img{transition:transform .35s ease}
.squad-member:hover .member-photo img{transform:scale(1.035)}
.collaborator-grid{grid-template-columns:minmax(0,320px)}
.squad-values article{transition:transform .18s ease,border-color .18s ease}
.squad-values article:hover{transform:translateY(-3px);border-color:var(--line-strong)}
.achievement-card{display:flex;flex-direction:column}
.achievement-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start}
.achievement-copy p{flex:1}
.achievement-art{position:relative;isolation:isolate;overflow:hidden}
.achievement-art::after{content:"";position:absolute;width:150px;height:150px;right:-45px;bottom:-70px;border:1px solid rgba(142,160,255,.2);border-radius:50%;box-shadow:0 0 0 18px rgba(142,160,255,.025),0 0 0 38px rgba(142,160,255,.02);z-index:-1}
.achievement-link{padding:.2rem 0}
.social-links a{width:2.55rem;height:2.55rem}
.term-window{box-shadow:var(--surface-shadow),0 0 0 1px rgba(142,160,255,.06)}
.term-body{padding:clamp(1rem,2.5vw,1.4rem)}
.squad-footnote{line-height:1.8}
.error-page{padding:clamp(3rem,8vw,5.5rem) 0 4rem;min-height:70vh}
.error-title{font-family:var(--sans);font-size:clamp(2rem,5vw,3rem);letter-spacing:-.03em;line-height:1.15}
.error-copy{color:var(--muted);max-width:460px}
.error-action{margin-top:1.5rem}
.footer-inner{padding-block:.5rem}
.footer-inner a:focus-visible,.inline-link:focus-visible{outline-offset:4px}
@media(max-width:640px){
  .wrap{width:min(100% - 1.5rem,var(--content-width))}
  .squad-hero{padding:2.5rem .25rem 1.8rem;margin:0 0 .4rem}
  .squad-hero::before{inset:1rem -.25rem}
  .hero-actions{gap:.5rem}
  .hero-actions .button{flex:1 1 100%;justify-content:center}
  .archive-top{font-size:.65rem;flex-wrap:wrap}
  .squad-feature{grid-template-columns:minmax(0,1fr)}
  .squad-founder-photo{max-width:160px}
  .stat-row{gap:.5rem}
  .stat{flex:1 1 calc(50% - .5rem);min-width:0}
  .social-links{gap:.6rem}
}
@media(min-width:641px) and (max-width:860px){.squad-hero{padding-inline:.5rem;margin-inline:0}}
@media(prefers-reduced-motion:reduce){nav a::after{transition:none}}
@media print{
  :root{color-scheme:light;--bg:#fff;--panel:#fff;--panel-2:#f4f4f4;--text:#111;--muted:#333;--dim:#555;--line:#ccc;--line-strong:#999;--accent:#263d9a}
  body{background:#fff;color:#111;font-size:11pt}
  body::before,.site-header,.access-granted .cursor,.social-links,.back-link,footer{display:none!important}
  .wrap{width:100%}
  .archive-panel,.achievement-card,.squad-member,.term-window{box-shadow:none;break-inside:avoid}
  a{color:#111;text-decoration:underline}
}
