/* ============================================================
   THEME — "Monochrome Black" (Linear / Vercel style)
   Near-black surfaces, thin 1px borders, grayscale imagery,
   green used only as a small functional status accent.
   ============================================================ */

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

:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --bg-card: #0c0c0c;
  --bg-card-hover: #101010;
  --bg-inset: #080808;
  --text: #f5f5f5;
  --text-secondary: #9a9a9a;
  --text-muted: #5f5f5f;
  --accent: #f5f5f5;            /* emphasis is white in this theme */
  --accent-2: #c4c4c4;
  --accent-light: rgba(255, 255, 255, 0.06);
  --accent-glow: rgba(255, 255, 255, 0.10);
  --accent-glow-soft: rgba(255, 255, 255, 0.05);
  --green: #4ade80;
  --green-dim: rgba(74, 222, 128, 0.12);
  --green-border: rgba(74, 222, 128, 0.25);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --border-accent: rgba(255, 255, 255, 0.16);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-sm: 10px;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  --nav-h: 68px;
  --glass: blur(16px);

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 99px; }

/* ===== TYPOGRAPHY ===== */
.display-1 { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.display-2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.heading-1 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

/* Numeric data — monospace + tabular figures for a dashboard feel */
.stat-number, .panel-row .delta, .stat-box .value, .panel-row .tick {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ===== LAYOUT ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; position: relative; }

/* ===== BACKGROUND GLOWS (formerly purple orbs — now faint white light) ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.bg-orb-1 {
  width: 800px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.045) 0%, transparent 70%);
  top: -250px; left: 50%; margin-left: -400px;
}
.bg-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.025) 0%, transparent 70%);
  bottom: 10%; left: -180px;
}
.bg-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  bottom: -120px; right: 15%;
}

/* All content sits above glows */
.nav, .hero, section, footer { position: relative; z-index: 1; }

/* ===== GRAIN OVERLAY ===== */
.grain {
  position: fixed;
  inset: -200px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(5,5,5,0.75);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.nav-logo span { color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta {
  padding: 8px 20px !important;
  background: var(--text) !important;
  color: var(--bg) !important;
  border-radius: 99px !important;
  font-weight: 600 !important;
  transition: opacity 0.2s var(--ease-out), transform 0.15s var(--ease-out) !important;
}
.nav-cta:hover {
  opacity: 0.85 !important;
  transform: translateY(-1px) !important;
  color: var(--bg) !important;
  background: var(--text) !important;
}
.nav-cta:active { transform: scale(0.96) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out); }
.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(5,5,5,0.96);
  backdrop-filter: var(--glass);
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.nav-mobile a { padding: 12px 24px; font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), opacity 0.2s var(--ease-out), transform 0.15s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 12px 4px; transition: color 0.2s var(--ease-out); }
.btn-ghost:hover { color: var(--text); }
.btn-ghost:active { transform: scale(0.97); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ===== BADGES (all neutral; green reserved for status) ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  font-size: 0.77rem;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
}
.badge-accent { border-color: var(--border-strong); color: var(--text); }
.badge-green { background: var(--green-dim); border-color: var(--green-border); color: var(--green); }
.badge-orange { border-color: var(--border-strong); color: var(--text-secondary); }
.badge-blue { border-color: var(--border); color: var(--text-secondary); }
.badge-gray { border-color: var(--border); color: var(--text-secondary); }

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text-muted);
}

/* ===== CARD ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, background 0.25s;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

/* ===== DIVIDER ===== */
.divider { width: 100%; height: 1px; background: var(--border); position: relative; z-index: 1; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.7s ease; }
.fade-in.visible { opacity: 1; }
.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.13s; }
.stagger-3 { transition-delay: 0.20s; }
.stagger-4 { transition-delay: 0.27s; }
.stagger-5 { transition-delay: 0.34s; }
.stagger-6 { transition-delay: 0.41s; }

/* ======================
   HERO — SPLIT SCREEN
   ====================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  position: relative;
}
/* faint white light behind the hero */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: center;
  padding: 28px 0;
  width: 100%;
}

/* Split entrance — left side */
.hero-left {
  opacity: 0;
  transform: translateX(-70px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
  will-change: transform, opacity;
}
/* Split entrance — right side */
.hero-right {
  opacity: 0;
  transform: translateX(70px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1) 0.12s, transform 0.9s cubic-bezier(0.22,1,0.36,1) 0.12s;
  will-change: transform, opacity;
}
/* Triggered by JS on load */
body.hero-ready .hero-left,
body.hero-ready .hero-right {
  opacity: 1;
  transform: translateX(0);
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  margin-bottom: 16px;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100%{ box-shadow: 0 0 0 0 rgba(74,222,128,0.45); }
  50%{ box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

/* Parallax layers */
.hero-top { margin-bottom: 16px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; will-change: transform; }
.hero-name { margin-bottom: 8px; will-change: transform; }
.hero-name .dim { color: var(--text-muted); }
.hero-headline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 14px;
  will-change: transform;
}
.hero-headline span { color: var(--text); font-weight: 600; }
.hero-text {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
  will-change: transform;
}
.hero-intro { margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== PORTFOLIO PERFORMANCE (card pulled in close, overlapping the portrait's right edge slightly) ===== */
.hero-portfolio {
  width: 300px;
  flex-shrink: 0;
  margin-left: -50px;
  position: relative;
}
.hero-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
}
.panel-title { font-size: 0.86rem; font-weight: 600; margin-bottom: 5px; }
.panel-sub { font-size: 0.74rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.panel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat-box {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.stat-box .label { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 2px; }
.stat-box .value { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-box .value.up { color: var(--green); }
.panel-rows { border-top: 1px solid var(--border); }
.panel-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  gap: 8px;
}
.panel-row .name { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; white-space: nowrap; }
.panel-row .tick {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--bg-card-hover); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: var(--text-secondary); font-weight: 700;
  flex-shrink: 0;
}
.panel-row .meta { color: var(--text-muted); font-size: 0.72rem; }
.panel-row .delta { font-size: 0.75rem; font-weight: 600; }
.delta.up { color: var(--green); }
.delta.flat { color: var(--text-muted); }

/* ===== HERO PORTRAIT (right column — card sits close, overlapping the photo's right edge slightly) ===== */
.hero-right { display: flex; flex-direction: row; align-items: center; gap: 0; }
.hero-portrait-wrap { flex: 1 1 auto; min-width: 0; }
.portrait-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 680px;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--bg-card);
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 22%;
  filter: grayscale(1) contrast(1.14) brightness(0.98);
}
.portrait-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.62) 100%),
    linear-gradient(to right, rgba(0,0,0,0.2) 0%, transparent 22%, transparent 65%, rgba(0,0,0,0.38) 100%),
    linear-gradient(to top, rgba(0,0,0,0.16) 0%, transparent 12%);
  pointer-events: none;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0.35; transition: opacity 0.3s; text-decoration: none;
}
.scroll-indicator:hover { opacity: 0.7; }
.scroll-indicator span { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.scroll-mouse { width: 22px; height: 34px; border: 2px solid var(--text-muted); border-radius: 11px; display: flex; justify-content: center; padding-top: 5px; }
.scroll-wheel { width: 3px; height: 6px; background: var(--text-secondary); border-radius: 99px; animation: scroll-anim 1.8s infinite; }
@keyframes scroll-anim { 0%{transform:translateY(0);opacity:1;} 100%{transform:translateY(8px);opacity:0;} }

/* ======================
   ABOUT
   ====================== */
.about { background: transparent; }
.about-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.about-text p { color: var(--text-secondary); margin-bottom: 20px; font-size: 1.02rem; line-height: 1.8; max-width: 65ch; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-quote {
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--text);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.97rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.7;
  font-style: italic;
}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  position: relative;
}
.stat-card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--text); letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); line-height: 1.4; }

.stat-card-ai {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.stat-card-ai::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}
.stat-card-ai:hover { border-color: var(--border-accent); }

/* ======================
   FOUNDER JOURNEY
   ====================== */
.founder { background: transparent; }

/* --- Header: intro + impact summary --- */
.founder-header-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.founder-header-left h2 { color: var(--text); margin-top: 2px; }
.founder-header-desc { color: var(--text-secondary); margin-top: 16px; font-size: 1.02rem; line-height: 1.75; max-width: 520px; }

.founder-impact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 0;
}
.impact-card-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--text-secondary);
  margin-bottom: 18px;
}
.impact-metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.impact-metric { text-align: center; padding: 0 10px 22px; border-right: 1px solid var(--border); }
.impact-metric:last-child { border-right: none; }
.impact-value {
  font-family: var(--font-mono);
  font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 4px;
}
.impact-label { font-size: 0.7rem; color: var(--text-muted); line-height: 1.35; }

/* --- Vertical alternating timeline --- */
.journey-timeline { position: relative; margin-bottom: 72px; padding: 12px 0; }
.journey-timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.16) 6%, rgba(255,255,255,0.16) 94%, transparent);
  transform: translateX(-50%);
}
.journey-row { display: flex; align-items: center; gap: 56px; position: relative; padding: 36px 0; }
.journey-col { flex: 1 1 0; min-width: 0; }
.journey-content-col { order: 1; }
.journey-image-col { order: 2; }
.journey-row-reverse .journey-content-col { order: 2; }
.journey-row-reverse .journey-image-col { order: 1; }

.journey-marker {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; flex-shrink: 0;
}
.journey-marker span { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--text); }

.journey-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s var(--ease-out);
}
.journey-card:hover { border-color: var(--border-strong); }
.journey-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.journey-icon svg { width: 19px; height: 19px; color: var(--text); }
.journey-stage-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.journey-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 10px; letter-spacing: -0.01em; }
.journey-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.journey-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.journey-tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  font-size: 0.76rem; font-weight: 600; color: var(--text);
}
.journey-result {
  display: flex; align-items: center; gap: 7px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem; font-weight: 700; color: var(--text);
}
.journey-result::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.journey-image, .journey-outcome-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--bg-card);
}
.journey-image img, .journey-outcome-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  display: block;
}
.journey-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.36) 100%),
    linear-gradient(135deg, rgba(0,0,0,0.16) 0%, transparent 45%);
  pointer-events: none;
}
.journey-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--text-muted);
  font-size: 0.74rem; text-align: center; padding: 16px;
  background: var(--bg-inset);
}
.journey-img-placeholder svg { width: 26px; height: 26px; }

/* --- Final outcome panel --- */
.journey-outcome {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}
.journey-outcome-title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 20px; letter-spacing: -0.02em; }
.journey-outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-bottom: 28px; }
.journey-outcome-item { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 500; color: var(--text); }
.journey-outcome-item svg { width: 16px; height: 16px; color: var(--text-secondary); flex-shrink: 0; }
.journey-outcome-image { aspect-ratio: 4 / 3; }

/* ======================
   SYSTEMS / PROJECTS
   ====================== */
.systems { background: transparent; }

/* --- Header: intro + impact summary (reuses the founder-impact-card component) --- */
.systems-header-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.systems-header-left h2 { color: var(--text); margin-top: 2px; }
.systems-header-desc { color: var(--text-secondary); margin-top: 16px; font-size: 1.02rem; line-height: 1.75; max-width: 480px; }

/* --- Featured projects --- */
.feat-list { display: grid; gap: 28px; margin-bottom: 56px; }
.feat-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  transition: border-color 0.25s var(--ease-out);
}
.feat-card:hover { border-color: var(--border-strong); }
.feat-card-alt { background: var(--bg-inset); }

.feat-label { font-size: 0.73rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.feat-title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 800; letter-spacing: -0.03em; color: var(--text); margin-bottom: 12px; }
.feat-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.83rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 20px; }
.status-dot-muted { background: var(--text-muted); box-shadow: none; animation: none; }
.feat-desc { font-size: 0.96rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 24px; max-width: 480px; }

.feat-capabilities { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.feat-capability { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; color: var(--text); }
.feat-capability svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }

.feat-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.feat-metric { background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 10px; text-align: center; }
.feat-card-alt .feat-metric { background: var(--bg-card); }
.feat-metric-value { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.feat-metric-label { font-size: 0.66rem; color: var(--text-muted); margin-top: 3px; line-height: 1.3; }

.feat-role { font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; margin-bottom: 24px; }
.feat-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.feat-visual { display: flex; flex-direction: column; }
.feat-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.feat-shot { position: relative; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); overflow: hidden; background: var(--bg-inset); cursor: pointer; transition: border-color 0.2s var(--ease-out); }
.feat-card-alt .feat-shot { background: var(--bg-card); }
.feat-shot:hover { border-color: var(--border-accent); }
.feat-shot-main { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.feat-shot:not(.feat-shot-main) { aspect-ratio: 4 / 3; }
.feat-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-shot-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; color: var(--text-muted);
  font-size: 0.7rem; text-align: center; padding: 8px;
}
.feat-shot-placeholder svg { width: 20px; height: 20px; }
.feat-tech-row { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); padding-top: 16px; border-top: 1px solid var(--border); margin-top: auto; }

/* --- Additional projects --- */
.additional-projects-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 22px; color: var(--text); }
.additional-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px; }
.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  display: flex; flex-direction: column;
  position: relative;
}
.proj-card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.proj-card-category { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.proj-card-name { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--text); }
.proj-card-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.proj-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; margin-bottom: 16px; }

/* Shared small tech-stack pill (still used by the Experience section) */
.tech-tag {
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  font-size: 0.77rem; font-weight: 600; color: var(--text);
}
.proj-card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); transition: color 0.2s; }
.proj-card-link:hover { color: var(--text); }

/* --- Final CTA --- */
.systems-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
}
.systems-cta-title { font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 6px; }
.systems-cta-sub { font-size: 0.92rem; color: var(--text-secondary); }

/* ======================
   SKILLS
   ====================== */
.skills { background: transparent; }
.skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  position: relative;
}
.skill-group:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.skill-group-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.skill-group-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.skill-group-icon svg { width: 14px; height: 14px; color: var(--text); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.skill-tag:hover { background: rgba(255,255,255,0.08); border-color: var(--border-strong); color: var(--text); }
.skill-tag:active { transform: scale(0.96); }

/* ======================
   EXPERIENCE
   ====================== */
.experience { background: transparent; }
.exp-grid { display: grid; gap: 14px; }
.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  position: relative;
}
.exp-card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.exp-icon {
  width: 48px; height: 48px;
  background: var(--bg-inset);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.exp-icon svg { width: 21px; height: 21px; color: var(--text); }
.exp-role { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 3px; color: var(--text); }
.exp-company { font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.exp-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ======================
   EDUCATION
   ====================== */
.education { background: transparent; }
.edu-card-main {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 28px;
}
.edu-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.edu-logo {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--bg-inset);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.edu-logo svg { width: 26px; height: 26px; color: var(--text); }
.edu-uni { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; color: var(--text); }
.edu-degree { font-size: 0.98rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 3px; }
.edu-minor { font-size: 0.88rem; color: var(--text-muted); }
.edu-date {
  font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
  padding: 6px 14px;
  background: var(--bg-inset);
  border: 1px solid var(--border); border-radius: 99px;
}
.edu-courses-title { font-size: 0.73rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.edu-courses-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.edu-course-group-title { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.edu-course-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.edu-course-list li { font-size: 0.82rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 6px; }
.edu-course-list li::before { content: '·'; color: var(--text-muted); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ======================
   PROOF / GALLERY
   ====================== */
.real-life { background: transparent; }
.real-life-intro { max-width: 600px; color: var(--text-secondary); font-size: 1rem; line-height: 1.75; margin-bottom: 44px; }
.gallery-masonry { columns: 3; gap: 14px; }
.gallery-item {
  break-inside: avoid; margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  cursor: pointer;
}
.gallery-item:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.gallery-item img { width: 100%; display: block; filter: grayscale(35%); transition: filter 0.3s; }
.gallery-item:hover img { filter: grayscale(0%); }
.proof-placeholder {
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; min-height: 150px;
  border: none;
}
.proof-placeholder svg { color: var(--text-muted); }
.proof-placeholder span { font-size: 0.73rem; color: var(--text-muted); }
.gallery-item-caption { padding: 10px 14px; font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); background: var(--bg-card); }

/* ======================
   ACHIEVEMENTS
   ====================== */
.achievements { background: transparent; }
.achievements-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.ach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  position: relative; overflow: hidden;
}
.ach-card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.ach-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  z-index: 1;
}
.ach-card-wide { grid-column: span 2; }
.ach-icon {
  width: 42px; height: 42px;
  background: var(--bg-inset);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.ach-icon svg { width: 19px; height: 19px; color: var(--text); }
.ach-number { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); margin-bottom: 4px; }
.ach-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.ach-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* ======================
   CONTACT
   ====================== */
.contact { background: transparent; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.contact-left h2 { color: var(--text); margin-bottom: 18px; }
.contact-left p { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; margin-bottom: 32px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.contact-link:hover { background: var(--bg-card-hover); border-color: var(--border-strong); }
.contact-link:active { transform: scale(0.99); }
.contact-link-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-inset) !important;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-link-icon svg { stroke: var(--text) !important; }
.contact-link-text { flex: 1; }
.contact-link-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.contact-link-value { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.contact-link-arrow { color: var(--text-muted); }
.contact-right {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 38px;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.form-input, .form-textarea {
  padding: 12px 16px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.88rem; color: var(--text);
  outline: none; transition: border-color 0.2s, background 0.2s; resize: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus { border-color: rgba(255,255,255,0.3); background: var(--bg-card-hover); }
.form-textarea { min-height: 110px; }

/* ======================
   FOOTER
   ====================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 26px 0;
  position: relative; z-index: 1;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-logo { font-size: 0.95rem; font-weight: 700; color: var(--text-secondary); }
.footer-logo span { color: var(--text); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* ======================
   LIGHTBOX
   ====================== */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s; padding: 24px;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,0.7); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border); border-radius: 50%; color: #fff; cursor: pointer;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); }

/* ======================
   BACK TO TOP
   ====================== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 500;
  width: 44px; height: 44px;
  background: var(--text); color: var(--bg); border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { opacity: 0.85; }

/* ===== INLINE CARD STYLES (used inside case studies) ===== */
.role-block {
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.role-block-title {
  font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); margin-bottom: 7px;
}
.priority-item {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.76rem; font-weight: 700; color: #fff;
}
.info-block {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-inset);
}

/* ===== SPOTLIGHT BORDER (cursor-tracking) ===== */
.case-card::after, .proj-card::after, .ach-card::after, .stat-card::after, .skill-group::after, .exp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.case-card:hover::after, .proj-card:hover::after, .ach-card:hover::after, .stat-card:hover::after, .skill-group:hover::after, .exp-card:hover::after {
  opacity: 1;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-badges, .hero-name, .hero-text, .bg-orb-1, .bg-orb-2, .bg-orb-3, .hero-photo-badge {
    transform: none !important;
  }
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "intro"
      "portrait"
      "portfolio"
      "actions";
    row-gap: 32px;
    padding: 48px 0;
  }
  .hero-left, .hero-right { display: contents; }
  .hero-top { grid-area: top; margin-bottom: 0; }
  .hero-intro { grid-area: intro; margin-bottom: 0; }
  .hero-portrait-wrap { grid-area: portrait; max-width: 400px; margin: 0 auto; width: 100%; }
  .hero-portfolio {
    grid-area: portfolio;
    position: static;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-actions { grid-area: actions; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { max-width: 400px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .additional-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: repeat(2,1fr); }
  .achievements-grid { grid-template-columns: repeat(2,1fr); }
  .edu-courses-grid { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { columns: 2; }

  /* Founder Journey — tablet: shrink spacing, keep alternating structure */
  .founder-header-grid { grid-template-columns: 1fr; gap: 32px; }
  .founder-header-desc { max-width: 100%; }
  .journey-row { gap: 32px; padding: 28px 0; }
  .journey-card { padding: 24px; }
  .journey-outcome { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .journey-outcome-image { max-width: 480px; width: 100%; margin: 0 auto; }

  /* Systems — tablet: stack featured cards, info first, screenshots below */
  .systems-header-grid { grid-template-columns: 1fr; gap: 32px; }
  .systems-header-desc { max-width: 100%; }
  .feat-card { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .feat-desc { max-width: 100%; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile.open { display: flex; }
  .hero-split { text-align: center; row-gap: 26px; }
  .hero-badges { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-portrait-wrap { max-width: calc(100% - 20px); }
  .portrait-card { aspect-ratio: auto; height: 360px; max-height: none; }
  .hero-portfolio { max-width: 100%; }
  .hero-panel { text-align: left; }
  .panel-stats { grid-template-columns: 1fr 1fr; }
  .additional-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }
  .ach-card-wide { grid-column: span 1; }
  .edu-courses-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .exp-card { grid-template-columns: 1fr; gap: 12px; }
  .edu-header { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .scroll-indicator { display: none; }
  .panel-row .meta { display: none; }

  /* Founder Journey — mobile: single column, line + markers on the left */
  .impact-metrics { grid-template-columns: repeat(2, 1fr); }
  .impact-metric { padding: 14px 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .impact-metric:nth-child(2n) { border-right: none; }
  .impact-metric:nth-child(n+3) { border-bottom: none; }

  .journey-timeline::before { left: 20px; }
  .journey-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 0 0 40px 52px;
  }
  .journey-row:last-child { padding-bottom: 0; }
  .journey-col { flex: none; width: 100%; }
  .journey-content-col, .journey-row-reverse .journey-content-col { order: 1; }
  .journey-image-col, .journey-row-reverse .journey-image-col { order: 2; }
  .journey-marker {
    left: 20px; top: 0;
    transform: translate(-50%, 0);
    width: 40px; height: 40px;
  }
  .journey-marker span { font-size: 0.75rem; }
  .journey-card { padding: 22px; }
  .journey-image { aspect-ratio: 16 / 10; }

  .journey-outcome { padding: 26px; }
  .journey-outcome-grid { grid-template-columns: 1fr; }

  /* Systems — mobile: single column, one main + one supporting screenshot only */
  .feat-card { padding: 24px; }
  .feat-metrics { grid-template-columns: 1fr; }
  .feat-actions { flex-direction: column; }
  .feat-actions .btn { width: 100%; justify-content: center; }
  .feat-shots { grid-template-columns: 1fr; }
  .feat-shot:nth-of-type(3) { display: none; }
  .feat-shot:not(.feat-shot-main) { aspect-ratio: 16 / 10; }

  .systems-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 28px; }
  .systems-cta .btn { width: 100%; justify-content: center; }
}

/* ===================================================
   CORE STRENGTHS SECTION
   =================================================== */
.section-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.csc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.csc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  position: relative;
}

.csc-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.csc-card.csc-featured {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.csc-card.csc-featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}

.csc-card.csc-featured:hover {
  border-color: var(--border-accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.csc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.csc-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.csc-icon svg { width: 16px; height: 16px; stroke: var(--text-secondary); }

.csc-card.csc-featured .csc-icon {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-strong);
}
.csc-card.csc-featured .csc-icon svg { stroke: var(--text); }

.csc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  flex: 1;
}
.csc-card.csc-featured .csc-title { color: var(--text); }

.csc-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}

.csc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.csc-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  line-height: 1.3;
}
.csc-card.csc-featured .csc-tag {
  color: var(--text-secondary);
  border-color: rgba(255,255,255,0.08);
}

/* ===================================================
   EDUCATION — MASTER'S CARD
   =================================================== */
.edu-card-current {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  margin-bottom: 20px;
}

.edu-card-current::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}

.edu-current-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.04em;
}

.edu-logo-ai svg { stroke: var(--text); }

.edu-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* stat-card for non-numeric label (M.Sc.) */
.stat-number-label {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* ===================================================
   RESPONSIVE — CORE STRENGTHS
   =================================================== */
@media (max-width: 1024px) {
  .csc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .csc-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   PROJECT / CASE-STUDY PAGES
   =================================================== */
.breadcrumb-nav {
  padding: calc(var(--nav-h) + 24px) 0 0;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb-list a { color: var(--text-secondary); transition: color 0.2s var(--ease-out); }
.breadcrumb-list a:hover { color: var(--text); }
.breadcrumb-list li[aria-current] { color: var(--text-secondary); }

.case-hero { padding: 56px 0 40px; }
.case-hero .section-label { margin-bottom: 16px; }
.case-hero h1 { margin-bottom: 20px; }
.case-hero-desc { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.75; max-width: 720px; margin-bottom: 28px; }
.case-meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }

.case-article { padding-bottom: 40px; }
.case-section { padding: 40px 0; border-top: 1px solid var(--border); }
.case-section:first-child { border-top: none; }
.case-section h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.case-section h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.case-section p { font-size: 0.98rem; color: var(--text-secondary); line-height: 1.8; max-width: 760px; margin-bottom: 14px; }
.case-section ul { margin: 0 0 14px; padding-left: 20px; max-width: 760px; }
.case-section li { font-size: 0.96rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px; }
.case-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }

.case-shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.case-shot { border-radius: var(--radius-sm); border: 1px solid var(--border-strong); overflow: hidden; background: var(--bg-inset); }
.case-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.case-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin: 8px 0 60px; }
.case-cta-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.case-cta-sub { font-size: 0.88rem; color: var(--text-muted); }

.related-projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.related-project-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; transition: border-color 0.2s var(--ease-out); }
.related-project-card:hover { border-color: var(--border-strong); }
.related-project-card .rel-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.related-project-card .rel-title { font-size: 1rem; font-weight: 700; color: var(--text); }

@media (max-width: 640px) {
  .case-shot-grid { grid-template-columns: 1fr; }
  .case-cta { flex-direction: column; align-items: stretch; text-align: center; }
}
