/* ═══════════════════════════════════════════════════════════════
   WA ASCENSION v2 — Cinematic homepage
   Single full-bleed WebGL canvas + DOM overlays.
   La caméra Three.js fait le scrollytelling, le DOM glisse au-dessus.
   ═══════════════════════════════════════════════════════════════ */

/* ────── Preloader ────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: all;
}
.preloader__inner {
  text-align: center;
  position: relative;
  width: min(80vw, 480px);
}
.preloader__brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.preloader__count {
  font-family: var(--font-mono);
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.preloader__count .pct {
  color: var(--accent);
  font-size: 0.4em;
  vertical-align: top;
  margin-left: 8px;
}
.preloader__bar-wrap {
  margin-top: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.preloader__bar {
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.preloader__label {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}
.preloader.is-done {
  pointer-events: none;
}

/* ────── Custom cursor ────── */
@media (hover: hover) and (pointer: fine) {
  html { cursor: none; }
  a, button, [data-cursor], input, textarea, select {
    cursor: none;
  }
  .cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
    will-change: transform;
  }
  .cursor__dot {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: transform 0.18s var(--ease-out-quart), opacity 0.18s;
  }
  .cursor__ring {
    position: absolute;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid #fff;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease-out-quart), height 0.25s var(--ease-out-quart), border-color 0.25s;
    will-change: transform, width, height;
  }
  .cursor.is-hover .cursor__ring {
    width: 56px; height: 56px;
    border-color: var(--accent);
    mix-blend-mode: normal;
  }
  .cursor.is-hover .cursor__dot {
    transform: translate(-50%, -50%) scale(0);
  }
  .cursor.is-press .cursor__ring {
    width: 24px; height: 24px;
  }
  .cursor.is-hidden { opacity: 0; }
}

/* ────── Global cinematic canvas ────── */
.three-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.three-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ────── Grain overlay (whole page) ────── */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px;
  animation: grain-jitter 8s steps(8) infinite;
}
@keyframes grain-jitter {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-5%, -5%); }
  20%  { transform: translate(-15%, 5%); }
  30%  { transform: translate(7%, -15%); }
  40%  { transform: translate(-5%, 15%); }
  50%  { transform: translate(-15%, 5%); }
  60%  { transform: translate(15%, 0%); }
  70%  { transform: translate(0%, 15%); }
  80%  { transform: translate(-15%, 5%); }
  90%  { transform: translate(10%, 5%); }
  100% { transform: translate(0, 0); }
}

/* ────── DOM scenes overlay ────── */
.is-front { overflow-x: clip; }
.is-front body { position: relative; }
.is-front .site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
.is-front .site-header--scrolled {
  background: color-mix(in srgb, #000 70%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}

.scenes {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.scenes > * { pointer-events: auto; }
.scenes a, .scenes button, .scenes input, .scenes textarea, .scenes select {
  pointer-events: auto;
}

/* Each "scene" is a fixed-height area that drives the camera. */
.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* ────── SCENE 1 — APPROCHE ────── */
.scene--approach { min-height: 120vh; }
.scene--approach .scene__inner {
  text-align: center;
  width: 100%;
  padding: 0 24px;
}
.cine-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.cine-eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-accent 2s ease-in-out infinite;
}
@keyframes pulse-accent {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.cine-title {
  font-size: clamp(44px, 8.5vw, 132px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: #fff;
  font-feature-settings: 'cv11', 'ss01';
}
.cine-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.cine-title .word > span {
  display: inline-block;
}
.cine-title em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.cine-sub {
  margin: 36px auto 0;
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  line-height: 1.55;
}
.cine-scroll-cue {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  text-align: center;
}
.cine-scroll-cue::after {
  content: "";
  display: block;
  width: 1px; height: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
  margin: 16px auto 0;
  transform-origin: top;
  animation: scroll-cue 2.5s ease-in-out infinite;
}
@keyframes scroll-cue {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ────── SCENE 2 — MANIFESTO ────── */
.scene--manifesto {
  min-height: 130vh;
  align-items: center;
}
.scene--manifesto .scene__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.cine-manifesto {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(32px, 5.5vw, 80px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--cream);
}
.cine-manifesto strong {
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  text-shadow: 0 0 30px rgba(227, 30, 36, 0.4);
}
.cine-manifesto .word { display: inline-block; }
.cine-manifesto-note {
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

/* ────── SCENE 3 — ASCENSION ────── */
.scene--ascend {
  min-height: 220vh;
}
.scene--ascend .scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 120px 48px 0;
}
.cine-camps {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}
.cine-camps__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cine-camp-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.3;
  transition: opacity 0.4s var(--ease-out-quart);
}
.cine-camp-row.is-active {
  opacity: 1;
}
.cine-camp-row.is-active .cine-camp-row__name {
  color: var(--accent);
}
.cine-camp-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cine-camp-row__num {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.45);
}
.cine-camp-row__name {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.3s ease;
}
.cine-camp-row__desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-top: 4px;
  max-width: 480px;
}
.cine-ascend__head {
  width: 100%;
  margin-bottom: 24px;
}
.cine-ascend__head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 760px;
}

/* ────── SCENE 4 — SOMMET (chiffres) ────── */
.scene--summit {
  min-height: 140vh;
}
.scene--summit .scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 48px;
}
.cine-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 900px) {
  .cine-stats { grid-template-columns: repeat(4, 1fr); }
}
.cine-stats__head {
  grid-column: 1 / -1;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cine-stats__head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.5vw, 44px);
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1;
  max-width: 540px;
}
.cine-stat {
  padding: 56px 32px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
@media (max-width: 899px) {
  .cine-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
  .cine-stat:nth-child(even) { border-right: none; }
  .cine-stat:nth-child(2),.cine-stat:nth-child(3) { border-bottom: 1px solid rgba(255,255,255,.08); }
}
.cine-stat:last-child { border-right: none; }
.cine-stat__num {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.cine-stat__num .unit {
  color: var(--accent);
  font-size: 0.45em;
  text-shadow: 0 0 20px rgba(227, 30, 36, 0.5);
}
.cine-stat__label {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.55);
}
.cine-stat__sub {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.55;
  max-width: 220px;
}

/* ────── SCENE 5 — ÉRUPTION (transition) ────── */
.scene--eruption {
  min-height: 150vh;
}
.scene--eruption .scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.cine-eruption-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 11vw, 180px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 0 60px rgba(227, 30, 36, 0.6), 0 0 120px rgba(227, 30, 36, 0.3);
}

/* ────── SCENE 6 — CŒUR MAGNÉTIQUE (équipe) ────── */
.scene--core {
  min-height: 220vh;
  background:
    radial-gradient(ellipse at center, rgba(140, 15, 20, 0.4) 0%, transparent 70%);
}
.scene--core .scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.cine-core__intro {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}
.cine-core__intro h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 96px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--cream);
}
.cine-core__intro p {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(244, 237, 227, 0.6);
  text-transform: uppercase;
}
.cine-core__team {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 80px 32px;
  pointer-events: none;
}
.cine-core__team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1200px;
  width: 100%;
}
.cine-member {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 220, 220, 0.18);
  padding: 24px;
  pointer-events: auto;
  /* Visible by default — GSAP uses .from() to animate from invisible state */
}
.cine-member.is-lead {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 200, 200, 0.3);
}
.cine-member__photo {
  aspect-ratio: 1 / 1.15;
  background: linear-gradient(135deg, rgba(60, 20, 25, 0.6) 0%, rgba(20, 5, 5, 0.6) 100%);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 220, 220, 0.4);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 220, 220, 0.1);
}
.cine-member__name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.cine-member__role {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
  margin-top: 6px;
}
.cine-member__bio {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(244, 237, 227, 0.65);
  line-height: 1.55;
}

/* ────── SCENE 7 — CASES (horizontal) ────── */
.scene--cases {
  position: relative;
  background: #000;
  min-height: 380vh;
}
.scene--cases .scene__sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cine-cases__head {
  flex-shrink: 0;
  padding: 80px 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.cine-cases__head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 56px);
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1;
  max-width: 640px;
}
.cine-cases__progress {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}
.cine-cases__track {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 48px;
  gap: 24px;
  will-change: transform;
}
.cine-case {
  flex: 0 0 420px;
  height: 72%;
  max-height: 520px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}
.cine-case:hover {
  border-color: rgba(227, 30, 36, 0.5);
  background: rgba(227, 30, 36, 0.04);
  transform: translateY(-4px);
}
.cine-case__niche {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.cine-case__num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin: 28px 0 16px;
}
.cine-case__num .unit { color: var(--accent); font-size: 0.5em; }
.cine-case__name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.cine-case__role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cine-case__quote {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-top: 18px;
}

/* ────── SCENE 8 — CTA FINAL ────── */
.scene--cta {
  position: relative;
  padding: 200px 24px 220px;
  text-align: center;
  background: #000;
  overflow: hidden;
  min-height: 100vh;
}
.cine-cta__eyebrow { margin-bottom: 40px; }
.cine-cta__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 144px);
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--cream);
  max-width: 1100px;
  margin: 0 auto;
}
.cine-cta__title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(227, 30, 36, 0.5);
}
.cine-cta__sub {
  margin: 48px auto 0;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 1.55;
}
.cine-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 64px;
  padding: 24px 40px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: none;
  position: relative;
  transition: background 0.25s ease;
}
.cine-cta__button::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--accent);
  z-index: -1;
  opacity: 0;
  filter: blur(24px);
  transition: opacity 0.35s ease;
}
.cine-cta__button:hover { background: var(--accent-hover); }
.cine-cta__button:hover::after { opacity: 0.9; }
.cine-cta__button svg { width: 16px; height: 16px; }

/* ────── A11y ────── */
@media (prefers-reduced-motion: reduce) {
  .grain-overlay,
  .cine-scroll-cue::after,
  .cine-eyebrow .dot {
    animation: none !important;
  }
}

/* ────── Safety: ensure header & content above WebGL ────── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.is-front main#main { padding-top: 0; }
.is-front .site-header {
  position: fixed;
}
