/* ==========================================================
   Ilian Laffitte · Portfolio V3
   Encre sumi, papier washi, un seul accent vermillon (shu).
   Rayons : 0 pour les images et surfaces, pilule pour les éléments interactifs.
   ========================================================== */

/* Sofia Sans Extra Condensed : police variable (graisse de 1 à 1000). Les titres l'utilisent en gras, graisse réglée par --f-dl */
@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url('fonts/sofia-sans-xcond.woff2') format('woff2'); font-weight: 1 1000; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/geist-mono.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fonts/cormorant-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fonts/cormorant-light-italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }

:root {
  --ink: #0c0c0b;
  --ink-2: #151513;
  --ink-3: #1f1f1c;
  --paper: #e9e7e3;
  --paper-2: #d9d6d0;
  --shu: #e4361b;
  --line-d: rgba(233, 231, 227, .14);
  --line-l: rgba(12, 12, 11, .16);
  --f-d: 'Sofia Sans Extra Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --f-dw: 100%;    /* largeur des titres (sert seulement si la police a un axe de largeur) */
  --f-dl: 800;     /* graisse des titres : gras */
  --f-s: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --f-m: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
  --f-e: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --gut: clamp(16px, 2.4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --hdr-h: 56px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--f-s); font-size: 16px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-family: var(--f-e); font-style: italic; font-weight: 400; letter-spacing: 0; }
sup { font-size: .5em; vertical-align: super; line-height: 0; }
::selection { background: var(--shu); color: var(--ink); }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 999px; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-m); font-size: 11.5px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
.dot { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--shu); flex: none; }
.arr { display: inline-block; transition: transform .5s var(--ease); }

[data-theme="ink"] { background: var(--ink); color: var(--paper); }
[data-theme="paper"] { background: var(--paper); color: var(--ink); --line-d: var(--line-l); }
[data-theme="shu"] { background: var(--shu); color: var(--ink); --line-d: rgba(12,12,11,.22); }

/* ---------- Roll (texte qui défile au survol) ---------- */
.rl { display: inline-grid; overflow: hidden; vertical-align: top; line-height: 1.2; }
.r1, .r2 { grid-area: 1 / 1; transition: transform .55s var(--ease); }
.r2 { transform: translateY(110%); }
@media (hover: hover) {
  .roll:hover .r1 { transform: translateY(-110%); }
  .roll:hover .r2 { transform: none; }
  .roll:hover .arr, .card-in:hover .arr, .row:hover .arr, .pj-next:hover .arr { transform: rotate(45deg); }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-family: var(--f-m); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; will-change: transform; }
.btn:active { transform: scale(.98); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--shu); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-3); }
.btn-line { border: 1px solid currentColor; }
.btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
[data-theme="paper"] .btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Chargement ---------- */
/* Écran clair : nom au centre, barre de progression en bas. Il s'ouvre ensuite en cercle depuis le centre :
   le masque perce un trou de rayon --iris (animé par main.js), centré sur le soleil du héros à l'accueil. */
.loader { position: fixed; inset: 0; z-index: 120; background: var(--paper); color: var(--ink); display: none; pointer-events: none; --iris: 0px; --iy: 50%;
  -webkit-mask-image: radial-gradient(circle at 50% var(--iy), transparent calc(var(--iris) - 1.5px), #000 var(--iris));
  mask-image: radial-gradient(circle at 50% var(--iy), transparent calc(var(--iris) - 1.5px), #000 var(--iris)); }
html[data-page="home"] .loader { --iy: 41%; }
.is-loading .loader { display: block; pointer-events: auto; }
.is-loading:not(.js-ready) .loader { animation: fail-hide 0s 5s forwards; }
.loader-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 440px); display: grid; justify-items: center; gap: 18px; text-align: center; }
.loader-name { display: inline-flex; align-items: baseline; gap: .26em; font-weight: 500; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; line-height: 1; }
.loader-name em { font-size: 1.28em; margin-left: -.08em; }
.loader-dot { align-self: center; width: .5em; height: .5em; margin-right: .1em; border-radius: 50%; background: var(--shu); }
.loader-tag { color: rgba(12,12,11,.7); }
.loader-foot { position: absolute; left: var(--gut); right: var(--gut); bottom: 20px; display: grid; gap: 10px; }
.loader-bar { height: 2px; background: rgba(12,12,11,.14); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.loader-words { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 12px; color: rgba(12,12,11,.55); white-space: nowrap; }
.loader-words span:nth-child(1) { grid-column: 1 / span 2; }
.loader-words span:nth-child(2) { grid-column: 4 / span 2; }
.loader-words span:nth-child(3) { grid-column: 7 / span 2; }
.loader-words span:nth-child(4) { grid-column: 10; color: var(--shu); font-variant-numeric: tabular-nums; }
.loader-words span:nth-child(5) { grid-column: 11; color: var(--ink); }
.loader-words span:nth-child(6) { grid-column: 12; justify-self: end; color: var(--ink); }
@media (max-width: 860px) {
  .loader-words { grid-template-columns: 1fr auto 1fr; }
  .loader-words span:nth-child(n) { grid-column: auto; }
  .loader-words span:nth-child(3), .loader-words span:nth-child(5), .loader-words span:nth-child(6) { display: none; }
  .loader-words span:nth-child(4) { justify-self: end; }
}
@keyframes fail-hide { to { visibility: hidden; opacity: 0; } }

/* ---------- Noren (transition de page) ---------- */
.noren { position: fixed; inset: 0; z-index: 110; display: flex; pointer-events: none; }
.noren i { flex: 1; height: 100%; background: var(--ink-2); transform: translateY(-101%); border-bottom: 4px solid var(--shu); will-change: transform; }
.noren i + i { border-left: 1px solid rgba(233,231,227,.06); }
.is-arriving .noren i { transform: none; }
.is-arriving:not(.js-ready) .noren { animation: fail-hide 0s 4s forwards; }
.reduced .noren, .reduced .loader, .reduced .wipe { display: none !important; }
/* Transition courte (projets) : un seul volet qui monte, liseré vermillon et petit soleil */
.wipe { position: fixed; inset: 0; z-index: 110; pointer-events: none; background: var(--ink-2); transform: translateY(101%); will-change: transform; display: grid; place-items: center; }
.wipe::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--shu); }
.wipe b { width: 12px; height: 12px; border-radius: 50%; background: var(--shu); }
.is-arriving-light .wipe { transform: none; }
.is-arriving-light:not(.js-ready) .wipe { animation: fail-hide 0s 3s forwards; }

/* ---------- Grain ---------- */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }

/* ---------- En-tête ---------- */
.hdr { position: fixed; z-index: 80; top: 14px; left: 0; right: 0; height: var(--hdr-h); padding-inline: var(--gut); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; transition: transform .7s var(--ease); pointer-events: none; }
.hdr > * { pointer-events: auto; }
.hdr.is-hidden { transform: translateY(calc(-100% - 20px)); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; color: #fff; mix-blend-mode: difference; font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.brand-sun { width: 11px; height: 11px; border-radius: 50%; background: var(--shu); mix-blend-mode: normal; transition: transform .6s var(--ease); }
.brand:hover .brand-sun { transform: scale(1.6); }
.brand-b { font-size: 1.28em; margin-left: -4px; }
.pill { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(21, 21, 19, .62); border: 1px solid rgba(233, 231, 227, .1); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.pill a { font-family: var(--f-m); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); padding: 10px 16px; border-radius: 999px; transition: background-color .4s var(--ease), color .4s; }
.pill a:hover { background: rgba(233,231,227,.1); }
.pill a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.hdr-cta { justify-self: end; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--shu); color: var(--ink); font-family: var(--f-m); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.menu-btn { display: none; justify-self: end; align-items: center; gap: 12px; height: 44px; padding: 0 8px 0 18px; border-radius: 999px; background: rgba(21, 21, 19, .62); border: 1px solid rgba(233,231,227,.1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--paper); font-family: var(--f-m); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.menu-btn-i { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--shu); }
.menu-btn-i i { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.menu-btn-i i:first-child { top: 12px; } .menu-btn-i i:last-child { top: 17px; }
.menu-open .menu-btn-i i:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-open .menu-btn-i i:last-child { transform: translateY(-2.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 75; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; padding: 110px var(--gut) var(--gut); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .9s var(--ease-io), visibility 0s .9s; }
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu nav { display: grid; }
.menu-link { display: flex; align-items: baseline; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line-d); }
.menu-n { font-family: var(--f-m); font-size: 11px; color: var(--shu); }
.menu-t { font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-size: clamp(56px, 17vw, 120px); line-height: .95; text-transform: uppercase; }
.menu-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; font-family: var(--f-m); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.menu-soc { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- Titres display ---------- */
.d-title { font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); text-transform: uppercase; font-size: clamp(64px, 13vw, 250px); line-height: .84; letter-spacing: -.005em; }
[data-split="chars"] { display: inline-block; }
.split-mask { overflow: clip; display: block; padding-bottom: .04em; margin-bottom: -.04em; }

/* ---------- Héros ---------- */
.hero { position: relative; }
.hero-pin { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
/* Scène 3D plein écran (src/hero3d.js). Le dégradé reste visible tant qu'elle n'est pas chargée ; sans WebGL, un soleil plein la remplace */
.hero-scene { position: absolute; inset: 0; background: radial-gradient(52vh 44vh at 50% 42%, rgba(228,54,27,.2), rgba(228,54,27,0) 72%), linear-gradient(180deg, var(--ink) 0%, #1c1614 58%, #100e0d 58.2%, var(--ink) 100%); }
.hero-scene.no-3d::before { content: ''; position: absolute; left: 50%; top: 41%; width: 27vh; aspect-ratio: 1; border-radius: 50%; background: var(--shu); transform: translate(-50%, -50%); }
.hero-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-scene.is-on canvas { opacity: 1; }
.hero-scene-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(12,12,11,.45), rgba(12,12,11,0) 18%, rgba(12,12,11,0) 58%, rgba(12,12,11,.42)); }
.hero-scene-dim { position: absolute; inset: 0; pointer-events: none; background: var(--ink); opacity: 0; }
/* Titre calé en bas : petite ligne mono, « Ilian » en italique à gauche, « LAFFITTE » en capitales décalé à droite */
.hero-copy { position: absolute; left: var(--gut); right: var(--gut); bottom: var(--gut); pointer-events: none; color: var(--paper); filter: drop-shadow(0 2px 22px rgba(12,12,11,.55)); }
.hero-tag { max-width: 46ch; color: rgba(233,231,227,.8); margin-bottom: clamp(18px, 3vh, 36px); }
.hero-tag span { display: block; }
/* Prénom et nom forment un seul bloc en escalier, à la même taille : la grille donne à la première colonne
   la largeur de « Ilian », « LAFFITTE » commence donc exactement là où le prénom finit. */
.hero-title { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: .1em; font-size: min(12vw, 24vh); line-height: .8; }
.hero-a { grid-area: 1 / 1; font-size: 1.04em; font-weight: 300; letter-spacing: -.02em; margin-left: -.03em; }
.hero-b { grid-area: 2 / 2; font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); letter-spacing: 0; white-space: nowrap; }
.hero-jp { position: absolute; right: calc(var(--gut) + 4px); top: calc(var(--hdr-h) + 5vh); writing-mode: vertical-rl; font-size: 12px; letter-spacing: .5em; color: rgba(233,231,227,.6); }
.video-toggle { position: absolute; left: var(--gut); top: calc(var(--hdr-h) + 34px); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-d); color: rgba(233,231,227,.7); background: rgba(12,12,11,.4); opacity: .0; transition: opacity .3s; }
.hero:hover .video-toggle, .video-toggle:focus-visible { opacity: 1; }

/* ---------- Manifeste ---------- */
.manifesto { padding: clamp(96px, 16vw, 240px) 0 clamp(72px, 10vw, 160px); }
.manifesto-text { font-weight: 500; font-size: clamp(30px, 4.6vw, 86px); line-height: 1.04; letter-spacing: -.045em; max-width: 19ch; text-wrap: balance; }
.manifesto-text em { font-size: 1.12em; letter-spacing: -.01em; color: var(--shu); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); margin-top: clamp(64px, 9vw, 140px); border-top: 1px solid var(--line-l); padding-top: 20px; }
.facts dd { font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-size: clamp(56px, 8vw, 140px); line-height: .9; margin-top: 14px; }
.facts dd.facts-txt { font-family: var(--f-s); font-weight: 500; font-size: clamp(20px, 2vw, 32px); letter-spacing: -.03em; line-height: 1.1; max-width: 14ch; }

/* ---------- Bandeau ---------- */
.marquee { overflow: hidden; padding: clamp(20px, 3vw, 40px) 0; border-block: 1px solid var(--line-d); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-set { display: flex; align-items: center; flex: none; }
.marquee-set span { font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-size: clamp(44px, 7vw, 120px); line-height: 1; text-transform: uppercase; padding: 0 .35em; white-space: nowrap; }
.marquee-set span:nth-of-type(even) { font-family: var(--f-e); font-style: italic; text-transform: none; font-size: clamp(48px, 7.6vw, 132px); font-weight: 300; }
.marquee .dot { width: .26em; height: .26em; font-size: clamp(44px, 7vw, 120px); }

/* ---------- Sélection (cartes empilées) ---------- */
.selection { padding-top: clamp(96px, 12vw, 180px); }
.sel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.sel-sub { font-size: clamp(20px, 2vw, 30px); letter-spacing: -.03em; font-weight: 500; }
.sel-sub em { font-size: 1.15em; }
.stack { position: relative; }
.card { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 600px; background: var(--bg); color: var(--paper); overflow: hidden; --dim: 0; }
.card[data-fg="ink"] { color: var(--ink); }
.card::after { content: ''; position: absolute; inset: 0; background: #000; opacity: var(--dim); pointer-events: none; }
.card-in { position: relative; height: 100%; display: flex; flex-direction: column; padding: calc(var(--hdr-h) + 34px) var(--gut) var(--gut); transform-origin: 50% 0; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-bottom: 1px solid currentColor; padding-bottom: 14px; }
.card-title { font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); text-transform: uppercase; font-size: clamp(52px, 8.4vw, 160px); line-height: .9; letter-spacing: -.005em; }
.card-n { font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-size: clamp(40px, 6vw, 110px); line-height: .86; }
.card-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gut); padding-top: clamp(20px, 3vw, 44px); }
.card-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; max-width: 460px; }
.card-cat { font-family: var(--f-m); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.card-cat em { font-size: 22px; text-transform: none; letter-spacing: 0; }
.card-desc { font-size: clamp(20px, 1.9vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.12; margin-top: 18px; }
.card-cta { font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-size: clamp(28px, 2.6vw, 44px); text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; line-height: 1; }
.card-media { justify-self: end; align-self: stretch; min-height: 0; display: flex; justify-content: flex-end; overflow: hidden; }
.card-media img { height: 100%; width: auto; max-width: 100%; object-fit: cover; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); transition: transform 1.2s var(--ease); }
.card-media.is-wide img { width: 100%; height: 100%; }
.card-in:hover .card-media img { transform: scale(1.03); }
.sel-more { padding-block: clamp(48px, 6vw, 90px) 0; display: flex; justify-content: center; }

/* ---------- Texte en arc ---------- */
.arc { padding: 0 0 clamp(24px, 4vw, 60px); margin-top: clamp(-80px, -5vw, -20px); overflow: hidden; }
.arc-svg { width: 118%; margin-left: -9%; overflow: visible; }
.arc-svg text { font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-size: 136px; fill: var(--paper); letter-spacing: 1px; }

/* ---------- Photographies (défilement horizontal) ---------- */
.photos { position: relative; }
.photos-pin { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; overflow: clip; display: flex; align-items: center; }
.photos-head { position: absolute; left: var(--gut); top: calc(var(--hdr-h) + 40px); z-index: 2; max-width: 50vw; pointer-events: none; }
.photos-head .d-title { font-size: clamp(64px, 10.5vw, 200px); display: block; }
.photos-em { display: block; font-size: clamp(30px, 3.2vw, 56px); text-transform: none; margin-top: 8px; font-weight: 300; }
.photos-sub { margin-top: 20px; max-width: 34ch; color: rgba(233,231,227,.72); }
.photos-track { display: flex; align-items: center; gap: clamp(20px, 3vw, 56px); padding-left: 52vw; padding-right: var(--gut); will-change: transform; }
.ph { flex: none; display: block; }
.ph figure { display: grid; gap: 12px; }
.ph-img { overflow: hidden; background: var(--ink-3); }
.ph-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: filter .6s; }
.ph figcaption { display: flex; gap: 12px; align-items: baseline; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.ph figcaption .mono { color: var(--shu); }
.ph-0 { width: clamp(240px, 27vw, 480px); } .ph-0 .ph-img { aspect-ratio: 3 / 4; }
.ph-1 { width: clamp(300px, 40vw, 720px); margin-top: 18vh; } .ph-1 .ph-img { aspect-ratio: 4 / 3; }
.ph-2 { width: clamp(220px, 24vw, 420px); margin-bottom: 20vh; } .ph-2 .ph-img { aspect-ratio: 4 / 5; }
.ph-3 { width: clamp(260px, 32vw, 560px); } .ph-3 .ph-img { aspect-ratio: 1; }
.ph-end { width: clamp(240px, 24vw, 420px); aspect-ratio: 3 / 4; border: 1px solid var(--line-d); display: flex; flex-direction: column; justify-content: space-between; padding: 24px; font-size: 28px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; transition: background-color .5s var(--ease), color .5s; }
.ph-end-n { font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-size: clamp(90px, 10vw, 180px); line-height: .8; color: var(--shu); transition: color .5s; }
.ph-end .arr { font-size: 40px; align-self: flex-end; }
.ph-end:hover { background: var(--shu); color: var(--ink); }
.ph-end:hover .ph-end-n { color: var(--ink); }
@media (hover: hover) { .photos-track:hover .ph .ph-img img { filter: grayscale(.7) brightness(.7); } .photos-track .ph:hover .ph-img img { filter: none; } }

/* ---------- Disciplines ---------- */
.skills-pin { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--hdr-h) + 40px) var(--gut) var(--gut); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; column-gap: var(--gut); }
.skills-pin::before { content: ''; position: absolute; left: 58.33%; top: 0; bottom: 0; width: 1px; background: var(--line-d); }
.skills-kicker { grid-column: 1 / -1; font-weight: 500; font-size: clamp(24px, 2.4vw, 40px); letter-spacing: -.035em; margin-bottom: clamp(20px, 3vw, 40px); }
.skills-kicker em { font-size: 1.15em; }
.skills-list { align-self: center; }
.sk-word { display: block; font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-size: clamp(56px, 8.6vw, 168px); line-height: .88; opacity: .14; transition: opacity .6s var(--ease), color .6s, transform .8s var(--ease); transform-origin: 0 50%; }
.sk.is-on .sk-word { opacity: 1; }
button.sk-word { appearance: none; background: none; border: 0; padding: 0; margin: 0; color: inherit; text-align: left; cursor: pointer; }
.sk:not(.is-on) .sk-word:hover { opacity: .42; }
.sk-word:focus-visible { outline: 2px solid var(--shu); outline-offset: 6px; }
.sk.is-on .sk-word::after { content: ''; display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--shu); margin-left: .12em; vertical-align: .12em; }
.skills-detail { position: relative; align-self: stretch; min-height: 560px; }
.skd { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-left: clamp(0px, 2vw, 40px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.skd.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease) .1s, visibility 0s; }
.skd-img { width: min(100%, 52vh * 4 / 3); aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-io); }
.skd.is-on .skd-img { clip-path: inset(0); }
.skd-img img, .skd-img video { display: block; width: 100%; height: 100%; object-fit: cover; }
.skd-t { font-size: clamp(22px, 2vw, 32px); font-weight: 500; letter-spacing: -.03em; display: flex; gap: 12px; align-items: baseline; margin-top: 10px; }
.skd-t .mono { color: var(--shu); }
.skd-tt { min-width: 0; }
.skd p { max-width: 40ch; color: rgba(233,231,227,.78); }
.skd .skd-tools { color: var(--paper); }

/* ---------- Teaser à propos ---------- */
.about-teaser { padding: clamp(96px, 13vw, 200px) 0; }
.at-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: end; }
.at-img { overflow: hidden; }
.at-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.at-copy { display: grid; gap: 22px; justify-items: start; max-width: 720px; }
.at-title { font-weight: 500; font-size: clamp(44px, 6.4vw, 118px); letter-spacing: -.05em; line-height: .95; margin-bottom: 12px; }
.at-title em { font-size: 1.1em; letter-spacing: -.01em; display: inline-block; padding-bottom: .08em; }
.at-copy p { font-size: clamp(17px, 1.3vw, 21px); max-width: 48ch; color: rgba(12,12,11,.78); }
.at-copy .btn { margin-top: 12px; }

/* ---------- Pied de page ---------- */
.ftr { position: relative; overflow: hidden; padding-top: clamp(80px, 10vw, 150px); }
.ftr-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.ftr-q { font-weight: 500; font-size: clamp(40px, 5.4vw, 100px); line-height: .98; letter-spacing: -.05em; }
.ftr-q em { font-size: 1.1em; letter-spacing: -.01em; display: inline-block; padding-bottom: .06em; }
.ftr-mail { display: grid; gap: 18px; justify-items: end; }
.ftr-email { font-weight: 500; font-size: clamp(20px, 2vw, 34px); letter-spacing: -.03em; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 4px; transition: background-size .6s var(--ease); display: inline-block; }
.ftr-email:hover { background-size: 0 1px; background-position: 100% 100%; }
.ftr-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--gut); margin-top: clamp(64px, 8vw, 120px); padding-top: 22px; border-top: 1px solid rgba(12,12,11,.25); }
.ftr-cols > div { display: grid; align-content: start; gap: 6px; font-size: 16px; }
.ftr-cols .mono { opacity: .6; margin-bottom: 6px; }
.ftr-cols a { width: fit-content; position: relative; }
.ftr-cols a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.ftr-cols a:hover::after { transform: scaleX(1); transform-origin: left; }
.ftr-jp { writing-mode: vertical-rl; font-size: 13px; letter-spacing: .4em; }
/* Mot géant : la hauteur de ligne et les marges internes gardent le haut et le pied des lettres dans le cadre (rien n'est rogné) */
.ftr-word { margin-top: clamp(40px, 6vw, 80px); line-height: .74; font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-size: 26.4vw; letter-spacing: 0; white-space: nowrap; text-align: center; overflow: hidden; padding: .03em 0 0; }
.ftr-word span { display: inline-block; }
.ftr-word .ch { display: inline-block; will-change: transform; }
.ftr-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px 22px; font-family: var(--f-m); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; border-top: 1px solid rgba(12,12,11,.25); }

/* ---------- Page projets ---------- */
.w-hero { padding: calc(var(--hdr-h) + 12vh) 0 clamp(32px, 5vw, 64px); }
.w-title { font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-size: clamp(90px, 23vw, 440px); line-height: .8; letter-spacing: -.01em; display: flex; align-items: flex-start; gap: 12px; }
.w-title sup { font-size: clamp(14px, 1.4vw, 22px); line-height: 1; margin-top: .6em; color: var(--shu); vertical-align: 0; }
.w-sub { margin-top: 24px; font-size: clamp(22px, 2.2vw, 36px); letter-spacing: -.03em; font-weight: 500; }
.w-sub em { font-size: 1.15em; }
.w-list { padding-bottom: clamp(80px, 10vw, 160px); min-height: 100vh; min-height: 100svh; }   /* catégorie courte : le pied de page ne remonte pas au milieu de l'écran */
.w-bar { position: sticky; top: calc(var(--hdr-h) + 24px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px 0; margin-bottom: 18px; background: var(--ink); border-bottom: 1px solid var(--line-d); }
.w-bar::before { content: ''; display: none; position: absolute; left: calc(var(--gut) * -1); right: calc(var(--gut) * -1); bottom: 100%; height: calc(var(--hdr-h) + 40px); background: var(--ink); }
.w-bar.is-stuck::before { display: block; }
.filters, .views { display: flex; flex-wrap: wrap; gap: 6px; }
.views { margin-left: auto; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-d); font-family: var(--f-m); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; transition: background-color .35s var(--ease), color .35s, border-color .35s; }
.chip sup { color: var(--shu); margin-left: 2px; font-size: .8em; vertical-align: .5em; transition: color .35s; }
.chip:hover { border-color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip[aria-pressed="true"] sup { color: var(--ink); }
.w-count { color: rgba(233,231,227,.6); min-width: 100px; text-align: right; }
.row-li { border-bottom: 1px solid var(--line-d); }
.row-li[hidden] { display: none; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 200px 220px 32px; align-items: center; gap: 20px; padding: 18px 0; transition: opacity .4s var(--ease), color .4s; }
.row-n { color: var(--shu); }
.row-t { font-weight: 500; font-size: clamp(26px, 3.6vw, 64px); letter-spacing: -.045em; line-height: 1.02; transition: transform .7s var(--ease); }
.row-c em { font-size: 22px; }
.row-f { color: rgba(233,231,227,.6); }
.row-thumb { display: none; }
.row .arr { font-size: 22px; justify-self: end; }
@media (hover: hover) {
  .rows:hover .row { opacity: .3; }
  .rows .row:hover { opacity: 1; }
  .row:hover .row-t { transform: translateX(28px); }
}
.preview { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; width: clamp(220px, 22vw, 380px); }
.preview-in { transform: translate(-50%, -50%) scale(.6); opacity: 0; overflow: hidden; clip-path: inset(50% 0 50% 0); transition: opacity .35s var(--ease), clip-path .6s var(--ease), transform .6s var(--ease); }
.preview.is-on .preview-in { opacity: 1; clip-path: inset(0); transform: translate(-50%, -50%) scale(1); }
.preview img { width: 100%; height: auto; max-height: 60vh; object-fit: cover; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px) var(--gut); padding-top: 20px; }
.grid[hidden] { display: none; }
.tile[hidden] { display: none; }
.tile { display: grid; gap: 14px; }
.tile-img { overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-3); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-cap { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; }
.tile-cap .mono { color: var(--shu); }
.tile-cap h2 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.tile-cap em { font-size: 19px; color: rgba(233,231,227,.7); }
.w-empty { padding: 60px 0; font-size: 22px; }

/* ---------- Page projet ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 85; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--shu); transform: scaleX(0); transform-origin: 0 50%; }
.pj-head { padding-top: calc(var(--hdr-h) + 9vh); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.pj-back { grid-column: 1 / 7; color: rgba(233,231,227,.7); width: fit-content; }
.pj-n { grid-column: 7 / 13; justify-self: end; color: var(--shu); }
.pj-n span { color: rgba(233,231,227,.5); }
.pj-title { grid-column: 1 / -1; margin-top: clamp(28px, 5vh, 64px); font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); text-transform: uppercase; font-size: clamp(60px, 10.5vw, 200px); line-height: .86; letter-spacing: -.005em; max-width: 14ch; display: block; }
.pj-lead { grid-column: 1 / 9; margin-top: 26px; font-size: clamp(24px, 2.5vw, 42px); line-height: 1.12; }
.pj-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gut); margin-top: clamp(40px, 6vh, 72px); border-top: 1px solid var(--line-d); padding-top: 16px; }
.pj-meta dd { margin-top: 8px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.pj-meta dt { color: rgba(233,231,227,.55); }
.pj-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); margin-top: clamp(40px, 7vh, 90px); align-items: start; }
.pj-visual { background: var(--tone); display: flex; justify-content: center; align-items: center; overflow: hidden; }
.is-tall .pj-visual { grid-column: 1 / 9; padding: clamp(24px, 5vw, 96px); min-height: 70vh; }
.is-tall .pj-visual img { max-height: 84vh; width: auto; }
.is-wide .pj-visual { grid-column: 1 / -1; padding: clamp(16px, 3vw, 56px); }
.is-wide .pj-visual img { width: 100%; }
.pj-zoom { position: relative; display: block; cursor: zoom-in; }
.pj-zoom img { box-shadow: 0 40px 90px -40px rgba(0,0,0,.7); }
.pj-zoom-hint { position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 999px; background: rgba(12,12,11,.7); color: var(--paper); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.pj-zoom:hover .pj-zoom-hint, .pj-zoom:focus-visible .pj-zoom-hint { opacity: 1; transform: none; }
.pj-video { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 16 / 9); max-width: min(100%, 82vh * var(--ar, 1.7778)); max-height: 82vh; margin-inline: auto; background: #000; }
.pj-text { display: grid; gap: 20px; align-content: start; }
.is-tall .pj-text { grid-column: 10 / 13; position: sticky; top: calc(var(--hdr-h) + 60px); }
.is-wide .pj-text { grid-column: 1 / 9; margin-top: clamp(40px, 5vw, 72px); }
.pj-text h2 { color: var(--shu); }
.pj-text p { font-size: clamp(19px, 1.5vw, 25px); line-height: 1.35; letter-spacing: -.015em; }
.pj-link { justify-self: start; margin-top: 8px; }
.pj-extra { margin-top: clamp(80px, 10vw, 160px); }
.pj-extra-t { font-weight: 500; font-size: clamp(40px, 5vw, 88px); letter-spacing: -.05em; line-height: 1; margin-bottom: clamp(24px, 3vw, 48px); }
.pj-extra-t em { font-size: 1.1em; letter-spacing: -.01em; }
.pj-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gut); }
.pj-gal figure { overflow: hidden; background: var(--ink-2); }
.pj-gal img { width: 100%; }
.pj-next { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 24px; margin-top: clamp(100px, 14vw, 220px); padding: clamp(40px, 6vw, 90px) var(--gut) var(--gut); border-top: 1px solid var(--line-d); min-height: 60vh; overflow: hidden; }
.pj-next-l { grid-column: 1 / -1; align-self: start; color: var(--shu); }
.pj-next-t { min-width: 0; font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); text-transform: uppercase; font-size: clamp(60px, 11vw, 210px); line-height: .86; max-width: 12ch; position: relative; z-index: 2; transition: transform .8s var(--ease); }
.pj-next .arr { font-size: clamp(40px, 6vw, 96px); position: relative; z-index: 2; }
.pj-next-img { position: absolute; right: 14vw; top: 50%; width: clamp(160px, 20vw, 320px); transform: translateY(-50%) rotate(4deg) scale(.85); opacity: 0; transition: opacity .6s var(--ease), transform .9s var(--ease); z-index: 1; }
.pj-next:hover .pj-next-img { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
.pj-next:hover .pj-next-t { transform: translateX(20px); }

.lightbox { max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; margin: 0; padding: 4vh 4vw; border: 0; background: rgba(12,12,11,.96); color: var(--paper); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 20px; padding: 12px 18px; border-radius: 999px; background: var(--paper); color: var(--ink); }

/* ---------- À propos ---------- */
.ab-hero { padding: calc(var(--hdr-h) + 10vh) 0 clamp(80px, 10vw, 160px); }
.ab-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); row-gap: clamp(40px, 6vw, 90px); }
.ab-title { grid-column: 1 / -1; font-weight: 400; }
.d-line { font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-size: clamp(64px, 28vw, 560px); line-height: .8; letter-spacing: -.01em; display: block; white-space: nowrap; }
.ab-title-em { display: block; font-size: clamp(40px, 6.4vw, 124px); line-height: 1; margin-top: 8px; padding-left: 20vw; font-weight: 300; }
.ab-portrait { grid-column: 1 / 6; overflow: hidden; aspect-ratio: 4 / 5; }
.ab-portrait > div { height: 118%; margin-top: -9%; }
.ab-portrait img { width: 100%; height: 100%; object-fit: cover; }
.ab-portrait .ab-photo { display: block; object-position: 50% 50%; }
.ab-intro { grid-column: 7 / 13; align-self: end; display: grid; gap: 22px; }
.ab-status { display: inline-flex; gap: 10px; align-items: center; color: var(--paper); }
.ab-lead { font-size: clamp(26px, 2.8vw, 48px); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
.ab-intro > p[data-fade] { color: rgba(233,231,227,.75); max-width: 52ch; font-size: 18px; }
.ab-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ab-jp { position: relative; min-height: 90vh; display: flex; align-items: flex-end; overflow: hidden; }
.ab-jp-film { position: absolute; inset: 0; }
.ab-jp-film video { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ab-jp-film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 4%, rgba(12,12,11,0) 60%); }
.ab-jp-copy { position: relative; padding-bottom: clamp(48px, 7vw, 110px); }
.ab-jp-copy p { margin-top: 20px; max-width: 30ch; font-size: clamp(22px, 2.3vw, 38px); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; }
.ab-jp-copy em { font-size: 1.12em; color: var(--shu); }
.ab-skills { padding: clamp(96px, 12vw, 190px) 0; }
.ab-h2 { font-weight: 500; font-size: clamp(44px, 6vw, 110px); letter-spacing: -.05em; line-height: .98; margin-bottom: clamp(40px, 6vw, 90px); }
.ab-h2 em { font-size: 1.1em; letter-spacing: -.01em; }
.ab-sk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gut); }
.ab-sk { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(20px, 3vw, 48px); row-gap: 12px; padding: clamp(28px, 3vw, 48px) 0; border-top: 1px solid var(--line-l); }
.ab-sk-n { grid-row: span 3; font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-size: clamp(64px, 7vw, 120px); line-height: .8; color: var(--shu); }
.ab-sk h3 { font-size: clamp(24px, 2.2vw, 36px); font-weight: 500; letter-spacing: -.035em; }
.ab-sk p { max-width: 44ch; color: rgba(12,12,11,.75); }
.ab-sk p.mono { color: var(--ink); }
.ab-path { padding: clamp(96px, 12vw, 190px) 0; }
.ab-path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 120px); }
.ab-col-t { font-size: clamp(60px, 7.5vw, 140px); margin-bottom: 28px; display: block; }
.ab-col li { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 4px 20px; padding: 20px 0; border-top: 1px solid var(--line-d); transition: padding-left .6s var(--ease); }
.ab-col li:hover { padding-left: 12px; }
.ab-col li .mono { grid-row: span 2; color: var(--shu); padding-top: 5px; }
.ab-col h3 { font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.ab-col li p em { font-size: 19px; color: rgba(233,231,227,.7); }

/* ---------- Contact ---------- */
.ct { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; padding: calc(var(--hdr-h) + 12vh) 0 clamp(48px, 6vw, 90px); }
.ct-bg { position: absolute; inset: 0; }
.ct-bg img { width: 100%; height: 115%; object-fit: cover; margin-top: -5%; opacity: .5; }
.ct-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,11,.92) 18%, rgba(12,12,11,.55) 70%, rgba(12,12,11,.3)), linear-gradient(0deg, var(--ink) 0%, rgba(12,12,11,0) 45%); }
.ct-in { position: relative; }
.ct-jp { position: absolute; right: var(--gut); top: 0; writing-mode: vertical-rl; letter-spacing: .5em; font-size: 13px; color: rgba(233,231,227,.7); }
.ct-title { font-weight: 400; display: grid; }
.ct-title-em { font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-style: normal; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 86px); line-height: .92; letter-spacing: .005em; text-wrap: balance; }
.ct-title [data-split] { font-family: var(--f-e); font-style: italic; font-weight: 300; font-size: clamp(112px, 21vw, 400px); line-height: .92; letter-spacing: -.02em; margin-top: .02em; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gut); margin-top: clamp(40px, 6vw, 90px); padding-top: 22px; border-top: 1px solid var(--line-d); }
.ct-lead { font-size: clamp(19px, 1.5vw, 24px); color: rgba(233,231,227,.8); max-width: 40ch; }
.ct-email { display: inline-block; margin-top: 22px; font-weight: 500; font-size: clamp(30px, 4.6vw, 84px); letter-spacing: -.05em; line-height: 1.05; word-break: break-word; background: linear-gradient(var(--shu), var(--shu)) 0 100% / 0 3px no-repeat; transition: background-size .8s var(--ease); padding-bottom: 6px; }
.ct-email:hover { background-size: 100% 3px; }
.ct-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.ct-status { color: var(--shu); }
.ct-side { display: grid; gap: 22px; align-content: start; font-size: 17px; }
.ct-side .mono { color: rgba(233,231,227,.55); margin-bottom: 6px; }
.ct-side a { display: block; width: fit-content; }
.ct-side a + a { margin-top: 4px; }

/* ---------- Crédits ---------- */
.cr { padding: calc(var(--hdr-h) + 12vh) 0 clamp(80px, 10vw, 160px); }
.cr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gut); margin: clamp(48px, 6vw, 90px) 0; }
.cr-grid h2 { color: var(--shu); margin-bottom: 10px; }
.cr-grid p { color: rgba(233,231,227,.8); max-width: 38ch; }
.cr-grid a { text-decoration: underline; text-decoration-color: rgba(233,231,227,.4); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.cr-grid a:hover { text-decoration-color: var(--shu); }

/* ---------- Curseur contextuel ---------- */
.cursor-view { position: fixed; left: 0; top: 0; z-index: 70; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--shu); color: var(--ink); display: grid; place-items: center; font-family: var(--f-m); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; pointer-events: none; transform: scale(0); }
@media (hover: none), (pointer: coarse) { .cursor-view, .preview { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .row { grid-template-columns: 52px minmax(0, 1fr) 150px 32px; }
  .row-f { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-pin { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .skills-pin::before { left: 50%; }
}
@media (max-width: 860px) {
  :root { --hdr-h: 48px; }
  .hdr { top: 10px; grid-template-columns: 1fr auto; }
  .pill, .hdr-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-title { grid-template-columns: .9em auto; font-size: 22.6vw; }
  .hero-a { grid-column: 1 / -1; }
  .hero-jp { display: none; }
  .video-toggle { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:last-child { grid-column: 1 / -1; }
  .card-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 20px; }
  .card-copy { gap: 14px; }
  .card-desc { font-size: 19px; margin-top: 10px; }
  .card-media { justify-self: start; justify-content: flex-start; }
  .card-cta { font-size: 26px; }
  .photos-pin { height: auto; min-height: 0; display: block; padding: 90px 0 60px; }
  .photos-head { position: static; max-width: none; padding: 0 var(--gut); margin-bottom: 36px; }
  .photos-track { padding-left: var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; align-items: flex-start; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .photos-track::-webkit-scrollbar { display: none; }
  .ph { scroll-snap-align: start; margin: 0 !important; }
  .ph-0, .ph-1, .ph-2, .ph-3, .ph-end { width: 72vw; }
  .ph-img img { transform: none; }
  .skills-pin { display: block; min-height: 0; padding-top: 90px; }
  .skills-pin::before { display: none; }
  .skills-list { display: none; }
  .skills-detail { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .skd { min-width: 0; }
  .skd { position: static; opacity: 1; visibility: visible; padding: 0; }
  .skd-img { clip-path: none; width: min(100%, 70vh * 4 / 3); }
  .skd-t { font-family: var(--f-d); font-stretch: var(--f-dw); font-weight: var(--f-dl); font-size: 56px; letter-spacing: 0; text-transform: uppercase; line-height: .9; }
  .at-grid, .ftr-top, .ct-grid { grid-template-columns: 1fr; }
  .ftr-mail { justify-items: start; }
  .ftr-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .ftr-jp { display: none; }
  .row { grid-template-columns: 64px minmax(0, 1fr) 24px; gap: 14px; padding: 14px 0; }
  .row-n, .row-c { display: none; }
  .row-thumb { display: block; grid-column: 1; grid-row: 1; width: 64px; height: 80px; overflow: hidden; }
  .row-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .row-t { font-size: 26px; }
  .views { display: none; }
  .w-bar { position: static; }
  .w-count { text-align: left; }
  .grid { grid-template-columns: 1fr; }
  .pj-head { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .pj-title, .pj-lead { width: 100%; }
  .pj-meta { grid-template-columns: 1fr 1fr; row-gap: 20px; width: 100%; }
  .pj-body { display: block; }
  .is-tall .pj-visual { min-height: 0; padding: 20px; }
  .is-tall .pj-visual img { max-height: 76vh; }
  .is-tall .pj-text, .is-wide .pj-text { position: static; margin-top: 36px; }
  .pj-gal { grid-template-columns: 1fr; }
  .pj-next { grid-template-columns: minmax(0, 1fr) auto; min-height: 44vh; }
  .pj-next-img { display: none; }
  .ab-portrait { grid-column: 1 / -1; }
  .ab-intro { grid-column: 1 / -1; }
  .ab-title-em { padding-left: 0; }
  .d-line { font-size: 27vw; }
  .ab-sk-grid, .ab-path-grid { grid-template-columns: 1fr; }
  .ab-col li { grid-template-columns: 1fr; }
  .ab-col li .mono { grid-row: auto; }
  .cr-grid { grid-template-columns: 1fr; }
  .ct-jp { display: none; }
}
@media (max-width: 480px) {
  .btn { min-height: 46px; padding: 0 18px; }
  .ab-links .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .ph-img img { transform: none; }
  .marquee-track { transform: none !important; }
}

/* Mouvement réduit : disciplines et légende en version statique */
.reduced .skills-pin { display: block; min-height: 0; }
.reduced .skills-pin::before, .reduced .skills-list { display: none; }
.reduced .skills-detail { min-height: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px var(--gut); }
.reduced .skd { position: static; opacity: 1; visibility: visible; padding: 0; justify-content: flex-start; }
.reduced .skd-img { clip-path: none; width: min(100%, 70vh * 4 / 3); }
/* Sans défilement horizontal animé, les photographies passent en galerie pour rester toutes visibles */
.reduced .photos-pin { height: auto; min-height: 0; display: block; overflow: visible; padding: clamp(90px, 10vw, 160px) 0 clamp(60px, 8vw, 120px); }
.reduced .photos-head { position: static; max-width: none; padding: 0 var(--gut); margin-bottom: clamp(36px, 5vw, 64px); }
.reduced .photos-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-items: start; gap: clamp(20px, 3vw, 40px) var(--gut); padding: 0 var(--gut); overflow: visible; transform: none !important; }
.reduced .photos-track .ph { width: auto; margin: 0 !important; }
.reduced .ph-img img { transform: none; }

@media (max-height: 820px) { .hero-jp { display: none; } }

/* ---------- Motion design portrait (ensō) ---------- */
.enso-video { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #0c0c0b; }
.at-img { box-shadow: 0 40px 80px -40px rgba(12, 12, 11, .45); }
.ab-portrait { background: #0c0c0b; }

/* ---------- Navigation rapide entre sections ---------- */
.secnav { position: fixed; z-index: 70; right: calc(var(--gut) - 2px); top: 50%; transform: translateY(-50%); color: #fff; mix-blend-mode: difference; }
.secnav-btn { display: none; }
.secnav-count { text-align: right; margin-bottom: 14px; opacity: .6; font-size: 10.5px; }
.secnav ol { display: grid; justify-items: end; gap: 2px; }
.secnav a { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.secnav-n { font-size: 10px; opacity: 0; transition: opacity .4s; }
.secnav-l { font-size: 11px; opacity: 0; transform: translateX(10px); transition: opacity .45s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.secnav-tick { display: block; width: 14px; height: 1.5px; background: currentColor; opacity: .45; transition: width .6s var(--ease), opacity .4s; }
.secnav a:hover .secnav-tick, .secnav a:focus-visible .secnav-tick { width: 26px; opacity: .9; }
.secnav a.is-on .secnav-tick { width: 40px; opacity: 1; }
.secnav a.is-on .secnav-l, .secnav:hover .secnav-l, .secnav:focus-within .secnav-l { opacity: 1; transform: none; }
.secnav:hover .secnav-n, .secnav:focus-within .secnav-n { opacity: .5; }
.secnav:hover a:not(.is-on) .secnav-l { opacity: .6; }
.is-loading .secnav { opacity: 0; }
@media (max-width: 860px) {
  .secnav { top: auto; bottom: 14px; right: 14px; transform: none; mix-blend-mode: normal; color: var(--paper); }
  .secnav-count { display: none; }
  .secnav-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(21, 21, 19, .78); border: 1px solid rgba(233, 231, 227, .12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .secnav-btn > span:first-child { opacity: .55; }
  .secnav-cur { color: var(--paper); }
  .secnav-chev { color: var(--shu); transition: transform .5s var(--ease); }
  .secnav.is-open .secnav-chev { transform: rotate(180deg); }
  .secnav ol { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 220px; padding: 10px 16px; border-radius: 18px; background: rgba(21, 21, 19, .94); border: 1px solid rgba(233, 231, 227, .12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); justify-items: stretch; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
  .secnav.is-open ol { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s; }
  .secnav a { justify-content: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(233, 231, 227, .08); }
  .secnav li:last-child a { border-bottom: 0; }
  .secnav-n { opacity: .5; }
  .secnav-l { opacity: 1; transform: none; font-size: 12px; }
  .secnav-tick { order: -1; width: 8px; }
  .secnav a.is-on .secnav-tick { width: 18px; background: var(--shu); }
  .menu-open .secnav { opacity: 0; pointer-events: none; }
  .secnav { transition: opacity .4s var(--ease), transform .5s var(--ease); }
  .secnav.at-top:not(.is-open) { opacity: 0; pointer-events: none; transform: translateY(12px); }
}

/* Grands titres : jamais de mot coupé (la taille est ajustée en JS si besoin) */
.card-title, .pj-title, .d-title, .w-title, .ab-title, .ct-title, .pj-next-t { overflow-wrap: normal; word-break: normal; hyphens: manual; min-width: 0; }
.card-top > .card-title { flex: 1 1 auto; }
.ct-title > span, .w-title > span, [data-split="chars"] { min-width: 0; max-width: 100%; }
