/* ==========================================================================
   BORDZZ [PRODUCTION] — feuille de style
   DA : papier gris, encre noire, typo terminal, repères d'impression, viseur caméra.
   ========================================================================== */

/* Si vous avez la licence web de la typo BD Terminal, déposez le fichier dans /fonts
   et décommentez ce bloc : elle remplacera automatiquement Martian Mono.
@font-face {
  font-family: "BD Terminal";
  src: url("../fonts/BDTerminal-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 200%;
  font-display: swap;
}
*/

:root {
  --paper: #a7a7a4;
  --paper-2: #c2c2bf;
  --paper-3: #dcdcd8;
  --ink: #111111;
  --ink-2: #1b1b1b;
  --rec: #ff3b1f;
  --line-d: rgba(17, 17, 17, 0.3);
  --line-l: rgba(220, 220, 216, 0.2);

  --font: "BD Terminal", "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 2.2vw, 32px);
  --hd-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.75, 0, 0.2, 1);

  --sprocket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='9'%3E%3Crect x='5' width='12' height='9' rx='2' fill='%23c2c2bf'/%3E%3C/svg%3E");
}

@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--hd-h);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-stretch: 87.5%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--paper-3); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 9999;
  padding: 10px 14px;
  background: var(--ink); color: var(--paper-3);
  font-size: 12px; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Grain argentique sur tout le site */
body::after {
  content: "";
  position: fixed;
  inset: -220px;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  17%  { transform: translate3d(-60px, -130px, 0); }
  33%  { transform: translate3d(-170px, 70px, 0); }
  50%  { transform: translate3d(90px, -200px, 0); }
  67%  { transform: translate3d(-50px, 190px, 0); }
  83%  { transform: translate3d(160px, 10px, 0); }
  100% { transform: translate3d(20px, 140px, 0); }
}
@keyframes blink { to { visibility: hidden; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 59, 31, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(255, 59, 31, 0); }
}

/* Repères de coupe (viseur / impression) */
.crop {
  position: absolute;
  width: 18px; height: 18px;
  border: 0 solid currentColor;
  pointer-events: none;
}
.crop--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.crop--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.crop--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.crop--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* Typo display partagée */
.display,
.hero__title, .manifesto, .team__lead, .contact__lead,
.service__name, .frame__name, .project__title, .strip__item {
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

/* ==========================================================================
   Intro — amorce de film
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 9800;
  display: grid; place-items: center;
  color: var(--ink);
  background: var(--paper) url("../assets/img/texture/paper-crumple.jpg") center / cover;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s var(--ease-io);
  cursor: pointer;
}
html:not(.js) .intro, .intro-seen .intro { display: none; }
.intro.is-done { clip-path: inset(0 0 100% 0); }
.intro > .crop { width: 26px; height: 26px; margin: 24px; }

.intro__leader {
  position: relative;
  width: min(58vmin, 440px);
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.intro__sweep {
  position: absolute; inset: 4%;
  border-radius: 50%;
  background: conic-gradient(rgba(17, 17, 17, 0.26) var(--sweep), transparent 0);
  animation: sweep 0.65s linear infinite;
}
@keyframes sweep { to { --sweep: 360deg; } }
.intro__rings {
  position: absolute; inset: 0;
  fill: none; stroke: var(--ink); stroke-width: 1.2;
}
.intro__num {
  position: relative;
  font-size: min(34vmin, 260px);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
}
.intro__num.flash { animation: flash 0.65s steps(3) both; }
@keyframes flash { 0% { opacity: 0.2; } 30% { opacity: 1; } 100% { opacity: 1; } }
.intro__meta {
  position: absolute; left: 56px; right: 56px; bottom: 40px;
  display: flex; justify-content: space-between; gap: 16px;
  margin: 0;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
}

/* ==========================================================================
   Header
   ========================================================================== */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--hd-h);
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  color: var(--paper-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.4s;
}
.hd[data-tone="light"] { color: var(--ink); }
.menu-open .hd[data-tone] { color: var(--paper-3); }

/* Voile flouté derrière l'en-tête une fois qu'on a quitté le haut de page */
.hd::before {
  content: "";
  position: absolute; inset: 0 0 -28px; z-index: -1;
  pointer-events: none;
  background: rgba(17, 17, 17, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask: linear-gradient(#000 55%, #0000);
  mask: linear-gradient(#000 55%, #0000);
  opacity: 0;
  transition: opacity 0.4s, background-color 0.4s;
}
.hd.is-scrolled::before { opacity: 1; }
.hd[data-tone="light"]::before { background-color: rgba(167, 167, 164, 0.6); }
.menu-open .hd::before { opacity: 0; }

.hd__logo { display: block; line-height: 0; }
.hd__logo svg { width: 102px; height: 20px; fill: currentColor; }
.hd__nav { display: flex; gap: 26px; }
.hd__nav a {
  position: relative;
  text-decoration: none;
  padding: 6px 0;
}
.hd__nav a i {
  font-style: normal;
  font-size: 9px;
  vertical-align: 4px;
  margin-right: 5px;
  opacity: 0.6;
}
.hd__nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.hd__nav a:hover::after,
.hd__nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.hd__nav a[aria-current] i { opacity: 1; color: var(--rec); }

.hd__burger {
  display: none;
  align-items: center; gap: 10px;
  background: none; border: 0; padding: 8px 0;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer;
}
.hd__burger i {
  position: relative;
  width: 12px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.4s var(--ease);
}
.hd__burger[aria-expanded="true"] i { transform: rotate(45deg); }

/* Menu mobile */
.menu {
  position: fixed; inset: 0; z-index: 85;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hd-h) + 24px) var(--gutter) var(--gutter);
  background: var(--ink);
  color: var(--paper-3);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-io), visibility 0s 0.7s;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-io);
}
.menu nav a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-l);
  font-size: clamp(2rem, 10.5vw, 5rem);
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}
.menu nav a i {
  font-size: 11px;
  font-style: normal;
  vertical-align: top;
  margin-right: 10px;
  letter-spacing: 0;
}
.menu__foot {
  display: flex; flex-direction: column; gap: 8px;
  margin: 0;
  font-size: 12px; text-transform: uppercase;
}
.menu__foot a { text-decoration: none; }
html.menu-open { overflow: hidden; }

/* ==========================================================================
   Hero — viseur caméra
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #0b0b0b;
  color: var(--paper-3);
}
.hero__media { position: absolute; inset: 0; }

.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Noir & blanc pour coller à la DA — supprimer cette ligne pour la couleur */
  filter: grayscale(1) contrast(1.15) brightness(0.85);
}

.hero__shade {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.12) 28%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.8) 100%);
}

/* HUD */
.hud {
  position: absolute;
  inset: calc(var(--hd-h) + 6px) var(--gutter) var(--gutter);
  pointer-events: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.hud > .crop { width: 30px; height: 30px; opacity: 0.85; }
.hud__top {
  position: absolute; top: 14px; left: 44px;
  display: flex; align-items: center; gap: 18px;
}
.hud__rec { display: flex; align-items: center; gap: 8px; }
.hud__rec b { font-weight: 700; }
.hud__rec i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rec);
  animation: blink 1s steps(2, start) infinite;
}
.hero.is-paused .hud__rec i { animation: none; opacity: 0.4; }


/* Contenu */
.hero__content {
  position: absolute;
  inset: var(--hd-h) var(--gutter) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  padding: 56px 44px 30px;
}
.hero__logo {
  margin: 0;
  align-self: center; justify-self: center;
  width: min(74vw, 980px, 100%);
}
.logo-ellipse {
  display: block;
  width: 100%; height: auto;
  fill: currentColor;
  overflow: visible;
}
.logo-ellipse text {
  font-family: var(--font);
  font-weight: 700;
  font-stretch: 75%;
}

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.hero__title {
  margin: 0;
  max-width: 18ch;
  min-height: 1.9em;
  font-size: clamp(1.7rem, 3.6vw, 3.6rem);
  line-height: 0.95;
}
[data-type]::after {
  content: "";
  display: inline-block;
  width: 0.5em; height: 0.78em;
  margin-left: 0.1em;
  background: currentColor;
  vertical-align: -0.04em;
  animation: blink 1s steps(2, start) infinite;
}
.hero__lede {
  max-width: 44ch;
  margin: 18px 0 0;
  font-size: 13px;
  opacity: 0.85;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s;
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--paper-3);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rec);
  animation: pulse 1.6s infinite;
}
.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, 3px); }

.hero__toggle {
  display: inline-flex; gap: 6px;
  padding: 4px 0;
  background: none; border: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  cursor: pointer;
}
.hero__toggle:hover { opacity: 1; }

/* Entrée du hero (uniquement avec JS) */
.js .hud,
.js .hero__lede,
.js .hero__actions,
.js .hero .le__txt { opacity: 0; transition: opacity 1.2s var(--ease); }
.js .hero .le__word {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 1s var(--ease) 0.35s, transform 1.4s var(--ease) 0.35s;
}
.js:not(.is-ready) [data-type],
.js:not(.is-ready) .hero .le__rings { visibility: hidden; }
.is-ready .hud { opacity: 1; transition-delay: 1.2s; }
.is-ready .hero .le__txt { opacity: 1; transition-delay: 1s; }
.is-ready .hero__lede { opacity: 0.85; transition-delay: 1.6s; }
.is-ready .hero__actions { opacity: 1; transition-delay: 1.9s; }
.is-ready .hero .le__word { opacity: 1; transform: none; }

/* ==========================================================================
   Bande pellicule
   ========================================================================== */
.strip {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-3);
}
.strip__track { display: flex; width: max-content; will-change: transform; }
.strip__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 28px;
  padding: 26px 14px;
  background:
    var(--sprocket) repeat-x left 5px / 22px 9px,
    var(--sprocket) repeat-x left calc(100% - 5px) / 22px 9px;
}
.strip__item {
  position: relative;
  padding: 4px 0;
  font-size: clamp(1.6rem, 4.2vw, 3.6rem);
  line-height: 1;
  white-space: nowrap;
}
.strip__z {
  flex-shrink: 0;
  width: clamp(30px, 4vw, 54px);
  height: auto;
  aspect-ratio: 289.5 / 172.52;
  fill: currentColor;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.sec {
  position: relative;
  padding: clamp(88px, 11vw, 168px) var(--gutter);
}

/* Papier : la texture reste fixe pendant que le contenu défile */
.paper {
  background-color: var(--paper);
  color: var(--ink);
  clip-path: inset(0);
}
.paper::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background: url("../assets/img/texture/paper-crumple.jpg") center / cover;
}
.paper--fiber { background-color: var(--paper-2); }
.paper--fiber::before { background-image: url("../assets/img/texture/paper-fiber.jpg"); }
.paper > * { position: relative; z-index: 1; }

.sec__head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(48px, 7vw, 110px);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sec__title { margin: 0; font: inherit; font-weight: 700; }
.sec__rule {
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease) 0.2s;
}
html:not(.js) .sec__rule, .sec__head.is-in .sec__rule { transform: none; }

/* Révélations au scroll */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 01 Présentation ---------- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.about__prints {
  grid-column: 1 / span 4;
  position: sticky;
  top: calc(var(--hd-h) + 40px);
  align-self: start;
  aspect-ratio: 1000 / 1333;
}
.print {
  position: absolute; inset: 0;
  margin: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 26px 50px -18px rgba(0, 0, 0, 0.55);
}
.print img { width: 100%; height: 100%; object-fit: cover; }
.print--front {
  --rot: -2.5deg;
  transform: perspective(900px) rotate(var(--rot)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
}
.print--front::before {
  content: "";
  position: absolute; top: -14px; left: 50%; z-index: 2;
  width: 96px; height: 28px;
  margin-left: -48px;
  background: rgba(228, 228, 222, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transform: rotate(-3deg);
}

.about__body { grid-column: 6 / -1; }
.manifesto {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 3.6rem);
  line-height: 1;
}
.manifesto .w { opacity: 0.16; transition: opacity 0.35s; }
.manifesto .w.is-on { opacity: 1; }

.about__text {
  max-width: 52ch;
  margin: clamp(40px, 5vw, 72px) 0 0;
  line-height: 1.6;
}

.services {
  list-style: none;
  margin: clamp(56px, 7vw, 110px) 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.service {
  position: relative;
  display: grid;
  grid-template-columns: 5ch 1fr 1.1fr;
  align-items: baseline;
  gap: 16px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s, padding 0.5s var(--ease);
}
.service::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}
@media (hover: hover) {
  .service:hover { color: var(--paper-3); padding-left: 24px; }
  .service:hover::before { transform: scaleY(1); }
}
.service__n { font-size: 11px; }
.service__name { font-size: clamp(1.5rem, 2.8vw, 2.6rem); line-height: 1; }
.service__desc {
  font-size: 12px;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

/* ---------- 02 Équipe ---------- */
.team__lead {
  margin: 0 0 clamp(40px, 6vw, 88px);
  font-size: clamp(2.2rem, 7vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.film {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.frame__strip {
  position: relative;
  padding: 34px 8px;
  background:
    var(--sprocket) repeat-x left 7px / 22px 9px,
    var(--sprocket) repeat-x left calc(100% - 7px) / 22px 9px,
    #0d0d0d;
}
.frame__img { aspect-ratio: 1; overflow: hidden; background: #222; }
.frame__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.5s;
}
.frame__rec {
  position: absolute; top: 46px; left: 20px;
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}
.frame__rec i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rec);
  animation: blink 1s steps(2, start) infinite;
}
@media (hover: hover) {
  .frame:hover .frame__img img { transform: scale(1.06); }
  .frame:hover .frame__rec { opacity: 1; }
  .film:hover .frame:not(:hover) .frame__img img { opacity: 0.45; }
}
.frame__cap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 8px 0;
}
.frame__name { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: 1; }
.frame__meta {
  font-size: 10px;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

/* ---------- 03 Projets ---------- */
.work {
  --cols: 6ch minmax(0, 1fr) 14ch 6ch;
  background: var(--ink);
  color: var(--paper-3);
}
.work__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.filters, .views { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--line-l);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { border-color: currentColor; }
.chip[aria-pressed="true"] { background: var(--paper-3); color: var(--ink); border-color: var(--paper-3); }
.chip--ink { border-color: var(--line-d); }
.chip--ink:hover { background: var(--ink); color: var(--paper-3); border-color: var(--ink); }

.work__cols {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 16px;
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--line-l);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
}
.work.is-grid .work__cols { display: none; }

.projects {
  list-style: none;
  margin: 0; padding: 0;
  transition: opacity 0.2s;
}
.projects.is-switching { opacity: 0; }

.project__link {
  position: relative;
  display: grid;
  grid-template-columns: var(--cols);
  align-items: center;
  gap: 16px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line-l);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s, opacity 0.3s;
}
.project__link::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--paper-3);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}
.project__n, .project__cat, .project__year {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.project__title {
  font-size: clamp(1.6rem, 5vw, 5.2rem);
  line-height: 0.95;
  transition: transform 0.5s var(--ease);
}
.project__media { display: none; }
.project__media img,
.project__media video { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
  .project__media img,
  .project__media video { filter: grayscale(1); transition: filter 0.6s var(--ease); }
  .project__link:hover .project__media img,
  .project__link:hover .project__media video { filter: none; }
}

@media (hover: hover) {
  .projects[data-view="list"] .project__link::before { display: none; }
  .projects[data-view="list"] .project__link:hover .project__title { transform: translateX(18px); }
  .projects[data-view="list"] .project__link:hover .project__n { color: var(--rec); }
  .projects[data-view="list"]:hover .project__link:not(:hover) { opacity: 0.45; }
  .projects[data-view="list"]:hover .project__link:not(:hover) .project__title { color: transparent; -webkit-text-stroke: 1px var(--paper-3); }
}
.project__link:focus-visible { outline-offset: -2px; }

/* Vue grille */
.projects[data-view="grid"] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px var(--gutter);
}
.projects[data-view="grid"] .project__link {
  grid-template-columns: 1fr auto;
  grid-template-areas: "media media" "title title" "cat year";
  gap: 10px 12px;
  padding: 0;
  border: 0;
  overflow: visible;
}
.projects[data-view="grid"] .project__link::before { display: none; }
.projects[data-view="grid"] .project__media {
  grid-area: media;
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.projects[data-view="grid"] .project__media > * { transition: transform 0.8s var(--ease); }
.projects[data-view="grid"] .project__link:hover .project__media > * { transform: scale(1.04); }
.projects[data-view="grid"] .project__n {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3px 6px;
  background: var(--ink);
}
.projects[data-view="grid"] .project__title { grid-area: title; font-size: clamp(1.1rem, 1.7vw, 1.7rem); }
.projects[data-view="grid"] .project__cat { grid-area: cat; opacity: 0.7; }
.projects[data-view="grid"] .project__year { grid-area: year; }

/* Mire « no signal » (vignette en attendant les vidéos) */
.testcard {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: 100%; height: 100%;
  color: #f1f1ee;
  background:
    linear-gradient(90deg, #e9e9e6 0 14.28%, #c8c8c5 0 28.57%, #a5a5a2 0 42.85%, #82827f 0 57.14%, #60605d 0 71.42%, #3d3d3b 0 85.71%, #1b1b1a 0) top / 100% 68% no-repeat,
    linear-gradient(90deg, #1b1b1a 0 14.28%, #f1f1ee 0 28.57%, #1b1b1a 0 42.85%, #82827f 0 57.14%, #1b1b1a 0 71.42%, #3d3d3b 0 85.71%, #1b1b1a 0) bottom / 100% 32% no-repeat;
}
.testcard b {
  padding: 6px 10px;
  background: #111;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.testcard small {
  padding: 3px 8px;
  background: #111;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.testcard--big b { font-size: clamp(14px, 2vw, 22px); padding: 10px 16px; }
.testcard--big small { font-size: 11px; }


/* Lecteur vidéo */
.player {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0;
  padding: 18px var(--gutter);
  border: 0;
  background: #0a0a0a;
  color: var(--paper-3);
}
.player[open] {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: crt 0.5s var(--ease);
}
@keyframes crt {
  from { clip-path: inset(49.5% 0 49.5% 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.player::backdrop { background: #000; }
.player__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.player__bar--bottom { opacity: 0.6; }
.player__title { font-weight: 700; text-align: center; }
.player__rec { display: flex; align-items: center; gap: 6px; }
.player__rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.player__frame {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}
.player__frame > .crop { width: 26px; height: 26px; }
.player__screen {
  position: relative;
  width: 100%;
  max-width: calc((100dvh - 190px) * 16 / 9);
  aspect-ratio: 16 / 9;
  background: #000;
}
.player__screen > * {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- 04 Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.contact__lead {
  margin: 0;
  font-size: clamp(2.2rem, 5.4vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.contact__sub {
  max-width: 44ch;
  margin: clamp(24px, 3vw, 36px) 0 0;
  line-height: 1.6;
}
.contact__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: clamp(32px, 4vw, 56px);
}
.contact__mail {
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  font-size: clamp(1.1rem, 2.4vw, 2.3rem);
  font-weight: 700;
  font-stretch: 75%;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact__row { display: flex; flex-wrap: wrap; gap: 8px; }

.ticket-wrap {
  justify-self: center;
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.35));
}
.ticket {
  --z: 9px;
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10% 13%;
  text-align: center;
  color: var(--ink);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 700;
  font-stretch: 75%;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: url("../assets/img/texture/paper-fiber.jpg") center / cover, #c9c9c6;
  background-blend-mode: multiply;
  transform: perspective(1000px) rotate(var(--rot, 2.5deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
  -webkit-mask:
    conic-gradient(from 45deg at left, #000 90deg, #0000 0) left / var(--z) calc(2 * var(--z)) repeat-y,
    conic-gradient(from 225deg at right, #000 90deg, #0000 0) right / var(--z) calc(2 * var(--z)) repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--z) + 1px) 100% no-repeat;
  mask:
    conic-gradient(from 45deg at left, #000 90deg, #0000 0) left / var(--z) calc(2 * var(--z)) repeat-y,
    conic-gradient(from 225deg at right, #000 90deg, #0000 0) right / var(--z) calc(2 * var(--z)) repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--z) + 1px) 100% no-repeat;
}
.ticket p { margin: 0; }
.ticket a { text-decoration: none; }
.ticket a:hover { text-decoration: underline; }
.ticket__ring {
  position: absolute;
  width: 12%;
  aspect-ratio: 1;
  background: repeating-radial-gradient(circle at 100% 100%, var(--ink) 0 1.6px, transparent 1.6px 4px);
  -webkit-mask: radial-gradient(circle farthest-side at 100% 100%, #000 97%, #0000 100%);
  mask: radial-gradient(circle farthest-side at 100% 100%, #000 97%, #0000 100%);
}
.ticket__ring--tl { top: 4%; left: 7%; }
.ticket__ring--tr { top: 4%; right: 7%; transform: scaleX(-1); }
.ticket__ring--bl { bottom: 4%; left: 7%; transform: scaleY(-1); }
.ticket__ring--br { bottom: 4%; right: 7%; transform: scale(-1, -1); }
.ticket__logo {
  position: relative;
  width: calc(100% + 10%);
  padding: 9% 3%;
}
.ticket__logo > .crop { width: 12px; height: 12px; border-width: 0; }
.ticket__logo > .crop--tl { border-right-width: 1px; border-bottom-width: 1px; transform: translate(-100%, -100%); }
.ticket__logo > .crop--tr { border-left-width: 1px; border-bottom-width: 1px; transform: translate(100%, -100%); }
.ticket__logo > .crop--bl { border-right-width: 1px; border-top-width: 1px; transform: translate(-100%, 100%); }
.ticket__logo > .crop--br { border-left-width: 1px; border-top-width: 1px; transform: translate(100%, 100%); }
.ticket__mid span { display: block; margin-top: 1.4em; }
.ticket__bar { width: 56%; height: auto; fill: var(--ink); }

/* ---------- Footer ---------- */
.ft {
  padding: 8px var(--gutter) 64px;
  color: var(--ink);
  overflow-x: clip;
}
.ft__word { display: block; width: 100%; height: auto; fill: currentColor; }
.ft__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ft__row a { text-decoration: none; }
.ft__row a:hover { text-decoration: underline; }

/* ==========================================================================
   Éléments flottants
   ========================================================================== */

/* Curseur viseur */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9900;
  pointer-events: none;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s;
}
html:not(.has-cursor) .cursor { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor.is-visible { opacity: 1; }
.cursor__dot {
  position: absolute; top: 0; left: 0;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  background: currentColor;
}
.cursor__box {
  position: absolute; top: 0; left: 0;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  background:
    linear-gradient(currentColor, currentColor) left top / 7px 1px,
    linear-gradient(currentColor, currentColor) left top / 1px 7px,
    linear-gradient(currentColor, currentColor) right top / 7px 1px,
    linear-gradient(currentColor, currentColor) right top / 1px 7px,
    linear-gradient(currentColor, currentColor) left bottom / 7px 1px,
    linear-gradient(currentColor, currentColor) left bottom / 1px 7px,
    linear-gradient(currentColor, currentColor) right bottom / 7px 1px,
    linear-gradient(currentColor, currentColor) right bottom / 1px 7px;
  background-repeat: no-repeat;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease);
}
.cursor.is-hover .cursor__box { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.is-down .cursor__box { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.cursor__label {
  position: absolute; top: calc(100% + 6px); left: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}


/* ==========================================================================
   Dynamique : défilement fluide, feuilles empilées, révélations
   ========================================================================== */

.anchor { height: 0; }

/* Hero : l'écran recule quand on descend */
.hero__media { overflow: hidden; will-change: transform; }
.hero__dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.hero__content { will-change: transform, opacity; }
.strip { box-shadow: 0 -28px 60px rgba(0, 0, 0, 0.5); }

/* Sections empilées comme des feuilles de papier (top calculé en JS) */
.js .stack { position: sticky; }
.stack > i.stack__cover {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  background: linear-gradient(rgba(10, 8, 6, 0.2), rgba(10, 8, 6, 0.85));
  opacity: 0;
  will-change: opacity;
}
.stack.paper { clip-path: inset(0 round 30px 30px 0 0); }
.stack.work { border-radius: 30px 30px 0 0; }

/* Mots qui montent un à un */
.w-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0.02em 0.1em;
  margin: -0.12em -0.02em -0.1em;
}
.w-in {
  display: inline-block;
  transform: translate3d(0, 112%, 0) rotate(5deg);
  transform-origin: 0 100%;
  transition: transform 1.05s var(--ease) calc(var(--wi, 0) * 45ms + var(--d, 0s));
}
.is-in .w-in, .is-in.w-split .w-in { transform: none; }
.js [data-reveal][data-split] { opacity: 1; transform: none; }

/* Projets : la vidéo du projet survolé envahit la section */
.work > :not(.work__bg) { position: relative; z-index: 1; }
.work__bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
}
.work__bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.42) saturate(1.05) contrast(1.05);
  scale: 1.08;
  transition: scale 1.8s var(--ease);
}
.work__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, transparent 35%, rgba(17, 17, 17, 0.7)),
    linear-gradient(rgba(17, 17, 17, 0.55), transparent 30%, transparent 70%, rgba(17, 17, 17, 0.75));
}
.work.has-bg .work__bg { opacity: 1; }
.work.has-bg .work__bg video { scale: 1; }
.work.has-bg .project__link { border-color: rgba(220, 220, 216, 0.28); }

/* Équipe : la pellicule dérive, les portraits ont de la profondeur */
.film { translate: var(--fx, 0px) 0; }
.frame__img img { scale: 1.12; translate: 0 var(--py, 0px); transition: scale 1.2s var(--ease), opacity 0.5s; }
@media (hover: hover) {
  .frame:hover .frame__img img { transform: none; scale: 1.18; }
}

/* Footer : le grand logo arrive en glissant */
.ft__word { will-change: transform; transform-origin: 0 100%; }

/* Éléments « magnétiques » */
.btn[data-magnetic] { transition: color 0.35s, translate 0.45s var(--ease); }
.chip[data-magnetic] { transition: background 0.25s, color 0.25s, border-color 0.25s, translate 0.45s var(--ease); }

/* Contact : le ticket flotte */
@keyframes float { 50% { translate: 0 -10px; } }
.ticket-wrap.is-in { animation: float 6s ease-in-out 1.2s infinite; }

/* ==========================================================================
   Effets calés sur le défilement natif (scroll-driven animations)
   Le navigateur les joue lui-même, image par image, sans passer par le JS :
   aucune saccade, même à 120 Hz. Navigateurs plus anciens : repli en JS.
   ========================================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Hero : l'écran recule, s'arrondit et s'assombrit */
    .hero { view-timeline: --hero block; }
    .hero__media {
      animation: sd-hero-media linear both, sd-hero-radius linear both;
      animation-timeline: --hero, --hero;
      animation-range: exit 0% exit 100%, exit 0% exit 100%;
    }
    .hero__dim { animation: sd-hero-dim linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    .hero__content { animation: sd-hero-content linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    @keyframes sd-hero-media { to { transform: translate3d(0, 40vh, 0) scale(0.91); } }
    @keyframes sd-hero-radius { to { border-radius: 40px; } }
    @keyframes sd-hero-dim { to { opacity: 0.6; } }
    @keyframes sd-hero-content {
      0% { transform: none; opacity: 1; }
      66% { opacity: 0; }
      100% { transform: translate3d(0, 22vh, 0); opacity: 0; }
    }

    /* Équipe : la pellicule dérive, les portraits glissent dans leur cadre */
    @media (min-width: 901px) {
      .film {
        view-timeline: --film block;
        animation: sd-film linear both;
        animation-timeline: --film;
        animation-range: cover 0% cover 100%;
      }
      .frame__img img { animation: sd-frame linear both; animation-timeline: --film; animation-range: cover 0% cover 100%; }
      @keyframes sd-film { from { translate: 32px 0; } to { translate: -32px 0; } }
      @keyframes sd-frame { from { translate: 0 23px; } to { translate: 0 -23px; } }
    }

    /* Footer : le grand logo arrive en glissant et se pose pile en bas de page */
    .ft { view-timeline: --ft block; }
    .ft__word { animation: sd-ft-word linear both; animation-timeline: --ft; animation-range: entry 0% entry 100%; }
    @keyframes sd-ft-word {
      from { transform: translate3d(35%, 0, 0); opacity: 0.15; animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); }
      to { transform: none; opacity: 1; }
    }
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .about__prints { grid-column: 1 / span 5; }
  .about__body { grid-column: 7 / -1; }
}

@media (max-width: 900px) {
  .about__grid { display: block; }
  .about__prints {
    position: relative; top: auto;
    width: min(72%, 380px);
    margin: 0 auto 96px;
  }
  .contact__grid { grid-template-columns: 1fr; }
  .work { --cols: 5ch minmax(0, 1fr) 12ch; }
  .work__cols span:nth-child(n + 4),
  .projects[data-view="list"] .project__year { display: none; }
  .projects[data-view="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(76vw, 360px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .film::-webkit-scrollbar { display: none; }
  .frame { scroll-snap-align: start; }
  .film { translate: none; }
}

@media (max-width: 860px) {
  :root { --hd-h: 56px; }
  .hd__nav { display: none; }
  .hd__burger { display: inline-flex; }
}
@media (min-width: 861px) {
  .menu { display: none; }
}

@media (max-width: 640px) {
  .hud > .crop { width: 20px; height: 20px; }
  .hud__top { left: 28px; top: 8px; }
  .hero__content { padding: 40px 12px 16px; }
  .hero__logo { width: 100%; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__actions { align-items: flex-start; }
  .intro__meta { left: 24px; right: 24px; flex-direction: column; gap: 4px; }
  .service { grid-template-columns: 4ch 1fr; }
  .service__desc { grid-column: 2; text-align: left; }
  .work { --cols: 4ch minmax(0, 1fr); }
  .work__cols span:nth-child(n + 3),
  .projects[data-view="list"] .project__cat { display: none; }
  .projects[data-view="grid"] { grid-template-columns: 1fr; }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  body::after { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .stack { position: relative; }
  .w-in { transform: none; }
  .ticket-wrap.is-in { animation: none; }
}
