*{ box-sizing:border-box; margin:0; padding:0 }
body{
  background:#09090d;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:#e2e0da;
  overflow-x:hidden;
}
.bg-wire{
  position:fixed;inset:0;z-index:0;pointer-events:none;opacity:0.12;
  background-image:
    linear-gradient(rgba(16,185,129,0.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(99,102,241,0.04) 1px,transparent 1px);
  background-size:60px 60px;
}
.bg-wire::after{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse 600px 400px at 30% 20%,rgba(16,185,129,0.03),transparent),
             radial-gradient(ellipse 500px 400px at 80% 80%,rgba(99,102,241,0.03),transparent);
}
.page{ position:relative;z-index:1;max-width:1100px;margin:0 auto;padding:0 28px; }
.hero{
  display:flex;gap:30px;align-items:flex-start;padding:40px 0 20px;
  position:relative;
}
.hero-left{ display:flex;flex-direction:column;align-items:center;gap:6px;max-width:120px;flex-shrink:0; }
.hero-left .avatar{ width:100%;height:auto;display:block; }
.hero-left .hero-name{ text-align:center;font-size:14.1px;font-weight:800;letter-spacing:0.04em;line-height:1.2;text-transform:uppercase; }
.hero-left .hero-name .emerald{ color:#fff; }
.hero-left .hero-name .indigo{ color:#fff; }
.hero-left .hero-role{ text-align:center;font-size:10.1px;color:rgba(255,255,255,0.2);letter-spacing:0.12em;text-transform:uppercase;font-weight:500; }
.hero-center{ flex:1;display:flex;flex-direction:row;gap:20px; }
.hero-text{ flex:1;display:flex;flex-direction:column;gap:6px; }
.hero-text .tags{ display:flex;gap:6px;flex-wrap:wrap; }
.hero-text .tags span{ font-family:'JetBrains Mono',monospace;font-size:15px;padding:3px 8px;border:1px solid rgba(255,255,255,0.04);letter-spacing:0.02em; }
.hero-text .tags .tag-rig{ border-color:rgba(16,185,129,0.15);color:#10b981;background:rgba(16,185,129,0.04); }
.hero-text .tags .tag-code{ border-color:rgba(99,102,241,0.15);color:#818cf8;background:rgba(99,102,241,0.04); }
.hero-text .tags .tag-pipe{ border-color:rgba(255,255,255,0.04);color:rgba(255,255,255,0.35); }
.hero-text .bio{ font-size:15px;color:rgba(255,255,255,0.3);line-height:1.6;max-width:560px; }
.hero-right{ display:flex;flex-direction:column;gap:6px;flex-shrink:0;align-self:flex-start; }
.hero-right a{ width:30px;height:30px;border:1px solid rgba(255,255,255,0.04);display:flex;align-items:center;justify-content:center;transition:all 0.2s; }
.hero-right a:hover{ border-color:rgba(16,185,129,0.2); }
.hero-right img{ width:12px;height:12px;opacity:0.3; }
.hero-bg-wires{
  position:absolute;inset:0;z-index:-1;pointer-events:none;
  overflow:hidden;color:#10b981;opacity:0;
}
.hero-bg-wires .wire{
  position:absolute;opacity:0.1;
}
.tab-bar{
  display:flex;gap:2px;border-bottom:1px solid rgba(255,255,255,0.04);
  margin-bottom:24px;overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap;
}
.tab-bar::-webkit-scrollbar{ display:none; }
.tab-btn{
  flex-shrink:0;
  font-size:11.6px;font-weight:600;text-transform:uppercase;letter-spacing:0.08em;
  padding:10px 16px;cursor:pointer;color:rgba(255,255,255,0.15);
  background:transparent;border:none;border-bottom:2px solid transparent;
  transition:all 0.25s;font-family:'Inter',system-ui,sans-serif;
}
.tab-btn:hover{ color:rgba(255,255,255,0.5); }
.tab-btn.active{ color:#10b981;border-bottom-color:#10b981; }
.tab-content{ display:none;min-height:300px;position:relative; }
.tab-content.active{ display:block; }
.tab-loader{
  position:absolute;inset:0;z-index:80;
  background:#09090d;
  display:flex;align-items:center;justify-content:center;
  min-height:220px;
}
.tab-loader.hidden{opacity:0;pointer-events:none;transition:opacity .4s ease}
.tab-loader-inner{
  position:relative;width:100px;height:100px;
}
.tab-loader .tri-svg{
  position:absolute;inset:0;width:100%;height:100%;overflow:visible;
}
.tab-loader .tri-track{
  fill:none;stroke:rgba(255,255,255,0.08);stroke-width:2;stroke-linejoin:round;
}
.tab-loader .tri-run{
  fill:none;stroke:#10b981;stroke-width:2;stroke-linejoin:round;
  stroke-dasharray:100;stroke-dashoffset:100;
  animation:tridraw 1.8s linear infinite;
  filter:drop-shadow(0 0 4px rgba(16,185,129,0.7));
}
.tab-loader .loading-logo{
  width:100px;height:100px;display:block;position:relative;z-index:2;
}
@media(max-width:600px){
  .tab-loader-inner{width:86px;height:86px}
  .tab-loader .loading-logo{width:86px;height:86px}
}
.section-title{ display:flex;align-items:center;gap:12px;margin-bottom:20px; }
.section-title .dot{ width:6px;height:6px;border-radius:50%;flex-shrink:0; }
.section-title .dot.green{ background:#10b981; }
.section-title .dot.indigo{ background:#818cf8; }
.section-title .dot.white{ background:rgba(255,255,255,0.15); }
.section-title h2{ font-size:14.8px;font-weight:600;text-transform:uppercase;letter-spacing:0.06em;color:rgba(255,255,255,0.5); }
.section-title .count{ font-size:11.4px;color:rgba(255,255,255,0.1);font-weight:400; }
.carousel-container{ position:relative;width:100%;max-width:800px;margin:0 auto;aspect-ratio:16/10;overflow:hidden; }
.carousel-item{ position:absolute;inset:0;opacity:0;transition:opacity 0.8s ease;pointer-events:none; }
.carousel-item.active{ opacity:1;pointer-events:auto; }
.carousel-item img,.carousel-item video{ width:100%;height:100%;object-fit:cover;display:block; }
.video-wrapper{ position:relative;width:100%;max-width:800px;margin:0 auto;aspect-ratio:16/9;overflow:hidden; }
.video-wrapper iframe{ position:absolute;inset:0;width:100%;height:100%; }
.work-grid{ display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px; }
.work-card{
  display:block;text-decoration:none;color:inherit;
  background:rgba(255,255,255,0.005);border:1px solid rgba(255,255,255,0.02);
  padding:10px;transition:all 0.25s;cursor:pointer;position:relative;overflow:hidden;
}
.work-card::before{
  content:'';position:absolute;top:0;left:0;width:100%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(16,185,129,0.08),transparent);
  opacity:0;transition:opacity 0.3s;
}
.work-card:hover::before{ opacity:1; }
.work-card:hover{ background:rgba(255,255,255,0.01);border-color:rgba(255,255,255,0.04); }
.work-card .thumb{ width:100%;aspect-ratio:16/10;object-fit:cover;display:block;margin-bottom:8px; }
.work-card h3{ font-size:14.2px;font-weight:500;color:rgba(255,255,255,0.5);line-height:1.4;transition:color 0.2s; }
.work-card:hover h3{ color:rgba(255,255,255,0.85); }
.skills-panel{ display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.02); }
.skill-block{ padding:20px; }
.skill-block h4{ font-size:9.7px;text-transform:uppercase;letter-spacing:0.08em;color:#10b981;font-weight:600;margin-bottom:10px; }
.skill-block .items{ display:flex;flex-wrap:wrap;gap:6px; }
.skill-block .items span{ font-size:13.2px;color:rgba(255,255,255,0.2);font-weight:400;padding:2px 8px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.04); }
#video-modal{
  position:fixed;inset:0;background:rgba(0,0,0,0.85);
  display:flex;justify-content:center;align-items:center;
  z-index:9999;opacity:0;pointer-events:none;transition:opacity 0.3s ease;
}
#video-modal.active{ opacity:1;pointer-events:all; }
#video-modal video{ max-width:90%;max-height:90%;border-radius:12px;box-shadow:0 0 30px rgba(0,0,0,0.7); }
footer{ text-align:center;padding:20px 0 30px;border-top:1px solid rgba(255,255,255,0.02);margin-top:20px; }
footer span{ font-size:14.9px;color:rgba(255,255,255,0.08); }
.contact-wrap{ max-width:600px;margin:0 auto; }
.contact-form{ display:flex;flex-direction:column;gap:16px; }
.contact-row{ display:flex;gap:16px; }
.contact-row .field{ flex:1; }
.field{ display:flex;flex-direction:column;gap:4px; }
.field label{ font-size:10.6px;text-transform:uppercase;letter-spacing:0.08em;color:rgba(255,255,255,0.15);font-weight:600; }
.field input,.field textarea{ font-size:14.1px;
  background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.04);
  padding:10px 12px;font-family:'Inter',system-ui,sans-serif;font-size:0.8rem;
  color:#e2e0da;outline:none;transition:border-color 0.25s;border-radius:0;
}
.field input:focus,.field textarea:focus{ border-color:rgba(16,185,129,0.2); }
.field textarea{ resize:vertical;min-height:100px; }
.contact-form button{
  align-self:flex-start;
  font-family:'Inter',system-ui,sans-serif;font-size:11.4px;font-weight:600;
  text-transform:uppercase;letter-spacing:0.08em;
  padding:10px 28px;cursor:pointer;
  background:rgba(16,185,129,0.08);color:#10b981;
  border:1px solid rgba(16,185,129,0.15);
  transition:all 0.25s;
}
.contact-form button:hover{ background:rgba(16,185,129,0.15);border-color:rgba(16,185,129,0.3); }
.contact-alt{ display:flex;flex-direction:column;gap:6px;margin-top:24px;padding-top:20px;border-top:1px solid rgba(255,255,255,0.03); }
.contact-alt span{ font-size:12.3px;color:rgba(255,255,255,0.12); }
.contact-alt a{ font-size:12.3px;color:rgba(255,255,255,0.25);text-decoration:none;transition:color 0.2s; }
.contact-alt a:hover{ color:#10b981; }
@media(max-width:936px),(max-height:540px){
  .hero-left{ max-width:100px; }
  .hero-center{ flex-direction:column;gap:16px; }
  .hero-text{ width:100%; }
  .hero-text .bio{ max-width:100%;text-align:justify; }
  .hero-right{ flex-direction:row;justify-content:center;width:100%; }
  .skills-panel{ grid-template-columns:repeat(2,1fr); }
  .work-grid{ grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); }
  .page{ padding:0 16px; }
}
@media(max-height:540px) and (orientation:landscape){
  .hero{ position:relative; }
  .hero-left{ position:absolute;left:0;top:40px;z-index:2; }
  .hero-text{ padding-left:132px; }
}
@media(max-width:936px) and (orientation:portrait){
  .hero{ flex-wrap:wrap;gap:16px;justify-content:center; }
  .hero-center{ flex-basis:100%; }
}
@media(max-width:500px){
  .skills-panel{ grid-template-columns:repeat(2,1fr); }
  .work-grid{ grid-template-columns:repeat(3,1fr); }
  .tab-btn{ font-size:0.6rem;padding:8px 12px; }
}

.js-loading{ overflow:hidden; }
.loading-screen{
  display:flex;
  position:fixed;inset:0;z-index:99999;
  background:#000;
  justify-content:center;align-items:center;
}
.loading-mark{
  position:relative;width:100px;height:100px;
}
.loading-logo{
  width:100px;height:100px;display:block;
  position:relative;z-index:2;
}
.loading-mark .tri-svg{
  position:absolute;inset:0;width:100%;height:100%;overflow:visible;
}
.loading-mark .tri-track{
  fill:none;stroke:rgba(255,255,255,0.08);stroke-width:2;stroke-linejoin:round;
}
.loading-mark .tri-run{
  fill:none;stroke:#10b981;stroke-width:2;stroke-linejoin:round;
  stroke-dasharray:100;stroke-dashoffset:100;
  animation:tridraw 1.8s linear infinite;
  filter:drop-shadow(0 0 4px rgba(16,185,129,0.7));
}
@keyframes tridraw{
  0%{ stroke-dashoffset:100; }
  100%{ stroke-dashoffset:-100; }
}
.loading-screen.hidden{ opacity:0; pointer-events:none; transition:opacity 0.6s ease; }
