/* ===== Design tokens ===== */
:root {
  --bg: #f7f7fb;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --bg-muted: #eef0fa;
  --text: #14142b;
  --text-secondary: #4a4a68;
  --border: #e2e2f0;
  --accent-1: #4338ca;
  --accent-2: #9333ea;
  --accent-1-soft: #eef0ff;
  --accent-2-soft: #f6ecff;
  --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --gradient-soft: linear-gradient(135deg, var(--accent-1-soft), var(--accent-2-soft));
  --focus-ring: #4338ca;
  --shadow-sm: 0 1px 2px rgba(20, 20, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 20, 43, 0.08);
  --shadow-lg: 0 20px 48px rgba(20, 20, 43, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1140px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0a16;
  --bg-alt: #14142a;
  --bg-elevated: #1b1b36;
  --bg-muted: #1c1c38;
  --text: #f6f6ff;
  --text-secondary: #c7c7e6;
  --border: #2c2c4d;
  --accent-1: #8b93ff;
  --accent-2: #d59bff;
  --accent-1-soft: #201f45;
  --accent-2-soft: #2b1f45;
  --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --gradient-soft: linear-gradient(135deg, var(--accent-1-soft), var(--accent-2-soft));
  --focus-ring: #b7bcff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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; }
}
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-secondary); }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

/* ===== Accessibility helpers ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 1000;
  background: var(--gradient); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

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

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
main { display: block; }
section { padding: 2.25rem 0; }
@media (max-width: 640px) {
  section { padding: 1.5rem 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-head p { font-size: 1.05rem; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  gap: 1rem;
}
.logo {
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent-2);
}
.nav-controls { display: flex; align-items: center; gap: 0.6rem; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--gradient);
  color: #fff;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.btn.nav-cta {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  line-height: normal;
  border: none;
  white-space: nowrap;
  box-shadow: none;
}
@media (max-width: 560px) {
  .btn.nav-cta { display: none; }
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text);
  position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--bg-alt); color: var(--text); border-color: var(--border); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ===== Hero ===== */
.hero {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.25rem; }
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero .lede { font-size: 1.15rem; max-width: 52ch; }
.hero-text, .hero-visual { min-width: 0; }
.hero-visual { position: relative; }
.hero-photo {
  display: block;
  width: 150px; height: 150px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-alt);
  box-shadow: var(--shadow-md);
}
.kpi-stack { display: grid; gap: 1rem; min-width: 0; }
.kpi-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--gradient);
}
.kpi-card .kpi-value {
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kpi-card .kpi-label { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== Values grid ===== */
.values-grid, .cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 700px) { .values-grid, .cards-grid-2 { grid-template-columns: 1fr; } }
.value-card, .info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.value-card h3 { font-size: 1.05rem; }

/* ===== Timeline (Home) ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute; left: 6px; top: 0.4rem; bottom: 0.4rem; width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 2.2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -2rem; top: 0.3rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item .meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: baseline;
  font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.3rem;
}
.timeline-item h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.timeline-item .result { font-weight: 600; color: var(--text); }
.timeline-item .more-link { font-size: 0.9rem; font-weight: 700; white-space: nowrap; }

/* ===== Stats band ===== */
.stats-band {
  background: var(--gradient-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 0.75rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.3rem; }

/* ===== Badges / tools ===== */
.badge-group { margin-bottom: 1.75rem; }
.badge-group h3 { font-size: 0.95rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.badge-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; }
.badge-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ===== Certification badges ===== */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.cert-card {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem 1.2rem;
  text-decoration: none; color: var(--text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.cert-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cert-card .cert-icon {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--gradient); color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.cert-card .cert-title { font-weight: 700; font-size: 0.95rem; }
.cert-card .cert-sub { font-size: 0.82rem; color: var(--text-secondary); }

/* ===== Experience cards (Growth / Trade pages) ===== */
.experience {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  padding: 2.2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.experience-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border);
}
.experience-head h3 { font-size: 1.4rem; margin-bottom: 0.15rem; }
.experience-head .role { color: var(--accent-2); font-weight: 700; font-size: 0.95rem; }
.experience-head .dates { color: var(--text-secondary); font-size: 0.9rem; text-align: right; white-space: nowrap; }
.experience-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .experience-body { grid-template-columns: 1fr; } }
.experience ul.results { list-style: none; display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }
.experience ul.results li { padding-left: 1.4rem; position: relative; }
.experience ul.results li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 800;
}
.experience .result-callouts { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.2rem; }
.result-callout {
  background: var(--gradient-soft); border-radius: var(--radius-sm);
  padding: 0.6rem 1rem; font-size: 0.9rem; font-weight: 700;
}

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.gallery button {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; padding: 0; background: var(--bg-muted); cursor: pointer; aspect-ratio: 4/3;
}
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.gallery button:hover img { transform: scale(1.05); }

.video-facade {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  aspect-ratio: 16/9; background: #000; border: 1px solid var(--border);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-facade .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-facade .play span {
  width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
  box-shadow: var(--shadow-md);
}
.video-facade iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-caption { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.4rem; }

.doc-card { display: block; text-decoration: none; color: inherit; }
.doc-thumb {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; aspect-ratio: 1654 / 2339; background: var(--bg-muted);
}
.doc-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.2s ease; }
.doc-card:hover .doc-thumb img { transform: scale(1.03); }
.doc-caption { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.4rem; text-align: center; font-weight: 600; }

.condensed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1rem; }
@media (max-width: 760px) { .condensed-grid { grid-template-columns: 1fr; } }
.condensed-card { background: var(--bg-muted); border-radius: var(--radius-md); padding: 1.3rem; }
.condensed-card h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.condensed-card .tag { font-size: 0.78rem; color: var(--accent-2); font-weight: 700; text-transform: uppercase; }
.condensed-card ul { list-style: none; margin-top: 0.6rem; display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--text-secondary); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(5, 5, 15, 0.85);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 1100px); max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 1.2rem; cursor: pointer;
}

/* ===== Contact page ===== */
.contact-hero { text-align: center; padding-top: 2rem; padding-bottom: 1rem; }
.contact-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.contact-hero p { max-width: 60ch; margin-left: auto; margin-right: auto; font-size: 1.1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 2rem 0; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 760px; margin: 0 auto; }
@media (max-width: 700px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.6rem; text-align: center; text-decoration: none; color: var(--text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card .contact-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 3rem;
}
.footer-wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.9rem; color: var(--text-secondary);
}
.footer-wrap a { text-decoration: none; font-weight: 600; color: var(--text-secondary); }
.footer-wrap a:hover { color: var(--text); }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
