
:root{
  --bg: #07090d;
  --bg2:#0b1020;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --faint: rgba(255,255,255,.50);
  --line: rgba(255,255,255,.12);
  --accent: #78a6ff;
  --accent2:#9bffcf;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% 0%, #111b33 0%, var(--bg) 55%),
              radial-gradient(900px 600px at 100% 20%, #0a2a2a 0%, var(--bg) 55%);
  color: var(--text);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-decoration-color: rgba(255,255,255,.25); }

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

.site-header{
  position:sticky;
  top:0;
  z-index:10;
  background: rgba(7,9,13,.70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none !important;
}

.brand-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(120,166,255,.22), rgba(155,255,207,.12));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  font-weight:600;
  letter-spacing:.2px;
}

.brand-name{
  font-weight:600;
  letter-spacing:.2px;
}

.nav{
  display:flex;
  align-items:center;
  gap:16px;
  color: var(--muted);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(120,166,255,.20), rgba(155,255,207,.10));
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  text-decoration:none !important;
  font-weight:600;
}

.btn:hover{ filter: brightness(1.06); }
.btn-small{ padding:10px 14px; border-radius: 12px; }
.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,.18);
  box-shadow:none;
}

.hero{
  position:relative;
  overflow:hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
}

.hero-iframe{
  position:absolute;
  inset:-2%;
  width:104%;
  height:104%;
  border:0;
  filter: saturate(1.05) contrast(1.05);
  pointer-events:none;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(120,166,255,.18), transparent 55%),
    radial-gradient(900px 520px at 90% 10%, rgba(155,255,207,.12), transparent 55%),
    linear-gradient(180deg, rgba(7,9,13,.35), rgba(7,9,13,.85));
}

.hero-grain{
  position:absolute;
  inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:.35;
}

.hero-inner{
  position:relative;
  z-index:2;
  padding: 72px 0 64px;
}

.kicker{
  margin:0 0 14px;
  color: var(--muted);
  letter-spacing:.22em;
  text-transform:uppercase;
  font-size:12px;
}

h1{
  margin:0 0 12px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lead{
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 62ch;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 10px 0 26px;
}

.hero-cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top: 14px;
}

.mini-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: var(--shadow);
}

.mini-title{
  font-weight:600;
  margin-bottom:6px;
}

.mini-body{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.micro-note{
  margin: 18px 0 0;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}

.section{
  padding: 54px 0;
}

.section-muted{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom: 18px;
}

.section-head h2{
  margin:0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.section-head p{
  margin:0;
  color: var(--muted);
  max-width: 60ch;
}

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}

.panel{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel h3{
  margin:0 0 8px;
  font-size: 18px;
}

.panel p{
  margin:0 0 12px;
  color: var(--muted);
  line-height:1.55;
}

.bullets{
  margin:0;
  padding-left: 18px;
  color: var(--muted);
}

.projects-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}

.project-card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow);
  text-decoration:none !important;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.project-card:hover{
  transform: translateY(-2px);
  border-color: rgba(120,166,255,.35);
  background: rgba(255,255,255,.07);
}

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

.project-title{
  font-weight: 600;
}

.project-year{
  color: rgba(255,255,255,.55);
  font-size: 12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.project-desc{
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.project-meta{
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

.section-actions{
  margin-top: 18px;
}

.site-footer{
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: rgba(255,255,255,.62);
}

.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.footer-brand{
  font-weight:600;
  color: rgba(255,255,255,.82);
}

.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

@media (max-width: 900px){
  .hero-cards{ grid-template-columns: 1fr; }
  .projects-grid{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .section-head{ flex-direction: column; align-items:flex-start; }
}