/* =========================================================
   Ferdinand Delage — Landing comédien
   Système d'échelle calqué sur la référence :
   mobile : 1 unité = 100vw / 39   |   desktop : 1 unité = 100vw / 144
   ========================================================= */

@font-face { font-family: "Serif Display"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Serif Display"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Grotesk"; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Grotesk"; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --scale: calc(100vw / 39);
  --vg: calc(2.4 * var(--scale));
  --rail: 64px;
  --edge-l: 20px;
  --edge-r: 20px;

  --ink: #090909;          /* slide 1 */
  --ink-2: #090909;        /* loader : noir, identique à la slide 1 */
  --cream: #f3eee8;
  --paper: #faf9f6;        /* slide 2 */
  --paper-ink: #2e2b28;
  --veil: #d8d1c8;

  --serif: "Serif Display", "Times New Roman", serif;
  --sans: "Grotesk", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-inout: cubic-bezier(.76, 0, .24, 1);
}

@media (min-width: 768px) {
  :root {
    --scale: calc(100vw / 144);
    --vg: calc(4.8 * var(--scale));
    --edge-l: 128px;
    --edge-r: 64px;
    --portrait-h: calc(39.2 * var(--scale));
    --portrait-w: calc(29.4 * var(--scale));
    --portrait-top: calc(100% - var(--vg) - var(--portrait-h));
    --display-fs: calc(3.2 * var(--scale));
    --cta-fs: calc(2.3 * var(--scale));
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; height: 100%; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--cream); color: var(--ink); }

/* Masques de révélation (lignes / mots) */
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .12em .1em 0; margin: -.14em -.12em -.1em 0; }
.mask__i { display: inline-block; will-change: transform; }
.char { display: inline-block; will-change: transform; }
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > span { display: block; }

.vt { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }

/* =========================================================
   RAIL (header fixe)
   ========================================================= */
.rail {
  --rail-bg: transparent;
  --rail-text: #f3eee8;
  --rail-border: rgba(243, 238, 232, .14);
  position: fixed; z-index: 110; inset: 0 0 auto 0;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  color: var(--rail-text);
  background: var(--rail-bg);
  border-bottom: 1px solid var(--rail-border);
  transition: background-color .6s ease-out, color .6s ease-out, border-color .6s ease-out;
}
.rail[data-theme="light"] { --rail-bg: #faf9f6; --rail-text: #2e2b28; --rail-border: #b8b3ac; }
.rail__progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: #8a8178; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.rail__burger { order: 3; position: relative; width: 28px; height: 28px; margin-right: -2px; }
.rail__burger span {
  position: absolute; right: 2px; height: 1px; background: currentColor; transform-origin: right center;
  transition: transform .8s var(--e-out), width .8s var(--e-out), top .8s var(--e-out);
}
.rail__burger span:nth-child(1) { top: 10px; width: 24px; }
.rail__burger span:nth-child(2) { top: 17px; width: 14px; }
@media (hover: hover) {
  .rail__burger:hover span:nth-child(1) { width: 14px; }
  .rail__burger:hover span:nth-child(2) { width: 24px; }
}
/* Ouvert : les deux traits fusionnent en une seule ligne */
.is-menu-open .rail__burger span:nth-child(1), .is-menu-open .rail__burger span:nth-child(2) { top: 13.5px; width: 24px; }
.is-menu-open .rail__burger:hover span:nth-child(1), .is-menu-open .rail__burger:hover span:nth-child(2) { width: 16px; }
/* Le rail repasse en sombre au-dessus du menu */
.is-menu-open .rail[data-theme], .is-menu-open .rail { --rail-bg: transparent; --rail-text: #f3eee8; --rail-border: rgba(243, 238, 232, .14); }
.is-menu-open .rail__progress { opacity: 0; }

/* Sélecteur de langue */
.lang { order: 2; display: flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 18px; font-size: 11px; letter-spacing: .06em; }
.lang__btn { padding: 4px 0; opacity: .4; transition: opacity .4s ease-out; position: relative; }
.lang__btn[aria-pressed="true"] { opacity: 1; }
.lang__btn[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: currentColor; }
.lang__btn:hover { opacity: 1; }
.lang__sep { width: 10px; height: 1px; background: currentColor; opacity: .35; }
.rail__edition, .rail__copy { display: none; }
.rail__name { order: 1; writing-mode: horizontal-tb; transform: none; font-family: var(--serif); font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.rail__name sup { font-size: .45em; vertical-align: super; margin-left: .1em; }

@media (min-width: 768px) {
  .rail {
    inset: 0 auto 0 0; width: var(--rail); height: 100dvh; padding: 0;
    flex-direction: column; justify-content: flex-start; align-items: center;
    border-bottom: 0; border-right: 1px solid var(--rail-border);
  }
  .rail__progress { inset: 0 auto auto -1px; left: auto; right: -1px; bottom: auto; top: 0; width: 1px; height: 100%; transform: scaleY(0); transform-origin: top; }
  .rail__burger { order: 0; margin: 18px 0 0; }
  .lang { order: 0; flex-direction: column; gap: 6px; margin: 0 0 22px; font-size: 10px; }
  .lang__sep { width: 1px; height: 10px; }
  .rail__edition { display: block; margin-top: 52px; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
  .rail__name { order: 0; writing-mode: vertical-rl; transform: rotate(180deg); margin-top: auto; margin-bottom: auto; font-size: 13px; letter-spacing: .04em; }
  .rail__name sup { vertical-align: baseline; position: relative; top: -.1em; }
  .rail__copy { display: block; margin-bottom: 26px; font-size: 9px; letter-spacing: .06em; opacity: .85; }
}

/* =========================================================
   MENU
   ========================================================= */
.menu {
  position: fixed; inset: 0; z-index: 105;
  background: #121110; color: var(--cream);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 104px 20px 32px;
  visibility: hidden; pointer-events: none;
  clip-path: inset(0 100% 0 0);
}
.is-menu-open .menu { visibility: visible; pointer-events: auto; }
.no-gsap.is-menu-open .menu { clip-path: none; }
.menu__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(.6 * var(--scale)); }
.menu__list a { display: flex; align-items: flex-start; gap: calc(1.2 * var(--scale)); color: rgba(243, 238, 232, .26); transition: color .6s var(--e-out); }
.menu__list a.is-active, .menu__list a:hover, .menu__list a:focus-visible { color: var(--cream); }
.menu__num { flex: none; width: calc(4.6 * var(--scale)); padding-top: .55em; font-family: var(--serif); font-size: calc(2 * var(--scale)); line-height: 1; }
.menu__word { display: block; overflow: hidden; padding-top: .18em; margin-top: -.12em; font-family: var(--serif); text-transform: uppercase; font-size: calc(5.2 * var(--scale)); line-height: .9; letter-spacing: -.02em; white-space: nowrap; }
.menu__char { display: inline-block; will-change: transform; }
.menu__list a:hover .menu__char { animation: menuWave .9s var(--e-out); }
.menu__close { display: none; }
.menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: rgba(243, 238, 232, .7); }
.menu__foot a { align-self: flex-start; }
@keyframes menuWave { 0% { transform: translateY(0); } 40% { transform: translateY(-6%); } 100% { transform: translateY(0); } }

@media (min-width: 768px) {
  .menu { padding: var(--vg) 64px var(--vg) calc(var(--rail) + 4.2 * var(--scale)); justify-content: center; }
  .menu__list { gap: 0; }
  .menu__num { width: calc(6 * var(--scale)); font-size: min(calc(3.4 * var(--scale)), 5vh); padding-top: .55em; }
  .menu__word { font-size: min(calc(11 * var(--scale)), 15.5vh); line-height: .96; }
  .menu__close { display: block; position: absolute; top: var(--vg); right: 64px; font-family: var(--serif); font-size: calc(2.6 * var(--scale)); text-transform: uppercase; line-height: 1; color: var(--cream); }
  .menu__foot { position: absolute; right: 64px; bottom: var(--vg); margin: 0; flex-direction: row; gap: calc(3 * var(--scale)); font-size: 14px; }
}

/* =========================================================
   LOADER
   ========================================================= */
.loader { display: none; }
.js .loader {
  display: block;
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink-2); color: var(--cream);
  overflow: hidden;
}
.loader__year { position: absolute; left: 20px; right: 20px; bottom: 32px; overflow: hidden; z-index: 2; }
.loader__year-row { display: flex; height: 1em; width: max-content; font-family: var(--serif); font-size: calc(8.4 * var(--scale)); line-height: 1; font-variant-numeric: tabular-nums; }
.loader__year-row > .mask { padding: 0; margin: 0; height: 1em; display: flex; align-items: center; }
.loader__prefix { display: block; white-space: nowrap; }
.loader__strip-mask { display: block; height: 1em; overflow: hidden; }
.loader__strip { display: block; }
.loader__cell { display: flex; height: 1em; align-items: center; line-height: 1; }
.loader__cell .mask { padding: 0; margin: 0; height: 1em; display: flex; align-items: center; }
.loader__place { display: none; }
.loader__journey { position: absolute; left: 20px; right: 20px; top: calc(8.4 * var(--scale)); font-size: calc(1.8 * var(--scale)); line-height: 1.2; z-index: 1; }
.loader__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: rgba(243, 238, 232, .55); transform: scaleX(0); transform-origin: 0 50%; z-index: 3; }

@media (min-width: 768px) {
  .loader__year { left: 128px; right: auto; top: var(--vg); bottom: auto; }
  .loader__year-row { font-size: calc(18.1 * var(--scale)); }
  .loader__place { display: block; position: absolute; left: 128px; bottom: var(--vg); font-size: 16px; line-height: 1.4; color: rgba(250, 249, 246, .85); z-index: 1; }
  .loader__place .mask { display: block; }
  .loader__journey { left: auto; right: 64px; top: auto; bottom: var(--vg); font-size: var(--cta-fs); white-space: nowrap; text-align: right; }
}

/* =========================================================
   STORY — piste horizontale
   ========================================================= */
.story__pin { position: relative; width: 100%; }
.story__track { display: flex; flex-direction: column; width: 100%; }
.panel { position: relative; width: 100%; flex-shrink: 0; overflow: hidden; }

@media (min-width: 768px) {
  .story__pin { height: 100vh; height: 100dvh; overflow: hidden; }
  .story__track { flex-direction: row; flex-wrap: nowrap; width: max-content; height: 100%; will-change: transform; }
  .panel { width: 100vw; height: 100%; }
}

/* =========================================================
   SLIDE 1 — HERO (DA Isaiah Carter)
   ========================================================= */
.hero { background: var(--ink); color: var(--cream); height: 100vh; height: 100svh; min-height: 560px; }
.hero__inner { position: absolute; inset: 0; }

.hero__media { position: absolute; left: 0; top: 64px; width: 100%; height: 56%; overflow: hidden; }
.hero__video {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  background: var(--ink);
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
}

.hero__meta { position: absolute; font-size: 13px; line-height: 1.3; color: rgba(243, 238, 232, .6); }
.hero__meta--l, .hero__meta--c { display: none; }
.hero__meta--r { display: none; }

.hero__title {
  position: absolute; left: 20px; right: 20px; bottom: calc(15 * var(--scale));
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: calc(4.6 * var(--scale)); line-height: 1; letter-spacing: -.025em;
  color: var(--cream);
}
.hero__line { display: flex; white-space: nowrap; }
.hero__line--2 { margin-left: calc(3 * var(--scale)); }
.hero__line--3 { margin-left: calc(.8 * var(--scale)); }
.hero__gap { display: inline-block; width: calc(.9 * var(--scale)); }
.up { font-style: normal; }
.hero__line--3 .up { letter-spacing: -.035em; }
.hero__line--3 em { font-style: italic; }

/* Bouton pilule */
.pill {
  position: absolute; left: 20px; bottom: calc(6.4 * var(--scale));
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--cream);
  transition: color .5s var(--e-out);
}
.pill__stroke { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.pill__base { fill: none; stroke: rgba(243, 238, 232, .5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pill__glint { fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 16 84; stroke-dashoffset: 0; animation: glint 7s linear infinite; opacity: .9; }
@keyframes glint { to { stroke-dashoffset: -100; } }
.pill__fill { position: absolute; inset: -1px; z-index: 0; background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: translateY(102%); transition: transform .7s var(--e-out), border-radius .7s var(--e-out); }
.pill__label { position: relative; z-index: 1; display: grid; height: 1.25em; overflow: hidden; line-height: 1.25; }
.pill__t { grid-area: 1 / 1; display: block; transition: transform .7s var(--e-out); }
.pill__t + .pill__t { transform: translateY(105%); }
@media (hover: hover) {
  .pill:hover { color: var(--ink); }
  .pill:hover .pill__fill { transform: translateY(0); border-radius: 0; }
  .pill:hover .pill__t { transform: translateY(-105%); }
  .pill:hover .pill__t + .pill__t { transform: translateY(0); }
}
.pill:focus-visible { outline: 1px solid var(--cream); outline-offset: 4px; }

.hero__scroll { position: absolute; right: 20px; bottom: calc(6.4 * var(--scale) + 16px); font-family: var(--serif); font-size: 18px; text-transform: uppercase; letter-spacing: .02em; color: rgba(250, 249, 246, .8); }

@media (min-width: 768px) {
  .hero { height: 100%; min-height: 0; }

  /* Vidéo 16:9 plus grande, fondu au noir doux : le visage garde de l'air autour */
  .hero__media { --w: min(68vw, 120vh); left: calc(24vw - var(--w) / 2); top: 50%; width: var(--w); height: auto; aspect-ratio: 16 / 9; transform: translateY(-47%); overflow: visible; }
  .hero__video {
    object-fit: contain;
    -webkit-mask-image: radial-gradient(ellipse 46% 66% at 50% 46%, #000 58%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 16%, #000 74%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: radial-gradient(ellipse 46% 66% at 50% 46%, #000 58%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 16%, #000 74%, transparent 100%);
            mask-composite: intersect;
  }

  .hero__meta { top: var(--vg); font-size: calc(1.3 * var(--scale)); }
  .hero__meta--l { display: block; left: 10.6vw; }
  .hero__meta--c { display: block; left: 40.8vw; width: 24.6vw; }
  .hero__meta--r { display: block; left: 77.7vw; }

  .hero__title {
    left: 44vw; right: auto; bottom: auto; top: 28.6%;
    font-size: calc(8.6 * var(--scale)); line-height: .985;
  }
  .hero__line--2 { margin-left: 9.4vw; }
  .hero__line--3 { margin-left: 2.6vw; }
  .hero__gap { width: 1.5vw; }

  .pill {
    left: 64vw; bottom: auto; top: calc(28.6% + 2 * 8.6 * .985 * var(--scale) + 3.4 * var(--scale));
    transform: translateX(-50%);
    height: calc(6.6 * var(--scale)); padding: 0 calc(4.6 * var(--scale));
    font-size: calc(1.3 * var(--scale));
  }


  .hero__scroll { right: 64px; bottom: var(--vg); font-size: calc(2.4 * var(--scale)); line-height: 1; }
}

/* =========================================================
   SLIDE 2 — CHAPITRE I (structure Khanh Nguyen)
   ========================================================= */
.about { background: var(--paper); color: var(--paper-ink); }
.about__inner { position: relative; display: flex; flex-direction: column; gap: 48px; padding: 120px 20px 56px; }
.about__chapter { font-family: var(--serif); font-size: 18px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.about__col { display: flex; flex-direction: column; gap: 48px; }
.about__bottom { display: flex; flex-direction: column; gap: 48px; }
.about__aside { display: flex; flex-direction: column; gap: 48px; }
.about__group { display: flex; flex-direction: column; gap: 20px; }
.about__label { font-size: calc(1.1 * var(--scale)); text-transform: uppercase; line-height: 1.2; letter-spacing: .01em; }
.about__intro { font-size: 24px; line-height: 1.3; font-weight: 500; letter-spacing: -.012em; }
.about__link { display: inline-flex; align-self: flex-start; font-size: 18px; font-weight: 500; line-height: 1.2; }
.about__link .mask__i { display: inline-flex; align-items: center; gap: 8px; }
.about__portrait { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; }
.about__veil { position: absolute; inset: 0; z-index: 5; background: var(--veil); clip-path: inset(0 100% 0 0); pointer-events: none; }
.about__img { position: relative; z-index: 10; width: 100%; height: 100%; overflow: hidden; }
.about__img picture, .about__img img { width: 100%; height: 100%; }
.about__img img { object-fit: cover; object-position: 50% 100%; }
.about__traits { font-size: 16px; line-height: 1.4; }
.about__traits .mask { display: block; }

/* Soulignement animé */
.ulink { position: relative; }
.ulink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .7s var(--e-out); }
@media (hover: hover) { .ulink:hover::after { transform: scaleX(1); transform-origin: left; } }
.ulink svg { transition: transform .6s var(--e-out); }
.ulink:hover svg { transform: translateX(4px); }

@media (min-width: 768px) {
  .about__inner { position: absolute; inset: 0; display: block; padding: 0; }
  .about__chapter { position: absolute; left: 128px; top: var(--vg); font-size: 24px; }
  /* Colonne droite en flex : le texte d'intro pousse le bloc du bas, plus de chevauchement */
  .about__col { position: absolute; top: var(--vg); bottom: var(--vg); right: 64px; width: calc(61.4 * var(--scale)); gap: calc(3.2 * var(--scale)); z-index: 10; }
  .about__group { flex: none; }
  .about__bottom { flex: 1 1 auto; min-height: 0; max-height: var(--portrait-h); margin-top: auto; flex-direction: row; justify-content: space-between; gap: calc(3 * var(--scale)); }
  .about__aside { flex: 1 1 auto; justify-content: space-between; gap: calc(2 * var(--scale)); min-width: 0; }
  .about__intro { font-size: var(--display-fs); }
  .about__link { font-size: var(--cta-fs); }
  .about__portrait { flex: none; height: 100%; width: auto; max-width: var(--portrait-w); aspect-ratio: 294 / 392; }
  .about__link { margin-top: auto; }
  .about__traits { position: absolute; left: 128px; bottom: var(--vg); max-width: calc(29.4 * var(--scale)); }
}


/* =========================================================
   SLIDE 3 — MON EXPÉRIENCE
   Le rectangle a la taille de l'écran ; il part de scale(0)
   depuis l'espace entre les deux mots et finit à scale(1).
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xp { background: var(--paper); color: var(--paper-ink); height: 100vh; height: 100svh; }
.xp__words { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; pointer-events: none; }
.xp__word { font-family: var(--serif); font-size: calc(7 * var(--scale)); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; will-change: transform; white-space: nowrap; }
.xp__rect { position: absolute; inset: 0; z-index: 10; overflow: hidden; background: #e7e2db; transform: scale(0); pointer-events: none; }
.xp__rect.is-open { pointer-events: auto; }

.xp__grid {
  position: absolute; inset: 0;
  display: grid; gap: 8px; padding: 72px 8px 8px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, minmax(0, 1fr)) 72px;
  grid-template-areas: "intro video" "p1 p2" "p3 p4" "film f1" "contact contact";
}
.tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 12px; }
.tile--f2 { display: none; }
.tile__cover { position: absolute; inset: 0; z-index: 1; }
.tile--contact .tile__links a { position: relative; z-index: 2; }
.tile--contact { display: flex; background: var(--cream); color: var(--ink); justify-content: space-between; }
/* Mobile : tuile contact en bandeau, titre à gauche, liens à droite */
.tile--contact { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
.tile--contact .tile__chapter { display: none; }
.tile--contact .tile__big { font-size: 22px; flex: none; }
.tile--contact .tile__links { align-items: flex-end; gap: 4px; font-size: 11px; min-width: 0; }
.tile--contact .tile__links a { max-width: 100%; overflow-wrap: anywhere; text-align: right; }
.tile__links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; }
.tile__links i { font-style: normal; }

.tile--intro { background: var(--paper-ink); color: var(--paper); justify-content: space-between; }
.tile__chapter { font-family: var(--serif); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; opacity: .85; }
.tile__big { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1; letter-spacing: -.02em; }
.tile__small { font-size: 10px; line-height: 1.35; opacity: .7; }

.tile--play { background: #141210; color: var(--cream); justify-content: space-between; transition: background-color .6s var(--e-out); }
.tile__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.tile__year { font-family: var(--serif); font-size: 16px; letter-spacing: 0; text-transform: none; }
.tile__cat { opacity: .65; text-align: right; }
.tile__body { display: flex; align-items: flex-end; gap: 10px; min-height: 0; }
.tile__poster { display: none; }
.tile__text { min-width: 0; }
.tile__title { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.02; letter-spacing: -.01em; }
.tile__meta { margin-top: 6px; font-size: 10px; line-height: 1.35; opacity: .72; }
.tile__go { display: none; }

.tile--paper { background: var(--paper); color: var(--paper-ink); justify-content: space-between; }
.tile--paper .tile__title { font-style: normal; }
.tile--paper .tile__meta { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.tile--video { padding: 0; background: #090909; }
.tile--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.tile__caption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; color: var(--cream); }


@media (hover: hover) {
  .tile--play:hover { background: #1f1c19; }
  .tile--play:hover .tile__poster { transform: translateY(-4px) rotate(-1.5deg); }
  .tile--play:hover .tile__go i { transform: translate(3px, -3px); }
}

@media (min-width: 768px) {
  .xp { height: 100%; }
  .xp__words { flex-direction: row; gap: 32px; }
  .xp__word { font-size: calc(11.4 * var(--scale)); line-height: .9; }

  .xp__grid {
    gap: 10px; padding: 10px 10px 10px calc(var(--rail) + 10px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-template-areas: "intro p1 video video" "p2 p3 p4 film" "f1 f2 contact contact";
  }
  .tile { padding: calc(1.8 * var(--scale)); }
  .tile--contact { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: calc(1.8 * var(--scale)); }
  .tile--contact .tile__chapter { display: block; }
  .tile--contact .tile__links { align-items: flex-start; }
  .tile--contact .tile__links a { text-align: left; }
  .tile--f2 { display: flex; }
  .tile--contact .tile__big { font-size: calc(5.4 * var(--scale)); }
  .tile--contact .tile__links { flex-direction: row; gap: calc(3 * var(--scale)); }
  .tile__links { font-size: calc(1.3 * var(--scale)); gap: calc(.8 * var(--scale)); }
  .tile__chapter { font-size: calc(1.6 * var(--scale)); }
  .tile__big { font-size: calc(4.4 * var(--scale)); }
  .tile__small { font-size: calc(1.2 * var(--scale)); max-width: 26ch; }
  .tile__top { font-size: calc(1.05 * var(--scale)); }
  .tile__year { font-size: calc(2.2 * var(--scale)); }
  .tile__body { gap: calc(1.6 * var(--scale)); flex: 1 1 auto; align-items: flex-end; padding: calc(1.2 * var(--scale)) 0; }
  .tile__poster { display: block; flex: none; width: auto; height: min(100%, calc(14 * var(--scale))); aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .8s var(--e-out); }
  .tile__title { font-size: calc(2.5 * var(--scale)); }
  .tile__meta { font-size: calc(1.2 * var(--scale)); }
  .tile__go { display: inline-flex; gap: 6px; align-items: center; font-size: calc(1.1 * var(--scale)); text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
  .tile__go i { font-style: normal; display: inline-block; transition: transform .6s var(--e-out); }
  .tile--paper .tile__title { font-size: calc(3 * var(--scale)); margin-top: auto; }
  .tile--paper .tile__meta { margin-top: calc(1.2 * var(--scale)); }
  .tile__caption { left: calc(1.8 * var(--scale)); right: calc(1.8 * var(--scale)); bottom: calc(1.6 * var(--scale)); font-size: calc(1.1 * var(--scale)); }
}

/* =========================================================
   GRAIN
   ========================================================= */
.grain { position: fixed; inset: -50%; z-index: 300; 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 .9 0'/%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(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .pill__glint { animation: none; }
  .js .loader { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* =========================================================
   CURSEUR (cercle fin qui s'agrandit sur les éléments interactifs)
   ========================================================= */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor * { cursor: none !important; }
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .4s ease-out; }
  .cursor.is-visible { opacity: 1; }
  .cursor__ring, .cursor__dot { position: absolute; left: 0; top: 0; border-radius: 50%; }
  .cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid #fff; transition: width .55s var(--e-out), height .55s var(--e-out), margin .55s var(--e-out), border-color .4s; }
  .cursor__dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: #fff; transition: transform .45s var(--e-out); }
  .cursor.is-hover .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .cursor.is-hover .cursor__dot { transform: scale(0); }
  .cursor.is-down .cursor__ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
}

/* =========================================================
   MOBILE — affiche en fond de tuile, sous un voile sombre
   ========================================================= */
@media (max-width: 767px) {
  .tile--play { isolation: isolate; }
  .tile--play .tile__poster {
    display: block; position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  }
  .tile--play::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(9,9,9,.6) 0%, rgba(9,9,9,.55) 45%, rgba(9,9,9,.9) 100%);
  }
  /* Affiches basse définition : affichées en entier plutôt que zoomées */
  .tile--contain .tile__poster { object-fit: contain; object-position: 50% 30%; opacity: .62; }
  .tile--contain::before { background: linear-gradient(180deg, rgba(9,9,9,.35) 0%, rgba(9,9,9,.5) 50%, rgba(9,9,9,.92) 100%); }
}
