/* =========================================================
   Kartik Panchal — Portfolio
   Design tokens
   ========================================================= */
:root {
  /* Color */
  --bg:            #0A0E1A;
  --bg-alt:        #0D1326;
  --surface:       #121936;
  --surface-2:     #161F42;
  --border:        #232C4E;
  --border-soft:   #1A2240;
  --text:          #EEF1F8;
  --text-dim:      #98A0BE;
  --text-faint:    #5C6488;
  --accent:        #3B82F6;
  --accent-2:      #7DD3FC;
  --accent-soft:   rgba(59,130,246,0.12);
  --accent-glow:   rgba(59,130,246,0.35);

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --section-pad: clamp(72px, 10vw, 128px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #071018;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* =========================================================
   Scroll progress
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 1100;
  transition: width 0.1s linear;
}

/* =========================================================
   Section scaffolding
   ========================================================= */
.section { padding: var(--section-pad) 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 14px;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
  color: var(--text);
}

.section-lede {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 17px;
  max-width: 60ch;
}
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }

.text-gradient {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563EB);
  color: #F5F9FF;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -6px var(--accent-glow); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }

.btn-ghost {
  background: var(--surface);
  color: var(--text-dim);
  border-color: var(--border-soft);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border-soft); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; }
.nav-logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #071018;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 14px;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%; height: 1.5px;
  background: var(--accent-2);
  transition: width 0.25s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
#pipelineCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 10%, transparent 75%);
}

.hero-inner { position: relative; z-index: 1; max-width: 860px; }

.hero-title {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 22px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }

.hero-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-meta .dot { color: var(--border); }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--accent-2);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: start;
}
.about-copy p {
  color: var(--text-dim);
  font-size: 16.5px;
  margin-bottom: 20px;
}
.about-copy p:last-child { margin-bottom: 0; }

.about-principles {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-soft);
}
.principle {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.principle-mark {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 13px;
}
.principle p { color: var(--text); font-size: 15.5px; }

/* =========================================================
   Business + Tech split
   ========================================================= */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.split-side { padding: 48px 40px; }
.split-business { background: linear-gradient(160deg, rgba(255,255,255,0.02), transparent); }
.split-tech { background: linear-gradient(200deg, var(--accent-soft), transparent); }
.split-title {
  font-size: 22px;
  margin-bottom: 24px;
}
.split-tech .split-title { color: var(--accent-2); }
.split-list { display: flex; flex-direction: column; gap: 14px; }
.split-list li {
  font-size: 15.5px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.split-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
}
.split-tech .split-list li::before { background: var(--accent); }

.split-connector { display: flex; align-items: center; justify-content: center; }
.split-connector svg { width: 100%; height: 100%; }
.connector-line { stroke: var(--border); stroke-width: 1.5; }
.connector-node { fill: var(--accent-2); opacity: 0.85; }
.connector-node.n1 { animation: pulseNode 3.2s ease-in-out infinite; }
.connector-node.n2 { animation: pulseNode 3.2s ease-in-out infinite 0.6s; }
.connector-node.n3 { animation: pulseNode 3.2s ease-in-out infinite 1.2s; }
.connector-node.n4 { animation: pulseNode 3.2s ease-in-out infinite 1.8s; }
@keyframes pulseNode {
  0%, 100% { r: 4; opacity: 0.6; }
  50% { r: 6; opacity: 1; }
}

/* =========================================================
   Timeline (Experience)
   ========================================================= */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 90%);
}

.tl-item { position: relative; margin-bottom: 52px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-marker {
  position: absolute;
  left: -32px; top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-2);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.tl-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.tl-content:hover { border-color: var(--border); transform: translateY(-2px); }

.tl-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tl-role { font-size: 19px; }
.tl-org { color: var(--accent-2); font-size: 14px; margin-top: 4px; }
.tl-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  white-space: nowrap;
  padding-top: 4px;
}

.tl-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.tl-list li {
  color: var(--text-dim);
  font-size: 15px;
  padding-left: 18px;
  position: relative;
}
.tl-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid rgba(59,130,246,0.25);
}

/* =========================================================
   Workflow
   ========================================================= */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.workflow-step {
  background: var(--bg-alt);
  padding: 32px 26px;
  transition: background 0.3s ease;
}
.workflow-step:hover { background: var(--surface); }
.wf-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.workflow-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.workflow-step p { color: var(--text-dim); font-size: 14px; }

/* =========================================================
   Case Study
   ========================================================= */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.case-sub { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-2); margin: 28px 0 10px; }
.case-sub:first-child { margin-top: 0; }
.case-copy p { color: var(--text-dim); font-size: 15.5px; }
.case-list { display: flex; flex-direction: column; gap: 12px; }
.case-list li {
  color: var(--text-dim);
  font-size: 15px;
  padding-left: 18px;
  position: relative;
}
.case-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

.case-visual { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.pipeline-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px 20px;
}
.pd-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.pd-stage-final { border-color: rgba(59,130,246,0.4); background: var(--accent-soft); }
.pd-label { font-family: var(--font-mono); font-weight: 500; color: var(--text); font-size: 13.5px; }
.pd-desc { font-size: 11px; color: var(--text-faint); }
.pd-arrow { color: var(--accent-2); font-size: 18px; }

.case-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.metric-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
}
.metric-label { color: var(--text-dim); font-size: 14px; }

/* =========================================================
   Expertise
   ========================================================= */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ex-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.ex-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.35); }
.ex-card h3 { font-size: 16px; margin-bottom: 18px; color: var(--accent-2); }
.ex-card ul { display: flex; flex-direction: column; gap: 9px; }
.ex-card li { font-size: 14.5px; color: var(--text-dim); }

/* =========================================================
   Stats / Impact
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 44px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), transparent);
}
.stat-num, .stat-num-text {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 54px);
  font-weight: 700;
  background: linear-gradient(120deg, var(--text) 20%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.stat-label { color: var(--text-dim); font-size: 14.5px; }
.stat-sub { color: var(--text-faint); font-family: var(--font-mono); font-size: 12px; }

/* =========================================================
   International Markets
   ========================================================= */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}
.market-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.market-flag { font-size: 32px; display: block; margin-bottom: 12px; }
.market-card h3 { font-size: 15px; color: var(--text-dim); font-weight: 500; }

.network-map { width: 100%; height: auto; opacity: 0.9; }
.net-lines line { stroke: var(--border); stroke-width: 1; }
.net-nodes circle { fill: var(--accent-2); opacity: 0.8; }
.net-node-center { fill: var(--accent); }

/* =========================================================
   Tools
   ========================================================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tool-group h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.tool-chips { display: flex; flex-direction: column; gap: 10px; }
.chip {
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.chip:hover { border-color: var(--accent); transform: translateX(3px); }

/* =========================================================
   Certifications
   ========================================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.cert-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.35); }
.cert-icon { color: var(--accent-2); font-size: 18px; }
.cert-card h3 { font-size: 15.5px; margin: 14px 0 6px; line-height: 1.35; }
.cert-card p { color: var(--text-faint); font-size: 13px; }

/* =========================================================
   Education
   ========================================================= */
.edu-timeline { display: flex; flex-direction: column; gap: 0; margin-bottom: 56px; }
.edu-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline;
}
.edu-item:first-child { border-top: 1px solid var(--border-soft); }
.edu-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-2); }
.edu-item h3 { font-size: 17px; margin-bottom: 4px; }
.edu-item p { color: var(--text-dim); font-size: 14.5px; }

.lang-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); font-family: var(--font-mono); font-weight: 500; margin-bottom: 18px; }
.lang-list { display: flex; gap: 14px; flex-wrap: wrap; }
.lang-item {
  font-size: 14.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-item em { color: var(--text-faint); font-style: normal; font-family: var(--font-mono); font-size: 12px; }

/* =========================================================
   Contact
   ========================================================= */
.section-contact { padding-bottom: calc(var(--section-pad) - 20px); }
.contact-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.contact-head .section-lede { margin-left: auto; margin-right: auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.contact-info {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-info p { font-size: 14.5px; color: var(--text-dim); }
.contact-info span { display: inline-block; width: 76px; color: var(--text-faint); font-family: var(--font-mono); font-size: 12px; }

.contact-form {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
.form-row input, .form-row textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.25s ease;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); outline: none; }
.form-row input.invalid, .form-row textarea.invalid { border-color: #F87171; }
.form-error { display: block; min-height: 18px; font-size: 12.5px; color: #F87171; margin-top: 6px; }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.form-success.show { display: flex; opacity: 1; transform: translateY(0); }
.form-success-icon {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #34D399;
  color: #06231a;
  font-size: 12px;
  flex-shrink: 0;
}
.form-success p { color: #6EE7B7; font-size: 14px; }

/* =========================================================
   Footer
   ========================================================= */
.footer { border-top: 1px solid var(--border-soft); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer p { color: var(--text-faint); font-size: 13.5px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-faint); font-size: 13.5px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent-2); }

.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  z-index: 900;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent-2); }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-panel { grid-template-columns: 1fr; }
  .split-connector { display: none; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .case-study { grid-template-columns: 1fr; padding: 32px; }
  .stats-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 28px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-link { width: 100%; padding: 12px 0; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-sm.btn-ghost { display: none; }

  .edu-item { grid-template-columns: 1fr; gap: 6px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
