:root{
  --panel:#0a1420cc;
  --panel-strong:#0e223d;
  --panel-hover:#163457;
  --fg:#dbe7ff;
  --muted:#9bb2d6;
  --accent:#8cb3ff;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--fg);
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  background:#000; /* canvas paints the rest */
  overflow-x:hidden;
}
#sky{
  position:fixed;
  inset:0;
  width:100vw;height:100vh;
  display:block;
  z-index:-1;
  background:#020715;
}
h5 {
  color: var(--fg);
  padding-left: 1.0em;
  opacity: 0.5;
}
.wrap{
  max-width:920px;
  margin:40px auto 80px;
  padding:0 16px;
}
h1{
  text-align:center;
  font-weight:800;
  letter-spacing:.3px;
  margin:0 0 20px;
  text-shadow:0 2px 8px rgba(0,0,0,.6);
}

/* Panels */
.accordion{
  border-radius:16px;
  overflow:hidden;
  margin:14px 0;
  background:linear-gradient(180deg, #071527cc, #06101ecc);
  box-shadow:0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:saturate(120%) blur(4px);
}
.acc-head{
  font-size:1.2rem;
  width:100%;
  background:transparent;
  color:var(--fg);
  border:0;
  padding:16px 18px;
  display:flex;align-items:center;justify-content:space-between;
  cursor:pointer;
  font-weight:700;
  text-align:center;
  /* border-bottom:5px solid rgba(255,255,255,1); */
}
.acc-head:hover{
  background:var(--panel-hover);
}
.acc-head[aria-expanded="true"]{background:var(--panel-strong);}
.chev{transition:transform .18s ease}
.acc-head[aria-expanded="true"] .chev{transform:rotate(180deg);}

.acc-body{
  padding:6px 10px 14px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:8px;
}
/* Ensure hidden actually hides, regardless of our display rules */
.acc-body[hidden]{
  display: none !important;
}
/* Panel is height-animated; content scrolls inside during the tween */
.acc-body{
  overflow: hidden;
  transition: height .24s ease, opacity .24s ease;
  opacity: 0;
  height: 0;            /* collapsed state */
  display: grid;        /* keep your layout */
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 8px;
}

/* opened state (height set inline via JS), but we fade it in */
.acc-body.is-open{
  opacity: 1;
}

/* motion safety */
@media (prefers-reduced-motion: reduce){
  .acc-body{ transition: none; }
}
.proj{ transform: translateY(4px); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.acc-body.is-open .proj{ transform:none; opacity:1; }
.acc-body.is-open .proj:nth-child(n){ transition-delay: calc(10ms * var(--i, 0)); }

.proj{
  display:block;
  padding:10px 12px;
  /* font-size:2.0rem; */
  border-radius:12px;
  text-decoration:none;
  color:var(--fg);
  background:linear-gradient(180deg,#0b2242,#09203a);
  border:1px solid #0a2a52;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03), 0 3px 10px rgba(0,0,0,.25);
}
.proj:hover{background:linear-gradient(180deg,#12315e,#0e2d55); border-color:#113b73}
.foot{
  margin-top:26px;
  color:var(--muted);
  text-align:center;
  font-size:.95rem;
  opacity:.9;
}

/* Respect “Reduce Motion” */
@media (prefers-reduced-motion: reduce){
  #sky{display:none;} /* falls back to solid bg (#000) or add bg.jpg here */
  body{background:#020715 url('bg.jpg') center/cover no-repeat fixed;}
}
