/* ---------- tokens ---------- */
:root {
  --bg: #020617;
  --bg-2: #060d1f;
  --surface: #0b1426;
  --surface-2: #0f1a30;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #e2e8f0;
  --text-dim: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --navy: #0F172A;
  --blue: #3B82F6;
  --cyan: #22D3EE;
  --purple: #8B5CF6;
  --glow-blue: 59, 130, 246;
  --glow-cyan: 34, 211, 238;
  --glow-purple: 139, 92, 246;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --container: 1180px;
  --section-pad: 140px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(59,130,246,0.10), transparent 60%),
    radial-gradient(900px 600px at 0% 40%, rgba(139,92,246,0.08), transparent 60%),
    radial-gradient(800px 500px at 100% 80%, rgba(34,211,238,0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- background grid ---------- */
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(148,163,184,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 90%);
}
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- shell ---------- */
.shell { position: relative; z-index: 1; overflow-x: clip; width: 100%; max-width: 100vw; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  box-sizing: border-box;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 18px;
  background: rgba(11, 20, 38, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform .35s ease, opacity .35s ease;
}
.nav .brand {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.nav .brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(34,211,238,0.8);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.55; transform: scale(0.85); }
}
.nav .links {
  display: flex; gap: 2px;
  margin-left: 14px;
}
.nav .links a {
  font-size: 13px; color: var(--text-muted);
  padding: 8px 14px; border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav .links a:hover { color: var(--text); background: rgba(148,163,184,0.06); }
.nav .cta {
  font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #0a1020; cursor: pointer; border: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 6px 18px rgba(59,130,246,0.35);
  transition: transform .15s ease, box-shadow .25s ease;
}
.nav .cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.24) inset, 0 8px 24px rgba(59,130,246,0.55); }

@media (max-width: 760px) {
  .nav .links { display: none; }
  .nav { padding: 10px 14px 10px 18px; gap: 12px; }
  .nav .brand { font-size: 13px; }
  .nav .cta { padding: 8px 14px; font-size: 13px; }
}

/* ---------- shared section ---------- */
section {
  position: relative;
  padding: var(--section-pad) 0;
  scroll-margin-top: 80px;
}
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-label .bar {
  width: 28px; height: 1px;
  background: linear-gradient(to right, var(--cyan), transparent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--text);
}
.section-title .accent {
  background: linear-gradient(135deg, #fff 0%, #93c5fd 40%, var(--cyan) 80%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 64px;
  line-height: 1.6;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: 140px; padding-bottom: 160px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow-x: clip;
}
.hero-orb {
  position: absolute; pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}
.hero-orb.a { width: 480px; height: 480px; top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(59,130,246,0.45), transparent 60%); }
.hero-orb.b { width: 560px; height: 560px; bottom: -200px; left: -180px;
  background: radial-gradient(circle, rgba(139,92,246,0.35), transparent 60%); }
.hero-orb.c { width: 360px; height: 360px; top: 30%; left: 40%;
  background: radial-gradient(circle, rgba(34,211,238,0.20), transparent 60%); }

.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  background: rgba(11, 20, 38, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  backdrop-filter: blur(12px);
  margin-bottom: 36px;
}
.hero-status .live {
  width: 7px; height: 7px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 10px rgba(16,185,129,0.8);
  animation: pulse 2s infinite;
}
.hero-status .sep { color: var(--text-faint); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 104px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: normal;
}
.hero h1 .line { display: block; }
.hero h1 .gradient {
  background: linear-gradient(135deg, #fff 0%, #93c5fd 35%, var(--cyan) 70%, var(--purple) 110%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero h1 .muted { color: var(--text-muted); font-weight: 400; }
.hero p.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
  margin: 0 0 44px;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 64px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 15px; font-weight: 500;
  cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #0a1020;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 10px 30px rgba(59,130,246,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.24) inset, 0 14px 40px rgba(59,130,246,0.55); }
.btn-ghost {
  background: rgba(15, 26, 48, 0.6);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(15, 26, 48, 0.9); border-color: rgba(148,163,184,0.35); transform: translateY(-2px); }

/* hero ticker / badges */
.tech-marquee {
  position: relative;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.tech-marquee .track {
  display: flex; gap: 38px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.tech-marquee:hover .track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tech-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11, 20, 38, 0.55);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
}
.tech-pill .tk-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 40px; }
  .stat .n { font-size: 32px; }
}

/* ---------- mobile / phone tuning ---------- */
@media (max-width: 640px) {
  :root { --section-pad: 72px; }

  .container { padding: 0 18px; }
  section { scroll-margin-top: 70px; }

  /* hero squeeze */
  .hero {
    padding-top: 92px;
    padding-bottom: 80px;
    min-height: auto;
  }
  .hero-orb.a { width: 280px; height: 280px; top: -60px; right: -90px; }
  .hero-orb.b { width: 320px; height: 320px; bottom: -160px; left: -120px; }
  .hero-orb.c { display: none; }

  .hero-status {
    font-size: 10.5px;
    padding: 6px 12px 6px 8px;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .hero-status .sep { display: none; }

  .hero h1 {
    font-size: clamp(28px, 9vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
  }
  .hero h1 .gradient { background-size: 100% 100%; }

  .hero p.lede { font-size: 15px; margin-bottom: 30px; max-width: 100%; }

  .hero-ctas {
    gap: 10px;
    margin-bottom: 40px;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-ctas .btn {
    justify-content: center;
    padding: 13px 18px;
    font-size: 14px;
    width: 100%;
  }

  .tech-marquee { padding: 18px 0; margin-top: 4px; }
  .tech-marquee .track { gap: 20px; }
  .tech-pill { padding: 7px 12px; font-size: 11px; }

  .scroll-hint { display: none; }

  .section-lead { font-size: 15px; margin-bottom: 36px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 26px; }
  .container { padding: 0 14px; }
  .hero-status { font-size: 10px; }
}
.stat .n {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #93c5fd);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat .l {
  font-size: 13px; color: var(--text-faint);
  margin-top: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
.about-body p {
  font-size: 18px; color: var(--text-dim);
  line-height: 1.7; margin: 0 0 20px;
}
.about-body strong { color: var(--text); font-weight: 600; }
.about-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px;
}
.about-tags .tag {
  font-family: var(--font-mono); font-size: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(34,211,238,0.07); border: 1px solid rgba(34,211,238,0.18);
  color: var(--cyan);
}
.about-side {
  background: linear-gradient(180deg, rgba(15,26,48,0.7), rgba(11,20,38,0.45));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
}
.about-side h4 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 18px;
}
.skill-row { margin-bottom: 16px; }
.skill-row:last-child { margin-bottom: 0; }
.skill-row .top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.skill-row .top .name { font-size: 14px; color: var(--text); }
.skill-row .top .pct { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.skill-row .bar {
  height: 4px; background: rgba(148,163,184,0.08);
  border-radius: 999px; overflow: hidden;
}
.skill-row .bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(34,211,238,0.5);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.skill-row.in .bar .fill { transform: scaleX(1); }

/* ---------- projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 880px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(800px circle at var(--mx, 50%) var(--my, 0%), rgba(59,130,246,0.10), transparent 40%),
    linear-gradient(180deg, rgba(15,26,48,0.78), rgba(11,20,38,0.55));
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease;
  cursor: pointer;
}
.project-card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34,211,238,0.0), rgba(59,130,246,0.0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  transition: background .4s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34,211,238,0.35);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(34,211,238,0.18);
}
.project-card:hover::before {
  background: linear-gradient(135deg, rgba(34,211,238,0.5), rgba(59,130,246,0.2), rgba(139,92,246,0.4));
}

.project-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: #050a18;
}
.project-visual .scene { position: absolute; inset: 0; }
.project-body {
  padding: 26px 28px 28px;
}
.project-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.project-meta .role { color: var(--cyan); }
.project-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--text);
}
.project-card p {
  font-size: 14.5px; line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.project-stack span {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(148,163,184,0.06);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* visual scenes inside project cards */
.scene-portal {
  background:
    radial-gradient(circle at 30% 30%, rgba(59,130,246,0.25), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(34,211,238,0.18), transparent 55%),
    #060d20;
}
.scene-esg {
  background:
    radial-gradient(circle at 80% 20%, rgba(139,92,246,0.25), transparent 50%),
    linear-gradient(160deg, #0b1530, #060d20);
}
.scene-itcare {
  background:
    radial-gradient(circle at 20% 70%, rgba(34,211,238,0.22), transparent 55%),
    linear-gradient(160deg, #07172a, #050a18);
}
.scene-landing {
  background:
    radial-gradient(circle at 50% 50%, rgba(59,130,246,0.18), transparent 60%),
    linear-gradient(160deg, #0b1530, #060d20);
}

.window {
  position: absolute; inset: 14px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(2,6,23,0.78);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
}
.window .tb {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(148,163,184,0.1);
  font-family: var(--font-mono); font-size: 10px; color: var(--text-faint);
}
.window .tb .d { width: 7px; height: 7px; border-radius: 50%; background: rgba(148,163,184,0.25); }
.window .tb .d.r { background: #ef4444aa; }
.window .tb .d.y { background: #f59e0baa; }
.window .tb .d.g { background: #10b981aa; }
.window .tb .url {
  margin-left: 10px; padding: 3px 10px; border-radius: 6px;
  background: rgba(148,163,184,0.06);
  color: var(--text-muted);
}

/* tiny chart/dashboard visuals */
.dash {
  position: absolute; inset: 30px 14px 14px 14px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 8px;
}
.dash .tile {
  background: rgba(148,163,184,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  position: relative;
  overflow: hidden;
}
.dash .tile .lbl {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--text-faint); letter-spacing: 0.04em;
}
.dash .tile .num {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}
.bars { display: flex; align-items: flex-end; gap: 4px; height: 28px; margin-top: 6px; }
.bars span {
  flex: 1; background: linear-gradient(180deg, var(--cyan), var(--blue));
  border-radius: 2px;
  opacity: 0.85;
}

/* timeline */
.timeline {
  position: relative;
  padding-left: 36px;
  border-left: 1px dashed var(--border-strong);
}
.timeline .node {
  position: relative;
  padding-left: 14px;
  padding-bottom: 56px;
}
.timeline .node:last-child { padding-bottom: 0; }
.timeline .node::before {
  display: none;
}
.timeline .timeline-icon {
  position: absolute;
  left: -56px;
  top: 0px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0B1530;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.04), 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 10;
  overflow: hidden;
  padding: 6px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.timeline .node:hover .timeline-icon {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15), 0 0 14px rgba(34, 211, 238, 0.3);
  transform: scale(1.05);
}
.timeline .node .when {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--cyan);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline .node h4 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.timeline .node .role {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.timeline .node ul {
  margin: 0; padding: 0; list-style: none;
}
.timeline .node ul li {
  padding-left: 18px;
  position: relative;
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 6px;
  line-height: 1.55;
}
.timeline .node ul li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 1px; background: var(--text-faint);
}

/* stack section */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 880px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }

.stack-card {
  position: relative;
  padding: 22px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,26,48,0.75), rgba(11,20,38,0.55));
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
}
.stack-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34,211,238,0.35);
}
.stack-card .glyph {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.stack-card .glyph svg,
.stack-card .glyph > span {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.stack-card .name {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--text);
}
.stack-card .cat {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.stack-card::after {
  content: "";
  position: absolute; right: -40px; bottom: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.18), transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
.stack-card:hover::after { opacity: 1; }

/* cert modal */
.cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cert-modal-content {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(40px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.cert-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cert-modal-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.cert-modal-content h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.cert-modal-org {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.cert-modal-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.05);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-modal-image img {
  width: 100%;
  height: auto;
  display: block;
}

.cert-loading {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 16px;
}

.cert-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 24px;
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 12px;
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cert-modal-link:hover {
  background: rgba(34,211,238,0.2);
  border-color: rgba(34,211,238,0.5);
  transform: translateX(4px);
}

.cert {
  transition: all 0.3s ease;
}

.cert:hover {
  transform: translateY(-4px);
  border-color: rgba(34,211,238,0.4);
}

.cert .cert-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.cert .cert-icon svg {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

@media (max-width: 768px) {
  .cert-modal-content {
    padding: 24px;
    max-height: 95vh;
  }
  
  .cert-modal-content h3 {
    font-size: 22px;
    padding-right: 40px;
  }
  
  .cert-modal-org {
    font-size: 14px;
    margin-bottom: 24px;
  }
}
.cert-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 880px) { .cert-grid { grid-template-columns: 1fr; } }
.cert {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,26,48,0.75), rgba(11,20,38,0.55));
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
  cursor: pointer;
}
.cert:hover { 
  border-color: rgba(34,211,238,0.35); 
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(15,26,48,0.85), rgba(11,20,38,0.65));
}
.cert .cert-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert .cert-icon svg {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.cert h4 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  margin: 0;
  line-height: 1.25;
}
.cert .meta {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.cert .id {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint);
  display: flex; justify-content: space-between;
}

/* contact */
.contact-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(59,130,246,0.18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(139,92,246,0.18), transparent 60%),
    linear-gradient(180deg, rgba(15,26,48,0.8), rgba(11,20,38,0.6));
  padding: 64px 56px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px;
  overflow: hidden;
}
@media (max-width: 880px) {
  .contact-card { grid-template-columns: 1fr; padding: 44px 28px; gap: 32px; }
}
.contact-card h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.contact-card p {
  font-size: 17px; color: var(--text-muted);
  max-width: 460px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.contact-channels {
  display: flex; flex-direction: column; gap: 12px;
}
.channel {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(2,6,23,0.4);
  transition: border-color .25s ease, transform .2s ease, background .25s ease;
}
.channel:hover {
  border-color: rgba(34,211,238,0.45);
  background: rgba(2,6,23,0.6);
  transform: translateX(4px);
}
.channel .ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(34,211,238,0.10);
  border: 1px solid rgba(34,211,238,0.22);
  display: grid; place-items: center;
  color: var(--cyan);
}
.channel .lab { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; }
.channel .val { font-size: 15px; color: var(--text); }
.channel .arr { margin-left: auto; color: var(--text-faint); transition: color .2s ease, transform .2s ease; }
.channel:hover .arr { color: var(--cyan); transform: translate(4px, -4px); }

/* footer */
footer {
  padding: 60px 0 50px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
footer .row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
}

/* reveal animation */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s cubic-bezier(0.2, 0.8, 0.2, 1), transform .8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.15); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.3); }

/* loader */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0.7;
}
.scroll-hint .line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: hintLine 2s ease-in-out infinite;
}
@keyframes hintLine {
  0% { transform: scaleY(0.2); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0.2); transform-origin: bottom; }
}

@media (max-width: 768px), (max-height: 750px) {
  .scroll-hint {
    display: none;
  }
}
