/* ============================================================
   Sachin Diwakar — Portfolio · main.css
   Premium dark futuristic theme
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e7eaf3;
  --text-dim: #a3a8b8;
  --text-mute: #6b7184;

  --c-cyan: #7af8ff;
  --c-violet: #8a7bff;
  --c-pink: #ff6ad5;
  --c-azure: #3ec1f3;
  --c-gold: #ffd66b;

  --grad-1: linear-gradient(135deg, #7af8ff 0%, #8a7bff 50%, #ff6ad5 100%);
  --grad-2: linear-gradient(135deg, #5dd5ff 0%, #b07bff 100%);
  --grad-3: radial-gradient(120% 120% at 0% 0%, #7af8ff 0%, transparent 60%),
            radial-gradient(120% 120% at 100% 0%, #ff6ad5 0%, transparent 55%),
            radial-gradient(120% 120% at 50% 100%, #8a7bff 0%, transparent 55%);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 60px rgba(122, 248, 255, 0.18),
                 0 0 120px rgba(255, 106, 213, 0.12);

  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(138, 123, 255, 0.18), transparent 60%),
    radial-gradient(1000px 700px at -10% 20%, rgba(122, 248, 255, 0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(255, 106, 213, 0.14), transparent 60%),
    var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
@media (max-width: 900px) {
  body { cursor: auto; }
  .fx-cursor { display: none !important; }
}

img,
svg {
  display: block;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(138, 123, 255, 0.4);
  color: #fff;
}

/* ---------- Global FX layers ---------- */
.fx-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora.a1 {
  background: radial-gradient(circle, #7af8ff 0%, transparent 60%);
  top: -25vmax;
  left: -10vmax;
  animation: aurora-1 22s ease-in-out infinite;
}
.aurora.a2 {
  background: radial-gradient(circle, #ff6ad5 0%, transparent 60%);
  bottom: -25vmax;
  right: -10vmax;
  animation: aurora-2 26s ease-in-out infinite;
}
.aurora.a3 {
  background: radial-gradient(circle, #8a7bff 0%, transparent 60%);
  top: 20%;
  left: 40%;
  animation: aurora-3 30s ease-in-out infinite;
}

.fx-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 50%, transparent 100%);
}

.fx-noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><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>");
}

.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.fx-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.fx-cursor .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}
.fx-cursor .ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease), width 0.2s var(--ease),
    height 0.2s var(--ease), opacity 0.2s var(--ease);
}
.fx-cursor.hovering .ring {
  width: 56px;
  height: 56px;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.fx-scroll {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 9998;
  background: var(--grad-1);
  box-shadow: 0 0 12px rgba(138, 123, 255, 0.6);
}

/* ---------- Layout ---------- */
section,
.nav,
.footer {
  position: relative;
  z-index: 3;
}
.section {
  padding: clamp(80px, 9vw, 140px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.section-head {
  max-width: 760px;
  margin: 0 0 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 12px var(--c-cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
.section-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
.section-lead {
  color: var(--text-dim);
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 640px;
}

.gradient-text {
  background: var(--grad-1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.02) 100%
    );
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(122, 248, 255, 0.35),
    rgba(255, 106, 213, 0.18) 40%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

/* ---------- Buttons ---------- */
.btn {
  --bw: 1px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: var(--bw) solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
}
.btn-sm {
  padding: 9px 14px;
  font-size: 13px;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.btn-primary {
  background: var(--grad-1);
  color: #0b0d14;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(138, 123, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(138, 123, 255, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  transform: translateY(-2px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
}
.btn-link {
  background: transparent;
  border: 0;
  padding: 14px 4px;
  color: var(--text-dim);
}
.btn-link:hover {
  color: var(--text);
  transform: none;
  background: transparent;
  border: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px var(--pad);
  background: linear-gradient(
    180deg,
    rgba(5, 6, 10, 0.72),
    rgba(5, 6, 10, 0.4) 70%,
    transparent
  );
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 17px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 24px rgba(122, 248, 255, 0.2);
}
.brand-name span {
  color: var(--text-mute);
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  margin-right: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-links a.active {
  color: #0b0d14;
  background: var(--grad-1);
  font-weight: 600;
}
.nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.nav-burger span {
  width: 16px;
  height: 1.5px;
  background: var(--text);
  display: block;
}
@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 16px;
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
    background: rgba(8, 10, 18, 0.92);
    border: 1px solid var(--line);
    transform: translateY(-12px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s var(--ease);
  }
  .nav.open .nav-links {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-burger {
    display: flex;
  }
  .nav .btn-ghost {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(80px, 12vw, 140px) var(--pad) clamp(40px, 8vw, 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-fabric {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.85;
}
.hero-shell {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.hero-pill .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6bff9c;
  box-shadow: 0 0 12px #6bff9c;
  animation: pulse 1.6s ease-in-out infinite;
}
.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(44px, 8vw, 110px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 24px 0 20px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-right: 0.12em;
}
.ai-glow {
  background: var(--grad-1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(138, 123, 255, 0.45));
}
.hero-sub {
  max-width: 700px;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-dim);
}
.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}
.azure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(62, 193, 243, 0.1);
  border: 1px solid rgba(62, 193, 243, 0.3);
  color: #c8ecff;
  font-weight: 600;
  font-size: 13px;
  margin: 0 4px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 0;
}

/* Hero 2-column: copy + portrait */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: 56px;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.hero-copy { min-width: 0; }

/* Portrait card */
.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}
.portrait-frame {
  position: relative;
  width: min(420px, 90%);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  transform-style: preserve-3d;
  animation: portrait-float 8s ease-in-out infinite;
}
.portrait-aura {
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 30% 30%, rgba(122, 248, 255, 0.55), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 106, 213, 0.55), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(138, 123, 255, 0.45), transparent 60%);
  filter: blur(48px);
  opacity: 0.85;
  z-index: 0;
  animation: aurora-spin 18s linear infinite;
  pointer-events: none;
}
.portrait-ring {
  position: absolute;
  inset: -8px;
  border-radius: 32px;
  padding: 1.5px;
  background: conic-gradient(
    from 0deg,
    #7af8ff,
    #8a7bff,
    #ff6ad5,
    #7af8ff
  );
  -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;
  animation: rotate 12s linear infinite;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}
.portrait-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(122, 248, 255, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 40px rgba(122, 248, 255, 0.06);
}
.portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
}
.portrait-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(5, 6, 10, 0.55) 100%
  );
  pointer-events: none;
}

.portrait-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(140%);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: chip-float 6s ease-in-out infinite;
}
.portrait-chip.chip-tl {
  top: 12px;
  left: -22px;
}
.portrait-chip.chip-br {
  bottom: 12px;
  right: -22px;
  animation-delay: -2s;
}
.portrait-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6bff9c;
  box-shadow: 0 0 10px #6bff9c;
}
.portrait-chip .dot.live { animation: pulse 1.6s ease-in-out infinite; }

.portrait-tag {
  position: absolute;
  z-index: 4;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b0d14;
  background: var(--grad-1);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(138, 123, 255, 0.45);
  animation: chip-float 7s ease-in-out infinite;
}
.portrait-tag.tag-1 {
  top: 38%;
  right: -36px;
  animation-delay: -1s;
}
.portrait-tag.tag-2 {
  top: 18%;
  right: -8px;
  background: rgba(10, 12, 20, 0.7);
  color: var(--text);
  border: 1px solid rgba(255, 106, 213, 0.4);
  animation-delay: -3s;
}
.portrait-tag.tag-3 {
  bottom: 28%;
  left: -42px;
  background: rgba(10, 12, 20, 0.7);
  color: var(--text);
  border: 1px solid rgba(122, 248, 255, 0.4);
  animation-delay: -4s;
}

@media (max-width: 640px) {
  .portrait-frame {
    width: min(320px, 78%);
  }
  .portrait-chip {
    font-size: 10px;
    padding: 6px 10px;
  }
  .portrait-chip.chip-tl { top: 8px; left: 8px; }
  .portrait-chip.chip-br { bottom: 8px; right: 8px; }
  .portrait-tag {
    font-size: 9px;
    padding: 5px 9px;
  }
  .portrait-tag.tag-1 { top: 40%; right: 6px; }
  .portrait-tag.tag-2 { top: 14%; right: 6px; }
  .portrait-tag.tag-3 { bottom: 26%; left: 6px; }
}

@keyframes portrait-float {
  0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
  50% { transform: translateY(-10px) rotateX(2deg) rotateY(-2deg); }
}
@keyframes aurora-spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  background: var(--grad-1);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
@media (max-width: 980px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
    gap: 12px;
  }
  .hero-stats .stat:nth-child(5) {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }
}
.hero-marquee {
  margin-top: 40px;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent
  );
}
.hero-marquee .track {
  display: inline-flex;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
}
.hero-marquee .track span:nth-child(odd) {
  color: var(--text-dim);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: var(--text-mute);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll .mouse {
  width: 22px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  position: relative;
}
.hero-scroll .mouse span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--c-cyan);
  animation: mouse-wheel 1.8s ease-in-out infinite;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 1080px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid .focus {
    grid-column: span 2;
  }
}
@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-grid .focus {
    grid-column: span 1;
  }
}
.about-card {
  padding: 28px;
}
.about-card h3,
.focus h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 14px;
}
.about-card p {
  color: var(--text-dim);
  margin: 0 0 12px;
}
.card-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(138, 123, 255, 0.45), transparent 70%);
  filter: blur(40px);
  top: -50px;
  right: -50px;
  pointer-events: none;
  z-index: 0;
}
.about-card > *, .focus > * { position: relative; z-index: 1; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 38px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(122, 248, 255, 0.5),
    rgba(255, 106, 213, 0.5),
    transparent
  );
}
.t-item {
  position: relative;
  padding-left: 38px;
  margin-bottom: 22px;
}
.t-item:last-child { margin-bottom: 0; }
.t-item::before {
  content: attr(data-year);
  position: absolute;
  top: -2px;
  left: 38px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-left: 8px;
}
.t-dot {
  position: absolute;
  left: 4px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(122, 248, 255, 0.12), 0 0 18px rgba(122, 248, 255, 0.5);
}
.t-card {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--r);
}
.t-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.t-card p {
  color: var(--text-dim);
  margin: 0 0 12px;
  font-size: 14px;
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips li {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
}

.focus {
  padding: 28px;
}
.focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.focus-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.focus-list li:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.06);
}
.i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--grad-1);
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(138, 123, 255, 0.4));
}
.i::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--bg-2);
  border-radius: 3px;
}

/* ---------- EXPERTISE ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 1000px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .expertise-grid { grid-template-columns: 1fr; }
}
.exp-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.exp-card:hover {
  transform: translateY(-6px);
}
.exp-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.exp-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}
.exp-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0;
}
.exp-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.exp-tag.rare {
  background: linear-gradient(90deg, rgba(122, 248, 255, 0.15), rgba(255, 106, 213, 0.15));
  border-color: rgba(255, 106, 213, 0.3);
  color: #ffd6f0;
}
.exp-viz {
  position: relative;
  height: 120px;
  border-radius: var(--r);
  background:
    radial-gradient(circle at 30% 30%, rgba(122, 248, 255, 0.1), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255, 106, 213, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  overflow: hidden;
}

/* GPU rack viz */
.gpu-rack {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  align-items: end;
}
.gpu-rack .gpu {
  height: 60%;
  border-radius: 4px;
  background: linear-gradient(180deg, #1c2230, #0f131c);
  border: 1px solid rgba(122, 248, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.gpu-rack .gpu::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(122, 248, 255, 0.6) 50%,
    transparent
  );
  height: 30%;
  animation: gpu-scan 2s ease-in-out infinite;
}
.gpu-rack .gpu:nth-child(1)::after { animation-delay: 0s; }
.gpu-rack .gpu:nth-child(2)::after { animation-delay: 0.2s; }
.gpu-rack .gpu:nth-child(3)::after { animation-delay: 0.4s; }
.gpu-rack .gpu:nth-child(4)::after { animation-delay: 0.6s; }
.gpu-rack .gpu:nth-child(5)::after { animation-delay: 0.8s; }
.gpu-rack .gpu:nth-child(6)::after { animation-delay: 1s; }
.gpu-rack .gpu:nth-child(7)::after { animation-delay: 1.2s; }
.gpu-rack .gpu:nth-child(8)::after { animation-delay: 1.4s; }

/* Azure orbit */
.orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.orbit .core {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #7af8ff 0%, #3ec1f3 60%, transparent 70%);
  box-shadow: 0 0 30px rgba(62, 193, 243, 0.7);
}
.orbit .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}
.orbit .ring.r1 {
  width: 60px;
  height: 60px;
  animation: rotate 8s linear infinite;
}
.orbit .ring.r2 {
  width: 100px;
  height: 100px;
  animation: rotate 14s linear infinite reverse;
}
.orbit .ring.r3 {
  width: 140px;
  height: 140px;
  animation: rotate 22s linear infinite;
}
.orbit .ring i {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--c-cyan);
  transform: translateX(-50%);
}

/* K8s viz */
.k8s {
  position: absolute;
  inset: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}
.k8s .node {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  position: relative;
  animation: pulse-soft 3s ease-in-out infinite;
}
.k8s .node.ctl {
  background: linear-gradient(135deg, rgba(122, 248, 255, 0.18), rgba(138, 123, 255, 0.18));
  border-color: rgba(122, 248, 255, 0.4);
}
.k8s .node:nth-child(2) { animation-delay: 0.2s; }
.k8s .node:nth-child(3) { animation-delay: 0.4s; }
.k8s .node:nth-child(4) { animation-delay: 0.6s; }
.k8s .node:nth-child(5) { animation-delay: 0.8s; }
.k8s .node:nth-child(6) { animation-delay: 1s; }

/* Distributed */
.dist {
  position: absolute;
  inset: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
}
.dist span {
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-violet), transparent 70%);
  opacity: 0.4;
  animation: pulse-soft 3s ease-in-out infinite;
}
.dist span:nth-child(odd) { animation-delay: 0.4s; }
.dist span:nth-child(3n) { animation-delay: 0.8s; }
.dist span:nth-child(5) {
  background: radial-gradient(circle, var(--c-cyan), transparent 70%);
  opacity: 0.9;
}

/* HPC bars */
.hpc-bars {
  position: absolute;
  inset: 16px;
  display: flex;
  align-items: end;
  gap: 6px;
}
.hpc-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--c-cyan), var(--c-violet));
  border-radius: 3px;
  animation: hpc 1.6s ease-in-out infinite;
}
.hpc-bars span:nth-child(2) { animation-delay: 0.1s; }
.hpc-bars span:nth-child(3) { animation-delay: 0.2s; }
.hpc-bars span:nth-child(4) { animation-delay: 0.3s; }
.hpc-bars span:nth-child(5) { animation-delay: 0.4s; }
.hpc-bars span:nth-child(6) { animation-delay: 0.5s; }
.hpc-bars span:nth-child(7) { animation-delay: 0.6s; }
.hpc-bars span:nth-child(8) { animation-delay: 0.7s; }
.hpc-bars span:nth-child(9) { animation-delay: 0.8s; }
.hpc-bars span:nth-child(10) { animation-delay: 0.9s; }

/* Neural */
.neural {
  position: absolute;
  inset: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.neural .layer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.neural i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, transparent 70%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  animation: pulse-soft 2s ease-in-out infinite;
}
.neural .links {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* IB fabric */
[data-viz="ib"] svg { width: 100%; height: 100%; }

/* Obs line */
.obs-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 3s var(--ease) forwards infinite;
}

/* SRE ring */
.sre-ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.sre-ring svg { width: 110px; height: 110px; }
.sre-num {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 16px;
  background: var(--grad-1);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ---------- PROJECTS ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 1000px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .proj-grid { grid-template-columns: 1fr; }
}
.proj-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease);
}
.proj-card:hover {
  transform: translateY(-6px);
}
.proj-art {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 30%, rgba(122, 248, 255, 0.18), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255, 106, 213, 0.18), transparent 60%),
    #0a0d16;
}
.proj-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--text);
  z-index: 2;
}
.grid-anim,
.cloud-anim,
.ai-anim,
.auto-anim,
.k8s-anim,
.perf-anim {
  position: absolute;
  inset: 0;
}
.grid-anim {
  background-image:
    linear-gradient(rgba(122, 248, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 248, 255, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: grid-shift 14s linear infinite;
  mask-image: radial-gradient(circle at center, #000, transparent 80%);
}
.cloud-anim::before,
.cloud-anim::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 50%, rgba(138, 123, 255, 0.5), transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(122, 248, 255, 0.4), transparent 30%);
  filter: blur(30px);
  animation: float-slow 8s ease-in-out infinite;
}
.cloud-anim::after {
  animation-direction: reverse;
  animation-duration: 12s;
}
.ai-anim {
  background:
    radial-gradient(circle at 50% 50%, rgba(122, 248, 255, 0.18), transparent 60%);
}
.ai-anim::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at center, #000, transparent 70%);
  animation: stars 10s linear infinite;
  opacity: 0.6;
}
.auto-anim {
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 12px,
      rgba(122, 248, 255, 0.08) 12px 13px
    );
  animation: stripe 10s linear infinite;
}
.k8s-anim::before {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  animation: rotate 18s linear infinite;
}
.k8s-anim::after {
  content: "";
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 248, 255, 0.5), transparent 60%);
  filter: blur(8px);
}
.perf-anim {
  background:
    linear-gradient(180deg, transparent 60%, rgba(255, 106, 213, 0.18)),
    repeating-linear-gradient(
      to right,
      transparent 0 30px,
      rgba(255, 255, 255, 0.06) 30px 31px
    );
}
.perf-anim::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    90deg,
    transparent,
    rgba(255, 106, 213, 0.5),
    transparent
  );
  animation: scan 3.5s linear infinite;
}

.proj-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proj-body h3 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 19px;
}
.proj-block {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.proj-block:first-of-type { border-top: 0; padding-top: 0; }
.lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.proj-block p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- TERMINAL ---------- */
.terminal-section {
  padding-top: 0;
}
.terminal {
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: var(--max);
  margin: 0 auto;
}
.t-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.t-bar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.t-bar .dot.r { background: #ff5f57; }
.t-bar .dot.y { background: #febc2e; }
.t-bar .dot.g { background: #28c840; }
.t-bar .t-title {
  margin-left: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-mute);
}
.t-body {
  margin: 0;
  padding: 22px 22px 26px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #d8e0f0;
  min-height: 240px;
  white-space: pre-wrap;
  word-break: break-word;
}
.t-body .prompt { color: var(--c-cyan); }
.t-body .arrow { color: var(--c-pink); }
.t-body .ok { color: #6bff9c; }
.t-body .warn { color: var(--c-gold); }
.t-body .dim { color: var(--text-mute); }
.t-body .caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--c-cyan);
  vertical-align: -3px;
  animation: caret 1s steps(1) infinite;
}

/* ---------- SERVICES ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
}
.svc-card {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); }
.svc-rank {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
}
.svc-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin: 0;
}
.svc-sub {
  margin: 0;
  color: var(--text-mute);
  font-size: 13px;
}
.price {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.02em;
  background: var(--grad-1);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price .cur {
  font-size: 20px;
  font-weight: 600;
}
.price small {
  font-size: 12px;
  color: var(--text-mute);
  -webkit-text-fill-color: var(--text-mute);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.svc-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.svc-card ul li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 14px;
}
.svc-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--grad-1);
  opacity: 0.85;
  clip-path: polygon(0 50%, 40% 100%, 100% 0, 70% 0, 40% 60%, 20% 40%);
}
.svc-card.featured {
  border-color: rgba(255, 106, 213, 0.3);
}
.svc-card.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 106, 213, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.svc-card > * { position: relative; z-index: 1; }
.svc-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad-1);
  color: #0b0d14;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- WORK WITH ME · LEAD CTA ---------- */
.svc-cta {
  margin-top: 36px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(122, 248, 255, 0.10), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 106, 213, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}
.svc-cta h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.svc-cta p {
  color: var(--text-dim);
  margin: 0;
  max-width: 560px;
}
.svc-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .svc-cta { padding: 22px; }
  .svc-cta-actions { width: 100%; }
  .svc-cta-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- ACHIEVEMENTS ---------- */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px) {
  .ach-grid { grid-template-columns: repeat(2, 1fr); }
}
.ach {
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ach-num,
.ach-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  background: var(--grad-1);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.ach-text { font-size: clamp(20px, 2.4vw, 26px); }
.ach-lbl {
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ---------- WRITING ---------- */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 30px;
}
.cat-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.cat-pill:hover { color: var(--text); border-color: var(--line-2); }
.cat-pill.active {
  background: var(--grad-1);
  color: #0b0d14;
  border-color: transparent;
  font-weight: 600;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.4s var(--ease);
  cursor: pointer;
}
.post:hover { transform: translateY(-6px); }
.post-cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.post h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 19px;
  margin: 0;
  line-height: 1.25;
}
.post p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}
.post-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-top: auto;
}

/* ---------- TESTIMONIALS ---------- */
.quote-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .quote-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "quote quote"
      "prev next"
      "dots dots";
    gap: 14px;
  }
  .quote-stage .quotes { grid-area: quote; }
  .quote-stage .qbtn:first-of-type { grid-area: prev; justify-self: end; }
  .quote-stage .qbtn:last-of-type { grid-area: next; justify-self: start; }
  .quote-stage .qdots { grid-area: dots; grid-column: auto; margin-top: 0; }
  .quotes { height: auto; min-height: 280px; }
  .quote { padding: 20px; position: relative; }
  .quote:not(.active) { display: none; }
}
.qbtn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 22px;
  color: var(--text);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.qbtn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}
.quotes {
  position: relative;
  height: 240px;
}
.quote {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.quote.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.quote p {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.45;
}
.quote footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.quote .who { color: var(--text); font-weight: 600; }
.quote .where { color: var(--text-mute); font-family: "JetBrains Mono", monospace; font-size: 12px; }
.qdots {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.qdots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.qdots span.active {
  background: var(--grad-1);
  transform: scale(1.4);
}

/* ---------- CONTACT ---------- */
.contact-shell {
  position: relative;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 60px);
  text-align: center;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(122, 248, 255, 0.22), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 106, 213, 0.22), transparent 50%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.contact-shell > * { position: relative; z-index: 1; }
.contact-shell .eyebrow { margin: 0 auto; }
.contact-shell .section-title { margin-top: 18px; }
.contact-shell .section-lead { margin: 14px auto 0; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 36px 0 28px;
}
.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 14px;
  transition: all 0.25s var(--ease);
}
.socials a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-2);
  transform: translateY(-2px);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 36px var(--pad) 60px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.foot-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-mute);
}

/* ============================================================
   MOBILE SAFETY · phones <= 640px
   ============================================================ */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .hero {
    padding-top: clamp(90px, 18vw, 120px);
    padding-bottom: 40px;
    min-height: auto;
  }
  .hero-cta { gap: 10px; margin-top: 28px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .btn-sm { padding: 8px 14px; font-size: 13px; }

  .section { padding: clamp(60px, 14vw, 100px) var(--pad); }
  .section-title { font-size: clamp(28px, 8vw, 40px) !important; }
  .section-head { margin-bottom: 28px; }

  /* Terminal — tighter on phones */
  .t-body {
    font-size: 12px;
    padding: 16px 14px 20px;
    min-height: 200px;
  }
  .t-bar { padding: 10px 12px; }
  .t-bar .t-title { font-size: 11px; margin-left: 8px; }

  /* Expertise viz — smaller decorative area */
  .exp-viz { height: 120px !important; }

  /* About cards padding */
  .about-card, .focus, .timeline { padding: 22px; }
  .focus-list li { padding: 10px 12px; font-size: 13px; }

  /* Service cards padding */
  .svc-card { padding: 22px; }

  /* Achievements: stack 2-up cleanly */
  .ach-grid { gap: 12px; }
  .ach { padding: 20px 14px; }

  /* Nav: hide eyebrow pulse dot from collapsing layout */
  .nav { padding: 12px 16px; }
  .brand-name { font-size: 15px; }

  /* Hero pill copy tighter */
  .hero-pill { font-size: 12px; padding: 6px 12px; }

  /* Footer stacks centered */
  .foot-shell { justify-content: center; text-align: center; }

  /* Marquee speed-up feel */
  .hero-marquee { margin-top: 28px; }

  /* Contact CTAs full-width */
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
}

/* Tablet polish 641–880px */
@media (min-width: 641px) and (max-width: 880px) {
  .hero-cta .btn { flex: 1 1 auto; }
}
