
:root{
  --hud:#f2f2f2;
  --muted:rgba(242,242,242,.70);
  --dim:rgba(242,242,242,.42);
  --line:rgba(242,242,242,.14);
  --panel:rgba(0,0,0,.28);
  --panel2:rgba(0,0,0,.18);
  --accent:#ffb000;
  --good:#2ef2a3;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--mono);
  color:var(--hud);
  overflow:hidden; /* no page scroll - content scroll only */
  background:#050607;
}

a{color:inherit;text-decoration:none}
button,input,textarea{font-family:inherit}

.app{
  height:100vh;
  width:100vw;
  display:grid;
  grid-template-rows: 104px 1fr;
  background:
    radial-gradient(1200px 800px at 70% 30%, rgba(0,0,0,.05), rgba(0,0,0,.45)),
    linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.35)),
    url("assets/bg.jpg");
  background-size:cover;
  background-position:center;
}

.app::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.30)),
    url("assets/grain.svg");
  opacity:.45;
  pointer-events:none;
}

.header{
  position:relative;
  z-index:2;
  padding:18px 22px 14px 22px;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:16px;
  background:linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.10));
  border-bottom:1px solid rgba(242,242,242,.10);
}

.brand .name{
  font-size:30px;
  letter-spacing:1.8px;
  font-weight:800;
  line-height:1;
}
.brand .sub{
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
  letter-spacing:2px;
}
.badge{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(0,0,0,.22);
  color:var(--muted);
  font-size:12px;
}
.pip{width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px rgba(255,176,0,.18)}
.code{color:var(--hud)}
.small{color:var(--dim)}

.center-controls{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn, .chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--muted);
  font-size:12px;
  cursor:pointer;
}
.btn:hover,.chip:hover{border-color:rgba(242,242,242,.24);color:var(--hud);background:rgba(0,0,0,.22)}
.chip .k{color:var(--accent); letter-spacing:1px}
.menu{position:relative}
.dropdown{
  position:absolute;
  top:44px;
  left:0;
  min-width:200px;
  background:rgba(0,0,0,.80);
  border:1px solid rgba(242,242,242,.14);
  border-radius:14px;
  padding:8px;
  display:none;
  backdrop-filter: blur(10px);
}
.dropdown a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 10px;
  border-radius:12px;
  color:rgba(242,242,242,.70);
}
.dropdown a:hover{background:rgba(255,255,255,.06); color:rgba(242,242,242,.95)}
.dropdown a.active{background:rgba(255,176,0,.12); border:1px solid rgba(255,176,0,.22); color:rgba(242,242,242,.95)}
.menu.open .dropdown{display:block}

.sys{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(0,0,0,.18);
}
.sys .col{
  font-size:12px;
  color:var(--muted);
  display:flex;
  flex-direction:column;
  gap:4px;
}
.battery{
  width:56px;height:16px;
  border:1px solid rgba(242,242,242,.30);
  border-radius:4px;
  position:relative;
}
.battery::after{
  content:"";
  position:absolute;
  right:-5px; top:4px;
  width:4px;height:8px;
  background:rgba(242,242,242,.30);
  border-radius:2px;
}
.battery .fill{
  position:absolute; inset:2px;
  width:92%;
  border-radius:2px;
  background:linear-gradient(90deg, rgba(46,242,163,.95), rgba(255,176,0,.95));
}

.main{
  position:relative;
  z-index:1;
  padding:18px 22px 22px 22px;
  overflow:auto; /* content scroll only */
}
.main::-webkit-scrollbar{height:10px;width:10px}
.main::-webkit-scrollbar-thumb{background:rgba(242,242,242,.14);border-radius:999px}
.main::-webkit-scrollbar-track{background:rgba(0,0,0,.22)}

.panel{
  border:1px solid rgba(242,242,242,.10);
  border-radius:18px;
  background:rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  padding:18px;
}

.pagehead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.pagehead h1{
  margin:0;
  font-size:16px;
  letter-spacing:2px;
}
.pagehead p{
  margin:8px 0 0 0;
  font-size:12px;
  color:var(--muted);
  line-height:1.55;
}
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.linkpill{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.16);
  color:rgba(242,242,242,.80);
}
.linkpill:hover{border-color:rgba(242,242,242,.24);background:rgba(0,0,0,.20)}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
@media(max-width:980px){ .grid3{grid-template-columns:1fr} }

.card{
  border:1px solid rgba(242,242,242,.10);
  border-radius:18px;
  background:rgba(0,0,0,.18);
  padding:14px;
}
.card .t{font-size:12px; letter-spacing:1.4px; color:rgba(242,242,242,.92)}
.card .m{margin-top:8px; font-size:12px; color:rgba(242,242,242,.66); line-height:1.55}

.tags{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px}
.tag{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(242,242,242,.12);
  background:rgba(0,0,0,.12);
  font-size:11px;
  color:rgba(242,242,242,.70);
}
.tag .a{color:var(--accent)}

hr.sep{
  border:none;
  height:1px;
  background:rgba(242,242,242,.10);
  margin:14px 0;
}

/* Projects: gantt */
.gantt-wrap{
  overflow:auto;
  border:1px solid rgba(242,242,242,.10);
  border-radius:18px;
  background:rgba(0,0,0,.14);
}
.gantt{
  min-width:980px;
  display:grid;
  grid-template-columns: 240px 1fr;
}
.gantt .colhead{
  padding:12px;
  border-bottom:1px solid rgba(242,242,242,.10);
  color:rgba(242,242,242,.60);
  font-size:12px;
  letter-spacing:1px;
}
.gantt .ticks{
  display:grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  border-bottom:1px solid rgba(242,242,242,.10);
}
.gantt .tick{
  padding:12px 10px;
  border-right:1px solid rgba(242,242,242,.06);
  font-size:11px;
  color:rgba(242,242,242,.52);
}
.gantt .name{
  padding:14px 12px;
  border-bottom:1px solid rgba(242,242,242,.08);
}
.gantt .name .n{color:rgba(242,242,242,.90);font-size:12px;letter-spacing:1px}
.gantt .name .meta{margin-top:6px;color:rgba(242,242,242,.55);font-size:11px}
.gantt .lane{
  position:relative;
  display:grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  min-height:62px;
  border-bottom:1px solid rgba(242,242,242,.08);
}
.gantt .lane .cell{border-right:1px solid rgba(242,242,242,.06)}
.bar{
  position:absolute;
  top:18px;
  height:26px;
  border-radius:999px;
  border:1px solid rgba(242,242,242,.16);
  padding:0 10px;
  display:flex; align-items:center;
  font-size:11px;
  color:rgba(242,242,242,.90);
  cursor:pointer;
  background:rgba(255,176,0,.14);
}
.bar.fx{background:rgba(46,242,163,.12);border-color:rgba(46,242,163,.22)}
.bar.cg{background:rgba(242,242,242,.10);border-color:rgba(242,242,242,.18)}
.drawer{
  display:none;
  margin-top:12px;
}
.drawer.open{display:block}
.drawer .box{
  border:1px solid rgba(242,242,242,.10);
  border-radius:18px;
  background:rgba(0,0,0,.18);
  padding:14px;
}
.kv{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
}
@media(max-width:980px){ .kv{grid-template-columns:1fr} }
.kv .k{
  border:1px solid rgba(242,242,242,.10);
  border-radius:16px;
  background:rgba(0,0,0,.12);
  padding:12px;
}
.k .l{font-size:11px;color:rgba(242,242,242,.45);letter-spacing:1.2px}
.k .v{margin-top:8px;font-size:12px;color:rgba(242,242,242,.88);line-height:1.55}

/* Team */
.roster{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media(max-width:980px){ .roster{grid-template-columns:1fr} }
.member{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:14px;
  align-items:start;
}
.avatar{
  width:120px;
  aspect-ratio: 4/5;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(242,242,242,.10);
  background:rgba(0,0,0,.12);
}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}

/* Contact form */
.formgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media(max-width:980px){ .formgrid{grid-template-columns:1fr} }
.input, .textarea{
  width:100%;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(242,242,242,.12);
  background:rgba(0,0,0,.12);
  color:rgba(242,242,242,.90);
  outline:none;
}
.textarea{min-height:130px; resize:vertical}
.primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,176,0,.26);
  background:rgba(255,176,0,.14);
  color:rgba(242,242,242,.92);
  cursor:pointer;
}
.primary:hover{background:rgba(255,176,0,.18);border-color:rgba(255,176,0,.35)}


/* Footer overlay */
.footer{
  position:relative;
  margin-top:40px;
  padding:40px 0 10px 0;
  border-top:1px solid rgba(242,242,242,.15);
  color:rgba(242,242,242,.85);
}
.footer-inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:40px;
}
.footer h2{
  font-size:48px;
  letter-spacing:2px;
  margin:0 0 10px 0;
}
.footer .email{
  font-size:28px;
  color:rgba(242,242,242,.9);
}
.footer-right{
  font-size:14px;
  color:rgba(242,242,242,.65);
}
.footer small{
  color:rgba(242,242,242,.5);
}

/* Better home hero */
.hero{
  padding:30px 0 40px 0;
}
.hero h1{
  font-size:64px;
  line-height:1.05;
  letter-spacing:2px;
  margin:0 0 20px 0;
}
.hero .contact{
  font-size:28px;
  margin-bottom:30px;
}


/* LAB vFinal */
.lab-shell{display:grid;grid-template-columns:1fr;gap:14px}
.lab-intro{
  border:1px solid rgba(242,242,242,.10);
  border-radius:22px;
  background:linear-gradient(to bottom, rgba(255,176,0,.08), rgba(255,176,0,0)), rgba(0,0,0,.18);
  padding:18px;
}
.lab-intro h2{margin:0;font-size:26px;letter-spacing:1.6px}
.lab-intro p{margin:10px 0 0 0;max-width:920px;line-height:1.7;color:rgba(242,242,242,.72);font-size:12px}
.lab-strip{margin-top:14px;display:grid;grid-template-columns:repeat(14,1fr);gap:8px}
.lab-strip span{height:24px;border-radius:999px;border:1px solid rgba(242,242,242,.10);background:rgba(0,0,0,.14)}
.lab-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.lab-card{
  border:1px solid rgba(242,242,242,.10);
  border-radius:22px;
  background:rgba(0,0,0,.18);
  backdrop-filter:blur(10px);
  padding:16px;
  min-width:0;
}
.lab-card.wide{grid-column:1 / span 2}
.lab-card .head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.lab-card .title{font-size:12px;letter-spacing:1.4px;color:rgba(242,242,242,.94)}
.lab-card .status{
  font-size:11px;color:rgba(255,176,0,.92);
  border:1px solid rgba(255,176,0,.20);
  background:rgba(255,176,0,.10);
  padding:6px 10px;border-radius:999px;white-space:nowrap;
}
.lab-card p{margin:10px 0 14px 0;color:rgba(242,242,242,.70);font-size:12px;line-height:1.65}
.lab-card img{width:100%;display:block;border-radius:18px;border:1px solid rgba(242,242,242,.10)}
.lab-kicker{font-size:11px;letter-spacing:1.6px;color:rgba(242,242,242,.48);margin-bottom:10px}
.lab-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tool{
  border:1px solid rgba(242,242,242,.10);
  border-radius:16px;background:rgba(0,0,0,.12);padding:12px;
}
.tool .n{font-size:12px;color:rgba(242,242,242,.92);letter-spacing:1.2px}
.tool .d{margin-top:8px;font-size:12px;line-height:1.55;color:rgba(242,242,242,.66)}
@media(max-width:1080px){
  .lab-grid{grid-template-columns:1fr}
  .lab-card.wide{grid-column:auto}
  .lab-tool-grid{grid-template-columns:1fr}
}

/* LAB 2-module override */
.lab-grid{grid-template-columns:1fr 1fr !important;}
@media(max-width:1080px){.lab-grid{grid-template-columns:1fr !important;}}
