/* ====================================================================
   FARES MAHMOUD — PORTFOLIO
   Goldman Sachs / BlackRock institutional design
   EB Garamond serif headings · DM Sans body
   Navy · steel blue · white · soft gray
   ==================================================================== */

:root {
  /* ── Core palette ── */
  --navy:         #0A1628;
  --navy-mid:     #142E4E;
  --steel:        #4A7FB5;
  --steel-light:  #6B9BD2;
  --ice:          #D4E4F7;
  --ice-wash:     #EDF2F8;
  --bone:         #F5F7FA;

  /* ── Neutrals ── */
  --white:   #FFFFFF;
  --g50:     #FAFBFC;
  --g100:    #F3F5F8;
  --g200:    #E4E8ED;
  --g300:    #CDD3DB;
  --g400:    #9BA4B0;
  --g500:    #6B7685;
  --g600:    #4A5568;
  --g700:    #2D3748;
  --g800:    #1A2332;

  /* ── Semantic ── */
  --positive: #0F7B5F;
  --negative: #B91C1C;
  --warning:  #B45309;

  /* ── Surfaces (for existing class compatibility) ── */
  --bg:             var(--bone);
  --bg-strong:      var(--ice-wash);
  --surface:        var(--white);
  --surface-strong: var(--white);
  --line:           rgba(10, 22, 40, 0.08);
  --line-strong:    rgba(10, 22, 40, 0.14);
  --text:           var(--navy);
  --text-soft:      var(--g600);
  --muted:          var(--g500);
  --accent:         var(--steel-light);
  --accent-strong:  var(--steel);
  --accent-deep:    var(--navy-mid);
  --accent-soft:    rgba(74, 127, 181, 0.07);
  --good:           var(--positive);
  --good-soft:      rgba(15, 123, 95, 0.06);
  --warn:           var(--warning);
  --warn-soft:      rgba(180, 83, 9, 0.06);

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 2px 10px rgba(10, 22, 40, 0.05);
  --shadow-lg: 0 8px 30px rgba(10, 22, 40, 0.07);

  /* ── Radii ── */
  --radius-xl: 14px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --radius-xs: 5px;

  /* ── Layout ── */
  --content: 1180px;
  --nav-h:   60px;

  /* ── Type ── */
  --font-heading: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-body); font-size: 15px;
  color: var(--text); background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before { display: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
main {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 80px;
}


/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 247, 250, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 7px;
  background: var(--navy); color: #FFF;
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px; letter-spacing: 0.06em;
}
.brand-copy h1 {
  margin: 0; font-family: var(--font-heading);
  font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -0.01em;
}
.brand-copy p {
  margin: 1px 0 0; color: var(--muted);
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 1px; flex-wrap: wrap; }
.nav-link {
  padding: 7px 13px; border-radius: var(--radius-xs);
  color: var(--g600); font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em; text-transform: uppercase;
  transition: all 140ms var(--ease);
}
.nav-link:hover { background: var(--g100); color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--navy-mid); }

.header-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }


/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */

.button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 6px; border: none;
  background: var(--navy); color: #FFF;
  font-weight: 500; font-size: 14px; letter-spacing: 0.01em;
  cursor: pointer; transition: all 140ms var(--ease);
}
.button:hover { background: var(--navy-mid); transform: translateY(-1px); box-shadow: var(--shadow-md); color: #FFF; }
.button.secondary { color: var(--text); background: var(--white); border: 1px solid var(--g200); }
.button.secondary:hover { border-color: var(--navy); color: var(--navy); }
.button.ghost { background: transparent; border: 1px solid var(--g200); color: var(--g600); box-shadow: none; }
.button.ghost:hover { border-color: var(--g600); color: var(--text); }
.button.tiny { padding: 7px 14px; font-size: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 500; color: var(--steel);
  transition: color 140ms;
}
.text-link:hover { color: var(--navy); }


/* ══════════════════════════════════════════════
   1. HERO — Centered Goldman / BlackRock style
   ══════════════════════════════════════════════ */

.hero-centered {
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--g200);
  background: linear-gradient(180deg, var(--white) 0%, var(--bone) 100%);
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-headshot {
  margin: 0 auto 28px;
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--g200);
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
}

.headshot-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ice-wash), var(--ice));
  font-family: var(--font-heading);
  font-size: 32px; font-weight: 600;
  color: var(--navy-mid);
  letter-spacing: 0.04em;
}

.hero-headshot img {
  width: 100%; height: 100%; object-fit: cover;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 38px; font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.1;
  margin: 0 0 14px; color: var(--navy);
}

.hero-positioning {
  font-size: 16px; line-height: 1.65;
  color: var(--g600); max-width: 560px;
  margin: 0 auto 22px;
}

.hero-focus-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; margin-bottom: 28px;
}

.focus-chip {
  padding: 5px 12px; border-radius: var(--radius-xs);
  background: var(--accent-soft); border: 1px solid rgba(74, 127, 181, 0.1);
  font-size: 12px; font-weight: 500; color: var(--navy-mid);
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}


/* ══════════════════════════════════════════════
   2. CREDIBILITY STRIP
   ══════════════════════════════════════════════ */

.credibility-strip {
  padding: 28px 0;
  border-bottom: 1px solid var(--g200);
  background: var(--white);
}

.credibility-inner {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}

.cred-item {
  padding: 12px 28px; text-align: center;
}

.cred-item strong {
  display: block; font-family: var(--font-heading);
  font-size: 15px; font-weight: 600; color: var(--navy);
  letter-spacing: -0.01em; margin-bottom: 2px;
}

.cred-item span {
  font-size: 12px; color: var(--g500);
}

.cred-divider {
  width: 1px; height: 36px; background: var(--g200);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════
   4. ABOUT PREVIEW
   ══════════════════════════════════════════════ */

.about-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px; align-items: start;
  padding: 8px 0;
}

.about-text .section-title {
  margin-bottom: 16px;
}

.about-text p {
  font-size: 15px; color: var(--g600); line-height: 1.7;
  margin: 0 0 14px;
}

.about-details {
  display: grid; gap: 14px;
}

.detail-card {
  padding: 20px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.detail-card h4 {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 600; color: var(--navy);
  margin: 0 0 8px; letter-spacing: -0.01em;
}

.detail-card p {
  font-size: 14px; color: var(--g600); margin: 0; line-height: 1.5;
}

.detail-chips {
  display: flex; flex-wrap: wrap; gap: 5px;
}


/* ══════════════════════════════════════════════
   5. SKILLS STRIP (below experience)
   ══════════════════════════════════════════════ */

.skills-strip {
  margin-top: 28px; padding: 24px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.skills-label {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 600; color: var(--navy);
  margin: 0 0 12px; letter-spacing: -0.01em;
}

.skills-row {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.skill-tag {
  padding: 6px 14px; border-radius: var(--radius-xs);
  background: var(--bone); border: 1px solid var(--g200);
  font-size: 13px; font-weight: 500; color: var(--g600);
}


/* ══════════════════════════════════════════════
   6. DIFFERENTIATOR / SOCIAL PROOF
   ══════════════════════════════════════════════ */

.differentiator {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; padding: 8px 0;
}

.diff-item {
  text-align: center; padding: 28px 16px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: all 200ms var(--ease);
}

.diff-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--steel-light); }

.diff-number {
  display: block; font-family: var(--font-heading);
  font-size: 36px; font-weight: 600; color: var(--navy);
  line-height: 1; margin-bottom: 8px;
}

.diff-item span {
  font-size: 13px; color: var(--g500); line-height: 1.5;
}


/* ══════════════════════════════════════════════
   7. CONTACT CTA
   ══════════════════════════════════════════════ */

.contact-cta {
  text-align: center;
  padding: 48px 32px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: #FFF;
}

.contact-cta .section-title {
  color: #FFF; margin-bottom: 10px;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px; max-width: 480px;
  margin: 0 auto 24px;
}

.cta-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}

.contact-cta .button {
  background: var(--steel); color: #FFF;
}
.contact-cta .button:hover { background: var(--steel-light); }
.contact-cta .button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
}
.contact-cta .button.secondary:hover { background: rgba(255, 255, 255, 0.18); }
.contact-cta .button.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
}
.contact-cta .button.ghost:hover { border-color: rgba(255, 255, 255, 0.5); color: #FFF; }


/* ══════════════════════════════════════════════
   SHARED COMPONENTS (all pages)
   ══════════════════════════════════════════════ */

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy-mid); background: var(--accent-soft);
  border: 1px solid rgba(74, 127, 181, 0.1);
  border-radius: var(--radius-xs); padding: 4px 10px;
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  width: fit-content; margin-bottom: 16px;
}

/* ── Section structure ── */
.section { padding: 44px 0 8px; }
.section-header {
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.5vw, 32px);
  margin: 0; letter-spacing: -0.02em; font-weight: 500; color: var(--text);
}
.section-copy {
  max-width: 56ch; color: var(--g600); margin: 6px 0 0; font-size: 15px;
}

/* ── Page hero (non-home pages) ── */
.page-hero { padding: 56px 0 32px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr); gap: 40px; align-items: start; }
.hero-title { font-family: var(--font-heading); font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.025em; font-weight: 500; color: var(--text); }
.hero-copy { font-size: 16px; color: var(--g600); max-width: 54ch; margin: 0 0 24px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Cards & Surfaces ── */
.hero-card, .card, .panel, .note, .gallery-card, .metric-card,
.project-detail, .project-button, .stat-card, .dashboard-card, .contact-card {
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.hero-card { border-radius: var(--radius-xl); padding: 24px; position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; width: 180px; height: 180px; top: -80px; right: -50px; border-radius: 50%; background: radial-gradient(circle, rgba(107,155,210,0.1), transparent 70%); pointer-events: none; }
.hero-card .stack, .stack { display: grid; gap: 12px; }
.hero-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.hero-card h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -0.02em; color: var(--text); }
.card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 500; margin: 0; letter-spacing: -0.02em; color: var(--text); }
.panel h3 { font-family: var(--font-heading); font-size: 19px; font-weight: 500; margin: 0; letter-spacing: -0.02em; color: var(--text); }
.project-detail h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -0.02em; color: var(--text); }
.hero-card p, .card p, .panel p, .note p, .metric-card p, .dashboard-card p { margin: 0; color: var(--g600); line-height: 1.6; }

/* ── Inline groups / pills / badges ── */
.inline-group { display: flex; flex-wrap: wrap; gap: 5px; }
.pill, .tag, .badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-xs);
  background: var(--g100); border: 1px solid var(--g200);
  font-size: 12px; color: var(--g600); font-weight: 500;
}
.badge { background: var(--accent-soft); border-color: rgba(74,127,181,0.1); color: var(--navy-mid); font-weight: 600; }

/* ── Grids ── */
.card-grid, .highlight-grid, .metric-grid, .dashboard-grid, .gallery-grid, .page-grid, .profile-grid, .value-chain-grid { display: grid; gap: 14px; }
.highlight-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.three, .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two, .page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-grid { grid-template-columns: 1.2fr 1fr; }
.value-chain-grid { grid-template-columns: 0.9fr 1.1fr; }

.card, .panel, .note, .project-detail, .contact-card { border-radius: var(--radius-lg); padding: 22px; transition: all 180ms var(--ease); }
.card:hover, .panel:hover, .project-button:hover, .gallery-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.card-title-row { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card .icon-badge { width: 36px; height: 36px; border-radius: 7px; background: var(--navy); display: grid; place-items: center; color: #FFF; font-weight: 700; font-size: 13px; }
.card ul, .project-detail ul, .note ul { margin: 8px 0 0; padding-left: 17px; color: var(--g600); font-size: 13px; }
.card ul li + li, .project-detail ul li + li, .note ul li + li { margin-top: 5px; }

/* ── Stat cards ── */
.stat-card { border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 5px; }
.stat-card strong { font-family: var(--font-heading); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.stat-card span { color: var(--g600); font-size: 13px; }

/* ── Timeline ── */
.timeline { display: grid; gap: 12px; }
.timeline-item { position: relative; padding: 22px 22px 22px 50px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.timeline-item::before { content: ""; position: absolute; left: 21px; top: 28px; width: 2px; height: calc(100% - 56px); background: linear-gradient(180deg, var(--steel-light), rgba(107,155,210,0.08)); }
.timeline-item::after { content: ""; position: absolute; left: 13px; top: 24px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--steel); }
.timeline-item h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 500; margin: 0 0 3px; letter-spacing: -0.015em; color: var(--text); }
.timeline-meta { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.timeline-item p { margin: 0 0 10px; font-size: 14px; color: var(--g600); }
.timeline-item ul { margin: 0; padding-left: 17px; color: var(--g600); font-size: 13px; }

/* ── Controls ── */
.kicker { font-size: 11px; color: var(--navy-mid); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.mini-note { padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--g100); color: var(--g600); font-size: 13px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 14px; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.case-switch, .segment-switch, .filter-bar, .range-row, .toggle-row, .month-selector { display: flex; gap: 5px; flex-wrap: wrap; }
.case-switch button, .segment-switch button, .filter-chip, .month-chip, .financing-option-button { background: var(--surface); border: 1px solid var(--g200); color: var(--g600); padding: 6px 13px; border-radius: var(--radius-xs); cursor: pointer; font-size: 13px; font-weight: 500; transition: all 140ms var(--ease); }
.case-switch button.active, .segment-switch button.active, .filter-chip.active, .month-chip.active, .financing-option-button.active { background: var(--accent-soft); border-color: var(--steel); color: var(--navy-mid); font-weight: 600; }
.sort-select { background: var(--surface); border: 1px solid var(--g200); color: var(--g600); padding: 6px 13px; border-radius: var(--radius-xs); cursor: pointer; font-size: 13px; }
.slider-group { display: grid; gap: 5px; min-width: 200px; }
.slider-group label { font-size: 13px; color: var(--muted); }
.range-input { width: 100%; accent-color: var(--steel); height: 4px; }

/* ── Metric strip ── */
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.metric-card, .dashboard-card { border-radius: var(--radius-md); padding: 16px; }
.metric-card .metric-label, .dashboard-card .metric-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; font-weight: 600; }
.metric-card strong, .dashboard-card strong { font-family: var(--font-heading); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; display: block; margin-bottom: 3px; color: var(--text); }
.metric-card .metric-sub, .dashboard-card .metric-sub { color: var(--g600); font-size: 12px; }

/* ── Charts ── */
.viz-shell { display: grid; gap: 14px; }
.viz-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 14px; }
.chart-card, .table-card, .explain-card { border-radius: var(--radius-md); padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.chart-title { font-family: var(--font-heading); font-size: 15px; font-weight: 500; margin: 0 0 12px; color: var(--text); }
.chart-stack { display: grid; gap: 10px; }
.chart-svg { width: 100%; min-height: 220px; border-radius: var(--radius-sm); background: var(--g50); border: 1px solid var(--line); }

svg text { font-family: var(--font-body); fill: var(--muted); font-size: 11px; }
svg .axis-line { stroke: var(--line-strong); stroke-width: 1; }
svg .grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
svg .bar { fill: var(--steel); }
svg .bar.soft { fill: var(--steel-light); opacity: 0.6; }
svg .bar.dark { fill: var(--navy-mid); }
svg .line-primary { stroke: var(--steel); stroke-width: 2.5; fill: none; }
svg .line-secondary { stroke: var(--positive); stroke-width: 2.5; fill: none; }
svg .range-line { stroke: var(--navy-mid); stroke-width: 6; stroke-linecap: round; }
svg .range-dot { fill: var(--text); }
svg .range-mid { fill: var(--steel); }
svg .scatter-point { fill: var(--steel); stroke: #FFF; stroke-width: 2; }
svg .gauge-track { fill: var(--g200); }
svg .gauge-fill { fill: var(--steel); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); }
.data-table, .heatmap { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 13px; }
.data-table th, .data-table td, .heatmap th, .heatmap td { padding: 10px 13px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th, .heatmap th { background: var(--g100); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; font-weight: 700; position: sticky; top: 0; z-index: 1; }
.data-table td.numeric, .heatmap td.numeric, .data-table th.numeric, .heatmap th.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 12px; }
.data-table tbody tr:hover { background: rgba(107,155,210,0.05); }
.data-table tbody tr.highlight-low { background: var(--good-soft); }
.data-table tbody tr.highlight-high { background: var(--warn-soft); }
.heatmap td { text-align: center; font-variant-numeric: tabular-nums; }
.heatmap td.header-cell { font-weight: 700; background: var(--g100); }

/* ── Explain lists ── */
.explain-list, .deliverables, .project-meta, .kpi-stack { display: grid; gap: 8px; }
.explain-list .item, .project-meta .item { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--g50); border: 1px solid var(--line); }
.explain-list .item strong { font-size: 14px; color: var(--text); }
.explain-list .item p { font-size: 13px; }

/* ── Project Lab ── */
.project-lab { display: grid; grid-template-columns: minmax(250px, 0.36fr) minmax(0, 1fr); gap: 14px; }
.project-list { display: grid; gap: 7px; align-content: start; position: sticky; top: calc(var(--nav-h) + 18px); }
.project-button { padding: 14px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); text-align: left; cursor: pointer; transition: all 140ms var(--ease); }
.project-button strong { display: block; font-family: var(--font-heading); font-size: 14px; font-weight: 500; margin-bottom: 3px; color: var(--text); }
.project-button span { color: var(--muted); font-size: 12px; }
.project-button.active { background: var(--accent-soft); border-color: var(--steel); }
.project-detail-header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.project-detail .summary-copy { font-size: 15px; color: var(--g600); margin-bottom: 14px; }
.project-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.project-block { padding: 14px; border-radius: var(--radius-sm); background: var(--g50); border: 1px solid var(--line); }
.project-block h4 { margin: 0 0 8px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.project-block ul { margin: 0; font-size: 13px; }

/* ── Sector Primer ── */
.slide-viewer { display: grid; gap: 12px; }
.slide-card { border-radius: var(--radius-lg); padding: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.slide-card h3 { font-family: var(--font-heading); margin: 0 0 5px; font-size: 20px; font-weight: 500; color: var(--text); }
.slide-card p { color: var(--g600); font-size: 14px; }
.slide-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.slide-kpis .kpi { padding: 12px; border-radius: var(--radius-sm); background: var(--g50); border: 1px solid var(--line); }
.slide-kpis .kpi span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.slide-kpis .kpi strong { display: block; margin-top: 3px; font-family: var(--font-heading); font-size: 17px; color: var(--text); }
.value-chain { display: flex; gap: 8px; flex-wrap: wrap; }
.value-node { padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; min-width: 150px; flex: 1 1 170px; box-shadow: var(--shadow-sm); transition: all 140ms var(--ease); }
.value-node:hover { border-color: var(--steel-light); }
.value-node.active { background: var(--accent-soft); border-color: var(--steel); }
.value-node strong { display: block; margin-bottom: 2px; font-family: var(--font-heading); font-size: 14px; color: var(--text); }
.value-node span { color: var(--muted); font-size: 12px; }
.node-detail { border-radius: var(--radius-lg); padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.node-detail h3 { font-family: var(--font-heading); margin: 0 0 5px; font-size: 20px; font-weight: 500; color: var(--text); }
.node-detail p { color: var(--g600); font-size: 14px; }
.dual-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dual-list .list-card { border-radius: var(--radius-sm); background: var(--g50); border: 1px solid var(--line); padding: 14px; }
.dual-list h4 { margin: 0 0 7px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; font-weight: 600; }
.dual-list ul { margin: 0; padding-left: 16px; font-size: 13px; }

/* ── Dashboard ── */
.dashboard-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dashboard-boards { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 14px; }
.quote-strip { padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); color: var(--g600); font-size: 13px; }

/* ── Gallery ── */
.gallery-card { overflow: hidden; border-radius: var(--radius-lg); }
.gallery-card img { aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-card .caption { padding: 12px 16px; color: var(--g600); font-size: 13px; }
.list-compact { margin: 0; padding-left: 16px; color: var(--g600); font-size: 13px; }
.list-compact li + li { margin-top: 5px; }

/* ── Contact page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-links { display: grid; gap: 8px; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--g50); border: 1px solid var(--line); transition: all 140ms var(--ease); }
.contact-link:hover { border-color: var(--steel-light); }
.contact-link span { color: var(--muted); font-size: 13px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tool-chip { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--g50); border: 1px solid var(--line); color: var(--g600); font-size: 13px; }

/* ── Footer ── */
.footer { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 20px 0 48px; color: var(--muted); font-size: 13px; }
.footer-shell { border-top: 1px solid var(--g200); padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer a { color: var(--steel); }
.footer a:hover { color: var(--navy); }

/* ── Utilities ── */
.subtle { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.align-right { text-align: right; }
.note-good { background: var(--good-soft); border: 1px solid rgba(15,123,95,0.12); }
.note-warn { background: var(--warn-soft); border: 1px solid rgba(180,83,9,0.12); }

/* ── Fade animation ── */
.fade-up { opacity: 0; transform: translateY(12px); transition: opacity 450ms ease, transform 450ms ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }


/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 1180px) {
  .hero-grid, .profile-grid, .split, .viz-grid, .dashboard-boards, .value-chain-grid, .project-lab, .about-preview { grid-template-columns: 1fr; }
  .project-list { position: static; }
  .highlight-grid, .dashboard-top, .differentiator { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.three, .gallery-grid, .project-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-shell { align-items: start; flex-direction: column; padding: 12px 0 14px; }
  .header-actions { width: 100%; justify-content: flex-start; }
  main { width: min(var(--content), calc(100% - 24px)); }
  .footer { width: min(var(--content), calc(100% - 24px)); }
  .credibility-inner { flex-direction: column; gap: 0; }
  .cred-divider { width: 60px; height: 1px; }

  .highlight-grid, .card-grid.two, .card-grid.three, .gallery-grid,
  .metric-grid.three, .metric-grid.four, .dashboard-top,
  .contact-grid, .tool-grid, .project-blocks, .dual-list, .slide-kpis,
  .differentiator { grid-template-columns: 1fr; }

  .hero-name { font-size: 30px; }
  .hero-title { font-size: 26px; }
  .metric-strip { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero-card, .card, .panel, .note, .project-detail, .contact-card { padding: 16px; }
  .timeline-item { padding: 16px 16px 16px 44px; }
  .timeline-item::before { left: 18px; top: 22px; height: calc(100% - 44px); }
  .timeline-item::after { left: 10px; top: 20px; }
  .hero-actions, .header-actions, .cta-actions { width: 100%; }
  .button { width: 100%; justify-content: center; }
  .value-node { min-width: 100%; }
  .hero-headshot { width: 90px; height: 90px; }
  .hero-name { font-size: 28px; }
  .contact-cta { padding: 32px 20px; }
}
