:root{
  --bg:#fafafa; --fg:#1b1b1b; --muted:#6b7280; --brand:#0f766e; --brand-2:#115e59;
  --card:#ffffff; --border:#e5e7eb; --shadow:0 6px 24px rgba(0,0,0,.06);
  --radius:14px; --radius-sm:10px; --maxw:1100px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;color:var(--fg);background:var(--bg);font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,"Noto Sans"}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;border-radius:var(--radius-sm)}
.container{max-width:var(--maxw);margin-inline:auto;padding:24px}
header{position:sticky;top:0;background:rgba(250,250,250,.9);backdrop-filter:saturate(1.2) blur(6px);border-bottom:1px solid var(--border);z-index:10}
.nav{display:flex;gap:20px;align-items:center;justify-content:space-between}
.nav a{padding:10px 12px;border-radius:9px}
.nav a:hover{background:#f1f5f9;text-decoration:none}
.brand{display:flex;gap:12px;align-items:center;font-weight:700}
.brand-logo{height:70px;width:auto;border-radius:8px}

.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center;margin-top:24px}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}
h1{font-size:clamp(28px,3vw,40px);line-height:1.2;margin:0 0 6px}
h2{font-size:clamp(22px,2.2vw,28px);margin:0 0 8px}
h3{font-size:20px;margin:0 0 8px}
.muted{color:var(--muted)}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:10px}
.kpi{padding:12px;border:1px solid var(--border);border-radius:12px;text-align:center;background:#fff}

section{scroll-margin-top:72px;margin-top:34px}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:18px}
.col-6{grid-column:span 6}

.services-grid{grid-template-columns:1fr 1fr}

.about-split{display:grid;grid-template-columns:1fr 1.3fr;gap:20px}
.about-photo img{display:block;width:100%;height:auto}
.about-text p{margin-top:6px}

.list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.list li{display:flex;gap:10px}
.list li::before{content:"•";color:var(--brand);font-weight:700}

.tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.tab{border:1px solid var(--border);background:#fff;border-radius:999px;padding:8px 12px;cursor:pointer}
.tab[aria-selected="true"]{background:var(--brand);color:#fff;border-color:var(--brand-2)}

.skills-panels{margin-top:10px}
.skills-panel[hidden]{display:none}

.portfolio{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.work{border:1px solid var(--border);border-radius:12px;background:#fff;overflow:hidden}
.work img{display:block;width:100%;height:auto}
.work .meta{padding:10px 12px;border-top:1px solid var(--border);font-size:14px;color:var(--muted)}

footer{margin-top:40px;border-top:1px solid var(--border);padding:24px 0;color:var(--muted)}

/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.85);display:none;align-items:center;justify-content:center;z-index:100}
.lightbox[aria-hidden="false"]{display:flex}
.lightbox img{max-width:90vw;max-height:80vh;border-radius:12px;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.lightbox-close{position:absolute;top:18px;right:18px;font-size:32px;line-height:1;width:44px;height:44px;border-radius:999px;border:0;background:#fff;color:#111;cursor:pointer}
.lightbox-prev,.lightbox-next{position:absolute;top:50%;transform:translateY(-50%);font-size:38px;line-height:1;width:48px;height:48px;border-radius:999px;border:0;background:#fff;color:#111;cursor:pointer}
.lightbox-prev{left:18px}
.lightbox-next{right:18px}
.lightbox-cap{color:#fff;margin-top:10px;text-align:center;max-width:90vw}

@media (max-width:980px){
  .about-split{grid-template-columns:1fr}
}
@media (max-width:880px){
  .hero{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr 1fr}
  .portfolio{grid-template-columns:1fr 1fr}
  .services-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .nav{flex-wrap:wrap;gap:10px}
  .kpis{grid-template-columns:1fr}
  .portfolio{grid-template-columns:1fr}
}
