:root {
  --blood: #f2001d;
  --blood-hi: #ff2a3d;
  --glow: 255, 20, 45;
  --black: #0a0a0a;
  --ink: #141414;
  --line: #2a2a2a;
  --paper: #f2ede6;
  --muted: #8a8580;
  --gut: clamp(16px, 2.2vw, 32px);
  --tl-h: 132px;
}

/* Polices hébergées sur le site (sous-ensemble latin, pas d'appel à Google) */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
}

* { box-sizing: border-box; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html, body { height: 100%; }
body {
  background: var(--black);
  color: var(--paper);
  font-family: 'Archivo', system-ui, sans-serif;
  font-variation-settings: 'wght' 400, 'wdth' 100;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; }
[hidden] { display: none !important; }

/* Texte à graisse variable, animé via des variables CSS */
.var { font-variation-settings: 'wght' var(--wght, 900), 'wdth' var(--wdth, 100); }
.ch { display: inline-block; font-variation-settings: 'wght' var(--wght, 900), 'wdth' var(--wdth, 100); white-space: pre; }

/* ---------- Intro ---------- */
#intro {
  position: fixed; inset: 0; z-index: 100; background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.intro-word { font-size: clamp(64px, 16vw, 260px); line-height: .85; text-transform: uppercase; letter-spacing: -.02em; }
.intro-tc { color: var(--blood-hi); font-size: 13px; text-shadow: 0 0 12px rgba(var(--glow), .9); }
.intro-word .ch { text-shadow: 0 0 40px rgba(255,255,255,.18); }
.intro-wipe { position: absolute; inset: 0; background: var(--blood); transform: scaleY(0); transform-origin: bottom; }
.intro-tag { text-align: center; padding: 0 16px; }
.intro-kicker { color: var(--muted); margin-bottom: 14px; }
.intro-line { overflow: hidden; font-size: clamp(20px, 2.7vw, 42px); line-height: 1.12; letter-spacing: -.01em; font-variation-settings: 'wght' 250, 'wdth' 100; }
.intro-line span { display: inline-block; }
.intro-line b { font-weight: inherit; font-variation-settings: 'wght' var(--wght, 900), 'wdth' 100; color: var(--blood-hi); text-shadow: 0 0 22px rgba(var(--glow), .7); }
body:not(.is-intro) #intro { display: none; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(var(--gut) * .8) calc(var(--gut) * 1.6);
  mix-blend-mode: difference;
}
.logo { font-size: 15px; letter-spacing: .06em; }
.logo b { font-variation-settings: 'wght' 900, 'wdth' 100; }
.logo span { font-variation-settings: 'wght' 200, 'wdth' 100; transition: font-variation-settings .4s; }
.logo:hover span { font-variation-settings: 'wght' 900, 'wdth' 125; }
.hud-tc { font-size: 12px; color: #fff; }
.nav { justify-self: end; display: flex; gap: 22px; align-items: center; }
.nav button { font-size: 13px; letter-spacing: .04em; font-variation-settings: 'wght' 500, 'wdth' 100; transition: font-variation-settings .3s; }
.nav button:hover { font-variation-settings: 'wght' 900, 'wdth' 112; }
.nav #sound { font-size: 11px; border: 1px solid currentColor; padding: 5px 9px; border-radius: 2px; }

.corners i { position: fixed; z-index: 39; width: 18px; height: 18px; border: 0 solid var(--blood-hi); pointer-events: none; filter: drop-shadow(0 0 6px rgba(var(--glow), .9)); }
.corners i:nth-child(1) { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.corners i:nth-child(2) { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.corners i:nth-child(3) { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.corners i:nth-child(4) { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- Desktop ---------- */
#desk { position: fixed; inset: 0; }
.desk-inner { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; transform-origin: 0 0; }
.stage { position: relative; overflow: hidden; }
.title {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; text-transform: uppercase; line-height: .82; letter-spacing: -.035em;
  white-space: nowrap; pointer-events: none; user-select: none;
}
.title--fill { z-index: 1; color: var(--blood); text-shadow: 0 0 30px rgba(var(--glow), .55), 0 0 110px rgba(var(--glow), .35); }
.title--stroke { z-index: 3; color: transparent; -webkit-text-stroke: 1.5px var(--paper); opacity: .4; }
.screen {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #000; overflow: hidden; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(var(--glow), .45), 0 0 50px 4px rgba(var(--glow), .38), 0 0 140px 30px rgba(var(--glow), .16);
}
/* lignes de balayage sur l'écran */
.screen::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.07) 2px 3px);
}
/* halo rouge qui respire derrière l'écran */
.halo {
  position: absolute; z-index: 0; left: 50%; top: 50%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--glow), .32), rgba(var(--glow), .08) 60%, transparent);
  pointer-events: none; animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .55; } }
/* vignettage */
.stage::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.7)); }

/* grain de film sur tout le site */
.grain {
  position: fixed; inset: -12%; z-index: 150; pointer-events: none; opacity: .14;
  background: url(../img/grain.png) repeat; background-size: 180px;
  will-change: transform; animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); } 17% { transform: translate3d(-6%, 4%, 0); } 33% { transform: translate3d(5%, -7%, 0); }
  50% { transform: translate3d(-3%, 9%, 0); } 67% { transform: translate3d(8%, 2%, 0); } 83% { transform: translate3d(-9%, -4%, 0); } 100% { transform: translate3d(0, 0, 0); }
}
.vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.vid.is-front { opacity: 1; }
.vid--scrub { z-index: 2; opacity: 0; }
.screen.is-scrubbing .vid--scrub { opacity: 1; }
.screen-wipe { position: absolute; inset: 0; z-index: 3; background: var(--blood); transform: scaleX(0); transform-origin: left; }

.meta {
  position: absolute; z-index: 4; left: calc(var(--gut) * 1.6); bottom: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.meta-idx { color: var(--blood-hi); text-shadow: 0 0 10px rgba(var(--glow), .8); }
.meta-type { font-size: clamp(18px, 2vw, 28px); font-variation-settings: 'wght' 300, 'wdth' 100; line-height: 1; }
.meta-type b { font-variation-settings: 'wght' 900, 'wdth' 100; }
.meta-year { color: var(--muted); }
.keys { position: absolute; z-index: 4; right: calc(var(--gut) * 1.6); bottom: 22px; color: var(--muted); }

/* Timeline */
.timeline {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: 168px 1fr; border-top: 1px solid var(--line);
  background: linear-gradient(#151515, #0e0e0e); padding: 0 calc(var(--gut) * 1.6) 14px 0; user-select: none;
}
.tl-head, .tl-area { display: grid; grid-template-rows: 24px repeat(var(--tracks, 3), var(--row, 34px)) 22px; }
.tl-head { border-right: 1px solid var(--line); color: var(--muted); }
.tl-head > div { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 calc(var(--gut) * 1.6); }
.th-ruler { justify-content: space-between; }
.th-ruler button { color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.th-ruler button:hover { color: var(--paper); }
.eye {
  font-size: 10px; min-width: 30px; padding: 3px 0; border: 1px solid rgba(var(--glow), .7); border-radius: 2px; color: #fff;
  background: rgba(var(--glow), .18); box-shadow: 0 0 10px rgba(var(--glow), .35); transition: all .2s;
}
.eye[aria-pressed="false"] { background: none; border-color: #333; color: #555; box-shadow: none; text-decoration: line-through; }
.th-track span { font-size: 10px; color: var(--paper); }
.th-track.is-off span { color: #555; }
.tl-area { position: relative; touch-action: none; cursor: ew-resize; }
.row { position: relative; margin: 3px 0; border-radius: 3px; transition: background .3s; }
.row.is-off { background: repeating-linear-gradient(45deg, #171717 0 6px, #111 6px 12px); }
.row.is-target { background: rgba(var(--glow), .08); box-shadow: inset 0 0 0 1px rgba(var(--glow), .35); }
.clip.is-off, .wave.is-off { display: none; }
.clip { cursor: grab; touch-action: none; }
.clip.is-dragging {
  z-index: 20; filter: none; cursor: grabbing; opacity: .92;
  box-shadow: 0 12px 30px rgba(0,0,0,.7), 0 0 26px rgba(var(--glow), .9);
}
.insert-marker {
  position: absolute; z-index: 21; width: 3px; margin-left: -1px; border-radius: 2px; background: #fff; display: none; pointer-events: none;
  box-shadow: 0 0 12px #fff, 0 0 24px rgba(var(--glow), 1);
}
.ruler { position: relative; color: var(--muted); font-size: 10px; }
.ruler i { position: absolute; bottom: 0; width: 1px; height: 5px; background: var(--line); }
.ruler i.big { height: 10px; background: #555; }
.ruler b { position: absolute; top: 4px; font-weight: 400; transform: translateX(3px); }
.track--audio { position: relative; }
.clip {
  position: absolute; top: 0; bottom: 0; border-radius: 3px; overflow: hidden;
  background: #3a0007 center / cover no-repeat; border: 1px solid #000;
  transition: filter .3s;
  filter: grayscale(1) brightness(.55);
}
.clip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--glow), .55), rgba(var(--glow), .12)); }
.clip span {
  position: absolute; z-index: 1; left: 7px; top: 6px; right: 4px; font-size: 11px; text-transform: uppercase;
  font-variation-settings: 'wght' 800, 'wdth' 80; white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.clip.is-active { filter: none; border-color: var(--blood-hi); box-shadow: 0 0 16px rgba(var(--glow), .75), 0 0 2px rgba(var(--glow), 1); z-index: 2; }
.clip.is-active::after { background: linear-gradient(90deg, rgba(var(--glow), .35), transparent); }
.clip:not(.is-active):hover { filter: grayscale(.3) brightness(.85); }
.wave { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; gap: 1px; overflow: hidden; border-radius: 2px; background: #1b1b1b; padding: 0 2px; }
.wave i { flex: 1; min-width: 1px; background: #5a1118; border-radius: 1px; }
.wave.is-active i { background: var(--blood-hi); box-shadow: 0 0 6px rgba(var(--glow), .8); }
.playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 0; z-index: 5; pointer-events: none; }
.playhead::before { content: ''; position: absolute; top: 14px; bottom: 0; left: -1px; width: 2px; background: var(--blood-hi); box-shadow: 0 0 10px rgba(var(--glow), 1), 0 0 24px rgba(var(--glow), .6); }
.playhead span {
  position: absolute; top: -2px; left: 0; background: var(--blood-hi); color: #fff;
  box-shadow: 0 0 16px rgba(var(--glow), .9);
  padding: 3px 6px; border-radius: 2px; font-size: 10px; white-space: nowrap;
}

/* ---------- Mobile : reels ---------- */
#reels { position: fixed; inset: 0; }
.reels-list { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.reels-list::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel.is-landscape video { object-fit: contain; }
.reel::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); pointer-events: none; }
.reel-info { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: calc(28px + env(safe-area-inset-bottom)); }
.reel-title { text-transform: uppercase; line-height: .84; letter-spacing: -.03em; color: var(--paper); white-space: nowrap; }
.reel-title .accent { color: var(--blood-hi); }
.reel-meta { display: flex; justify-content: space-between; margin-top: 10px; }
.reel-meta .mono:first-child { color: var(--blood-hi); text-shadow: 0 0 10px rgba(var(--glow), .8); }
.reel-title { text-shadow: 0 0 30px rgba(0,0,0,.5); }
.reels-progress i b { box-shadow: 0 0 10px rgba(var(--glow), .9); }
.reel-intro .reel-h span { text-shadow: 0 0 30px rgba(var(--glow), .6), 0 0 100px rgba(var(--glow), .35); }
.reel-hint { position: absolute; z-index: 2; right: 16px; top: 50%; color: rgba(255,255,255,.6); writing-mode: vertical-rl; }
.reels-progress {
  position: fixed; z-index: 41; left: 12px; right: 12px; top: calc(52px + env(safe-area-inset-top));
  display: flex; gap: 3px;
}
.reels-progress i { flex: 1; height: 3px; background: rgba(255,255,255,.22); border-radius: 2px; overflow: hidden; }
.reels-progress i b { display: block; height: 100%; width: 100%; background: var(--blood-hi); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.reels-progress i.done b { transform: scaleX(1); }
.reel-intro { display: flex; flex-direction: column; justify-content: center; padding: 0 16px; background: var(--black); }
.reel-intro::after { display: none; }
.reel-intro .reel-h { font-size: 23vw; line-height: .82; text-transform: uppercase; letter-spacing: -.03em; }
.reel-intro .reel-h span { color: var(--blood-hi); }
.reel-intro p { margin-top: 18px; font-size: 18px; max-width: 26ch; font-variation-settings: 'wght' 300, 'wdth' 100; }
.reel-intro .mono { margin-top: 28px; color: var(--muted); }

/* mobile : grille de tous les projets */
.reel-grid { position: fixed; inset: 0; z-index: 52; overflow-y: auto; overscroll-behavior: contain; padding: calc(70px + env(safe-area-inset-top)) 12px 40px; background: var(--black); }
.reel-grid > .viewer-close { position: fixed; }
.reel-more { margin-top: 16px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: rgba(0,0,0,.35); color: var(--paper); }
.reel-grid .st-kicker { margin: 0 4px 16px; }
.rg-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 16px; padding: 0 12px; }
.rg-filters::-webkit-scrollbar { display: none; }
.rg-filters button { flex: none; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--paper); transition: background .25s, border-color .25s; }
.rg-filters button sup { color: var(--muted); font-size: 9px; }
.rg-filters button.is-on { background: var(--blood); border-color: var(--blood); box-shadow: 0 0 18px rgba(var(--glow), .5); }
.rg-filters button.is-on sup { color: var(--paper); }
.rg-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
.rg-list li { min-width: 0; }
.rg-card { display: block; width: 100%; text-align: left; }
.rg-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--ink); }
.rg-client { display: block; margin-top: 8px; font-size: 17px; line-height: 1; text-transform: uppercase; letter-spacing: -.02em; font-variation-settings: 'wght' 900, 'wdth' 100; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-type { display: block; margin-top: 5px; font-size: 9px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-card:active img { outline: 2px solid var(--blood-hi); }

/* mobile : lecteur plein écran */
.viewer { position: fixed; inset: 0; z-index: 55; background: #000; }
.viewer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewer.is-landscape video { object-fit: contain; }
.viewer::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); pointer-events: none; }
.viewer .reel-title { white-space: nowrap; }
.viewer-close { position: absolute; z-index: 3; top: calc(16px + env(safe-area-inset-top)); right: 16px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(0,0,0,.35); }
.viewer-nav { position: absolute; z-index: 3; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(0,0,0,.35); font-size: 26px; line-height: 1; }
.viewer-prev { left: 8px; }
.viewer-next { right: 8px; }

@media (max-width: 899px), (pointer: coarse) {
  .hud { grid-template-columns: auto 1fr; padding: 16px 18px; gap: 10px; }
  .hud-tc { display: none; }
  .logo { font-size: 12px; letter-spacing: .03em; }
  .nav { gap: 12px; }
  .nav button { font-size: 11px; }
  .nav #sound { font-size: 10px; padding: 4px 6px; }
  .corners i { width: 12px; height: 12px; }
}

/* ---------- Panneaux ---------- */
.panel {
  position: fixed; inset: 0; z-index: 60; color: var(--paper);
  background: radial-gradient(ellipse at 20% 0%, #ff2a3d, transparent 60%), radial-gradient(ellipse at 100% 100%, #8f0011, transparent 55%), var(--blood);
  clip-path: inset(0 0 0 100%); visibility: hidden; overflow-y: auto;
}
.panel.is-open { visibility: visible; }
.panel-close { position: absolute; top: 22px; right: calc(var(--gut) * 1.6); font-size: 12px; }
.panel-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 90px calc(var(--gut) * 1.6) 80px; max-width: 1400px; }
#panel-about .panel-inner { justify-content: flex-start; padding-top: 120px; }
.panel-kicker { margin-bottom: 18px; }
.panel-title { max-width: 18ch; font-size: clamp(32px, 4.4vw, 72px); line-height: .95; text-transform: uppercase; letter-spacing: -.03em; font-variation-settings: 'wght' 900, 'wdth' 100; }
.panel-title em { font-style: normal; display: block; font-variation-settings: 'wght' 150, 'wdth' 100; }
.panel-text { margin-top: 32px; max-width: 44ch; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.45; }
.panel-list { list-style: none; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.panel-list li { border: 1px solid rgba(255,255,255,.6); padding: 8px 12px; border-radius: 2px; }
.panel-mail { display: inline-block; margin-top: 36px; font-size: clamp(26px, 5vw, 84px); font-variation-settings: 'wght' 300, 'wdth' 100; border-bottom: 3px solid currentColor; transition: font-variation-settings .4s; word-break: break-all; }
.panel-mail:hover { font-variation-settings: 'wght' 900, 'wdth' 100; }

.panel-sub { margin: 64px 0 18px; font-size: 11px; font-weight: 400; color: rgba(255,255,255,.75); }
.panel-note { margin-top: 22px; max-width: 60ch; font-size: 15px; line-height: 1.5; opacity: .85; }
.stats { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid rgba(255,255,255,.35); }
.stats div { padding: 18px 18px 18px 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.stats b { display: block; font-size: clamp(28px, 3.4vw, 52px); line-height: .95; letter-spacing: -.02em; font-variation-settings: 'wght' 900, 'wdth' 100; transition: font-variation-settings .4s; }
.stats div:hover b { font-variation-settings: 'wght' 200, 'wdth' 125; }
.stats span { display: block; margin-top: 8px; }
.services { list-style: none; border-top: 1px solid rgba(255,255,255,.35); }
.services li { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.35); align-items: baseline; }
.services b { font-size: clamp(22px, 2.6vw, 40px); text-transform: uppercase; letter-spacing: -.02em; line-height: 1; font-variation-settings: 'wght' 900, 'wdth' 100; transition: font-variation-settings .4s; }
.services li:hover b { font-variation-settings: 'wght' 150, 'wdth' 100; }
.services span { font-size: 16px; line-height: 1.45; }
.marquee { overflow: hidden; margin: 0 calc(var(--gut) * -1.6); border-block: 1px solid rgba(255,255,255,.35); }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { padding: 14px 28px; font-size: clamp(32px, 5vw, 80px); text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }
.marquee-track span:nth-child(odd) { font-variation-settings: 'wght' 900, 'wdth' 100; }
.marquee-track span:nth-child(even) { font-variation-settings: 'wght' 150, 'wdth' 100; color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
@keyframes marquee { to { transform: translateX(-50%); } }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quotes blockquote { border-left: 3px solid var(--paper); padding-left: 18px; }
.quotes p { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.35; font-variation-settings: 'wght' 500, 'wdth' 100; }
.quotes cite { display: block; margin-top: 12px; font-style: normal; }
@media (max-width: 899px) {
  .services li { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Dézoom au scroll (desktop) ---------- */
html.is-desk, html.is-desk body { height: auto; }
html.is-desk body { overflow: visible; overflow-x: clip; }
html.is-desk body.is-intro { overflow: hidden; }
html.is-desk .studio { margin-top: 157vh; }
html.is-desk #desk {
  --z: 0; z-index: 1; overflow: hidden; background: var(--black); transform-origin: 50% 0; will-change: transform;
  border-radius: calc(var(--z) * 22px);
  box-shadow: 0 0 0 calc(var(--z) * 3px) rgba(var(--glow), calc(var(--z) * .9)), 0 0 calc(var(--z) * 120px) calc(var(--z) * 10px) rgba(var(--glow), calc(var(--z) * .45));
}
.desk-shield { position: absolute; inset: 0; z-index: 40; display: none; }
#desk.is-zoomed .desk-shield { display: block; }
#desk.is-zoomed .keys { opacity: 0; }

/* ---------- Le studio : chiffres et clients ---------- */
.studio { position: relative; z-index: 2; padding: 0 calc(var(--gut) * 1.6) 60px; }
.st-block { padding: 7vh 0; }
.st-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--muted); font-weight: 400; text-transform: uppercase; }
.st-kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--blood-hi); box-shadow: 0 0 12px rgba(var(--glow), 1); animation: rec 1.2s steps(2) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.st-manifesto { padding-top: 0; }
.st-manifesto .st-kicker { margin-bottom: 18px; }
.manifesto { max-width: 30ch; font-size: clamp(22px, 2.7vw, 46px); line-height: 1.15; letter-spacing: -.025em; font-variation-settings: 'wght' 300, 'wdth' 100; }
.manifesto b { font-weight: inherit; font-variation-settings: 'wght' 900, 'wdth' 100; }
.manifesto .mw { opacity: .14; transition: opacity .15s linear; }
.manifesto b .mw.is-on { color: var(--blood); text-shadow: 0 0 26px rgba(var(--glow), .6); }
.st-nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.num { position: relative; padding: 26px 22px 30px 0; border-bottom: 1px solid var(--line); }
.num:not(:last-child) { border-right: 1px solid var(--line); }
.num:not(:first-child) { padding-left: 22px; }
.num b {
  display: flex; align-items: flex-start; font-size: clamp(52px, 6.4vw, 124px); line-height: .85; letter-spacing: -.04em;
  font-variation-settings: 'wght' var(--wght, 900), 'wdth' var(--wdth, 84); color: var(--blood);
  text-shadow: 0 0 28px rgba(var(--glow), .55), 0 0 90px rgba(var(--glow), .3); font-variant-numeric: tabular-nums;
}
.num sup { font-size: .32em; line-height: 1; margin: .12em .06em 0; font-variation-settings: 'wght' 300, 'wdth' 100; color: var(--paper); text-shadow: none; }
.st-views { padding: 34px 0 30px; border-bottom: 1px solid var(--line); font-size: clamp(26px, 3.4vw, 62px); line-height: 1.02; letter-spacing: -.03em; text-transform: uppercase; font-variation-settings: 'wght' 200, 'wdth' 100; }
.st-views b { font-weight: inherit; font-variation-settings: 'wght' 900, 'wdth' 100; color: var(--blood); text-shadow: 0 0 28px rgba(var(--glow), .55), 0 0 90px rgba(var(--glow), .3); }
.num > span { display: block; margin-top: 16px; color: var(--paper); line-height: 1.5; }
.num:hover b { --wght: 200; --wdth: 125; transition: font-variation-settings .5s; }

.clients { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: .05em .5em; font-size: clamp(34px, 5.4vw, 98px); line-height: 1; text-transform: uppercase; letter-spacing: -.03em; }
.clients li { --wght: 900; font-variation-settings: 'wght' var(--wght), 'wdth' var(--wdth, 100); transition: color .3s, text-shadow .3s; }
.clients li:nth-child(even) { --wght: 160; color: transparent; -webkit-text-stroke: .8px var(--paper); }
.clients li::after { content: '·'; margin-left: .5em; color: var(--blood); -webkit-text-stroke: 0; }
.clients li:last-child::after { content: none; }
.clients li:hover { color: var(--blood-hi); -webkit-text-stroke: 0; text-shadow: 0 0 24px rgba(var(--glow), .8); }

.st-cta { border-top: 1px solid var(--line); }
.st-cta-title { font-size: clamp(40px, 6.2vw, 116px); line-height: .9; text-transform: uppercase; letter-spacing: -.035em; font-variation-settings: 'wght' 900, 'wdth' 100; }
.st-cta-title em { font-style: normal; color: var(--blood); font-variation-settings: 'wght' 150, 'wdth' 100; text-shadow: 0 0 40px rgba(var(--glow), .6); }
.st-cta .panel-mail { color: var(--paper); }
.st-foot { margin-top: 60px; color: var(--muted); }

/* sur mobile : dernière « page » des reels */
.reel-studio { height: auto; min-height: 100dvh; scroll-snap-align: start; scroll-snap-stop: normal; overflow: visible; margin-top: 0; padding: 90px 18px 40px; background: var(--black); }
.reel-studio::after { display: none; }
@media (max-width: 899px), (pointer: coarse) {
  .st-nums { grid-template-columns: 1fr 1fr; }
  .num, .num:not(:first-child) { padding: 18px 12px 20px; border-right: 0; }
  .num:nth-child(odd) { border-right: 1px solid var(--line); }
  .num:nth-child(odd) { padding-left: 0; }
  .num b { font-size: 15vw; }
  .st-views { font-size: 9vw; padding: 24px 0; }
  .num > span { font-size: 10px; }
  .clients { font-size: 9vw; }
  .st-block { padding: 40px 0; }
}

/* ---------- Curseur ---------- */
.cursor { position: fixed; z-index: 200; top: 0; left: 0; pointer-events: none; display: none; }
.cursor span {
  display: flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--blood-hi); color: #fff; box-shadow: 0 0 22px rgba(var(--glow), .85); font: 600 10px/1 'JetBrains Mono', monospace; letter-spacing: .06em;
  overflow: hidden; white-space: nowrap; transition: width .25s, height .25s, margin .25s;
}
.cursor.has-label span { width: 74px; height: 74px; margin: -37px 0 0 -37px; }
@media (pointer: fine) {
  .cursor { display: block; }
  body, button, a, .tl-area, .screen { cursor: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
