/* ── Tokens ──
   Les couleurs vivent dans theme.css (chargé AVANT ce fichier), qui définit
   les deux thèmes. Ne jamais coder une couleur en dur ici : passer par un
   token, sinon elle ne suivra pas la bascule clair/sombre. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Playpen Sans', 'Segoe UI', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}
@font-face {
  font-family: 'Sorren';
  src: local('Sorren');
}
.f-title {
  font-family: 'Sorren', 'Modern Antiqua', Georgia, serif;
  font-weight: 400;
}
::selection { background: var(--amber); color: var(--on-accent); }
a { color: inherit; text-decoration: none; }

/* ── Parallax ── */
.parallax-slow   { margin-top: calc(var(--px, 0) * -0.8rem); }
.parallax-medium { margin-top: calc(var(--px, 0) * -1.4rem); }
.parallax-fast   { margin-top: calc(var(--px, 0) * -2.2rem); }

/* ── Nav ── */
nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 32px);
  padding: 20px clamp(24px, 5vw, 72px);
  background: rgba(var(--ink-rgb), .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--fg-rgb), calc(.05 * var(--fg-k)));
}
.nav-logo {
  font-family: 'Sorren', Georgia, serif;
  font-size: 1rem;
  letter-spacing: .1em;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
/* la nav-logo absorbe l'espace libre : liens + contrôles restent groupés à droite */
.nav-logo { margin-inline-end: auto; }
.nav-links a {
  font-size: .65rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .2s;
}
.nav-links a:hover { color: var(--cream); }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
#mob-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(var(--ink-rgb), .97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
}
#mob-menu.open { display: flex; }
#mob-menu a {
  font-family: 'Sorren', Georgia, serif;
  font-size: clamp(2.4rem, 9vw, 5rem);
  color: var(--cream);
  opacity: .6;
  transition: opacity .2s, color .2s;
}
#mob-menu a:hover { opacity: 1; color: var(--amber-hot); }
@media (max-width: 700px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}

/* ── Layout helpers ── */
.pad {
  padding-block: clamp(80px, 10vw, 140px);
  padding-inline: clamp(24px, 5vw, 72px);
}
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .58rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 52px;
}
.section-label::before {
  content: '';
  flex-shrink: 0;
  width: 28px;
  height: 1px;
  background: var(--amber);
}
.divider { border: none; border-top: 1px solid rgba(var(--fg-rgb), calc(.06 * var(--fg-k))); }

/* ── Hero ── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block-start: 100px;
  padding-block-end: clamp(60px, 8vw, 100px);
  padding-inline: clamp(24px, 5vw, 72px);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .6rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--amber); }
h1.hero-name {
  font-family: 'Sorren', 'Modern Antiqua', Georgia, serif;
  font-weight: 400;
  font-size: clamp(4.5rem, 12vw, 11rem);
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--cream);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(.82rem, 1.2vw, .95rem);
  color: var(--dim);
  line-height: 2;
  max-width: 420px;
  margin-bottom: 44px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 26px;
  border: 1px solid rgba(var(--fg-rgb), calc(.15 * var(--fg-k)));
  border-radius: 100px;
  font-family: 'Playpen Sans', 'Segoe UI', sans-serif;
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream);
  transition: border-color .25s, background .25s;
}
.btn-outline:hover {
  border-color: rgba(var(--accent-rgb), .5);
  background: var(--amber-pale);
}
.btn-outline svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── About ── */
#about {
  background: var(--ink-2);
}
.about-header {
  padding-block-start: clamp(80px, 10vw, 140px);
  padding-block-end: 52px;
}
.pad-inline {
  padding-inline: clamp(24px, 5vw, 72px);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
  padding-block-end: clamp(80px, 10vw, 140px);
}
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Colonne gauche — le texte scroll et s'étire */
.about-left {
  /* hauteur calculée en JS via --about-h */
  min-height: var(--about-h, 60vh);
}
.about-text-sticky {
  position: sticky;
  top: 30vh;
}
.about-text {
  font-size: .88rem;
  line-height: 2.2;
}
.about-text em {
  font-style: italic;
  font-family: 'Sorren', Georgia, serif;
  font-size: 1.06em;
  color: var(--cream);
}

.split-word {
  display: inline;
  color: rgba(var(--fg-rgb), calc(.15 * var(--fg-k)));
  transition: color 0.25s ease;
}
.split-word.lit {
  color: var(--cream);
}
.split-word--hl {
  font-family: 'Sorren', Georgia, serif;
  font-style: italic;
  font-size: 1.08em;
}
.split-word--hl.lit {
  color: var(--amber-hot);
}

/* Colonne droite — colle aussi */
.about-right {
  /* même hauteur que la gauche pour que le grid soit bien calé */
  min-height: var(--about-h, 60vh);
}
.about-aside-sticky {
  position: sticky;
  top: 30vh;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.aside-label {
  font-size: .56rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(var(--fg-rgb), calc(.28 * var(--fg-k)));
  margin-bottom: 14px;
}
.about-aside { display: flex; flex-direction: column; gap: 36px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill {
  padding: 5px 14px;
  border: 1px solid rgba(var(--fg-rgb), calc(.1 * var(--fg-k)));
  border-radius: 100px;
  font-size: .64rem;
  letter-spacing: .06em;
  color: var(--dim);
  transition: border-color .2s, color .2s;
}
.skill:hover { border-color: rgba(var(--accent-rgb), .35); color: var(--cream); }
.lang-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.lang-item:last-child { margin-bottom: 0; }
.lang-name { font-size: .7rem; color: var(--dim); min-width: 72px; }
.lang-track { flex: 1; height: 2px; background: rgba(var(--fg-rgb), calc(.06 * var(--fg-k))); border-radius: 2px; overflow: hidden; }
.lang-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-hot));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s cubic-bezier(.23,1,.32,1);
}
.lang-item.in .lang-fill { transform: scaleX(1); }

/* ── Portfolio hover directionnel ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .portfolio-grid { grid-template-columns: 1fr; } }

.p-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--fg-rgb), calc(.07 * var(--fg-k)));
  border-radius: 18px;
  background: rgba(var(--fg-rgb), calc(.02 * var(--fg-k)));
  transition: border-color .3s, box-shadow .3s;
}
.p-card:hover {
  border-color: rgba(var(--accent-rgb), .3);
  box-shadow: 0 16px 48px rgba(var(--shadow-rgb), calc(.5 * var(--shadow-k)));
}

/* Contenu de base */
.p-content {
  position: relative;
  z-index: 1;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Overlay ambre qui glisse par-dessus */
.p-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .92), rgba(var(--hot-rgb), .85));
  backdrop-filter: blur(6px);
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translate3d(0, -100%, 0);
}

/* ENTER */
.p-card.mouseenter.top    .p-content  { animation-name: slide--leave-bottom; }
.p-card.mouseenter.top    .p-overlay  { animation-name: slide--enter-top; }
.p-card.mouseenter.right  .p-content  { animation-name: slide--leave-left; }
.p-card.mouseenter.right  .p-overlay  { animation-name: slide--enter-right; }
.p-card.mouseenter.bottom .p-content  { animation-name: slide--leave-top; }
.p-card.mouseenter.bottom .p-overlay  { animation-name: slide--enter-bottom; }
.p-card.mouseenter.left   .p-content  { animation-name: slide--leave-right; }
.p-card.mouseenter.left   .p-overlay  { animation-name: slide--enter-left; }

/* LEAVE */
.p-card.mouseleave.top    .p-content  { animation-name: slide--enter-bottom; }
.p-card.mouseleave.top    .p-overlay  { animation-name: slide--leave-top; }
.p-card.mouseleave.right  .p-content  { animation-name: slide--enter-left; }
.p-card.mouseleave.right  .p-overlay  { animation-name: slide--leave-right; }
.p-card.mouseleave.bottom .p-content  { animation-name: slide--enter-top; }
.p-card.mouseleave.bottom .p-overlay  { animation-name: slide--leave-bottom; }
.p-card.mouseleave.left   .p-content  { animation-name: slide--enter-right; }
.p-card.mouseleave.left   .p-overlay  { animation-name: slide--leave-left; }

/* Keyframes */
@keyframes slide--enter-top    { from { transform: translate3d(0,-100%,0); } to { transform: none; } }
@keyframes slide--enter-right  { from { transform: translate3d(100%,0,0);  } to { transform: none; } }
@keyframes slide--enter-bottom { from { transform: translate3d(0,100%,0);  } to { transform: none; } }
@keyframes slide--enter-left   { from { transform: translate3d(-100%,0,0); } to { transform: none; } }
@keyframes slide--leave-top    { from { transform: none; } to { transform: translate3d(0,-100%,0); } }
@keyframes slide--leave-right  { from { transform: none; } to { transform: translate3d(100%,0,0);  } }
@keyframes slide--leave-bottom { from { transform: none; } to { transform: translate3d(0,100%,0);  } }
@keyframes slide--leave-left   { from { transform: none; } to { transform: translate3d(-100%,0,0); } }

/* Contenu dans la carte */
.p-thumb {
  aspect-ratio: 16/9;
  background-color: rgba(var(--accent-rgb), .06);
  background-size: cover;
  background-position: center;
}
.p-body  { padding: 18px 20px 22px; }
.p-meta  { display: flex; justify-content: space-between; margin-bottom: 6px; }
.p-tag   { font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--accent-rgb), .7); }
.p-year  { font-size: .6rem; color: rgba(var(--fg-rgb), calc(.2 * var(--fg-k))); }
.p-title { font-family: 'Sorren', Georgia, serif; font-size: 1.1rem; color: var(--cream); margin-bottom: 6px; }
.p-desc  { font-size: .76rem; color: rgba(var(--fg-rgb), calc(.35 * var(--fg-k))); line-height: 1.8; }

/* Lien dans l'overlay */
.p-overlay .p-link {
  padding: 11px 28px;
  border: 1px solid rgba(var(--on-accent-rgb), .3);
  border-radius: 100px;
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--on-accent);
  font-family: 'Playpen Sans', 'Segoe UI', sans-serif;
  transition: background .2s, border-color .2s;
}
.p-overlay .p-link:hover {
  background: rgba(var(--on-accent-rgb), .15);
  border-color: rgba(var(--on-accent-rgb), .5);
}

/* Mobile : désactive l'animation, overlay toujours visible */
@media (max-width: 580px) {
  .p-content, .p-overlay {
    animation: none !important;
    transform: none !important;
  }
  .p-overlay {
    position: relative;
    inset: auto;
    padding: 14px;
    border-radius: 0 0 18px 18px;
  }
}

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 11px 28px;
  border: 1px solid rgba(var(--accent-rgb), .35);
  border-radius: 100px;
  background: none;
  font-family: 'Playpen Sans', 'Segoe UI', sans-serif;
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .3s, border-color .3s;
  color: var(--cream) ;
}
.more-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--amber), var(--amber-hot));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.23,1,.32,1);
  z-index: -1;
}
.more-btn:hover { color: var(--on-accent); border-color: transparent; }
.more-btn:hover::before { transform: scaleX(1); }
.more-btn span { position: relative; z-index: 1; }

/* ── Contact ── */
#contact {
  background: var(--ink-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 700px) { #contact { grid-template-columns: 1fr; } }
.contact-big {
  font-family: 'Sorren', Georgia, serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .92;
  color: rgba(var(--fg-rgb), calc(.08 * var(--fg-k)));
  margin-bottom: 16px;
}
.contact-big .cb-hot { color: var(--amber-hot); -webkit-text-stroke: 0; }
.contact-sub {
  font-size: .86rem;
  color: var(--dim);
  line-height: 2;
  margin-bottom: 28px;
}
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  background: none;
  border: 1px solid rgba(var(--fg-rgb), calc(.1 * var(--fg-k)));
  transition: transform .2s cubic-bezier(.23,1,.32,1), box-shadow .2s, border-color .2s, color .2s, background .2s;
}

.social-row a:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--amber), var(--amber-hot));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), .35);
  color: var(--on-accent);
}

.social-row svg {
  width: 18px;
  height: 18px;
  transition: color .2s;
}
.c-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 4vw, 36px);
  background: rgba(var(--fg-rgb), calc(.025 * var(--fg-k)));
  border: 1px solid rgba(var(--fg-rgb), calc(.07 * var(--fg-k)));
  border-radius: 20px;
}
.form-row { display: flex; gap: 12px; }
@media (max-width: 480px) { .form-row { flex-direction: column; } }
.form-group { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.c-form label {
  font-size: .56rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(var(--fg-rgb), calc(.28 * var(--fg-k)));
}
.c-form input,
.c-form textarea {
  background: rgba(var(--fg-rgb), calc(.03 * var(--fg-k)));
  border: 1px solid rgba(var(--fg-rgb), calc(.07 * var(--fg-k)));
  border-radius: 10px;
  color: var(--cream);
  font-family: 'Playpen Sans', 'Segoe UI', sans-serif;
  font-size: .82rem;
  font-weight: 300;
  padding: 12px 14px;
  width: 100%;
  resize: none;
  transition: border-color .2s, background .2s;
}
.c-form input:focus,
.c-form textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), .4);
  background: rgba(var(--fg-rgb), calc(.05 * var(--fg-k)));
}
.c-form input::placeholder,
.c-form textarea::placeholder { color: rgba(var(--fg-rgb), calc(.18 * var(--fg-k))); }
.c-form textarea { height: 116px; }
.send-btn {
  padding: 13px;
  background: none;
  border: 1px solid rgba(var(--accent-rgb), .35);
  border-radius: 12px;
  color: var(--amber-hot);
  font-family: 'Sorren', Georgia, serif;
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .3s, border-color .3s;
}
.send-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--amber), var(--amber-hot));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.23,1,.32,1);
}
.send-btn:hover { color: var(--on-accent); border-color: transparent; }
.send-btn:hover::before { transform: scaleX(1); }
.send-btn span { position: relative; z-index: 1; }

/* ── Footer ── */
footer {
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 72px) 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  border-top: 1px solid rgba(var(--fg-rgb), calc(.06 * var(--fg-k)));
}
.footer-svg-wrap { width: min(90vw, 700px); }

#slow-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity .2s;
}
#slow-cursor.visible { opacity: 1; }
#slow-cursor svg {
  animation: spin 4s linear infinite;
}
#slow-cursor circle {
  /* petit point central fixe — on annule la rotation pour lui */
  animation: spin-reverse 4s linear infinite;
  transform-origin: 40px 40px;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spin-reverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

#enzo-svg { width: 100%; height: auto; display: block; }
#enzo-svg polygon,
#enzo-svg path,
#enzo-svg polyline { fill: var(--amber); stroke: none; }
.footer-copy {
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(var(--fg-rgb), calc(.15 * var(--fg-k)));
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Jhey blur section ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Special+Elite&display=swap');
@import url('https://unpkg.com/normalize.css') layer(normalize);

@layer normalize, base, demo, blurring, debug;

@layer base {
  html { color-scheme: light dark; }
  [data-theme='light'] { color-scheme: light only; }
  [data-theme='dark'] { color-scheme: dark only; }
  *, *:after, *:before { box-sizing: border-box; }
  body {
    background: light-dark(#fff, #000);
    display: grid;
    place-items: center;
    min-height: 100vh;
    font-family: 'Inter', 'SF Pro Text', 'SF Pro Icons', 'AOS Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif, system-ui;
  }
  body::before {
    --size: 45px;
    --line: color-mix(in hsl, canvasText, transparent 80%);
    content: '';
    height: 100vh;
    width: 100vw;
    position: fixed;
    background: linear-gradient(90deg, var(--line) 1px, transparent 1px var(--size)) calc(var(--size) * 0.36) 50% / var(--size) var(--size),
      linear-gradient(var(--line) 1px, transparent 1px var(--size)) 0% calc(var(--size) * 0.32) / var(--size) var(--size);
    mask: linear-gradient(-20deg, transparent 50%, white);
    top: 0;
    transform-style: flat;
    pointer-events: none;
    z-index: -1;
  }
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
  }
}

@layer blurring {
  :root {
    --layers: 1000;
    --blur-max: 1000;
    --mask-stop: 1000;
  }
  .blur div {
    position: absolute;
    inset: 0;
  }
  .blur div::after {
    content: '';
    position: absolute;
    inset: 0 -250%;
    backdrop-filter: blur(var(--blur-val, 0px));
    -webkit-backdrop-filter: blur(var(--blur-val, 0px));
    mask: linear-gradient(180deg, #0000 0 var(--mask-from, 100%), #000 100%);
    -webkit-mask: linear-gradient(180deg, #0000 0 var(--mask-from, 100%), #000 100%);
  }
}

@layer debug {
  .blur::after { content: ''; position: absolute; inset: 0; }
  .label {
    grid-area: 1 / 2;
    position: sticky;
    top: 0;
    height: 100vh;
    opacity: 0;
    transition: opacity 0.26s ease-out;
  }
  .blur::after, .blur div::before {
    outline: 4px dashed #0000;
    transition: outline-color 0.26s ease-out;
  }
  [data-debug='true'] .blur::after,
  [data-debug='true'] .blur div::before { outline-color: hsl(0 90% 50%); }
  [data-debug='true'] .label { opacity: 1; }
  [data-debug='true'] header div:first-of-type { opacity: 0.25; }
  .blur div::before { clip-path: inset(-100% 0 -100% 0); }
}

@layer demo {
  :root {
    --img-size: clamp(120px, 40vmin, 380px);
  }
  .clear {
    padding: 0.5rem 0.75rem;
    display: inline-block;
    border: 2px solid canvasText;
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
    width: fit-content;
  }
  .content {
    width: 1200px;
    max-width: calc(100vw - 2rem);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-top: 100px !important;
  }
  header {
    min-height: 100vh;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }
  header > div:first-of-type {
    font-weight: 400;
    color: var(--cream);
    position: sticky;
    top: 0;
    height: fit-content;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-area: 1 / 1;
    width: fit-content;
    max-width: 280px;
    text-wrap: balance;
    z-index: 2000;
    transition: opacity 0.26s ease-out;
    gap: 20px;
  }
  header > div:first-of-type h1 {
    font-size: 0.875rem !important;
    margin: 0;
    background: hsl(0 90% 50%);
    text-shadow: 0 1px #111;
    translate: -10% 10%;
    rotate: -6deg;
    z-index: -1;
    padding: 0.25rem;
    font-family: 'Special Elite', system-ui;
    text-transform: uppercase;
    display: inline-grid;
    width: fit-content;
    place-items: center;
  }
  header > div:first-of-type p {
    font-weight: 300;
    margin: 0;
    line-height: 1.5;
    margin-block: 1rem;
  }
  header > div:first-of-type p:first-of-type {
    line-height: 1;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
  }
  .blur {
    grid-area: 1 / 2;
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    justify-self: center;
    align-self: start;
  }
  header > ul {
    grid-area: 1 / 2;
    padding-block-start: calc((var(--padding) * 1vh) - (var(--img-size) * 0.5));
    padding-block-end: calc((var(--padding) * 1vh) + 100vh);
    list-style-type: none;
    gap: 6rem;
    display: flex;
    flex-direction: column;
    margin: 0;
    margin-top: 4rem;
  }
  body { display: block; overflow-x: hidden; }
}
/* ── Tickets XP ── */
li.xp-ticket {
  position: relative;
  list-style: none;
  width: clamp(560px, 70vmin, 1020px);
  font-family: 'Playpen Sans', 'Segoe UI', sans-serif;
}

.xp-bg {
  width: 100%;
  display: block;
  border-radius: 14px;
  filter: brightness(75%);
}

.xp-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 20% 1fr;
  padding: 3% 6% 3% 14%;
}

.xp-stub-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 4%;
  border-right: 1px dashed rgba(26,18,8,.12);
}

.xp-stub-date {
  font-size: clamp(10px, 1.4vw, 15px);
  font-weight: 900;
  letter-spacing: .04em;
  color: #0e0a06;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
}

.xp-stub-city {
  font-size: clamp(7px, .8vw, 9px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #5a4e35;
  text-align: center;
  font-weight: 600;
}

.xp-main-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 0 0 13%;
}

.xp-company {
  font-size: clamp(16px, 2.4vw, 21px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #0e0a06;
  line-height: 1;
}

.xp-role {
  font-size: clamp(8px, .9vw, 11px);
  text-transform: uppercase;
  letter-spacing: .2em;
  color: #0e0a06;
  font-weight: 600;
}

.xp-desc {
  font-size: clamp(8px, .9vw, 10px);
  color: #0e0a06;
  line-height: 1.75;
  font-style: italic;
  font-weight: 600;
}

.xp-tag {
  position: absolute;
  top: 10%;
  right: 5%;
  z-index: 2;
  font-size: clamp(7px, .7vw, 8px);
  letter-spacing: .25em;
  text-transform: uppercase;
  border: 1px solid #a89878;
  padding: 3px 10px;
  color: #0e0a06;
  font-family: 'Playpen Sans', 'Segoe UI', sans-serif;
}

/* Ticket ouvert */
.xp-ticket--open .xp-bg        { filter: brightness(.08) sepia(1); }
.xp-ticket--open .xp-stub-date { color: rgba(var(--fg-rgb), calc(.3 * var(--fg-k))); }
.xp-ticket--open .xp-stub-city { color: rgba(var(--hot-rgb), .5); }
.xp-ticket--open .xp-stub-side { border-color: rgba(var(--fg-rgb), calc(.08 * var(--fg-k))); }
.xp-ticket--open .xp-company   { color: rgba(var(--fg-rgb), calc(.28 * var(--fg-k))); font-style: italic; }
.xp-ticket--open .xp-role      { color: var(--amber-hot); }
.xp-ticket--open .xp-desc      { color: rgba(var(--fg-rgb), calc(.18 * var(--fg-k))); }
.xp-ticket--open .xp-tag       { border-color: rgba(var(--hot-rgb), .35); color: rgba(var(--hot-rgb), .7); }
/* ── Skill Cards (pixel-canvas) ── */
.skill-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 900px) { .skill-cards { grid-template-columns: repeat(2, 1fr); } }

.skill-card {
  --active-color: var(--amber-hot);
  --ease-out: cubic-bezier(0.5, 1, 0.89, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-areas: "card";
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(var(--fg-rgb), calc(.1 * var(--fg-k)));
  border-radius: 12px;
  isolation: isolate;
  cursor: default;
  transition: border-color 200ms var(--ease-out);
  user-select: none;
}
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom left, transparent 55%, rgba(var(--ink-rgb), .9));
  pointer-events: none;
  box-shadow: var(--ink) -2px 2px 12px inset;
  transition: opacity 900ms var(--ease-out);
}
.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--ink), transparent 65%);
  opacity: 0;
  transition: opacity 800ms var(--ease-out);
}
.skill-card > * { grid-area: card; }
.skill-card pixel-canvas { grid-area: card; }
.skill-card svg {
  position: relative;
  z-index: 1;
  color: rgba(var(--fg-rgb), calc(.25 * var(--fg-k)));
  transition: color 300ms var(--ease-out), scale 300ms var(--ease-out);
  margin-bottom: 22px;
}
.skill-card span {
  position: relative;
  z-index: 1;
  grid-area: card;
  align-self: end;
  margin-bottom: 10px;
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(var(--fg-rgb), calc(.25 * var(--fg-k)));
  transition: color 300ms var(--ease-out);
}
.skill-card:where(:hover, :focus-within) {
  border-color: var(--active-color);
  transition: border-color 800ms var(--ease-in-out);
}
.skill-card:where(:hover, :focus-within) svg {
  color: var(--active-color);
  scale: 1.1;
  transition: color 300ms var(--ease-in-out), scale 300ms var(--ease-in-out);
}
.skill-card:where(:hover, :focus-within) span {
  color: var(--active-color);
}
.skill-card:where(:hover, :focus-within)::before { opacity: 0; }
.skill-card:where(:hover, :focus-within)::after  { opacity: 1; }
