/* ===================================
   PORTFOLIO — LEAD PRODUCT MANAGER
   Light Mode · Glassmorphism · Mesh Gradients
   Accents: Emerald Green + Deep Violet
   =================================== */

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

/* === VARIABLES === */
:root {
  --accent-green:       #059669;
  --accent-green-dark:  #047857;
  --accent-green-light: rgba(5, 150, 105, 0.10);
  --accent-green-mid:   rgba(5, 150, 105, 0.18);

  --accent-purple:       #7c3aed;
  --accent-purple-dark:  #6d28d9;
  --accent-purple-light: rgba(124, 58, 237, 0.10);
  --accent-purple-mid:   rgba(124, 58, 237, 0.18);

  --text-primary:   #111128;
  --text-secondary: #4e4e6e;
  --text-tertiary:  #8080a8;

  --bg-primary: #f5f5fb;
  --bg-white:   #ffffff;
  --bg-card:    rgba(255, 255, 255, 0.82);

  --border:     rgba(15, 15, 40, 0.08);
  --border-mid: rgba(15, 15, 40, 0.14);

  --glow-green:  0 0 28px rgba(5, 150, 105, 0.20), 0 0 64px rgba(5, 150, 105, 0.09);
  --glow-purple: 0 0 28px rgba(109, 40, 217, 0.20), 0 0 64px rgba(109, 40, 217, 0.09);
  --glow-mixed:  0 0 28px rgba(5, 150, 105, 0.14), 0 0 64px rgba(109, 40, 217, 0.10);

  --shadow-sm: 0 1px 6px  rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 52px rgba(0, 0, 0, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
          'Helvetica Neue', Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
}

/* ===================================
   GRADIENT STROKE MIXIN (reused via ::after)
   =================================== */
@keyframes strokeShimmer {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ===================================
   HEADER — GLASSMORPHISM
   =================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(245, 245, 251, 0.90) 35%,
    rgba(245, 245, 251, 0.96) 100%
  );
  border-bottom: 1px solid rgba(15, 15, 40, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.80),
    0 4px 32px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition), background var(--transition);
  overflow: hidden;
}

/* Light refraction sheen sweeping across */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 10%,
    rgba(5, 150, 105, 0.06) 35%,
    rgba(124, 58, 237, 0.05) 55%,
    transparent 75%
  );
  background-size: 250% 250%;
  animation: headerSheen 9s ease-in-out infinite;
  pointer-events: none;
}

/* Animated gradient sweep on the bottom edge */
.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(110, 231, 183, 0.50) 30%,
    rgba(196, 181, 253, 0.60) 50%,
    rgba(110, 231, 183, 0.50) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: headerBorder 5s linear infinite;
  pointer-events: none;
  opacity: 0.85;
}

@keyframes headerSheen {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

@keyframes headerBorder {
  0%   { background-position:  100% 0; }
  100% { background-position: -100% 0; }
}

.header.scrolled {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(245, 245, 251, 0.96) 35%,
    rgba(245, 245, 251, 0.99) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    0 4px 44px rgba(0, 0, 0, 0.10),
    0 0 0 1px rgba(5, 150, 105, 0.08);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.6; }
.logo-dot { color: var(--accent-green); }

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.1px;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-purple));
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active { color: var(--text-primary); }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ===================================
   LANGUAGE SWITCHER
   =================================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 100px;
  background: rgba(15, 15, 40, 0.05);
  border: 1px solid rgba(15, 15, 40, 0.10);
}

.lang-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
  padding: 4px 9px;
  border-radius: 100px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  font-family: var(--font);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-secondary);
}

.lang-btn.active {
  background: rgba(5, 150, 105, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(5, 150, 105, 0.28);
}

/* Mobile lang switcher in mobile nav */
.mobile-lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 100px;
  background: rgba(15, 15, 40, 0.05);
  border: 1px solid rgba(15, 15, 40, 0.10);
  margin: 14px 0 4px;
  align-self: flex-start;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  width: 40px; height: 40px;
}

.burger-line {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.burger.open .burger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open .burger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height); left: 0; right: 0;
  background: rgba(245, 245, 251, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(15, 15, 40, 0.08);
  padding: 16px 20px 28px;
  flex-direction: column;
  z-index: 99;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition);
}
.mobile-nav.open { display: flex; opacity: 1; transform: translateY(0); }

.mobile-nav-link {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 15, 40, 0.07);
  transition: color var(--transition);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--accent-green); }

/* ===================================
   LAYOUT
   =================================== */
.page {
  padding-top: var(--header-height);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
}

.section    { padding: 104px 0; }
.section-sm { padding: 64px 0; }
.section-xs { padding: 40px 0; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.20), rgba(124, 58, 237, 0.20), transparent);
}

/* ===================================
   TYPOGRAPHY
   =================================== */
.heading-xl {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.04;
  color: var(--text-primary);
}

.heading-lg {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -1.8px;
  line-height: 1.1;
  color: var(--text-primary);
}

.heading-md {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--text-primary);
}

.heading-sm {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.3;
  color: var(--text-primary);
}

.text-xl { font-size: 20px; line-height: 1.65; color: var(--text-secondary); }
.text-lg  { font-size: 18px; line-height: 1.70; color: var(--text-secondary); }
.text-md  { font-size: 16px; line-height: 1.70; color: var(--text-secondary); }
.text-sm  { font-size: 14px; line-height: 1.60; color: var(--text-tertiary);  }

.accent      { color: var(--accent-green); }
.accent-blue { color: var(--accent-purple); }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 18px;
}

.section-label-blue {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 18px;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  transition: var(--transition);
  letter-spacing: -0.1px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background:
    linear-gradient(135deg, rgba(5, 150, 105, 0.14) 0%, rgba(124, 58, 237, 0.14) 100%),
    #ffffff;
  color: var(--text-primary);
  border: 1.5px solid rgba(5, 150, 105, 0.35);
}
.btn-primary:hover {
  background:
    linear-gradient(135deg, rgba(5, 150, 105, 0.22) 0%, rgba(124, 58, 237, 0.22) 100%),
    #ffffff;
  border-color: rgba(5, 150, 105, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(5, 150, 105, 0.18), 0 0 0 1px rgba(5, 150, 105, 0.14);
}

.btn-outline {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(5, 150, 105, 0.06) 100%),
    rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1.5px solid rgba(124, 58, 237, 0.28);
}
.btn-outline:hover {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.14) 0%, rgba(5, 150, 105, 0.10) 100%),
    rgba(255, 255, 255, 0.85);
  border-color: rgba(124, 58, 237, 0.50);
  color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.16), 0 0 0 1px rgba(124, 58, 237, 0.12);
}

.btn-green {
  background:
    linear-gradient(135deg, rgba(5, 150, 105, 0.14) 0%, rgba(124, 58, 237, 0.14) 100%),
    #ffffff;
  color: var(--text-primary);
  border: 1.5px solid rgba(5, 150, 105, 0.35);
}
.btn-green:hover {
  background:
    linear-gradient(135deg, rgba(5, 150, 105, 0.22) 0%, rgba(124, 58, 237, 0.22) 100%),
    #ffffff;
  border-color: rgba(5, 150, 105, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(5, 150, 105, 0.18), 0 0 0 1px rgba(5, 150, 105, 0.14);
}

/* ===================================
   HERO
   =================================== */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 600px; }

.hero-visual { flex-shrink: 0; }

.hero-photo-frame {
  position: relative;
  width: 340px;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(15, 15, 40, 0.10);
  box-shadow:
    0 0 80px rgba(5, 150, 105, 0.12),
    0 0 160px rgba(124, 58, 237, 0.08),
    0 32px 96px rgba(0, 0, 0, 0.16);
}

/* Gradient border overlay */
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    150deg,
    rgba(110, 231, 183, 0.50) 0%,
    rgba(167, 139, 250, 0.38) 50%,
    rgba(110, 231, 183, 0.22) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* Ambient glow beneath the photo */
.hero-photo-frame::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80px;
  background: radial-gradient(ellipse, rgba(110, 231, 183, 0.18) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  margin-bottom: 28px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(5, 150, 105, 0.28);
  background: rgba(5, 150, 105, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
  animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%,100% { opacity: 1; transform: scale(1);    box-shadow: 0 0 0 0   rgba(110, 231, 183, 0.5); }
  50%     { opacity: 0.8; transform: scale(0.84); box-shadow: 0 0 0 6px rgba(110, 231, 183, 0);   }
}

.hero-title  { margin-bottom: 24px; }
.hero-desc   { max-width: 520px; margin-bottom: 48px; }

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

/* ===================================
   CASE CARDS — GLASSMORPHISM + GRADIENT STROKE
   =================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(15, 15, 40, 0.09);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* Ambient glow tint on hover */
.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg,
    rgba(110, 231, 183, 0.07) 0%,
    rgba(167, 139, 250, 0.05) 50%,
    transparent 80%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

/* Gradient stroke border */
.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(110, 231, 183, 0.40),
    rgba(167, 139, 250, 0.30),
    rgba(110, 231, 183, 0.20));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.case-card:hover {
  transform: translateY(-7px);
  border-color: transparent;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), var(--glow-mixed);
}
.case-card:hover::before { opacity: 1; }
.case-card:hover::after  { opacity: 1; }

.case-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.case-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.case-metric {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(5, 150, 105, 0.10);
  color: var(--accent-green);
  border: 1px solid rgba(5, 150, 105, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.case-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.3;
  color: var(--text-primary);
}

.case-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  flex: 1;
}

.case-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
  transition: gap var(--transition), color var(--transition);
}
.case-card:hover .case-arrow { gap: 11px; color: var(--accent-purple); }

.cases-cta-row {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.cases-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}

.cases-all-link:hover {
  color: var(--accent-purple);
  border-color: var(--accent-purple);
  gap: 12px;
}

/* ===================================
   PRINCIPLES / HOW I WORK
   =================================== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.principle-card {
  padding: 36px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 40, 0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.principle-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(110, 231, 183, 0.30),
    rgba(167, 139, 250, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.principle-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.10), 0 0 24px rgba(5, 150, 105, 0.10);
  transform: translateY(-4px);
}
.principle-card:hover::after { opacity: 1; }

.principle-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 14px;
}

.principle-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.principle-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===================================
   CTA SECTION — GLASS + GRADIENT BORDER
   =================================== */
.cta-section {
  text-align: center;
  padding: 120px 0;
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 48px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Animated gradient border on CTA */
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(110, 231, 183, 0.30),
    rgba(167, 139, 250, 0.30),
    rgba(110, 231, 183, 0.15),
    rgba(167, 139, 250, 0.20));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

/* Soft interior glow */
.cta-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(110, 231, 183, 0.04) 0%,
    rgba(167, 139, 250, 0.03) 50%,
    transparent 80%);
  pointer-events: none;
}

.cta-inner .heading-lg { margin-bottom: 18px; }
.cta-inner .text-lg    { margin-bottom: 44px; }

/* ===================================
   TWO COLUMN LAYOUTS
   =================================== */
.two-col        { display: grid; grid-template-columns: 1fr 1fr;     gap: 80px; align-items: start; }
.two-col-narrow { display: grid; grid-template-columns: 1fr 1.7fr;  gap: 80px; align-items: start; }

/* ===================================
   SKILLS
   =================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-card {
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 40, 0.08);
  transition: var(--transition);
}
.skill-card:hover {
  border-color: rgba(124, 58, 237, 0.30);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 0 18px rgba(124, 58, 237, 0.10);
  transform: translateY(-2px);
}

.skill-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 14px;
}

.skill-list { display: flex; flex-direction: column; gap: 9px; }

.skill-item {
  font-size: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-item::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
}

/* ===================================
   CERTIFICATIONS
   =================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 40, 0.08);
  transition: var(--transition);
  text-decoration: none;
}

.cert-card:hover {
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 0 18px rgba(5, 150, 105, 0.12);
  transform: translateY(-2px);
}

.cert-issuer {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.cert-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  flex: 1;
  margin-bottom: 18px;
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cert-date {
  font-size: 13px;
  color: var(--text-tertiary);
}

.cert-link-icon {
  color: var(--text-tertiary);
  transition: color var(--transition);
  flex-shrink: 0;
}

.cert-card:hover .cert-link-icon {
  color: var(--accent-green);
}

/* ===================================
   QUOTE BLOCK
   =================================== */
.quote-block {
  padding: 32px 36px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 40, 0.08);
  border-left: 3px solid var(--accent-green);
}
.quote-block p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
}

/* ===================================
   THINKING PAGE
   =================================== */
.thinking-list { display: flex; flex-direction: column; }

.thinking-article {
  padding: 56px 0;
  border-bottom: 1px solid rgba(15, 15, 40, 0.08);
  transition: var(--transition);
}
.thinking-article:first-child { padding-top: 0; }
.thinking-article:last-child  { border-bottom: none; padding-bottom: 0; }

.article-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 14px;
}

.article-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.article-body { max-width: 640px; }
.article-body p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.article-body p:last-child { margin-bottom: 0; }

/* ===================================
   CONTACT PAGE
   =================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 36px; }
.contact-item { display: flex; flex-direction: column; gap: 6px; }

.contact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.contact-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition);
}
a.contact-value:hover { color: var(--accent-green); }

.contact-social { display: flex; gap: 14px; margin-top: 4px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(15, 15, 40, 0.12);
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}
.social-link:hover {
  color: var(--accent-green);
  border-color: rgba(5, 150, 105, 0.40);
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.14);
  transform: translateY(-2px);
}

/* Form */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 13px 17px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(15, 15, 40, 0.12);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(5, 150, 105, 0.50);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.10);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-tertiary); }

/* ===================================
   CASE STUDY PAGE
   =================================== */
.case-hero-section { padding: 64px 0 56px; }

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 48px;
  transition: color var(--transition);
}
.case-back:hover { color: var(--accent-green); }

.case-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(5, 150, 105, 0.10);
  border: 1px solid rgba(5, 150, 105, 0.28);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 24px;
}

.case-meta-row {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(15, 15, 40, 0.08);
}

.case-meta-item { display: flex; flex-direction: column; gap: 4px; }

.case-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.case-meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.case-body-section {
  padding: 56px 0;
  border-bottom: 1px solid rgba(15, 15, 40, 0.08);
}
.case-body-section:last-child { border-bottom: none; }

.case-section-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 12px;
}

.case-section-heading {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.case-content p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 640px;
}
.case-content p:last-child { margin-bottom: 0; }

.case-content ul { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }

.case-content ul li {
  font-size: 15px;
  line-height: 1.68;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 600px;
}
.case-content ul li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
  margin-top: 9px;
}

/* Impact metrics */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.impact-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 40, 0.08);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.impact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(110, 231, 183, 0.35),
    rgba(167, 139, 250, 0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.impact-card:hover {
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12), var(--glow-mixed);
}
.impact-card:hover::after { opacity: 1; }

.impact-number {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.impact-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===================================
   ABOUT PAGE
   =================================== */
.about-photo-wrap {
  margin-bottom: 32px;
}

.about-photo-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow:
    0 0 0 5px rgba(5, 150, 105, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.14),
    0 0 40px rgba(5, 150, 105, 0.12);
  display: block;
}

.about-statement {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.35;
  color: var(--text-primary);
  max-width: 680px;
}
.about-statement span { color: var(--text-secondary); font-weight: 400; }

.experience-timeline { display: flex; flex-direction: column; gap: 28px; }

.timeline-item {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 40, 0.08);
  transition: var(--transition);
}
.timeline-item:hover {
  border-color: rgba(5, 150, 105, 0.25);
  transform: translateX(5px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), -5px 0 24px rgba(5, 150, 105, 0.08);
}

.timeline-year {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent-green);
  white-space: nowrap;
  min-width: 80px;
  padding-top: 2px;
}

.timeline-content {}
.timeline-role   { font-size: 16px; font-weight: 600; color: var(--text-primary);   margin-bottom: 4px;  }
.timeline-company{ font-size: 13px;                   color: var(--text-tertiary);  margin-bottom: 10px; }
.timeline-desc   { font-size: 14px; line-height: 1.65; color: var(--text-secondary); }

/* ===================================
   FOOTER
   =================================== */
.footer {
  padding: 44px 0;
  border-top: 1px solid rgba(15, 15, 40, 0.09);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy { font-size: 13px; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 28px; }
.footer-link  { font-size: 13px; color: var(--text-tertiary); transition: color var(--transition); }
.footer-link:hover { color: var(--accent-green); }

/* ===================================
   UTILITY
   =================================== */
.text-center { text-align: center; }
.text-left   { text-align: left; }

.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }
.mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ===================================
   FADE IN ANIMATION
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-delay-1 { transition-delay: 0.10s; }
.fade-in-delay-2 { transition-delay: 0.20s; }
.fade-in-delay-3 { transition-delay: 0.30s; }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .container, .container-narrow { padding: 0 28px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
    text-align: left;
  }

  .hero-visual {
    display: flex;
    justify-content: flex-start;
    order: -1;
  }

  .hero-photo-frame {
    width: 260px;
    height: 305px;
  }

  .cards-grid        { grid-template-columns: 1fr 1fr; }
  .principles-grid   { grid-template-columns: 1fr 1fr; }
  .two-col,
  .two-col-narrow    { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout    { grid-template-columns: 1fr; gap: 48px; }
  .skills-grid       { grid-template-columns: 1fr 1fr; }
  .cert-grid         { grid-template-columns: 1fr 1fr; }
  .impact-grid       { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }

  .header-inner { padding: 0 20px; }
  .container, .container-narrow { padding: 0 20px; }

  .nav           { display: none; }
  .burger        { display: flex; }
  .lang-switcher { display: none; }

  .section      { padding: 72px 0; }
  .cta-section  { padding: 80px 0; }
  .cta-inner    { padding: 44px 28px; }

  .hero {
    padding: 56px 0;
    min-height: calc(100svh - var(--header-height));
  }

  .hero-photo-frame {
    width: 220px;
    height: 258px;
  }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; max-width: 280px; }

  .cards-grid      { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .skills-grid     { grid-template-columns: 1fr; }
  .cert-grid       { grid-template-columns: 1fr; }

  .footer-inner  { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links  { flex-wrap: wrap; justify-content: center; }

  .case-meta-row { gap: 24px; }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .form-row     { grid-template-columns: 1fr; }
  .two-col, .two-col-narrow { gap: 40px; }
  .article-title { font-size: 24px; }
}

@media (max-width: 480px) {
  .impact-grid  { grid-template-columns: 1fr; }
  .case-metric  { display: none; }
}

/* ===================================
   CASE STUDY — VISUAL BLOCKS
   =================================== */
.case-visual {
  margin-top: 36px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 40, 0.08);
  overflow: visible;
  position: relative;
}

.case-visual-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

/* --- Funnel Chart --- */
.funnel-chart { display: flex; flex-direction: column; gap: 10px; }

.funnel-row {
  display: grid;
  grid-template-columns: 130px 1fr 48px;
  align-items: center;
  gap: 14px;
}

.funnel-stage {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

.funnel-bar-wrap {
  height: 34px;
  background: rgba(15, 15, 40, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.funnel-bar {
  height: 100%;
  width: 100%;
  border-radius: 6px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.funnel-bar-full {
  background: linear-gradient(90deg, #34d399, #6ee7b7);
  opacity: 0.85;
}

.funnel-bar-mid {
  background: linear-gradient(90deg, rgba(196,181,253,0.65), rgba(167,139,250,0.38));
}

.funnel-bar-low {
  background: linear-gradient(90deg, rgba(110,231,183,0.38), rgba(52,211,153,0.22));
}

.funnel-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.funnel-note {
  padding-left: calc(130px + 14px);
  margin: 2px 0;
}

.funnel-note-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(252, 165, 165, 0.85);
  padding: 4px 10px;
  background: rgba(252, 165, 165, 0.07);
  border-radius: 4px;
  border-left: 2px solid rgba(252, 165, 165, 0.38);
}

/* --- Flow Diagram --- */
.flow-diagram { display: flex; flex-direction: column; gap: 20px; }

.flow-row-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.flow-row-label.old { color: rgba(252, 165, 165, 0.75); }
.flow-row-label.new { color: var(--accent-green); }

.flow-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  row-gap: 6px;
}

.flow-box {
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.flow-box.old {
  background: rgba(252, 165, 165, 0.06);
  border: 1px solid rgba(252, 165, 165, 0.18);
  color: rgba(252, 165, 165, 0.8);
}

.flow-box.new {
  background: rgba(110, 231, 183, 0.07);
  border: 1px solid rgba(110, 231, 183, 0.20);
  color: #6ee7b7;
}

.flow-box.win {
  background: rgba(110, 231, 183, 0.14);
  border: 1px solid rgba(110, 231, 183, 0.35);
  color: #34d399;
  font-weight: 700;
}

.flow-box.deferred {
  background: rgba(196, 181, 253, 0.07);
  border: 1px solid rgba(196, 181, 253, 0.20);
  color: var(--accent-purple);
}

.flow-arrow {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin: 0 1px;
}

.flow-end {
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.flow-end.bad {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: rgba(252, 165, 165, 0.9);
}

.flow-end.good {
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.32);
  color: #34d399;
}

.flow-sep {
  height: 1px;
  background: rgba(15, 15, 40, 0.08);
}

/* --- Activation Comparison Chart --- */
.activation-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.act-row {
  display: grid;
  grid-template-columns: 56px 1fr 68px;
  align-items: center;
  gap: 14px;
}

.act-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
}

.act-bar-wrap {
  height: 34px;
  background: rgba(15, 15, 40, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.act-bar {
  height: 100%;
  width: 100%;
  border-radius: 6px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.act-bar.before {
  background: linear-gradient(90deg, rgba(196,181,253,0.55), rgba(167,139,250,0.30));
}

.act-bar.target {
  background: rgba(110,231,183,0.15);
  outline: 1px dashed rgba(110,231,183,0.28);
  outline-offset: -1px;
}

.act-bar.after {
  background: linear-gradient(90deg, #34d399, #6ee7b7);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.22);
}

.act-value {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.act-value.before { color: var(--accent-purple); }
.act-value.target { color: var(--text-tertiary); }
.act-value.after  { color: var(--accent-green); }

/* --- Impact Metric Cards --- */
.impact-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.impact-metric {
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 40, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.impact-metric::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(110,231,183,0.28), rgba(167,139,250,0.22));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

.impact-metric-num {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.impact-metric-lbl {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

@media (max-width: 768px) {
  .funnel-row { grid-template-columns: 96px 1fr 44px; }
  .funnel-stage { font-size: 11px; }
  .funnel-note { padding-left: calc(96px + 14px); }
  .act-row { grid-template-columns: 48px 1fr 60px; }
  .act-label { font-size: 11px; }
  .impact-metrics { grid-template-columns: 1fr 1fr; }
  .flow-box { font-size: 10px; padding: 5px 9px; }
}

@media (max-width: 480px) {
  .case-visual { padding: 20px 16px; }
  .impact-metrics { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 76px 1fr 40px; }
  .funnel-note { padding-left: calc(76px + 14px); }
}

/* ===================================
   DARK MODE TOGGLE BUTTON
   =================================== */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-mid);
  background: rgba(15, 15, 40, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--accent-green);
  border-color: rgba(5, 150, 105, 0.40);
  box-shadow: 0 0 18px rgba(5, 150, 105, 0.14);
  transform: scale(1.08);
}
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }

/* ===================================
   DARK MODE — VARIABLES
   =================================== */
[data-theme="dark"] {
  --text-primary:   #dcdcf0;
  --text-secondary: #7272a8;
  --text-tertiary:  #48487c;

  --bg-primary: #080814;
  --bg-white:   #0e0e24;
  --bg-card:    rgba(14, 14, 36, 0.90);

  --border:     rgba(255, 255, 255, 0.07);
  --border-mid: rgba(255, 255, 255, 0.12);

  --glow-green:  0 0 28px rgba(5, 150, 105, 0.30), 0 0 64px rgba(5, 150, 105, 0.16);
  --glow-purple: 0 0 28px rgba(109, 40, 217, 0.30), 0 0 64px rgba(109, 40, 217, 0.16);
  --glow-mixed:  0 0 28px rgba(5, 150, 105, 0.22), 0 0 64px rgba(109, 40, 217, 0.18);

  --shadow-sm: 0 1px 6px  rgba(0, 0, 0, 0.40);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.50);
  --shadow-lg: 0 12px 52px rgba(0, 0, 0, 0.60);
}

[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ===================================
   DARK MODE — HEADER
   =================================== */
[data-theme="dark"] .header {
  background: linear-gradient(
    180deg,
    rgba(8, 8, 20, 0.86) 0%,
    rgba(10, 10, 26, 0.92) 35%,
    rgba(10, 10, 26, 0.97) 100%
  );
  border-bottom-color: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 32px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .header.scrolled {
  background: linear-gradient(
    180deg,
    rgba(8, 8, 20, 0.92) 0%,
    rgba(10, 10, 26, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 4px 44px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(5, 150, 105, 0.10);
}

/* ===================================
   DARK MODE — MOBILE NAV
   =================================== */
[data-theme="dark"] .mobile-nav {
  background: rgba(10, 10, 26, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .mobile-nav-link {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .lang-switcher,
[data-theme="dark"] .mobile-lang-switcher {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
}

/* ===================================
   DARK MODE — GLASS CARDS
   =================================== */
[data-theme="dark"] .case-card,
[data-theme="dark"] .principle-card,
[data-theme="dark"] .skill-card,
[data-theme="dark"] .cert-card,
[data-theme="dark"] .impact-card,
[data-theme="dark"] .impact-metric,
[data-theme="dark"] .timeline-item,
[data-theme="dark"] .quote-block,
[data-theme="dark"] .case-visual {
  background: rgba(14, 14, 36, 0.88);
  border-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .cta-inner {
  background: rgba(14, 14, 36, 0.92);
}
[data-theme="dark"] .hero-photo-frame {
  background: rgba(14, 14, 36, 0.90);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ===================================
   DARK MODE — BUTTONS
   =================================== */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-green {
  background:
    linear-gradient(135deg, rgba(5, 150, 105, 0.20) 0%, rgba(124, 58, 237, 0.20) 100%),
    rgba(14, 14, 36, 0.90);
  border-color: rgba(5, 150, 105, 0.45);
  color: var(--text-primary);
}
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-green:hover {
  background:
    linear-gradient(135deg, rgba(5, 150, 105, 0.30) 0%, rgba(124, 58, 237, 0.30) 100%),
    rgba(14, 14, 36, 0.90);
}
[data-theme="dark"] .btn-outline {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.14) 0%, rgba(5, 150, 105, 0.10) 100%),
    rgba(14, 14, 36, 0.88);
  border-color: rgba(124, 58, 237, 0.38);
  color: var(--text-primary);
}
[data-theme="dark"] .btn-outline:hover {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.22) 0%, rgba(5, 150, 105, 0.16) 100%),
    rgba(14, 14, 36, 0.88);
}

/* ===================================
   DARK MODE — FORM + SOCIAL
   =================================== */
[data-theme="dark"] .social-link {
  background: rgba(14, 14, 36, 0.80);
  border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  background: rgba(14, 14, 36, 0.90);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}
[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: var(--text-tertiary);
}

/* ===================================
   DARK MODE — DIVIDERS & BORDERS
   =================================== */
[data-theme="dark"] .divider {
  background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.28), rgba(124, 58, 237, 0.28), transparent);
}
[data-theme="dark"] .footer {
  border-top-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .thinking-article {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .case-meta-row {
  border-top-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .case-body-section {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

/* ===================================
   DARK MODE — CHART ELEMENTS
   =================================== */
[data-theme="dark"] .funnel-bar-wrap,
[data-theme="dark"] .act-bar-wrap {
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .flow-sep {
  background: rgba(255, 255, 255, 0.08);
}

/* ===================================
   MESH GRADIENT BACKGROUND
   =================================== */
#mesh-gradient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
}

/* Lift page content above the canvas layer */
.page,
.footer {
  position: relative;
  z-index: 1;
}
