/* =========================================================
   Maher Bechoual — Portfolio
   ========================================================= */

:root {
  --bg: #FBFBFC;
  --bg-soft: #F4F2F6;
  --surface: #FFFFFF;
  --ink: #17141A;
  --ink-2: #47424D;
  --muted: #7A7480;
  --line: #E8E5EB;
  --line-strong: #D6D1DA;

  --primary: #FE7F4C;
  --primary-hover: #F26A33;
  --primary-ink: #B4461A;
  --primary-on: #1E0D06;
  --primary-soft: #FFF1EA;
  --primary-line: #FFD2BE;
  --accent: #520762;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 76px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(23, 20, 26, .04);
  --shadow: 0 18px 40px -22px rgba(120, 50, 20, .18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

::selection { background: var(--primary); color: var(--primary-on); }

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--primary); --btn-fg: var(--primary-on); --btn-bd: var(--primary); }
.btn--primary:hover { --btn-bg: var(--primary-hover); --btn-bd: var(--primary-hover); box-shadow: 0 10px 24px -12px rgba(254, 127, 76, .7); }

.btn--ghost { --btn-bg: var(--surface); }
.btn--ghost:hover { --btn-bd: var(--ink); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: #1E0D06; --btn-bd: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); box-shadow: 0 10px 24px -12px rgba(254, 127, 76, .7); }

.btn--light { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .28); }
.btn--light:hover { --btn-bd: rgba(255, 255, 255, .7); }

.btn--sm { height: 40px; padding: 0 18px; font-size: .875rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: height .35s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 251, 252, .82);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity .35s var(--ease), border-color .35s var(--ease);
}
.header.is-scrolled { --header-h: 62px; }
.header.is-scrolled::before { opacity: 1; border-bottom-color: var(--line); }

.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--primary-on);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: -.02em;
  position: relative;
}
.logo__mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent);
}
.logo__text {
  font-weight: 700;
  color: var(--ink);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }
.nav__link.is-active { color: var(--primary-ink); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}
.nav__mobile-cta { display: none; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 10vw, 120px)) 0 clamp(72px, 10vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(254, 127, 76, .16) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.hero__title { display: flex; flex-direction: column; gap: 10px; }
.hero__name {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--ink);
}
.hero__role {
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--primary-ink);
}
.hero__lead {
  margin-top: 26px;
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  color: var(--ink-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-size: .88rem;
  color: var(--muted);
}

/* Entrance sequence */
.hero [style*="--d"] {
  animation: rise .9s var(--ease) both;
  animation-delay: calc(var(--d) * 90ms + 80ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Profile card */
.profile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.profile::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 44px;
  height: 2px;
  background: var(--primary);
  border-radius: 0 0 2px 2px;
}
.profile__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.profile__photo {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  color: var(--primary-ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.03em;
}
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__name { font-weight: 700; color: var(--ink); font-size: 1.05rem; letter-spacing: -.01em; }
.profile__subtitle { font-size: .88rem; color: var(--muted); }

.profile__list { display: grid; padding: 6px 0; }
.profile__list > div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .9rem;
}
.profile__list dt { color: var(--muted); }
.profile__list dd { color: var(--ink); font-weight: 500; }

.profile__stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.profile__stack li {
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink-2);
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(80px, 11vw, 136px);
  border-top: 1px solid var(--line);
}
.section--tint { background: var(--bg-soft); border-top-color: transparent; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--ink);
  position: relative;
  padding-top: 22px;
}
.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--primary);
}
.section-intro { max-width: 52ch; color: var(--muted); font-size: 1.02rem; justify-self: end; }

/* ---------- About ---------- */
.about .section-head { align-items: start; }
.about__lead {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
  max-width: 40ch;
  padding-top: 22px;
}
.about__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px 64px;
}
.about__text { display: grid; gap: 18px; max-width: 62ch; grid-column: 2; grid-row: 1; }
.facts {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.fact { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact dt { font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.fact dd { font-size: .9rem; color: var(--muted); margin-top: 2px; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-size: .8rem;
  font-weight: 600;
  line-height: 1;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.tags--sm li { font-size: .76rem; padding: 6px 10px; }

/* ---------- Expertise ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.skill-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background-color .3s var(--ease);
}
.skill-card:hover { background: var(--surface); }
.skill-card__icon {
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 10px;
  background: var(--primary-soft);
  stroke: var(--primary-ink);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 8px;
  transition: transform .35s var(--ease);
}
.skill-card:hover .skill-card__icon { transform: translateY(-2px); }
.skill-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--ink); letter-spacing: -.015em; }
.skill-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.skill-card .tags { margin-top: 10px; }
.skill-card:hover .tags li { border-color: var(--line-strong); }

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(220px + 28px);
  width: 1px;
  background: var(--line);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 52px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: calc(220px + 28px - 5px);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.timeline__item:first-child::before { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.timeline__item.is-visible:not(:first-child)::before { border-color: var(--primary); }

.timeline__date {
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  text-align: right;
}
.timeline__content { max-width: 68ch; display: grid; gap: 10px; }
.timeline__role { font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.35; }
.timeline__company { font-weight: 600; color: var(--muted); font-size: .93rem; margin-top: -4px; }
.timeline__company a { color: var(--primary-ink); border-bottom: 1px solid var(--primary-line); transition: border-color .2s var(--ease); }
.timeline__company a:hover { border-bottom-color: var(--primary-ink); }
.timeline__content > p:not(.timeline__company) { font-size: .95rem; }
.timeline__points { display: grid; gap: 6px; font-size: .92rem; }
.timeline__points li { position: relative; padding-left: 18px; }
.timeline__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 1.5px;
  background: var(--accent);
}
.timeline__content .tags { margin-top: 6px; }

.education {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 8px 56px;
  align-items: baseline;
  margin-top: 64px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.education__label { font-weight: 600; color: var(--muted); font-size: .88rem; text-align: right; }
.education__title { font-weight: 600; color: var(--ink); }
.education__date { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }

/* ---------- Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}
.project {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .3s var(--ease), box-shadow .45s var(--ease);
}
.project { position: relative; }
.project:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.project__visual {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.project__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(244, 242, 246, 0) 30%, var(--bg-soft) 85%);
  pointer-events: none;
}
.project__dot {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform .45s var(--ease);
}
.project:hover .project__dot { transform: rotate(45deg) scale(1.15); }

/* Placeholder mockups */
.mock {
  position: absolute;
  z-index: 1;
  left: 10%;
  right: 10%;
  top: 14%;
  bottom: -10%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 24px 40px -28px rgba(120, 50, 20, .28);
  overflow: hidden;
  transition: transform .7s var(--ease);
}
.mock--left { right: 30%; left: 8%; }
.mock--phone {
  left: auto;
  right: 10%;
  width: 22%;
  top: 26%;
  bottom: -14%;
  border-radius: 14px;
  z-index: 2;
}
.project:hover .mock { transform: translateY(-6px) scale(1.02); }
.project:hover .mock--phone { transform: translateY(-10px) scale(1.02); }

.mock__bar {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
}
.mock__bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.mock__body { display: grid; gap: 8px; padding: 12px; height: calc(100% - 24px); align-content: start; }
.mock--phone .mock__body { height: 100%; padding: 14px 8px; }
.mock__body span { display: block; background: var(--bg-soft); border-radius: 4px; }

.m-title { height: 10px; width: 45%; background: #E3DDE7 !important; }
.m-line { height: 7px; }
.m-line--short { width: 60%; }

.mb-dash { grid-template-columns: 20% repeat(3, 1fr); grid-auto-rows: min-content; }
.mb-dash .m-side { grid-row: span 4; height: 100%; min-height: 120px; }
.mb-dash .m-kpi { height: 34px; }
.m-kpi--primary { background: var(--primary-soft) !important; }
.mb-dash .m-chart {
  grid-column: 2 / -1;
  height: 70px;
  background: var(--surface) !important;
  border: 1px solid var(--line);
  padding: 8px;
}
.m-chart svg { width: 100%; height: 100%; overflow: visible; }
.m-chart polyline { fill: none; stroke: var(--primary); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.mb-dash .m-line { grid-column: 2 / -1; }
.mb-dash .m-line--short { grid-column: 2 / 4; width: auto; }

.mb-list .m-row { height: 22px; }
.m-row--primary { background: var(--primary-soft) !important; border-left: 2px solid var(--primary); }

.mb-phone .m-title { width: 60%; height: 8px; }
.mb-phone .m-card { height: 30px; }
.m-card--primary { background: var(--primary-soft) !important; }

.mb-cal { grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mb-cal .m-title { grid-column: 1 / -1; width: 30%; margin-bottom: 4px; }
.mb-cal span:not(.m-title) { aspect-ratio: 1.3; }
.mb-cal .is-on { background: var(--primary-soft); }
.mb-cal .is-accent { background: var(--primary); }

.mb-checkout { grid-template-columns: 1.3fr 1fr; gap: 14px; }
.m-stack { display: grid; gap: 8px; align-content: start; }
.m-panel { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.m-btn { height: 18px; margin-top: 6px; background: var(--accent) !important; opacity: .85; border-radius: 999px !important; }

/* Project body */
.project__body { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.6vw, 32px); flex: 1; }
.project__title { font-size: clamp(1.15rem, 1.7vw, 1.32rem); font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.3; }
.project__desc { font-size: .95rem; }
.project__role {
  font-size: .9rem;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.project__role strong { color: var(--ink); font-weight: 700; margin-right: 8px; }
.project .tags { margin-top: 2px; }

.project__toggle {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.project__toggle:hover { color: var(--primary-ink); }
.project__plus {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .4s var(--ease);
}
.project__plus::before,
.project__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  margin: -.75px 0 0 -4px;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.project__plus::after { transform: rotate(90deg); }
.project:hover .project__plus { border-color: var(--primary-ink); }
.project.is-open .project__plus { transform: rotate(180deg); background: var(--primary-soft); border-color: var(--primary-ink); }
.project.is-open .project__plus::after { transform: rotate(0deg); }

.project__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.project__more > div { overflow: hidden; visibility: hidden; transition: visibility .45s; }
.project.is-open .project__more { grid-template-rows: 1fr; }
.project.is-open .project__more > div { visibility: visible; }
.project__more ul { display: grid; gap: 6px; padding-top: 12px; font-size: .9rem; }
.project__more li { position: relative; padding-left: 18px; }
.project__more li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 1.5px;
  background: var(--accent);
}

/* Other work */
.others { margin-top: clamp(56px, 7vw, 88px); }
.others__title { font-size: 1.1rem; font-weight: 700; color: var(--ink); letter-spacing: -.015em; margin-bottom: 18px; }
.others__list { border-top: 1px solid var(--line); }
.others__list li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, .9fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease), background-color .35s var(--ease);
}
.others__list li:hover { padding-left: 12px; background: linear-gradient(90deg, var(--primary-soft), transparent 60%); }
.others__name { font-weight: 700; color: var(--ink); }
.others__desc { font-size: .93rem; }
.others__tech { font-size: .85rem; color: var(--muted); text-align: right; }

/* ---------- Stack ---------- */
.stack { border-top: 1px solid var(--line-strong); }
.stack__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px 56px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-strong);
}
.stack__row h3 { font-size: .95rem; font-weight: 700; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.chips li {
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.chips li:hover { color: var(--primary-ink); border-color: var(--primary-line); }

/* ---------- Approach ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .9s var(--ease);
}
.step.is-visible::before { width: 32px; }
.step__num {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: -.015em; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--muted); }

/* ---------- Contact ---------- */
.section--contact { border-top: 0; padding-top: 0; }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px 72px;
  padding: clamp(36px, 6vw, 80px);
  border-radius: 28px;
  background: #1B1514;
  color: rgba(255, 255, 255, .72);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 127, 76, .32), transparent 65%);
}
.contact__title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
}
.contact__text { margin-top: 20px; max-width: 46ch; font-size: 1.05rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.contact__info { display: grid; align-content: end; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact__info > div { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.contact__info dt { font-size: .82rem; color: rgba(255, 255, 255, .5); }
.contact__info dd { color: #fff; font-weight: 600; margin-top: 2px; word-break: break-word; }
.contact__info a { transition: color .2s var(--ease); }
.contact__info a:hover { color: var(--primary); }
.contact :focus-visible { outline-color: var(--primary); }

/* ---------- Footer ---------- */
.footer { padding: 44px 0 52px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px 48px;
  align-items: center;
}
.footer__name { font-weight: 700; color: var(--ink); }
.footer__role { font-size: .88rem; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9rem; font-weight: 500; }
.footer__links a { position: relative; transition: color .2s var(--ease); }
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.footer__links a:hover { color: var(--primary-ink); }
.footer__links a:hover::after { transform: scaleX(1); }
.footer__copy { font-size: .85rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  scale: .975;
  filter: blur(5px);
  transition: opacity 1s var(--ease-out), translate 1.2s var(--ease-out), scale 1.2s var(--ease-out),
              filter 1s var(--ease-out), transform .7s var(--ease-out),
              background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; scale: 1; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .header.is-scrolled { --header-h: 58px; }
  .header__cta { display: none; }
  .burger { display: block; z-index: 2; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    padding: 96px var(--gutter) 48px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li {
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
  }
  .nav.is-open .nav__list li { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: 40ms; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: 80ms; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: 120ms; }
  .nav.is-open .nav__list li:nth-child(5) { transition-delay: 160ms; }
  .nav.is-open .nav__list li:nth-child(6) { transition-delay: 200ms; }
  .nav__link {
    padding: 16px 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ink);
    border-radius: 0;
  }
  .nav__link:hover { background: none; color: var(--primary-ink); }
  .nav__link.is-active::after { left: auto; right: 4px; bottom: 50%; margin: 0 0 -2px; }
  .nav__mobile-cta { display: inline-flex; align-self: flex-start; }
  .logo { position: relative; z-index: 2; }

  .hero__grid { grid-template-columns: 1fr; }
  .profile { max-width: 560px; }

  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-intro { justify-self: start; }
  .about__lead { padding-top: 0; }
  .about__body { grid-template-columns: 1fr; }
  .about__text, .facts { grid-column: auto; grid-row: auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }

  .projects { grid-template-columns: 1fr; }

  .timeline::before { left: 5px; }
  .timeline__item { grid-template-columns: 1fr; gap: 8px; padding-left: 36px; padding-bottom: 44px; }
  .timeline__item::before { left: 0; top: 5px; }
  .timeline__date { text-align: left; }
  .education { grid-template-columns: 1fr; gap: 4px; padding-left: 36px; }
  .education__label { text-align: left; }

  .stack__row { grid-template-columns: 1fr; gap: 12px; }

  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: .97rem; }
  .logo__text { font-size: .8rem; letter-spacing: .06em; }
  .hero__actions .btn { flex: 1 1 auto; }
  .profile { padding: 22px; }
  .profile__list > div { grid-template-columns: 1fr; gap: 2px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .others__list li { grid-template-columns: 1fr; gap: 4px; }
  .others__list li:hover { padding-left: 0; background: none; }
  .others__tech { text-align: left; }
  .contact { border-radius: 22px; }
  .contact__actions .btn { flex: 1 1 100%; }
  .mock--phone { width: 26%; }
  .js .reveal { translate: 0 14px; }
}

@media (max-width: 380px) {
  .logo__text { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; translate: 0 0; scale: 1; filter: none; }
}

/* =========================================================
   Animations & micro-interactions
   ========================================================= */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Barre de progression du scroll ---------- */
.header__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left;
}

/* ---------- Texte découpé lettre par lettre ---------- */
.split-word {
  display: inline-block;
  overflow: hidden;
  padding: 0 .04em .1em 0;
  margin: 0 -.04em -.1em 0;
  vertical-align: top;
  white-space: nowrap;
}
.split-char { display: inline-block; }
.js [data-split] .split-char {
  opacity: 0;
  transform: translateY(105%) rotate(5deg);
  filter: blur(6px);
  transition: transform 1.1s var(--ease-out), opacity .9s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--i) * 34ms + var(--base, 0ms));
}
.js [data-split].is-in .split-char { opacity: 1; transform: none; filter: none; }
.hero__name.is-split { animation: none; }

/* ---------- Trait manuscrit sous le nom ---------- */
.hero__swoosh {
  width: clamp(200px, 27vw, 360px);
  height: auto;
  margin: -8px 0 2px;
  overflow: visible;
}
.hero__swoosh path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
}
.js .hero__swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .hero.is-ready .hero__swoosh path { animation: draw 1.2s var(--ease-out) .95s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Rôle tapé à la machine ---------- */
.hero__role { display: inline-flex; align-items: center; min-height: 1.3em; }
.hero__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 5px;
  border-radius: 1px;
  background: var(--primary);
  opacity: 0;
}
.hero__caret.is-typing { opacity: 1; }
.hero__caret.is-done { animation: blink 1.05s steps(1) 3 forwards; }
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---------- Carte profil ---------- */
.hero .profile {
  animation: profileIn 1.3s var(--ease-out) .3s both;
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
  will-change: transform;
}
@keyframes profileIn {
  from { opacity: 0; translate: 0 32px; scale: .97; filter: blur(6px); }
  to { opacity: 1; translate: 0 0; scale: 1; filter: none; }
}
.profile:hover { box-shadow: 0 30px 60px -30px rgba(120, 50, 20, .3); }

.profile::before { width: 0; animation: barIn 1s var(--ease-out) 1.1s forwards; }
@keyframes barIn { to { width: 44px; } }

.profile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(254, 127, 76, .09), transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.profile:hover::after { opacity: 1; }

.profile__photo-wrap { position: relative; flex: none; width: 72px; height: 72px; }
.profile__photo { animation: popIn .9s var(--ease-out) .8s both; }
@keyframes popIn {
  from { opacity: 0; transform: scale(.75); }
  to { opacity: 1; transform: none; }
}
.profile__ring {
  position: absolute;
  inset: -6px;
  width: 84px;
  height: 84px;
  overflow: visible;
  transform: rotate(-90deg);
  transition: transform 1.2s var(--ease-out);
}
.profile__ring circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ringIn 1.6s var(--ease-out) 1s forwards;
}
@keyframes ringIn { to { stroke-dashoffset: 0; } }
.profile:hover .profile__ring { transform: rotate(-90deg) scale(1.06); }

.profile__head > div:last-child,
.profile__list > div { animation: rowIn .8s var(--ease-out) both; }
.profile__head > div:last-child { animation-delay: .9s; }
.profile__list > div:nth-child(1) { animation-delay: 1.02s; }
.profile__list > div:nth-child(2) { animation-delay: 1.1s; }
.profile__list > div:nth-child(3) { animation-delay: 1.18s; }
.profile__list > div:nth-child(4) { animation-delay: 1.26s; }
@keyframes rowIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

.profile__stack li { animation: chipIn .7s var(--ease-out) both; transition: background-color .25s var(--ease), color .25s var(--ease); }
.profile__stack li:nth-child(1) { animation-delay: 1.35s; }
.profile__stack li:nth-child(2) { animation-delay: 1.4s; }
.profile__stack li:nth-child(3) { animation-delay: 1.45s; }
.profile__stack li:nth-child(4) { animation-delay: 1.5s; }
.profile__stack li:nth-child(5) { animation-delay: 1.55s; }
.profile__stack li:nth-child(6) { animation-delay: 1.6s; }
.profile__stack li:nth-child(7) { animation-delay: 1.65s; }
.profile__stack li:hover { background: var(--primary-soft); color: var(--primary-ink); }
@keyframes chipIn {
  from { opacity: 0; transform: translateY(6px) scale(.9); }
  to { opacity: 1; transform: none; }
}

/* Signature manuscrite */
.profile__signature {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.profile__signature svg { width: 200px; height: auto; overflow: visible; }
.profile__signature text {
  font-family: "Allura", "Segoe Script", "Brush Script MT", cursive;
  font-size: 46px;
  fill: var(--primary-ink);
  stroke: var(--primary-ink);
  stroke-width: .6;
  stroke-opacity: 0;
}
.js .profile__signature svg { clip-path: inset(-20% 100% -20% 0); }
.js .profile__signature text { fill-opacity: 0; stroke-opacity: 1; stroke-dasharray: 380; stroke-dashoffset: 380; }
.js.is-fonts .profile__signature svg { animation: sigWipe 2.6s cubic-bezier(.5, .1, .3, 1) 1.7s forwards; }
.js.is-fonts .profile__signature text {
  animation: sigStroke 2.6s cubic-bezier(.5, .1, .3, 1) 1.7s forwards, sigFill 1s var(--ease) 3.9s forwards;
}
@keyframes sigWipe { to { clip-path: inset(-20% -5% -20% 0); } }
@keyframes sigStroke { to { stroke-dashoffset: 0; } }
@keyframes sigFill { to { fill-opacity: 1; stroke-opacity: 0; } }

/* ---------- Boutons ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; }
.btn--ghost::before,
.btn--light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ink);
  transform: translateY(102%);
  transition: transform .5s var(--ease-out);
}
.btn--light::before { background: #fff; }
.btn--ghost:hover { --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--light:hover { --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--ghost:hover::before,
.btn--light:hover::before { transform: none; }

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50%;
  width: 40%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg) translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn--primary:hover::after { transform: skewX(-20deg) translateX(480%); }

/* ---------- Navigation ---------- */
.nav__link::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover { background: none; }
.nav__link:hover::before { transform: scaleX(1); transform-origin: left; }

/* ---------- Titres de section ---------- */
.js .section-title::before { width: 0; transition: width 1s var(--ease-out) .35s; }
.js .section-head.is-visible .section-title::before { width: 28px; }

/* ---------- Expertise ---------- */
.skill-card { position: relative; }
.skill-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .8s var(--ease-out);
}
.skill-card.is-visible::before { width: 36px; transition-delay: .5s; }
.skill-card.is-visible:hover::before { width: calc(100% + 2px); transition-delay: 0s; }
.skill-card:hover { z-index: 1; box-shadow: var(--shadow); }
.skill-card .tags li { transition: border-color .3s var(--ease), color .3s var(--ease), transform .4s var(--ease-out); }
.skill-card:hover .tags li { transform: translateY(-1px); }

/* ---------- Timeline qui se dessine au scroll ---------- */
.timeline::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(220px + 28px);
  width: 1px;
  background: var(--primary);
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
}

/* ---------- Projets ---------- */
.project__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(254, 127, 76, .2), transparent 70%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.project:hover .project__visual::before { opacity: 1; }
.m-chart polyline { vector-effect: none; stroke-width: 1.4; }
.js .project .m-chart polyline { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out) .5s; }
.js .project.is-visible .m-chart polyline { stroke-dashoffset: 0; }
.mb-cal .is-accent { transition: transform .5s var(--ease-out); }
.project:hover .mb-cal .is-accent { transform: scale(1.12); }

/* ---------- Contact : halo qui suit le curseur ---------- */
.contact::before {
  inset: 0;
  right: 0;
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: radial-gradient(520px circle at var(--gx, 88%) var(--gy, 8%), rgba(254, 127, 76, .26), transparent 62%);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .timeline::after { left: 5px; }
  .nav__link::before { display: none; }
}
@media (max-width: 640px) {
  .profile__signature svg { width: 170px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-delay: 0ms !important; }
  .js [data-split] .split-char { opacity: 1; transform: none; filter: none; }
  .js .hero__swoosh path { stroke-dashoffset: 0; }
  .js .profile__signature svg { clip-path: none; }
  .js .profile__signature text { fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; }
  .hero__caret { display: none; }
  .js .project .m-chart polyline { stroke-dashoffset: 0; }
}

/* =========================================================
   Effet « carte profil » appliqué à tous les blocs
   ========================================================= */

/* Contenu des blocs : apparition en cascade */
.js .fx-item, .js .fx-chip { opacity: 0; }
.is-visible .fx-item { animation: fxRow .9s var(--ease-out) var(--fx-d, 200ms) both; }
.is-visible .fx-chip { animation: fxChip .7s var(--ease-out) var(--fx-d, 350ms) both; }
@keyframes fxRow {
  from { opacity: 0; translate: -12px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes fxChip {
  from { opacity: 0; translate: 0 6px; scale: .9; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

/* Filet orange qui se trace en haut des cartes */
.project::before,
.contact::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 5;
  width: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--primary);
  transition: width 1s var(--ease-out) .5s;
}
.project::before { left: 28px; }
.contact::after { left: clamp(36px, 6vw, 80px); }
.project.is-visible::before { width: 44px; }
.contact.is-visible::after { width: 56px; }

/* Reflet qui suit le curseur */
.skill-card::after,
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(254, 127, 76, .08), transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.skill-card:hover::after,
.project:hover::after { opacity: 1; }
.project__visual { --mx: 50%; --my: 50%; }

@media (prefers-reduced-motion: reduce) {
  .js .fx-item, .js .fx-chip { opacity: 1; }
  .project::before { width: 44px; }
  .contact::after { width: 56px; }
}

/* Rôle tapé : les lettres existent déjà, on les révèle une à une */
.hero__typed.is-pending .type-char { visibility: hidden; }
.hero__typed.is-pending .type-char.is-on { visibility: visible; }
.hero__typed .hero__caret { vertical-align: -.14em; }
