/* ============================================================
   Ahmed Quality Ops — Premium V15 Design Upgrade
   Role: Overlay on styles.css + front-end-polish-v14.css
   Scope: Global tokens, homepage, insights, projects, articles,
          navigation, footer, mobile. Pure CSS, no new HTML required.
   ============================================================ */

/* ─── 1. DESIGN TOKEN OVERRIDE ──────────────────────────── */
:root {
  /* Core palette */
  --p-navy:    #06112a;
  --p-navy-2:  #0c1f42;
  --p-navy-3:  #1a3560;
  --p-gold:    #c9a44a;
  --p-gold-lt: #f5e9c8;
  --p-gold-dk: #8a6b20;
  --p-bg:      #f4f6fb;
  --p-bg-2:    #eef2f8;
  --p-white:   #ffffff;
  --p-ink:     #111c30;
  --p-muted:   #5a6b84;
  --p-border:  #dde4ef;
  --p-shadow:  0 20px 56px rgba(6,17,42,.11);
  --p-shadow-s:0 10px 28px rgba(6,17,42,.07);
  /* Typography */
  --p-font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  /* Radius */
  --p-r: 24px;
  --p-r-sm: 14px;
  --p-r-lg: 34px;
}

/* ─── 2. BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--p-font);
  background: var(--p-bg);
  color: var(--p-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.65;
  margin: 0;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ─── 3. NAVIGATION ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 17, 42, 0.97) !important;
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,.22);
  padding: 0 clamp(18px,4vw,48px);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  flex-shrink: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--p-gold), #a87b1a);
  color: var(--p-navy);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(201,164,74,.35);
}
.brand strong { display: block; color: #fff; font-size: 15px; }
.brand small { display: block; color: #94a3b8; font-size: 11.5px; margin-top: 2px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.nav a {
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 8px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav .nav-cv {
  background: var(--p-gold) !important;
  color: var(--p-navy) !important;
  font-weight: 800;
  border-radius: 999px;
  padding: 9px 16px;
  margin-left: 6px;
  transition: all .18s;
}
.nav .nav-cv:hover { background: #dbbf6a !important; transform: translateY(-1px); }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: white;
  font-size: 20px;
  cursor: pointer;
  place-items: center;
}

/* ─── 4. HERO ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, #04101f 0%, #071a3a 55%, #0e2453 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -140px; top: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,74,.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: -160px; bottom: -200px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: clamp(72px,10vw,120px) clamp(22px,4vw,52px);
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.hero-copy .eyebrow.pill {
  display: inline-flex;
  background: rgba(201,164,74,.15);
  color: #f0d380;
  border: 1px solid rgba(201,164,74,.35);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: .97;
  letter-spacing: -.05em;
  color: #fff;
  margin: 0 0 20px;
}
.hero .lead {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.75;
  color: #94afc8;
  max-width: 660px;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.hero .tag-row span {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #b8ccdc;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
}

/* Portrait card */
.portrait-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  box-shadow: 0 32px 90px rgba(0,0,0,.35);
}
.portrait-card img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.portrait-caption {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  background: rgba(6,17,42,.92);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 16px 18px;
  backdrop-filter: blur(8px);
}
.portrait-caption small { color: var(--p-gold); font-size: 10.5px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; display: block; }
.portrait-caption strong { display: block; color: #fff; font-size: 14.5px; line-height: 1.35; margin-top: 7px; }
.portrait-caption span { display: block; color: #8ea8bf; font-size: 13px; margin-top: 5px; }

/* ─── 5. BUTTONS ─────────────────────────────────────────── */
.btn, .actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  min-height: 46px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}
.btn.primary, .btn.dark, button.btn.primary {
  background: linear-gradient(135deg, var(--p-gold), #a87b1a);
  color: var(--p-navy);
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(201,164,74,.3);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(201,164,74,.4); }
.hero .btn.secondary {
  background: rgba(255,255,255,.07);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.2);
}
.hero .btn.secondary:hover { background: rgba(255,255,255,.14); }
.btn.secondary:not(.hero *) {
  background: #fff;
  color: var(--p-ink);
  border: 1px solid var(--p-border);
}
.btn.secondary:not(.hero *):hover { background: #f7f9ff; transform: translateY(-1px); }

/* ─── 6. SECTION LAYOUT ─────────────────────────────────── */
.section {
  padding: clamp(64px, 8vw, 96px) clamp(22px, 4vw, 52px);
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.section-head {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head .eyebrow {
  display: block;
  color: var(--p-gold-dk);
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -.04em;
  color: var(--p-navy);
  margin: 0 0 14px;
}
.section-head p {
  color: var(--p-muted);
  font-size: 16.5px;
  line-height: 1.7;
}

/* ─── 7. STATS BAR ───────────────────────────────────────── */
.stats.section-tight {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(22px,4vw,52px);
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  box-sizing: border-box;
}
.stats article {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: var(--p-shadow-s);
  position: relative;
  overflow: hidden;
}
.stats article::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p-gold), transparent);
}
.stats strong {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--p-navy);
  letter-spacing: -.03em;
  margin-bottom: 7px;
}
.stats span { color: var(--p-muted); font-size: 13.5px; line-height: 1.55; }

/* ─── 8. CARDS ───────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-r);
  padding: 26px;
  box-shadow: var(--p-shadow-s);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p-gold), transparent);
}
.card h3 {
  font-size: 19px;
  line-height: 1.2;
  color: var(--p-navy);
  margin: 12px 0 10px;
  letter-spacing: -.015em;
}
.card p { color: var(--p-muted); font-size: 14.5px; line-height: 1.7; }

.cards.three, .project-grid-v13 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── 9. PROJECTS SECTION ───────────────────────────────── */
#projects .section-head { text-align: left; margin-left: 0; }
.card.project {
  display: flex;
  flex-direction: column;
  border-left: 4px solid transparent;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card.project:hover {
  border-left-color: var(--p-gold);
  box-shadow: var(--p-shadow);
  transform: translateY(-3px);
}
.card.project::before { display: none; }
.card.project .status {
  background: rgba(201,164,74,.12);
  color: var(--p-gold-dk);
  border: 1px solid rgba(201,164,74,.3);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
}
.card.project .status.coming {
  background: #eef4ff;
  color: #1e4b8e;
  border-color: #c7deff;
}
.card.project h3 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--p-navy);
}
.card.project p { color: #46587a; font-size: 14.5px; line-height: 1.68; }
.card.project .project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.card.project .project-meta span {
  background: var(--p-bg-2);
  color: var(--p-navy);
  border: 1px solid var(--p-border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}
.card.project > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--p-navy);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-top: 1px solid var(--p-border);
}
.card.project > a::after { content: '→'; }
.card.project > a:hover { color: var(--p-gold-dk); }

/* ─── 10. PATHWAYS SECTION ───────────────────────────────── */
.v14-pathways-home {
  background: var(--p-white);
  border-top: 1px solid var(--p-border);
  border-bottom: 1px solid var(--p-border);
}
.v14-pathways {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.v14-path-card {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 20px;
  padding: 22px;
  text-decoration: none;
  transition: all .2s;
  position: relative;
  overflow: hidden;
  display: block;
}
.v14-path-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--p-gold), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.v14-path-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow); }
.v14-path-card:hover::before { opacity: 1; }
.v14-path-card small {
  display: block;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--p-gold-dk);
  margin-bottom: 8px;
}
.v14-path-card h3 { font-size: 17px; color: var(--p-navy); margin: 0 0 8px; }
.v14-path-card p { color: var(--p-muted); font-size: 13.5px; margin: 0; line-height: 1.55; }

/* ─── 11. INSIGHTS SECTION (HOMEPAGE) ───────────────────── */
.section.insights-home.v14-insights {
  position: relative;
  background: none;
  padding-top: 0;
  padding-bottom: 0;
  max-width: 100%;
  overflow: hidden;
}
.section.insights-home.v14-insights::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #06112a 0%, #0c2040 55%, #122d56 100%);
  z-index: 0;
}
.section.insights-home.v14-insights::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(201,164,74,.22) 0%, transparent 35%),
    radial-gradient(ellipse at 90% 80%, rgba(37,99,235,.14) 0%, transparent 35%);
  z-index: 0;
  pointer-events: none;
}

/* Inner content wrapper for insights */
.v14-insights-inner {
  position: relative;
  z-index: 1;
  padding: clamp(64px,8vw,96px) clamp(22px,4vw,52px);
  max-width: 1180px;
  margin: 0 auto;
  box-sizing: border-box;
}
.insights-home .section-head { text-align: center; }
.insights-home .section-head h2 { color: #fff; }
.insights-home .section-head p { color: #8aa8c5; font-size: 17px; }
.insights-home .section-head .eyebrow { color: var(--p-gold); }

.v14-insights-board {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  margin-top: 32px;
}

/* Feature card */
.v14-feature-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  padding: 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  position: relative;
  z-index: 1;
}
.v14-feature-card h3 {
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.04;
  letter-spacing: -.04em;
  color: #fff;
  margin: 16px 0;
}
.v14-feature-card p { color: #94b0c8; font-size: 16px; line-height: 1.7; }

.v14-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.v14-feature-grid span {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 14px;
  font-size: 13.5px;
  color: #8aa8c5;
}
.v14-feature-grid strong { display: block; font-size: 22px; color: #fff; margin-bottom: 3px; }

/* Article rail */
.v14-article-rail {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin-top: 20px;
}
.v14-article-rail a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  color: #dbeafe;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  transition: all .18s;
}
.v14-article-rail a:hover { background: var(--p-gold); color: var(--p-navy); }

/* Side stack */
.v14-side-stack { display: grid; gap: 18px; }
.v14-side-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 26px;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}
.v14-side-card h3 { color: #fff; font-size: 22px; margin: 12px 0 10px; line-height: 1.15; }
.v14-side-card p { color: #94b0c8; font-size: 14.5px; line-height: 1.65; }
.v14-side-card.highlight {
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.06));
  border-color: rgba(201,164,74,.3);
}
.v14-side-card .insight-badge {
  background: rgba(201,164,74,.18);
  border: 1px solid rgba(201,164,74,.3);
  color: #f5e0a8;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: inline-flex;
}
.v14-side-card .small-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.v14-side-card .small-list span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: #c0d5e8;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 700;
}

/* ─── 12. EXPERIENCE SECTION ─────────────────────────────── */
#experience .experience-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
.dark-card {
  background: linear-gradient(145deg, var(--p-navy), #0e2248);
  color: #fff;
  border-radius: var(--p-r);
  padding: 32px;
  box-shadow: var(--p-shadow);
}
.dark-card .eyebrow { color: var(--p-gold); }
.dark-card h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 10px 0 14px; }
.dark-card p { color: #94afc8; line-height: 1.75; }
.mini-list { display: grid; gap: 9px; margin-top: 22px; }
.mini-list span {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 12px 14px;
  color: #c0d4e4;
  font-size: 13.5px;
}

.timeline { display: grid; gap: 0; }
.timeline article {
  border-left: 2px solid var(--p-border);
  padding: 0 0 26px 24px;
  position: relative;
}
.timeline article:last-child { padding-bottom: 0; }
.timeline article::before {
  content: '';
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--p-gold);
  box-shadow: 0 0 0 4px rgba(201,164,74,.2);
}
.timeline span { color: var(--p-gold-dk); font-weight: 800; font-size: 12.5px; display: block; margin-bottom: 5px; }
.timeline h3 { margin: 0 0 5px; font-size: 17px; color: var(--p-navy); }
.timeline p { color: var(--p-muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* ─── 13. CONTACT SECTION ────────────────────────────────── */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 32px;
  background: linear-gradient(145deg, var(--p-navy), #0e2248);
  color: #fff;
  border-radius: var(--p-r-lg);
  padding: 44px;
  max-width: calc(1180px - 44px);
  margin: 0 auto clamp(64px,8vw,96px);
  box-shadow: var(--p-shadow);
}
.contact-copy .eyebrow { color: var(--p-gold); }
.contact-copy h2 { color: #fff; font-size: clamp(26px, 3.5vw, 42px); line-height: 1.08; margin: 10px 0 14px; }
.contact-copy p { color: #8aa8c5; line-height: 1.75; }
.contact-card {
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  color: var(--p-ink);
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.contact-card img {
  width: 64px; height: 64px;
  border-radius: 16px;
  object-fit: cover;
  object-position: top;
  float: left;
  margin: 0 14px 12px 0;
}
.contact-card strong { display: block; font-size: 16px; color: var(--p-navy); }
.contact-card > div span { display: block; font-size: 12px; color: var(--p-gold-dk); font-weight: 800; margin-top: 2px; }
.contact-card p { color: var(--p-muted); font-size: 13.5px; line-height: 1.6; margin: 6px 0; clear: both; }
.contact-card a { color: var(--p-navy); font-weight: 700; }
.contact-card .actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.contact-card .btn.dark {
  background: var(--p-navy);
  color: #fff;
  border: none;
  font-size: 13.5px;
  padding: 10px 16px;
  min-height: 42px;
}

/* ─── 14. FOOTER ─────────────────────────────────────────── */
.footer.enhanced-footer {
  background: var(--p-navy) !important;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px clamp(22px,4vw,52px);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-inner strong { color: #fff; font-size: 16px; display: block; margin-bottom: 8px; }
.footer-inner p { color: #64748b; font-size: 13.5px; line-height: 1.65; margin: 0; }
.footer-links {
  display: grid;
  gap: 9px;
}
.footer-links a {
  color: #94a3b8;
  font-size: 13.5px;
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--p-gold); }
.back-top {
  position: fixed;
  right: 20px;
  bottom: 76px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p-gold), #a87b1a);
  color: var(--p-navy);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(201,164,74,.35);
  text-decoration: none;
  z-index: 50;
}

/* ─── 15. ARTICLE PAGES ──────────────────────────────────── */
body.article-page, body.v13-article {
  background: #f4f6fb;
}

.article-hero {
  background: linear-gradient(140deg, #04101f 0%, #0a1f3e 55%, #102e5a 100%) !important;
  padding: 76px 0 52px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  margin-bottom: 0;
}
.article-hero::before {
  content: '';
  position: absolute;
  right: -120px; top: -100px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,74,.2) 0%, transparent 70%);
  pointer-events: none;
}
.article-hero .container, .article-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 48px);
  position: relative;
  z-index: 1;
}
.article-hero h1, .v13-article .article-hero h1 {
  font-size: clamp(36px, 5.5vw, 64px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.048em;
  color: #fff;
  margin: 18px 0;
}
.article-hero .hero-lead, .article-intro {
  font-size: clamp(16px, 1.8vw, 20px) !important;
  line-height: 1.7;
  color: #8aa8c5 !important;
  max-width: 820px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
.article-meta span, .article-meta .tag {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 8px 13px;
  color: #c0d5e8;
  font-size: 13px;
  font-weight: 700;
}

/* Article shell / layout */
.article-shell, .v13-article .article-layout {
  max-width: 1120px;
  margin: 36px auto 72px;
  padding: 0 clamp(22px, 4vw, 48px);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  box-sizing: border-box;
}
.article-toc, .qm-toc {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--p-shadow-s);
}
.article-toc h2, .article-toc h3, .qm-toc h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--p-muted);
  margin: 0 0 12px;
  font-weight: 900;
}
.article-toc a, .qm-toc a {
  display: block;
  padding: 7px 0;
  color: #4a5e74;
  font-size: 13.5px;
  border-bottom: 1px solid #f0f4f8;
  text-decoration: none;
  line-height: 1.4;
}
.article-toc a:last-child, .qm-toc a:last-child { border-bottom: none; }
.article-toc a:hover, .qm-toc a:hover { color: var(--p-gold-dk); }

/* Article body */
.article-body, .article-content, .qm-content {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 26px;
  padding: clamp(26px, 4vw, 52px);
  box-shadow: var(--p-shadow-s);
  max-width: 820px;
  font-size: 17px;
  line-height: 1.8;
}
.article-body h2, .article-content h2, .qm-content h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--p-navy);
  margin: 52px 0 16px;
}
.article-body h2:first-child, .article-content h2:first-child { margin-top: 0; }
.article-body h3, .article-content h3, .qm-content h3 {
  font-size: 20px;
  color: #1a3560;
  margin: 34px 0 12px;
}
.article-body p, .article-content p, .qm-content p {
  color: #334155;
  line-height: 1.85;
  margin: 0 0 20px;
  font-size: 16.5px;
}
.article-body a, .article-content a, .qm-content a {
  color: #0d4b80;
  font-weight: 700;
  text-underline-offset: 2px;
  text-decoration-color: rgba(201,164,74,.5);
}

/* Callout boxes */
.v14-callout, .callout, .key-takeaway, .editorial-note {
  background: rgba(201,164,74,.08);
  border: 1px solid rgba(201,164,74,.3);
  border-left: 4px solid var(--p-gold);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 28px 0;
  color: #3d2e0e;
  font-size: 15.5px;
}
.v13-callout {
  background: #fffbef;
  border: 1px solid #e8d5a0;
  border-left: 4px solid var(--p-gold);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 24px 0;
  color: #3d2c0c;
}

/* Figure cards */
.artifact-card, .figure-card, .article-visual {
  margin: 32px 0;
  border: 1px solid var(--p-border);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--p-shadow-s);
}
.artifact-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--p-border);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.artifact-head span {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--p-muted);
  font-weight: 900;
  margin-bottom: 4px;
}
.artifact-head strong {
  display: block;
  font-size: 19px;
  color: var(--p-navy);
  letter-spacing: -.02em;
}
.artifact-card figcaption, .figure-card figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--p-muted);
  background: #f8fbff;
  border-top: 1px solid var(--p-border);
  line-height: 1.5;
}

/* Pillar cards */
.pillar-card {
  margin: 28px 0;
  padding: 28px;
  border: 1px solid var(--p-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--p-shadow-s);
  scroll-margin-top: 100px;
}
.pillar-top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.pillar-num {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--p-gold), #a87b1a);
  color: var(--p-navy);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}
.pillar-top .eyebrow { color: var(--p-gold-dk); font-size: 10.5px; }
.pillar-top h2 { margin: 4px 0 0; font-size: 22px; color: var(--p-navy); }

/* Story boxes */
.story-box {
  background: var(--p-navy);
  border-radius: 18px;
  padding: 22px 22px 22px 76px;
  position: relative;
  margin: 22px 0;
}
.story-box .person {
  position: absolute;
  left: 18px; top: 22px;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--p-gold), #a87b1a);
  color: var(--p-navy);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
}
.story-box strong { color: var(--p-gold); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.story-box h3 { color: #fff; font-size: 16px; margin: 6px 0 8px; }
.story-box p { color: #8aa8c5; font-size: 14.5px; line-height: 1.65; margin: 0; }

/* Lesson box */
.lesson {
  border-left: 4px solid var(--p-gold);
  background: rgba(201,164,74,.06);
  border-radius: 14px;
  padding: 14px 18px;
  color: #3d2e0e;
  font-weight: 700;
  font-size: 14.5px;
  margin: 18px 0;
}
.lesson span { color: var(--p-gold-dk); font-weight: 900; }

/* KPI row */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.kpi {
  background: var(--p-navy);
  border-radius: 18px;
  padding: 18px;
}
.kpi b { display: block; font-size: 30px; color: var(--p-gold); margin-bottom: 6px; letter-spacing: -.03em; }
.kpi span { color: #8aa8c5; font-size: 13px; line-height: 1.5; }

/* Article CTA / related */
.v14-article-cta {
  margin-top: 38px;
  border-radius: 22px;
  padding: 28px;
  background: linear-gradient(140deg, var(--p-navy), #122d56);
  color: #fff;
}
.v14-article-cta h2 { color: #fff; font-size: 22px; margin: 0 0 10px; }
.v14-article-cta p { color: #8aa8c5; font-size: 15px; }
.v14-article-cta a { color: #fff; font-weight: 800; margin-right: 18px; text-decoration-color: var(--p-gold); }

.v14-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.v14-related a {
  background: var(--p-bg-2);
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--p-navy);
  font-size: 14px;
  font-weight: 700;
  transition: all .18s;
}
.v14-related a:hover { background: #fff; box-shadow: var(--p-shadow-s); transform: translateY(-2px); }
.v14-related small { display: block; color: var(--p-gold-dk); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 5px; }

/* Article progress bar */
.article-progress, .progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p-gold), #dbbf6a);
  z-index: 999;
}

/* FAQ in articles */
.faq-block, .faq-section { margin-top: 44px; border-top: 1px solid var(--p-border); padding-top: 24px; }
.faq-item {
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 12px 0;
  background: #fff;
}
.faq-item h3 { margin: 0 0 8px; color: var(--p-navy); font-size: 16px; }
.faq-item p { color: var(--p-muted); font-size: 14.5px; margin: 0; }

/* ─── 16. INSIGHTS PAGE ───────────────────────────────────── */
.masterclass-highlight {
  background: linear-gradient(140deg, #04101f 0%, #0a1f3e 55%, #102e5a 100%);
  border-radius: 28px;
  padding: 36px;
  color: #fff;
  box-shadow: var(--p-shadow);
  border: 1px solid rgba(255,255,255,.07);
}
.masterclass-highlight h2 { color: #fff; margin: 0 0 14px; font-size: clamp(24px, 3vw, 36px); }
.masterclass-highlight p { color: #8aa8c5; }
.masterclass-list { display: grid; gap: 11px; margin-top: 22px; }
.masterclass-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 14px 16px;
}
.masterclass-item strong {
  background: var(--p-gold);
  color: var(--p-navy);
  border-radius: 10px;
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  display: block;
}
.masterclass-item a {
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
.masterclass-item a:hover { color: var(--p-gold); }

/* ─── 17. MOBILE BOTTOM CTA ──────────────────────────────── */
.v14-mobile-cta {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 100;
  background: rgba(6,17,42,.96);
  border: 1px solid rgba(201,164,74,.28);
  border-radius: 16px;
  padding: 8px;
  gap: 7px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.v14-mobile-cta a {
  flex: 1;
  min-height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
}
.v14-mobile-cta a:first-child { background: var(--p-gold); color: var(--p-navy); }
.v14-mobile-cta a:nth-child(2) { background: rgba(255,255,255,.09); }
.v14-mobile-cta a:nth-child(3) { background: rgba(255,255,255,.09); }

/* ─── 18. BREADCRUMBS ────────────────────────────────────── */
.breadcrumb {
  max-width: 1000px;
  margin: 28px auto -16px;
  padding: 0 clamp(22px, 4vw, 48px);
  font-size: 13.5px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--p-navy); font-weight: 700; }
.breadcrumb a:hover { color: var(--p-gold-dk); }

/* ─── 19. INSIGHT BADGE ──────────────────────────────────── */
.insight-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,164,74,.12);
  border: 1px solid rgba(201,164,74,.3);
  color: var(--p-gold-dk);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.article-hero .insight-badge { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #f0e0b0; }

/* ─── 20. OBSERVE GRIDS ──────────────────────────────────── */
.observe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
.observe > div {
  background: #f8fbff;
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: 16px;
}
.observe b { display: block; color: var(--p-navy); font-size: 14px; margin-bottom: 6px; }
.observe p { color: var(--p-muted); font-size: 14px; line-height: 1.65; margin: 0; }

/* ─── 21. EYEBROW SHARED ─────────────────────────────────── */
.eyebrow {
  display: block;
  color: var(--p-gold-dk);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 10px;
}

/* ─── 22. CERTIFICATIONS SECTION ─────────────────────────── */
#certifications .section-head { text-align: left; margin-left: 0; }

/* ─── 23. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .article-shell, .v13-article .article-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait-card { max-width: 460px; margin: 0 auto; }
  .portrait-card img { height: 460px; }
  .stats.section-tight { grid-template-columns: repeat(2, 1fr); }
  .cards.three, .project-grid-v13 { grid-template-columns: repeat(2, 1fr); }
  .v14-pathways { grid-template-columns: repeat(2, 1fr); }
  .v14-insights-board { grid-template-columns: 1fr; }
  #experience .experience-grid { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; padding: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .article-shell, .v13-article .article-layout {
    grid-template-columns: 1fr;
  }
  .article-toc { position: relative; top: auto; }
  .v14-related { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none;
    position: absolute;
    top: 70px; left: 12px; right: 12px;
    background: rgba(6,17,42,.97);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 14px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
    z-index: 89;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; font-size: 15px; }
  .menu-btn { display: grid !important; }
}

@media (max-width: 680px) {
  body { padding-bottom: 72px; }
  .hero-grid { padding: 58px 18px 48px; }
  .portrait-card img { height: 360px; }
  .portrait-caption { position: static; margin-top: 0; border-radius: 0 0 24px 24px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .stats.section-tight { grid-template-columns: 1fr; padding-left: 18px; padding-right: 18px; }
  .cards.three, .project-grid-v13 { grid-template-columns: 1fr; }
  .v14-pathways { grid-template-columns: 1fr; }
  .v14-insights-board { padding-left: 18px !important; padding-right: 18px !important; }
  .insights-home > .section-head { padding-left: 18px !important; padding-right: 18px !important; }
  .v14-feature-grid { grid-template-columns: 1fr; }
  .v14-article-rail { grid-template-columns: repeat(4, 1fr); }
  .contact-section { padding: 24px; margin-left: 16px; margin-right: 16px; }
  .footer-inner { padding: 0; }
  .kpi-row { grid-template-columns: 1fr; }
  .observe { grid-template-columns: 1fr; }
  .v14-related { grid-template-columns: 1fr; }
  .article-body, .article-content, .qm-content { padding: 22px 18px; font-size: 16px; }
  .article-body h2, .article-content h2 { font-size: 24px; margin-top: 38px; }
  .v14-mobile-cta { display: flex; }
  .pillar-card { padding: 20px 18px; }
  .story-box { padding: 80px 18px 18px 18px; }
  .story-box .person { top: 18px; }
}

@media (max-width: 400px) {
  .brand small { display: none; }
  .hero h1 { font-size: 36px; }
}

/* ─── 24. ANIMATION ─────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: rise .5s ease both; }
.delay { animation-delay: .12s; }

/* ─── 25. PRINT ─────────────────────────────────────────── */
@media print {
  .site-header, .menu-btn, .back-top, .v14-mobile-cta,
  .article-toc, .nav, .actions, .v14-article-cta,
  .v14-related, .breadcrumb, .footer { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .article-body, .article-content { box-shadow: none; border: none; padding: 0; }
}

/* ─── 26. SMALL FIXES / OVERRIDES ───────────────────────── */

/* Fix v14 white nav override on home */
.site-header { background: rgba(6, 17, 42, 0.97) !important; }

/* Insight badge in article header matches navy hero */
.article-hero .insight-badge, .qm-eyebrow {
  background: rgba(201,164,74,.15) !important;
  border-color: rgba(201,164,74,.35) !important;
  color: #f5e0a8 !important;
}

/* Masterclass page article toc fix */
.qm-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  max-width: 1120px;
  margin: 40px auto 72px;
  padding: 0 clamp(22px,4vw,48px);
  align-items: start;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .qm-layout { grid-template-columns: 1fr; }
  .qm-toc { position: relative; top: auto; }
}

/* Make section headings left-aligned on non-home sections */
#projects .section-head,
#certifications .section-head,
#experience .section-head,
#contact .section-head {
  text-align: left;
}

/* Smooth hover states on all interactive items */
a, button { transition: color .15s, background .15s, box-shadow .18s, transform .18s, border-color .15s; }

/* Reading measure for article body */
.article-body > *, .article-content > * { max-width: 72ch; }
.article-body figure, .article-content figure,
.article-body .artifact-card, .article-content .artifact-card,
.article-body .observe, .article-content .observe,
.article-body .kpi-row, .article-content .kpi-row,
.article-body .story-box, .article-content .story-box,
.article-body .pillar-card, .article-content .pillar-card { max-width: 100%; }

/* Article links section */
.article-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.article-links a {
  display: block;
  background: var(--p-bg-2);
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: 15px 16px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--p-navy);
  text-decoration: none;
}
.article-links a:hover { background: #fff; border-color: var(--p-gold); }
@media (max-width: 640px) { .article-links { grid-template-columns: 1fr; } }
