/* ============================================================
   Anouar Lacheheb — portfolio
   Blue palette · Playfair Display + Inter
   ============================================================ */

:root {
  --navy: #0A2F6B;
  --blue: #2563EB;
  --blue-dark: #1D4FBF;
  --mid: #60A5FA;
  --light: #93C5FD;
  --pale: #DBEAFE;
  --paler: #EFF6FF;
  --bg: #F7FAFD;
  --ink: #0E2A55;
  --body: #45566F;
  --muted: #6B7A93;
  --line: #E2EBF6;
  --white: #FFFFFF;
  --ok: #15803D;
  --warn: #B45309;
  --bad: #B91C1C;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(10, 47, 107, .05), 0 4px 14px -4px rgba(10, 47, 107, .08);
  --shadow-md: 0 2px 4px rgba(10, 47, 107, .04), 0 18px 44px -12px rgba(10, 47, 107, .16);
  --shadow-lg: 0 4px 8px rgba(10, 47, 107, .05), 0 32px 72px -18px rgba(10, 47, 107, .22);
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-decoration: none; }

::selection { background: var(--pale); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.ic { width: 1em; height: 1em; }

/* ---------- type ---------- */

.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--light);
  border-radius: 2px;
}
.eyebrow__num { color: var(--mid); font-variant-numeric: tabular-nums; }

.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
}

/* ---------- chips & buttons ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip--eyebrow {
  background: var(--paler);
  border: 1px solid var(--pale);
  color: var(--blue-dark);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .7rem;
  padding: 9px 16px;
}
.chip--tool {
  background: var(--paler);
  border: 1px solid var(--pale);
  color: var(--blue-dark);
}
.chip--cat {
  background: var(--pale);
  color: var(--navy);
  font-size: .72rem;
}
.chip--done { background: #DCFCE7; color: #14532D; }
.chip--soon { background: #FEF3C7; color: #92400E; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, border-color .25s;
}
.btn .ic { transition: transform .25s; }
.btn:hover .ic { transform: translateX(3px); }
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .55);
}
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(37, 99, 235, .6); }
.btn--ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--light); box-shadow: var(--shadow-md); }
.btn--ghost:hover .ic { transform: translateY(2px); }
.btn--sm { padding: 12px 20px; font-size: .88rem; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); }
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn--outline:hover { border-color: #fff; transform: translateY(-2px); background: rgba(255,255,255,.06); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 14px;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled {
  background: rgba(247, 250, 253, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px -18px rgba(10, 47, 107, .25);
  padding-block: 10px;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__logo { display: inline-flex; align-items: center; --logo-a: var(--ink); --logo-l: var(--blue); }
.nav__mark { width: 36px; height: 36px; display: block; }
.nav__links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav__links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--body);
  padding: 9px 15px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--navy); background: var(--paler); }
.nav__links a.is-active { color: var(--navy); background: var(--pale); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav__burger span {
  width: 18px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(120px, 16vh, 170px);
  padding-bottom: clamp(56px, 8vh, 96px);
  overflow: clip;
}
.hero__tile, .about__tile {
  position: absolute;
  inset: 0;
  background-image: url("../assets/zellige.svg");
  background-size: 92px;
  opacity: .5;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 0%, #000 0%, transparent 62%);
  mask-image: radial-gradient(120% 90% at 85% 0%, #000 0%, transparent 62%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.024em;
  margin: 22px 0 24px;
  text-wrap: balance;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--blue); }
.hero__sub {
  font-size: 1.13rem;
  max-width: 46ch;
  margin-bottom: 18px;
}
.hero__tools {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 34px;
}
.hero__tools span { color: var(--light); margin-inline: 6px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual {
  position: relative;
  min-height: 480px;
}
.shot {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.shot__dots { display: flex; gap: 5px; }
.shot__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--pale); }
.shot__dots i:nth-child(1) { background: #FCA5A5; }
.shot__dots i:nth-child(2) { background: #FCD34D; }
.shot__dots i:nth-child(3) { background: #86EFAC; }
.shot__label {
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot img { display: block; width: 100%; height: auto; }
/* layered fan: two dashboards behind, education card in front */
.shot--tab {
  width: 58%;
  top: 4%;
  left: 0;
  transform: rotate(-6deg);
  z-index: 2;
}
.shot--pbi {
  width: 58%;
  top: 0;
  right: 0;
  transform: rotate(6deg);
  z-index: 1;
}
.shot--edu {
  width: 66%;
  left: 17%;
  bottom: 0;
  transform: rotate(-1.5deg);
  z-index: 3;
  box-shadow: 0 4px 10px rgba(10, 47, 107, .07), 0 44px 84px -22px rgba(10, 47, 107, .34);
}
.shot__edu {
  position: relative;
  padding: 20px 22px 22px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(37, 99, 235, .08), transparent 60%),
    linear-gradient(180deg, var(--white), var(--paler));
}
.shot__edu-ic {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--pale), var(--paler));
  color: var(--blue);
  margin-bottom: 14px;
}
.shot__edu-ic svg { width: 22px; height: 22px; }
.shot__edu-deg {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 6px;
}
.shot__edu-uni {
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin: 0 0 16px;
}
.shot__edu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.shot__edu-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .74rem;
  font-weight: 500;
  color: var(--muted);
}
.shot__edu-meta svg { width: 15px; height: 15px; color: var(--blue); }

.chip--loc {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--body);
  box-shadow: var(--shadow-sm);
  padding: 10px 16px;
  font-size: .8rem;
}
.chip--loc .ti { color: var(--blue); }
.herotool .ti { color: var(--blue-dark); }

/* stat strip */
.statstrip {
  margin-top: clamp(48px, 7vh, 84px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.statstrip__item {
  padding: clamp(22px, 3vw, 34px) clamp(16px, 2.4vw, 30px);
  text-align: center;
}
.statstrip__item + .statstrip__item { border-left: 1px solid var(--line); }
.statstrip__ic { width: 26px; height: 26px; color: var(--blue); margin-bottom: 10px; }
.statstrip__num {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}
.statstrip__label { font-size: .84rem; color: var(--muted); font-weight: 500; margin: 0; }

/* ---------- sections ---------- */

.section { padding-block: clamp(72px, 11vh, 128px); }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(36px, 5vh, 56px);
}
.section__aside {
  max-width: 34ch;
  font-size: .95rem;
  color: var(--muted);
  text-align: right;
  margin: 0 0 8px;
}

/* ---------- work cards ---------- */

/* ---------- case studies ---------- */

.section--case { position: relative; }
.section--case-alt {
  background: linear-gradient(180deg, var(--paler) 0%, var(--bg) 100%);
  border-block: 1px solid var(--line);
}
.case__head { margin-bottom: clamp(34px, 5vh, 54px); max-width: 760px; }
.case__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.case__meta-note { font-size: .85rem; color: var(--muted); margin-left: 6px; }
.case__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 4.5vw, 64px);
  align-items: start;
}
.case__duo {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 4.5vw, 64px);
  margin-bottom: clamp(32px, 5vh, 52px);
  align-items: start;
}
.case__stat--wide {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 16px 20px;
}
.case__stat--wide strong { white-space: nowrap; flex: none; }
.case__stat--wide span { margin-top: 0; }
.case__text { display: flex; flex-direction: column; gap: 26px; }
.case__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.case__block > p { font-size: 1.02rem; }
.case__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case__steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  font-size: .96rem;
}
.case__steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px; height: 30px;
  border-radius: 10px;
  background: var(--paler);
  border: 1px solid var(--pale);
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.case__finding {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}
.case__finding-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.case__finding p:last-child { font-size: .98rem; color: var(--ink); }
.case__finding strong { color: var(--blue-dark); }
.case__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case__stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.case__stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.case__stat .ok { color: var(--ok); }
.case__stat .mid { color: var(--warn); }
.case__stat .low { color: var(--bad); }
.case__stat > span { font-size: .74rem; color: var(--muted); line-height: 1.45; display: block; margin-top: 4px; }

.case__weights .weightbar {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.weightbar__seg {
  flex: 0 0 var(--w);
  background: var(--navy);
  color: #fff;
  padding: 12px 8px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.weightbar__seg--2 { background: var(--blue); }
.weightbar__seg--3 { background: var(--mid); color: var(--navy); }
.weightbar__seg i { font-style: normal; font-size: .68rem; font-weight: 600; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weightbar__seg b { font-size: 1.02rem; font-weight: 700; }

/* ---------- dashboard embeds ---------- */

.case__embed { margin: 0; }
.case__embed figcaption {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 14px;
  padding-left: 6px;
}
.browser {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--pale); }
.browser__dots i:nth-child(1) { background: #FCA5A5; }
.browser__dots i:nth-child(2) { background: #FCD34D; }
.browser__dots i:nth-child(3) { background: #86EFAC; }
.browser__url {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  background: var(--paler);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* — Tableau replica — */
.dash { color: #E6F4EA; }
.dash--tab {
  background: radial-gradient(140% 120% at 20% 0%, #10231C 0%, #060D0B 58%);
  padding: clamp(18px, 2.6vw, 30px);
}
.dash-tab__head { display: flex; align-items: center; gap: 12px; }
.dash-tab__logo { width: 30px; height: 30px; display: grid; place-items: center; background: rgba(105, 212, 142, .12); border-radius: 8px; }
.dash-tab__logo svg { width: 20px; height: 20px; }
.dash-tab__title {
  font-weight: 800;
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  letter-spacing: .06em;
  color: #FFFFFF;
  margin: 0;
}
.dash-tab__sub {
  text-align: center;
  font-style: italic;
  color: #86E3A4;
  font-size: clamp(.8rem, 1.4vw, .95rem);
  margin: 10px 0 18px;
  line-height: 1.5;
}
.dash-tab__sub span { opacity: .85; }
.dash-tab__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 16px;
  align-items: stretch;
}
.dash-tab__chartwrap { min-width: 0; }
.dash-tab__chartwrap svg { width: 100%; height: auto; display: block; }
.dash-tab__side { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.verdict {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-left-width: 3px;
  border-radius: 10px;
  padding: 10px 12px;
}
.verdict strong { font-size: 1.45rem; font-weight: 800; line-height: 1; min-width: 30px; font-variant-numeric: tabular-nums; }
.verdict span { display: block; font-size: .7rem; font-weight: 700; color: #F2F7F4; line-height: 1.3; }
.verdict small { display: block; font-size: .6rem; color: rgba(242, 247, 244, .55); line-height: 1.35; margin-top: 2px; }
.verdict--over { border-left-color: #4ADE80; } .verdict--over strong { color: #4ADE80; }
.verdict--par { border-left-color: #FBBF24; } .verdict--par strong { color: #FBBF24; }
.verdict--under { border-left-color: #F87171; } .verdict--under strong { color: #F87171; }
.dash-tab__legend {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  font-size: .68rem;
  font-weight: 600;
  color: rgba(242, 247, 244, .75);
}
.dash-tab__legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.sw--fill { background: #6EE7A0; }
.sw--pred { background: #9AA8A0; }

/* — Power BI replica — */
.dash--pbi {
  background: radial-gradient(130% 110% at 15% 0%, #0F1A12 0%, #070B08 55%);
  padding: clamp(16px, 2.4vw, 26px);
  color: #EAF6EE;
}
.dash-pbi__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.dash-pbi__title { font-weight: 800; font-size: clamp(.86rem, 1.5vw, 1.02rem); letter-spacing: .05em; color: #fff; margin: 0 0 4px; }
.dash-pbi__sub { font-size: .68rem; font-style: italic; color: rgba(234, 246, 238, .6); margin: 0; }
.dash-pbi__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.posbtn {
  font-size: .66rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(234, 246, 238, .65);
  white-space: nowrap;
}
.posbtn--on {
  background: #22C55E;
  border-color: #22C55E;
  color: #04140A;
  box-shadow: 0 0 18px rgba(34, 197, 94, .45);
}
.dash-pbi__body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}
.dash-pbi__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.kpi {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(74, 222, 128, .28);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}
.kpi strong { display: block; font-size: 1.5rem; font-weight: 800; color: #4ADE80; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi span { font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(234, 246, 238, .6); }
.dash-pbi__gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gauge {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  padding: 10px 8px 8px;
  text-align: center;
  position: relative;
}
.gauge svg { width: 74px; height: 44px; margin-inline: auto; display: block; }
.gauge__track, .gauge__val { fill: none; stroke-width: 9; stroke-linecap: round; }
.gauge__track { stroke: rgba(255, 255, 255, .12); }
.gauge__val { stroke: #22C55E; stroke-dasharray: 131.9; stroke-dashoffset: 131.9; }
.gauge strong { display: block; font-size: .95rem; font-weight: 800; color: #fff; margin-top: -26px; font-variant-numeric: tabular-nums; }
.gauge span { display: block; font-size: .56rem; font-weight: 600; letter-spacing: .04em; color: rgba(234, 246, 238, .58); margin-top: 12px; }
.dash-pbi__table { min-width: 0; overflow-x: auto; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .09); }
.trow {
  display: grid;
  grid-template-columns: minmax(130px, 1.5fr) minmax(110px, 1.2fr) 44px 76px 64px;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  font-size: .78rem;
  min-width: 460px;
}
.trow:nth-child(odd):not(.trow--head) { background: rgba(255, 255, 255, .035); }
.trow--head {
  background: rgba(255, 255, 255, .07);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(234, 246, 238, .65);
}
.trow span:nth-child(3), .trow span:nth-child(4), .trow span:nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; }
.trow .score { color: #4ADE80; font-weight: 800; }
.dash-pbi__foot {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: .64rem;
  font-weight: 600;
  color: rgba(234, 246, 238, .55);
}
.dash-pbi__src { margin-left: auto; font-family: var(--mono); }

/* ---------- about ---------- */

.section--about {
  position: relative;
  background: linear-gradient(180deg, var(--bg), var(--paler) 55%, var(--bg));
  border-block: 1px solid var(--line);
  overflow: clip;
}
.about__tile {
  -webkit-mask-image: radial-gradient(110% 100% at 8% 100%, #000 0%, transparent 58%);
  mask-image: radial-gradient(110% 100% at 8% 100%, #000 0%, transparent 58%);
  opacity: .45;
}
.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.about__scene {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 420 / 500;
}
.about__scene svg { width: 100%; height: 100%; display: block; }
.about__copy .section__title { margin-bottom: 24px; }
.about__copy p { max-width: 56ch; }
.strengths { margin-top: 30px; }
.strengths ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.strengths li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}
.strengths__ic {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--paler);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.strengths__ic svg { width: 19px; height: 19px; }

/* ---------- certificates ---------- */

.certgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.certcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
.certcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.certcard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.certcard__issuer {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--paler);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.certcard__issuer svg { width: 24px; height: 24px; }
.certcard h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}
.certcard__org { font-size: .82rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 10px; }
.certcard__desc { font-size: .9rem; margin: 0; }

/* ---------- skills ---------- */

.skillgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.skillcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
.skillcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.skillcard__ic {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--paler), var(--pale));
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.skillcard__ic svg { width: 23px; height: 23px; }
.skillcard h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.skillcard p { font-size: .85rem; margin-bottom: 16px; }
.skillcard__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.skillcard__chips .chip--tool { font-size: .7rem; padding: 6px 11px; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  background: linear-gradient(150deg, #0C3578 0%, var(--navy) 55%, #071F49 100%);
  color: #fff;
  overflow: clip;
  padding-block: clamp(76px, 11vh, 128px);
  text-align: center;
}
.cta__tile {
  position: absolute;
  inset: 0;
  background-image: url("../assets/zellige-light.svg");
  background-size: 150px;
  opacity: .055;
  pointer-events: none;
}
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__portrait {
  display: block;
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  margin-bottom: 26px;
}
.cta__portrait img { width: 100%; height: 100%; object-fit: cover; }
.cta__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  letter-spacing: -.02em;
  line-height: 1.12;
  color: #fff;
  max-width: 18ch;
  margin-bottom: 14px;
  text-wrap: balance;
}
.cta__title em { font-style: italic; font-weight: 500; color: var(--light); }
.cta__sub { color: rgba(255, 255, 255, .78); font-size: 1.06rem; margin-bottom: 10px; }
.cta__sub2 {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- footer ---------- */

.footer {
  background: #071F49;
  color: rgba(255, 255, 255, .72);
  padding-block: 40px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px 32px;
  align-items: center;
}
.footer__inner > .nav__logo--footer { justify-self: start; }
.nav__logo--footer { --logo-a: #FFFFFF; --logo-l: #93C5FD; }
.nav__logo--footer .nav__mark { width: 32px; height: 32px; }
.footer__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: rgba(255, 255, 255, .6);
  margin: 0;
  text-align: center;
}
.footer__social { display: flex; gap: 8px; justify-self: end; }
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.footer__social a:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

/* ---------- inline tool icons ---------- */

.ti {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: inline-block;
  color: var(--blue-dark);
}
.ti--lg { width: 20px; height: 20px; }
/* brand colors (light contexts only; dark contexts keep currentColor) */
.ti-python { color: #3776AB; }
.ti-sql, .ti-dax { color: #475569; }
.ti-tableau { color: #E97627; }
.ti-powerbi { color: #F2C811; }
.ti-excel { color: #217346; }
.ti-powerquery { color: #2E7D4F; }
.ti-git { color: #F03C2E; }
.ti-github { color: #181717; }
.ti-pandas { color: #150458; }
.ti-numpy { color: #4D77CF; }
.ti-matplotlib { color: #11557C; }
.ti-jupyter { color: #F37626; }
.ti-vscode { color: #007ACC; }
.herotool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.herotool + .herotool { margin-left: 18px; }
.btn svg.ic { width: 16px; height: 16px; }
.iconchips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- profile (about & skills) ---------- */

.profile {
  background: linear-gradient(180deg, var(--bg), var(--paler) 60%, var(--bg));
  border-block: 1px solid var(--line);
}
.profile__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.profile__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.profile__photo img { width: 100%; height: auto; display: block; }
.profile__body .section__title { margin-bottom: 22px; }
.profile__body > div > p { max-width: 58ch; }
.profile__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
  margin-top: 30px;
}
.profile__fact--wide { grid-column: 1 / -1; }
.profile__degree {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
  font-size: .96rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.profile__degree .ti--lg { color: var(--blue); }
.langlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.langlist li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.langlist li span { font-size: .72rem; font-weight: 500; color: var(--muted); }

/* ---------- certificate skills ---------- */

.certcard__skills {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.certcard__skills-label {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 9px;
}
.chip--skill {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--body);
  font-size: .74rem;
  font-weight: 500;
  padding: 7px 12px;
}
.certcard__issuerpair { display: inline-flex; }
.certcard__issuerpair .certcard__issuer + .certcard__issuer { margin-left: -10px; box-shadow: 0 0 0 3px var(--white); }

/* ---------- projects carousel ---------- */

.carousel { position: relative; }
.carousel__nav { display: flex; gap: 10px; margin-bottom: 8px; }
.carousel__btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: background .25s, color .25s, transform .25s, opacity .25s, box-shadow .25s;
}
.carousel__btn .ic { width: 17px; height: 17px; }
.carousel__btn:hover:not(:disabled) { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__track {
  display: flex;
  gap: clamp(18px, 2.4vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 10px 26px;
  cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track.is-dragging .pcard { pointer-events: none; }
.pcard {
  flex: 0 0 min(560px, 86%);
  scroll-snap-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, border-color .3s;
}
.pcard:hover { box-shadow: var(--shadow-md); border-color: var(--pale); }
.pcard__media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paler);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.pcard__media .shot__bar { display: flex; }
.pcard__media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: opacity .25s;
}
.pcard__media:hover img { opacity: .88; }
.pcard__body { padding: 22px 26px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pcard__toprow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pcard__toprow h3 {
  font-family: var(--serif);
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.pcard__finding { font-size: .94rem; margin: 0; }
.pcard__approach { font-size: .82rem; color: var(--muted); margin: 0; }
.pcard__approach span {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-right: 8px;
}
.pcard__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  padding-block: 12px;
}
.pcard__stats div { text-align: center; }
.pcard__stats div + div { border-left: 1px solid var(--line); }
.pcard__stats strong { display: block; font-size: 1.05rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pcard__stats span { font-size: .7rem; color: var(--muted); font-weight: 500; }
.pcard__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; }
.carousel__dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--pale);
  cursor: pointer;
  transition: width .3s, background .3s;
}
.carousel__dots button.is-active { width: 24px; background: var(--blue); }

/* ---------- dashboard dialogs ---------- */

.dlg {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(1060px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: visible;
}
.dlg::backdrop {
  background: rgba(7, 20, 43, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.dlg .case__embed--dlg { margin: 0; }
.dlg .case__embed--dlg figcaption { color: rgba(255, 255, 255, .75); }
.dlg .browser { max-height: calc(100vh - 110px); overflow-y: auto; }
.dlg__close {
  position: absolute;
  top: -18px;
  right: -14px;
  z-index: 5;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform .2s, background .2s, color .2s;
}
.dlg__close:hover { background: var(--blue); color: #fff; transform: rotate(90deg); }
.dlg__close .ic { width: 16px; height: 16px; }
body.dlg-open { overflow: hidden; }

/* ---------- reveal defaults (JS animates) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-hero] { opacity: 0; transform: translateY(24px); }
.js .shot { opacity: 0; }
html.reduced-motion [data-reveal],
html.reduced-motion [data-hero],
html.reduced-motion .shot { opacity: 1 !important; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 440px; max-width: 560px; margin-inline: auto; width: 100%; }
  .hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__sub { margin-inline: auto; }
  .case__grid, .about__grid, .case__duo, .profile__grid { grid-template-columns: minmax(0, 1fr); }
  .profile__photo { max-width: 420px; }
  .case__duo .case__text + .case__text { margin-top: 26px; }
  .case__text, .case__embed { min-width: 0; }
  .about__visual { max-width: 480px; }
  .skillgrid { grid-template-columns: 1fr 1fr; }
  .certgrid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(247, 250, 253, .96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__links a { font-size: 1.25rem; padding: 12px 22px; }
  .nav__burger { display: inline-flex; position: relative; z-index: 5; }
  .nav__cta { display: none; }
  .hero { padding-top: 104px; }
  .hero__visual { min-height: 0; display: flex; flex-direction: column; gap: 14px; padding-bottom: 0; }
  .shot { position: static; transform: none; width: 100%; box-shadow: var(--shadow-md); }
  .shot--edu { order: -1; }
  .statstrip { grid-template-columns: 1fr 1fr; margin-top: 92px; }
  .statstrip__item:nth-child(3), .statstrip__item:nth-child(4) { border-top: 1px solid var(--line); }
  .statstrip__item:nth-child(3) { border-left: none; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__aside { text-align: left; }
  .case__stats { grid-template-columns: 1fr; }
  .case__steps li { padding-left: 40px; font-size: .92rem; }
  .case__stat { display: flex; align-items: center; gap: 16px; text-align: left; padding: 14px 18px; }
  .case__stat strong { font-size: 1.6rem; }
  .case__stat span br { display: none; }
  .dash-tab__body { grid-template-columns: minmax(0, 1fr); }
  .dash-tab__side { flex-direction: row; }
  .verdict { flex: 1; min-width: 0; flex-direction: column; text-align: center; gap: 6px; border-left-width: 1px; border-top-width: 3px; padding: 10px 8px; }
  .verdict--over { border-top-color: #4ADE80; }
  .verdict--par { border-top-color: #FBBF24; }
  .verdict--under { border-top-color: #F87171; }
  .verdict small { display: none; }
  .dash-pbi__body { grid-template-columns: minmax(0, 1fr); }
  .dash-pbi__kpis { grid-template-columns: 1fr 1fr; }
  .dash-pbi__gauges { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .gauge svg { width: 60px; height: 36px; }
  .gauge strong { font-size: .8rem; margin-top: -22px; }
  .certgrid { grid-template-columns: 1fr; }
  .skillgrid { grid-template-columns: 1fr; }
  .profile__facts { grid-template-columns: 1fr; }
  .herotool + .herotool { margin-left: 10px; }
  .pcard { flex-basis: 88%; }
  .pcard__media img { height: 190px; }
  .section--projects .section__head { flex-direction: row; align-items: flex-end; }
  .dlg__close { top: -14px; right: 2px; }
  .strengths ul { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__social { justify-self: center; }
}

@media (max-width: 480px) {
  .dash-pbi__gauges { grid-template-columns: 1fr 1fr; }
  .btn { padding: 14px 20px; font-size: .9rem; }
}

/* ---------- motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
