/* ==========================================================================
   GASS Studios — style.css
   Garage-built production house. Black, film-first, one loud red.
   ========================================================================== */

/* ==========================================================================
   1. Fonts — self-hosted (GDPR-friendly). Archivo variable (wdth 100–125,
      wght 400–900, roman + italic) for the big italic titles, Inter (400–600)
      for texts, menus and labels. latin + latin-ext. The cover title
      « GASS STUDIOS » is drawn in SVG (assets/img/titre-*.svg).
   ========================================================================== */
/* Archivo italic — latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("../fonts/archivo-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo italic — latin */
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("../fonts/archivo-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Archivo normal — latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("../fonts/archivo-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo normal — latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("../fonts/archivo-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter normal — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter normal — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */
:root {
  /* Brand colours */
  --gass-red: #D7141A;        /* single accent */
  --gass-red-deep: #8E0F1B;   /* overlays, pressed states */
  --garage-black: #000000;    /* fond du site : noir */
  --ink-rgb: 0 0 0;           /* le même, pour les voiles semi-transparents */
  --asphalt: #121212;         /* surfaces : cases, cartes, listes */
  --graphite: #2B2B2B;        /* filets, bordures */
  --steel: #9C9C9C;           /* textes secondaires */
  --label-white: #F5F5F2;     /* primary text, label block */
  --pure-white: #FFFFFF;      /* headlines over video */
  --text: rgb(245 245 242 / 0.85);

  /* Type */
  --font-display: "Archivo", "Anton", "Arial Black", Impact, sans-serif;
  --font-label: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* menus, bandeaux, boutons, étiquettes */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-page: min(calc((100vw - 32px) / 6.2), clamp(3.5rem, 0.5rem + 11vw, 12.5rem)); /* giant page titles */
  --fs-lead: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);  /* 16 → 18 */
  --fs-kicker: 0.8125rem;                              /* 13 */
  --fs-meta: 0.75rem;                                  /* 12 */

  /* Space (base unit 8px) */
  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); /* iPhone à l'horizontale : rien sous l'encoche */
  --section: 160px;
  --nav-h: 64px;
  --measure: 60ch;

  /* Motion: slow, confident, cinematic */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --grain: url("../img/textures/grain.png");
}

@media (max-width: 767px) {
  :root { --section: 96px; }
}

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

html {
  color-scheme: dark;
  background: var(--garage-black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--garage-black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.menu-open,
html.show-loader body { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  html.is-ready,
  html.is-ready body { scroll-behavior: smooth; } /* body : c'est lui qui défile sur téléphone (accueil) */
}

img, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
p, h1, h2, h3, h4, h5, dl, dd, figure, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--gass-red); color: var(--pure-white); }
:focus-visible { outline: 2px solid var(--gass-red); outline-offset: 4px; }
[hidden] { display: none !important; }

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

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 14px 20px;
  background: var(--gass-red); color: var(--pure-white);
  font: 600 14px/1 var(--font-label);
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }


/* ==========================================================================
   4. Typography
   ========================================================================== */
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 125%;
  font-synthesis: none;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--pure-white);
}

.kicker {
  font-family: var(--font-label);
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--steel);
}

.meta {
  font-family: var(--font-label);
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--steel);
}

.lead {
  max-width: 34ch;
  font-size: var(--fs-lead);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--label-white);
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1em; }

/* ==========================================================================
   5. Components
   ========================================================================== */

/* Signature: the logo's white label — double outline, notched corners */
.label-block {
  --n: 12px;   /* notch */
  --r1: 3px;   /* outer white line */
  --r2: 7px;   /* + black ring */
  --fill: var(--label-white);
  --ink: var(--garage-black);
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 0.26em 0.44em 0.12em 0.36em;
  color: var(--ink);
  background: var(--label-white);
  clip-path: polygon(var(--n) 0, calc(100% - var(--n)) 0, 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, 0 calc(100% - var(--n)), 0 var(--n));
  rotate: -1.5deg;
  transition: color 0.45s var(--ease);
}
.label-block::before,
.label-block::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(var(--m) 0, calc(100% - var(--m)) 0, 100% var(--m), 100% calc(100% - var(--m)), calc(100% - var(--m)) 100%, var(--m) 100%, 0 calc(100% - var(--m)), 0 var(--m));
}
.label-block::before { --m: calc(var(--n) - var(--r1) * 0.586); inset: var(--r1); background: var(--garage-black); }
.label-block::after { --m: calc(var(--n) - var(--r2) * 0.586); inset: var(--r2); background: var(--fill); transition: background-color 0.45s var(--ease); }

/* Primary CTA */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--gass-red);
  background: var(--gass-red);
  color: var(--pure-white);
  font: 600 15px/1 var(--font-label);
  letter-spacing: -0.005em;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn:hover { background: var(--label-white); border-color: var(--label-white); color: var(--garage-black); }
.btn:active { background: var(--gass-red-deep); border-color: var(--gass-red-deep); color: var(--pure-white); }

/* Label CTA (contact) */
.btn-label {
  --n: 9px; --r1: 2px; --r2: 5px;
  padding: 22px 34px 21px 36px;
  font: 600 15px/1 var(--font-label);
  letter-spacing: -0.005em;
  rotate: 0deg;
}
.btn-label:hover { --fill: var(--gass-red); --ink: var(--pure-white); }

/* Secondary link */
.link {
  display: inline-block;
  font: 600 15px/1.3 var(--font-label);
  letter-spacing: -0.005em;
  color: var(--label-white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 0.4s var(--ease);
}
.link:hover { color: var(--gass-red); }
.arrow { display: inline-block; margin-left: 0.4em; transition: transform 0.5s var(--ease); }
.link:hover .arrow { transform: translateX(6px); }

/* Red circle play glyph */
.play-icon {
  position: relative;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gass-red);
  transition: transform 0.5s var(--ease), background-color 0.45s var(--ease);
}
.play-icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 26%; height: 30%;
  transform: translate(-38%, -50%);
  background: var(--pure-white);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ==========================================================================
   6. Loader · page curtain
   ========================================================================== */
.loader {
  --p: 0;
  position: fixed; inset: 0; z-index: 100;
  display: none;
  place-items: center;
  background: var(--garage-black);
  transition: transform 1s var(--ease-io);
}
html.show-loader .loader { display: grid; }
.loader.is-done { transform: translate3d(0, -100%, 0); }
.loader__can { position: relative; width: clamp(140px, 20vw, 220px); aspect-ratio: 411 / 472; }
.loader__can img { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__empty { opacity: 0.85; }
.loader__fill { clip-path: inset(100% 0 0 0); }
.loader__foot {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 5vh, 48px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.loader__count {
  font: italic 900 clamp(32px, 5vw, 56px)/1 var(--font-display);
  font-stretch: 125%;
  letter-spacing: -0.02em;
  color: var(--pure-white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.loader__count small {
  margin-left: 0.4em;
  font: 600 12px/1 var(--font-label);
  letter-spacing: 0.06em;
  color: var(--steel);
}
.loader__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--gass-red);
  transform: scaleX(var(--p));
  transform-origin: left;
}

.curtain {
  position: fixed; inset: 0; z-index: 90;
  background: var(--garage-black);
  transform: translate3d(0, 100%, 0);
  pointer-events: none;
}
.curtain::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--gass-red);
}
.curtain.is-in { transform: none; pointer-events: auto; transition: transform 0.56s var(--ease-io); }
html.is-entering .curtain { transform: none; }
.curtain.is-out { transform: translate3d(0, -100%, 0); transition: transform 0.8s var(--ease-io); }


/* ==========================================================================
   7. Header & menu
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  color: var(--label-white);
  border-bottom: 1px solid transparent;
  transition: transform 0.6s var(--ease), opacity 0.8s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.site-header.is-solid {
  background: rgb(var(--ink-rgb) / 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--graphite);
}
.site-header.is-hidden { transform: translate3d(0, -100%, 0); }
.site-header:not(.is-solid) .nav__link,
.site-header:not(.is-solid) .menu-toggle { text-shadow: 0 1px 12px rgb(0 0 0 / 0.35); } /* lisible sur la vidéo */
body.menu-open .site-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: auto; height: 46px; transition: rotate 0.6s var(--ease); }
.brand:hover img { rotate: -8deg; }
.brand__word { display: grid; justify-items: start; gap: 4px; }
.brand .brand__word img { width: auto; height: 21px; rotate: none; transition: none; }
.brand .brand__word .brand__sub { height: calc(21px * 0.32); } /* même largeur que GASS */

.nav { display: none; }
.nav__list { display: flex; gap: clamp(24px, 3vw, 48px); }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font: 600 15.5px/1 var(--font-label);
  letter-spacing: -0.005em;
  transition: color 0.45s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0.3em; bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current] { color: var(--gass-red); }
.nav__link:hover::after,
.nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: inline-grid;
  align-items: center;
  height: 44px;
  font: 600 15.5px/1 var(--font-label);
  letter-spacing: -0.005em;
}
.menu-toggle > span { grid-area: 1 / 1; transition: opacity 0.3s var(--ease), transform 0.5s var(--ease); }
.menu-toggle [data-close-label] { opacity: 0; transform: translateY(8px); color: var(--gass-red); }
.menu-toggle[aria-expanded="true"] [data-open-label] { opacity: 0; transform: translateY(-8px); }
.menu-toggle[aria-expanded="true"] [data-close-label] { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .nav { display: block; }
  .menu-toggle, .menu { display: none !important; }
}

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(var(--nav-h) + 40px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--garage-black);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.75s var(--ease-io), visibility 0s linear 0.75s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.75s var(--ease-io), visibility 0s; }
.menu__nav { margin-block: auto; }
.menu__list { display: grid; gap: 4px; }
.menu__list li { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); }
.menu.is-open .menu__list li { opacity: 1; transform: none; transition-delay: calc(0.2s + var(--i, 0) * 0.07s); }
.menu__link {
  display: flex; align-items: flex-start; gap: 14px;
  font: italic 900 clamp(36px, 12vw, 96px)/1 var(--font-display);
  font-stretch: 125%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--pure-white);
  transition: color 0.4s var(--ease);
}
.menu__link:hover,
.menu__link[aria-current] { color: var(--gass-red); }
.menu__num {
  padding-top: 0.7em;
  font: 600 11px/1 var(--font-label);
  letter-spacing: 0.06em;
  color: var(--steel);
}
.menu__foot { display: grid; gap: 14px; padding-top: 24px; border-top: 1px solid var(--graphite); }
.menu__mail { font-size: 18px; color: var(--label-white); }

/* ==========================================================================
   8. Cover (accueil) — vidéo plein écran grisée, titre géant, logo en haut à
      gauche, menu en haut à droite
   ========================================================================== */
.cover {
  --band: clamp(48px, 8.5vh, 76px);   /* arrivée : bandes rouges du haut et du bas */
  --side: clamp(12px, 5.5vw, 110px);  /* arrivée : bandes rouges à gauche et à droite */
  --outline: clamp(6px, 0.7vw, 12px); /* arrivée : léger contour noir autour du rouge */
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 340px; /* téléphone à l'horizontale : tout tient dans l'écran */
  overflow: hidden;
  background: var(--gass-red);
  box-shadow: inset 0 0 0 var(--outline) var(--garage-black);
  color: var(--label-white);
}
/* La vidéo occupe tout l'écran (à l'arrivée, elle s'ouvre dans le cadre rouge,
   puis s'agrandit jusqu'aux bords : le rouge disparaît complètement) */
.cover__frame {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--garage-black);
}
.cover__reel,
.cover__slide { position: absolute; inset: 0; }
.cover__reel img,
.cover__reel video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cover__slide { opacity: 0; transition: opacity 0.9s var(--ease); }
.cover__slide.is-active { opacity: 1; }
.cover__slide video { opacity: 0; transition: opacity 0.4s var(--ease); }
.cover__slide.is-playing video { opacity: 1; }
.cover__reel::after { /* voile gris : l'image passe au second plan, le titre ressort */
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgb(0 0 0 / 0.42), rgb(0 0 0 / 0) 26%, rgb(0 0 0 / 0) 72%, rgb(0 0 0 / 0.4)),
    rgb(26 26 26 / 0.52);
  pointer-events: none;
}
.cover__frame::after { /* en descendant, l'image s'assombrit jusqu'au noir de l'écran suivant (--leave, main.js) */
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: var(--garage-black);
  opacity: var(--leave, 0);
  pointer-events: none;
}

/* « GASS / STUDIOS » : titre en SVG (Tomorrow ExtraBold resserrée à 64 %, lettres pleines).
   GASS en grand ; STUDIOS dessous, à 32 % de sa hauteur, espacé sur la même largeur. */
.cover__title {
  /* hauteur des capitales de GASS : ~34 % de l'écran, sans dépasser en largeur */
  --cap: min(34vh, calc((100vw - 2 * var(--gutter) - 24px) / 2.59));
  --cap: min(34svh, calc((100vw - 2 * var(--gutter) - 24px) / 2.59));
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(var(--cap) * 0.11);
  margin: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 24px rgb(0 0 0 / 0.3));
}
.cover__title .line-mask { padding: 0; margin: 0; }
.cover__word { display: block; width: auto; height: var(--cap); max-width: none; }
.cover__word--sub { height: calc(var(--cap) * 0.32); } /* STUDIOS : même largeur que GASS */

.cover__showreel {
  position: absolute; z-index: 4;
  left: max(var(--gutter), env(safe-area-inset-left)); bottom: max(clamp(18px, 4vh, 40px), env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 0.55em;
  font: 600 clamp(15px, 0.8rem + 0.3vw, 18px)/1 var(--font-label);
  letter-spacing: -0.005em;
  color: var(--pure-white);
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.45);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.35s var(--ease);
}
.cover__showreel:hover { text-decoration-color: currentColor; }
.cover__showreel::before {
  content: "";
  width: 0.6em; height: 0.7em;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Indicateur de défilement : une souris dont la molette descend (lien vers les projets) */
.cover__scroll {
  position: absolute; z-index: 4;
  left: 0; right: 0; bottom: max(clamp(18px, 4vh, 40px), env(safe-area-inset-bottom));
  width: 26px; height: 40px;
  margin-inline: auto;
  border: 2px solid rgb(255 255 255 / 0.85);
  border-radius: 13px;
  transition: border-color 0.35s var(--ease);
}
.cover__scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--pure-white);
  animation: scroll-hint 1.8s var(--ease) infinite;
}
.cover__scroll:hover { border-color: var(--gass-red); }
@keyframes scroll-hint {
  0% { opacity: 0; transform: translateY(-2px); }
  25% { opacity: 1; }
  70% { opacity: 1; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(14px); }
}
.cover__pause {
  position: absolute; z-index: 4;
  right: max(var(--gutter), env(safe-area-inset-right)); bottom: max(clamp(12px, 3.2vh, 32px), env(safe-area-inset-bottom));
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgb(var(--ink-rgb) / 0.42);
  color: var(--pure-white);
  opacity: 0.72;
  transition: opacity 0.3s var(--ease), background-color 0.3s var(--ease);
}
.cover__pause:hover,
.cover__pause:focus-visible { opacity: 1; background: var(--gass-red); }
.cover__pause span { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.cover__pause.is-paused span {
  width: 0; height: 0; margin-left: 3px;
  border-left: 11px solid currentColor; border-right: 0;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}

/* Arrivée : le montage s'ouvre comme un volet dans le cadre rouge, s'arrête un
   instant, puis s'agrandit jusqu'aux bords de l'écran. Le titre apparaît
   pendant ce temps, puis le menu (main.js). */
html.js .cover__frame { clip-path: inset(calc(50% - var(--bleed) / 2) var(--side) calc(50% + var(--bleed) / 2) var(--side)); }
html.js .cover.is-in .cover__frame { animation: cover-open 2.7s var(--ease-io) both; }
@keyframes cover-open {
  0% { clip-path: inset(calc(50% - var(--bleed) / 2) var(--side) calc(50% + var(--bleed) / 2) var(--side)); }
  46%, 58% { clip-path: inset(var(--band) var(--side) calc(var(--band) + var(--bleed)) var(--side)); } /* --bleed : téléphone, bas de l'écran caché par la barre du navigateur */
  100% { clip-path: inset(0 0 0 0); }
}
html.js .cover__title .line-mask > * { transform: translate3d(0, 108%, 0); transition: transform 1.2s var(--ease); }
html.js .cover__title.is-in .line-mask > * { transform: none; }
/* l'en-tête (menu en haut à droite) attend la fin de l'arrivée */
.site-header.is-waiting {
  opacity: 0;
  transform: translate3d(0, -14px, 0);
  visibility: hidden;
  transition: none;
}

/* ==========================================================================
   9. Sections & page heads (mentions légales, 404, projet introuvable)
   ========================================================================== */
.section-tight { padding-block: calc(var(--section) * 0.6); }

.page-head { padding: calc(var(--nav-h) + clamp(72px, 14vh, 160px)) var(--gutter) clamp(48px, 7vw, 96px); }
.page-title { margin-top: 20px; font-size: var(--fs-page); }
.page-intro { margin-top: clamp(28px, 4vw, 48px); max-width: 40ch; font-size: var(--fs-lead); line-height: 1.35; color: var(--label-white); }

/* ==========================================================================
   10. Écrans de l'accueil · bandeau · mur de projets
   ========================================================================== */
.slide { padding: calc(var(--nav-h) + clamp(12px, 2.5vh, 28px)) var(--gutter) clamp(72px, 11vh, 136px); }
.slide--page { min-height: 100vh; min-height: 100svh; }

/* Bandeau d'écran : titre de l'écran à gauche, précisions ou commandes à droite */
.slate {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: clamp(18px, 3vh, 32px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--graphite);
  font: 600 clamp(15px, 0.8rem + 0.3vw, 18px)/1 var(--font-label);
  letter-spacing: -0.005em;
}
.slate__title { margin: 0; font: inherit; color: var(--label-white); }
.slate__note { color: var(--steel); text-align: right; }
.slate__pause {
  display: inline-flex; align-items: center; gap: 0.6em;
  text-transform: inherit; letter-spacing: inherit;
  margin: -12px 0; padding: 12px 0; /* zone de clic plus haute que le texte */
  color: var(--steel);
  transition: color 0.35s var(--ease);
}
.slate__pause::before { /* ❚❚ ou ▶ */
  content: "";
  width: 0.55em; height: 0.7em;
  border-left: 0.18em solid currentColor; border-right: 0.18em solid currentColor;
}
.slate__pause.is-paused::before {
  width: 0; height: 0;
  border-left: 0.6em solid currentColor; border-right: 0;
  border-top: 0.36em solid transparent; border-bottom: 0.36em solid transparent;
}
.slate__pause:hover { color: var(--label-white); }

/* Mur : les cases sont placées par le script (main.js). « Tout » : mosaïque de
   tailles mêlées (une grande horizontale, une verticale en hauteur, les autres
   autour) ; une catégorie : ses vidéos se réorganisent dans le même cadre.
   Téléphone : le mur tient dans l'écran à l'accueil, en colonne sur la page Projets. */
.wall { --gap: clamp(6px, 0.6vw, 10px); --r: clamp(8px, 0.75vw, 14px); position: relative; }
.wall--box { aspect-ratio: 16 / 9; }
.wall.is-animating { transition: height 0.7s var(--ease); }

.tile {
  position: absolute; left: 0; top: 0;
  isolation: isolate;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  clip-path: inset(0 round var(--r)); /* arrondi net, même autour des vidéos (Safari) */
  background: var(--asphalt);
  color: var(--pure-white);
  text-align: left;
  transform-origin: 0 0;
  -webkit-tap-highlight-color: transparent;
}
.tile::before,
.bubble::before { /* léger contour blanc */
  content: "";
  position: absolute; inset: 0; z-index: 3;
  border: 1px solid rgb(255 255 255 / 0.82);
  border-radius: inherit;
  pointer-events: none;
}
.tile img,
.tile video,
.bubble__item img,
.bubble__item video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.tile video,
.bubble__item video { opacity: 0; transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.tile.is-playing video,
.bubble__item.is-playing video { opacity: 1; }
.tile::after { /* voile des autres cases quand on en survole une */
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: rgb(var(--ink-rgb) / 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: clamp(18px, 2vw, 28px) clamp(12px, 1.4vw, 18px) clamp(10px, 1.1vw, 14px);
  background: linear-gradient(to top, rgb(var(--ink-rgb) / 0.78), rgb(var(--ink-rgb) / 0));
  font: 600 clamp(13px, 0.65rem + 0.3vw, 16px)/1.2 var(--font-label);
  letter-spacing: -0.005em;
  color: var(--label-white);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.tile__arrow { flex: none; color: var(--gass-red); }
.tile:focus-visible { outline: 2px solid var(--gass-red); outline-offset: -2px; }
.tile:focus-visible .tile__label { opacity: 1; transform: none; }
@media (hover: hover) {
  .wall:has(.tile:hover) .tile:not(:hover)::after { opacity: 1; }
  .tile:hover img,
  .tile:hover video { transform: scale(1.04); }
  .tile:hover .tile__label { opacity: 1; transform: none; }
}
/* Arrivée du mur (et des vidéos d'une catégorie) : les cases apparaissent l'une après l'autre */
html.js [data-reveal-tiles]:not(.is-in) .tile { opacity: 0; }
[data-reveal-tiles].is-in .tile { animation: tile-in 0.9s var(--ease) var(--d, 0s) both; }
@keyframes tile-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

/* Catégorie vide : « bientôt », le bidon et un appel au devis */
.wall__empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 1.6vh, 16px);
  padding: 24px;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: var(--r);
  background: radial-gradient(ellipse at 50% 40%, rgb(215 20 26 / 0.08), transparent 65%), rgb(255 255 255 / 0.02);
  text-align: center;
}
.wall__empty:not([hidden]) { animation: tile-in 0.9s var(--ease) 0.18s both; }
.wall__can { width: clamp(52px, 5.5vw, 92px); margin: 0 0 4px; }
.wall__can .can__full { clip-path: inset(100% 0 0 0); } /* réservoir vide : il se remplit au survol */
.wall__soon {
  font: 600 clamp(14px, 0.75rem + 0.3vw, 17px)/1.3 var(--font-label);
  color: var(--steel);
}
.wall__ask {
  max-width: 18ch;
  font: italic 900 clamp(24px, 1rem + 2.2vw, 56px)/0.95 var(--font-display);
  font-stretch: 125%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--pure-white);
}
.wall__empty .link { margin-top: 6px; }

/* Accueil : s'il y a plus de vidéos que de place, une pastille mène à la page Projets */
.wall__more,
.bubble__label {
  position: absolute; z-index: 5;
  right: calc(var(--mx, 0px) + clamp(10px, 1vw, 16px)); bottom: calc(var(--my, 0px) + clamp(10px, 1vw, 16px)); /* --mx, --my : main.js */
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 11px 16px 11px 18px;
  border: 1px solid rgb(255 255 255 / 0.82);
  border-radius: 999px;
  background: rgb(var(--ink-rgb) / 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 600 15px/1 var(--font-label);
  color: var(--pure-white);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.wall__more sup { font-size: 0.7em; vertical-align: 0.5em; line-height: 0; }
.wall__more:hover,
.bubble:hover .bubble__label,
.bubble:focus-visible .bubble__label { background: var(--gass-red); border-color: var(--gass-red); }
.slate__more { display: none; } /* téléphone : le lien « Tout voir » passe dans le bandeau */

/* Bandeau du mur : « Projets » · catégories · pause. Les catégories passent
   sur une 2e ligne quand la fenêtre est trop étroite pour tout tenir. */
.slate--wall { flex-wrap: wrap; row-gap: 16px; }
.slate--wall .slate__pause { margin-left: auto; }
.slate--wall .filters { order: 1; flex: 1 0 100%; }
@media (min-width: 1100px) {
  .slate--wall .filters { order: 0; flex: 0 1 auto; margin-inline: auto; }
  .slate--wall .slate__pause { margin-left: 0; }
}
.filters { display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 1.5vw, 26px); margin: -10px 0; }
.filter {
  position: relative;
  padding: 10px 0;
  font: inherit;
  font-size: 0.94em;
  line-height: 1;
  white-space: nowrap;
  color: var(--steel);
  transition: color 0.35s var(--ease);
}
.filter sup { margin-left: 0.3em; font-size: 0.7em; vertical-align: 0.6em; line-height: 0; color: var(--gass-red); }
.filter::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 3px;
  height: 1px;
  background: var(--gass-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.filter:hover,
.filter[aria-pressed="true"] { color: var(--label-white); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }
@media (max-width: 699px) { /* téléphone : une seule ligne qui défile au doigt */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
}

.wall__noscript { padding: 24px 0; color: var(--label-white); }
.wall__cta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  color: var(--label-white);
}

/* ==========================================================================
   11. Le studio (3e écran) — accroche, fondateurs, services
   ========================================================================== */
.studio__claim { font-size: min(clamp(2.5rem, 1rem + 5vw, 6.5rem), 10.4vw); }
@media (min-width: 768px) { .studio__claim .line-mask > span { white-space: nowrap; } }
.studio__grid {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(36px, 6vw, 88px);
}
@media (min-width: 768px) {
  .studio__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .studio__services { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .studio__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); }
  .studio__services { grid-column: auto; }
}
.studio__team { margin: 0; }
/* Le bidon GASS en 3D (vidéo en boucle sur fond noir, à droite de la photo) : affiché sur les
   écrans calés de l'accueil, ordinateur et téléphone */
.studio__spin { display: none; }
.studio__spin video { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #000; }
.studio__services { scroll-margin-top: calc(var(--nav-h) + 24px); } /* lien « Services » : sous l'en-tête */
.studio__role { margin-top: 10px; }
.studio__text .lead { max-width: 30ch; margin-top: clamp(18px, 2.4vw, 28px); }

/* Fondateurs : photo telle quelle (N&B + grain léger) dans le cadre blanc à double filet du logo */
.founder__frame {
  --n: 16px; --r1: 3px; --r2: 7px; --mat: 14px;
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: calc(var(--r2) + var(--mat));
  background: var(--label-white);
  clip-path: polygon(var(--n) 0, calc(100% - var(--n)) 0, 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, 0 calc(100% - var(--n)), 0 var(--n));
  rotate: -1deg;
}
.founder__frame::before,
.founder__frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(var(--m) 0, calc(100% - var(--m)) 0, 100% var(--m), 100% calc(100% - var(--m)), calc(100% - var(--m)) 100%, var(--m) 100%, 0 calc(100% - var(--m)), 0 var(--m));
}
.founder__frame::before { --m: calc(var(--n) - var(--r1) * 0.586); inset: var(--r1); background: var(--garage-black); }
.founder__frame::after { --m: calc(var(--n) - var(--r2) * 0.586); inset: var(--r2); background: var(--label-white); }
.founder__photo { position: relative; overflow: hidden; background: var(--asphalt); }
.founder__photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.12) brightness(0.96);
  transition: scale 1s var(--ease);
}
.studio__team:hover .founder__photo img { scale: 1.03; }
.founder__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--grain);
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.founder__name {
  font: italic 900 clamp(22px, 2.1vw, 34px)/0.95 var(--font-display);
  font-stretch: 125%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--pure-white);
}

.services-mini { margin-top: 18px; border-top: 1px solid var(--graphite); }
.service-mini {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--graphite);
}
.service-mini__num { grid-row: span 2; padding-top: 0.2em; }
.service-mini__num,
.story__num { font: 600 13px/1.4 var(--font-label); letter-spacing: 0; color: var(--gass-red); }
.service-mini__name,
.story__title {
  font: italic 900 clamp(18px, 1.5vw, 24px)/1.05 var(--font-display);
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--pure-white);
}
.service-mini__desc { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--steel); }

/* --------------------------------------------------------------------------
   Notre histoire (écran du studio) : trois temps numérotés, dans le style des services
   -------------------------------------------------------------------------- */
.story { display: grid; gap: 14px; align-content: start; margin-top: clamp(36px, 6vw, 72px); scroll-margin-top: calc(var(--nav-h) + 24px); }
.story__title { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--graphite); }
.story__num { flex: none; }
.story__text { font-size: 15px; line-height: 1.45; color: var(--label-white); }
/* Losseni et Amine : un filet blanc pour l'un, rouge pour l'autre */
.story__who { padding-left: 14px; border-left: 2px solid var(--label-white); }
.story__who--a { border-left-color: var(--gass-red); }
.story__name { margin-bottom: 0.4em; font: italic 900 1em/1.1 var(--font-display); font-stretch: 125%; text-transform: uppercase; color: var(--pure-white); }
/* la citation et la phrase de clôture, mises en avant */
.story__end { display: grid; gap: 0.7em; align-content: start; }
.story__quote { margin: 0; }
.story__quote p { font: 500 1.14em/1.26 var(--font-body); letter-spacing: -0.01em; color: var(--pure-white); }
.story__quote p::before { content: "«\00a0"; color: var(--gass-red); }
.story__quote p::after { content: "\00a0»"; color: var(--gass-red); }
.story__closing { font: italic 900 1.1em/1.08 var(--font-display); font-stretch: 125%; letter-spacing: -0.01em; text-transform: uppercase; color: var(--pure-white); }
.story__closing span { display: block; color: var(--gass-red); }

/* Votre regard : les deux textes */
.regard__block p { max-width: 52ch; margin-top: clamp(10px, 1.2vw, 16px); line-height: 1.5; color: var(--label-white); }
.regard__block + .regard__block,
.regard__work { margin-top: clamp(24px, 4vw, 48px); }

/* Bulle « vision d'ensemble » : deux rangées de vignettes (les vidéos du mur) qui défilent en
   sens opposés, en boucle. Pause au survol et au focus (main.js met aussi les vidéos en pause). */
.bubble {
  --h: clamp(140px, 26vh, 240px);
  --r: clamp(22px, 2.4vw, 34px);
  position: relative;
  isolation: isolate;
  display: block;
  width: min(100%, 420px); height: var(--h);
  margin-bottom: clamp(20px, 3vw, 32px);
  overflow: hidden;
  border-radius: var(--r);
  clip-path: inset(0 round var(--r)); /* arrondi net, même autour des vidéos (Safari) */
  background: var(--asphalt);
  -webkit-tap-highlight-color: transparent;
}
html:not(.js) .bubble { display: none; }
.bubble__rows { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; }
.bubble__row {
  display: flex; gap: 4px;
  width: max-content; height: 100%;
  padding-right: 4px; /* un tour = exactement la moitié de la rangée */
  animation: bubble-run var(--t, 60s) linear infinite;
}
.bubble__row:nth-child(even) { animation-direction: reverse; }
.bubble:hover .bubble__row,
.bubble:focus-visible .bubble__row,
.bubble.is-held .bubble__row { animation-play-state: paused; }
.bubble__item { position: relative; flex: none; height: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--graphite); }
.bubble__item--v { aspect-ratio: 9 / 16; }
.bubble__label { right: auto; left: 10px; bottom: 10px; padding: 8px 12px 8px 14px; font-size: 13px; }
@keyframes bubble-run { to { transform: translate3d(-50%, 0, 0); } }

/* Fiche projet : infos clés */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); column-gap: 32px; border-top: 1px solid var(--graphite); }
.facts > div { padding: 18px 0; border-bottom: 1px solid var(--graphite); }
.facts dt { font: 600 var(--fs-meta)/1.4 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); }
.facts dd { margin-top: 6px; font-size: 16px; color: var(--label-white); }

/* ==========================================================================
   12. Devis — « Let’s gass. » + formulaire
   ========================================================================== */
.quote { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 1024px) { .quote { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.quote__title { font-size: clamp(3.25rem, 1rem + 7vw, 9rem); }
.quote__title .line-mask { display: inline-block; vertical-align: top; }
.quote__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px clamp(12px, 2vw, 28px); }

/* Bidon GASS : au survol, il se soulève, se balance et refait le plein (comme au chargement) */
.can {
  position: relative;
  flex: none;
  width: clamp(58px, 10vw, 172px);
  aspect-ratio: 411 / 472;
  margin-bottom: 0.2em;
  rotate: -8deg;
  transition: rotate 0.7s var(--ease), translate 0.7s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.can img { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 699px) { .quote__head .can { width: clamp(58px, 19vw, 92px); } }
.can__empty { opacity: 0.9; }
/* .is-filling est posé par main.js : au survol (il le retire en douceur quand la souris s'en va),
   ou à l'arrivée à l'écran et au doigt sur téléphone. Sans JavaScript, le survol suffit. */
.can.is-filling,
html:not(.js) .can:hover { animation: can-lift 1s var(--ease) both; }
.can.is-filling .can__full,
html:not(.js) .can:hover .can__full { animation: can-fill 1.15s var(--ease-io) both; }
@keyframes can-lift {
  0% { rotate: -8deg; translate: 0 0; }
  22% { rotate: 7deg; translate: 0 -12px; }
  44% { rotate: -3deg; translate: 0 -7px; }
  68% { rotate: 4deg; translate: 0 -10px; }
  100% { rotate: 2deg; translate: 0 -8px; }
}
@keyframes can-fill { /* le niveau monte avec une petite vague */
  0% { clip-path: polygon(0% 100%, 0% 100%, 20% 100%, 40% 100%, 60% 100%, 80% 100%, 100% 100%, 100% 100%); }
  12% { clip-path: polygon(0% 100%, 0% 97%, 20% 94%, 40% 96%, 60% 99%, 80% 96%, 100% 93%, 100% 100%); }
  40% { clip-path: polygon(0% 100%, 0% 66%, 20% 62%, 40% 65%, 60% 69%, 80% 66%, 100% 62%, 100% 100%); }
  72% { clip-path: polygon(0% 100%, 0% 30%, 20% 34%, 40% 30%, 60% 26%, 80% 29%, 100% 33%, 100% 100%); }
  100% { clip-path: polygon(0% 100%, 0% 0%, 20% 0%, 40% 0%, 60% 0%, 80% 0%, 100% 0%, 100% 100%); }
}
.quote__intro .lead { margin-top: clamp(20px, 3vw, 32px); max-width: 32ch; }

.contact__email {
  display: inline-block;
  margin-top: clamp(24px, 3vw, 40px);
  font: italic 800 clamp(1.25rem, 0.6rem + 1.8vw, 2.4rem)/1.15 var(--font-display);
  font-stretch: 112%;
  letter-spacing: -0.01em;
  color: var(--label-white);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
  text-decoration-color: var(--gass-red);
  overflow-wrap: anywhere;
  transition: color 0.4s var(--ease);
}
.contact__email:hover { color: var(--gass-red); }
@media (max-width: 599px) { .contact__email { font-stretch: 100%; } }

/* Réseaux : logos YouTube, Instagram, TikTok (zone de clic de 44 px) */
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-inline: -10px; }
.social {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  color: var(--label-white);
  transition: color 0.35s var(--ease), translate 0.5s var(--ease);
}
.social svg { width: 24px; height: 24px; fill: currentColor; }
.social:hover { color: var(--gass-red); translate: 0 -3px; }
.social:focus-visible { outline-offset: 0; }

.brief { display: grid; gap: 30px; }
.brief__row { display: grid; gap: 30px; }
@media (min-width: 640px) { .brief__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { font: 600 13px/1.4 var(--font-label); color: var(--steel); padding: 0; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--graphite);
  border-radius: 0;
  color: var(--label-white);
  font: 400 17px/1.4 var(--font-body);
  transition: border-color 0.4s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%);
  background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field select option { background: var(--asphalt); color: var(--label-white); }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgb(138 138 138 / 0.7); }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-bottom-color: var(--gass-red); }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible { box-shadow: 0 1px 0 0 var(--gass-red); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.choice span {
  display: inline-block;
  padding: 12px 16px;
  border: 1px solid var(--graphite);
  font: 600 14px/1 var(--font-label);
  letter-spacing: 0;
  color: var(--label-white);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.choice:hover span { border-color: var(--steel); }
.choice input:checked + span { background: var(--gass-red); border-color: var(--gass-red); color: var(--pure-white); }
.choice input:focus-visible + span { outline: 2px solid var(--gass-red); outline-offset: 3px; }
.brief__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.form-status { min-height: 1.4em; color: var(--label-white); }

/* Accueil : chaque défilement (trackpad, molette, clavier) mène à l'écran
   suivant et le cale en plein écran. Téléphone : bloc suivant. */
@media (min-width: 900px) and (min-height: 620px) {
  html.page-home { scroll-snap-type: y mandatory; }
  .page-home .cover,
  .page-home .slide { scroll-snap-align: start; scroll-snap-stop: always; }
  .page-home .site-footer { scroll-snap-align: end; }
  .page-home .slide {
    display: flex; flex-direction: column;
    min-height: 100vh; min-height: 100svh;
    padding-top: calc(var(--nav-h) + 8px);
    padding-bottom: clamp(18px, 3.2vh, 40px);
  }
  .page-home .slate { margin-bottom: clamp(12px, 2.4vh, 32px); }
  .page-home .slide__body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
  /* le mur entier dans l'écran : le plus grand cadre 16:9 qui tient sous le bandeau
     (écran de hauteur fixe, pour que le cadre puisse se mesurer sur la place restante) */
  .page-home .slide--wall { height: 100vh; height: 100svh; }
  .page-home .slide--wall .slide__body { container-type: size; }
  .page-home .slide--wall .wall {
    /* navigateurs anciens : hauteur dispo estimée = écran − en-tête − bandeau − marges */
    width: min(100%, calc((100vh - var(--nav-h) - 76px - clamp(12px, 2.4vh, 32px) - clamp(18px, 3.2vh, 40px)) * 16 / 9));
    width: min(100cqw, 100cqh * 16 / 9);
    margin-inline: auto;
  }
  /* le studio : l'accroche, puis photo + texte + bidon 3D, puis « Notre histoire » en 4 colonnes.
     Les tailles suivent la hauteur de l'écran, pour que tout tienne sans vide. */
  .page-home .slide--studio .slide__body {
    --photo: clamp(84px, 32vh - 92px, 300px); /* hauteur de la photo */
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "claim claim claim" "team text spin" "story story story";
    align-content: center;
    gap: clamp(10px, 2.6vh, 40px) clamp(32px, 4vw, 72px);
  }
  .page-home .studio__hero,
  .page-home .studio__grid { display: contents; }
  .page-home .studio__claim { grid-area: claim; font-size: min(clamp(2.5rem, 1rem + 5vw, 6.5rem), 8vh); }
  @media (min-width: 1100px) { /* fenêtre assez large : l'accroche tient sur une seule ligne */
    .page-home .studio__claim { font-size: min(8.4vh, calc((100vw - 2 * var(--gutter)) / 25.6)); }
    .page-home .studio__claim .line-mask { display: inline-block; vertical-align: top; }
  }
  .page-home .studio__team { grid-area: team; width: calc(var(--photo) * 4 / 3 + 44px); max-width: 46vw; }
  .page-home .studio__text { grid-area: text; align-self: center; }
  .page-home .studio__spin { display: block; grid-area: spin; align-self: center; width: min(calc(var(--photo) + 43px), 24vw); } /* la hauteur de la photo */
  .page-home .studio__text .lead { max-width: 34ch; margin-top: clamp(10px, 2vh, 26px); font-size: min(clamp(1.05rem, 0.7rem + 0.75vw, 1.5rem), 3.2vh); }
  .page-home .story {
    grid-area: story;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas: "k k k k" "t1 t2 t2 t3" "c1 l a c3";
    gap: clamp(8px, 1.3vh, 14px) clamp(16px, 2vw, 32px);
    margin-top: 0;
  }
  .page-home .story__kicker { grid-area: k; }
  .page-home .story__title--1 { grid-area: t1; }
  .page-home .story__title--2 { grid-area: t2; }
  .page-home .story__title--3 { grid-area: t3; }
  .page-home .story__text--1 { grid-area: c1; }
  .page-home .story__who--l { grid-area: l; }
  .page-home .story__who--a { grid-area: a; }
  .page-home .story__end { grid-area: c3; }
  .page-home .story__title { padding-top: 12px; font-size: clamp(14px, 1.25vw, 22px); }
  /* texte : il suit la hauteur de l'écran et la largeur des colonnes */
  .page-home .story__text,
  .page-home .story__name,
  .page-home .story__end { font-size: clamp(12px, min(1.7vh, 1.05vw), 22px); }
  .page-home .story__text { line-height: 1.42; }
  /* votre regard : les deux textes, la bulle à droite sur la même hauteur, puis les 4 services */
  .page-home .slide--regard .slide__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) clamp(230px, 27vw, 640px);
    grid-template-areas: "a b bubble" "serv serv serv";
    align-content: center;
    gap: clamp(20px, 5vh, 64px) clamp(28px, 3.4vw, 64px);
  }
  .page-home .regard__work { display: contents; }
  .page-home .regard__block { grid-area: a; margin-top: 0; }
  .page-home .regard__block--b { grid-area: b; }
  .page-home .regard__block .founder__name { font-size: min(clamp(22px, 2.5vw, 64px), 5.4vh); }
  .page-home .regard__block p { max-width: none; margin-top: clamp(10px, 2.2vh, 24px); font-size: min(clamp(16px, 1.4vw, 32px), 2.65vh); }
  .page-home .bubble { grid-area: bubble; width: 100%; height: 100%; min-height: clamp(170px, 36vh, 420px); margin: 0; }
  .page-home .studio__services { grid-area: serv; }
  .page-home .services-mini {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 clamp(16px, 2vw, 32px);
    margin-top: 10px;
    border-top: 0;
  }
  .page-home .service-mini { padding: 12px 0 0; border-top: 1px solid var(--graphite); border-bottom: 0; }
  .page-home .service-mini__name { font-size: clamp(14px, 1.25vw, 22px); }
  .page-home .service-mini__desc { font-size: clamp(13.5px, 1.75vh, 16px); line-height: 1.38; }
  @media (max-width: 1023px) { .page-home .service-mini__desc { display: none; } } /* fenêtre étroite : les noms seuls */
  /* le devis sur deux colonnes */
  .page-home .quote { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
  .page-home .quote__title { font-size: min(clamp(3.25rem, 1rem + 7vw, 9rem), 13vh); }
  .page-home .brief,
  .page-home .brief__row { gap: clamp(14px, 2.6vh, 30px); }
  .page-home .field textarea { min-height: clamp(70px, 12vh, 130px); }
}

/* Téléphone (et fenêtre étroite) : même défilement page par page, sur 7 écrans :
   accueil, projets, studio, notre histoire, votre regard, la bulle et les services, devis.

   Ici, c'est <body> qui défile, pas la fenêtre. Sur iPhone, la barre de Safari reste
   alors en place : la hauteur visible ne change jamais, chaque écran la remplit exactement
   (--screen) et un geste du doigt mène toujours à l'écran suivant. (Quand la fenêtre
   défile, la barre se replie, la hauteur change et le calage devient irrégulier.)
   main.js lit donc la position de défilement sur <body> aussi (pageY). */
:root { --bleed: 0px; }
@media (max-width: 899px) and (min-height: 520px) {
  html.page-home {
    --screen: 100vh;
    --screen-b: max(14px, env(safe-area-inset-bottom, 0px)); /* marge basse d'un écran : jamais sous une barre de l'iPhone */
    height: 100%; overflow: hidden;
  }
  @supports (height: 100dvh) { html.page-home { --screen: 100dvh; } }
  .page-home body {
    height: 100vh;
    height: -webkit-fill-available; /* Safari plus ancien : la hauteur visible */
    height: 100dvh;
    overflow-x: hidden; overflow-y: auto;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
  }
  html.page-home.is-typing body { scroll-snap-type: none; } /* clavier ouvert : la page suit le champ rempli */
  .page-home body.menu-open,
  html.page-home.show-loader body { overflow: hidden; }

  /* Un point d'arrêt par écran, jamais sur une boîte plus haute que l'écran. Le studio et
     « votre regard » font deux écrans : leur premier écran se cale sur leur bandeau. */
  .page-home .cover,
  .page-home .slide--wall,
  .page-home .slide--contact,
  .page-home .slide--studio > .slate,
  .page-home .slide--regard > .slate,
  .page-home .story,
  .page-home .regard__work { scroll-snap-align: start; scroll-snap-stop: always; }
  .page-home .slide--studio > .slate,
  .page-home .slide--regard > .slate { scroll-margin-top: calc(var(--nav-h) + 6px); } /* = la marge haute de l'écran */
  .page-home .site-footer { scroll-snap-align: end; }

  .page-home .cover { height: var(--screen); }
  .page-home .slide {
    display: flex; flex-direction: column;
    min-height: var(--screen);
    padding-top: calc(var(--nav-h) + 6px);
    padding-bottom: var(--screen-b);
  }
  .page-home .slate { margin-bottom: clamp(8px, 1.8vh, 18px); padding-bottom: 12px; }

  /* projets : le mur prend toute la place sous le bandeau (cases placées par main.js) */
  .page-home .slide--wall { height: var(--screen); }
  .page-home .slide--wall .slate { row-gap: 12px; }
  .page-home .slide--wall .slide__body { flex: 1; min-height: 0; }
  .page-home .wall__more { display: none; } /* « Tout voir » : dans le bandeau, pas sur les vidéos */
  .page-home .slate__more:not([hidden]) {
    display: inline-flex; align-items: baseline; gap: 0.4em;
    margin: -12px 0 -12px auto; padding: 12px 0;
    color: var(--label-white);
  }
  .page-home .slate__more sup { font-size: 0.7em; vertical-align: 0.6em; line-height: 0; color: var(--gass-red); }
  .page-home .slate__more .arrow { color: var(--gass-red); }
  .page-home .slate__more:not([hidden]) ~ .slate__pause { margin-left: 0; }

  /* Studio et « votre regard » : deux écrans chacun, en grille. Sur le premier, la rangée
     souple (1fr) prend la place qui reste ; le second bloc fait un écran entier. */
  .page-home .slide--studio,
  .page-home .slide--regard {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: calc(2 * var(--screen));
    min-height: min-content; /* contenu plus haut que prévu : la section s'allonge */
    padding-bottom: 0;
  }
  .page-home .slide--studio { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; grid-template-rows: auto auto minmax(96px, 1fr) auto minmax(var(--screen), auto); }
  .page-home .slide--regard { grid-template-rows: auto minmax(0, 1fr) auto auto minmax(var(--screen-b), 1fr) minmax(var(--screen), auto); }
  .page-home .slide--studio .slide__body,
  .page-home .studio__hero,
  .page-home .studio__grid,
  .page-home .slide--regard .slide__body { display: contents; }
  /* les blocs qui font un écran à eux seuls : même marge haute et basse qu'un écran */
  .page-home .story,
  .page-home .regard__work {
    box-sizing: border-box;
    display: flex; flex-direction: column; justify-content: center;
    min-height: var(--screen);
    margin-top: 0;
    padding-top: calc(var(--nav-h) + 6px);
    padding-bottom: var(--screen-b);
    scroll-margin-top: 0;
  }

  /* le studio : accroche, photo + bidon 3D (la photo prend la place qui reste), texte */
  .page-home .studio__claim { font-size: min(clamp(2.1rem, 1rem + 5vw, 4.5rem), 10.4vw, 6.4vh); }
  @media (max-height: 640px) { /* petit téléphone : l'accroche sur 2 lignes (main.js ajuste sa taille), la photo y gagne */
    .page-home .studio__claim .line-mask > span { white-space: nowrap; }
  }
  .page-home .studio__team {
    container-type: size;
    display: grid; place-items: center start;
    min-height: 0;
    margin-top: clamp(12px, 2.4vh, 24px);
  }
  .page-home .studio__team .founder__frame { --mat: 9px; width: min(100%, 100cqw, (100cqh - 12px) * 4 / 3); }
  /* la photo à gauche, le bidon 3D à droite ; tout le reste sur toute la largeur */
  .page-home .slide--studio .slate,
  .page-home .studio__claim,
  .page-home .studio__text,
  .page-home .story { grid-column: 1 / -1; }
  .page-home .studio__spin { display: block; align-self: center; width: clamp(96px, 34vw, 250px); margin-top: clamp(12px, 2.4vh, 24px); }
  .page-home .studio__text { margin-top: clamp(12px, 2.2vh, 22px); padding-bottom: var(--screen-b); }
  .page-home .studio__text .lead { max-width: 34ch; margin-top: clamp(8px, 1.6vh, 16px); font-size: clamp(1rem, min(0.8rem + 1.3vw, 2.9vh), 1.6rem); line-height: 1.32; }

  /* Notre histoire : tout sur un seul écran, sans défiler. Les tailles suivent la hauteur et
     la largeur de l'écran ; si le texte dépasse encore, main.js baisse --fit cran par cran. */
  .page-home .story { --fit: 1; gap: calc(var(--fit) * clamp(4px, 1.05vh, 12px)); }
  .page-home .story__kicker { font-size: clamp(10.5px, 1.7vh, 13px); }
  .page-home .story__title {
    gap: 9px;
    margin-top: calc(var(--fit) * clamp(2px, 0.9vh, 12px));
    padding-top: calc(var(--fit) * clamp(6px, 1.2vh, 14px));
    font-size: calc(var(--fit) * clamp(12.5px, min(2.1vh, 3.6vw), 26px));
  }
  .page-home .story__title--1 { margin-top: 0; }
  .page-home .story__num { font-size: calc(var(--fit) * clamp(10.5px, 1.7vh, 13px)); }
  .page-home .story__text,
  .page-home .story__name,
  .page-home .story__end { font-size: calc(var(--fit) * clamp(11.5px, min(1.87vh, 3.2vw), 22px)); }
  .page-home .story__text { line-height: 1.36; }
  .page-home .story__who { padding-left: 10px; }
  .page-home .story__name { margin-bottom: 0.2em; }
  .page-home .story__end { gap: 0.5em; }

  /* votre regard : les deux textes sur un écran, puis la bulle et les services sur le suivant */
  .page-home .slide--regard .slate { grid-row: 1; }
  .page-home .regard__block { grid-row: 3; margin-top: 0; }
  .page-home .regard__block--b { grid-row: 4; margin-top: clamp(14px, 3.2vh, 32px); }
  .page-home .regard__work { grid-row: 6; gap: clamp(8px, 1.8vh, 18px); }
  .page-home .regard__block .founder__name { font-size: min(clamp(20px, 6.2vw, 46px), 3.9vh); }
  .page-home .regard__block p { max-width: none; margin-top: clamp(6px, 1.4vh, 12px); font-size: clamp(13px, min(2.45vh, 4.2vw), 24px); line-height: 1.42; }
  .page-home .bubble { flex: none; width: 100%; --h: clamp(84px, 16vh, 240px); margin: 0; }
  .page-home .services-mini { margin-top: clamp(6px, 1.4vh, 14px); }
  .page-home .service-mini { padding: clamp(7px, 1.7vh, 22px) 0; }
  .page-home .service-mini__name { font-size: clamp(17px, min(4.6vw, 3.4vh), 34px); }
  .page-home .service-mini__desc { margin-top: 4px; font-size: clamp(13.5px, min(3.7vw, 2.4vh), 22px); line-height: 1.36; }

  /* devis : « Let's gass. », l'adresse et le formulaire sur un seul écran ; le champ du
     message prend la place qui reste (hauteur fixe : c'est lui qui s'ajuste) */
  .page-home .slide--contact { height: var(--screen); }
  .page-home .slide--contact .slide__body,
  .page-home .quote,
  .page-home .quote__form { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .page-home .quote { gap: clamp(6px, 1.9vh, 22px); }
  .page-home .quote__head { align-items: center; }
  .page-home .quote__title { font-size: min(8.4vw, 6.4vh); white-space: nowrap; } /* sur une ligne, le bidon à côté */
  .page-home .quote__head .can { width: clamp(40px, min(13vw, 8.6vh), 96px); margin-bottom: 0; }
  .page-home .quote__intro .lead { max-width: none; margin-top: clamp(6px, 1.3vh, 14px); font-size: clamp(15px, min(2.5vh, 4.3vw), 24px); line-height: 1.3; }
  .page-home .contact__email { margin-top: clamp(4px, 1vh, 12px); font-size: clamp(1.05rem, min(2.9vh, 5vw), 1.7rem); }
  .page-home .quote__form { gap: clamp(6px, 1.5vh, 20px); }
  .page-home .brief__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .page-home .field { gap: 2px; }
  .page-home .field input,
  .page-home .field select { padding: clamp(6px, 1.3vh, 12px) 0; }
  .page-home .field--grow { flex: 1; grid-template-rows: auto minmax(0, 1fr); min-height: clamp(46px, 9vh, 72px); }
  .page-home .field textarea { min-height: 0; height: 100%; padding: 6px 0; resize: none; }
  .page-home .choices { gap: 6px; margin-top: 4px; }
  .page-home .choice span { padding: clamp(6px, 1.3vh, 12px) 12px; }
  .page-home .brief__foot { gap: 8px 20px; }
  .page-home .form-status:empty { display: none; }
  @media (max-height: 600px) { /* petit téléphone : la phrase d'accroche laisse sa place au formulaire */
    .page-home .quote__intro .lead { display: none; }
  }
}

/* ==========================================================================
   13. Project page
   ========================================================================== */
.project-hero { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px)); }
.project-hero__head { padding: 0 var(--gutter) clamp(32px, 5vw, 56px); }
.back-link { display: inline-block; margin-bottom: clamp(28px, 4vw, 48px); transition: color 0.4s var(--ease); }
.back-link:hover { color: var(--gass-red); }
.project-title { margin-top: 16px; font-size: clamp(3rem, 0.5rem + 8.5vw, 10rem); }
.project-client {
  margin-top: 20px;
  font: 600 16px/1.3 var(--font-label);
  letter-spacing: -0.005em;
  color: var(--label-white);
}
.player {
  position: relative;
  width: min(100%, calc((100svh - var(--nav-h)) * 16 / 9));
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.player--vertical { /* vidéo verticale : en hauteur, centrée */
  width: min(100%, calc((100vh - var(--nav-h) - 32px) * 9 / 16));
  width: min(100%, calc((100svh - var(--nav-h) - 32px) * 9 / 16));
  aspect-ratio: 9 / 16;
}
.player__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.player:not(.is-active)::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.3); pointer-events: none; }
.player__play {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  font: 600 15px/1 var(--font-label);
  letter-spacing: -0.005em;
  color: var(--pure-white);
}
.player__play .play-icon { width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); }
.player:hover .player__poster { transform: scale(1.02); }
.player:hover .play-icon { transform: scale(1.08); }
.player video,
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

.project-body { display: grid; gap: 48px; padding-inline: var(--gutter); }
.project-body .lead { margin-top: 20px; max-width: 32ch; }
.project-film { margin-top: 32px; }
@media (min-width: 960px) { .project-body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
@media (min-width: 960px) { .project-body--facts-only { grid-template-columns: minmax(0, 1fr); } }
.project-body__text > :first-child { margin-top: 0; }

.stills { display: grid; gap: 2px; }
.still { overflow: hidden; background: var(--asphalt); }
.still img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 768px) {
  .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .still:first-child { grid-column: 1 / -1; }
  .still:first-child img { aspect-ratio: 21 / 9; }
}
.stills.stills--vertical { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stills--vertical .still:first-child { grid-column: auto; }
.stills--vertical .still img,
.stills--vertical .still:first-child img { aspect-ratio: 9 / 16; }

.credits { padding-inline: var(--gutter); }
.credits__list { display: grid; column-gap: 48px; margin-top: 28px; border-top: 1px solid var(--graphite); }
.credits__list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--graphite); }
.credits__list dt { font: 600 var(--fs-meta)/1.4 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); }
.credits__list dd { font-size: 15px; text-align: right; color: var(--label-white); }
@media (min-width: 768px) { .credits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .credits__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pager { display: grid; gap: 2px; margin-top: 2px; }
@media (min-width: 768px) { .pager { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pager__item {
  position: relative;
  isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(240px, 30vw, 440px);
  padding: clamp(24px, 3vw, 44px);
  overflow: hidden;
  background: var(--asphalt);
  color: var(--pure-white);
}
.pager__item img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.pager__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(var(--ink-rgb) / 0.8), rgb(var(--ink-rgb) / 0) 70%); }
.pager__item::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--gass-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.pager__item:hover img { opacity: 0.85; transform: scale(1.03); }
.pager__item:hover::after { transform: scaleX(1); }
.pager__item--next { align-items: flex-end; text-align: right; }
.pager--single { grid-template-columns: minmax(0, 1fr); }
.pager__item--next::after { transform-origin: right; }
.pager__title {
  margin: 14px 0 10px;
  font: italic 900 clamp(32px, 4.6vw, 76px)/0.95 var(--font-display);
  font-stretch: 125%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ==========================================================================
   14. Footer — une ligne
   ========================================================================== */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 40px;
  padding: 26px var(--gutter) calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--graphite);
}
.footer__brand { display: inline-flex; align-items: center; gap: 14px; }
.footer__brand img { width: auto; height: 40px; rotate: -4deg; transition: rotate 0.6s var(--ease); }
.footer__brand:hover img { rotate: 4deg; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { transition: color 0.4s var(--ease); }
.footer__legal a:hover { color: var(--gass-red); }

/* ==========================================================================
   15. Reel dialog
   ========================================================================== */
.reel {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: #000; /* la vidéo se regarde sur du noir */
  color: var(--label-white);
}
.reel[open] { display: grid; place-items: center; animation: reel-in 0.6s var(--ease); }
.reel::backdrop { background: rgb(0 0 0 / 0.92); }
@keyframes reel-in { from { opacity: 0; } }
.reel__stage { width: min(100vw, calc(100dvh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.reel__stage video,
.reel__stage iframe { width: 100%; height: 100%; border: 0; }
.reel__close {
  position: fixed; top: 14px; right: var(--gutter); z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 0;
  font: 600 15.5px/1 var(--font-label);
  letter-spacing: -0.005em;
  color: var(--label-white);
  transition: color 0.4s var(--ease);
}
.reel__close:hover { color: var(--gass-red); }

/* ==========================================================================
   16. Legal & 404
   ========================================================================== */
.legal { display: grid; gap: 48px; padding: 0 var(--gutter) var(--section); }
.legal h2 { margin-bottom: 16px; }
.legal dl > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--graphite); }
.legal dd { color: var(--label-white); }
@media (min-width: 960px) { .legal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lost { min-height: 100vh; min-height: 100svh; display: grid; align-content: end; gap: 28px; padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(48px, 10vh, 120px); }
.lost img { width: clamp(120px, 16vw, 200px); height: auto; rotate: 18deg; }

/* Page « bientôt » (réseau pas encore ouvert) : le bidon fait le plein en boucle */
.soon {
  display: grid; align-content: end; justify-items: start; gap: 28px;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(48px, 10vh, 120px);
}
.soon__can { width: clamp(120px, 16vw, 200px); margin: 0; rotate: 10deg; }
.soon__can .can__full { animation: soon-fill 4.6s var(--ease-io) infinite; }
@keyframes soon-fill { /* le niveau monte avec une petite vague, s'arrête presque en haut, puis repart de zéro */
  0% { opacity: 1; clip-path: polygon(0% 100%, 0% 100%, 20% 100%, 40% 100%, 60% 100%, 80% 100%, 100% 100%, 100% 100%); }
  10% { clip-path: polygon(0% 100%, 0% 96%, 20% 93%, 40% 95%, 60% 98%, 80% 95%, 100% 92%, 100% 100%); }
  34% { clip-path: polygon(0% 100%, 0% 68%, 20% 64%, 40% 67%, 60% 71%, 80% 68%, 100% 64%, 100% 100%); }
  58% { clip-path: polygon(0% 100%, 0% 36%, 20% 40%, 40% 36%, 60% 32%, 80% 35%, 100% 39%, 100% 100%); }
  72%, 88% { opacity: 1; clip-path: polygon(0% 100%, 0% 18%, 20% 18%, 40% 18%, 60% 18%, 80% 18%, 100% 18%, 100% 100%); }
  100% { opacity: 0; clip-path: polygon(0% 100%, 0% 18%, 20% 18%, 40% 18%, 60% 18%, 80% 18%, 100% 18%, 100% 100%); }
}
.soon__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* ==========================================================================
   17. Reveal motion — slide up with a slight italic skew
   ========================================================================== */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
html.js [data-cover-reveal]:not([data-cover-reveal="lines"]) {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), text-decoration-color 0.35s var(--ease);
}
html.js [data-reveal].is-in,
html.js [data-cover-reveal].is-in { opacity: 1; transform: none; }

.line-mask { display: block; overflow: hidden; padding: 0.2em 0.16em 0.06em 0.02em; margin: -0.2em -0.16em -0.06em -0.02em; }
.line-mask > span { display: inline-block; }
html.js .line-mask > span { transform: translate3d(-0.05em, 118%, 0) skewX(-9deg); transition: transform 1.15s var(--ease); }
html.js .is-in .line-mask > span { transform: none; }

.word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.2em 0.12em 0.06em 0; margin: -0.2em -0.12em -0.06em 0; }
.word > span { display: inline-block; }
html.js [data-split] .word > span { transform: translate3d(0, 115%, 0) skewX(-8deg); transition: transform 1s var(--ease); }
html.js [data-split].is-in .word > span { transform: none; }

/* ==========================================================================
   18. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal],
  html.js [data-cover-reveal],
  html.js .line-mask > *,
  html.js [data-split] .word > span { opacity: 1 !important; transform: none !important; }
  html.js .cover__frame { clip-path: none !important; }
  html.js [data-reveal-tiles] .tile { opacity: 1 !important; animation: none !important; }
  .soon__can .can__full { animation: none !important; clip-path: inset(40% 0 0 0); }
  .bubble__row { animation: none !important; } /* la bulle ne défile plus */
}

/* ==========================================================================
   19. Téléphone (écrans tactiles et étroits)
   ========================================================================== */
@media (max-width: 899px) {
  /* écrans plus serrés : moins de vide entre deux écrans */
  .slide { padding-top: calc(var(--nav-h) + 6px); padding-bottom: clamp(44px, 7vh, 64px); }
}
@media (max-width: 699px) {
  /* la barre des catégories défile au doigt : le bord droit s'estompe pour le montrer */
  .filters {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
  }
}
@media (hover: none) {
  /* pas de survol au doigt : le nom des vidéos reste affiché (sauf sur les cases étroites) */
  .tile:not(.tile--small) .tile__label { opacity: 1; transform: none; }
}
@media (hover: none) and (pointer: coarse) {
  /* invitation à descendre : une flèche plutôt qu'une souris */
  .cover__scroll { width: 34px; height: 34px; border: 0; border-radius: 0; }
  .cover__scroll span {
    top: 6px; left: 50%;
    width: 14px; height: 14px;
    margin-left: -7px;
    border-radius: 0;
    background: none;
    border-right: 2px solid var(--pure-white);
    border-bottom: 2px solid var(--pure-white);
    rotate: 45deg;
    animation: scroll-hint-touch 1.8s var(--ease) infinite;
  }
}
@keyframes scroll-hint-touch {
  0%, 100% { translate: 0 0; opacity: 0.55; }
  50% { translate: 0 8px; opacity: 1; }
}
