/* ==========================================================================
   Jenoh Johnson — portfolio
   Visual language from the reference landing page: full-bleed video, white
   pills, dot-matrix display type, soft shadows. The hero is the reference
   composition; the sections below extend it for a scrolling portfolio.
   ========================================================================== */

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --body-text: #d0d0d0;
  --card: rgba(22, 22, 24, 0.8);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-border-hover: rgba(255, 255, 255, 0.3);
  --pad-x: clamp(14px, 3vw, 32px);
  --pad-y: clamp(16px, 2.4vh, 28px);
  --header-h: 48px;
  --scrim: 0.7; /* overridden by main.js while scrolling */
}

/* Local fallback for the display font (drop fonts/GeistPixel-Circle.woff2 next to this file to enable) */
@font-face {
  font-family: "Geist Pixel Circle";
  src: local("Geist Pixel Circle"), local("GeistPixel-Circle");
  font-weight: 400;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Background video ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(150, 130, 200, 0.45), rgba(0, 0, 0, 0) 60%),
    #000;
  pointer-events: none;
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
/* Soft static gradient so white text stays legible over the brightest part of the video */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.4) 100%);
}
/* Scrim: darkens the video as the page scrolls past the hero (opacity set by main.js) */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #000;
  opacity: var(--scrim);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  padding: var(--pad-y) var(--pad-x) 0;
  pointer-events: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  max-width: 960px;
  margin: 0 auto;
  pointer-events: auto;
  animation: slideDown 0.7s var(--ease) both;
}

.logo {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  transition: transform 0.35s var(--ease);
}
.logo:hover { transform: scale(1.04); }
.logo img { width: 72%; height: 72%; object-fit: contain; }

.nav {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: 560px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
}
.nav a {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0 clamp(6px, 1vw, 12px);
  color: var(--nav-text);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.5;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}
.nav a:hover { opacity: 0.75; }
.nav a.active { opacity: 1; }
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
.nav a.active::after { opacity: 1; transform: scale(1); }
.nav a:focus-visible { outline-color: #000; border-radius: 999px; }

.signin {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(16px, 2vw, 22px);
  background: var(--pill-dark);
  color: var(--sign-in-text);
  border-radius: 999px;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--nav-shadow);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}
.signin:hover { background: #323234; color: #fff; transform: translateY(-1px); }

/* Language switch (FR / EN) */
.lang {
  flex: none;
  display: inline-flex;
  align-items: stretch;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
}
.lang a {
  display: grid;
  place-items: center;
  min-width: 38px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--nav-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.55;
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.lang a:hover { opacity: 0.9; }
.lang a[aria-current="true"] { background: var(--pill-dark); color: var(--sign-in-text); opacity: 1; }
.lang a:focus-visible { outline-color: #000; }

/* Burger (mobile) */
.burger {
  display: none;
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pill-dark);
  cursor: pointer;
  box-shadow: var(--nav-shadow);
  transition: background 0.3s ease;
}
.burger span {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.3s ease, opacity 0.2s ease;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23.25px; }
.burger span:nth-child(3) { top: 29.5px; }
.burger[aria-expanded="true"] { background: #fff; }
.burger[aria-expanded="true"] span { background: #000; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}
.mobile-menu {
  position: fixed;
  z-index: 28;
  top: calc(var(--pad-y) + 48px + 12px);
  left: var(--pad-x);
  right: var(--pad-x);
  max-width: 420px;
  margin: 0 auto;
  padding: 22px 18px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.38s var(--ease) both;
}
.overlay[hidden], .mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu nav a {
  position: relative;
  display: block;
  padding: 14px 8px 20px;
  text-align: center;
  color: var(--nav-text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.5;
  animation: linkIn 0.45s var(--ease) both;
}
.mobile-menu nav a:nth-child(1) { animation-delay: 0.06s; }
.mobile-menu nav a:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu nav a:nth-child(3) { animation-delay: 0.14s; }
.mobile-menu nav a:nth-child(4) { animation-delay: 0.18s; }
.mobile-menu nav a:nth-child(5) { animation-delay: 0.22s; }
.mobile-menu nav a:nth-child(6) { animation-delay: 0.26s; }
.mobile-menu nav a:nth-child(7) { animation-delay: 0.3s; }
.mobile-menu nav a.active { opacity: 1; }
.mobile-menu nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
  opacity: 0;
}
.mobile-menu nav a.active::after { opacity: 1; }
.mobile-menu nav a.mobile-cv {
  margin-top: 10px;
  padding: 15px 8px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  border-radius: 999px;
  opacity: 1;
}
.mobile-menu nav a.mobile-cv::after { display: none; }
.mobile-menu nav a:focus-visible { outline-color: #000; }

/* ---------- Hero (home) ---------- */
.hero-screen {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--pad-y) + 48px + clamp(12px, 2vh, 24px)) var(--pad-x) var(--pad-y);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Shared entrance animation */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.cta-row.anim { animation-name: revealPulse; }

/* Trust row */
.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}
.avatar {
  position: relative;
  flex: none;
  display: grid;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  transition: transform 0.35s var(--ease);
}
.avatar + .avatar { margin-left: calc(var(--trust-size) * -0.42); }
.a1 { z-index: 1; }
.a2 { z-index: 2; }
.a3 { z-index: 4; }
.trust:hover .a1 { transform: translateY(-2px); }
.trust:hover .a2 { transform: translateY(-4px); }
.trust:hover .a3 { transform: translateY(-2px); }
.av-in {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
  line-height: 1;
}
.trust-pill {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding: 0 clamp(14px, 1.8vw, 18px) 0 calc(var(--trust-size) * 0.58);
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-size: clamp(12px, 1.4vw, 13.5px);
  font-weight: 500;
  white-space: nowrap;
}

/* Headline — solid white, dot-matrix display type */
.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(34px, 7.4vw, 92px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  max-width: 100%;
  /* subtle depth: translucent stepped layers let the video colour show through,
     and a soft wide halo keeps the glyphs readable on bright frames */
  text-shadow:
    0.01em 0.012em 0 rgba(0, 0, 0, 0.22),
    0.02em 0.024em 0 rgba(0, 0, 0, 0.28),
    0.03em 0.036em 0.01em rgba(0, 0, 0, 0.32),
    0 0.04em 0.1em rgba(0, 0, 0, 0.4),
    0 0 0.35em rgba(0, 0, 0, 0.3);
}
.headline .line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  /* room for the text-shadow halo inside the clip, without shifting the layout */
  padding: 0.35em;
  margin: -0.35em;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s var(--ease) forwards;
}
.headline .l1 { animation-delay: 0.12s; }
.headline .l2 { animation-delay: 0.3s; }
.role-text { display: inline; }
.caret {
  display: inline-block;
  width: 0.09em;
  height: 0.78em;
  margin-left: 0.08em;
  vertical-align: -0.04em;
  background: #fff;
  box-shadow:
    0.01em 0.012em 0 rgba(0, 0, 0, 0.22),
    0.02em 0.024em 0 rgba(0, 0, 0, 0.28),
    0.03em 0.036em 0.01em rgba(0, 0, 0, 0.32),
    0 0.04em 0.1em rgba(0, 0, 0, 0.4),
    0 0 0.35em rgba(0, 0, 0, 0.3);
  animation: blink 1.05s steps(1) infinite;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin-top: clamp(14px, 2.2vh, 20px);
  color: var(--trust-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* same blended depth as .headline, in px because 0.01em steps vanish at 12px */
  text-shadow:
    0.5px 0.6px 0 rgba(0, 0, 0, 0.22),
    1px 1.2px 0 rgba(0, 0, 0, 0.28),
    1.5px 1.8px 0.5px rgba(0, 0, 0, 0.32),
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(0, 0, 0, 0.3);
}
.kicker span { white-space: nowrap; }
.kicker span + span::before { content: "|"; margin: 0 0.9em; opacity: 0.45; }

.subhead {
  max-width: min(560px, 92%);
  margin-top: clamp(14px, 2.2vh, 22px);
  color: #d0d0d0;
  opacity: 0.8;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  text-wrap: balance;
}
.subhead.anim { animation-name: reveal; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(20px, 3.4vh, 32px);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 30px rgba(255, 255, 255, 0.5),
    0 0 64px rgba(255, 255, 255, 0.2);
}
.cta:focus-visible { outline-color: #fff; outline-offset: 4px; border-radius: 999px; }
.cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--sign-in-text);
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}
.cta-ghost:hover { background: #323234; color: #fff; transform: translateY(-2px); }

/* Stats footer */
.stats {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 920px;
  margin: clamp(16px, 3vh, 32px) auto 0;
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-icon {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
  color: #fff;
}
.stat-value {
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.stat-label { color: var(--muted); font-size: clamp(11px, 1.2vw, 12.5px); }

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(84px, 11vw, 136px) var(--pad-x) 0;
}
.section:last-of-type { padding-bottom: clamp(72px, 9vw, 120px); }
.container { width: 100%; max-width: 1120px; margin: 0 auto; }

.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-size: 13px;
  font-weight: 500;
}
.section-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5.2vw, 58px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
  text-wrap: balance;
}
.section-lead {
  max-width: 640px;
  margin-top: 14px;
  color: var(--body-text);
  opacity: 0.85;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
}
.text-link {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.25s ease, opacity 0.25s ease;
}
.text-link:hover { border-color: #fff; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: clamp(20px, 2.6vw, 32px);
}
.card-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Scroll reveal (only when JS is on) */
.reveal {
  transition:
    opacity 0.85s var(--ease) var(--rd, 0s),
    translate 0.85s var(--ease) var(--rd, 0s),
    transform 0.35s var(--ease),
    border-color 0.35s ease,
    background-color 0.35s ease;
}
.js .reveal { opacity: 0; translate: 0 24px; }
.js .reveal.in { opacity: 1; translate: 0 0; }
.card { transition: border-color 0.35s ease, transform 0.35s var(--ease); }
.card:hover { border-color: var(--card-border-hover); transform: translateY(-3px); }
.card.reveal {
  transition:
    opacity 0.85s var(--ease) var(--rd, 0s),
    translate 0.85s var(--ease) var(--rd, 0s),
    transform 0.35s var(--ease),
    border-color 0.35s ease;
}
section[tabindex="-1"]:focus { outline: none; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--body-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}
.chips li:hover { background: #fff; color: #000; border-color: #fff; transform: translateY(-1px); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
}
.about-copy { display: grid; gap: 16px; }
.about-copy p { color: var(--body-text); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7; }
.about-copy strong { color: #fff; font-weight: 600; }
.about-copy .muted-note { color: var(--muted); font-size: 14px; }
.about-copy .muted-note i { margin-right: 6px; }
.about-side { display: grid; gap: clamp(14px, 2vw, 24px); }

.info-list { display: grid; gap: 16px; }
.info-list li { display: grid; gap: 2px; }
.info-list strong { color: #fff; font-weight: 600; font-size: 15px; }
.info-list span { color: var(--body-text); font-size: 14px; }
.info-list em { color: var(--muted); font-size: 13px; font-style: normal; }

.expertise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(14px, 2vw, 24px);
}
.tile h3 { margin: 16px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.tile p { color: var(--body-text); opacity: 0.85; font-size: 14.5px; line-height: 1.65; }
.tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 17px;
}

/* ---------- Experience ---------- */
.timeline { position: relative; display: grid; gap: clamp(14px, 2vw, 24px); padding-left: clamp(22px, 3vw, 36px); }
.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 5px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08));
}
.job { position: relative; }
.job::before {
  content: "";
  position: absolute;
  top: 34px;
  left: calc(-1 * clamp(22px, 3vw, 36px));
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 0 18px rgba(255, 255, 255, 0.4);
}
.job-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.job-company { font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.job-role { margin-top: 2px; color: var(--trust-text); font-size: 15px; }
.job-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.date-pill {
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.job-loc { color: var(--muted); font-size: 13px; }

.bullets { display: grid; gap: 10px; margin-bottom: 20px; }
.bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--body-text);
  font-size: 15px;
  line-height: 1.65;
}
.bullets li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.7;
}

.earlier { margin-top: clamp(14px, 2vw, 24px); padding-left: clamp(22px, 3vw, 36px); }
.earlier summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--sign-in-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.earlier summary::-webkit-details-marker { display: none; }
.earlier summary:hover { background: #323234; color: #fff; }
.earlier summary i { font-size: 11px; transition: transform 0.35s var(--ease); }
.earlier[open] summary i { transform: rotate(180deg); }
.earlier-body { display: grid; gap: clamp(14px, 2vw, 24px); margin-top: clamp(14px, 2vw, 24px); animation: linkIn 0.5s var(--ease) both; }

/* ---------- Skills ---------- */
.marquee {
  overflow: hidden;
  margin-bottom: clamp(20px, 3vw, 32px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(16px, 2vw, 24px); }
html:not(.js) .filters { display: none; }
.filter-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--sign-in-text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}
.filter-btn:hover { background: #323234; color: #fff; }
.filter-btn.is-active { background: #fff; color: #000; border-color: #fff; }

.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.skill-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.skill-card h3 i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #111; font-size: 14px; }
.skill-card[hidden] { display: none; }
.skill-card.pop { animation: reveal 0.6s var(--ease) backwards; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.project { display: flex; flex-direction: column; gap: 14px; }
.project-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.repo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-size: 12.5px;
  font-weight: 500;
}
.proj-meta { display: inline-flex; align-items: center; color: var(--muted); font-size: 12.5px; white-space: pre; }
.lang-dot { width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--c, #888); }
.project h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.project > p { flex: 1; color: var(--body-text); opacity: 0.88; font-size: 14.5px; line-height: 1.7; }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; }
.project-links .btn { height: 40px; padding: 0 15px; font-size: 13.5px; }
.no-demo { color: var(--muted); font-size: 12.5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.25s ease, color 0.25s ease, box-shadow 0.3s ease;
}
.btn-light { background: #fff; color: #000; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(255, 255, 255, 0.35); }
.btn-dark { background: var(--pill-dark); color: var(--sign-in-text); border: 1px solid rgba(255, 255, 255, 0.18); font-weight: 500; }
.btn-dark:hover { background: #323234; color: #fff; transform: translateY(-2px); }
.btn:focus-visible { outline-color: #fff; border-radius: 999px; }
.btn-block { width: 100%; }
.more-link { margin-top: 28px; text-align: center; color: var(--body-text); font-size: 15px; }
.more-link i { font-size: 12px; margin-left: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(14px, 2vw, 24px); align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-links { display: grid; gap: 14px; }
.contact-links a, .static-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}
.contact-links a:hover .ci { background: #fff; color: #000; }
.contact-links small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; }
.ci {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 16px;
  transition: background 0.25s ease, color 0.25s ease;
}

.form { position: relative; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--trust-text); font-size: 13px; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #6f6f73; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.3); }
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, 0.09); }
.field.invalid input, .field.invalid textarea { border-color: #ff8a8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cta-submit { justify-self: start; }
.cta-submit[disabled] { opacity: 0.6; cursor: progress; }
.form-status { min-height: 1.4em; font-size: 14px; color: var(--trust-text); }
.form-status.ok { color: #9be7a6; }
.form-status.err { color: #ffb4b4; }
.form-status a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; padding: 28px var(--pad-x) 36px; border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.55); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; color: var(--muted); font-size: 13px; }
.footer a { color: var(--trust-text); border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.footer a:hover { color: #fff; }
.footer .text-link { color: #fff; }
.footer .text-link i { font-size: 11px; margin-left: 4px; }
.credits { flex: 1 1 320px; }

/* ---------- Keyframes ---------- */
@keyframes slideDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes reveal {
  from { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes revealPulse {
  0% { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  60% { opacity: 1; transform: translateY(0) scale(1.035); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes headlineFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes linkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid .project:last-child { grid-column: 1 / -1; }

  /* Nav collapses to the burger menu (the reference does this at 720px with 4 links;
     6 links + language switch + CV button need more room, especially in French) */
  .nav, .signin { display: none; }
  .header-inner { justify-content: space-between; }
  .lang { margin-left: auto; height: 48px; }
  .logo { width: 48px; height: 48px; }
  .burger { display: block; }
}

@media (max-width: 880px) {
  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .expertise { grid-template-columns: minmax(0, 1fr); }
  .skill-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .headline { letter-spacing: -0.08em; line-height: 1.05; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .projects-grid { grid-template-columns: minmax(0, 1fr); }
  .job-meta { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .trust-pill { font-size: 12px; }
}

@media (max-width: 560px) {
  .kicker { letter-spacing: 0.1em; font-size: 11px; gap: 4px 14px; }
  .kicker span + span::before { display: none; }
  .timeline { padding-left: 20px; }
  .job::before { left: -20px; width: 9px; height: 9px; top: 30px; }
  .earlier { padding-left: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .headline { letter-spacing: -0.09em; line-height: 1.04; }
  .trust { --trust-size: 34px; }
  .cta-row .cta, .cta-row .cta-ghost { flex: 1 1 100%; justify-content: center; }
}

@media (max-height: 700px) {
  .hero-screen { padding-top: calc(var(--pad-y) + 48px + 8px); }
  .trust { margin-bottom: 12px; }
  .kicker { margin-top: 10px; }
  .subhead { margin-top: 10px; line-height: 1.45; }
  .cta-row { margin-top: 16px; }
  .stats { margin-top: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim, .headline .line, .js .reveal { opacity: 1 !important; transform: none !important; translate: none !important; filter: none !important; }
  .caret { opacity: 1; }
  .marquee-track { transform: none; }
}
