/* =========================================================
   Portfolio — Firdaous KPELAFIA
   Palette identical to the .docx CV.
   ========================================================= */

:root {
  --navy:        #1F3A5F;
  --navy-deep:   #14283F;
  --navy-soft:   #2A4B78;
  --bg:          #FFFFFF;
  --bg-alt:      #F5F7FB;
  --line:        #E3E8F0;
  --text:        #1B2233;
  --text-med:    #4A5568;
  --text-soft:   #7A8597;
  --accent:      #F0B95B;   /* warm highlight, used sparingly */

  --radius:      14px;
  --radius-sm:   8px;
  --shadow-sm:   0 1px 2px rgba(20, 40, 63, 0.05);
  --shadow-md:   0 8px 24px rgba(20, 40, 63, 0.08);

  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-disp:   'Manrope', 'Inter', -apple-system, sans-serif;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.1em; }
button { font-family: inherit; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); box-shadow: var(--shadow-md); }

/* Utility — force white text (used on nav CTA where .nav-links a color overrides .btn-primary) */
.text-white,
.text-white:hover,
.nav-links a.text-white {
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0.5px;
}
.brand-name {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-med);
}
.nav-links a:hover { color: var(--navy); text-decoration: none; }
.nav-cta { margin-left: 4px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: #fff;
}
.lang-btn {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}
.lang-btn:hover { color: var(--navy); }
.lang-btn.active {
  background: var(--navy);
  color: #fff;
}

.burger {
  display: none;
  width: 38px; height: 38px;
  border: none; background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 96px 0;
}
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 14px;
}
.section-eyebrow.on-dark { color: #B9CDE6; }
.section-title {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--text);
  max-width: 760px;
}
.section-title.on-dark { color: #fff; }
.section-lede {
  font-size: 17px;
  color: var(--text-med);
  max-width: 720px;
  margin: 0 0 36px;
}
.section-lede.on-dark { color: rgba(255,255,255,0.8); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 80px 0 88px;
  background:
    radial-gradient(1200px 600px at -10% -20%, rgba(31, 58, 95, 0.08), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(31, 58, 95, 0.06), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 18px;
}
.hero-title {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hl {
  background: linear-gradient(180deg, transparent 60%, rgba(31, 58, 95, 0.18) 60%);
  padding: 0 2px;
}
.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-med);
  margin: 0 0 30px;
  max-width: 580px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 1px;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(31, 58, 95, 0.25);
}
.hero-card-name {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin: 0 0 4px;
}
.hero-card-role {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0 0 18px;
}
.micro-kpis {
  list-style: none;
  padding: 0; margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.micro-kpis li {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 2px;
}
.micro-kpis strong {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  line-height: 1;
}
.micro-kpis span {
  font-size: 11.5px;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.25;
}

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p { margin: 0 0 16px; color: var(--text-med); font-size: 16.5px; }
.about-text p:last-child { margin-bottom: 0; }

.facts {
  list-style: none;
  padding: 22px 24px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.facts li:last-child { border-bottom: none; }
.fact-k { color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.5px; font-size: 11.5px; font-weight: 600; }
.fact-v { color: var(--text); font-weight: 600; text-align: right; }

/* =========================================================
   KPI grid
   ========================================================= */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kpi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-value {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 8px;
}
.kpi-label {
  font-size: 13.5px;
  color: var(--text-med);
  line-height: 1.4;
}

/* =========================================================
   Case studies
   ========================================================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.case-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.case-num {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 13px;
  color: var(--navy);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.case-title {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.25;
}
.case-stat {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-soft);
}
.case-stat strong {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  margin-right: 6px;
}
.case-block {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.55;
}
.case-k {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.case-v { color: var(--text-med); }
.tags {
  list-style: none;
  padding: 0; margin: auto 0 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 14px;
}
.tags li {
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 999px;
}

/* =========================================================
   Dashboards
   ========================================================= */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}
.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.dash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dash-thumb {
  aspect-ratio: 5 / 3;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.dash-thumb svg { width: 100%; height: 100%; }
.dash-card h3 {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 16.5px;
  margin: 18px 20px 6px;
  color: var(--text);
  line-height: 1.3;
}
.dash-desc {
  margin: 0 20px 14px;
  font-size: 14px;
  color: var(--text-med);
  line-height: 1.5;
}
.dash-card .tags { margin: auto 20px 18px; padding-top: 6px; }
.dash-cta {
  text-align: center;
  font-size: 15px;
  color: var(--text-med);
  margin: 8px 0 0;
}
.dash-cta a { font-weight: 600; }

/* =========================================================
   Articles
   ========================================================= */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.article-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
}
.article-title {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--text);
}
.article-excerpt {
  font-size: 14.5px;
  color: var(--text-med);
  line-height: 1.55;
  margin: 0 0 14px;
}
.article-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* =========================================================
   Timeline
   ========================================================= */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 11px;
  width: 2px;
  background: linear-gradient(180deg, var(--navy), rgba(31,58,95,0.15));
}
.timeline li {
  position: relative;
  padding: 0 0 32px 38px;
}
.timeline li:last-child { padding-bottom: 0; }
.t-dot {
  position: absolute;
  left: 4px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--navy);
}
.t-date {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
}
.t-role {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 17.5px;
  margin: 0 0 2px;
  color: var(--text);
}
.t-place {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0 0 8px;
}
.t-text {
  font-size: 14.5px;
  color: var(--text-med);
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}

/* =========================================================
   Skills
   ========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.skill-block {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}
.skill-block h3 {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--text);
}
.skill-block p {
  margin: 0;
  color: var(--text-med);
  font-size: 14.5px;
  line-height: 1.55;
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 22px 20px;
  color: #fff;
  transition: background .15s ease, transform .15s ease;
}
.contact-card:hover { background: rgba(255,255,255,0.15); text-decoration: none; transform: translateY(-2px); }
.contact-card.static:hover { background: rgba(255, 255, 255, 0.08); transform: none; cursor: default; }
.cc-k {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11.5px;
  font-weight: 700;
  color: #B9CDE6;
  margin: 0 0 6px;
}
.cc-v {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 15.5px;
  margin: 0;
  word-break: break-word;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: #0E1E33;
  color: #B9CDE6;
  padding: 28px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer a { color: #B9CDE6; font-weight: 600; }
.footer a:hover { color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 64px; }
  .burger { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav-links a.btn { border-bottom: none; padding: 12px 22px; width: auto; margin-top: 10px; }
  .lang-switch { margin: 10px 0 4px; }
  .nav-cta { width: 100%; text-align: center; }
  .dash-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand-name { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi-value { font-size: 28px; }
  .hero-title { font-size: 32px; }
}

/* =========================================================
   Featured research section (Climate dashboard)
   ========================================================= */
.section-featured {
  background:
    radial-gradient(900px 500px at 110% 0%, rgba(31, 58, 95, 0.55), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(31, 58, 95, 0.45), transparent 60%),
    linear-gradient(135deg, #14283F 0%, #1F3A5F 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.featured-head { max-width: 820px; margin-bottom: 36px; }
.featured-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(240, 185, 91, 0.18);
  border: 1px solid rgba(240, 185, 91, 0.55);
  color: #F4C77A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-featured .section-title .hl {
  background: linear-gradient(180deg, transparent 60%, rgba(240, 185, 91, 0.35) 60%);
  color: #fff;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 30px;
  align-items: start;
}
.featured-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform .3s ease, box-shadow .3s ease;
}
.featured-shot:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.45);
}
.featured-shot a { display: block; }
.featured-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.featured-shot figcaption {
  font-size: 12.5px;
  color: var(--text-soft);
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.featured-side { display: flex; flex-direction: column; gap: 18px; }
.featured-kpis {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.featured-kpis li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.featured-kpis strong {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 24px;
  color: #F4C77A;
  line-height: 1;
}
.featured-kpis span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.3;
}
.featured-block {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid #F4C77A;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.fb-k {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11px;
  font-weight: 700;
  color: #F4C77A;
  margin: 0 0 6px;
}
.fb-v {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
.featured-tags li {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.featured-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-ghost-dark:hover {
  background: #fff;
  color: var(--navy-deep);
  border-color: #fff;
}

/* Dashboard card variant: real image instead of SVG */
.dash-thumb.dash-thumb-img { padding: 0; background: #fff; }
.dash-thumb.dash-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 980px) {
  .featured-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .featured-kpis { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Method (How I work)
   ========================================================= */
.section-method {
  background:
    radial-gradient(900px 500px at 110% 10%, rgba(31, 58, 95, 0.07), transparent 60%),
    radial-gradient(700px 400px at -10% 90%, rgba(240, 185, 91, 0.10), transparent 60%),
    #fff;
}
.method-flow {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  position: relative;
}
.method-flow::before {
  content: "";
  position: absolute;
  top: 24px; bottom: 24px;
  left: 33px;
  width: 3px;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(31,58,95,0.15) 100%);
  border-radius: 2px;
}
.method-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  align-items: start;
  padding: 18px 0;
  position: relative;
}
.method-step + .method-step { margin-top: 6px; }
.step-bullet {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 22px rgba(31, 58, 95, 0.25), inset 0 0 0 4px rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
  transition: transform .25s ease, box-shadow .25s ease;
}
.method-step:hover .step-bullet {
  transform: scale(1.06);
  box-shadow: 0 12px 30px rgba(31, 58, 95, 0.4), inset 0 0 0 4px rgba(255,255,255,0.22);
}
.step-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.method-step:hover .step-body {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.step-title {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.25;
}
.step-text {
  margin: 0 0 14px;
  color: var(--text-med);
  font-size: 15px;
  line-height: 1.6;
}
.step-deliverable {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 14px 7px 12px;
  background: var(--bg-alt);
  border-radius: 999px;
  font-size: 13px;
}
.sd-k {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--navy);
  padding-right: 10px;
  border-right: 1px solid var(--line);
}
.sd-v {
  color: var(--text);
  font-weight: 600;
}

/* =========================================================
   Principles
   ========================================================= */
.principles {
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px dashed var(--line);
}
.principles-title {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 26px;
  color: var(--text);
  max-width: 600px;
}
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.principle {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.principle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.p-mark {
  position: absolute;
  top: -22px; right: 16px;
  font-family: 'Georgia', serif;
  font-size: 110px;
  line-height: 1;
  color: rgba(31, 58, 95, 0.10);
  font-weight: 700;
  pointer-events: none;
}
.principle h4 {
  position: relative;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.principle p {
  position: relative;
  margin: 0;
  font-size: 14.5px;
  color: var(--text-med);
  line-height: 1.55;
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.t-quote-mark {
  position: absolute;
  top: -8px; left: 18px;
  font-family: 'Georgia', serif;
  font-size: 88px;
  line-height: 1;
  color: rgba(31, 58, 95, 0.14);
  font-weight: 700;
  pointer-events: none;
}
.testimonial blockquote {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}
.testimonial blockquote::before,
.testimonial blockquote::after { content: '"'; }
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.t-name {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
}
.t-role {
  font-size: 12.5px;
  color: var(--text-soft);
}
.section-note {
  text-align: center;
  font-size: 15px;
  color: var(--text-med);
  margin: 30px 0 0;
}
.section-note a { font-weight: 600; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .method-step:hover .step-bullet, .method-step:hover .step-body,
  .principle:hover, .testimonial:hover, .case-card:hover, .dash-card:hover,
  .article-card:hover, .kpi-card:hover, .contact-card:hover {
    transform: none;
  }
}

/* =========================================================
   Method / testimonials responsive
   ========================================================= */
@media (max-width: 980px) {
  .principles-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .method-flow::before { left: 26px; }
  .method-step { grid-template-columns: 52px 1fr; gap: 16px; }
  .step-bullet { width: 52px; height: 52px; font-size: 16px; }
  .step-body { padding: 18px 20px; }
}

/* =========================================================
   Print
   ========================================================= */
@media print {
  .nav, .footer, .hero-ctas, .nav-cta, .lang-switch, .burger { display: none !important; }
  .section, .hero { padding: 18px 0; }
  body { font-size: 11pt; color: #000; }
  .contact { background: #fff; color: #000; }
  .contact-card { background: #f0f0f0; color: #000; border-color: #999; }
  .cc-k { color: #555; }
  a { color: #000; text-decoration: underline; }
}

/* =========================================================
   Featured: dashboard gallery (3 analysis tabs)
   ========================================================= */
.featured-gallery {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.featured-gallery-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #F4C77A;
  margin: 0 0 18px;
}
.featured-thumbs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.featured-thumbs li {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform .2s ease, box-shadow .2s ease;
}
.featured-thumbs li:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.40);
}
.featured-thumbs a {
  display: block;
  color: inherit;
}
.featured-thumbs a:hover { text-decoration: none; }
.featured-thumbs img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}
.thumb-cap {
  display: block;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border-top: 1px solid var(--line);
  line-height: 1.35;
}

@media (max-width: 980px) {
  .featured-thumbs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .featured-thumbs { grid-template-columns: 1fr; }
  .featured-thumbs img { height: auto; }
}

/* =========================================================
   Certifications
   ========================================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.cert-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.cert-group-wide { grid-column: span 2; }

.cert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cert-tag {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  line-height: 1.25;
}
.cert-count {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.cert-count strong {
  font-family: var(--font-disp);
  font-size: 15px;
  color: var(--navy);
  margin-right: 4px;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.cert-list-2col { grid-template-columns: 1fr 1fr; gap: 6px 12px; }

.cert-list li { margin: 0; }
.cert-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  border: 1px solid transparent;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.cert-list a:hover {
  background: var(--bg-alt);
  border-color: var(--line);
  text-decoration: none;
  transform: translateX(2px);
}
.cert-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.cert-meta {
  font-size: 11.5px;
  color: var(--text-soft);
  letter-spacing: 0.3px;
}

.cert-footnote {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-med);
  line-height: 1.55;
  max-width: 820px;
}

.cert-cta {
  margin: 6px 0 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.cert-cta-note {
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
}

@media (max-width: 980px) {
  .cert-grid { grid-template-columns: 1fr; }
  .cert-group-wide { grid-column: auto; }
  .cert-list-2col { grid-template-columns: 1fr; }
}

/* ============================ CV ACCESS MODAL ============================ */
.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cv-modal[hidden] { display: none; }
.cv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 40, 63, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: cvFadeIn .18s ease-out;
}
.cv-modal-panel {
  position: relative;
  background: var(--bg);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(20, 40, 63, 0.35);
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px 30px 26px;
  animation: cvPopIn .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes cvFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cvPopIn  { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.cv-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  border-radius: 8px;
  transition: background .12s ease, color .12s ease;
}
.cv-modal-close:hover { background: var(--bg-alt); color: var(--text); }

.cv-modal-eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 8px;
}
.cv-modal-title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.25;
}
.cv-modal-lede {
  color: var(--text-med);
  font-size: 14px;
  margin: 0 0 22px;
  line-height: 1.55;
}

.cv-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cv-option {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
}
.cv-option-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-soft);
}
.cv-option-title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.cv-option-text {
  font-size: 13px;
  color: var(--text-med);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.cv-option-cta { align-self: flex-start; }

.cv-access-form { display: flex; flex-direction: column; gap: 8px; }
.cv-pwd-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-soft);
  font-weight: 600;
}
.cv-pwd-row { display: flex; gap: 8px; }
.cv-pwd-row input[type="password"] {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.cv-pwd-row input[type="password"]:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.12);
}
.cv-pwd-row .btn { white-space: nowrap; }

.cv-msg { font-size: 12.5px; margin: 4px 0 0; line-height: 1.4; }
.cv-msg-error { color: #B42318; }
.cv-msg-ok    { color: #067647; }

@media (max-width: 640px) {
  .cv-options { grid-template-columns: 1fr; }
  .cv-modal-panel { padding: 26px 20px 22px; }
  .cv-modal-title { font-size: 20px; }
}
