:root{
  --bg:#ffffff;
  --text:#0b0f19;
  --muted:#667085;
  --border:#e7e7ef;
  --panel:#f6f7fb;
  --shadow: 0 18px 50px rgba(16,24,40,.08);
  --shadow2: 0 8px 24px rgba(16,24,40,.08);
  --accent:#2563eb;
  --accent2:#111827;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

a{color:inherit}
.wrap{max-width:1120px;margin:0 auto;padding:28px 18px}

.topbar{
  position:sticky; top:0; z-index:20;
  background:rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(231,231,239,.75);
}
.topbar-inner{
  max-width:1120px;
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.2px;
}
.brand-mark{
  width:10px;height:10px;border-radius:999px;background:var(--accent);
  box-shadow:0 0 0 6px rgba(37,99,235,.12);
}

.nav{
  display:flex; gap:16px; align-items:center;
  color:var(--muted);
  font-size:.95rem;
}
.nav a{text-decoration:none}
.nav a:hover{color:var(--text)}
.admin-link{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(246,247,251,.75);
  color:var(--text);
  font-weight:700;
}
.admin-link:hover{background:#fff}

.hero{
  padding:42px 0 18px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:26px;
  align-items:start;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(246,247,251,.9);
  color:var(--muted);
  font-weight:600;
  width:fit-content;
}

h1{
  margin:14px 0 10px;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height:1.1;
  letter-spacing:-.02em;
}
.sub{
  margin:0 0 18px;
  color:var(--muted);
  max-width:55ch;
  font-size:1.05rem;
}

.cta{display:flex; gap:12px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  text-decoration:none;
  font-weight:800;
  border:1px solid var(--border);
  background:var(--accent2);
  color:#fff;
  box-shadow: var(--shadow2);
}
.btn:hover{filter:brightness(1.02)}
.btn.ghost{
  background:#fff;
  color:var(--text);
}

.hero-card{
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--panel);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-card-top{
  padding:14px 14px 0;
  display:flex; gap:8px;
}
.hero-card-top span{
  width:10px;height:10px;border-radius:999px;background:rgba(17,24,39,.18);
}
.hero-card-body{padding:14px}
.hero-card-title{margin:0;font-weight:900}
.hero-card-text{margin:6px 0 12px;color:var(--muted);font-size:.95rem}
.hero-card-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px;
}
.ph{
  height:92px;
  border-radius:14px;
  border:1px dashed rgba(17,24,39,.22);
  background:rgba(255,255,255,.65);
}

.section{padding:34px 0 0}
.section h2{
  margin:0 0 10px;
  font-size:1.4rem;
  letter-spacing:-.01em;
}
.section-sub{margin:0 0 16px;color:var(--muted)}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:16px;
}

.work-card{
  display:block;
  text-decoration:none;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 10px 30px rgba(16,24,40,.06);
  transition: transform .12s ease, box-shadow .12s ease;
}
.work-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(16,24,40,.10);
}
.work-img{
  width:100%;
  height:180px;
  background:linear-gradient(135deg, rgba(37,99,235,.10), rgba(17,24,39,.04));
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
}
.work-img img{width:100%;height:100%;object-fit:cover;display:block}
.work-body{padding:14px}
.work-body h3{margin:0 0 6px;font-size:1.05rem}
.work-body p{margin:0 0 10px;color:var(--muted);font-size:.95rem}
.meta{display:flex;gap:8px;flex-wrap:wrap}
.pill{
  font-size:.78rem;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  background:rgba(246,247,251,.8);
}

.note{margin-top:10px;color:var(--muted);font-size:.9rem}

.footer{
  padding:34px 0 20px;
  color:var(--muted);
  font-size:.95rem;
  border-top:1px solid rgba(231,231,239,.75);
  margin-top:40px;
}

@media (max-width: 900px){
  .hero{grid-template-columns:1fr}
}
