/* ─────────────────────────────────────────────
   arunkmishra.com — shared design system
   Edit this file to change design across ALL pages
───────────────────────────────────────────── */

:root {
  --bg: #0B0E11;
  --panel: #1A1F26;
  --border: #262C35;
  --text: #E8E6E1;
  --muted: #9CA3AF;
  --accent: #5EEAD4;
  --warn: #F59E0B;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
html { scroll-behavior: smooth; }

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,14,17,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
nav .nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.nav-name {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: none;
}
.nav-name:hover { opacity: 0.8; text-decoration: none; }
.nav-links {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 15px;
}
@media (max-width: 900px) {
  .nav-links { gap: 13px; font-size: 13px; }
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-panel {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.nav-mobile-panel.open { max-height: calc(100vh - 64px); overflow-y: auto; }
.nav-mobile-panel a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.nav-mobile-panel a:last-child { border-bottom: none; }
.nav-mobile-panel a.active { color: var(--accent); font-weight: 600; }
.nav-mobile-panel a:hover { color: var(--accent); }

/* ── LAYOUT ── */
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 920px;
}
h1 .accent { color: var(--accent); }
.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 920px;
}

/* ── SECTIONS ── */
section { padding: 72px 0; border-top: 1px solid var(--border); }
section.no-border { border-top: none; }
.section-eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.section-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}
.section-head { margin-bottom: 40px; }

/* ── CARDS ── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
@keyframes sweep { 0%{left:-40%} 50%{left:100%} 100%{left:100%} }
.card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}
.card-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
}
.card-outlet {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ── PAGE-SPECIFIC CARDS (migrated from per-page <style> blocks so they stay
     part of the shared system and pick up sitewide changes automatically) ── */
.mentor-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 40px; }
.mentor-stat { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 22px; position: relative; overflow: hidden; }
.mentor-stat .num { font-family: var(--mono); font-size: 32px; font-weight: 700; color: var(--accent); }
.mentor-stat .lbl { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.topic-pill {
  display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; margin: 4px 4px 0 0;
}

.book-hero { background: var(--panel); border: 1px solid rgba(94,234,212,0.25); border-radius: 12px; padding: 48px; text-align: center; max-width: 640px; margin: 0 auto; position: relative; overflow: hidden; }
.book-status { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 20px; }
.book-title { font-size: 26px; font-weight: 600; line-height: 1.3; margin-bottom: 16px; }
.book-sub { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.notify-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.notify-input { flex: 1; background: #11151A; border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; color: var(--text); font-family: var(--sans); font-size: 14px; }
.notify-input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.book-note { font-size: 12px; color: var(--muted); margin-top: 12px; opacity: 0.7; }
.chapter-card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 20px; position: relative; overflow: hidden; }
.chapter-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.chapter-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.talk-card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 28px; margin-bottom: 16px; position: relative; overflow: hidden; }
.talk-event { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; }
.talk-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.talk-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.topic-card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 18px; position: relative; overflow: hidden; }
.topic-card strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.topic-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── AMBIENT GLOW ── one consistent sweep animation, applied to every card/block sitewide */
.card, .cap-card, .fp-card, .testimonial-card, .lp-card, .resume-strip, .about-facts,
.mentor-stat, .book-hero, .chapter-card, .talk-card, .topic-card, .blog-list {
  position: relative;
  overflow: hidden;
}
.card::before, .cap-card::before, .fp-card::before, .testimonial-card::before, .lp-card::before,
.resume-strip::before, .about-facts::before, .mentor-stat::before, .book-hero::before,
.chapter-card::before, .talk-card::before, .topic-card::before, .blog-list::before {
  content: '';
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(94,234,212,0.08), transparent);
  animation: sweep 5s ease-in-out infinite;
  pointer-events: none;
}
.card:nth-of-type(2)::before, .cap-card:nth-child(2)::before, .chapter-card:nth-of-type(2)::before,
.topic-card:nth-of-type(2)::before, .testimonial-card:nth-of-type(2)::before, .mentor-stat:nth-child(2)::before { animation-delay: 1.2s; }
.card:nth-of-type(3)::before, .cap-card:nth-child(3)::before, .chapter-card:nth-of-type(3)::before,
.topic-card:nth-of-type(3)::before, .testimonial-card:nth-of-type(3)::before, .mentor-stat:nth-child(3)::before { animation-delay: 2.4s; }
.card:nth-of-type(4)::before, .cap-card:nth-child(4)::before, .chapter-card:nth-of-type(4)::before,
.topic-card:nth-of-type(4)::before { animation-delay: 3.6s; }
.chapter-card:nth-of-type(5)::before { animation-delay: 4.8s; }
.chapter-card:nth-of-type(6)::before { animation-delay: 1.8s; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.testimonial-mark { font-family: var(--sans); font-size: 32px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.testimonial-quote { font-size: 14.5px; line-height: 1.65; color: var(--text); flex-grow: 1; margin-bottom: 18px; }
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--text); }
.testimonial-title { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.testimonial-context { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-top: 8px; opacity: 0.85; }
.testimonial-strip {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 32px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.testimonial-strip-item { flex: 1; min-width: 260px; }
.testimonial-strip-quote { font-size: 15px; line-height: 1.6; color: var(--text); margin-bottom: 12px; }
.testimonial-strip-attr { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.testimonial-strip-attr span { color: var(--accent); }

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  margin: 3px 3px 0 0;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0B0E11;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--sans);
}
.btn-primary:hover { opacity: 0.9; text-decoration: none; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--mono);
}
.btn-outline:hover { background: var(--accent); color: #0B0E11; text-decoration: none; }

/* ── EYEBROW TAGS ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
  margin-bottom: 28px;
}
.eyebrow-sep {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(94,234,212,0.7);
  margin: 0 4px;
}
.audience-router {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.audience-router-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}
.audience-pill {
  background: rgba(94,234,212,0.07);
  border: 1px solid rgba(94,234,212,0.3);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.audience-pill:hover { border-color: var(--accent); background: rgba(94,234,212,0.14); text-decoration: none; }

/* ── TRACE BAR ── */
.trace {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px 24px;
  margin-bottom: 40px;
}
.trace-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.trace-label .warn { color: var(--warn); }
.trace-track {
  position: relative;
  height: 6px;
  background: #11151A;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;
}
.trace-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--warn), var(--accent));
  border-radius: 3px;
  animation: fill 2.4s ease-out 0.4s forwards;
}
@keyframes fill { to { width: 100%; } }
.trace-stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--mono);
}
.trace-stat-right { text-align: right; }
.stat-num-before { font-size: 28px; font-weight: 700; color: var(--warn); display: block; line-height: 1.2; }
.stat-num-after  { font-size: 28px; font-weight: 700; color: var(--accent); display: block; line-height: 1.2; }
.stat-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; display: block; }
.trace-arrow {
  font-size: 30px;
  color: var(--accent);
  align-self: flex-start;
  padding: 0 20px;
  opacity: 0.9;
}

/* ── CAPABILITY CARDS ── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.cap-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.cap-icon {
  color: var(--accent);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(94,234,212,0.08);
  border-radius: 7px;
  margin-bottom: 12px;
}
.cap-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.cap-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── RESUME STRIP ── */
.resume-strip {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  gap: 24px;
  margin-bottom: 0;
}
.resume-strip .rs-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.resume-strip h3 { font-size: 17px; font-weight: 600; }
.resume-strip p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ── MORE FROM ARUN PILLS ── */
.more-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pill {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── LUMENPATHS CARD ── */
.lp-card {
  background: var(--panel);
  border: 1px solid rgba(94,234,212,0.3);
  border-radius: 10px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.lp-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.lp-logo {
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  color: #0B0E11;
  font-size: 15px;
  flex-shrink: 0;
}
.lp-title { font-size: 19px; font-weight: 600; }
.lp-subtitle { font-size: 13px; color: var(--muted); margin-top: 2px; }
.lp-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 20px; }
.lp-item {
  background: #11151A;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
}
.lp-item-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.lp-item-desc { font-size: 11px; color: var(--muted); line-height: 1.5; }
.lp-item a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  margin-top: 8px;
  display: block;
}

/* ── AI WIDGET ── */
.ask-widget {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.ask-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.ask-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94,234,212,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(94,234,212,0); }
  100% { box-shadow: 0 0 0 0 rgba(94,234,212,0); }
}
.ask-messages {
  padding: 16px 20px;
  min-height: 80px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ask-msg { font-size: 14px; line-height: 1.55; max-width: 88%; }
.ask-msg.user {
  align-self: flex-end;
  background: rgba(94,234,212,0.1);
  border: 1px solid rgba(94,234,212,0.2);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 12px 12px 2px 12px;
  font-family: var(--mono);
  font-size: 13px;
}
.ask-msg.ai { color: var(--muted); padding: 4px 0; }
.ask-chips {
  padding: 8px 20px 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ask-chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  background: none;
}
.ask-chip:hover { color: var(--accent); border-color: var(--accent); }
.ask-input-row {
  display: flex;
  border-top: 1px solid var(--border);
}
.ask-input {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}
.ask-input:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ask-input::placeholder { color: var(--muted); opacity: 0.6; }
.ask-send {
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  padding: 0 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
}
.ask-send:hover { background: rgba(94,234,212,0.06); }

/* ── ABOUT SECTION ── */
.about-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}
.about-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-pullquote {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin: 4px 0 32px;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
}
.about-stat-n { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.about-stat-l { font-size: 12px; color: var(--muted); margin-top: 5px; }
.about-signature {
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: 42px;
  color: var(--accent);
  margin-top: 20px;
  line-height: 1;
}
.about-sidebar { display: flex; flex-direction: column; gap: 0; }
.about-teaser { display: flex; gap: 28px; align-items: center; }
.about-teaser-photo {
  width: 104px; height: 104px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden; position: relative;
  background: var(--panel); border: 1px solid var(--border);
}
.about-teaser-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; }
.about-teaser-photo .about-photo-placeholder { font-size: 20px; }
.about-teaser-text p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 14px; max-width: 640px; }
@media (max-width: 560px) {
  .about-teaser { flex-direction: column; align-items: flex-start; }
}
.about-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; }
.about-photo-placeholder {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 36px; font-weight: 700;
  color: var(--accent); background: var(--panel);
}
.about-facts {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.fact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.fact-item:last-child { border-bottom: none; }
.fact-label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.fact-val { font-size: 13px; color: var(--text); line-height: 1.4; }
.fact-val a { color: var(--accent); text-decoration: none; }

/* ── CONTACT SECTION ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 48px;
  align-items: start;
}
.contact-divider { background: var(--border); min-height: 320px; align-self: stretch; }
.contact-col-label { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.contact-col h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.contact-col > p { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 340px; }
.book-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.book-slot {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px; padding: 4px 10px;
}
.book-note { font-size: 12px !important; color: var(--muted); opacity: 0.7; margin-top: 12px !important; }
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
#contactFields { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form-row input, .form-row textarea {
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 14px; color: var(--text); font-family: var(--sans); font-size: 14px; resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-submit {
  background: var(--accent); color: #0B0E11; font-weight: 600; font-size: 14px;
  border: none; border-radius: 6px; padding: 13px 22px; cursor: pointer;
  width: fit-content; font-family: var(--sans);
}
.form-submit:hover { opacity: 0.9; }

.contact-success {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(94,234,212,0.07);
  border: 1px solid rgba(94,234,212,0.35);
  border-radius: 8px;
  padding: 22px;
  animation: contactSuccessIn 0.35s ease-out;
}
.contact-success-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #0B0E11;
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.contact-success-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.contact-success-sub { font-size: 14px; color: var(--muted); line-height: 1.6; }
@keyframes contactSuccessIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── TIMELINE (work page) ── */
.tl-tab-list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  padding-bottom: 0;
}
.tl-tab {
  background: none; border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 12px 18px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: -1px; transition: color 0.15s;
}
.tl-tab:hover { color: var(--text); }
.tl-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tl-tab-date { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); opacity: 0.8; }
.tl-tab.active .tl-tab-date { opacity: 1; color: var(--accent); }
.tl-panel { display: none; padding-top: 28px; }
.tl-panel.active {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0 40px;
  align-items: start;
}
.tl-panel-role { font-size: 20px; font-weight: 600; margin-bottom: 8px; grid-column: 1 / -1; }
.tl-panel-org { font-family: var(--mono); font-size: 14px; color: var(--accent); margin-bottom: 18px; grid-column: 1 / -1; }
.tl-panel p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.tl-stats {
  display: flex; flex-direction: column; gap: 20px;
  border-left: 1px solid var(--border); padding-left: 28px;
}
.tl-stat-n { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--accent); }
.tl-stat-l { font-size: 12px; color: var(--muted); }

/* ── FEATURED PROJECT CARDS ── */
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fp-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.fp-result { font-family: var(--mono); font-size: 13px; margin-bottom: 4px; }
.fp-before { color: var(--warn); font-weight: 700; font-size: 17px; }
.fp-arrow  { color: var(--muted); margin: 0 6px; }
.fp-after  { color: var(--accent); font-weight: 700; font-size: 17px; }
.fp-label  { color: var(--accent); font-weight: 700; font-size: 15px; }
.fp-card h4 { font-size: 16px; font-weight: 600; }
.fp-card p  { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── FOOTER ── */
footer {
  padding: 32px 0 56px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
footer .footer-name { color: var(--text); font-weight: 700; font-size: 16px; font-family: var(--sans); }
footer .footer-links { display: flex; gap: 24px; }
footer .footer-links a { color: var(--muted); text-decoration: none; }
footer .footer-links a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile-panel { display: flex; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .fp-grid, .lp-grid { grid-template-columns: 1fr; }
  .about-body { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px 0; }
  .contact-divider { width: 100%; height: 1px; min-height: unset; }
  .tl-panel.active { grid-template-columns: 1fr; }
  .tl-stats { border-left: none; padding-left: 0; flex-direction: row; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
  .resume-strip { flex-direction: column; align-items: flex-start; }
  .resume-strip .btn-outline { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}
@media (max-width: 480px) {
  .cap-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .trace-fill { animation: none; width: 100%; }
  .card::before, .cap-card::before, .fp-card::before, .testimonial-card::before, .lp-card::before,
  .resume-strip::before, .about-facts::before, .mentor-stat::before, .book-hero::before,
  .chapter-card::before, .talk-card::before, .topic-card::before, .blog-list::before { animation: none; display: none; }
  .ask-dot { animation: none; }
  .contact-success { animation: none; }
}

/* ── NAV: grouped "More" dropdown ── */
.nav-more { position: relative; }
.nav-more-toggle {
  font-family: var(--mono); font-size: 15px; color: var(--muted);
  cursor: pointer; display: inline-flex; align-items: center;
}
.nav-more-toggle:hover, .nav-more-toggle.active { color: var(--accent); }
.nav-more-menu {
  position: absolute; top: 100%; right: 0; margin-top: 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px; display: none; flex-direction: column; min-width: 160px; z-index: 20;
}
.nav-more-menu a {
  padding: 8px 12px; border-radius: 6px; font-family: var(--mono); font-size: 14px;
  color: var(--muted); text-decoration: none;
}
.nav-more-menu a:hover, .nav-more-menu a.active { color: var(--accent); background: rgba(94,234,212,0.06); }
.nav-more.open .nav-more-menu { display: flex; }
@media (max-width: 900px) {
  .nav-more-toggle { font-size: 13px; }
}

/* ── Floating AI widget: collapses to a corner bubble, expands on click.
     Wraps the existing ask-widget without touching its internal JS/markup. ── */
.ask-float-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 360px; max-width: calc(100vw - 32px);
}
.ask-float-wrap.collapsed .ask-widget-body { display: none; }
.ask-float-trigger {
  position: fixed; bottom: 24px; right: 24px; z-index: 51;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #0B0E11;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer; border: none;
  box-shadow: 0 4px 20px rgba(94,234,212,0.35);
}
.ask-float-wrap:not(.collapsed) ~ .ask-float-trigger { display: none; }
.ask-float-wrap.collapsed { display: none; }
@media (max-width: 560px) {
  .ask-float-wrap { right: 16px; bottom: 16px; }
  .ask-float-trigger { right: 16px; bottom: 16px; }
}

/* ── Ask AI: nav-triggered modal ── */
.ask-nav-trigger {
  background: var(--accent); color: #0B0E11; font-family: var(--mono);
  font-size: 13px; font-weight: 700; border: none; border-radius: 6px;
  padding: 8px 14px; cursor: pointer; margin-left: 4px;
}
.ask-nav-trigger:hover { opacity: 0.85; }
.ask-modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 90; backdrop-filter: blur(2px);
}
.ask-modal {
  display: none; position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 91;
  width: 480px; max-width: calc(100vw - 32px);
  max-height: 80vh; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px 24px 24px;
}
.ask-modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1;
}
.ask-modal-close:hover { color: var(--accent); }
.ask-modal-backdrop.open, .ask-modal.open { display: block; }
