/* ==========================================================================
   ALEXANDRA TIPLEA — système d'identité
   Matière (chrome, liquide) × Graphisme (lettre, grille, page)
   80 % épuré · 20 % très fort
   ========================================================================== */

:root {
  --navy: #0a1230;
  --navy-2: #16255e;
  --wine: #3b0912;
  --wine-2: #7a1424;
  --paper: #eeebe5;
  --paper-2: #e2ded6;
  --ink: #09090b;
  --chrome: #c7cad1;

  --bg: var(--navy);
  --fg: var(--paper);

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 2.4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --slow: 1.4s;
}

body[data-theme='night'] { --bg: var(--navy); --fg: var(--paper); }
body[data-theme='paper'] { --bg: var(--paper); --fg: var(--ink); }
body[data-theme='ink']   { --bg: var(--ink); --fg: var(--paper); }
body[data-theme='wine']  { --bg: var(--wine); --fg: var(--paper); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  /* définies ici (et non sur :root) pour suivre le thème courant */
  --muted: color-mix(in srgb, var(--fg) 55%, transparent);
  --rule: color-mix(in srgb, var(--fg) 18%, transparent);
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  transition: background-color 1.2s var(--ease), color 1.2s var(--ease);
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
::selection { background: var(--wine-2); color: var(--paper); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.5; }
.serif, .serif-i { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif-i, em.serif-i { font-style: italic; }
.label { color: var(--muted); margin-bottom: 1.2rem; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--fg); color: var(--bg); }
.skip:focus { top: 8px; }
.only-mobile { display: none; }

/* ---------- couches ---------- */
#sculpture {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 1; pointer-events: none;
}
.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
main > *:not(.hero):not(.duo):not(.orbit) { position: relative; z-index: 2; }
/* hero & concept : pas de contexte d'empilement, pour que la typo passe
   derrière la sculpture et que les fusions (difference) touchent le chrome */
.hero, .duo { position: relative; }

/* ---------- rideau liquide ---------- */
.curtain { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.curtain svg { width: 100%; height: 100%; display: block; }
.curtain__path { fill: var(--navy); }
.curtain.is-wine .curtain__path { fill: var(--wine); }
.curtain__label {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; justify-content: space-between; align-items: baseline; color: var(--paper);
  transition: opacity 0.5s var(--ease);
}
.curtain__label .serif-i { font-size: clamp(28px, 4vw, 56px); }
.curtain.is-open .curtain__label { opacity: 0; }
.curtain__enter { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; pointer-events: auto; color: var(--paper); }
.curtain__enter[hidden] { display: none; }
.curtain__go {
  font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 38px); line-height: 1; letter-spacing: -0.01em;
  padding: 0.25em 1.1em 0.32em; border: 1px solid rgba(238, 235, 229, 0.35); border-radius: 999px;
  opacity: 0; transform: translateY(14px); animation: enterIn 1.2s var(--ease) 0.1s forwards;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s var(--ease);
}
.curtain__go:hover, .curtain__go:focus-visible { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.curtain__mute { opacity: 0; animation: enterIn 1.2s var(--ease) 0.35s forwards; color: rgba(238, 235, 229, 0.6); padding: 6px; }
.curtain__mute:hover { color: var(--paper); }
.curtain__enter.is-leaving { opacity: 0; transition: opacity 0.6s var(--ease); }
@keyframes enterIn { to { opacity: 1; transform: none; } }
/* pendant l'entrée, la sculpture passe devant le rideau */
body.is-intro #sculpture { z-index: 61; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  color: var(--paper); mix-blend-mode: difference;
}
.nav__mark img { display: block; height: 30px; width: auto; transition: transform 0.8s var(--ease); }
.nav__mark:hover img { transform: rotate(-8deg) scale(1.06); }
.nav__mark { font-weight: 600; font-variation-settings: 'wdth' 125; letter-spacing: 0.02em; font-size: 15px; }
.nav__mark .serif-i { font-weight: 400; margin: 0 2px; }
.nav__where { display: flex; align-items: center; gap: 12px; justify-self: center; }
.nav__bar { display: block; width: 64px; height: 1px; background: color-mix(in srgb, currentColor 30%, transparent); position: relative; overflow: hidden; }
.nav__bar b { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(0); }
.nav__links { justify-self: end; display: flex; gap: clamp(14px, 2vw, 32px); }
.nav__links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; justify-self: end; }
.menu {
  position: fixed; inset: 0; z-index: 25; background: var(--navy); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease-io);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu a { font-size: clamp(48px, 14vw, 96px); line-height: 0.95; font-weight: 500; font-variation-settings: 'wdth' 70; text-transform: uppercase; display: flex; gap: 12px; align-items: flex-start; }
.menu a .mono { margin-top: 0.6em; }

/* ---------- curseur ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; mix-blend-mode: difference; color: #fff; }
.cursor__dot {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; transition: transform 0.5s var(--ease), width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease);
}
.cursor__label {
  position: absolute; left: 18px; top: -7px; white-space: nowrap; opacity: 0; transform: translateX(-6px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.cursor.is-label .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-down .cursor__dot { transform: scale(0.6); }
.cursor.is-drag .cursor__dot { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: transparent; border: 1px solid #fff; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
}
@media not ((hover: hover) and (pointer: fine)) { .cursor { display: none; } }

/* ---------- révélations ---------- */
/* masque d'apparition : marge généreuse pour ne couper ni accents, ni cédilles, ni jambages, ni italiques */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.16em 0.08em 0.26em; margin: -0.16em -0.08em -0.26em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.is-in .w > span, .is-in.w > span { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- sections communes ---------- */
section, .contact { padding: 0 var(--gutter); }
.section-head {
  display: grid; grid-template-columns: 1fr 6fr 3fr; align-items: end; gap: var(--gutter);
  padding: clamp(100px, 16vh, 200px) 0 clamp(48px, 8vh, 96px);
  border-bottom: 1px solid var(--rule);
}
.section-title {
  font-size: clamp(56px, 11vw, 190px); line-height: 0.86; font-weight: 500;
  font-variation-settings: 'wdth' 62; text-transform: uppercase; letter-spacing: -0.01em;
}
.section-title em { text-transform: none; font-size: 0.92em; letter-spacing: -0.03em; }
.section-aside { color: var(--muted); justify-self: end; text-align: right; }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; min-height: 100svh; position: relative; display: grid; align-content: center; }
.hero__name {
  position: relative; z-index: 0; /* derrière la sculpture */
  font-weight: 800; text-transform: uppercase; line-height: 0.8; letter-spacing: -0.02em;
  font-size: clamp(48px, 15vw, 300px);
  display: flex; flex-direction: column; pointer-events: none; user-select: none;
  color: var(--paper);
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--r { align-self: flex-end; font-family: var(--serif); font-weight: 400; font-style: italic; text-transform: none; letter-spacing: -0.04em; font-size: 1.04em; line-height: 0.85; }
.c { display: inline-block; will-change: transform; transform: translateY(var(--cy, 110%)); font-variation-settings: 'wdth' var(--cw, 62); transition: transform 1.6s var(--ease), font-variation-settings 2.2s var(--ease); transition-delay: calc(var(--i) * 45ms + 0.15s); }
.hero__line { overflow: hidden; padding: 0.1em 0.1em 0.24em; margin: -0.06em -0.1em -0.2em; }
.is-ready .c { --cy: 0%; --cw: 100; }
.hero__front { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__front a { pointer-events: auto; }
.hero__roles { position: absolute; top: 96px; left: var(--gutter); display: grid; gap: 2px; }
.hero__roles span { display: block; }
.hero__statement {
  position: absolute; left: var(--gutter); bottom: clamp(72px, 12vh, 120px); max-width: 24ch;
  font-size: clamp(22px, 2.2vw, 34px); line-height: 1.08;
}
.hero__vertical { position: absolute; right: var(--gutter); top: 96px; writing-mode: vertical-rl; color: var(--muted); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: var(--gutter); display: flex; gap: 8px; }
.hero__scroll span { display: inline-block; animation: bob 2.4s var(--ease-io) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- CONCEPT duo ---------- */
.duo { height: 260vh; position: relative; }
.duo__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 96px 0 var(--gutter); }
.duo__index { color: var(--muted); position: relative; z-index: 2; }
.duo__words {
  position: relative; z-index: 2; align-self: center; display: flex; flex-direction: column; text-transform: uppercase;
  font-size: clamp(40px, 11.5vw, 220px); line-height: 0.86; font-weight: 700;
  mix-blend-mode: difference; color: #fff;
}
.duo__word { display: block; white-space: nowrap; will-change: transform; }
.duo__word--a { font-variation-settings: 'wdth' var(--wa, 125); font-weight: 300; letter-spacing: -0.02em; transform: translateX(var(--xa, 0)); }
.duo__word--b { align-self: flex-end; font-variation-settings: 'wdth' var(--wb, 62); transform: translateX(var(--xb, 0)); }
.duo__x { font-size: 0.5em; text-transform: none; align-self: center; line-height: 0.6; opacity: var(--ox, 1); }
.duo__notes { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); max-width: 900px; font-size: 15px; }
.duo__notes .serif-i { font-size: 22px; line-height: 1.1; }

/* ---------- WORK ---------- */
.work__list {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  row-gap: clamp(80px, 14vh, 180px); padding: clamp(60px, 10vh, 120px) 0 clamp(120px, 18vh, 220px);
}
.project { position: relative; display: block; }
.project__media { max-height: 72vh; position: relative; overflow: hidden; clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease); }
.project__media .plate { transition: transform 1.6s var(--ease); }
/* vitrine en noir & blanc ; la couleur revient par éclats sous le curseur */
.project__media img { filter: grayscale(1) contrast(1.06); }
.shards { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.project:hover .project__media { clip-path: inset(2.5% 2.5% 2.5% 2.5%); }
.project:hover .project__media .plate { transform: scale(1.08); }
.project__frame { position: relative; }
.project__num { font-family: var(--serif); font-style: italic; font-size: clamp(64px, 9vw, 160px); line-height: 0.8; position: absolute; z-index: 3; pointer-events: none; color: var(--wine-2); transition: transform 1.2s var(--ease); }
.project:hover .project__num { transform: translateY(-8%) skewX(-6deg); }
.project__head { display: flex; gap: 14px; align-items: baseline; margin-top: 18px; flex-wrap: wrap; }
.project__title {
  font-size: clamp(30px, 3.6vw, 64px); line-height: 0.92; font-weight: 600; text-transform: uppercase;
  font-variation-settings: 'wdth' 62; transition: font-variation-settings 1.1s var(--ease), letter-spacing 1.1s var(--ease);
}
.project:hover .project__title { font-variation-settings: 'wdth' 118; letter-spacing: -0.01em; }
.project__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; color: var(--muted); }
.project__kind { color: var(--fg); }
.project__kind::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--wine-2); margin-right: 8px; vertical-align: 1px; }
.project--school .project__kind::before { background: var(--navy-2); }
.project--perso .project__kind::before { background: linear-gradient(135deg, #f4f4f6, #8b8f99); }
.project__excerpt { margin-top: 14px; max-width: 38ch; font-size: 15px; }
.project__facts { margin-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; max-width: 46ch; border-top: 1px solid var(--rule); padding-top: 12px; }
.project__facts dt { color: var(--muted); }
.project__facts dd { margin: 0; }

.project--hero  { grid-column: 1 / span 7; }
.project--hero .project__media { aspect-ratio: 3 / 2; }
.project--hero .project__num { right: 0.12em; bottom: 0.05em; font-size: clamp(80px, 10vw, 180px); }
.project--hero .project__body { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gutter); }
.project--right { grid-column: 9 / span 4; margin-top: 24vh; }
.project--right .project__media { aspect-ratio: 4 / 5; }
.project--right .project__num { left: 0.15em; top: 0.15em; }
.project--left { grid-column: 2 / span 5; }
.project--left .project__media { aspect-ratio: 1 / 1; }
.project--left .project__num { right: 0.15em; top: 0.15em; }
.project--small { grid-column: 9 / span 3; align-self: end; }
.project--small .project__media { aspect-ratio: 3 / 4; }
.project--small .project__num { left: 0.15em; bottom: 0.15em; }
.project--mid { grid-column: 4 / span 4; }
.project--mid .project__media { aspect-ratio: 4 / 5; }
.project--mid .project__num { right: 0.15em; top: 0.15em; }
.project--wide { grid-column: 3 / span 8; }
.project--wide .project__media { aspect-ratio: 2 / 1; }
.project--wide .project__num { left: 0.15em; bottom: 0.1em; }

/* ---------- planches (visuels provisoires ou images) ---------- */
.plate {
  position: relative; width: 100%; height: 100%; min-height: 100%;
  display: grid; padding: clamp(12px, 1.6vw, 22px); overflow: hidden;
  background: var(--tone-bg); color: var(--tone-fg);
}
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate--navy { --tone-bg: var(--navy-2); --tone-fg: var(--paper); }
.plate--burgundy { --tone-bg: var(--wine-2); --tone-fg: var(--paper); }
.plate--black { --tone-bg: #121216; --tone-fg: var(--paper); }
.plate--paper { --tone-bg: var(--paper-2); --tone-fg: var(--ink); }
.plate--chrome { --tone-bg: #b9bcc4; --tone-fg: var(--ink); }
.plate--chrome::before {
  content: ''; position: absolute; inset: -20%;
  background: conic-gradient(from 210deg at 40% 55%, #f6f6f8, #8d919b 12%, #2a2d35 22%, #dfe1e6 34%, #6b6f79 48%, #fafafa 60%, #3a3e47 74%, #c9ccd2 88%, #f6f6f8);
  filter: blur(18px) contrast(1.15);
}
.plate__ph { position: relative; display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.plate__ph .mono { opacity: 0.75; }
.plate__glyph { align-self: center; justify-self: center; font-family: var(--serif); font-style: italic; font-size: clamp(64px, 12vw, 220px); line-height: 0.8; opacity: 0.92; }
.plate__foot { display: flex; justify-content: space-between; gap: 12px; }
.almond { border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%; overflow: hidden; }

/* ---------- LAB ---------- */
.lab__board { position: relative; height: clamp(720px, 112vh, 1180px); margin: clamp(40px, 6vh, 80px) 0; touch-action: pan-y; }
.frag { position: absolute; width: calc(var(--w) * 1%); left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: rotate(calc(var(--r) * 1deg)); user-select: none; will-change: transform; }
.frag .plate { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.frag__inner { transition: transform 0.9s var(--ease); }
.frag:hover .frag__inner { transform: scale(1.03) rotate(calc(var(--r) * -0.5deg)); }
.frag .plate { aspect-ratio: 4 / 5; }
.frag--nail .plate { aspect-ratio: 5 / 8; }
.frag__cap { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--muted); }
.frag__cap b { color: var(--fg); font-weight: 400; }

/* nail art */
.nails { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); padding: clamp(60px, 12vh, 140px) 0 clamp(120px, 18vh, 200px); border-top: 1px solid var(--rule); align-items: center; }
.nails__title { font-size: clamp(40px, 6vw, 104px); line-height: 0.88; font-weight: 500; text-transform: uppercase; font-variation-settings: 'wdth' 62; margin: 18px 0 28px; }
.nails__title em { text-transform: none; }
.nails__body { max-width: 42ch; font-size: 16px; }
.nails__links { margin-top: 28px; display: flex; gap: 24px; flex-wrap: wrap; }
.nails__links a { border-bottom: 1px solid var(--rule); padding-bottom: 3px; transition: border-color 0.5s var(--ease); }
.nails__links a:hover { border-color: currentColor; }
.nails__hand { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 1.4vw, 20px); height: clamp(320px, 52vh, 560px); }
.nail { margin: 0; width: clamp(52px, 8.5vw, 130px); aspect-ratio: 5 / 9; transform: translateY(var(--lift, 0)) rotate(var(--rot, 0deg)); transition: transform 1.2s var(--ease); }
.nail .plate { height: 100%; padding: 0; }
.nail:hover { transform: translateY(calc(var(--lift, 0px) - 16px)) rotate(var(--rot, 0deg)); }
.nail { position: relative; }
.nail .almond { transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 1.1s var(--ease); }
.nail.is-chrome .almond { opacity: 0; filter: blur(10px) saturate(0); transform: scale(0.82); }
.nail__chrome { position: absolute; left: -45%; top: -25%; width: 190%; height: 150%; pointer-events: none; z-index: 3; }
.nail__cap { display: block; text-align: center; margin-top: 10px; color: var(--muted); white-space: nowrap; font-size: 10px; }

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(48px, 8vh, 96px) var(--gutter);
  padding: clamp(60px, 10vh, 120px) 0 clamp(120px, 20vh, 240px);
}
.about__who { grid-column: 1 / span 8; font-family: var(--serif); font-size: clamp(28px, 3.6vw, 60px); line-height: 1.02; letter-spacing: -0.015em; }
.about__who p + p { margin-top: 0.5em; }
.about__who p:nth-child(2) { padding-left: 16%; font-style: italic; color: var(--wine-2); }
.about__interests { grid-column: 9 / span 4; }
.about__interests li {
  font-size: clamp(22px, 2.2vw, 36px); line-height: 1.05; text-transform: uppercase; font-weight: 500;
  font-variation-settings: 'wdth' 62; border-top: 1px solid var(--rule); padding: 8px 0;
  display: flex; justify-content: space-between; align-items: baseline;
  transition: font-variation-settings 0.9s var(--ease), color 0.6s var(--ease), padding 0.9s var(--ease);
}
.about__interests li .mono { color: var(--muted); }
.about__interests li:hover { font-variation-settings: 'wdth' 125; color: var(--navy-2); padding-left: 10px; }
.about__path { grid-column: 1 / span 7; }
.about__path li { display: grid; grid-template-columns: 9rem 1fr auto; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.about__path li:last-child { border-bottom: 1px solid var(--rule); }
.about__path li.is-minor { padding: 10px 0; opacity: 0.55; }
.about__path li.is-minor .t { font-size: 15px; font-weight: 400; }
.about__path .t { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; }
.about__path .d { color: var(--muted); font-size: 14px; }
.about__tools { grid-column: 9 / span 4; align-self: end; }
.about__tools p:not(.label) { font-family: var(--serif); font-size: 24px; line-height: 1.2; }

/* ---------- CONTACT ---------- */
.contact { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto auto; padding-top: clamp(100px, 16vh, 180px); padding-bottom: var(--gutter); position: relative; }
.contact > .mono:first-child { color: var(--muted); }
.contact__title { align-self: center; display: flex; flex-direction: column; text-transform: uppercase; font-weight: 700; line-height: 0.82; font-size: clamp(44px, 11vw, 210px); }
.contact__line { display: block; white-space: nowrap; font-variation-settings: 'wdth' var(--sw, 62); transition: font-variation-settings 0.2s linear; }
.contact__line--r { align-self: flex-end; text-transform: none; font-weight: 400; font-size: 1.1em; letter-spacing: -0.04em; }
.contact__mail {
  justify-self: start; font-family: var(--serif); font-size: clamp(28px, 4.4vw, 72px); line-height: 1.1;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.9s var(--ease);
}
.contact__mail:hover { background-size: 100% 1px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 36px 0 64px; }
.contact__links a { display: inline-flex; gap: 10px; }
.contact__links a span { color: var(--muted); transition: color 0.4s; }
.contact__links a:hover span { color: var(--fg); }
.contact__foot { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); padding-top: 14px; color: var(--muted); flex-wrap: wrap; }

/* ==========================================================================
   PAGE PROJET
   ========================================================================== */
.p-hero { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 110px; position: relative; }
.p-back { position: absolute; top: 96px; left: var(--gutter); z-index: 2; }
.p-title {
  align-self: end; position: relative; z-index: 0;
  font-size: clamp(56px, 13vw, 240px); line-height: 0.82; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em;
}
.p-title .p-title__line { display: block; overflow: hidden; white-space: nowrap; padding: 0.1em 0.1em 0.24em; margin: -0.06em -0.1em -0.2em; }
.p-title .p-title__line:nth-child(2) { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; text-align: right; letter-spacing: -0.04em; }
.p-logo { position: relative; z-index: 2; align-self: end; width: min(78vw, 980px); height: auto; margin: 0 0 clamp(18px, 3vh, 32px); filter: invert(1); opacity: 0; animation: enterIn 1.4s var(--ease) 0.6s forwards; }
body[data-theme='paper'] .p-logo { filter: none; }
/* le logo remplace le titre à l'écran ; le titre reste lisible par les lecteurs d'écran */
.p-title--with-logo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.p-intro { display: grid; grid-template-columns: 2fr 5fr 5fr; gap: var(--gutter); padding: 40px 0 var(--gutter); border-top: 1px solid var(--rule); margin-top: 32px; position: relative; z-index: 2; }
.p-intro__lead { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 34px); line-height: 1.08; }
.p-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-content: start; }
.p-facts dt { color: var(--muted); }
.p-facts dd { margin: 0; font-size: 15px; }

.p-cover { padding: 0 var(--gutter); }
.p-cover-wrap .shot { width: min(100%, 1100px); margin: 0 auto; }
.p-cover-wrap .plate { aspect-ratio: 16 / 9; max-height: 68vh; }

.shot { grid-column: span 6; }
.shot--full { grid-column: 1 / -1; }
.shot--full .plate { aspect-ratio: 16 / 9; }
.shot--half .plate { aspect-ratio: 4 / 5; }
.shot--offset { grid-column: 5 / span 7; }
.shot--offset .plate { aspect-ratio: 3 / 4; }
.shot:nth-child(2n).shot--half { margin-top: 18vh; }
.shot figcaption { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); }
.shot .plate { transform: scale(var(--s, 1.06)); transition: transform 1.8s var(--ease); }
.shot { overflow: hidden; }
.shot.is-in .plate { --s: 1; }
.shot figure { margin: 0; overflow: hidden; }
.shot--almond figure .plate { border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%; aspect-ratio: 5 / 8; max-width: 52%; margin: 0 auto; }

/* démarche : un texte court par étape (colonne fixe) + sa galerie */
.story { padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(40px, 8vh, 100px); }
.story__index { position: sticky; top: 64px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vh, 72px); padding: 10px 0; }
.story__index a { padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); transition: background-color 0.4s, color 0.4s, border-color 0.4s; }
.story__index a span { opacity: 0.55; margin-right: 8px; }
.story__index a.is-on, .story__index a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.story__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter); padding: clamp(40px, 7vh, 80px) 0; border-top: 1px solid var(--rule); scroll-margin-top: 120px; }
.story__text { position: sticky; top: 130px; align-self: start; }
.story__n { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.story__n .serif-i { font-size: clamp(48px, 5vw, 88px); line-height: 0.8; }
.story__n .mono { font-size: 12px; }
.story__p { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 28px); line-height: 1.16; max-width: 30ch; }
.story__count { color: var(--muted); margin-top: 18px; }
.story__row--rich { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.story__row--read .story__text { position: static; }
.story__row--read .story__grid { position: sticky; top: 130px; align-self: start; columns: 2 200px; }
.sblock { max-width: 62ch; }
.sblock + .sblock { margin-top: clamp(40px, 6vh, 64px); padding-top: clamp(28px, 4vh, 40px); border-top: 1px solid var(--rule); }
.sblock__t { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 36px); line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 14px; }
.sblock__p { font-size: 15px; line-height: 1.55; }
.sblock__sec { margin-top: 20px; }
.sblock__h { color: var(--muted); margin-bottom: 8px; }
.sblock__l { display: grid; gap: 6px; font-size: 15px; line-height: 1.5; }
.sblock__l li { position: relative; padding-left: 18px; }
.sblock__l li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.sblock__sec--strong .sblock__p { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 24px); line-height: 1.2; }
.story__grid { columns: 3 220px; column-gap: clamp(8px, 1vw, 14px); }


.g-item { position: relative; display: block; width: 100%; margin: 0 0 clamp(8px, 1vw, 14px); overflow: hidden; break-inside: avoid; text-align: left; background: var(--paper-2); }
.g-item img, .g-item video { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease), filter 0.8s var(--ease); }
.g-item--ph .plate { aspect-ratio: 4 / 5; padding: 0; }
.g-item:hover img, .g-item:hover video { transform: scale(1.04); }
.g-item--cut { background: none; overflow: visible; }
.g-item--cut img { filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.12)); }
.g-item--video::after { content: '▶'; position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(255, 255, 255, 0.9); color: var(--ink); }
.g-item__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 8px;
  padding: 28px 10px 10px; color: var(--paper); background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.g-item:hover .g-item__cap, .g-item:focus-visible .g-item__cap { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 65; background: rgba(6, 7, 12, 0.94); color: var(--paper);
  display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 64px 1fr 56px; align-items: center;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__close { grid-column: 3; grid-row: 1; justify-self: end; margin-right: var(--gutter); white-space: nowrap; }
.lightbox__stage { grid-column: 2; grid-row: 2; margin: 0; height: 100%; display: grid; place-items: center; min-height: 0;
  opacity: 0; transform: translateX(calc(var(--dir, 0) * 40px)) scale(0.985); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.lightbox__stage.is-in { opacity: 1; transform: none; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__stage .plate { width: min(100%, 70vh); aspect-ratio: 4 / 5; height: auto; min-height: 0; }
.lightbox__nav { font-size: 28px; height: 100%; width: 100%; opacity: 0.6; transition: opacity 0.3s; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { grid-column: 1; grid-row: 2; }
.lightbox__nav--next { grid-column: 3; grid-row: 2; }
.lightbox__bar { grid-column: 2; grid-row: 3; display: flex; justify-content: space-between; gap: 16px; }

.p-next { min-height: 90vh; display: grid; align-content: center; padding: 15vh var(--gutter); margin-top: 20vh; }
.p-next__title { font-size: clamp(56px, 13vw, 240px); line-height: 0.82; font-weight: 700; text-transform: uppercase; font-variation-settings: 'wdth' 62; transition: font-variation-settings 1.2s var(--ease); display: block; }
.p-next:hover .p-next__title { font-variation-settings: 'wdth' 125; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .project--hero { grid-column: 1 / span 8; }
  .project--right { grid-column: 7 / -1; margin-top: 0; }
  .project--left { grid-column: 1 / span 6; }
  .project--small { grid-column: 8 / -1; }
  .project--wide { grid-column: 2 / span 10; }
  .project--mid { grid-column: 2 / span 6; }
  .about__who { grid-column: 1 / -1; }
  .about__interests { grid-column: 1 / span 6; }
  .about__path { grid-column: 1 / -1; }
  .about__tools { grid-column: 7 / span 6; align-self: start; }
  .nails { grid-template-columns: 1fr; }
  .story__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .story__grid { columns: 2 200px; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__where, .nav__links { display: none; }
  .nav__toggle { display: block; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-aside { justify-self: start; text-align: left; }
  .hero__roles { top: 80px; }
  .hero__vertical { display: none; }
  .hero__statement { left: var(--gutter); right: var(--gutter); max-width: none; text-align: left; bottom: 84px; }
  .hero__name { margin-top: -22vh; font-size: 14.6vw; }
  .hero__line--r { font-size: 0.98em; }
  .duo { height: 200vh; }
  .duo__notes { grid-template-columns: 1fr; gap: 10px; font-size: 14px; }
  .duo__notes .serif-i { font-size: 19px; }
  .work__list { row-gap: 72px; }
  .project, .project--hero, .project--right, .project--left, .project--small, .project--mid, .project--wide { grid-column: 1 / -1; margin: 0; }
  .project--small { grid-column: 3 / -1; }
  .project--hero .project__body { grid-template-columns: 1fr; gap: 0; }
  .project--wide .project__media { aspect-ratio: 4 / 3; }
  .project__num { font-size: 72px !important; }
  .lab__board {
    height: auto; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 40px calc(var(--gutter) * -1); padding: 0 var(--gutter) 20px; touch-action: auto; scrollbar-width: none;
  }
  .lab__board::-webkit-scrollbar { display: none; }
  .frag { position: relative; left: auto; top: auto; width: 62vw; flex: 0 0 auto; transform: rotate(calc(var(--r) * 0.4deg)); scroll-snap-align: center; touch-action: auto; }
  .frag--nail { width: 40vw; }
  .nails__hand { height: 280px; }
  .about__interests, .about__tools { grid-column: 1 / -1; }
  .about__who p:nth-child(2) { padding-left: 0; }
  .about__path li { grid-template-columns: 1fr; gap: 2px; }
  .contact__links { flex-direction: column; }
  .p-intro { grid-template-columns: 1fr; }
  .story__row { grid-template-columns: 1fr; }
  .story__text { position: static; }
  .story__row--rich { grid-template-columns: 1fr; }
  .story__row--read .story__grid { position: static; }
  .story__grid { columns: 2; }
  .g-item__cap span:first-child { display: none; }
  .g-item__cap { padding: 16px 8px 6px; }
  .story__index { top: 56px; flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); scrollbar-width: none; }
  .story__index a { white-space: nowrap; }
  .g-item__cap { opacity: 1; transform: none; }
  .lightbox { grid-template-columns: 0 1fr 0; }
  .lightbox__nav { display: none; }
  .lightbox__close { grid-column: 2; }
  .shot, .shot--offset, .shot--full { grid-column: 1 / -1; }
  .shot:nth-child(2n).shot--half { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .c { --cy: 0%; --cw: 100; }
  .w > span { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* parallaxe interne des visuels */
.project__pan { position: absolute; left: 0; right: 0; top: -7%; bottom: -7%; will-change: transform; }
.project__pan .plate { height: 100%; }
.nail .plate--chrome::before { filter: blur(8px) contrast(1.2); }
.nail img[hidden] { display: none; }

/* ==========================================================================
   PAGE PROJET : BOBINES HORIZONTALES
   La section se fige, le défilement fait glisser une bande de cartes et de
   visuels à hauteurs variées ; profondeur, inertie et étirement au geste.
   ========================================================================== */
.reel { position: relative; }
.reel__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.reel__track {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 72px);
  padding: 0 clamp(24px, 6vw, 120px); will-change: transform; transform-origin: 50% 50%;
}
.reel__end { flex: 0 0 18vw; height: 1px; }

.rhead { flex: 0 0 auto; display: grid; align-content: center; gap: 6px; padding-right: clamp(20px, 4vw, 80px); }
.rhead__n { font-size: clamp(140px, 30vh, 340px); line-height: 0.78; letter-spacing: -0.04em; color: var(--wine-2); }
body[data-theme='ink'] .rhead__n { color: var(--paper); }
.rhead__k { font-size: clamp(42px, 7vw, 120px); line-height: 0.9; font-weight: 600; text-transform: uppercase; font-variation-settings: 'wdth' 62; white-space: nowrap; }
.rhead__hint { color: var(--muted); margin-top: 18px; }

.rcard {
  flex: 0 0 clamp(290px, 28vw, 440px); align-self: center; max-height: 78vh; overflow: auto;
  padding: clamp(22px, 2.2vw, 34px); border: 1px solid var(--rule); border-radius: 22px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px);
  transform: translateY(var(--y, 0));
}
.rcard:nth-of-type(2n) { --y: 6vh; }
.rcard:nth-of-type(3n) { --y: -5vh; }
.rcard--lead { flex-basis: clamp(320px, 36vw, 560px); border: 0; background: none; backdrop-filter: none; padding: 0; }
.rcard--lead p { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 42px); line-height: 1.1; letter-spacing: -0.01em; }
.rcard__t { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 40px); line-height: 1.02; margin-bottom: 14px; }
.rcard__h { color: var(--muted); margin-bottom: 12px; }
.rcard__p { font-size: 15px; line-height: 1.55; }
.rcard__l { display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.rcard__l li { position: relative; padding-left: 18px; }
.rcard__l li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--wine-2); }
body[data-theme='ink'] .rcard__l li::before { background: var(--paper); }
.rcard--strong { border: 0; background: var(--wine-2); color: var(--paper); }
.rcard--strong .rcard__h { color: rgba(238, 235, 229, 0.7); }
.rcard--strong .rcard__p { font-family: var(--serif); font-size: clamp(21px, 1.8vw, 28px); line-height: 1.18; }

.rimg {
  --in: 1; position: relative; flex: 0 0 auto; display: block; padding: 0; overflow: hidden; border-radius: 4px;
  transform: translateY(calc(var(--y, 0) + (1 - var(--in)) * 8vh)) scale(calc(0.86 + var(--in) * 0.14));
  opacity: calc(0.15 + var(--in) * 0.85);
  clip-path: inset(calc((1 - var(--in)) * 18%) 0 calc((1 - var(--in)) * 18%) 0 round 4px);
}
.rimg--l { height: 68vh; }
.rimg--m { height: 52vh; }
.rimg--s { height: 38vh; }
.rimg__in { display: block; height: 100%; will-change: transform; }
.rimg img, .rimg video { display: block; height: 100%; width: auto; max-width: 62vw; object-fit: cover; }
.rimg--cut { overflow: visible; clip-path: none; border-radius: 0; }
.rimg--cut .rimg__in { transform: none !important; }
.rimg--cut img { object-fit: contain; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.18)); }
.rimg__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 34px 12px 10px; text-align: left;
  color: var(--paper); background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.rimg__cap span { opacity: 0.6; }
.rimg:hover .rimg__cap, .rimg:focus-visible .rimg__cap { opacity: 1; transform: none; }
.rimg--cut .rimg__cap { background: none; color: var(--fg); bottom: -34px; padding: 0; }
.rimg:hover img { filter: brightness(1.05); }

.reel__ui {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(18px, 4vh, 36px);
  display: flex; align-items: center; gap: 16px; color: var(--muted);
}
.reel__bar { flex: 1; height: 1px; background: var(--rule); position: relative; overflow: hidden; }
.reel__bar b { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* mobile et animations réduites : bande à faire glisser au doigt */
.reel--native .reel__pin { position: static; height: auto; display: block; padding: 70px 0 40px; }
.reel--native .reel__track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; align-items: flex-start; }
.reel--native .reel__track::-webkit-scrollbar { display: none; }
.reel--native .reel__track > * { scroll-snap-align: center; }
.reel--native .rimg { --in: 1 !important; transform: none; height: 46vh; }
.reel--native .rimg img, .reel--native .rimg video { max-width: 82vw; }
.reel--native .rcard { --y: 0; flex-basis: 80vw; max-height: none; }
.reel--native .rhead__n { font-size: 120px; }
.reel--native .reel__ui { position: static; margin: 0 var(--gutter); }

/* ==========================================================================
   « J'AI FAIT ÇA » : PILE DE CARTES
   Chaque projet est une carte plein écran qui reste collée en haut ; la
   suivante monte et se pose dessus, la précédente recule et s'assombrit.
   ========================================================================== */
.stack { padding: clamp(40px, 6vh, 80px) 0 clamp(80px, 14vh, 160px); }
.slab {
  --top: calc(80px + var(--i) * 16px);
  position: sticky; top: var(--top); display: block;
  height: calc(100vh - 120px); height: calc(100svh - 120px); margin-bottom: 12vh;
}
.slab:last-child { margin-bottom: 0; }
.slab__card {
  --k: 0;
  height: 100%; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border-radius: 8px; overflow: hidden; background: var(--slab-bg); color: var(--slab-fg);
  box-shadow: 0 -24px 60px rgba(9, 9, 11, 0.16);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--k) * 0.07)) translateY(calc(var(--k) * -14px));
  filter: brightness(calc(1 - var(--k) * 0.45));
  will-change: transform, filter;
}
.slab:nth-child(5n + 1) { --slab-bg: #0e0e12; --slab-fg: var(--paper); --slab-num: var(--paper); }
.slab:nth-child(5n + 2) { --slab-bg: var(--paper-2); --slab-fg: var(--ink); --slab-num: var(--wine-2); }
.slab:nth-child(5n + 3) { --slab-bg: var(--navy); --slab-fg: var(--paper); --slab-num: var(--paper); }
.slab:nth-child(5n + 4) { --slab-bg: #f4f2ee; --slab-fg: var(--ink); --slab-num: var(--wine-2); }
.slab:nth-child(5n + 5) { --slab-bg: var(--wine); --slab-fg: var(--paper); --slab-num: var(--paper); }

.slab__media { position: relative; height: 100%; max-height: none; overflow: hidden; }
.slab__media .project__pan { position: absolute; left: 0; right: 0; top: -7%; bottom: -7%; }
.slab__media .plate { height: 100%; padding: 0; transition: transform 1.6s var(--ease); }
.slab:hover .slab__media .plate { transform: scale(1.05); }

.slab__body { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(24px, 3vw, 56px); min-height: 0; }
.slab__top { display: flex; align-items: flex-start; gap: 12px; }
.slab__num { font-size: clamp(90px, 13vw, 220px); line-height: 0.78; letter-spacing: -0.04em; color: var(--slab-num); transition: transform 1.2s var(--ease); }
.slab:hover .slab__num { transform: skewX(-8deg) translateX(8px); }
.slab__of { opacity: 0.5; margin-top: 0.6em; }
.slab__kind { display: flex; gap: 18px; opacity: 0.75; margin-bottom: 12px; }
.slab__kind .project__kind { color: inherit; }
.slab__title {
  font-size: clamp(38px, 4.6vw, 88px); line-height: 0.9; font-weight: 600; text-transform: uppercase;
  font-variation-settings: 'wdth' 62; transition: font-variation-settings 1.1s var(--ease);
}
.slab:hover .slab__title { font-variation-settings: 'wdth' 100; }
.slab__cat { opacity: 0.6; margin-top: 12px; }
.slab__excerpt { margin-top: 20px; max-width: 40ch; font-size: 16px; line-height: 1.45; }
.slab__facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin-top: 20px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--slab-fg) 20%, transparent); }
.slab__facts dt { opacity: 0.55; }
.slab__facts dd { margin: 0; }
.slab__cta { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; padding: 12px 20px; border: 1px solid color-mix(in srgb, var(--slab-fg) 30%, transparent); border-radius: 999px; transition: background-color 0.5s var(--ease), color 0.5s var(--ease); }
.slab__cta i { font-style: normal; transition: transform 0.6s var(--ease); }
.slab:hover .slab__cta { background: var(--slab-fg); color: var(--slab-bg); }
.slab:hover .slab__cta i { transform: translateX(6px); }

@media (max-width: 900px) {
  .slab { --top: calc(64px + var(--i) * 10px); height: calc(100svh - 84px); margin-bottom: 8vh; }
  .slab__card { grid-template-columns: 1fr; grid-template-rows: 44% 1fr; }
  .slab__body { padding: 20px; gap: 12px; }
  .slab__num { font-size: 64px; }
  .slab__title { font-size: clamp(30px, 8vw, 48px); }
  .slab__excerpt { font-size: 14px; margin-top: 12px; }
  .slab__facts { display: none; }
  .slab__cta { padding: 10px 16px; }
}

/* ==========================================================================
   PAGE PROJET : ORBITES
   Les visuels tournent autour de la sculpture chrome ; ceux de devant passent
   au-dessus, ceux de derrière passent sous la sculpture (pas de contexte
   d'empilement sur la section, pour que le canvas s'intercale).
   ========================================================================== */
.orbit { position: relative; }
.orbit__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter);
  padding: 96px var(--gutter) 80px;
}
.orbit__text { position: relative; z-index: 3; overflow: hidden; align-self: stretch;
  -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 6%, #000 88%, transparent); }
.orbit__scroll { display: grid; gap: 16px; padding: 20px 0 60px; will-change: transform; }
.orbit__n { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.orbit__n .serif-i { font-size: clamp(80px, 11vw, 170px); line-height: 0.8; color: var(--wine-2); }
body[data-theme='ink'] .orbit__n .serif-i { color: var(--paper); }
.orbit__k { font-size: clamp(28px, 3vw, 48px); font-weight: 600; text-transform: uppercase; font-variation-settings: 'wdth' 62; }
.orbit .rcard { flex: none; max-height: none; overflow: visible; transform: none; }
.orbit .rcard--lead p { font-size: clamp(22px, 2vw, 32px); }

.orbit__stage { position: relative; perspective: 1400px; }
.orbit__float { position: absolute; inset: 0; pointer-events: none; }
.oitem {
  position: fixed; left: 0; top: 0; pointer-events: auto; visibility: hidden; padding: 0; border-radius: 4px; overflow: hidden;
  will-change: transform, opacity; box-shadow: 0 24px 50px rgba(9, 9, 11, 0.18);
  transition: box-shadow 0.4s var(--ease);
}
.oitem img, .oitem video { display: block; width: auto; height: auto; max-width: clamp(190px, 22vw, 360px); max-height: clamp(220px, 40vh, 400px); }
.oitem--cut { overflow: visible; box-shadow: none; border-radius: 0; }
.oitem--cut img { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.2)); }
.oitem:hover { box-shadow: 0 30px 70px rgba(9, 9, 11, 0.32); }
.orbit__ui { z-index: 3; }

@media (max-width: 900px) {
  .orbit__pin { grid-template-columns: 1fr; grid-template-rows: 52% 48%; padding: 64px var(--gutter) 64px; gap: 8px; }
  .orbit__stage { grid-row: 1; }
  .orbit__text { grid-row: 2; }
  .orbit__n .serif-i { font-size: 64px; }
  .oitem img, .oitem video { max-width: 44vw; max-height: 24vh; }
}

/* ==========================================================================
   CV : feuille flottante, objets chrome en orbite, téléchargement
   ========================================================================== */
.cvsec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: center; min-height: 100vh; min-height: 100svh; padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); }
.cvsec__text .mono { color: var(--muted); }
.cvsec__text .section-title { margin: 18px 0 24px; }
.cvsec__lead { font-family: var(--serif); font-size: clamp(22px, 2vw, 32px); line-height: 1.12; max-width: 24ch; }
.cvsec__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; align-items: center; }
.cvbtn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--rule); font-size: 15px; transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease); }
.cvbtn i { font-style: normal; transition: transform 0.5s var(--ease); }
.cvbtn:hover { border-color: var(--fg); }
.cvbtn:hover i { transform: translateY(3px); }
.cvbtn--main { background: var(--wine-2); border-color: var(--wine-2); color: var(--paper); }
.cvbtn--main:hover { background: var(--paper); border-color: var(--paper); color: var(--navy); }
.cvbtn--ghost { border: 0; padding: 8px 4px; color: var(--muted); }
.cvbtn--ghost:hover { color: var(--fg); }
.cvsec__stage { position: relative; height: min(88vh, 860px); perspective: 1600px; }
.cvdoc { position: absolute; left: 50%; top: 50%; z-index: 2; display: block; width: min(38vw, 470px); transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(238, 235, 229, 0.08); border-radius: 3px; overflow: hidden; transition: box-shadow 0.6s var(--ease); }
.cvdoc img { display: block; width: 100%; height: auto; }
.cvdoc:hover { box-shadow: 0 60px 110px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(238, 235, 229, 0.25); }
.cvorbit { display: contents; } /* les objets se placent devant ou derrière la feuille */
.cvorb { position: absolute; left: 50%; top: 50%; width: clamp(80px, 9vw, 150px); height: auto; pointer-events: none; will-change: transform; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45)); }
@media (max-width: 900px) {
  .cvsec { grid-template-columns: 1fr; }
  .cvsec__stage { height: 120vw; max-height: 720px; }
  .cvdoc { width: 66vw; }
  .cvorb { width: 18vw; }
}
