/* ── loader ──────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; flex-direction: column;
  transition: opacity .7s ease, transform .7s ease;
}
#loader.flash { background: #fff; }
#loader.exit  { opacity: 0; transform: scale(1.04); pointer-events: none; }

/* splash */
#loader-splash {
  display: none; position: absolute; inset: 0;
  background: #06040f;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 32px;
  opacity: 0; transition: opacity .4s ease;
  cursor: pointer; user-select: none;
}
#loader-splash.show { display: flex; opacity: 1; }
#loader-splash.hide { opacity: 0; }

.splash-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}
.splash-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 5rem; color: #f0ecff;
  line-height: 1;
}
.splash-logo span { color: #22d3ee; }
.splash-prompt {
  font-size: .82rem; color: #f97316;
  letter-spacing: .18em;
  animation: splashBlink 1.1s step-end infinite;
}
@keyframes splashBlink { 0%,100%{opacity:1;} 50%{opacity:0;} }
.splash-cursor {
  width: 8px; height: 8px; border-radius: 50%;
  background: #f97316;
  animation: splashPulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 14px #f97316;
}
@keyframes splashPulse {
  0%,100%{transform:scale(1); opacity:.6;}
  50%{transform:scale(1.5); opacity:1;}
}

/* terminal phase */
#loader-term {
  display: none; /* shown after splash */
  position: relative; flex: 1;
  overflow: hidden; padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(.58rem, 1vw, .78rem);
  line-height: 1.5;
  background: #000;
  flex-direction: column; justify-content: flex-end;
}
.loader-scanline {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,.18) 2px, rgba(0,0,0,.18) 4px
  );
}
#loader-lines { position: relative; z-index: 1; }
.tl {
  color: #f97316; white-space: pre-wrap; word-break: break-all;
  animation: tlIn .08s ease forwards;
  text-shadow: 0 0 5px rgba(249,115,22,.45);
}
@keyframes tlIn {
  from { opacity: 0; transform: translateX(-3px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* glitch phase */
#loader-glitch {
  display: none; position: absolute; inset: 0;
  background: #06040f;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; opacity: 0; transition: opacity .25s ease;
}
#loader-glitch.show { opacity: 1; }

#loader-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(5rem, 18vw, 13rem);
  letter-spacing: -.04em; line-height: 1;
  position: relative;
  background: linear-gradient(90deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: glitchBase .3s infinite;
}
#loader-name::before,
#loader-name::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#loader-name::before {
  animation: glitchTop .3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  left: 3px; top: -2px; filter: hue-rotate(180deg); opacity: .85;
}
#loader-name::after {
  animation: glitchBot .3s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  left: -3px; top: 2px; filter: hue-rotate(-180deg); opacity: .85;
}
@keyframes glitchBase {
  0%,100%{transform:translate(0);}
  20%{transform:translate(-2px,1px);}
  40%{transform:translate(2px,-1px);}
  60%{transform:translate(-1px,2px);}
  80%{transform:translate(1px,-1px);}
}
@keyframes glitchTop {
  0%,100%{transform:translate(0);}
  25%{transform:translate(-4px,0);}
  75%{transform:translate(4px,0);}
}
@keyframes glitchBot {
  0%,100%{transform:translate(0);}
  25%{transform:translate(4px,0);}
  75%{transform:translate(-4px,0);}
}
#loader-sub {
  font-size: .82rem; color: rgba(163,230,53,.7);
  letter-spacing: .14em; text-transform: lowercase;
  animation: subPulse .9s ease-in-out infinite;
}
@keyframes subPulse { 0%,100%{opacity:.4;} 50%{opacity:1;} }

/* ── tokens ──────────────────────────────────────── */
:root {
  --bg:        #06040f;
  --bg-1:      #0c0820;
  --bg-2:      #120f2a;
  --bg-3:      #1a1540;
  --border:    rgba(255,255,255,.07);
  --border-hi: rgba(255,255,255,.15);
  --text:      #f0ecff;
  --dim:       #8b7fbf;
  --faint:     #4a4070;
  --violet:    #7c3aed;
  --violet-lo: rgba(124,58,237,.18);
  --cyan:      #22d3ee;
  --cyan-lo:   rgba(34,211,238,.12);
  --lime:      #a3e635;
  --coral:     #f97316;
  --grad:      linear-gradient(135deg,#7c3aed,#22d3ee);
  --grad-text: linear-gradient(90deg,#a78bfa,#22d3ee);
  --grad-soft: linear-gradient(135deg,rgba(124,58,237,.15),rgba(34,211,238,.08));
  --radius:    14px;
  --radius-lg: 22px;
  --font-d:    'Space Grotesk', sans-serif;
  --font-b:    'Inter', sans-serif;
  --font-m:    'JetBrains Mono', monospace;
  --max:       1180px;
}

/* ── reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── utility ─────────────────────────────────────── */
.mono   { font-family: var(--font-m); }
.lime   { color: var(--lime); }
.dim    { color: var(--dim); }
.small  { font-size: .78rem; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── ambient bg ─────────────────────────────────── */
.bg-mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 900px 700px at 10% 5%,  rgba(124,58,237,.28), transparent 55%),
    radial-gradient(ellipse 700px 600px at 90% 20%, rgba(34,211,238,.18), transparent 55%),
    radial-gradient(ellipse 900px 800px at 50% 95%, rgba(124,58,237,.18), transparent 55%);
  animation: meshDrift 20s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-1.5%,2%) scale(1.04); }
}
.scanline {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px);
  opacity: .4;
}

/* ── nav ─────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px,5vw,60px);
  background: rgba(6,4,15,.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.logo { font-family: var(--font-d); font-weight: 700; font-size: 1.5rem; }
.logo-dot { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .9rem; color: var(--dim); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -5px; left: 0; right: 0; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav-resume {
  padding: 9px 20px; border-radius: 30px; background: var(--grad);
  color: #0a0118 !important; font-weight: 600; font-size: .85rem;
}
.dl-icon { font-size: .75rem; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.burger span { width: 22px; height: 2px; background: var(--text); transition: .3s; border-radius: 2px; }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width:860px) {
  .burger { display: flex; }
  .nav-links {
    position: fixed; top: 68px; inset-inline: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--bg-1); padding: 28px 24px; gap: 22px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%); transition: transform .35s ease;
    z-index: 190;
  }
  .nav-links.open { transform: translateY(0); }
}

/* ── hero ────────────────────────────────────────── */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px,5vw,60px) 80px;
}
.hero-grid {
  max-width: var(--max); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr auto;
  gap: 60px; align-items: center;
}
.hero-prompt {
  font-family: var(--font-m); font-size: .95rem;
  color: var(--lime); margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.ps1 { color: var(--cyan); }
.ps1-sep { color: var(--faint); margin: 0 3px; }
.cur { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-h1 {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(2.6rem,6vw,5rem);
  line-height: 1.06; letter-spacing: -.025em;
  margin-bottom: 24px;
}
.hero-sub { max-width: 480px; color: var(--dim); font-size: 1rem; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 30px;
  background: var(--grad); color: #06040f;
  font-weight: 600; font-size: .9rem;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(124,58,237,.4); }
.btn-primary.wide { width: 100%; justify-content: center; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 30px;
  border: 1px solid var(--border-hi); color: var(--text);
  font-weight: 500; font-size: .9rem;
  transition: background .2s, transform .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.06); transform: translateY(-2px); }

.hero-socials { display: flex; gap: 12px; }
.hero-socials a {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border-hi); background: var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--dim);
  transition: border-color .2s, color .2s, transform .2s;
}
.hero-socials a:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }

/* pfp */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.pfp-wrap { position: relative; width: 260px; }
.pfp-ring {
  position: absolute; inset: -12px; border-radius: 50%;
  background: var(--grad); opacity: .6;
  animation: ringPulse 4s ease-in-out infinite;
}
@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: .5; }
  50%      { transform: scale(1.04); opacity: .8; }
}
.pfp-img {
  position: relative; z-index: 1;
  width: 260px; height: 260px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--bg-2);
  filter: grayscale(20%);
}
.pfp-badge {
  position: absolute; bottom: 10px; right: -10px; z-index: 2;
  background: var(--bg-2); border: 1px solid var(--border-hi);
  padding: 6px 14px; border-radius: 20px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-m); font-size: .72rem; color: var(--lime);
}
.dot-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(163,230,53,.6); } 50% { box-shadow: 0 0 0 6px rgba(163,230,53,0); } }

.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%;
}
.stat-box {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; text-align: center;
  transition: border-color .25s;
}
.stat-box:hover { border-color: var(--border-hi); }
.stat-num { display: block; font-family: var(--font-d); font-weight: 700; font-size: 1.5rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: .72rem; color: var(--dim); }

/* marquee */
.marquee-wrap {
  max-width: var(--max); margin: 50px auto 0; width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 25s linear infinite; }
.marquee-track span {
  font-family: var(--font-m); font-size: .78rem; color: var(--dim);
  border: 1px solid var(--border); padding: 7px 16px; border-radius: 20px;
  white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.scroll-hint {
  display: flex; justify-content: center; margin-top: 50px;
}
.scroll-dot {
  width: 6px; height: 10px; border-radius: 3px; background: var(--cyan);
  animation: scrollBob 1.8s ease infinite;
  box-shadow: 0 0 12px var(--cyan);
}
@keyframes scrollBob { 0%,100% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: .2; } }

@media (max-width:900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .pfp-wrap { width: 180px; }
  .pfp-img { width: 180px; height: 180px; }
  .pfp-ring { inset: -10px; }
  .hero-h1 br { display: none; }
  .hero-sub { max-width: 100%; }
}

/* ── section base ────────────────────────────────── */
.section { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 110px 20px; }
.section-head { margin-bottom: 52px; }
.section-head h2 { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.9rem,4vw,2.8rem); }
.section-sub { color: var(--dim); margin-top: 10px; }
.eyebrow { font-family: var(--font-m); font-size: .82rem; color: var(--lime); margin-bottom: 12px; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* ── about bento ─────────────────────────────────── */
.about-bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.bento-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color .25s, transform .25s;
}
.bento-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }

/* intro — full width */
.b-intro {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 28px;
}
.bento-pfp {
  width: 90px; height: 90px; border-radius: 14px;
  object-fit: cover; border: 2px solid var(--border-hi); flex-shrink: 0;
  filter: grayscale(20%);
}
.bento-intro-text h3 { font-family: var(--font-d); font-size: 1.4rem; margin-bottom: 10px; }
.bento-intro-text p { color: var(--dim); font-size: .93rem; }
.about-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.about-tags span {
  font-family: var(--font-m); font-size: .72rem;
  border: 1px solid rgba(124,58,237,.4); color: var(--violet);
  padding: 4px 12px; border-radius: 20px; background: var(--violet-lo);
}
.bento-icon { font-size: 1.4rem; display: block; margin-bottom: 10px; }
.bento-card h4 { font-family: var(--font-d); font-size: 1rem; margin-bottom: 6px; }
.bento-card p { color: var(--dim); font-size: .88rem; }
.dim { color: var(--dim); }

.b-loc { display: flex; flex-direction: column; }

/* facebook card */
.b-fb { background: linear-gradient(135deg, rgba(24,119,242,.1), rgba(6,4,15,.2)); border-color: rgba(24,119,242,.25); }
.fb-link { display: flex; align-items: center; gap: 14px; }
.fb-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #1877f2; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 700; font-size: 1.2rem;
  flex-shrink: 0;
}
.fb-info { display: flex; flex-direction: column; }
.fb-name { display: block; font-weight: 600; font-size: .95rem; }
.fb-handle { display: block; font-size: .78rem; color: var(--dim); }
.fb-arrow { margin-left: auto; color: var(--dim); font-size: 1.1rem; transition: color .2s; }
.fb-link:hover .fb-arrow { color: #1877f2; }

.fb-followers {
  margin-top: 18px;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.fb-count {
  font-family: var(--font-d); font-weight: 700; font-size: 2rem;
  color: #fff; letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff, #60a5fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fb-count-label {
  font-size: .78rem; color: var(--dim); font-family: var(--font-m);
}
.fb-count-bar {
  width: 100%; height: 3px; background: rgba(24,119,242,.2);
  border-radius: 3px; overflow: hidden; margin-top: 8px; flex-basis: 100%;
}
.fb-count-fill {
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, #1877f2, #60a5fa);
  transition: width 2.2s cubic-bezier(.4,0,.2,1);
}

/* stats card */
.b-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; padding: 20px;
}
.bento-stat .num {
  font-family: var(--font-d); font-weight: 700; font-size: 2rem;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bento-stat .lbl { font-size: .73rem; color: var(--dim); }

@media (max-width:860px) {
  .about-bento { grid-template-columns: 1fr 1fr; }
  .b-intro { flex-direction: column; }
}
@media (max-width:560px) {
  .about-bento { grid-template-columns: 1fr; }
  .b-intro { grid-column: span 1; }
}

/* ── services ────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.service-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px 28px;
  position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: 0; transition: opacity .3s;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(124,58,237,.4); }
.service-card:hover::before { opacity: 1; }
.sc-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--grad); color: #06040f;
  font-size: .65rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: .05em; text-transform: uppercase;
}
.sc-glyph {
  font-size: 1.8rem; margin-bottom: 18px; color: var(--cyan);
  text-shadow: 0 0 20px rgba(34,211,238,.4);
}
.service-card h3 { font-family: var(--font-d); font-size: 1.2rem; margin-bottom: 12px; }
.service-card > p { color: var(--dim); font-size: .88rem; margin-bottom: 20px; line-height: 1.6; }
.sc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sc-list li {
  font-size: .83rem; color: var(--dim); padding-left: 16px; position: relative;
}
.sc-list li::before { content: '→'; position: absolute; left: 0; color: var(--lime); }
.sc-amp { color: var(--cyan); font-weight: 400; }
.sc-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 16px 0 12px;
}
.featured-svc { border-color: rgba(124,58,237,.3); background: linear-gradient(160deg,rgba(124,58,237,.12),var(--bg-1)); }

@media (max-width:860px) { .services-grid { grid-template-columns: 1fr; } }

/* ── skills ──────────────────────────────────────── */
.skills-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 20px;
}
.skill-tabs { display: flex; flex-direction: column; gap: 8px; }
.skill-tab {
  text-align: left; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px;
  color: var(--dim); font-weight: 500; font-size: .88rem;
  display: flex; align-items: center; gap: 12px;
  transition: border-color .2s, color .2s, background .2s;
}
.skill-tab .ti { font-family: var(--font-m); color: var(--cyan); font-size: .8rem; }
.skill-tab:hover { border-color: var(--border-hi); color: var(--text); }
.skill-tab.active { background: var(--grad-soft); border-color: rgba(124,58,237,.4); color: var(--text); }
.skill-panel {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  min-height: 260px;
}
.skill-panel-head {
  font-family: var(--font-m); color: var(--cyan); font-size: .88rem; margin-bottom: 24px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 30px;
  font-size: .85rem; transition: border-color .2s, transform .2s;
}
.skill-tag:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.skill-tag .dots { display: flex; gap: 3px; margin-left: 2px; }
.skill-tag .dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border-hi);
}
.skill-tag .dots span.on { background: var(--cyan); }

@media (max-width:760px) {
  .skills-layout { grid-template-columns: 1fr; }
  .skill-tabs { flex-direction: row; flex-wrap: wrap; }
}

/* ── projects ────────────────────────────────────── */
.filter-row { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
  background: var(--bg-1); border: 1px solid var(--border);
  color: var(--dim); padding: 9px 20px; border-radius: 24px;
  font-size: .85rem; font-weight: 500; transition: .2s;
}
.filter-btn:hover { border-color: var(--border-hi); color: var(--text); }
.filter-btn.active { background: var(--grad); color: #06040f; border-color: transparent; font-weight: 600; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px,1fr)); gap: 20px; }
.project-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s;
  position: relative;
}
.project-card.is-featured::after {
  content: 'featured';
  position: absolute; top: 56px; right: 16px;
  font-family: var(--font-m); font-size: .62rem; font-weight: 600;
  background: rgba(163,230,53,.15); color: var(--lime);
  border: 1px solid rgba(163,230,53,.3);
  padding: 2px 10px; border-radius: 20px; text-transform: uppercase;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(124,58,237,.35); }

/* project image/placeholder */
.card-img {
  width: 100%; height: 160px; overflow: hidden;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-m); font-size: .75rem; color: var(--faint);
  position: relative;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--faint);
}
.card-img-placeholder .ph-glyph { font-size: 1.8rem; color: var(--bg-3); }

/* traffic-light bar */
.card-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(0,0,0,.3); border-bottom: 1px solid var(--border);
  position: relative;
}
.card-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.card-dot.r { background: #ff5f56; }
.card-dot.y { background: #ffbd2e; }
.card-dot.g { background: #27c93f; }
.card-fname {
  margin-left: 8px; font-family: var(--font-m); font-size: .7rem; color: var(--faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-type {
  font-family: var(--font-m); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--lime);
}
.card-body h3 { font-family: var(--font-d); font-size: 1.1rem; }
.card-body p  { color: var(--dim); font-size: .85rem; flex: 1; }
.card-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tech span {
  font-family: var(--font-m); font-size: .68rem; color: var(--cyan);
  border: 1px solid var(--border); padding: 3px 10px; border-radius: 12px;
  background: var(--cyan-lo);
}
.card-links { display: flex; gap: 8px; }
.card-links a {
  flex: 1; text-align: center; padding: 9px;
  border-radius: 10px; border: 1px solid var(--border-hi);
  font-size: .82rem; font-weight: 500; transition: .2s;
}
.card-links a:hover { background: rgba(255,255,255,.06); }
.card-links a.cta { background: var(--grad); color: #06040f; border-color: transparent; font-weight: 600; }

/* ── certifications ──────────────────────────────── */
.cert-wrap { display: flex; align-items: center; gap: 16px; }
.cert-viewport { flex: 1; overflow: hidden; border-radius: var(--radius-lg); }
.cert-track { display: flex; transition: transform .5s ease; }
.cert-slide { min-width: 100%; }
.cert-slide img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); display: block; }
.cert-caption { font-size: .84rem; color: var(--dim); text-align: center; margin-top: 12px; font-family: var(--font-m); }
.cert-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-hi); background: var(--bg-1);
  color: var(--text); font-size: 1.4rem; flex-shrink: 0;
  transition: background .2s;
}
.cert-arrow:hover { background: rgba(255,255,255,.08); }
.cert-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.cert-dots span {
  width: 7px; height: 7px; border-radius: 4px; background: var(--border-hi);
  cursor: pointer; transition: .25s;
}
.cert-dots span.on { width: 22px; background: var(--cyan); }

.testimonial {
  max-width: 660px; margin: 64px auto 0;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 44px;
  text-align: center; position: relative;
}
.quote-mark {
  font-family: var(--font-d); font-size: 5rem; line-height: 1;
  color: var(--violet); opacity: .4; position: absolute; top: 10px; left: 30px;
}
.quote-text { font-family: var(--font-d); font-size: 1.15rem; line-height: 1.6; margin-bottom: 28px; }
.quote-by { display: flex; align-items: center; justify-content: center; gap: 14px; }
.quote-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: #06040f;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 700;
}
.quote-name { display: block; font-weight: 600; font-size: .95rem; }
.quote-role  { display: block; font-size: .8rem; color: var(--dim); }

/* ── interactive terminal ────────────────────────── */
#terminal { }
.terminal-window {
  background: #0d0a1e;
  border: 1px solid rgba(124,58,237,.35);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 0 60px rgba(124,58,237,.15);
  max-width: 860px; margin: 0 auto;
}
.tw-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,.4); border-bottom: 1px solid var(--border);
}
.tw-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.tw-dot.r { background: #ff5f56; }
.tw-dot.y { background: #ffbd2e; }
.tw-dot.g { background: #27c93f; }
.tw-title { margin-left: 10px; font-size: .78rem; color: var(--dim); }
.tw-body {
  padding: 20px 22px; min-height: 220px; max-height: 380px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
}
.tw-body::-webkit-scrollbar { width: 4px; }
.tw-body::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }
.term-line { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.term-line .ps { color: var(--violet); font-size: .82rem; white-space: nowrap; }
.term-out { padding-left: 0; }
.term-out p, .term-out span { font-family: var(--font-m); font-size: .82rem; line-height: 1.7; }
.term-out .key { color: var(--cyan); }
.term-out .val { color: var(--text); }
.term-out .li  { color: var(--lime); }
.term-out .err { color: #f87171; }
.tw-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-top: 1px solid var(--border);
  background: rgba(0,0,0,.2);
}
.tw-input-row .ps { color: var(--violet); font-size: .82rem; white-space: nowrap; }
.term-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--lime); font-size: .85rem; caret-color: var(--lime);
}
.term-input::placeholder { color: var(--faint); }

/* ── contact ─────────────────────────────────────── */
.contact-banner {
  text-align: center; margin-bottom: 64px;
  padding: 72px 20px 60px;
  background: var(--grad-soft);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: 28px;
}
.contact-banner .small { display: block; margin-bottom: 14px; }
.contact-banner h2 {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(2rem,5vw,3.2rem);
  line-height: 1.15;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
.contact-desc { color: var(--dim); font-size: .95rem; margin-bottom: 24px; line-height: 1.7; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.ccard {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: border-color .2s, transform .2s;
}
.ccard:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.ccard-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--grad); color: #06040f;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.ccard-label { font-size: .72rem; color: var(--dim); font-family: var(--font-m); display: block; }
.ccard-value { font-weight: 500; font-size: .9rem; }

.contact-form {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: flex; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.form-group label { display: block; }
.form-group input,
.form-group textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
  color: var(--text); font-family: var(--font-b); font-size: .9rem;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--violet); outline: none; }
.form-group textarea { resize: vertical; }

@media (max-width:760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
}

/* ── footer ─────────────────────────────────────── */
#footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 44px clamp(20px,5vw,60px) 32px;
}
.footer-top {
  max-width: var(--max); margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--dim);
  transition: border-color .2s, color .2s;
}
.footer-social a:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-nav {
  max-width: var(--max); margin: 0 auto;
  display: flex; gap: 26px; flex-wrap: wrap; justify-content: center;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.footer-nav a { font-size: .85rem; color: var(--dim); transition: color .2s; }
.footer-nav a:hover { color: var(--text); }