/* =========================================================
   WAVERUN MEDIA — FEUILLE DE STYLE PRINCIPALE
   Direction : noir profond, bandes horizontales « slice »,
   accents violet (#8c6bff) et orange (#ffa83e).
   ========================================================= */

@font-face {
  font-family: "JJ Cinema";
  src: url("fonts/JJ-Cinema.woff") format("woff"), url("fonts/JJ-Cinema.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #050505;
  --ink-2: #0d0d0e;
  --paper: #f5f4ef;
  --muted: #9b9b96;
  --purple: #8c6bff;
  --orange: #ffa83e;
  --line: rgba(255, 255, 255, 0.14);

  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "JJ Cinema", "Bebas Neue", Impact, "Arial Narrow", sans-serif;

  --gutter: clamp(18px, 3.4vw, 56px);
  --ease: cubic-bezier(0.22, 0.68, 0, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

img,
video,
svg {
  max-width: 100%;
}

img {
  display: block;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}

::selection {
  background: var(--purple);
  color: #fff;
}

.site-shell {
  overflow: clip;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 99px;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* =========================================================
   PRÉCHARGEUR + BARRE DE PROGRESSION + CURSEUR
   ========================================================= */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: var(--ink);
  color: var(--paper);
  transition: transform 1s var(--ease-io);
  /* Sécurité : si le JS ne répond pas, le préchargeur disparaît seul. */
  animation: preloader-failsafe 0.01s 6s forwards;
}

.preloader .sliced-emblem {
  width: clamp(120px, 14vw, 190px);
}

.preloader-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  text-indent: 0.5em;
  color: var(--muted);
  animation: name-in 1s var(--ease) 0.6s both;
}

@keyframes name-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.preloader.is-done {
  transform: translateY(-100%);
  pointer-events: none;
}

@keyframes preloader-failsafe {
  to {
    visibility: hidden;
    opacity: 0;
  }
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: 2px;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
}

.cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cursor-ring {
  position: absolute;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: scale(0);
  transition: transform 0.45s var(--ease);
}

.cursor.is-label .cursor-ring {
  transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }
}

/* =========================================================
   EFFET « SLICE » — texte et emblème découpés en bandes
   ========================================================= */

.sliced {
  position: relative;
  display: block;
}

.slice-base {
  display: block;
}

.has-slices .slice-base {
  color: transparent;
}

.slice {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  user-select: none;
  clip-path: inset(var(--t) 0 calc(var(--b) + var(--gap, 1px)) 0);
  transform: translateX(calc(var(--glitch, 0) * var(--k, 0) * 1px));
  will-change: transform;
}

.has-slices .slice {
  opacity: 0;
  translate: calc(var(--k, 0) * 110px) 0;
  transition:
    opacity 0.9s ease calc(var(--i) * 55ms),
    translate 1.2s var(--ease) calc(var(--i) * 55ms);
}

.is-ready .sliced.is-in .slice {
  opacity: 1;
  translate: 0 0;
}

.sliced-emblem {
  display: block;
  aspect-ratio: 1 / 1;
  color: currentColor;
}

.sliced-emblem svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.sliced-emblem .band {
  transform: translateX(
    calc((var(--glitch, 0) + var(--idle, 0)) * var(--k, 0) * 0.4px)
  );
}

.has-slices .sliced-emblem .band {
  opacity: 0;
  translate: calc(var(--k, 0) * 70px) 0;
  transition:
    opacity 0.8s ease calc(var(--i) * 45ms),
    translate 1.1s var(--ease) calc(var(--i) * 45ms);
}

.preloader .sliced-emblem.is-in .band,
.is-ready .sliced-emblem.is-in .band {
  opacity: 1;
  translate: 0 0;
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 0 var(--gutter);

  border-bottom: 1px solid transparent;
  transition:
    transform 0.55s var(--ease),
    border-color 0.4s ease;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.header.is-scrolled::before {
  opacity: 1;
}

.header.is-hidden {
  transform: translateY(-100%);
}

.brand {
  position: relative;
  z-index: 65;
  display: inline-flex;
  align-items: center;
  color: var(--paper);
  transition: transform 0.5s var(--ease), color 0.3s ease;
}

.brand:hover {
  transform: scale(1.06);
  color: #fff;
}

.brand-mark {
  width: 42px;
  height: 42px;
  fill: currentColor;
  transition: transform 0.9s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(60deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 4.2vw, 76px);
}

.nav-link {
  position: relative;
  padding: 10px 0;

  color: #e9e9e4;
  background: none;
  border: 0;

  font-size: 12px;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav-link:hover,
.nav-link.is-current,
.dropdown-toggle[aria-expanded="true"] {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-dropdown {
  position: relative;
}

.chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.35s var(--ease);
}

.dropdown-toggle[aria-expanded="true"] .chevron {
  transform: translateY(0) rotate(225deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: -18px;

  min-width: 210px;
  padding: 10px;

  background: rgba(16, 16, 18, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: top right;

  transition:
    opacity 0.3s ease,
    transform 0.4s var(--ease),
    visibility 0.3s ease;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown-menu a {
  display: block;
  padding: 11px 14px;

  color: #c9c9c4;
  font-size: 12.5px;
  border-radius: 8px;

  transition: color 0.25s ease, background 0.25s ease, padding 0.3s var(--ease);
}

.dropdown-menu a:hover {
  color: #fff;
  background: rgba(140, 107, 255, 0.18);
  padding-left: 20px;
}

.hamburger {
  display: none;
  position: relative;
  z-index: 65;

  width: 42px;
  height: 42px;
  padding: 0;

  background: none;
  border: 0;
}

.hamburger span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}

.hamburger span:first-child {
  top: 17px;
}

.hamburger span:last-child {
  top: 24px;
}

.hamburger[aria-expanded="true"] span:first-child {
  top: 20.5px;
  transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] span:last-child {
  top: 20.5px;
  transform: rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  min-height: 100svh;
  padding: 140px var(--gutter) clamp(54px, 7vw, 96px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: grayscale(1) contrast(1.15) brightness(0.8);
}

.hero-stripes {
  position: absolute;
  inset: -20% 0 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16) 0,
    rgba(255, 255, 255, 0.16) 11px,
    rgba(255, 255, 255, 0.02) 11px,
    rgba(255, 255, 255, 0.02) 25px
  );
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 88%);
  transform: translate3d(0, calc(var(--sy, 0) * 0.18px), 0);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--ink) 4%, rgba(5, 5, 5, 0.55) 38%, transparent 70%),
    radial-gradient(ellipse at 50% 28%, transparent 25%, rgba(5, 5, 5, 0.6) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.hero-emblem {
  position: absolute;
  left: 50%;
  top: clamp(100px, 17vh, 190px);
  width: clamp(160px, 21vw, 300px);
  color: rgba(255, 255, 255, 0.5);
  margin-left: calc(clamp(160px, 21vw, 300px) / -2);
  translate: 0 calc(var(--sy, 0) * -0.14px);
  opacity: max(0, calc(1 - var(--sy, 0) / 620));
}

.hero-content {
  position: relative;
  width: 100%;
  opacity: max(0, calc(1 - var(--sy, 0) / 900));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8.3vw, 134px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0.03em;
  padding-bottom: 0.06em;
  --gap: 1.5px;
}

.hero-sub {
  max-width: 520px;
  margin-top: clamp(18px, 2.2vw, 30px);
  color: #cfcfca;
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.65;
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(54px, 7vw, 96px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #cfcfca;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-cue span {
  position: relative;
  display: block;
  width: 1px;
  height: 54px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(-100%);
  animation: cue 2.2s var(--ease-io) infinite;
}

@keyframes cue {
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* =========================================================
   SECTIONS — BASES COMMUNES
   ========================================================= */

.h2 {
  font-family: var(--font-display);
  font-size: clamp(44.2px, 6vw, 91px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
}

.center {
  text-align: center;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  margin-bottom: clamp(26px, 3.4vw, 48px);
}

/* Titres découpés mot par mot */

.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.split .wi {
  display: inline-block;
  transform: translateY(112%) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1s var(--ease) calc(var(--wi, 0) * 55ms);
}

.split.is-visible .wi {
  transform: none;
}

/* Apparitions au défilement */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease) calc(var(--d, 0) * 90ms),
    transform 0.9s var(--ease) calc(var(--d, 0) * 90ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Boutons */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;

  padding: 14px 28px;
  border-radius: 99px;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.4s ease, transform 0.5s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  transform: translateY(102%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transition: transform 0.55s var(--ease), border-radius 0.55s var(--ease);
}

.btn:hover::before {
  transform: none;
  border-radius: 0;
}

.btn-purple {
  background: var(--purple);
  color: #fff;
}

.btn-orange {
  background: var(--orange);
  color: #120a00;
}

.btn:hover {
  color: var(--ink);
}

/* =========================================================
   STORIES IN MOTION + RAILS (carrousels)
   ========================================================= */

.stories {
  padding: clamp(70px, 8vw, 120px) 0 clamp(50px, 6vw, 90px);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 22px;
}

.slider-counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.slider-counter b {
  color: var(--paper);
  font-weight: 500;
}

.slider-counter i {
  font-style: normal;
  opacity: 0.5;
}

.slider-arrows {
  display: flex;
  gap: 10px;
}

.slider-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;

  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 17px;

  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.45s var(--ease),
    opacity 0.3s ease;
}

.slider-arrow:hover:not(:disabled) {
  background: var(--purple);
  border-color: var(--purple);
  transform: scale(1.08);
}

.slider-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

[data-carousel].no-scroll .slider-controls {
  visibility: hidden;
}

.rail {
  position: relative;
  display: flex;
  gap: clamp(10px, 1.2vw, 18px);
  overflow-x: auto;
  padding: 0 var(--gutter) 6px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.rail img {
  -webkit-user-drag: none;
  user-select: none;
}

.story-card {
  flex: 0 0 clamp(250px, 27.5vw, 440px);
  scroll-snap-align: start;
}

.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--g1, #24242a), var(--g2, #0b0b0d));
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s ease, opacity 0.5s ease;
}

.media img.is-failed {
  opacity: 0;
}

.story-image {
  aspect-ratio: 0.74;
}

.story-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 7px,
    rgba(5, 5, 5, 0.55) 7px,
    rgba(5, 5, 5, 0.55) 9px
  );
  transition: opacity 0.5s ease;
}

.story-card:hover .story-image img,
.story-card:focus-within .story-image img {
  transform: scale(1.07);
}

.story-card:hover .story-image::after {
  opacity: 1;
  animation: scan 1.4s linear infinite;
}

@keyframes scan {
  to {
    background-position: 0 18px;
  }
}

.play-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  z-index: 2;

  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  font-size: 17px;

  transform: scale(0.4) rotate(-45deg);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.35s ease;
}

.story-card:hover .play-button,
.story-card:focus-within .play-button {
  transform: none;
  opacity: 1;
}

.story-info {
  padding: 16px 2px 0;
}

.story-info h3 {
  position: relative;
  display: inline;
  font-family: var(--font-display);
  font-size: clamp(19.5px, 1.6vw, 23.4px);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.3;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}

.story-card:hover .story-info h3 {
  background-size: 100% 1px;
}

.story-info p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.01em;
}

/* =========================================================
   PARTENAIRES — marquee
   ========================================================= */

.partners {
  padding: clamp(24px, 3vw, 44px) 0 clamp(60px, 7vw, 110px);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: clamp(54px, 8vw, 128px);

  color: #fff;
  opacity: 0.82;
  white-space: nowrap;
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
}

.logo:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.logo small {
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.22em;
  opacity: 0.7;
}

.logo-kwill {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0.14em;
}

.logo-kwill i {
  font-size: 34px;
  font-style: italic;
  line-height: 1;
}

.logo-adtv {
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.09em;
  transform: skewX(-6deg);
}

.logo-nba {
  font-family: var(--font-body);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.logo-nba i {
  width: 9px;
  height: 36px;
  background: #fff;
  border-radius: 2px;
  transform: skewX(-10deg);
}

.logo-lilly {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
}

.logo-popart {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.logo-popart i {
  display: block;
  width: 17px;
  height: 17px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  position: relative;
}

.logo-popart i::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}

/* =========================================================
   VISION
   ========================================================= */

.vision {
  padding: 0 clamp(10px, 1.6vw, 26px);
}

.vision-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: grid;
  place-items: center;
  min-height: clamp(560px, 82vh, 840px);
  padding: 100px var(--gutter);
  border-radius: clamp(18px, 2.4vw, 36px);
  text-align: center;
  background: #6a3d26;
}

.js .vision-card {
  clip-path: inset(7% 5% round 36px);
  transition: clip-path 1.5s var(--ease);
}

.js .vision-card.is-visible {
  clip-path: inset(0 0 round 36px);
}

.vision-bg {
  position: absolute;
  inset: -10% 0;
  z-index: -3;
  background: url("assets/projets.jpg") center / cover no-repeat;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.06);
}

.vision-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at center, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, 0.1) 75%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.5), transparent 55%);
}

.vision-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  height: 130px;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    var(--ink) 0,
    var(--ink) 12px,
    transparent 12px,
    transparent 26px
  );
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}

.vision-content {
  max-width: 660px;
}

.vision-content .h2 {
  font-size: clamp(38px, 5.2vw, 78px);
}

.vision-content p {
  max-width: 540px;
  margin: clamp(18px, 2vw, 28px) auto clamp(24px, 2.6vw, 36px);
  color: #ececE6;
  font-size: clamp(13.5px, 1.1vw, 16px);
  line-height: 1.7;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   WE MOVE WITH THE PEOPLE — panneaux
   ========================================================= */

.people {
  padding: clamp(80px, 9vw, 140px) 0 clamp(70px, 8vw, 120px);
}

.people .sub {
  max-width: 560px;
  margin: 18px auto 0;
  padding: 0 var(--gutter);
  color: #cfcfca;
  font-size: clamp(13px, 1.05vw, 15px);
}

.panels {
  display: flex;
  gap: 10px;
  width: min(100% - var(--gutter) * 2, 1120px);
  height: clamp(380px, 52vw, 660px);
  margin: clamp(34px, 4.4vw, 60px) auto 0;
}

.panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--g1, #26262c), var(--g2, #0a0a0c));
  cursor: pointer;
  transition: flex-grow 0.9s var(--ease);
}

.panel.is-active {
  flex-grow: 3.6;
}

.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.2s var(--ease), filter 0.7s ease, opacity 0.5s ease;
}

.panel img.is-failed {
  opacity: 0;
}

.panels.has-active .panel:not(.is-active) img {
  filter: brightness(0.5) saturate(0.7);
}

.panel.is-active img {
  transform: scale(1);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.7), transparent 45%);
  pointer-events: none;
}

.panel figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;

  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;

  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;

  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.7s var(--ease);
}

.panel figcaption b {
  color: var(--purple);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.panel.is-active figcaption {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}

/* =========================================================
   SEAMLESS DIGITAL FLOW
   ========================================================= */

.digital {
  padding: clamp(50px, 6vw, 90px) 0 clamp(80px, 9vw, 140px);
}

.social-card {
  flex: 0 0 clamp(230px, 23vw, 370px);
  scroll-snap-align: start;
}

.social-media {
  position: relative;
  display: block;
  aspect-ratio: 1.06;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--g1, #26262c), var(--g2, #0a0a0c));
  transition: transform 0.4s var(--ease), box-shadow 0.5s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.social-card:hover .social-media {
  box-shadow: 0 30px 60px -28px rgba(140, 107, 255, 0.55);
}

.social-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease), opacity 0.5s ease;
}

.social-media img.is-failed {
  opacity: 0;
}

.social-card:hover .social-media img {
  transform: scale(1.1);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;

  background: rgba(5, 5, 5, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);

  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.social-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px 0;
  font-family: var(--font-display);
  font-size: 15px;
}

.social-label span {
  color: var(--muted);
  transition: transform 0.45s var(--ease), color 0.3s ease;
}

.social-card:hover .social-label span {
  color: var(--purple);
  transform: translate(3px, -3px);
}

/* =========================================================
   READY TO MOVE FORWARD — CTA + éventail
   ========================================================= */

.cta {
  position: relative;
  padding: clamp(60px, 7vw, 110px) var(--gutter) 0;
  text-align: center;
  overflow: hidden;
}

.cta-emblem {
  width: 64px;
  margin: 0 auto 26px;
  color: var(--paper);
  animation: spin-slow 14s linear infinite;
}

.cta-emblem svg {
  width: 100%;
  fill: currentColor;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.cta .h2 {
  font-size: clamp(38px, 5.2vw, 76px);
}

.cta .btn {
  margin-top: clamp(24px, 2.6vw, 38px);
}

.fan {
  --w: clamp(120px, 17vw, 250px);
  --R: calc(var(--w) * 2.2);
  position: relative;
  height: calc(var(--w) * 1.75);
  margin-top: clamp(34px, 5vw, 80px);
  overflow: hidden;
  --mx: 0;
}

.fan-card {
  position: absolute;
  left: 50%;
  bottom: calc(var(--w) * -0.1);
  width: var(--w);
  aspect-ratio: 0.78;
  overflow: hidden;

  border-radius: 14px;
  background: linear-gradient(145deg, var(--g1, #333), var(--g2, #111));

  transform-origin: 50% calc(100% + var(--R));
  transform: translateX(-50%) rotate(calc(var(--r) + var(--mx) * 2.6deg)) scale(1);
  transition:
    transform 1.4s var(--ease) calc(var(--n) * 70ms),
    opacity 0.8s ease calc(var(--n) * 70ms),
    filter 0.4s ease;
}

.js .fan:not(.is-visible) .fan-card {
  opacity: 0;
  transform: translateX(-50%) rotate(0deg) scale(0.86);
}

.fan.is-visible .fan-card:hover {
  filter: brightness(1.12);
  transition-delay: 0s;
}

.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fan-card img.is-failed {
  opacity: 0;
}

.fan-card[data-tone]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tone);
  mix-blend-mode: multiply;
}

.fan-card[data-tone] img {
  filter: grayscale(1) contrast(1.1);
}

.fan::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 9px,
      var(--ink) 9px,
      var(--ink) 13px
    ),
    linear-gradient(0deg, var(--ink) 0%, rgba(5, 5, 5, 0.55) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(0deg, #000 40%, rgba(0, 0, 0, 0.75));
  mask-image: linear-gradient(0deg, #000 40%, rgba(0, 0, 0, 0.75));
}

.cta-links {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 28px;
  font-size: 12px;
  color: #cfcfca;
}

.cta-links a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.5s var(--ease), color 0.3s ease;
}

.cta-links a:hover {
  color: #fff;
  background-size: 100% 1px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  position: relative;
  padding: 0 var(--gutter);
  overflow: hidden;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  color: #8e8e89;
  font-size: 11px;
}

.footer-bottom .brand {
  color: var(--paper);
}

.footer-note {
  letter-spacing: 0.15em;
}

.footer-note i {
  margin-left: 5px;
  color: var(--orange);
  font-style: normal;
}

.wordmark {
  margin: clamp(20px, 3vw, 40px) calc(var(--gutter) * -0.35) 0;
  font-family: var(--font-display);
  font-size: 12vw;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: #4d4d4d;
  --gap: 2px;
  height: 0.8em;
  overflow: hidden;
  user-select: none;
}

.wordmark .slice-base {
  display: inline-block;
}

/* =========================================================
   PAGES SECONDAIRES (À propos, Projets)
   ========================================================= */

body {
  transition: opacity 0.4s ease;
}

body.is-leaving {
  opacity: 0;
}

.nav-link.is-current::after {
  transform: scaleX(1);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--paper);
}

.hero--page {
  min-height: 78svh;
  padding-top: 150px;
}

.hero--page .hero-emblem {
  left: auto;
  right: var(--gutter);
  top: clamp(110px, 18vh, 170px);
  margin-left: 0;
  width: clamp(110px, 13vw, 200px);
}

.hero--page .hero-title {
  font-size: clamp(64px, 14vw, 230px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--purple);
}

.section {
  padding: clamp(70px, 9vw, 140px) var(--gutter) 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label b {
  color: var(--purple);
  font-weight: 500;
}

/* Texte qui s'allume mot à mot au défilement */

.scrub {
  max-width: 1100px;
  font-family: var(--font-display);
  font-size: clamp(33.8px, 4.8vw, 72.8px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.03em;
}

.scrub .sw {
  opacity: 0.16;
  transition: opacity 0.4s ease;
}

.scrub .sw.is-lit {
  opacity: 1;
}

/* À propos */

.about-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) 1.22fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}

.portrait {
  position: sticky;
  top: 110px;
  aspect-ratio: 0.8;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(160deg, #3d2f5c, #0b0a10);
}

.portrait-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: clamp(117px, 19.5vw, 286px);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.5s ease;
}

.portrait img.is-failed {
  opacity: 0;
}

.portrait:hover img {
  transform: scale(1.05);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent 9px, rgba(5, 5, 5, 0.35) 9px, rgba(5, 5, 5, 0.35) 11px),
    linear-gradient(0deg, rgba(5, 5, 5, 0.55), transparent 45%);
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 70%);
  mask-image: linear-gradient(0deg, #000, transparent 70%);
}

.about-copy .lead {
  margin-top: 26px;
  font-family: var(--font-body);
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.about-copy p {
  max-width: 640px;
  margin-top: 20px;
  color: #cfcfca;
  font-size: clamp(14.5px, 1.15vw, 17px);
  line-height: 1.8;
}

.about-copy .lead + p {
  margin-top: 28px;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(36px, 5vw, 70px);
}

.stat {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(49.4px, 6vw, 93.6px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
  margin-top: clamp(28px, 4vw, 56px);
}

.discipline {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: clamp(260px, 26vw, 380px);
  padding: clamp(22px, 2.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent);
  transition: border-color 0.4s ease, transform 0.6s var(--ease);
}

.discipline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(140, 107, 255, 0.3), transparent 60%);
  transition: opacity 0.5s ease;
}

.discipline:hover {
  border-color: rgba(140, 107, 255, 0.6);
  transform: translateY(-6px);
}

.discipline:hover::before {
  opacity: 1;
}

.discipline b {
  color: var(--purple);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.discipline h3 {
  font-family: var(--font-display);
  font-size: clamp(31.2px, 3.1vw, 46.8px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.discipline p {
  margin-top: 12px;
  color: #bdbdb8;
  font-size: 14px;
  line-height: 1.7;
}

.timeline {
  margin-top: clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.tl-item {
  display: grid;
  grid-template-columns: clamp(110px, 15vw, 240px) 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  transition: padding 0.5s var(--ease), background 0.4s ease;
}

.tl-item:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(140, 107, 255, 0.1), transparent 60%);
}

.tl-year {
  color: var(--purple);
  font-family: var(--font-display);
  font-size: clamp(26px, 3.1vw, 46.8px);
  letter-spacing: 0.03em;
}

.tl-item h3 {
  font-family: var(--font-display);
  font-size: clamp(23.4px, 2.3vw, 33.8px);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.tl-item p {
  max-width: 600px;
  margin-top: 6px;
  color: #bdbdb8;
  font-size: 14px;
  line-height: 1.7;
}

.book {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  margin-top: clamp(28px, 4vw, 56px);
  padding: clamp(22px, 3.4vw, 56px);
  border: 1px solid var(--line);
  border-radius: clamp(18px, 2.4vw, 34px);
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255, 168, 62, 0.18), transparent 60%),
    var(--ink-2);
}

.book-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 0.68;
  padding: 24px;
  overflow: hidden;
  border-radius: 6px 12px 12px 6px;
  background: linear-gradient(145deg, var(--orange), #7a2d0b);
  box-shadow: 0 40px 80px -30px rgba(255, 168, 62, 0.45), inset 6px 0 0 rgba(0, 0, 0, 0.18);
  color: #120a00;
  font-family: var(--font-display);
  font-size: clamp(28.6px, 3.4vw, 49.4px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-align: center;
  transform: rotate(-3deg);
  transition: transform 0.8s var(--ease);
}

.book-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.book-cover img.is-failed {
  opacity: 0;
}

.book:hover .book-cover {
  transform: rotate(0) scale(1.03);
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book p {
  max-width: 520px;
  margin-bottom: 28px;
  color: #cfcfca;
  font-size: 15px;
  line-height: 1.75;
}

.cta--simple {
  padding-top: clamp(80px, 10vw, 150px);
  padding-bottom: clamp(10px, 2vw, 30px);
}

.cta--simple .cta-links {
  margin-top: clamp(56px, 7vw, 110px);
}

/* Projets */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 var(--gutter);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.chip {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  font-size: 12.5px;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.4s var(--ease);
}

.chip:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

.chip.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.project-count {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.projects {
  padding: clamp(50px, 6vw, 90px) 0 clamp(70px, 9vw, 130px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(22px, 2.4vw, 38px) clamp(10px, 1.2vw, 18px);
  padding: 0 var(--gutter);
}

.project-card {
  display: block;
}

.project-card[hidden] {
  display: none;
}

.js .project-card.reveal {
  transition:
    opacity 0.5s var(--ease) calc(var(--d, 0) * 70ms),
    transform 0.7s var(--ease) calc(var(--d, 0) * 70ms);
}

.js .project-card.reveal.is-out {
  opacity: 0;
  transform: scale(0.96);
}

.poster {
  aspect-ratio: 16 / 10;
}

.poster::before {
  content: attr(data-index);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-size: clamp(91px, 11.7vw, 169px);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.poster img {
  position: absolute;
  inset: 0;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 7px, rgba(5, 5, 5, 0.55) 7px, rgba(5, 5, 5, 0.55) 9px);
  transition: opacity 0.5s ease;
}

.project-card:hover .poster::after,
.project-card:focus-visible .poster::after {
  opacity: 1;
  animation: scan 1.4s linear infinite;
}

.project-card:hover .poster img,
.project-card:focus-visible .poster img {
  transform: scale(1.07);
}

.project-card:hover .play-button,
.project-card:focus-visible .play-button {
  transform: none;
  opacity: 1;
}

.poster-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 12px;
  background: rgba(5, 5, 5, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 2px 0;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: clamp(22.1px, 2vw, 28.6px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.project-info p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.project-info span {
  flex: none;
  color: var(--muted);
  font-size: 18px;
  transition: transform 0.45s var(--ease), color 0.3s ease;
}

.project-card:hover .project-info span {
  color: var(--purple);
  transform: translate(3px, -3px);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    position: relative;
    top: 0;
    max-width: 420px;
  }

  .discipline-grid {
    grid-template-columns: 1fr;
  }

  .discipline {
    min-height: 0;
  }

  .book {
    grid-template-columns: 1fr;
  }

  .nav.is-open > *:nth-child(5) {
    transition-delay: 0.53s;
  }
}

@media (max-width: 640px) {
  .stats {
    gap: 12px;
  }

  .stat span {
    font-size: 10.5px;
  }

  .tl-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-count {
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
  }

  .hero--page .hero-emblem {
    top: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-leaving {
    opacity: 1;
  }

  .scrub .sw {
    opacity: 1;
  }

  .js .project-card.reveal.is-out {
    opacity: 0;
  }
}

/* =========================================================
   GRANDS ÉCRANS
   ========================================================= */

@media (min-width: 1500px) {
  .story-card {
    flex-basis: 420px;
  }
}

/* =========================================================
   TABLETTES + MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .header {
    height: 68px;
  }

  .hamburger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 62;

    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;

    padding: 90px var(--gutter) 50px;
    background: var(--ink);

    clip-path: circle(0 at calc(100% - 38px) 34px);
    visibility: hidden;
    transition:
      clip-path 0.9s var(--ease-io),
      visibility 0s linear 0.9s;
  }

  .nav.is-open {
    clip-path: circle(150% at calc(100% - 38px) 34px);
    visibility: visible;
    transition-delay: 0s;
  }

  .nav > *,
  .nav .nav-dropdown {
    width: 100%;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.8s var(--ease);
  }

  .nav.is-open > * {
    opacity: 1;
    transform: none;
  }

  .nav.is-open > *:nth-child(1) { transition-delay: 0.25s; }
  .nav.is-open > *:nth-child(2) { transition-delay: 0.32s; }
  .nav.is-open > *:nth-child(3) { transition-delay: 0.39s; }
  .nav.is-open > *:nth-child(4) { transition-delay: 0.46s; }

  .nav-link {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: left;
    font-family: var(--font-display);
    font-size: clamp(44.2px, 11.7vw, 67.6px);
    letter-spacing: 0.03em;
  }

  .nav-link::after {
    display: none;
  }

  .chevron {
    margin-left: 14px;
  }

  .dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 4px 0 12px 4px;
    padding: 4px 0 4px 16px;
    background: none;
    border: 0;
    border-left: 1px solid var(--purple);
    border-radius: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 9px 0;
    font-size: 16px;
  }

  .dropdown-menu a:hover {
    padding-left: 6px;
    background: none;
  }

  .hero-emblem {
    top: 110px;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 120px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .story-card {
    flex-basis: 74vw;
  }

  .social-card {
    flex-basis: 70vw;
  }

  .play-button {
    opacity: 1;
    transform: none;
    width: 38px;
    height: 38px;
  }

  .panels {
    gap: 6px;
    height: 430px;
  }

  .panel.is-active {
    flex-grow: 4.2;
  }

  .panel figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 12px;
  }

  .vision-card {
    min-height: 600px;
    padding: 90px 24px;
  }

  .fan {
    --w: 36vw;
    --R: calc(var(--w) * 1.45);
  }

  .cta-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer-bottom > span:nth-child(2) {
    order: 3;
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   ACCESSIBILITÉ : MOUVEMENT RÉDUIT
   ========================================================= */

@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;
    transition-delay: 0s !important;
  }

  .preloader,
  .cursor,
  .progress {
    display: none;
  }

  .js .reveal,
  .split .wi {
    opacity: 1;
    transform: none;
  }

  .has-slices .slice,
  .has-slices .sliced-emblem .band {
    opacity: 1;
    translate: none;
  }

  .js .vision-card {
    clip-path: none;
  }

  .fan-card {
    opacity: 1;
    transform: translateX(-50%) rotate(var(--r)) scale(1);
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    row-gap: 24px;
  }
}
