/* ══════════════════════════════════════════════════════
   KAROSHIBYXANU — Portfolio v2
   Nouvelle disposition narrative
   ══════════════════════════════════════════════════════ */

/* ── CUSTOM FONTS ── */
@font-face { font-family: 'Aestera';        font-display: swap; src: url('./fonts/Aestera.ttf') format('truetype'); }
@font-face { font-family: 'BrigendExp';     font-display: swap; src: url('./fonts/Brigends%20Expanded.otf') format('opentype'); }
@font-face { font-family: 'Heavytal';       font-display: swap; src: url('./fonts/Heavytal.ttf') format('truetype'); }
@font-face { font-family: 'Maytorm';        font-display: swap; src: url('./fonts/Maytorm-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Meltdown';       font-display: swap; src: url('./fonts/Meltdown.ttf') format('truetype'); }
@font-face { font-family: 'Merich';         font-display: swap; src: url('./fonts/Merich.otf') format('opentype'); }
@font-face { font-family: 'Milker';         font-display: swap; src: url('./fonts/Milker.otf') format('opentype'); }
@font-face { font-family: 'ScholarBlock';   font-display: swap; src: url('./fonts/Scholar%20Block.ttf') format('truetype'); }
@font-face { font-family: 'Technology';     font-display: swap; src: url('./fonts/Technology.ttf') format('truetype'); }
@font-face { font-family: 'TechnologyBold'; font-display: swap; src: url('./fonts/Technology-Bold.ttf') format('truetype'); }
@font-face { font-family: 'VipnagorBd';     font-display: swap; src: url('./fonts/Vipnagorgialla%20Bd.otf') format('opentype'); }
@font-face { font-family: 'VipnagorBdIt';   font-display: swap; src: url('./fonts/Vipnagorgialla%20Bd%20It.otf') format('opentype'); }
@font-face { font-family: 'VipnagorRg';     font-display: swap; src: url('./fonts/Vipnagorgialla%20Rg.otf') format('opentype'); }

/* ── ACCESSIBILITÉ — visually hidden (WCAG) ── */
.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;
}
/* ── SKIP LINK — visible au focus clavier ── */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 9999;
  background: var(--accent); color: #000;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .15em;
  padding: 8px 14px;
  transform: translateY(-80px);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ── VARIABLES ── */
:root {
  --bg:     #080808;
  --text:   #f0ece4;
  --accent: #c8a96e;
  --muted:  #888; /* was #444 — ratio 1.8:1 WCAG fail → now ~5.5:1 AA ✓ */
  --sec-pad: clamp(80px, 8vw, 110px);
  --f-disp:   'Bebas Neue', sans-serif;
  --f-impact: 'Anton', Impact, sans-serif;
  --f-ser:    'Cormorant Garamond', serif;
  --f-mono:   'Space Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--f-mono); overflow-x: hidden; cursor: none; }
a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; }
img { display: block; }

/* ── FONT CYCLE TRANSITION ── */
.contact-title { transition: font-family 0.3s ease; }

/* ══════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ══════════════════════════════════════════════════════ */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9998;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), rgba(200,169,110,.4));
  pointer-events: none;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(200,169,110,.5);
}

/* ══════════════════════════════════════════════════════
   GRAIN
   ══════════════════════════════════════════════════════ */
#grain {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  pointer-events: none; z-index: 200;
  opacity: 0.055; mix-blend-mode: screen;
  image-rendering: pixelated; /* garde le côté film 35mm */
}

/* ══════════════════════════════════════════════════════
   CURSOR
   ══════════════════════════════════════════════════════ */
#cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10001; }
.cursor-ring {
  width: 28px; height: 28px;
  background: rgba(240,236,228,0.95);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 69%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
  position: absolute;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: cursor-star-spin 8s linear infinite;
  transition: width .25s ease, height .25s ease, background .25s ease;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.9)) drop-shadow(0 0 6px rgba(200,169,110,0.4));
}
@keyframes cursor-star-spin {
  from { transform: translate(-50%, -50%) rotate(0deg);   }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.cursor-label {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--f-mono); font-size: 8px; letter-spacing: .12em;
  color: var(--bg); opacity: 0; transition: opacity .2s;
}
body.c-hover .cursor-ring { width: 48px; height: 48px; background: var(--text); animation: cursor-star-spin 2.5s linear infinite; }
body.c-hover .cursor-label { opacity: 1; }

/* ── SKIP FLASH — overlay cinématique ── */
#skip-flash {
  position: fixed; inset: 0; z-index: 10002;
  background: #fff; opacity: 0; pointer-events: none;
  transition: opacity 0.06s ease;
}

/* ══════════════════════════════════════════════════════
   ENTER GATE
   ══════════════════════════════════════════════════════ */
#enter-gate {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(8,8,8,.65);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
  cursor: pointer;
  transition: opacity .6s ease, visibility .6s ease;
}
#enter-gate.done {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.gate-title {
  font-family: var(--f-disp); font-size: clamp(28px, 6vw, 56px);
  letter-spacing: .4em; color: var(--text); opacity: .18;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(200,169,110,.15);
}
#enter-btn {
  font-family: var(--f-mono); font-size: 14px; letter-spacing: .35em;
  color: var(--accent); background: rgba(8,8,8,.5);
  border: 1px solid rgba(200,169,110,.4);
  padding: 18px 48px; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
  animation: gatePulse 2.5s ease-in-out infinite;
  position: relative; z-index: 2;
}
#enter-btn:hover {
  background: var(--accent); color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(200,169,110,.3);
}
@keyframes gatePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(200,169,110,.08); }
  50% { box-shadow: 0 0 25px rgba(200,169,110,.2); }
}
.gate-hint {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em;
  color: rgba(255,255,255,.25);
  position: relative; z-index: 2;
}

/* ══════════════════════════════════════════════════════
   INTRO VIDEO
   ══════════════════════════════════════════════════════ */
#intro-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .9s ease, visibility .9s ease;
}
#intro-screen.hidden {
  display: none;
}
#intro-screen.active {
  display: flex;
}
#intro-screen.done {
  opacity: 0; visibility: hidden; pointer-events: none;
}
#intro-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
#intro-skip {
  position: absolute; bottom: clamp(20px, 5vh, 50px); right: clamp(20px, 4vw, 50px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em;
  color: rgba(200,169,110,.65); border: 1px solid rgba(200,169,110,.35);
  background: transparent; cursor: pointer; padding: 10px 28px;
  z-index: 2;
  transition: color .2s, border-color .2s;
}
#intro-skip:hover { color: var(--accent); border-color: var(--accent); }

/* mobile — cibles tactiles agrandies + vidéo adaptée */
@media (max-width: 640px) {
  #enter-btn {
    font-size: 16px; padding: 20px 44px;
    min-height: 48px;
  }
  #intro-skip {
    font-size: 13px; padding: 14px 32px;
    bottom: 24px; right: 16px;
    min-height: 48px;
  }
  /* Vidéo intro : contain sur mobile portrait → vidéo entière visible (bandes noires) */
  #intro-video {
    object-fit: contain;
    object-position: center center;
    background: #000;
  }
}

/* ══════════════════════════════════════════════════════
   LOADING
   ══════════════════════════════════════════════════════ */
.loading {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: var(--bg); z-index: 9998;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; transition: opacity .8s ease, visibility .8s ease; overflow: hidden;
}
.loading.done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes flashPulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.55; }
}
.loading-flash {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: #1a1008;
  animation: flashPulse 0.85s ease-in-out infinite;
  pointer-events: none;
  will-change: background-image, opacity;
  transform: translateZ(0); /* force GPU layer */
}
.loading-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  background: radial-gradient(ellipse at center, rgba(8,8,8,0.15) 0%, rgba(8,8,8,0.55) 100%);
  pointer-events: none;
}
.loading-counter {
  display: none;
  font-family: 'VT323', monospace; font-size: clamp(80px, 14vw, 160px);
  color: var(--accent); letter-spacing: .08em; line-height: 1;
  text-shadow: 0 0 8px rgba(200,169,110,0.9), 0 0 20px rgba(200,169,110,0.5), 0 0 40px rgba(200,169,110,0.2);
  position: relative; z-index: 2;
  display: none;
}
.loading-label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .35em;
  color: var(--accent); opacity: .6; position: relative; z-index: 2;
  display: none;
}

/* ══════════════════════════════════════════════════════
   FIXED NAV
   ══════════════════════════════════════════════════════ */
.fixed-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; pointer-events: all;
}
.nav-brand {
  font-family: var(--f-disp); font-size: 18px; letter-spacing: .1em;
  color: var(--text); opacity: .45; transition: opacity .2s;
}
.nav-brand:hover { opacity: 1; }
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em;
  color: var(--text); opacity: .5; transition: opacity .2s, color .2s;
  /* WCAG 2.5.5 — zone tactile minimum 44×44px */
  padding: 12px 6px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }

/* ══════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════ */
.lightbox {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 200; background: #000;
  display: flex; flex-direction: column;
  opacity: 0; transform: scale(1.03);
  pointer-events: none;
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
}
.lightbox.open {
  opacity: 1; transform: scale(1);
  pointer-events: all;
}
.lb-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; overflow: hidden; }
.lb-panel {
  background-color: #0a0a0a; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease;
}
.lb-panel:first-child { transition-delay: .05s; }
.lb-panel:last-child  { transition-delay: .1s; }
.lb-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; color: transparent; }
video.lb-media { opacity: 0; transition: opacity .55s cubic-bezier(.4,0,.2,1); }

@media (max-width: 640px) {
  .lb-body { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .lb-panel { min-height: 0; }
  .lb-media { object-position: center center; }
}
.lb-close {
  position: absolute; top: 18px; right: 20px; z-index: 201;
  background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.25);
  color: var(--muted); font-family: var(--f-mono); font-size: 9px; letter-spacing: .18em;
  padding: 6px 14px; cursor: none; transition: color .2s, border-color .2s;
}
.lb-close:hover { color: var(--text); border-color: rgba(255,255,255,.5); }
.lb-info { padding: 10px 20px; display: flex; gap: 20px; align-items: center; border-top: 1px solid rgba(255,255,255,.06); flex-shrink: 0; }
.lb-series-tag { font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.lb-title-tag  { font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em; color: var(--accent); }

/* ══════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════ */
.section-contact { padding: var(--sec-pad) 5vw calc(var(--sec-pad) * 1.2); border-top: 1px solid #151515; background: var(--bg); }
.contact-inner { max-width: 820px; margin: 0 auto; position: relative; }
.contact-num {
  font-family: var(--f-disp);
  font-size: clamp(100px, 16vw, 200px);
  color: rgba(255,255,255,0.045);
  line-height: 1;
  position: absolute;
  top: 0;
  right: -0.04em;
  pointer-events: none;
  user-select: none;
}
.contact-title {
  font-family: var(--f-ser); font-size: clamp(72px, 12vw, 180px);
  font-weight: 300; color: var(--text); line-height: .85; margin-bottom: 22px;
}
.contact-status { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .25em; color: var(--accent); margin-bottom: 46px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-g { display: flex; flex-direction: column; gap: 7px; }
.form-g--full { grid-column: 1 / -1; }
.form-g label { font-family: var(--f-mono); font-size: 8px; letter-spacing: .28em; color: var(--muted); }
.form-g input, .form-g select, .form-g textarea {
  background: transparent; border: none; border-bottom: 1px solid #222;
  color: var(--text); font-family: var(--f-mono); font-size: 11px;
  padding: 9px 0; outline: none; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.form-g input:focus, .form-g select:focus, .form-g textarea:focus { border-color: var(--accent); }
.form-g select option { background: var(--bg); color: var(--text); }
.form-g textarea { resize: none; }
.btn-send {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .28em;
  color: var(--accent); background: transparent; border: 1px solid var(--accent);
  padding: 14px 26px; width: fit-content; transition: background .3s, color .3s;
}
.btn-send:hover { background: var(--accent); color: var(--bg); }
.form-success { font-family: var(--f-mono); font-size: 12px; letter-spacing: .28em; color: var(--accent); opacity: 0; transition: opacity .5s; }
.form-success.show { opacity: 1; }
.form-error { font-family: var(--f-mono); font-size: 12px; letter-spacing: .28em; color: #c0392b; margin-top: 8px; }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.footer {
  padding: 28px 5vw; border-top: 1px solid #111;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer span, .footer a { font-family: var(--f-mono); font-size: 9px; letter-spacing: .18em; color: var(--muted); }
.footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 14px; }
.footer-bin { opacity: .25; font-size: 7px; }

/* ══════════════════════════════════════════════════════
   LOGO CANVAS — absolute in hero (not fixed)
   ══════════════════════════════════════════════════════ */
.logo-canvas {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.s-hero {
  position: relative;
  height: 100vh;
  height: 100dvh; /* fix mobile — barre browser exclue */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 80px 5vw 40px;
  overflow: hidden;
  background: var(--bg);
}

/* fid-name hidden — canvas replaces it */
.fid-name { display: none; }

/* Hero background image — rendu sombre en arrière-plan */
.hero-bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.08; filter: grayscale(0.4);
  z-index: 0; pointer-events: none; user-select: none;
}

/* Process text sous les sections pro */
.v2-process {
  font-family: var(--f-mono); font-size: 9px; line-height: 1.9;
  letter-spacing: .08em; color: #888;
  max-width: 640px; margin-top: 18px;
  border-left: 1px solid #222; padding-left: 14px;
}

.hero-arrows {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  display: flex; justify-content: space-between;
  padding: 0 4vw;
  pointer-events: none; z-index: 3;
}
.h-arrow {
  font-family: var(--f-ser);
  font-size: clamp(28px, 3.5vw, 56px);
  color: rgba(240,236,228,0.18);
  font-style: italic;
  user-select: none;
  animation: arrow-l 3s ease-in-out infinite;
}
.h-arrow--r { animation-name: arrow-r; animation-delay: 1.5s; }

@keyframes arrow-l {
  0%, 100% { opacity: 0.18; transform: translateX(0); }
  50%       { opacity: 0.45; transform: translateX(-6px); }
}
@keyframes arrow-r {
  0%, 100% { opacity: 0.18; transform: translateX(0); }
  50%       { opacity: 0.45; transform: translateX(6px); }
}

.hero-meta {
  position: absolute;
  top: calc(50% - min(10vh, 116px) - 28px);
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.9s ease 0.4s;
}
.s-hero.visible .hero-meta { opacity: 1; }

.hero-sub {
  font-family: var(--f-mono); font-size: clamp(9px, 0.9vw, 13px);
  letter-spacing: .4em; color: #fff; opacity: 0.65;
}
.hero-loc {
  font-family: var(--f-mono); font-size: clamp(8px, .75vw, 11px);
  letter-spacing: .2em; color: var(--accent); opacity: 0.6;
}

.hero-statement {
  position: absolute;
  /* below canvas scaled at 72%: half-height ≈ min(10vh,115px) */
  top: calc(50% + min(14vh, 160px) + 20px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-ser);
  font-style: italic;
  font-size: clamp(13px, 1.5vw, 20px);
  color: rgba(240, 236, 228, 0.55);
  letter-spacing: .02em;
  white-space: nowrap;
  text-align: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 1s ease 0.65s;
}
.s-hero.visible .hero-statement { opacity: 1; }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .3em;
  color: var(--muted); z-index: 3;
  opacity: 0; transition: opacity 0.9s ease 1s;
  animation: scroll-pulse 2.2s ease-in-out 1s infinite;
}
.s-hero.visible .hero-scroll { opacity: 1; }

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.85; }
}

/* ══════════════════════════════════════════════════════
   V2 COMMON — section reveal (progressive enhancement)
   Sans JS : sections visibles par défaut.
   Avec JS : body.v2-js masque les sections jusqu'au scroll.
   ══════════════════════════════════════════════════════ */
.v2-section {
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
body.v2-js .v2-section { opacity: 0; }
body.v2-js .v2-section.v2-revealed { opacity: 1; transform: translateY(0); }
/* Sans JS — sections toujours visibles */
body:not(.v2-js) .v2-section { opacity: 1; transform: translateY(0); }

.v2-sec-head {
  padding: 48px 5vw 50px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
}
.v2-num {
  display: block;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .4em;
  color: var(--muted); margin-bottom: 10px;
  /* stagger reveal */
  transform: translateY(16px);
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1) 0.06s;
}
.v2-section.v2-revealed .v2-num { transform: translateY(0); }

/* Titre long — ex: MAZENKO ET SES ENNEMIS */
.v2-title--long {
  font-size: clamp(28px, 5.5vw, 90px);
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.05;
  max-width: 100%;
}
@media (max-width: 640px) { .v2-title--long { font-size: clamp(22px, 8.5vw, 48px); } }
@media (max-width: 400px) { .v2-title--long { font-size: clamp(18px, 7.5vw, 36px); } }

.v2-title {
  font-family: var(--f-disp);
  font-size: clamp(52px, 9vw, 130px);
  font-weight: 400; letter-spacing: .02em; line-height: 1;
  color: var(--text); margin-bottom: 16px;
  white-space: nowrap; overflow: visible;
  display: block;
  /* stagger reveal — font-family transition preserved */
  transform: translateY(32px);
  transition: font-family 0.3s ease,
              transform 0.7s cubic-bezier(0.16,1,0.3,1) 0.16s;
}
.v2-section.v2-revealed .v2-title { transform: translateY(0); }

/* Glitch RGB split au survol des titres */
.v2-title:hover {
  animation: titleGlitch 0.38s steps(2) 1;
}
@keyframes titleGlitch {
  0%  { text-shadow:  3px 0 rgba(200,169,110,.9), -3px 0 rgba(180,60,60,.4); }
  33% { text-shadow: -3px 0 rgba(200,169,110,.7),  3px 0 rgba(60,60,180,.4); }
  66% { text-shadow:  2px 0 rgba(200,169,110,.5), -2px 0 rgba(180,60,60,.2); }
  100%{ text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .v2-title:hover { animation: none; } }

.v2-statement {
  font-family: var(--f-ser);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 24px);
  color: rgba(240, 236, 228, 0.82);
  line-height: 1.3;
  max-width: 600px;
  margin-top: 22px;
  margin-bottom: 10px;
  /* stagger reveal */
  transform: translateY(20px);
  transition: transform 0.65s cubic-bezier(0.16,1,0.3,1) 0.28s;
}
.v2-section.v2-revealed .v2-statement { transform: translateY(0); }
.v2-desc {
  font-family: var(--f-mono); font-size: clamp(12px, 1.1vw, 15px); line-height: 1.85;
  color: rgba(240,236,228,0.52); max-width: 520px;
}

/* ══════════════════════════════════════════════════════
   TV WALL
   ══════════════════════════════════════════════════════ */
.s-tv {
  padding: var(--sec-pad) 5vw;
  background: var(--bg);
  border-top: 1px solid #111;
}

.tv-eyebrow {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .4em;
  color: var(--muted); text-align: center; margin-bottom: 64px;
}

.tv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
  max-width: min(1500px, 95vw); margin: 0 auto;
}

/* Stagger hidden state */
.tv-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: none;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tv-item.v2-item-in { opacity: 1; transform: translateY(0); }

.tv-bezel {
  width: 100%;
  background: linear-gradient(160deg, #1c1c1c 0%, #0d0d0d 100%);
  border-radius: 10px 10px 8px 8px;
  padding: 7px 7px 18px;
  box-shadow:
    0 10px 36px rgba(0,0,0,0.85),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -2px 4px rgba(0,0,0,0.6);
  position: relative;
}
/* Two small indicator dots at the bottom of the bezel */
.tv-bezel::after {
  content: '● ●';
  position: absolute; bottom: 5px; right: 10px;
  font-size: 5px; color: #2a2a2a; letter-spacing: 5px;
}

.tv-screen {
  position: relative; overflow: hidden;
  border-radius: 4px; background: #000;
  aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 16px rgba(0,0,0,1);
}

.tv-screen img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.3) saturate(0.4);
  transition: filter 0.55s ease, transform 0.55s ease, opacity 0.5s ease;
  transform: scale(1.04);
}
.tv-item:hover .tv-screen img {
  filter: brightness(0.9) saturate(1.05);
  transform: scale(1);
}

/* Scanlines */
.tv-scanlines {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 2px,
    rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 4px
  );
  transition: opacity 0.5s ease;
}
.tv-item:hover .tv-scanlines { opacity: 0.25; }

/* Screen-off overlay */
.tv-off {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 3;
  background: radial-gradient(ellipse at center, #101010 0%, #000 100%);
  transition: opacity 0.45s ease 0.05s;
}
.tv-item:hover .tv-off { opacity: 0; }
/* Mobile : pas de hover → TVs allumées d'office */
@media (hover: none) {
  .tv-off { opacity: 0 !important; transition: none; }
  .tv-screen img { filter: brightness(0.85) saturate(0.9) !important; transform: scale(1) !important; }
  .tv-scanlines { opacity: 0.25; }
  .tv-tag { color: var(--accent) !important; }
}

/* Turn-on flash (::before only on hover) */
.tv-item:hover .tv-screen::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 4;
  animation: tv-flicker 0.35s ease forwards;
}
@keyframes tv-flicker {
  0%   { background: rgba(255,255,255,0.12); }
  25%  { background: rgba(255,255,255,0.0); }
  50%  { background: rgba(255,255,255,0.08); }
  100% { background: rgba(255,255,255,0.0); }
}

.tv-tag {
  font-family: var(--f-mono); font-size: 8px; letter-spacing: .22em;
  color: #333; transition: color 0.3s;
}
.tv-item:hover .tv-tag { color: var(--accent); }

/* ══════════════════════════════════════════════════════
   CHARADESIGNS — fond crème avec fondu haut/bas
   ══════════════════════════════════════════════════════ */
.s-chara {
  position: relative;
  padding: var(--sec-pad) 0;
  background: #f4f1ec;
}
/* fondu noir → crème en haut */
.s-chara::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(140px, 18vh, 240px);
  background: linear-gradient(to bottom, #080808 0%, #080808 15%, #f4f1ec 100%);
  pointer-events: none;
  z-index: 1;
}
/* fondu crème → noir en bas */
.s-chara::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: clamp(140px, 18vh, 240px);
  background: linear-gradient(to top, #080808 0%, #080808 15%, #f4f1ec 100%);
  pointer-events: none;
  z-index: 1;
}
/* contenu au-dessus des overlays */
.s-chara .v2-sec-head,
.chara-grid,
.chara-footer { position: relative; z-index: 2; }
.s-chara .v2-sec-head { padding: 48px 5vw 48px; }
.s-chara .v2-num       { color: #bbb; }
.s-chara .v2-title     { color: #111; }
.s-chara .v2-statement { color: rgba(17, 17, 17, 0.72); }
.s-chara .v2-desc      { color: #999; }

.chara-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.chara-item {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1; background: #e0ddd8;
  cursor: none;
  opacity: 0; transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.chara-item.v2-item-in { opacity: 1; transform: scale(1); }

.chara-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.08);
  transition: transform 0.65s cubic-bezier(.25,.46,.45,.94), filter 0.4s ease;
}
.chara-item:hover img { transform: scale(1.07); filter: grayscale(0); }

.chara-over {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  background: rgba(0,0,0,0.48);
  display: flex; align-items: flex-end; padding: 14px 16px;
  opacity: 0; transition: opacity 0.3s ease;
}
.chara-item:hover .chara-over { opacity: 1; }
.chara-over span {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em; color: #fff;
}

.chara-footer { text-align: center; margin-top: 44px; }
.chara-labo-link {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em;
  color: #999; border-bottom: 1px solid #ccc; padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.chara-labo-link:hover { color: #111; border-color: #111; }

/* ══════════════════════════════════════════════════════
   CONCEPTS — fond sombre
   ══════════════════════════════════════════════════════ */
.s-concepts {
  padding: var(--sec-pad) 0;
  background: var(--bg);
  border-top: 1px solid #111;
}
.s-concepts .v2-sec-head { padding: 0 5vw 50px; }

.concepts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.concept-card {
  position: relative; overflow: hidden;
  aspect-ratio: 2 / 3; background: #0d0d0d;
  cursor: none;
}
.concept-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.72);
  transition: transform 0.7s ease, filter 0.45s ease;
}
.concept-card:hover img { transform: scale(1.05); filter: brightness(1); }

.concept-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  display: flex; flex-direction: column; gap: 5px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.concept-card:hover .concept-cap { opacity: 1; transform: translateY(0); }
.concept-s { font-family: var(--f-mono); font-size: 8px; letter-spacing: .3em; color: var(--accent); }
.concept-t { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--text); }

/* ══════════════════════════════════════════════════════
   MOWALOLA — expérience pro
   ══════════════════════════════════════════════════════ */
.s-mowalola {
  padding: var(--sec-pad) 5vw;
  background: #090707;
  border-top: 1px solid #181414;
}

.mowa-divider {
  text-align: center; margin-bottom: 64px;
}
.mowa-divider span {
  font-family: var(--f-mono); font-size: 8px; letter-spacing: .22em; color: #999;
}

.s-mowalola .v2-num   { color: #2a2020; }
.s-mowalola .v2-title { color: var(--text); }
.s-mowalola .v2-desc  { color: #999; }

.s-ladysoldout .v2-num   { color: #2a2020; }
.s-ladysoldout .v2-title { color: var(--text); }
.s-ladysoldout .v2-desc  { color: #999; }

.pro-badge {
  display: inline-block;
  font-family: var(--f-mono); font-size: 8px; letter-spacing: .2em;
  color: var(--accent); border: 1px solid rgba(200,169,110,0.35);
  padding: 4px 10px; margin-bottom: 14px; opacity: 0.75;
}

.mowa-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3px;
  max-width: 1200px; margin: 0 auto;
}
.mowa-main {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4; background: #111;
}
.mowa-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.mowa-main:hover img { transform: scale(1.04); }

.mowa-side { display: flex; flex-direction: column; gap: 3px; }
.mowa-cell { flex: 1; position: relative; overflow: hidden; background: #111; aspect-ratio: 3/2; }
.mowa-cell img, .mowa-cell video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s ease;
}
.mowa-cell:hover img, .mowa-cell:hover video { transform: scale(1.04); }
.mowa-main, .mowa-cell { cursor: none; }

/* ══════════════════════════════════════════════════════
   LADYSOLDOUT — même grille que VESPER, côté à 3 cellules
   ══════════════════════════════════════════════════════ */
.soldout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3px;
  max-width: 1200px; margin: 0 auto;
}
.soldout-main {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4; background: #111; cursor: none;
}
.soldout-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.soldout-main:hover img { transform: scale(1.04); }
.soldout-side { display: flex; flex-direction: column; gap: 3px; }
.soldout-cell { flex: 1; position: relative; overflow: hidden; background: #111; cursor: none; aspect-ratio: 3/4; }
.soldout-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s ease;
}
.soldout-cell:hover img { transform: scale(1.04); }
@media (max-width: 900px) {
  .soldout-grid { grid-template-columns: 1fr; }
  .soldout-main { aspect-ratio: 16 / 10; }
}

/* ══════════════════════════════════════════════════════
   ENVIRONNEMENT / LABO
   ══════════════════════════════════════════════════════ */
.s-labo {
  padding: var(--sec-pad) 5vw;
  background: #040404;
  border-top: 1px solid #0c0c0c;
}

.s-labo .v2-num   { color: #1a2a1a; }
.s-labo .v2-title { color: var(--text); }
.s-labo .v2-desc  { color: #4a4a4a; }

.labo-badge {
  display: inline-block;
  font-family: var(--f-mono); font-size: 8px; letter-spacing: .22em;
  color: #3a8c5c; border: 1px solid #1a3a2c;
  padding: 4px 10px; margin-bottom: 14px;
}

.labo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: 3px;
  max-width: min(1600px, 96vw); margin: 0 auto;
}

.labo-item {
  position: relative; overflow: hidden;
  background: #0a0a0a; aspect-ratio: 16 / 9;
  cursor: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.labo-item.v2-item-in { opacity: 1; transform: translateY(0); }

.labo-item--hero {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}


.labo-item img, .labo-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.65);
  transition: filter 0.45s ease, transform 0.55s ease;
}
.labo-item:hover img, .labo-item:hover video { filter: brightness(1); transform: scale(1.02); }

.labo-label {
  position: absolute; bottom: 10px; left: 12px;
  font-family: var(--f-mono); font-size: 8px; letter-spacing: .2em;
  color: rgba(255,255,255,0.45);
  opacity: 0; transition: opacity 0.3s;
}
.labo-item:hover .labo-label { opacity: 1; }

/* ══════════════════════════════════════════════════════
   MAZENKO — même structure que LABO
   ══════════════════════════════════════════════════════ */
.s-mazenko {
  position: relative;
  padding: calc(var(--sec-pad) + 3vw) 5vw var(--sec-pad);
  background: #050508;
  border-top: none;
  margin-top: 0;
}
/* Diagonal cut — tranche oblique au-dessus de la section */
.s-mazenko::before {
  content: '';
  position: absolute;
  top: -3.5vw; left: 0; right: 0;
  height: 3.5vw;
  background: #050508;
  clip-path: polygon(0 100%, 100% 0%, 100% 100%);
  pointer-events: none;
}

/* Numéro géant en filigrane — style éditorial */
.s-mazenko .v2-sec-head { position: relative; overflow: hidden; }
.s-mazenko .v2-num {
  font-family: var(--f-disp);
  font-size: clamp(140px, 24vw, 320px);
  color: rgba(200, 169, 110, 0.04);
  position: absolute;
  right: -0.04em; top: -0.2em;
  letter-spacing: -0.02em; line-height: 1;
  pointer-events: none; user-select: none;
  z-index: 0;
  /* reset du transform reveal pour ce cas */
  transform: none !important;
  transition: none !important;
}
.s-mazenko .v2-sec-head > *:not(.v2-num) { position: relative; z-index: 1; }
.s-mazenko .v2-title { color: var(--text); }

.mazenko-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: 3px;
  max-width: min(1600px, 96vw); margin: 0 auto;
}

/* Indicateur CLICK TO PLAY */
.mz-play-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 20; pointer-events: none;
  transition: opacity 0.6s ease;
}
.mz-play-hint span {
  font-family: var(--f-mono);
  font-size: clamp(9px, 1.4vw, 13px);
  letter-spacing: .45em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200,169,110,.35);
  padding: 14px 28px;
  background: rgba(5,5,8,.75);
  backdrop-filter: blur(4px);
  animation: mzHintPulse 2s ease-in-out infinite;
}
@keyframes mzHintPulse {
  0%, 100% { opacity: .35; box-shadow: 0 0 0 0 rgba(200,169,110,0); }
  50%       { opacity: 1;   box-shadow: 0 0 22px 4px rgba(200,169,110,.12); }
}
.mz-play-hint.hidden { opacity: 0; pointer-events: none; }
.mazenko-item {
  position: relative; overflow: hidden;
  background: #0a0a0a; aspect-ratio: 16 / 9;
  cursor: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mazenko-item.v2-item-in { opacity: 1; transform: translateY(0); }
.mazenko-item--hero {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}
.mazenko-item img, .mazenko-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.65);
  transition: filter 0.45s ease, transform 0.55s ease;
}
.mazenko-item:hover img, .mazenko-item:hover video { filter: brightness(1); transform: scale(1.02); }
.mazenko-item:hover .labo-label { opacity: 1; }

/* beat pulse — déclenché par fireBeat() sur toutes les sections */
.mazenko-item.beat img, .mazenko-item.beat video,
.tv-item.beat .tv-screen img, .tv-item.beat .tv-screen video,
.chara-item.beat img, .chara-item.beat video,
.labo-item.beat img, .labo-item.beat video,
.concept-card.beat img, .concept-card.beat video,
.still.beat img, .still.beat video {
  animation: mzBeat var(--nv-beat, .411s) cubic-bezier(.08,0,.35,1) forwards;
}
@keyframes mzBeat {
  0%   { filter: brightness(0.65); }
  12%  { filter: brightness(1.15); }
  35%  { filter: brightness(0.75); }
  100% { filter: brightness(0.65); }
}

/* ══════════════════════════════════════════════════════
   STILLS FRAMES
   ══════════════════════════════════════════════════════ */
.s-stills {
  padding: var(--sec-pad) 0;
  background: var(--bg);
  border-top: 1px solid #111;
}
.s-stills .v2-sec-head { padding: 0 5vw 50px; }

.stills-list { display: flex; flex-direction: column; gap: 3px; }

.still {
  position: relative; overflow: hidden;
  width: 100%; height: 62vh; background: #0a0a0a;
  cursor: none;
}
.still img {
  width: 100%;
  height: 130%; /* extra for parallax travel */
  object-fit: cover; display: block;
  filter: brightness(0.78);
  transition: filter 0.45s ease;
  will-change: transform;
}
.still:hover img { filter: brightness(1); }

.still-cap {
  position: absolute; bottom: 22px; left: 5vw;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .3em;
  color: rgba(255,255,255,0.4); transition: color 0.3s;
}
.still:hover .still-cap { color: var(--accent); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .tv-grid { grid-template-columns: repeat(2, 1fr); }
  .concepts-row { grid-template-columns: 1fr; }
  .concept-card { aspect-ratio: 16 / 10; }
  .mowa-grid { grid-template-columns: 1fr; }
  .mowa-main { aspect-ratio: 16 / 10; }
}

@media (max-width: 640px) {
  .tv-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .chara-grid { grid-template-columns: 1fr 1fr; }
  .labo-grid { grid-template-columns: 1fr; }
  .labo-item--hero { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .mazenko-grid { grid-template-columns: 1fr; }
  .mazenko-item--hero { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .still { height: 42vh; }
  .form-row { grid-template-columns: 1fr; }
  .contact-num { display: none; }
  .contact-title { font-size: clamp(56px, 16vw, 100px); }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 8px; }
}

@media (max-width: 640px) {
  /* sur mobile : cacher les liens de nav, montrer le bouton menu */
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  /* l'overlay menu est plein écran : les liens peuvent être plus grands */
  .nol-item { font-size: clamp(34px, 12vw, 56px); }
}

/* ── iPhone (≤ 430px) — typo calibrée sur 390px logiques ── */
@media (max-width: 430px) {
  /* Titres de section : 9vw → ~35px sur 390px, évite tout débordement */
  .v2-title {
    font-size: clamp(22px, 9vw, 48px) !important;
    line-height: 1;
    overflow: hidden;
  }
  /* Overlay menu : "VESPER PORNZINE" (15 chars) doit tenir sur ~330px */
  .nol-item { font-size: clamp(22px, 9vw, 40px); }
  /* Contact titre */
  .contact-title { font-size: clamp(36px, 12vw, 64px); }
  /* Statement — légèrement plus petit */
  .v2-statement { font-size: clamp(13px, 3.8vw, 18px); }
  /* Numéros de section */
  .v2-num { font-size: 8px; }
  /* Padding section réduit */
  .v2-sec-head { padding: 32px 5vw 32px; }
  /* Séparateur pro en 2 lignes si trop long */
  .mowa-divider span { white-space: normal; text-align: center; }
}

/* ── Nerve Player — help panel raccourcis ── */
.nv-btn-help { opacity: .45; }
.nv-btn-help:hover { opacity: 1; }
.nv-help-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: #0c0a09;
  border: 1px solid rgba(200,169,110,.35);
  padding: 10px 16px;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 50;
}
.nv-help-panel.nv-help-open {
  opacity: 1;
  pointer-events: auto;
}

/* ══════════════════════════════════════════════════════
   NAV — bouton mobile
   ══════════════════════════════════════════════════════ */
.nav-menu-btn {
  display: none;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .15em;
  color: var(--text); background: none; border: none;
  cursor: none; padding: 12px 6px;
  opacity: .6; transition: opacity .2s;
}
.nav-menu-btn:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════
   FULLSCREEN OVERLAY MENU
   ══════════════════════════════════════════════════════ */
.nav-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  background: #080808;
  z-index: 200;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 8vw 5vh;
  /* wipe vertical : fermé = inset bas 100% */
  clip-path: inset(0 0 100% 0);
  transition: clip-path .72s cubic-bezier(.76, 0, .24, 1);
  pointer-events: none;
}
.nav-overlay.nol-open {
  clip-path: inset(0 0 0% 0);
  pointer-events: all;
}

.nol-close {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .15em;
  color: rgba(255,255,255,.35); background: none; border: none;
  cursor: none; padding: 12px 6px;
  transition: color .2s;
}
.nol-close:hover { color: #fff; }

.nol-bg-text {
  position: absolute; bottom: -0.05em; left: -0.02em;
  font-family: var(--f-disp);
  font-size: clamp(56px, 22vw, 160px);
  color: rgba(255,255,255,.03);
  line-height: 1; letter-spacing: -.02em;
  pointer-events: none; user-select: none; white-space: nowrap;
}

.nol-links {
  display: flex; flex-direction: column; gap: 2px;
}

.nol-item {
  font-family: var(--f-disp);
  font-size: clamp(38px, 10.5vw, 88px);
  line-height: 1.08; letter-spacing: -.01em;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  display: flex; align-items: baseline; gap: 14px;
  /* entré en scène décalé */
  opacity: 0; transform: translateY(18px);
  transition: opacity .4s ease, transform .4s ease, color .2s;
}
.nol-item::before {
  content: attr(data-num);
  font-family: var(--f-mono); font-size: 9px;
  color: rgba(255,255,255,.28); letter-spacing: .2em;
  flex-shrink: 0; align-self: center;
}
.nol-item:hover { color: var(--accent); }

/* apparition en cascade */
.nol-open .nol-item:nth-child(1) { opacity:1; transform:none; transition-delay:.28s; }
.nol-open .nol-item:nth-child(2) { opacity:1; transform:none; transition-delay:.34s; }
.nol-open .nol-item:nth-child(3) { opacity:1; transform:none; transition-delay:.40s; }
.nol-open .nol-item:nth-child(4) { opacity:1; transform:none; transition-delay:.46s; }
.nol-open .nol-item:nth-child(5) { opacity:1; transform:none; transition-delay:.52s; }
.nol-open .nol-item:nth-child(6) { opacity:1; transform:none; transition-delay:.58s; }

/* ══════════════════════════════════════════════════════
   AUDIO PLAYER — dark glass console
   ══════════════════════════════════════════════════════ */
.audio-player {
  display: none; /* affiché par JS si TRACKS.length > 0 */
  flex-direction: column;
  position: absolute;
  bottom: 18vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, 88vw);
  z-index: 10;
  background: rgba(5, 5, 5, 0.74);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(200, 169, 110, 0.18);
  border-radius: 2px;
  overflow: hidden;
  font-family: var(--f-mono);
  user-select: none;
  box-shadow: 0 24px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4);
}

/* ── TOP ROW ── */
.ap-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ap-label {
  font-size: 7px;
  letter-spacing: .3em;
  color: rgba(200,169,110,0.5);
}
.ap-counter {
  font-size: 7px;
  letter-spacing: .18em;
  color: rgba(255,255,255,0.18);
}

/* ── TRACK NAME ── */
.ap-name-row {
  padding: 8px 16px 4px;
  overflow: hidden;
}
.ap-name-text {
  display: inline-block;
  font-family: 'VT323', var(--f-mono);
  font-size: 24px;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  text-transform: uppercase;
}
.ap-name-text.ap-scroll {
  animation: ap-marquee 12s linear infinite;
}
@keyframes ap-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-55%); }
}

/* ── WAVEFORM ── */
.ap-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 38px;
  padding: 0 16px;
  margin: 6px 0 5px;
}
.ap-wave-bar {
  flex: 1;
  background: rgba(200,169,110,0.2);
  border-radius: 1px 1px 0 0;
  min-height: 2px;
  animation: ap-wave-anim 1s ease-in-out infinite alternate;
  animation-play-state: paused;
  transition: background 0.4s;
}
.ap-wave-bar.ap-on {
  animation-play-state: running;
  background: rgba(200,169,110,0.52);
}
@keyframes ap-wave-anim {
  0%   { height: 8%; }
  100% { height: 100%; }
}

/* ── PROGRESS ── */
.ap-progress {
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,0.07);
  cursor: none;
  position: relative;
  flex-shrink: 0;
}
.ap-bar {
  position: absolute;
  top: 0; right: auto; bottom: 0; left: 0;
  background: var(--accent);
  width: 0%;
  box-shadow: 0 0 8px var(--accent);
  transition: width 0.3s linear;
}

/* ── CONTROLS ── */
.ap-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 8px 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.ap-btns {
  display: flex;
  gap: 0;
}
.ap-btns button,
.ap-mute-btn {
  background: none;
  border: none;
  cursor: none;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.28);
  padding: 5px 14px;
  transition: color 0.2s;
}
.ap-btns button:hover,
.ap-mute-btn:hover { color: rgba(255,255,255,0.8); }
.ap-play-btn {
  color: var(--accent) !important;
  font-size: 15px !important;
}
.ap-mute-btn {
  font-size: 15px;
  padding: 5px 14px;
}
.ap-mute-btn.ap-muted { color: rgba(255,255,255,0.1) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .audio-player { bottom: 12vh; width: 92vw; }
  .ap-name-text { font-size: 19px; }
  .ap-wave { height: 30px; }
}

/* ══════════════════════════════════════════════════════
   SAFARI < 15 — ASPECT-RATIO FALLBACK
   Utilise le padding-top hack pour les éléments clés
   ══════════════════════════════════════════════════════ */
@supports not (aspect-ratio: 1) {
  /* TV screen 4:3 */
  .tv-screen { padding-top: 75%; height: 0; }
  .tv-screen img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
  .tv-scanlines, .tv-off { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

  /* Chara 1:1 */
  .chara-item { padding-top: 100%; height: 0; }
  .chara-item img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
  .chara-over { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

  /* Concepts 2:3 */
  .concept-card { padding-top: 150%; height: 0; }
  .concept-card img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

  /* Pro grids 3:4 */
  .mowa-main, .soldout-main { padding-top: 133.33%; height: 0; }
  .mowa-main img, .soldout-main img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

  /* Labo + Mazenko 16:9 */
  .labo-item { padding-top: 56.25%; height: 0; }
  .labo-item img, .labo-item video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
  .mazenko-item { padding-top: 56.25%; height: 0; }
  .mazenko-item img, .mazenko-item video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
}

/* ══════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION (WCAG 2.1 — 2.3.3)
   ══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #grain { display: none; }
  .loading-flash { animation: none; opacity: 0.3; }
  #cursor { display: none; }
  .tv-screen img { transition: none; }
  video.lb-media { transition: none; }
}

/* ── Pas de curseur custom + pas de glitch `:hover` sur écrans tactiles ── */
@media (hover: none) {
  #cursor { display: none !important; }
  body { cursor: auto; }
  a, button, .nav-menu-btn, .nol-close, .mowa-main, .mowa-cell,
  .soldout-main, .soldout-cell, .ap-progress,
  .chara-item, .concept-card, .labo-item, .mazenko-item, .still, .tv-item { cursor: pointer; }
  /* Glitch hover désactivé — iOS garde l'état :hover après toucher */
  .v2-title:hover { animation: none !important; text-shadow: none !important; }
  .v2-title:hover img, .mazenko-item:hover img, .mazenko-item:hover video,
  .chara-item:hover img, .labo-item:hover img { transform: none !important; filter: none !important; }
}

/* ══════════════════════════════════════════════════════
   ABOUT / BIO
   ══════════════════════════════════════════════════════ */
.s-about {
  background: var(--bg);
  padding: clamp(48px, 6vw, 80px) 5vw;
  border-bottom: 1px solid #151515;
}
.about-wrap { max-width: 680px; margin: 0 auto; }
.about-tag {
  font-family: var(--f-mono);
  font-size: 8px; letter-spacing: .32em;
  color: var(--accent); opacity: .55;
  display: block; margin-bottom: 22px;
}
.about-bio {
  font-family: var(--f-mono);
  font-size: clamp(11px, 1.6vw, 14px);
  line-height: 2; color: var(--text);
  letter-spacing: .06em; margin: 0 0 22px;
}
.about-stack {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.about-pill {
  font-family: var(--f-mono);
  font-size: 8px; letter-spacing: .22em;
  color: var(--accent);
  border: 1px solid rgba(200,169,110,.28);
  padding: 5px 12px; opacity: .75;
}
.about-pill--learning {
  color: var(--muted);
  border-color: rgba(200,169,110,.12);
  opacity: .5;
  font-style: italic;
}
.about-avail {
  font-family: var(--f-mono);
  font-size: 8px; letter-spacing: .2em;
  color: var(--muted); margin: 0;
}
.about-contact-link {
  color: var(--accent); text-decoration: none;
  opacity: .8; transition: opacity .2s;
}
.about-contact-link:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════
   NERVE AUDIO PLAYER — intégré, couleurs site (or/ambre)
   ══════════════════════════════════════════════════════ */
.s-player {
  background: var(--bg);
  display: flex;
  justify-content: center;
  padding: clamp(50px, 7vw, 90px) 5vw clamp(80px, 10vw, 130px);
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}

.nerve-wrap {
  --nv-gold:  #c8a96e;
  --nv-amber: #e8c870;
  --nv-red:   #c84040;
  --nv-dim:   rgba(200,169,110,.12);
  --nv-beat:  .411s;
  width: min(820px, 94vw);
  position: relative;
}

.nv-player-wrap {
  position: relative;
  filter: drop-shadow(0 0 30px rgba(200,169,110,.06)) drop-shadow(0 20px 60px rgba(0,0,0,.99));
}

/* ── Mega brackets SVG ── */
.mega-bracket { position:absolute; top:0; bottom:0; width:38px; z-index:200; pointer-events:none; }
.mb-l { left:-50px; }
.mb-r { right:-50px; }
.mega-bracket svg { width:100%; height:100%; display:block; overflow:visible; }
.mb-base { fill:none; stroke:rgba(200,169,110,.25); stroke-width:2; stroke-linecap:square; stroke-linejoin:miter; }
.mb-liq1 {
  fill:none; stroke:var(--nv-gold); stroke-width:3; stroke-linecap:round;
  stroke-dasharray:90 280;
  animation: nvLiqFlow 2.6s linear infinite;
  filter: drop-shadow(0 0 6px var(--nv-gold)) drop-shadow(0 0 18px rgba(200,169,110,.7));
}
.mb-liq2 {
  fill:none; stroke:var(--nv-amber); stroke-width:2; stroke-linecap:round;
  stroke-dasharray:55 310;
  animation: nvLiqFlow 2.6s linear infinite reverse;
  animation-delay:-1.3s;
  filter: drop-shadow(0 0 5px var(--nv-amber)) drop-shadow(0 0 12px rgba(232,200,112,.6));
  opacity:0.8;
}
@keyframes nvLiqFlow { from { stroke-dashoffset:380; } to { stroke-dashoffset:-380; } }

/* ── Cadre ── */
.nv-frame {
  border: 1px solid rgba(200,169,110,.2);
  background: rgba(5,3,2,.98);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.nv-top-accent {
  height:2px;
  background: linear-gradient(90deg,transparent,var(--nv-gold) 20%,var(--nv-amber) 50%,var(--nv-gold) 80%,transparent);
  box-shadow: 0 0 10px rgba(200,169,110,.4);
  position:relative; z-index:5;
}
.nv-bot-accent {
  height:2px;
  background: linear-gradient(90deg,transparent,var(--nv-amber) 30%,var(--nv-gold) 50%,var(--nv-amber) 70%,transparent);
  box-shadow: 0 0 8px rgba(232,200,112,.3);
}

/* ── Status bar ── */
.nv-status-bar {
  display:flex; justify-content:space-between; align-items:center;
  padding:5px 16px;
  border-bottom:1px solid rgba(200,169,110,.06);
  font-size:7px; letter-spacing:.2em; position:relative; z-index:5;
  font-family:'Space Mono',monospace;
}
.nv-sb-left  { color:rgba(200,169,110,.4); }
.nv-sb-mid   { color:rgba(232,200,112,.3); }
.nv-sb-right { color:rgba(200,169,110,.3); }
.nv-blink { animation:nvBlink .8s step-end infinite; }
@keyframes nvBlink { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* ── Corps ── */
.nv-body { display:flex; height:180px; }

/* ── Baffles ── */
.nv-baffle {
  width:158px; flex-shrink:0;
  background:#030201;
  position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.nv-baffle-l { border-right:1px solid rgba(200,169,110,.08); }
.nv-baffle-r { border-left:1px solid rgba(200,169,110,.08); }
.nv-dot-matrix {
  position:absolute; inset:0;
  background-image: radial-gradient(circle, rgba(200,169,110,.15) 1px, transparent 1px);
  background-size: 10px 10px; opacity:.5;
}
.nv-reticle { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; pointer-events:none; }
.nv-ret-ring { position:absolute; inset:0; margin:auto; border-radius:50%; border:1px solid rgba(200,169,110,.1); }
.nv-ret-ring:nth-child(1) { width:130px; height:130px; }
.nv-ret-ring:nth-child(2) { width:104px; height:104px; border-color:rgba(200,169,110,.06); }
.nv-ret-ring:nth-child(3) { width:78px;  height:78px;  border-color:rgba(200,169,110,.13); }
.nv-ret-cross { position:absolute; width:130px; height:130px; }
.nv-ret-cross::before,.nv-ret-cross::after { content:''; position:absolute; background:rgba(200,169,110,.07); }
.nv-ret-cross::before { left:50%; top:0; width:1px; height:100%; }
.nv-ret-cross::after  { top:50%; left:0; height:1px; width:100%; }
.nv-ret-ticks { position:absolute; width:130px; height:130px; }
.nv-ret-ticks span { position:absolute; background:var(--nv-gold); box-shadow:0 0 4px var(--nv-gold); }
.nv-ret-ticks span:nth-child(1) { top:0;   left:50%; width:1px; height:8px; transform:translateX(-50%); }
.nv-ret-ticks span:nth-child(2) { bottom:0;left:50%; width:1px; height:8px; transform:translateX(-50%); }
.nv-ret-ticks span:nth-child(3) { left:0;  top:50%;  height:1px; width:8px; transform:translateY(-50%); }
.nv-ret-ticks span:nth-child(4) { right:0; top:50%;  height:1px; width:8px; transform:translateY(-50%); }

.nv-sensor { position:absolute; display:flex; align-items:center; justify-content:center; left:50%; transform:translateX(-50%); }
.nv-sensor-t { top:10px; }
.nv-sensor-b { bottom:10px; }
.nv-sensor-dot {
  width:6px; height:6px; border-radius:50%;
  background:var(--nv-gold);
  box-shadow:0 0 6px var(--nv-gold), 0 0 12px rgba(200,169,110,.4);
  animation:nvSensorBlink var(--nv-beat) ease-in-out infinite;
}
.nv-sensor-line { position:absolute; width:20px; height:1px; background:rgba(200,169,110,.2); }
.nv-sl-l { left:-22px; }
.nv-sl-r { right:-22px; }

.nv-star-wrap { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:4; }
.nv-star-svg {
  width:82px; height:82px;
  animation:nvStarBeat var(--nv-beat) cubic-bezier(.1,0,.3,1) infinite;
  animation-play-state: paused;
  filter:drop-shadow(0 0 6px var(--nv-gold)) drop-shadow(0 0 12px rgba(200,169,110,.4));
}
.nerve-wrap.nv-playing .nv-star-svg { animation-play-state: running; }
.nv-s-in  { fill:rgba(200,169,110,.06); stroke:rgba(200,169,110,.22); stroke-width:.8; }
.nv-s-out { fill:none; stroke:var(--nv-gold); stroke-width:1.3; }

.nv-led-l { position:absolute; right:0; top:0; bottom:0; width:1px; background:linear-gradient(180deg,transparent,var(--nv-gold) 30%,var(--nv-amber) 50%,var(--nv-gold) 70%,transparent); animation:nvLedG var(--nv-beat) ease-in-out infinite; }
.nv-led-r { position:absolute; left:0;  top:0; bottom:0; width:1px; background:linear-gradient(180deg,transparent,var(--nv-gold) 30%,var(--nv-amber) 50%,var(--nv-gold) 70%,transparent); animation:nvLedG var(--nv-beat) ease-in-out infinite; }

/* ── Écran ── */
.nv-screen {
  flex:1;
  background:#020100;
  border-left:1px solid rgba(200,169,110,.06);
  border-right:1px solid rgba(200,169,110,.06);
  position:relative; overflow:hidden;
  display:flex; flex-direction:column; justify-content:space-between;
  padding:10px 14px 9px;
}
.nv-screen::before {
  content:''; position:absolute; inset:0;
  background:repeating-linear-gradient(0deg,rgba(0,0,0,.15),rgba(0,0,0,.15) 1px,transparent 1px,transparent 3px);
  pointer-events:none; z-index:8; mix-blend-mode:multiply;
}
.nv-sc-glow {
  position:absolute; inset:0;
  background:radial-gradient(ellipse 70% 50% at 50% 50%,rgba(200,169,110,.03),transparent);
  animation:nvGlowPulse var(--nv-beat) ease-in-out infinite; z-index:0;
}
.nv-sc-hdr { display:flex; justify-content:space-between; align-items:flex-start; position:relative; z-index:2; }
.nv-sc-info { overflow:hidden; max-width:270px; }
.nv-sc-track-wrap { overflow:hidden; white-space:nowrap; }
.nv-sc-artist-wrap { overflow:hidden; white-space:nowrap; margin-top:4px; }
.nv-sc-track {
  font-family:'Bebas Neue', var(--f-disp); font-size:18px; letter-spacing:.15em;
  color:var(--text); display:inline-block; white-space:nowrap;
  text-shadow:0 0 10px rgba(240,236,228,.15);
  animation: nvMarquee 12s linear infinite, nvGlitchTrack var(--nv-beat) ease-in-out infinite;
}
.nv-sc-artist {
  font-size:10px; letter-spacing:.22em; color:rgba(200,169,110,.55);
  display:inline-block; white-space:nowrap;
  animation: nvMarquee 9s linear infinite;
}
@keyframes nvMarquee { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }
.nv-sc-status { text-align:right; flex-shrink:0; }
.nv-sc-bpm-num {
  font-family:'Bebas Neue', var(--f-disp); font-size:28px; color:var(--nv-gold); line-height:1;
  text-shadow:0 0 16px var(--nv-gold), 0 0 32px rgba(200,169,110,.3);
  animation:nvBpmGlow var(--nv-beat) ease-in-out infinite;
}
.nv-sc-bpm-lbl { font-size:6px; letter-spacing:.3em; color:rgba(200,169,110,.35); margin-top:1px; font-family:'Space Mono',monospace; }
.nv-sc-flag { font-size:6px; letter-spacing:.2em; color:rgba(200,169,110,.3); margin-top:3px; font-family:'Space Mono',monospace; }
.nv-sc-div {
  height:1px; position:relative; z-index:2;
  background:linear-gradient(90deg,transparent,rgba(200,169,110,.25) 20%,rgba(232,200,112,.35) 50%,rgba(200,169,110,.25) 80%,transparent);
  box-shadow:0 0 4px rgba(200,169,110,.15);
  animation:nvDivPulse var(--nv-beat) ease-in-out infinite;
}

/* ECG central */
.nv-sc-ecg { position:relative; z-index:2; width:100%; height:36px; display:flex; align-items:center; }
.nv-ecg-canvas { width:100%; height:36px; display:block; }

/* Progress */
.nv-sc-prog-wrap { position:relative; z-index:2; }
.nv-sc-prog-ascii { font-size:7px; letter-spacing:.05em; color:rgba(200,169,110,.45); margin-bottom:4px; display:flex; justify-content:space-between; font-family:'Space Mono',monospace; }
.nv-sc-prog { height:3px; background:rgba(200,169,110,.06); position:relative; cursor:pointer; border-radius:1px; }
.nv-sc-fill {
  height:100%; width:0%; border-radius:1px;
  background:linear-gradient(90deg,var(--nv-gold),var(--nv-amber));
  box-shadow:0 0 6px rgba(200,169,110,.5); position:relative; transition:width .3s linear;
}
.nv-sc-fill::after {
  content:''; position:absolute; right:-4px; top:50%; transform:translateY(-50%);
  width:7px; height:7px; border-radius:50%;
  background:var(--nv-gold); box-shadow:0 0 10px var(--nv-gold), 0 0 20px rgba(200,169,110,.4);
}
.nv-sc-tags { display:flex; gap:5px; position:relative; z-index:2; }
.nv-sc-tag {
  font-size:6px; letter-spacing:.15em; color:rgba(200,169,110,.3); font-family:'Space Mono',monospace;
  border:1px solid rgba(200,169,110,.1); padding:2px 6px;
  clip-path:polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
}
.nv-tag-hi { color:rgba(232,200,112,.5); border-color:rgba(232,200,112,.18); }

/* ── Ctrl bar ── */
.nv-ctrl-bar {
  display:flex; align-items:stretch; height:54px;
  background:#010100;
  border-top:1px solid rgba(200,169,110,.12);
  box-shadow:0 -4px 20px rgba(200,169,110,.03);
}
.nv-vol-sec {
  display:flex; align-items:center; gap:8px;
  padding:0 16px; min-width:170px;
  border-right:1px solid rgba(200,169,110,.06);
}
.nv-vol-label { font-size:7px; letter-spacing:.2em; color:rgba(200,169,110,.3); white-space:nowrap; font-family:'Space Mono',monospace; }
.nv-vol-track { flex:1; height:3px; background:rgba(200,169,110,.05); border-radius:1px; cursor:pointer; position:relative; }
.nv-vol-fill {
  height:100%; border-radius:1px;
  background:linear-gradient(90deg,rgba(200,169,110,.5),var(--nv-gold));
  box-shadow:0 0 6px rgba(200,169,110,.4); position:relative; transition:width .05s;
}
.nv-vol-fill::after {
  content:''; position:absolute; right:-4px; top:50%; transform:translateY(-50%);
  width:7px; height:7px; border-radius:50%;
  background:var(--nv-gold); box-shadow:0 0 8px var(--nv-gold); cursor:pointer;
}
.nv-vol-num { font-size:8px; color:rgba(200,169,110,.4); min-width:24px; text-align:right; font-family:'Space Mono',monospace; }

.nv-transport { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; }
.nv-btn-t {
  background:none; border:1px solid rgba(200,169,110,.1);
  font-family:'Space Mono',monospace; font-size:9px; letter-spacing:.15em;
  color:rgba(200,169,110,.3); padding:5px 10px; cursor:pointer;
  transition:all .15s; text-transform:uppercase; white-space:nowrap; line-height:1.2;
  clip-path:polygon(4px 0%,100% 0%,calc(100% - 4px) 100%,0% 100%);
}
.nv-btn-t:hover { color:var(--nv-gold); background:rgba(200,169,110,.05); border-color:rgba(200,169,110,.35); box-shadow:0 0 10px rgba(200,169,110,.12); }
.nv-btn-play { font-size:10px; font-weight:700; color:var(--nv-gold) !important; border-color:rgba(200,169,110,.3) !important; padding:6px 16px; box-shadow:0 0 8px rgba(200,169,110,.08); }
.nv-btn-play:hover { box-shadow:0 0 16px rgba(200,169,110,.25) !important; }
.nv-btn-play.playing { color:var(--text) !important; background:rgba(200,169,110,.08) !important; border-color:var(--nv-gold) !important; box-shadow:0 0 16px rgba(200,169,110,.25) !important; }
.nv-btn-stop:hover { color:var(--nv-red) !important; border-color:rgba(200,64,64,.35) !important; box-shadow:0 0 10px rgba(200,64,64,.1) !important; }

.nv-led-row { display:flex; gap:5px; position:absolute; bottom:4px; left:50%; transform:translateX(-50%); }
.nv-led-d { width:4px; height:4px; border-radius:50%; background:rgba(200,169,110,.18); }
.nv-led-d.on { background:var(--nv-gold); box-shadow:0 0 5px var(--nv-gold); animation:nvLedBlink .6s step-end infinite; }
.nv-led-amber { background:rgba(232,200,112,.3); box-shadow:0 0 5px rgba(232,200,112,.3); }

.nv-speed-sec {
  display:flex; align-items:center; gap:4px; padding:0 12px;
  border-left:1px solid rgba(200,169,110,.06);
}
.nv-spd-label { font-size:6px; letter-spacing:.2em; color:rgba(200,169,110,.22); margin-right:6px; white-space:nowrap; font-family:'Space Mono',monospace; }
.nv-btn-spd {
  background:none; border:1px solid rgba(200,169,110,.08);
  font-family:'Space Mono',monospace; font-size:7px; letter-spacing:.1em;
  color:rgba(200,169,110,.22); padding:3px 6px; cursor:pointer; transition:all .15s; border-radius:1px;
}
.nv-btn-spd:hover { color:var(--nv-gold); border-color:rgba(200,169,110,.35); }
.nv-btn-spd.nv-spd-active { color:var(--nv-gold); background:rgba(200,169,110,.07); border-color:rgba(200,169,110,.3); box-shadow:0 0 8px rgba(200,169,110,.12); }

/* Tracklist — caché (navigation interne uniquement) */
.nv-tracklist { display:none; }
.nv-tl-item {
  font-family:'Space Mono',monospace; font-size:6px; letter-spacing:.15em;
  color:rgba(200,169,110,.2); border:1px solid rgba(200,169,110,.06); padding:3px 9px; cursor:pointer;
  transition:all .15s; text-transform:uppercase;
  clip-path:polygon(5px 0%,100% 0%,calc(100% - 5px) 100%,0% 100%);
}
.nv-tl-item:hover { color:rgba(200,169,110,.65); border-color:rgba(200,169,110,.28); background:rgba(200,169,110,.04); }
.nv-tl-item.nv-active { color:var(--nv-gold); border-color:rgba(200,169,110,.32); background:rgba(200,169,110,.06); }

/* ── Animations ── */
@keyframes nvStarBeat {
  0%   { transform:scale(1);    filter:drop-shadow(0 0 5px var(--nv-gold)) drop-shadow(0 0 10px rgba(200,169,110,.3)); }
  8%   { transform:scale(1.55); filter:drop-shadow(0 0 28px var(--nv-gold)) drop-shadow(0 0 55px rgba(200,169,110,.8)); }
  25%  { transform:scale(1.12); filter:drop-shadow(0 0 12px var(--nv-gold)) drop-shadow(0 0 20px rgba(200,169,110,.4)); }
  100% { transform:scale(1);    filter:drop-shadow(0 0 5px var(--nv-gold)) drop-shadow(0 0 10px rgba(200,169,110,.3)); }
}
@keyframes nvBpmGlow {
  0%,100% { text-shadow:0 0 14px var(--nv-gold), 0 0 28px rgba(200,169,110,.3); }
  50%     { text-shadow:0 0 24px var(--nv-gold), 0 0 50px rgba(200,169,110,.6); }
}
@keyframes nvGlowPulse { 0%,100%{opacity:.5;} 50%{opacity:1.8;} }
@keyframes nvDivPulse  { 0%,100%{opacity:.5;} 50%{opacity:1.3; box-shadow:0 0 10px rgba(200,169,110,.35);} }
@keyframes nvSensorBlink { 0%,100%{box-shadow:0 0 6px var(--nv-gold),0 0 12px rgba(200,169,110,.4);opacity:1;} 50%{box-shadow:0 0 10px var(--nv-gold),0 0 22px rgba(200,169,110,.7);opacity:.7;} }
@keyframes nvLedG { 0%,100%{opacity:.5;} 50%{opacity:1.2; box-shadow:0 0 6px var(--nv-gold);} }

/* ── Central screen bass-reactive beat flash ── */
.nv-screen.beat { animation: nvScreenBeat 0.4s cubic-bezier(.08,0,.35,1) forwards; }
@keyframes nvScreenBeat {
  0%   { filter:brightness(1); box-shadow:none; }
  16%  { filter:brightness(1.7); box-shadow:inset 0 0 38px rgba(200,169,110,.18), 0 0 28px rgba(200,169,110,.14); }
  100% { filter:brightness(1); box-shadow:none; }
}
@keyframes nvLedBlink { 0%,100%{opacity:1;} 50%{opacity:.1;} }
@keyframes nvGlitchTrack {
  0%,90%,100% { transform:none; }
  92% { transform:translateX(2px); text-shadow:2px 0 var(--nv-gold),-2px 0 var(--nv-amber); }
  94% { transform:translateX(-2px); }
  96% { transform:none; }
}

/* ══ RESPONSIVE MOBILE ══ */
@media (max-width: 640px) {
  .nerve-wrap { width:100%; }
  .s-player { padding: 24px 16px; }
  .nv-player-wrap .mega-bracket { display:none; }
  .nv-baffle { display:none; }
  .nv-frame {
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  }
  .nv-body { height:auto; }
  .nv-screen { padding:8px 10px 7px; }
  .nv-sc-info { max-width:200px; }
  .nv-sc-track { font-size:14px; }
  .nv-sc-bpm-num { font-size:22px; }
  .nv-ctrl-bar { height:auto; flex-wrap:wrap; padding:4px 0; }
  .nv-vol-sec { min-width:0; width:100%; border-right:none; border-bottom:1px solid rgba(200,169,110,.06); padding:8px 12px; }
  .nv-transport { width:100%; padding:6px 0; gap:4px; flex-wrap:wrap; }
  .nv-btn-t { font-size:8px; padding:4px 8px; }
  .nv-speed-sec { width:100%; border-left:none; border-top:1px solid rgba(200,169,110,.06); padding:6px 12px; }
  .nv-sc-ecg { height:28px; }
  .nv-ecg-canvas { height:28px; }
  .nv-sc-prog-ascii { font-size:6px; }
}
@media (max-width: 380px) {
  .nv-btn-t { font-size:7px; padding:4px 6px; }
  .nv-transport { gap:3px; }
}

/* ══════════════════════════════════════════════════════
   MOBILE — refonte complète lecteur + Mazenko + images
   ══════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── Titres de section — overflow clip + fonte réduite ── */
  .v2-sec-head { overflow-x: hidden; }
  .v2-title {
    font-size: clamp(28px, 8vw, 52px) !important;
    white-space: nowrap; overflow: hidden;
    line-height: 1;
  }
  /* Glitch hover : désactivé sur touch (iOS `:hover` reste collé au toucher) */
  .v2-title:hover { animation: none !important; }

  /* Contact "LET'S WORK." — plus compact */
  .contact-title { font-size: clamp(40px, 12vw, 72px) !important; line-height: .9; }

  /* ── Mazenko titre — plus petit, pas de clip ── */
  .s-mazenko .v2-sec-head { overflow: visible; }
  .s-mazenko .v2-num { display: none; } /* filigrane masqué sur mobile */
  .v2-title--long { font-size: clamp(16px, 6.2vw, 32px) !important; }
  .s-mazenko { padding-top: calc(var(--sec-pad) + 28px); }
  .s-mazenko::before { top: -28px; height: 28px; }

  /* ── Badges pro/ue5 — empilés proprement ── */
  .pro-badge, .labo-badge { display: block; margin-top: 6px; }

  /* ── Mazenko grid — 1 colonne, items visibles + image non filtrée ── */
  .mazenko-grid { grid-template-columns: 1fr; gap: 6px; }
  .mazenko-item { opacity: 1 !important; transform: none !important; background: #0a0a0a; }
  .mazenko-item img { filter: brightness(0.9) !important; } /* château visible sur mobile */
  .mazenko-item video { width: 100%; height: auto; min-height: 180px; object-fit: cover; }

  /* ── CLICK TO PLAY hint ── */
  .mz-play-hint span {
    letter-spacing: .12em; padding: 10px 14px;
    font-size: 8px; white-space: nowrap;
  }

  /* ══ LECTEUR NERVE — refonte mobile ══ */
  .s-player { padding: 20px 10px 30px; }
  .nerve-wrap { width: 100%; }
  .nv-frame {
    clip-path: none !important;
    border-radius: 4px;
  }

  /* Barre de statut */
  .nv-status-bar { font-size: 7px; padding: 6px 10px; flex-wrap: wrap; gap: 4px; }
  .nv-sb-mid { display: none; } /* track name — already on screen */

  /* Écran central */
  .nv-screen { padding: 12px 14px 10px; min-height: 110px; }
  .nv-sc-track { font-size: 15px; }
  .nv-sc-bpm-num { font-size: 28px; }
  .nv-sc-prog-ascii { font-size: 7px; gap: 4px; }

  /* ── Barre de contrôle ── */
  .nv-ctrl-bar {
    height: auto; flex-direction: column;
    padding: 0; gap: 0;
  }

  /* Volume — slider visuel plein height */
  .nv-vol-sec {
    width: 100%; min-width: 0;
    border-right: none; border-bottom: 1px solid rgba(200,169,110,.08);
    padding: 14px 16px; gap: 10px;
    display: flex; align-items: center;
  }
  .nv-vol-label { font-size: 9px; min-width: 36px; }
  .nv-vol-track {
    flex: 1;
    height: 22px !important;
    padding: 0 !important; margin: 0 !important;
    background: rgba(200,169,110,.07) !important;
    border: 1px solid rgba(200,169,110,.12);
    border-radius: 3px;
    overflow: hidden;
  }
  .nv-vol-fill {
    height: 100% !important;
    border-radius: 3px !important;
  }
  .nv-vol-fill::after {
    right: 0 !important; width: 4px !important; height: 100% !important;
    border-radius: 0 !important; background: var(--nv-gold) !important;
  }
  .nv-vol-num { font-size: 9px; min-width: 26px; text-align: right; }

  /* Boutons transport */
  .nv-transport {
    width: 100%; padding: 10px 12px; gap: 6px;
    justify-content: center; flex-wrap: nowrap;
  }
  .nv-btn-help { display: none; } /* clavier inutile sur mobile */
  .nv-btn-t {
    font-size: 9px !important; letter-spacing: .08em;
    padding: 0 10px !important;
    min-height: 46px !important;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    flex: 1;
  }
  .nv-btn-play {
    font-size: 10px !important;
    flex: 2;
  }

  /* Speed */
  .nv-speed-sec {
    width: 100%; border-left: none;
    border-top: 1px solid rgba(200,169,110,.08);
    padding: 10px 16px; gap: 6px;
    flex-wrap: wrap;
  }
  .nv-btn-spd {
    font-size: 8px; padding: 8px 10px;
    min-height: 38px; flex: 1;
  }
  .nv-spd-label { width: 100%; margin-bottom: 2px; }

  /* LEDs */
  .nv-led-row { position: static; transform: none; justify-content: center; padding: 4px 0; }
}

/* ── CONTACT CTA BUTTON ── */
.contact-cta-btn {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: .35em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 18px 48px;
  position: relative;
  transition: all .3s;
  text-decoration: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  box-shadow: 0 0 20px rgba(200,169,110,.12), inset 0 0 20px rgba(200,169,110,.03);
  animation: ctaGlow 2.5s ease-in-out infinite;
}
.contact-cta-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 40px rgba(200,169,110,.4), inset 0 0 30px rgba(200,169,110,.1);
}
@keyframes ctaGlow {
  0%,100% { box-shadow: 0 0 20px rgba(200,169,110,.12), inset 0 0 20px rgba(200,169,110,.03); }
  50%     { box-shadow: 0 0 40px rgba(200,169,110,.28), inset 0 0 30px rgba(200,169,110,.07); }
}

/* ══════════════════════════════════════════════════════
   FLOATING COMMISSION BADGE
   ══════════════════════════════════════════════════════ */
.commission-badge {
  position: fixed;
  bottom: 28px;
  right: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(2,1,0,.88);
  border: 1px solid var(--accent);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--accent);
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background .2s, color .2s, transform .2s;
}
.commission-badge:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}
.commission-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: commPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.commission-badge:hover .commission-dot { background: #000; }
.commission-saved { margin-left: 6px; opacity: .5; font-size: 8px; }
@keyframes commPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .35; transform: scale(.65); }
}
@media (max-width: 600px) {
  .commission-badge { bottom: 16px; right: 12px; font-size: 8px; padding: 8px 12px; }
}

/* ══════════════════════════════════════════════════════
   CUSTOM CURSOR
   ══════════════════════════════════════════════════════ */
@media (pointer: fine) {
  body { cursor: none; }
  a, button, [role="button"], .chara-item, .g-item, .commission-badge { cursor: none; }
}
.kbx-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s ease, height .15s ease, opacity .2s ease, background .2s ease;
  will-change: transform;
}
.kbx-cursor.cursor-hover {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--accent);
  opacity: .7;
}
.kbx-cursor.cursor-hidden { opacity: 0; }
@media (pointer: coarse) { .kbx-cursor { display: none; } }

/* ══════════════════════════════════════════════════════
   SCROLL REVEALS
   ══════════════════════════════════════════════════════ */
[data-scroll] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.4,0,.2,1), transform .75s cubic-bezier(.4,0,.2,1);
}
[data-scroll].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   GALLERY HOVER TITLE OVERLAY
   ══════════════════════════════════════════════════════ */
.chara-item { position: relative; overflow: hidden; }
.chara-overlay-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(2,1,0,.85));
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: .2em;
  color: var(--accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.chara-item:hover .chara-overlay-title {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   ABOUT WIP
   ══════════════════════════════════════════════════════ */
.about-wip {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--muted);
  margin-top: 10px;
}
.about-wip .wip-label {
  color: var(--accent);
  opacity: .7;
}
