:root{
  --bg:#07111f;
  --panel:#0f172a;
  --panel-2:#111c33;
  --text:#e5eefb;
  --muted:#a7b4c7;
  --accent:#60a5fa;
  --accent-2:#22c55e;
  --border:rgba(255,255,255,.08);
  --shadow:0 22px 60px rgba(0,0,0,.28);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter,system-ui,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top, rgba(96,165,250,.15), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(34,197,94,.08), transparent 22%),
    linear-gradient(180deg,#06101d 0%, #07111f 100%);
  line-height:1.65;
}

a{
  color:var(--accent);
  text-decoration:none;
}
a:hover{text-decoration:underline}

.container{
  width:min(1140px, calc(100% - 40px));
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(7,17,31,.72);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
  gap:16px;
}

.brand{
  color:var(--text);
  font-weight:900;
  letter-spacing:.2px;
}

nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
}
nav a{
  margin-left:18px;
  color:var(--text);
  opacity:.9;
  font-weight:500;
}
nav a:hover{opacity:1}

.hero{
  padding:76px 0 34px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.55fr .95fr;
  gap:28px;
  align-items:center;
}

.eyebrow,.section-kicker{
  color:var(--accent-2);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.78rem;
  font-weight:800;
}

h1{
  margin:.35rem 0 1rem;
  font-size:clamp(2.5rem, 5vw, 4.8rem);
  line-height:1.02;
  letter-spacing:-.04em;
}

h2{
  margin:.2rem 0 0;
  font-size:clamp(1.6rem, 2.7vw, 2.4rem);
  line-height:1.15;
}

h3{
  margin:.2rem 0 .5rem;
  font-size:1.15rem;
}

.lead{
  font-size:1.08rem;
  color:var(--muted);
  max-width:66ch;
}

.section-note{
  color:var(--muted);
  margin-top:10px;
  max-width:72ch;
}

.cta-row,.social-row,.contact-links,.project-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

.inline-link{
  appearance:none;
  border:0;
  background:none;
  padding:0;
  margin:0;
  color:var(--accent);
  font:inherit;
  cursor:pointer;
}
.inline-link:hover{
  text-decoration:underline;
}

.social-row{
  margin-top:18px;
  gap:18px;
}

.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid var(--border);
  font-weight:700;
}

.btn.primary{
  background:linear-gradient(135deg, var(--accent), #7c3aed);
  color:white;
}
.btn.secondary{
  background:rgba(255,255,255,.03);
  color:var(--text);
}

.section{
  padding:58px 0;
}
.section.alt{
  background:rgba(255,255,255,.02);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.section-head{
  margin-bottom:20px;
  max-width:900px;
}

.card{
  background:linear-gradient(180deg, rgba(17,28,51,.92), rgba(15,23,42,.92));
  border:1px solid var(--border);
  border-radius:22px;
  padding:22px;
  box-shadow:var(--shadow);
}

.hero-card{
  text-align:center;
}

.avatar{
  width:88px;
  height:88px;
  border-radius:50%;
  margin:0 auto 16px;
  display:grid;
  place-items:center;
  font-size:1.35rem;
  font-weight:900;
  color:white;
  background:linear-gradient(135deg, var(--accent), #7c3aed);
  box-shadow:0 16px 30px rgba(96,165,250,.2);
}

.muted{color:var(--muted)}

.pill-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-top:18px;
}

.pill{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  font-size:.92rem;
}

.two-col{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:20px;
  align-items:center;
}

.quote p{
  font-size:1.1rem;
  margin:0;
}

.grid-2,.grid-3{
  display:grid;
  gap:18px;
}

.grid-2{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}
.grid-3{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.project ul,
.featured-list{
  margin:14px 0 16px;
  padding-left:18px;
  color:var(--muted);
}
.project li,
.featured-list li{
  margin-bottom:6px;
}

.tag{
  display:inline-block;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(96,165,250,.12);
  color:#cfe5ff;
  border:1px solid rgba(96,165,250,.25);
  font-size:.8rem;
  font-weight:700;
}
.tag.subtle{
  background:rgba(255,255,255,.05);
  color:var(--text);
}

.project-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:8px;
}

.case-panel{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transform:translateY(-10px);
  transition:max-height .55s ease, opacity .3s ease, transform .3s ease, margin-top .3s ease;
  margin-top:0;
}

.case-panel.is-open{
  max-height:4200px;
  opacity:1;
  transform:translateY(0);
  margin-top:22px;
}

.case-panel-shell{
  padding:28px;
  background:
    linear-gradient(180deg, rgba(18,34,61,.98), rgba(10,18,34,.96)),
    radial-gradient(circle at top left, rgba(96,165,250,.12), transparent 35%);
}

.case-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:22px;
}

.case-panel-close{
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 16px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

.case-panel-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
  margin-top:18px;
}

.case-panel-grid:first-of-type{
  margin-top:0;
}

.case-panel-wide{
  grid-column:1 / -1;
}

.case-panel-cta{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.compact-grid h4{
  margin-bottom:4px;
}

.compact-grid p{
  margin-top:0;
}

.contact{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
}

.footer{
  padding:26px 0 38px;
  color:var(--muted);
}

@media (max-width: 900px){
  .hero-grid,.two-col,.grid-2,.grid-3{
    grid-template-columns:1fr;
  }

  .case-panel-grid{
    grid-template-columns:1fr;
  }

  .case-panel-head{
    flex-direction:column;
  }

  nav a{
    margin-left:12px;
  }

  .contact{
    align-items:flex-start;
  }
}

.diagram-placeholder {
  margin: 20px 0;
  padding: 40px;
  border: 1px dashed rgba(255,255,255,.18);
  text-align: center;
  color: var(--muted);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}
