/* ============================================================
   TONY BEAL — COMPLETE STYLESHEET v7
   ============================================================ */

/* Legacy CSS tokens (keep for resume pages) */
:root {
  --gold: #2563EB;
  --gold2: #78aeff;
  --gold-dim: #3a6ab8;
  --white: #edf2fb;
  --muted: #8899b0;
  --muted2: #6e8cac;
  --line: rgba(255,255,255,0.10);
  --line2: rgba(255,255,255,0.06);
  --black: #070b14;
  --dark: #0F172A;
  --dark2: #131c2e;
  --surface: #1a2540;
  --r: 8px;
  --r-lg: 16px;

  /* New design tokens */
  --bg-primary: #0F172A;
  --bg-white: #FFFFFF;
  --bg-gray: #F8FAFC;
  --accent-blue: #2563EB;
  --accent-indigo: #6366F1;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #94a3b8;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   NAV
   ============================================================ */
.p-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15,23,42,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.p-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.p-nav-brand {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563EB, #6366F1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}
.p-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.p-nav-links a:not(.p-btn) {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.p-nav-links a:not(.p-btn):hover { color: #fff; }

/* ============================================================
   BUTTONS
   ============================================================ */
.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.p-btn-primary {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
}
.p-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.4); }
.p-btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.p-btn-ghost:hover { background: rgba(255,255,255,0.2); }
.p-btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}
.p-btn-outline:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.6); }
.p-btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}
.p-btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rotateFade {
  0%, 15% { opacity: 1; transform: translateY(0); }
  25%, 90% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; transform: translateY(8px); }
}
.p-hero {
  min-height: 100vh;
  background: linear-gradient(-45deg, #0F172A, #1E3A8A, #0F172A, #312E81);
  background-size: 400% 400%;
  animation: heroGradient 12s ease infinite;
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  overflow: hidden;
}
.p-hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.p-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.p-hero-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.p-hero-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.p-hero-photo-frame {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #2563EB;
  box-shadow: 0 0 40px rgba(37,99,235,0.4);
  flex-shrink: 0;
}
.p-hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.p-hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.p-hero-location {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.p-hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.p-hero-inner,
.p-hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.p-overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease both;
}
.p-hero-name {
  font-size: clamp(52px, 7vw, 80px);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.p-hero-name em {
  font-style: italic;
  color: #2563EB;
}
.p-rotate-wrap {
  height: 32px;
  position: relative;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.2s ease both;
}
.p-rotate-item {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
  font-weight: 600;
  color: #60a5fa;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.p-rotate-item.active {
  opacity: 1;
  transform: translateY(0);
}
.p-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.p-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s 0.4s ease both;
}
.p-social-links {
  display: flex;
  gap: 20px;
  animation: fadeInUp 0.6s 0.5s ease both;
}
.p-social-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  transition: color 0.2s;
}
.p-social-links a:hover { color: #60a5fa; }

/* Metric cards */
.p-hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.p-metric-card {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.6s 0.4s ease both;
}
.p-metric-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.p-metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scroll hint */
.p-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 20px;
  transition: opacity 0.4s;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.p-section {
  padding: 96px 0;
}
.p-section-gray { background: var(--bg-gray); }
.p-section-dark {
  background: var(--bg-primary);
  color: #fff;
}
.p-section-dark h2 { color: #fff; }
.p-section-dark .p-section-sub { color: rgba(255,255,255,0.65); }
.p-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.p-section-header {
  text-align: center;
  margin-bottom: 64px;
}
.p-section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 12px;
}
.p-label-light { color: #60a5fa; }
.p-section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.p-section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.p-problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.p-problem-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.p-problem-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.p-problem-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.p-problem-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.p-problem-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.p-closing-line {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   MEET TONY
   ============================================================ */
.p-about-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
.p-about-photo img {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  border: 1px solid var(--accent-blue);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 3/4;
}
.p-location-badge {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}
.p-about-text h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.p-about-text p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.p-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.p-pill {
  padding: 6px 16px;
  background: rgba(37,99,235,0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.p-tools-line {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.p-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.p-portfolio-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.p-portfolio-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.p-portfolio-icon { font-size: 28px; margin-bottom: 16px; }
.p-portfolio-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--text-dark); }
.p-portfolio-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.p-portfolio-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(37,99,235,0.08);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 16px;
}
.p-chart-wrap { height: 120px; }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.p-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.p-cap-col {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.p-cap-icon { font-size: 28px; margin-bottom: 16px; }
.p-cap-col h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--text-dark); }
.p-cap-col ul { list-style: none; }
.p-cap-col li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.p-cap-col li:last-child { border-bottom: none; }

/* ============================================================
   TECH STACK
   ============================================================ */
.p-stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.p-stack-group h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-blue);
}
.p-stack-items { display: flex; flex-direction: column; gap: 8px; }
.p-stack-item {
  display: inline-block;
  padding: 8px 14px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  transition: border-color 0.2s, background 0.2s;
}
.p-stack-item:hover { border-color: var(--accent-blue); background: rgba(37,99,235,0.04); }

/* ============================================================
   DASHBOARD PANELS
   ============================================================ */
.p-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.p-dash-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.p-dash-panel h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.p-dash-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.p-dash-chart-wrap { height: 180px; margin-bottom: 16px; }
.p-dash-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.p-dash-stats span {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  border-right: 1px solid var(--border);
  padding: 0 8px;
}
.p-dash-stats span:last-child { border-right: none; }

/* ============================================================
   VISIBILITY (dark)
   ============================================================ */
.p-vis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.p-vis-stat {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}
.p-vis-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.p-vis-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.p-vis-sub {
  display: block;
  font-size: 12px;
  color: #60a5fa;
  font-weight: 500;
}
.p-article-card {
  max-width: 800px;
  margin: 0 auto 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.p-article-card img { width: 100%; height: auto; }
.p-vis-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   BOOKS
   ============================================================ */
.p-books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.p-book-card {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
  height: 120px;
}
.p-book-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-lg); }
.p-book-spine {
  width: 16px;
  background: var(--spine, #2563EB);
  flex-shrink: 0;
}
.p-book-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.p-book-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.p-book-author {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   OPPORTUNITIES
   ============================================================ */
.p-role-list {
  margin-bottom: 32px;
}
.p-role-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
  color: var(--text-dark);
}
.p-role-row:first-child { border-top: 1px solid var(--border); }
.p-role-row:hover { padding-left: 8px; }
.p-role-row:hover .p-role-arrow { color: var(--accent-blue); transform: translateX(4px); }
.p-role-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  min-width: 28px;
}
.p-role-name { flex: 1; font-size: 20px; font-weight: 700; color: var(--text-dark); }
.p-role-arrow {
  font-size: 20px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.p-availability-card {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
}
.p-availability-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.p-availability-card p:last-child { margin-bottom: 0; }

/* ============================================================
   COMMAND CENTER
   ============================================================ */
.p-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.p-cmd-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  color: var(--text-dark);
}
.p-cmd-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.p-cmd-icon { font-size: 32px; margin-bottom: 16px; }
.p-cmd-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.p-cmd-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.p-cmd-link { font-size: 14px; font-weight: 700; color: var(--accent-blue); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.p-cta-center { text-align: center; max-width: 640px; margin: 0 auto; }
.p-cta-center h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; color: #fff; margin-bottom: 20px; }
.p-cta-center > p:first-of-type { font-size: 17px; color: rgba(255,255,255,0.7); margin-bottom: 40px; line-height: 1.7; }
.p-cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.p-cta-contact { font-size: 14px; color: rgba(255,255,255,0.45); }

/* ============================================================
   FOOTER
   ============================================================ */
.p-footer {
  background: var(--bg-primary);
  padding: 48px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.p-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.p-footer-left { display: flex; flex-direction: column; gap: 4px; }
.p-footer-left strong { color: #fff; font-size: 16px; font-weight: 700; }
.p-footer-left span { color: rgba(255,255,255,0.45); font-size: 13px; }
.p-footer-right { display: flex; gap: 24px; align-items: center; }
.p-footer-right a { color: rgba(255,255,255,0.55); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.p-footer-right a:hover { color: #fff; }
.p-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .p-hero-inner, .p-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .p-hero-right { order: -1; }
  .p-hero-cards { max-width: 480px; margin: 0 auto; }
  .p-about-layout { grid-template-columns: 1fr; }
  .p-about-photo { display: flex; flex-direction: column; align-items: center; }
  .p-about-photo img { max-width: 280px; }
  .p-problem-grid { grid-template-columns: repeat(2, 1fr); }
  .p-portfolio-grid { grid-template-columns: 1fr; }
  .p-cap-grid { grid-template-columns: repeat(2, 1fr); }
  .p-stack-grid { grid-template-columns: repeat(2, 1fr); }
  .p-dash-grid { grid-template-columns: 1fr; }
  .p-vis-grid { grid-template-columns: repeat(2, 1fr); }
  .p-books-grid { grid-template-columns: repeat(2, 1fr); }
  .p-card-grid { grid-template-columns: 1fr; }
  .p-footer-inner { flex-direction: column; }
}
@media (max-width: 640px) {
  .p-nav-links a:not(.p-btn) { display: none; }
  .p-hero { padding: 80px 0 48px; }
  .p-hero-cards { grid-template-columns: repeat(2, 1fr); }
  .p-btn-row { flex-direction: column; }
  .p-btn-row .p-btn { width: 100%; justify-content: center; }
  .p-section { padding: 64px 0; }
  .p-problem-grid { grid-template-columns: 1fr; }
  .p-cap-grid { grid-template-columns: 1fr; }
  .p-stack-grid { grid-template-columns: 1fr; }
  .p-vis-grid { grid-template-columns: 1fr; }
  .p-books-grid { grid-template-columns: repeat(2, 1fr); }
  .p-cta-btns { flex-direction: column; }
  .p-cta-btns .p-btn { width: 100%; justify-content: center; }
  .p-role-name { font-size: 16px; }
}

/* ============================================================
   RESUME PAGES — LEGACY STYLES (keep exactly)
   ============================================================ */
.resume-shell {
  min-height: 100vh;
  background: var(--dark);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  padding-top: 64px;
}
.resume-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}
.surface-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 32px;
  margin-bottom: 24px;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(37,99,235,0.15);
  color: #78aeff;
  border: 1px solid rgba(37,99,235,0.25);
}
.card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 8px;
}
.mini-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.resume-intro {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.btn, .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary, .button-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-primary:hover, .button-primary:hover { background: #1d4ed8; }
.list {
  list-style: none;
  padding: 0;
}
.list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line2);
  color: var(--muted);
  font-size: 14px;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.pill {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.role-hero {
  text-align: center;
  padding: 64px 24px 32px;
}
.interview-card {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(99,102,241,0.1));
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--r-lg);
  padding: 32px;
  margin: 24px 0;
}
.hub-hero { text-align: center; padding: 48px 24px 32px; }
.hub-copy { max-width: 640px; margin: 0 auto; }
.external-strip {
  background: var(--dark2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.selector-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  cursor: pointer;
  transition: all 0.2s;
}
.selector-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.accent-blue { color: #78aeff; }
.accent-coral { color: #fb7185; }
.accent-emerald { color: #34d399; }
.hub-summary { margin: 32px 0; }
.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 16px;
}
.revops-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.kpi-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rail-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
}
.role-flow { margin: 24px 0; }
.role-section { margin-bottom: 32px; }
.revops-theme { --theme-color: #2563EB; }
.deal-timeline { margin: 24px 0; }
.timeline-year {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line2);
}
.bd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* ═══════════════════════════════════════════════════════════
   RESUME PAGE — clean professional document look
   ═══════════════════════════════════════════════════════════ */
.resume-page {
  background: #f1f5f9;
  min-height: 100vh;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: #1E293B;
}
.resume-topbar {
  background: #0F172A;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.resume-topbar-brand {
  font-size: 14px;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.5px;
}
.resume-topbar-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.resume-topbar-links a,
.resume-topbar-links button {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.2s;
  text-decoration: none;
}
.resume-topbar-links a:hover,
.resume-topbar-links button:hover { color: #fff; }
.resume-topbar-links .sep { color: rgba(255,255,255,0.25); }
.resume-doc {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0,0,0,.10);
}
/* Header */
.resume-header {
  padding: 32px 40px 20px;
  border-bottom: 2px solid #2563EB;
}
.resume-name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.resume-header-photo {
  flex-shrink: 0;
  order: 2;
}
.resume-header-photo img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #2563EB;
  display: block;
}
.resume-name {
  font-size: 32px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.resume-title-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #2563EB;
  margin-top: 4px;
}
.resume-contact {
  font-size: 13px;
  color: #475569;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}
.resume-contact-sep { color: #cbd5e1; margin: 0 8px; }
.resume-contact a { color: #2563EB; }
/* Metrics strip */
.resume-metrics {
  display: flex;
  background: #EFF6FF;
  border-bottom: 1px solid #BFDBFE;
}
.resume-metric {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid #BFDBFE;
}
.resume-metric:last-child { border-right: none; }
.resume-metric-value {
  font-size: 15px;
  font-weight: 800;
  color: #1d4ed8;
  line-height: 1.2;
}
.resume-metric-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  margin-top: 2px;
}
/* Body */
.resume-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  align-items: start;
}
.resume-sidebar {
  padding: 28px 20px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  min-height: 100%;
}
.resume-main {
  padding: 28px 36px;
}
/* Section titles */
.resume-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #2563EB;
  border-left: 3px solid #2563EB;
  padding-left: 8px;
  margin-bottom: 12px;
  margin-top: 0;
}
.resume-section { margin-bottom: 28px; }
/* Skill pills */
.resume-skill-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  background: #EFF6FF;
  color: #1d4ed8;
  margin: 2px 2px 2px 0;
  border: 1px solid #BFDBFE;
}
.resume-tech-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
  margin: 2px 2px 2px 0;
  border: 1px solid #e2e8f0;
}
/* Summary */
.resume-summary {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
/* Jobs */
.resume-job {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}
.resume-job:last-child { border-bottom: none; }
.resume-job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}
.resume-job-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
}
.resume-job-company {
  font-size: 13px;
  font-weight: 600;
  color: #2563EB;
}
.resume-job-date {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  margin-top: 2px;
}
.resume-job ul {
  margin: 8px 0 0 0;
  padding-left: 18px;
}
.resume-job li {
  font-size: 13px;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 3px;
}
/* Sidebar stat */
.resume-stat-item {
  margin-bottom: 14px;
}
.resume-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
}
.resume-stat-label {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}
/* Footer */
.resume-footer {
  background: #0F172A;
  padding: 16px 40px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.resume-footer a { color: #93c5fd; }
/* Hub cards */
.resume-hub-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.resume-hub-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px 20px;
  background: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.resume-hub-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 16px rgba(37,99,235,.1);
}
.resume-hub-card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #2563EB;
  margin-bottom: 8px;
}
.resume-hub-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}
.resume-hub-card p {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 16px;
  line-height: 1.55;
}
.resume-hub-card-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #2563EB;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s;
  text-decoration: none;
}
.resume-hub-card-link:hover { background: #1d4ed8; }

/* Expertise tag row */
.resume-expertise-tags { margin-top: 12px; }

/* Print */
@media print {
  .resume-topbar { display: none !important; }
  .resume-page { background: #fff; }
  .resume-doc { box-shadow: none; max-width: 100%; }
  .resume-footer { display: none !important; }
  .resume-metrics { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .resume-metric { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 680px) {
  .resume-body { grid-template-columns: 1fr; }
  .resume-sidebar { border-right: none; border-bottom: 1px solid #e2e8f0; }
  .resume-metrics { flex-wrap: wrap; }
  .resume-metric { flex: 0 0 33.33%; }
  .resume-hub-cards { grid-template-columns: 1fr; }
  .resume-header { padding: 24px 20px 16px; }
  .resume-main { padding: 20px; }
}
.play-stack { display: flex; flex-direction: column; gap: 8px; }
.bd-theme { --theme-color: #6366F1; }
.ops-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.cadence-list { list-style: none; padding: 0; }
.cadence-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line2);
  font-size: 14px;
  color: var(--muted);
}
.ops-evidence { margin: 24px 0; }
.metric-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.salesops-theme { --theme-color: #0891b2; }
.resume-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.resume-card pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 16px 0 0;
  color: var(--text);
}
.resume-sub {
  color: var(--muted);
  margin-bottom: 8px;
}


/* ═══════════════════════════════════════════════════════════
   Resume Pages — Clean Professional Print-Ready Style
   ═══════════════════════════════════════════════════════════ */

/* Resume page specific tokens */
.resume-page-wrap {
  --rp-bg: #ffffff;
  --rp-page: #ffffff;
  --rp-navy: #0F172A;
  --rp-blue: #2563EB;
  --rp-indigo: #6366F1;
  --rp-text: #1E293B;
  --rp-muted: #64748B;
  --rp-border: #E2E8F0;
  --rp-accent-bg: #EFF6FF;
  background: #F1F5F9;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Site bar (back navigation) */
.rp-site-bar {
  background: #0F172A;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.rp-site-bar-left { display: flex; align-items: center; gap: 16px; }
.rp-site-bar a {
  color: #94A3B8; font-size: 13px; font-weight: 500;
  text-decoration: none; transition: color .15s;
}
.rp-site-bar a:hover { color: #ffffff; }
.rp-site-bar .rp-bar-brand {
  color: #ffffff; font-weight: 800; font-size: 15px; letter-spacing: .02em;
}
.rp-site-bar .rp-print-btn {
  background: #2563EB; color: #fff; border: none; padding: 7px 16px;
  border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.rp-site-bar .rp-print-btn:hover { background: #1d4ed8; }

/* Page container */
.rp-page {
  max-width: 860px;
  margin: 32px auto;
  padding: 0 20px 60px;
}

/* Resume document */
.rp-doc {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
}

/* Header band */
.rp-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  padding: 36px 44px 30px;
  color: #ffffff;
}
.rp-header-name {
  font-size: 32px; font-weight: 900; letter-spacing: -.03em;
  color: #ffffff; margin-bottom: 4px; line-height: 1;
}
.rp-header-title {
  font-size: 14px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #93C5FD; margin-bottom: 16px;
}
.rp-header-contact {
  display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: #CBD5E1;
}
.rp-header-contact a { color: #93C5FD; text-decoration: none; }
.rp-header-contact a:hover { color: #ffffff; text-decoration: underline; }

/* Summary bar */
.rp-summary {
  background: #EFF6FF; border-bottom: 1px solid #BFDBFE;
  padding: 18px 44px; font-size: 14px; color: #1E3A8A; line-height: 1.6;
  font-style: italic;
}

/* Metric strip */
.rp-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #E2E8F0;
}
.rp-metric {
  padding: 16px 20px; text-align: center;
  border-right: 1px solid #E2E8F0;
}
.rp-metric:last-child { border-right: none; }
.rp-metric-num {
  display: block; font-size: 22px; font-weight: 800;
  color: #2563EB; line-height: 1; font-family: 'JetBrains Mono', monospace;
}
.rp-metric-label { font-size: 11px; color: #64748B; text-transform: uppercase; letter-spacing: .08em; }

/* Body */
.rp-body { padding: 0 44px 40px; }

/* Section headings */
.rp-section { margin-top: 28px; }
.rp-section-head {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #2563EB;
  padding-bottom: 6px; border-bottom: 2px solid #2563EB;
  margin-bottom: 16px;
}

/* Job entries */
.rp-job { margin-bottom: 20px; }
.rp-job-header {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 4px; margin-bottom: 4px;
}
.rp-job-title { font-size: 15px; font-weight: 700; color: #0F172A; }
.rp-job-company { font-size: 14px; font-weight: 600; color: #2563EB; }
.rp-job-date {
  font-size: 12px; color: #64748B; font-weight: 500;
  white-space: nowrap; background: #F8FAFC; padding: 2px 8px;
  border-radius: 4px; border: 1px solid #E2E8F0;
}
.rp-job-location { font-size: 12px; color: #64748B; margin-bottom: 8px; }
.rp-job ul { padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.rp-job li { font-size: 13.5px; color: #1E293B; line-height: 1.6; }
.rp-job li strong { color: #0F172A; }

/* Skills grid */
.rp-skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.rp-skill-group h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #64748B; margin-bottom: 6px;
}
.rp-skill-group ul { padding-left: 0; list-style: none; }
.rp-skill-group li {
  font-size: 13px; color: #1E293B; padding: 3px 0;
  border-bottom: 1px solid #F1F5F9;
}

/* Pill tags */
.rp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rp-tag {
  font-size: 11px; font-weight: 600; color: #2563EB;
  background: #EFF6FF; border: 1px solid #BFDBFE;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .03em;
}

/* LinkedIn stats row */
.rp-li-strip {
  background: #F8FAFC; border: 1px solid #E2E8F0;
  border-radius: 6px; padding: 14px 18px; margin-top: 10px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 12px;
}
.rp-li-item { text-align: center; }
.rp-li-num { font-size: 17px; font-weight: 800; color: #2563EB; display: block; }
.rp-li-lbl { font-size: 11px; color: #64748B; }

/* CTA block */
.rp-cta {
  background: linear-gradient(135deg, #0F172A, #1E3A8A);
  border-radius: 6px; padding: 20px 24px; margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.rp-cta p { color: #CBD5E1; font-size: 14px; margin: 0; }
.rp-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.rp-cta a {
  display: inline-block; padding: 9px 18px; border-radius: 6px;
  font-size: 13px; font-weight: 700; text-decoration: none; transition: all .15s;
}
.rp-cta-primary { background: #2563EB; color: #fff; }
.rp-cta-primary:hover { background: #1d4ed8; color: #fff; }
.rp-cta-ghost { border: 1px solid rgba(255,255,255,.25); color: #CBD5E1; }
.rp-cta-ghost:hover { border-color: #fff; color: #fff; }

/* Other resumes */
.rp-other {
  margin-top: 20px; padding: 16px 0 0;
  border-top: 1px solid #E2E8F0;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.rp-other span { font-size: 12px; color: #64748B; }
.rp-other a {
  font-size: 12px; font-weight: 600; color: #2563EB;
  text-decoration: none; border: 1px solid #BFDBFE; padding: 4px 10px;
  border-radius: 4px; background: #EFF6FF;
}
.rp-other a:hover { background: #DBEAFE; }

/* Print styles */
@media print {
  .rp-site-bar { display: none !important; }
  .resume-page-wrap { background: white !important; }
  .rp-page { margin: 0; padding: 0; max-width: 100%; }
  .rp-doc { box-shadow: none !important; border-radius: 0 !important; }
  .rp-cta { display: none !important; }
  .rp-other { display: none !important; }
  body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

@media (max-width: 700px) {
  .rp-header { padding: 24px 20px 20px; }
  .rp-body { padding: 0 20px 30px; }
  .rp-summary { padding: 14px 20px; }
  .rp-metrics { grid-template-columns: repeat(2, 1fr); }
  .rp-metric:nth-child(2) { border-right: none; }
  .rp-skills-grid { grid-template-columns: 1fr 1fr; }
  .rp-li-strip { grid-template-columns: repeat(2,1fr); }
  .rp-cta { flex-direction: column; }
}

/* ============================================================
   HOMEPAGE — MISSING CLASSES (added v10)
   ============================================================ */

/* Animated counter numbers */
.count {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  color: #1E293B;
}
.p-section-dark .count,
.p-vis-stat .count { color: #fff; }
.p-metric-card .count { font-size: 26px; color: #1E293B; }

/* Vis-stat children (dark section) */
.p-vis-stat strong { display: block; font-size: 36px; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 8px; }
.p-vis-stat span { display: block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.p-vis-stat em { display: block; font-size: 12px; color: #60a5fa; font-style: normal; font-weight: 500; }

/* Metric card children */
.p-metric-card span { font-size: 12px; color: #64748B; }

/* Section typography */
.p-section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.p-title-light { color: #fff !important; }
.p-section-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.p-sub-light { color: rgba(255,255,255,0.65) !important; }

/* Hero tagline (JS-animated) */
.p-hero-tagline {
  font-size: 20px;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 20px;
  min-height: 28px;
  transition: opacity 0.3s, transform 0.3s;
}

/* Button size variants */
.p-btn-sm { padding: 6px 14px; font-size: 13px; }
.p-btn-lg { padding: 14px 32px; font-size: 16px; }
.p-btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.35);
}
.p-btn-outline-white:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.7); }

/* Problem section close */
.p-problem-close {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* About section */
.p-about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
.p-about-photo-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--accent-blue);
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}
.p-about-photo-frame img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 3/4; }
.p-about-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.p-about-badges span {
  padding: 5px 14px;
  background: rgba(37,99,235,0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.p-about-para { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.p-about-quote {
  border-left: 3px solid var(--accent-blue);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
  background: rgba(37,99,235,0.04);
  border-radius: 0 8px 8px 0;
  line-height: 1.7;
}
.p-about-approach { margin-top: 24px; }
.p-about-approach h3 { font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.p-approach-steps { display: flex; flex-direction: column; gap: 16px; }
.p-step { display: flex; align-items: flex-start; gap: 16px; }
.p-step span {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-step p { font-size: 15px; color: var(--text-muted); line-height: 1.6; padding-top: 6px; }

/* Portfolio extras */
.p-portfolio-chart { height: 68px; margin-bottom: 16px; overflow: hidden; }
.p-portfolio-chart svg { width: 100%; height: 100%; }
.p-portfolio-num { font-size: 12px; font-weight: 700; color: var(--accent-blue); letter-spacing: 1px; margin-bottom: 8px; }
.p-portfolio-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.p-portfolio-tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(37,99,235,0.08);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(37,99,235,0.18);
}

/* Systems grid */
.p-sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 48px; }
.p-sys-col {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.p-sys-icon-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 10px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.p-sys-col h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; }
.p-sys-col ul { list-style: none; padding: 0; }
.p-sys-col li { font-size: 13px; color: var(--text-muted); padding: 6px 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
.p-sys-col li:last-child { border-bottom: none; }

/* Why hire */
.p-why-hire { background: var(--bg-gray); border-radius: var(--radius); padding: 40px; margin-top: 40px; }
.p-why-hire h3 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 24px; }
.p-why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.p-why-item { display: flex; align-items: flex-start; gap: 12px; }
.p-check { color: var(--accent-blue); font-size: 16px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.p-why-item p { font-size: 15px; color: var(--text-muted); line-height: 1.5; }

/* Tech stack groups */
.p-stack-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.p-stack-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 7px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
/* Make stack items flex to show badge + label */
.p-stack-groups .p-stack-item { display: flex !important; align-items: center; gap: 10px; }
.p-stack-groups .p-stack-item span { font-size: 13px; color: var(--text-dark); font-weight: 500; }

/* Dashboard panel internals */
.p-dash-header { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.p-dash-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; background: #94a3b8; }
.p-dash-dot.green, .p-dash-header .green { background: #22c55e; }
.p-dash-dot.yellow, .p-dash-header .yellow { background: #f59e0b; }
.p-dash-dot.red, .p-dash-header .red { background: #ef4444; }
.green { color: #22c55e; }
.red { color: #ef4444; }
.yellow { color: #f59e0b; }
.p-dash-title { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-left: 4px; flex: 1; }
.p-dash-body { /* panel body container */ }
.p-dash-stat-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 10px;
}
.p-dash-stat { flex: 1; text-align: center; border-right: 1px solid var(--border); padding: 0 8px; }
.p-dash-stat:last-child { border-right: none; }
.p-dash-stat strong { display: block; font-size: 16px; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.p-dash-stat span { font-size: 11px; color: var(--text-muted); }
.p-chart-labels { display: flex; justify-content: space-between; margin-top: 4px; }
.p-chart-labels span { font-size: 10px; color: var(--text-muted); }
.p-dash-funnel { display: flex; flex-direction: column; gap: 6px; }
.p-funnel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(37,99,235,0.10);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-dark);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.p-funnel-row span:last-child { font-weight: 700; color: var(--accent-blue); }

/* LinkedIn / Visibility section */
.p-li-feature { margin-bottom: 32px; }
.p-li-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-width: 800px;
  margin: 0 auto;
}
.p-li-cover img { width: 100%; height: auto; display: block; }
.p-li-cover figcaption {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 8px;
}
.p-li-cover figcaption span { font-size: 13px; color: rgba(255,255,255,0.7); }
.p-li-cover figcaption a { font-size: 13px; font-weight: 600; color: #60a5fa; white-space: nowrap; }
.p-li-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* Books */
.p-books-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-book { text-align: center; }
.p-book > p { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.p-book-cover {
  height: 160px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.p-book-cover:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-lg); }
.p-book-cover span { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.95); text-align: center; line-height: 1.3; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.bc1 { background: linear-gradient(135deg, #1e3a5f, #2563EB); }
.bc2 { background: linear-gradient(135deg, #312e81, #6366F1); }
.bc3 { background: linear-gradient(135deg, #14532d, #16a34a); }
.bc4 { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.bc5 { background: linear-gradient(135deg, #0c4a6e, #0ea5e9); }
.bc6 { background: linear-gradient(135deg, #713f12, #d97706); }
.bc7 { background: linear-gradient(135deg, #1e1b4b, #8b5cf6); }
.bc8 { background: linear-gradient(135deg, #042f2e, #0d9488); }

/* Opportunities */
.p-opp-grid { display: flex; flex-direction: column; border-top: 1px solid var(--border); margin-bottom: 32px; }
.p-opp-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  transition: padding-left 0.2s;
}
.p-opp-row:hover { padding-left: 10px; }
.p-opp-row:hover .p-opp-arr { color: var(--accent-blue); transform: translateX(4px); }
.p-opp-num { font-size: 13px; font-weight: 600; color: var(--text-muted); min-width: 28px; }
.p-opp-name { flex: 1; font-size: 20px; font-weight: 700; color: var(--text-dark); }
.p-opp-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(37,99,235,0.08);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(37,99,235,0.2);
  white-space: nowrap;
}
.p-opp-arr { font-size: 20px; color: var(--text-muted); transition: all 0.2s; }
.p-opp-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.p-opp-meta-item {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 16px;
  background: var(--bg-gray);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.p-opp-meta-item strong { color: var(--text-dark); }

/* Command center cards */
.p-command-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.p-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  color: var(--text-dark);
}
.p-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.p-card-icon-txt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 10px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.p-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.p-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.p-card-cta { font-size: 14px; font-weight: 700; color: var(--accent-blue); transition: color 0.2s; }
.p-card:hover .p-card-cta { color: #1d4ed8; }

/* Final CTA section */
.p-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.p-cta-text { /* left column */ }
.p-cta-title { font-size: clamp(36px, 5vw, 52px); font-weight: 800; color: #fff; margin-bottom: 20px; line-height: 1.1; }
.p-cta-title em { font-style: italic; color: #60a5fa; }
.p-cta-sub { font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 20px; }
.p-cta-open { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }
.p-cta-open strong { color: rgba(255,255,255,0.8); }
.p-cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.p-cta-email { margin-top: 8px; }
.p-cta-email a { font-size: 15px; color: #60a5fa; font-weight: 600; }
.p-cta-email a:hover { color: #93c5fd; }

/* Footer brand and links */
.p-footer-brand { display: flex; flex-direction: column; gap: 4px; }
.p-footer-brand strong { color: #fff; font-size: 16px; font-weight: 700; }
.p-footer-brand span { color: rgba(255,255,255,0.45); font-size: 12px; line-height: 1.5; }
.p-footer-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.p-footer-links a { color: rgba(255,255,255,0.55); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.p-footer-links a:hover { color: #fff; }
.p-footer-seo { font-size: 11px; color: rgba(255,255,255,0.2); margin-top: 6px; line-height: 1.7; }

/* Responsive additions */
@media (max-width: 960px) {
  .p-about-grid { grid-template-columns: 1fr; }
  .p-sys-grid { grid-template-columns: repeat(2, 1fr); }
  .p-stack-groups { grid-template-columns: repeat(2, 1fr); }
  .p-cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .p-command-grid { grid-template-columns: 1fr; }
  .p-why-grid { grid-template-columns: 1fr; }
  .p-opp-name { font-size: 16px; }
}
@media (max-width: 640px) {
  .p-sys-grid { grid-template-columns: 1fr; }
  .p-stack-groups { grid-template-columns: 1fr; }
  .p-books-grid { grid-template-columns: repeat(2, 1fr); }
  .p-command-grid { grid-template-columns: 1fr; }
  .p-cta-actions { width: 100%; }
  .p-cta-actions .p-btn { width: 100%; justify-content: center; }
}
