:root{
  --paper:#f7f5ef; --ink:#1a1a1a; --muted:#6b6b6b;
  --green:#1f9e5a; --red:#d7263d; --screen:#0d1117; --screen-ink:#e6edf3;
  --serif:Georgia,'Iowan Old Style','Times New Roman',serif;
  --mono:'SF Mono','JetBrains Mono',Menlo,Consolas,monospace;
  --maxw:760px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--serif); font-size:19px; line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
p{margin:0 0 1.1rem;}
a{color:var(--green); text-decoration:underline; text-underline-offset:3px;}
a:hover{color:var(--ink);}
em{font-style:italic;} strong{font-weight:700;}
.section{max-width:var(--maxw); margin:0 auto; padding:0 20px;}
.hero{padding-top:56px;}
.divider{max-width:var(--maxw); margin:44px auto; padding:0 20px; text-align:center; color:var(--muted); letter-spacing:.5em;}

.nav{
  position:sticky; top:0; z-index:50; background:rgba(247,245,239,.9);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); border-bottom:1px solid #e4e0d5;
  display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center;
  justify-content:space-between; padding:12px 20px;
}
.nav__name{font-family:var(--mono); font-weight:700; text-decoration:none; color:var(--ink);}
.nav__links{display:flex; flex-wrap:wrap; gap:14px; font-family:var(--mono); font-size:14px;}
.nav__links a{color:var(--muted); text-decoration:none;}
.nav__links a:hover{color:var(--green);}

.hero{display:flex; gap:32px; align-items:flex-start; flex-wrap:wrap;}
.hero__photo-wrap{position:relative; flex:0 0 220px;}
.hero__photo{width:220px; aspect-ratio:4/5; object-fit:cover; border-radius:8px; display:block; box-shadow:0 8px 30px rgba(0,0,0,.15);}
.hero__shuffle{
  position:absolute; right:8px; bottom:8px; width:34px; height:34px; border-radius:50%;
  border:none; background:rgba(13,17,23,.8); color:var(--screen-ink);
  font-size:16px; cursor:pointer;
}
.hero__shuffle:hover{background:var(--green);}
.hero__intro{flex:1 1 320px;}
.hero__greeting{font-family:var(--mono); color:var(--muted); font-size:15px; font-weight:normal; margin:0 0 .4rem;}
.lede{font-size:23px; line-height:1.5;}
.count{font-family:var(--mono); color:var(--red); font-weight:700; cursor:pointer;}

.kicker{font-family:var(--mono); text-transform:uppercase; letter-spacing:.12em; font-size:14px; color:var(--green); margin:0 0 14px;}
.section__lead{color:var(--muted);}
.disclaimer{font-family:var(--mono); font-size:12px; color:var(--muted); display:block; margin-top:8px;}

.cta{
  display:inline-block; font-family:var(--mono); text-decoration:none;
  border:1.5px solid var(--red); color:var(--red); border-radius:6px;
  padding:10px 16px; transition:all .15s;
}
.cta:hover{background:var(--red); color:#fff;}
.cta--sm{padding:4px 10px; font-size:14px; border-width:1px;}

.news,.beyond,.contact__links{list-style:none; padding:0; margin:0;}
.news li{margin-bottom:8px;} .news time{font-family:var(--mono); color:var(--muted); font-size:14px;}
.beyond li{margin-bottom:8px;}
.pubs{list-style:none; padding:0;}
.pubs li{margin-bottom:22px;}
.pubs__year{font-family:var(--mono); color:var(--green); font-size:14px;}
.pubs__cite{margin:.2rem 0 .3rem;}
.pubs__links{font-family:var(--mono); font-size:14px;}
.contact__links{display:flex; gap:18px; flex-wrap:wrap; font-family:var(--mono);}
.fallback{font-family:var(--mono); font-size:14px; color:var(--muted); border:1px dashed #cfc9ba; padding:14px; border-radius:8px;}
.footer{max-width:var(--maxw); margin:60px auto 40px; padding:0 20px; font-family:var(--mono); font-size:13px; color:var(--muted); text-align:center;}

@media (max-width:600px){
  body{font-size:17px;}
  .hero{gap:20px;} .hero__photo,.hero__photo-wrap{width:150px; flex-basis:150px;}
  .lede{font-size:20px;}
}
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto;} }

.rig{display:flex; gap:24px; flex-wrap:wrap; align-items:stretch; margin-top:18px;}
.phone{flex:0 0 240px; background:#111; border-radius:28px; padding:12px; position:relative; box-shadow:0 12px 40px rgba(0,0,0,.28);}
.phone__notch{position:absolute; top:14px; left:50%; transform:translateX(-50%); width:70px; height:8px; background:#000; border-radius:6px;}
.phone__screen{background:var(--screen); color:var(--screen-ink); border-radius:18px; height:420px; overflow:hidden; position:relative; font-family:var(--mono); font-size:13px;}
.phone__screen::after{content:''; position:absolute; inset:0; pointer-events:none; background:repeating-linear-gradient(0deg,rgba(255,255,255,.03) 0 1px,transparent 1px 3px);}
.phone__idle{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:var(--green); gap:6px;}
.phone__idle span{color:var(--muted); font-size:11px;}

.term{flex:1 1 320px; background:#0b0e13; color:var(--screen-ink); border-radius:12px; overflow:hidden; display:flex; flex-direction:column; height:444px; font-family:var(--mono); font-size:13px;}
.term__bar{display:flex; align-items:center; gap:6px; padding:8px 12px; background:#11151c; border-bottom:1px solid #1c222c;}
.term__dot{width:10px; height:10px; border-radius:50%; background:#3a3f47;}
.term__title{margin-left:8px; color:var(--muted);}
.term__progress{margin-left:auto; color:var(--green);}
.term__out{flex:1; min-height:0; overflow-y:auto; padding:12px; white-space:pre-wrap; word-break:break-word;}
.term__line{margin:0 0 2px;}
.term__boot{color:var(--green);} .term__muted{color:#9aa4b2;} .term__err{color:var(--red);}
.term__inputline{display:flex; align-items:center; gap:8px; padding:8px 12px; border-top:1px solid #1c222c;}
.term__prompt{color:var(--green);}
.term__input{flex:1; background:transparent; border:none; color:var(--screen-ink); font-family:var(--mono); font-size:13px; outline:none;}
.term__buttons{display:flex; flex-wrap:wrap; gap:6px; padding:0 12px 12px;}
.chip{font-family:var(--mono); font-size:12px; background:#1a1f27; color:#cbd3de; border:1px solid #2a313c; border-radius:6px; padding:5px 9px; cursor:pointer;}
.chip:hover{border-color:var(--green); color:#fff;}
.chip--finale{border-color:var(--red); color:#ffb3bd;}
@media (max-width:600px){ .phone{flex-basis:100%;} .phone__screen{height:340px;} }

.fxagent{white-space:pre-wrap;} .fxagent__ok{color:var(--green);}
.fxagent__menu{margin-top:10px; display:flex; flex-wrap:wrap; gap:6px;}
.fxagent__ask{flex-basis:100%; color:#9aa4b2; margin-bottom:2px;}
.fxagent__res{flex-basis:100%; color:var(--green); font-size:11px;}

.fx{padding:12px; height:100%; overflow-y:auto;}
.fx__hd{color:var(--green); border-bottom:1px solid #1c222c; padding-bottom:6px; margin-bottom:8px; display:flex; justify-content:space-between;}
.fx__cap{color:#9aa4b2; margin-top:8px; font-size:11px;}
.fxrec{color:var(--red);}
.fxmap{position:relative; height:180px; border-radius:8px; background-color:#131a22;
  background-image:linear-gradient(0deg,transparent 39px,#1b232e 40px),linear-gradient(90deg,transparent 39px,#1b232e 40px);
  background-size:100% 40px,40px 100%;}
.fxmap__pin{position:absolute; top:50%; left:50%; color:var(--red); font-size:20px; text-shadow:0 0 10px var(--red);}
.fxrow{display:flex; justify-content:space-between; gap:8px; padding:6px 0; border-bottom:1px dashed #1c222c;}
.fxrow__k{color:#9aa4b2;} .fxrow__t{color:var(--muted); font-size:11px;}
.fxcam img,.fxleak img{width:100%; border-radius:8px; display:block;}
.fxcam{position:relative;} .fxcam__hud{position:absolute; bottom:6px; left:6px; background:rgba(0,0,0,.6); padding:2px 6px; border-radius:4px; font-size:10px;}
.fxleak{position:relative;} .fxleak__stamp{position:absolute; top:14px; left:-6px; background:var(--red); color:#fff; padding:3px 10px; transform:rotate(-8deg); font-weight:700; letter-spacing:.1em;}
.fxsms__to{color:#9aa4b2; margin-bottom:8px;}
.fxsms__bubble{background:#1f6feb; color:#fff; padding:8px 12px; border-radius:12px; display:inline-block; max-width:90%; min-height:18px;}
.fxsms__status{color:var(--green); font-size:11px; margin-top:6px;}
.fxcall{display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; gap:14px;}
.fxcall__to{font-size:16px;} .fxcall__decline{color:var(--red);}
.dots::after{content:''; animation:dots 1.2s steps(4,end) infinite;}
@keyframes dots{0%{content:'';}25%{content:'.';}50%{content:'..';}75%{content:'...';}}


.term__ok{color:var(--green);}
.perm{position:fixed; inset:0; z-index:100; background:rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; padding:20px;}
.perm__box{background:#fff; color:var(--ink); border-radius:16px; max-width:320px; width:100%; padding:22px; text-align:center; font-family:var(--serif); box-shadow:0 20px 60px rgba(0,0,0,.4);}
.perm__icon{font-size:34px;}
.perm__q{font-size:17px; margin:10px 0 2px;}
.perm__sub{font-family:var(--mono); font-size:12px; color:var(--muted); margin:0 0 16px;}
.perm__row{display:flex; gap:10px; justify-content:flex-end;}
.perm__btn{font-family:var(--mono); font-size:14px; padding:8px 16px; border-radius:8px; border:1px solid #ccc; background:#f2f2f2; color:var(--ink); cursor:pointer;}
.perm__btn--allow{background:var(--green); border-color:var(--green); color:#fff;}
.perm__btn:hover{filter:brightness(.95);}
@media (prefers-reduced-motion:no-preference){ .perm__box{animation:pop .16s ease-out;} @keyframes pop{from{transform:scale(.9);opacity:0;}to{transform:scale(1);opacity:1;}} }

.matrix{position:fixed; inset:0; z-index:200; pointer-events:none;}
.report{position:fixed; inset:0; z-index:210; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; padding:20px;}
.report__card{background:var(--screen); color:var(--screen-ink); font-family:var(--mono); border:1px solid var(--green); border-radius:12px; max-width:520px; width:100%; padding:22px; box-shadow:0 0 40px rgba(31,158,90,.4);}
.report__hd{color:var(--green); font-weight:700; letter-spacing:.08em;}
.report__target{color:var(--red); margin:4px 0 12px;}
.report__body{white-space:pre-wrap; font-size:13px; line-height:1.6; margin:0;}
.report__foot{margin-top:14px; color:var(--green);}
.report__close{margin-top:14px; font-family:var(--mono); background:transparent; color:#9aa4b2; border:1px solid #2a313c; border-radius:6px; padding:6px 12px; cursor:pointer;}
.report__close:hover{border-color:var(--green); color:#fff;}

.audience{max-width:var(--maxw); margin:16px auto -8px; padding:0 20px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-family:var(--mono); font-size:13px;}
.audience__label{color:var(--muted);}
.audience button{font-family:var(--mono); font-size:13px; background:transparent; border:1px solid #d9d3c5; border-radius:20px; padding:5px 12px; cursor:pointer; color:var(--muted);}
.audience button:hover{border-color:var(--green); color:var(--green);}
.audience button.is-on{background:var(--green); border-color:var(--green); color:#fff;}
/* Emphasis by audience: subtle ordering via a highlight ring on the most relevant section. */
body[data-audience="professor"] #publications,
body[data-audience="peer"] #hack,
body[data-audience="curious"] #beyond{ position:relative; }
body[data-audience="professor"] #publications::before,
body[data-audience="peer"] #hack::before,
body[data-audience="curious"] #beyond::before{
  content:'★ most relevant to you'; position:absolute; top:-22px; left:20px;
  font-family:var(--mono); font-size:11px; color:var(--green);
}

.dark{--paper:#0d1117; --ink:#e6edf3; --muted:#8b949e;}
.crt{animation:glitch .18s steps(2) 6;}
@keyframes glitch{0%{filter:none;}50%{filter:hue-rotate(60deg) contrast(1.3);}100%{filter:none;}}
.pwned{position:fixed; inset:0; z-index:220; display:flex; align-items:center; justify-content:center; font-family:var(--mono); font-size:28px; color:var(--red); background:rgba(0,0,0,.75); text-shadow:0 0 20px var(--red);}
@media (prefers-reduced-motion:reduce){ .crt{animation:none;} }
:focus-visible{outline:2px solid var(--green); outline-offset:2px;}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition:none !important;}
}

/* Photo lightbox: click a photo to view the full-size original */
.lightbox{position:fixed; inset:0; z-index:300; background:rgba(0,0,0,.9); display:flex; align-items:center; justify-content:center; padding:24px; cursor:zoom-out;}
.lightbox img{max-width:95vw; max-height:92vh; object-fit:contain; border-radius:6px; box-shadow:0 10px 50px rgba(0,0,0,.6);}
.lightbox__close{position:fixed; top:14px; right:18px; background:transparent; border:none; color:#fff; font-size:26px; cursor:pointer; font-family:var(--mono);}
