/* Valeurs issues de la maquette Figma (cadre de 1440 x 1024), converties en unités relatives. */

:root {
  --ink: var(--c-ink);
  --pill: var(--c-solid-line-2);
  --paper: var(--c-bg);
  --hero-scroll: 360vh;          /* vidéo puis fondu au blanc (découpage dans main.js) ; ensuite, scroll normal */
  /* animation commune des textes (celle de « Designing with purpose ») : montée, flou -> net, fondu */
  --rise-t: var(--dur-5);
  --rise-ease: var(--ease-out);
  --rise-step: 90ms;             /* décalage entre deux lignes */
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }

/* ---------------------------------------------------------------- scène fixe */
.hero { position: relative; height: calc(100vh + var(--hero-scroll)); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); container-type: inline-size; }   /* cqw = largeur réelle, sans la barre de défilement */
/* cadre de la vidéo : plein écran recadré par défaut (téléphone) */
.hero__frame { position: absolute; inset: 0; container-type: size; }
/* ordinateur : la vidéo garde son 16:9 entier, centrée, quelle que soit la forme de la fenêtre */
@media (min-width: 901px) {
  .hero__frame {
    inset: auto;
    left: 50%;
    top: 50%;
    width: min(100vw, 177.78vh);                   /* 16 / 9 */
    height: min(56.25vw, 100vh);                   /* 9 / 16 */
    transform: translate(-50%, -50%);
  }
}
.hero__poster,
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__canvas { opacity: 0; transition: opacity var(--dur-5) var(--ease-standard); }
.hero.is-ready .hero__canvas { opacity: 1; }
.hero.is-ready .hero__poster { opacity: 0; transition: opacity var(--dur-5) var(--ease-standard) var(--dur-1); }
.hero__white { position: absolute; inset: 0; background: var(--paper); opacity: var(--white, 0); pointer-events: none; }

/* ---------------------------------------------------------------- titre, sur la vidéo (position de la maquette, relative au cadre) */
/* la phrase est maintenant dessinée en 3D (elle sort de l'eau, hero3d.js) : le titre HTML reste pour l'accessibilité et le référencement */
.js .hero--ocean.is-ready .hero__title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero__title {
  position: absolute;
  left: 11.39%;                                    /* 164 / 1440 */
  bottom: 13.96%;                                  /* (1024 - 881) / 1024 */
  left: 50%; bottom: auto; top: 27%; transform: translateX(-50%); text-align: center;   /* au-dessus de l'horizon: la phrase, puis « Clarity. » qui sort de l'eau dessous */
  margin: 0;
  font-weight:var(--fw-regular);
  font-size:clamp(28px, 3.611cqw, 52px);          /* 52 / 1440 de la largeur du cadre */
  line-height:1;
  letter-spacing:var(--ls-display);                         /* -2.6px / 52px */
  color: var(--c-on-ink);                                     /* blanc: lisible sur le marbre noir comme sur la mer */
  text-shadow: 0 1px 18px rgba(0, 30, 60, .35);
}
/* chaque ligne arrive au scroll (monte et se précise), puis repart vers le haut avant que le livre s'ouvre */
/* ouverture « chaos → système » : DA de la galerie (encre sur fond #fbfbfa, Geist, étiquettes mono) */
.hero--system .hero__stage { background: var(--c-bg); }
.hero--system .hero__3d { display: none; }
.hero--ocean .hero__sys, .hero:not(.hero--system):not(.hero--points) .hero__top { display: none; }
.hero:not(.hero--points) .hero__pts, .hero--points .hero__sys, .hero--points .hero__3d { display: none; }
/* ouverture « points et lignes » : gris perle, une phrase minuscule au centre */
.hero--points .hero__stage { background: var(--c-well); }
.hero--points .hero__top { mix-blend-mode: difference; color: var(--c-faint); } .hero--points .hero__top b { color: var(--c-on-ink); }   /* lisible sur le gris comme sur le noir */
.hero--points .hero__title { inset: 0; display: grid; place-items: center; transform: none; text-align: center; color: var(--c-ink); text-shadow: none;
  font: 400 var(--fs-body)/var(--lh-snug) var(--font-sans); letter-spacing:var(--ls-body); pointer-events: none; }
.hero--points .hero__title span { grid-area: 1 / 1; padding-top: 22vh; }
.hero--points .hero__title span:nth-child(2), .hero--points .hero__title span:nth-child(3) { padding-top: 60vh; }
.hero--points .hero__title span:nth-child(1) { padding-top: 0; }   /* au milieu, dans la zone calme */
.hero--points .hero__title span:nth-child(4) { margin-top: 66vh; padding: .25em .7em; background: color-mix(in srgb, var(--c-well) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: var(--r-pill); }   /* sous la constellation, détachée des écrans */   /* sous la grille et la planche */
.hero--points .hero__title span:not(:nth-child(5)) { font-size:var(--fs-h3); letter-spacing:var(--ls-tight); }   /* phrases plus présentes */
.hero--points .hero__title span:nth-child(5) { color: var(--c-on-ink); padding-top: 0; font-weight:var(--fw-medium); }
.hero__top { position: absolute; z-index: 2; top: clamp(24px, 4vh, 40px); left: clamp(24px, 3vw, 56px); right: max(24px, 2.4vw);
  display: flex; justify-content: space-between; font: 500 var(--fs-2xs)/1 var(--font-mono); letter-spacing:var(--ls-label); text-transform: uppercase; color: var(--c-muted); pointer-events: none; }
.hero__top b { font-weight:var(--fw-medium); color: var(--c-ink); }
.hero--system .hero__title { top: auto; bottom: clamp(28px, 6vh, 64px); left: clamp(24px, 3vw, 56px); transform: none; text-align: left;
  display: grid; color: var(--c-ink); text-shadow: none; font-family: var(--font-sans); letter-spacing:var(--ls-heading); pointer-events: none; }
.hero--system .hero__title span { grid-area: 1 / 1; }
.hero__title span {
  display: block;
  white-space: nowrap;
  opacity: calc(var(--in, 0) * (1 - var(--out, 0)));
  transform: translateY(calc((1 - var(--in, 0)) * 0.6em - var(--out, 0) * 0.4em));
  filter: blur(calc((1 - var(--in, 0) + var(--out, 0)) * 6px));
  will-change: opacity, transform, filter;
}

/* ---------------------------------------------------------------- manifeste, au centre après le blanc */
.manifesto {
  --fs: clamp(26px, calc((100cqw - 32px) / 18.4), 150px);   /* 3 lignes pleine largeur: la plus longue fait 17,75 em, plus une marge */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);                        /* marges de 16 px de la maquette */
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.222em;                                    /* 16 / 72 */
  font-size: var(--fs);
  font-weight:var(--fw-semibold);
  line-height: 1;
  letter-spacing: -0.08em;                         /* -5.76px / 72px */
  text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
}
.line { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 0.222em; }   /* 3 lignes, jamais coupées */
/* téléphone : le texte passe à la ligne, mais en lignes équilibrées (aucun mot laissé seul) */
@media (max-width: 520px) {
  .manifesto { --fs: clamp(26px, 8.6vw, 46px); display: block; text-align: center; text-wrap: balance; line-height: 1.18; }
  .line { display: inline; }                       /* un seul flux de texte : l'équilibre porte sur tout le manifeste */
  .line > * { margin: 0 .09em; vertical-align: middle; }
  .pill { vertical-align: -.08em; }
}
.w { display: inline-block; white-space: nowrap; }
.pill {
  display: inline-block;
  width: 2.306em;                                  /* 166 / 72 */
  height: 1.097em;                                 /* 79 / 72 */
  border-radius: 0.778em;                          /* 56 / 72 */
  background: var(--pill);
}
/* le manifeste apparaît mot après mot, avec l'animation commune (montée, flou -> net, fondu),
   dès que le blanc est atteint ; elle ne dépend pas du scroll, la page continue de défiler */
.js .manifesto .w,
.js .manifesto .pill {
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(6px);
  transition: opacity var(--rise-t) var(--rise-ease), transform var(--rise-t) var(--rise-ease), filter var(--rise-t) var(--rise-ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .hero.show-manifesto .manifesto .w,
.js .hero.show-manifesto .manifesto .pill { opacity: 1; transform: none; filter: none; }
/* mode points : les capsules deviennent des objets détourés en trame de points ; la souris révèle la vraie image (hero/pills.js) */
.hero--points .manifesto .pill { background: none; position: relative; overflow: visible; pointer-events: auto; cursor: crosshair; }
.pill__cv { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; }

/* ---------------------------------------------------------------- présentation (« Bonjour ») */
.intro {
  padding: var(--sp-16) 6.667vw var(--sp-2);                       /* 64 = écart entre sections ; 96 / 1440 sur les côtés */
}
.intro__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--layout-gap);
  align-items: center;
  min-height: 488px;
}
.intro__text {
  display: flex;
  flex-direction: column;
  font-weight:var(--fw-medium);
  color: var(--c-ink);
}
.intro__title {
  margin: 0 0 clamp(24px, 2.5vw, 36px);            /* air sous le titre */
  font-weight:var(--fw-medium);
  font-size:var(--fs-h3);           /* 40 / 1440 */
  line-height:var(--lh-heading);
  letter-spacing:normal;
}
.intro__text p {
  margin: 0;
  max-width: 25em;                                 /* colonne étroite: ~450 px à 18 px */
  font-size: var(--fs-body);                       /* réduit (24 dans la maquette) */
  line-height:var(--lh-body);
}
.intro__text p + p { margin-top: 1.1em; }
.intro__media {
  aspect-ratio: 596 / 296;
  border-radius: var(--r-lg);
  overflow: hidden;                                /* masque de la parallaxe */
}
.intro__cv { display: block; width: 100%; height: 100%; }
.intro__media-inner {
  height: 100%;
  transform: translate3d(0, var(--py, 0%), 0) scale(1.1);
  will-change: transform;
}

/* ---------------------------------------------------------------- méthodologie : cylindre au scroll
   La section est plus haute que l'écran ; sa scène reste fixe pendant que l'on fait défiler.
   main.js règle --rot (rotation du cylindre, en degrés) et l'étape de face (.is-on). */
.method { --step-scroll: 70vh; position: relative; height: calc(100vh + (var(--n) - 1) * var(--step-scroll) + 30vh); }
.method__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(48px, 9vh, 96px) 6.667vw clamp(32px, 6vh, 64px);
}
.method__title {
  margin: 0;
  font-weight:var(--fw-medium);
  font-size:var(--fs-h3);           /* 40 / 1440 */
  line-height:var(--lh-heading);
  color: var(--c-ink);
}
.method__layout {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 3vw; align-items: center;
}
/* texte de l'étape de face : les quatre fiches dans la même cellule, une seule visible */
.method__copy { position: relative; z-index: 2; display: grid; align-content: center; font-weight:var(--fw-medium); color: var(--c-ink); }   /* devant les cartes floues */
.mstep { grid-area: 1 / 1; pointer-events: none; }
.mstep.is-on { pointer-events: auto; }
.step__num { margin: 0 0 var(--sp-4); font-size:var(--fs-xl); line-height:1; }
.step__name { margin: 0 0 var(--sp-3); font-size:var(--fs-h3); font-weight:var(--fw-medium); line-height:var(--lh-heading); letter-spacing:var(--ls-tight); }
.step__text { margin: 0; max-width: 26em; font-size:var(--fs-body); line-height:var(--lh-body); }
.method__dots { grid-area: 2 / 1; list-style: none; margin: clamp(28px, 5vh, 48px) 0 0; padding: 0; display: flex; gap: var(--sp-2); }
/* barre de progression : 4 segments serrés ; l'étape en cours est noire, les autres gris clair */
.method__dots li { width: 44px; height: 3px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--c-ink) 14%, transparent); transition: background var(--dur-3) var(--ease-standard); }
/* les traits sont cliquables : zone de clic plus haute que le trait, survol plus foncé */
.method__dots li { position: relative; cursor: pointer; }
.method__dots li::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; bottom: -14px; }
.method__dots li:hover:not(.is-on) { background: color-mix(in srgb, var(--c-ink) 38%, transparent); }
.method__dots li:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 6px; }
.method__dots li.is-on { background: var(--c-ink); }

/* le cylindre : cartes posées sur un anneau vertical (axe Y), vues en perspective */
.cyl {
  --h: clamp(380px, 60vh, 640px);
  --w: calc(var(--h) * var(--ar, .477));          /* proportions du Duo plié ; --ar = celles du rendu (main.js) */
  --a: 32deg;                                      /* écart d'angle entre deux cartes */
  --r: calc(var(--w) * 2);                        /* rayon: (w / 2) / tan(a / 2), plus un peu d'air */
  position: relative; height: 100%; min-height: calc(var(--h) + 40px);
  perspective: 1700px; perspective-origin: 50% 45%;
  display: grid; place-items: center;
}
.cyl__ring {
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--r) * -1 - (1 - var(--enter, 1)) * 1100px)) rotateX(calc(-4deg - (1 - var(--enter, 1)) * 18deg)) rotateY(calc((var(--rot, 0) + (1 - var(--enter, 1)) * 55) * 1deg));
}
.cyl__card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(18px, 1.8vw, 28px);
  border-radius: calc(var(--w) * .15);             /* arrondi du Duo (0,46 / 3,1) */
  background: radial-gradient(120% 90% at 20% 0%, #2a2a30 0%, var(--c-ink) 60%, var(--c-ink) 100%);
  color: var(--c-on-ink);
  transform: rotateY(calc(var(--i) * var(--a))) translateZ(var(--r));
  backface-visibility: hidden;
  /* --f: 1 de face, 0 à 90° ; calculé par main.js pour assombrir les cartes qui s'éloignent */
  /* hors focus: la carte s'éteint, se floute et s'efface (de face : nette ; une carte voisine : ~8 %) */
  filter: blur(calc((1 - var(--f, 1)) * 26px));   /* flou léger (moins coûteux) ; l'opacité fait le reste */
  will-change: transform, opacity, filter;
  opacity: var(--o, 1);                            /* réglée par main.js: voisines à ~8 % */
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c-ink) 45%, transparent);
}
/* carte rendue par le moteur du Duo (main.js) : l'image est le téléphone lui-même, avec son cadre et ses reflets */
/* trame de points de l'illustration : toujours face à l'écran, juste devant la carte de face ;
   elle suit l'arrivée du cylindre (--enter) mais pas sa rotation */
/* les cartes ne se voient plus : seule la trame flotte (elles restent en place, invisibles, pour le rythme et le vol du Duo) */
.cyl .cyl__card { visibility: hidden; }
.cyl__pts { position: absolute; left: 50%; top: 50%; width: calc(var(--w) * 1.8); height: calc(var(--h) * 1.15);
  pointer-events: none; z-index: 1; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px)));   /* à la place de la carte de face ; l'arrivée se fait par les points (method/shapes.js) */
  /* les points s'éteignent un à un (method/shapes.js), pas tous ensemble */ }
.cyl__card.is-shot { background: var(--shot) center / 100% 100% no-repeat; border-radius: 0; box-shadow: none; overflow: visible; padding: 0; }
.cyl__card.is-shot::after, .cyl__card.is-shot .cyl__num, .cyl__card.is-shot .cyl__name { display: none; }

.cyl__num { margin-top: auto; font-size:clamp(40px, 5vw, 72px); font-weight:var(--fw-medium); line-height:1; letter-spacing:var(--ls-heading); }
.cyl__name { font-size:var(--fs-body); font-weight:var(--fw-medium); line-height:var(--lh-snug); opacity: .8; }

/* ordinateur : mise en scène plein cadre — grand titre, cylindre au centre-droit, texte en bas à gauche,
   numéro géant en fond ; à l'entrée de la section le cylindre arrive de loin en tournant (--enter, main.js) */
@media all {
  .method__title { font-size:var(--fs-display); line-height:1; letter-spacing:var(--ls-display); position: relative; z-index: 2; }
  .method__layout { position: relative; display: block; flex: 1; }
  /* le dessin et le texte partagent le même axe : le milieu de l'espace sous le titre */
  .cyl { position: absolute; top: 0; bottom: 0; height: auto; left: 26%; right: -6.667vw; min-height: 0;
         --h: min(74vh, 58vw); perspective: 1400px;
         transform: translateY(calc(var(--h) * -.15)); }   /* la perspective fait descendre la carte de face : on remonte le tout */
  .method__copy { position: absolute; left: 0; top: 50%; bottom: auto; transform: translateY(-50%); width: clamp(var(--measure-min), 30vw, 27.5rem); }
  .step__name { font-size:var(--fs-h3); }
  .cyl__num { font-size:clamp(56px, 6.5vw, 112px); }
  .cyl__name { font-size:var(--fs-body); }
  .method .method__ghost { display: block; }
}
.method__ghost {
  display: none; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  font-weight:var(--fw-semibold); letter-spacing: -.07em; line-height: .8; color: var(--c-ink);
}
.method__ghost span {
  position: absolute; right: 3vw; bottom: -6vh; font-size: min(52vh, 34vw);
  opacity: 0; transform: translateY(8%); filter: blur(14px);
  transition: opacity 1s var(--rise-ease), transform 1.2s var(--rise-ease), filter 1s var(--rise-ease);
}
.method__ghost span.is-on { opacity: .055; transform: none; filter: none; }
/* reflet qui glisse sur les cartes pendant la rotation (--dx = écart à la face, en cartes) */
.cyl__card { overflow: hidden; }
.cyl__card::after {
  content: ""; position: absolute; inset: -20% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--c-surface) 9%, transparent) 48%, color-mix(in srgb, var(--c-surface) 2%, transparent) 56%, transparent 64%);
  transform: translateX(calc(var(--dx, 0) * -45%));
}

@media not all {
  .method { --step-scroll: 80vh; }
  .method__stage { padding: var(--sp-10) var(--sp-4) var(--sp-6); }
  .method__layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: var(--sp-4); }
  .cyl { order: -1; --h: min(44vh, 120vw); min-height: 0; }
  .method__copy { min-height: 13em; align-content: start; }
  .method__dots { margin-top: var(--sp-5); }
}

/* ---------------------------------------------------------------- vol du Duo (ordinateur)
   La méthodologie reste figée pendant --flight de scroll supplémentaire ; la galerie (.finale) remonte
   par-dessus elle (marge négative) et se fige aussi. main.js pilote :
   --leave (la méthodologie s'efface), la carte 04 qui devient un écran de téléphone,
   le cadre .viewport qui transporte le Duo de la carte jusqu'à sa place (--vx, --vy, --vs, --vo),
   et --land (la galerie apparaît autour du Duo posé). */
@media all {
  :root { --flight: 240vh; }
  .method { height: calc(100vh + (var(--n) - 1) * var(--step-scroll) + 30vh + var(--flight)); }
  .finale { position: relative; z-index: 3; margin-top: calc(-1 * (var(--flight) + 100vh)); height: calc(var(--flight) + 100vh); pointer-events: none; }
  .js .finale .gallery.sec { --land: 0; --land2: 0; }      /* avant la transition : galerie cachée (main.js prend le relais) */
  .js .finale .gallery .viewport { --vo: 0; }
  .finale .gallery.sec { position: sticky; top: 0; pointer-events: auto;
    background: color-mix(in srgb, var(--bg) calc(var(--land, 1) * 100%), transparent); }
  .finale .gallery .top, .finale .gallery .rail, .finale .gallery .pager {
    opacity: var(--land, 1); transform: translateY(calc((1 - var(--land, 1)) * 20px)); }
  .finale .gallery .rail { transform: translateY(calc(-50% + (1 - var(--land, 1)) * 20px)); }
  .finale .gallery .viewport { z-index: 4; opacity: var(--vo, 1); transform-origin: var(--ox, 50%) var(--oy, 50%);
    transform: translate(var(--vx, 0px), var(--vy, 0px)) scale(var(--vs, 1)); }
  .finale .gallery .viewport::before { opacity: var(--land, 1); }
  .finale.in-flight .gallery .top, .finale.in-flight .gallery .rail, .finale.in-flight .gallery .pager, .finale.in-flight .gallery .info { pointer-events: none; }
  .method__title, .method__copy, .method__ghost { opacity: calc(1 - var(--leave, 0)); }
  /* la carte 04 se resserre en écran de téléphone et montre déjà la capture du premier projet */
  .cyl__num, .cyl__name { opacity: calc(1 - var(--m, 0)); }
}

/* ---------------------------------------------------------------- animation commune des textes
   Chaque [data-lines] est découpé en lignes (.ln) par main.js ; chaque ligne monte, passe du flou
   au net et apparaît en fondu, l'une après l'autre (--k = rang de la ligne, --d = décalage du bloc).
   Déclenchement : entrée dans l'écran (.is-in) ; pour la méthodologie, ouverture de l'étape. */
.js [data-lines] .ln {
  display: block;
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(6px);
  transition: opacity var(--rise-t) var(--rise-ease), transform var(--rise-t) var(--rise-ease), filter var(--rise-t) var(--rise-ease);
  transition-delay: calc(var(--d, 0s) + var(--k, 0) * var(--rise-step));
  will-change: opacity, transform, filter;
}
.js [data-lines].is-in:not([data-on-open]) .ln,
.js .method.is-in .mstep.is-on [data-on-open] .ln { opacity: 1; transform: none; filter: none; }
/* méthodologie : le nouveau texte arrive quand la carte se pose de face ; l'ancien part aussitôt */
.js .mstep.is-on [data-on-open] .ln { transition-delay: calc(.15s + var(--d, 0s) + var(--k, 0) * var(--rise-step)); }
.js .mstep:not(.is-on) [data-on-open] .ln { transition-duration: var(--dur-2); transition-delay: 0s; transform: translateY(-.4em); }

/* apparition des blocs non textuels (visuels, rangée de cartes) : fondu et légère montée */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-5) var(--ease-out), transform var(--dur-5) var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media not all {
  .intro { padding: var(--sp-12) var(--sp-4) var(--sp-2); }
  .intro__row { grid-template-columns: 1fr; gap: var(--sp-8); min-height: 0; }
}

/* sans JavaScript ou sans animation : tout est visible, sans vidéo au scroll */
.no-js .hero__title span,
.no-js .manifesto .w, .no-js .manifesto .pill { opacity: 1; transform: none; filter: none; }
.no-js .method { height: auto; }
.no-js .method__stage { position: static; height: auto; }
.no-js .mstep { grid-area: auto; margin-bottom: var(--sp-8); }
.no-js .method__dots, .no-js .cyl { display: none; }

@media (max-width: 700px) {
  .hero__title { left: 6%; right: 6%; top: 22%; bottom: auto; transform: none; }   /* au-dessus du dossier beige de la scène 3D */
  .hero__title span { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title span,
  .manifesto .w, .manifesto .pill { filter: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js [data-lines] .ln { filter: none; transform: none; transition-property: opacity; }
}

/* fenêtre étroite avec une souris (panneau, fenêtre réduite) : la mise en scène d'ordinateur, recomposée en hauteur */
@media (max-width: 900px) {
  /* présentation : une seule colonne, le visuel sous le texte */
  .intro { padding: var(--sp-12) var(--sp-5) var(--sp-2); }
  .intro__row { grid-template-columns: 1fr; gap: var(--sp-8); min-height: 0; }
  /* méthodologie : titre en haut, dessin centré dans l'espace libre, texte en bas */
  .method__stage { padding-left: var(--sp-5); padding-right: var(--sp-5); }
  .method__title { font-size:var(--fs-display); }
  .cyl { left: -16%; right: -16%; top: 0; bottom: calc(12em + 40px); height: auto; min-height: 0; --h: min(40vh, 80vw); transform: none; }
  .method__copy { width: auto; right: 0; top: auto; bottom: 0; transform: none; }
  .step__name { font-size:var(--fs-h3); }
  .method__ghost span { font-size: min(32vh, 48vw); bottom: auto; top: 16vh; right: 2vw; }
}

/* le lien de contact reste cliquable dans la barre du haut de l’ouverture */
.hero__top .contact { pointer-events: auto; }

/* « Contact me » fixe en haut à droite, comme sur les études de cas : visible et cliquable sur toute la page */
.home-nav { position: fixed; z-index: 60; top: var(--sp-4); right: max(24px, 2.4vw); left: auto; bottom: auto; width: max-content; }
.home-nav .home-pill { display: inline-flex; align-items: center; gap: var(--sp-2); height: var(--control-sm); padding: 0 var(--sp-4); margin: 0; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--c-well) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--c-ink); text-decoration: none; white-space: nowrap; font: var(--fw-medium) var(--fs-2xs)/1.3 var(--font-mono); letter-spacing: var(--ls-label); text-transform: uppercase; }
.home-nav .home-pill:hover, .home-nav .home-pill:focus-visible { color: var(--c-on-ink); }

/* indication de défilement en bas de l'ouverture : un mot et une ligne dont un point descend, effacés dès qu'on défile */
.hero__cue { position: absolute; z-index: 3; left: 50%; bottom: clamp(20px, 4vh, 40px); transform: translateX(-50%); display: grid; justify-items: center; gap: var(--sp-2);
  color: var(--c-ink); font: var(--fw-medium) var(--fs-2xs)/1 var(--font-mono); letter-spacing: var(--ls-label); text-transform: uppercase; pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-out); isolation: isolate; }
/* halo : dans un rayon autour de l'indication, les points de l'ouverture sont floutés et estompés */
.hero__cue::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 220px; height: 150px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--paper) 92%, transparent), color-mix(in srgb, var(--paper) 55%, transparent) 60%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); }
.hero__cue i { position: relative; width: 1px; height: 36px; background: color-mix(in srgb, currentColor 30%, transparent); overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; left: -1px; top: -6px; width: 3px; height: 6px; border-radius: 2px; background: currentColor; animation: hero-cue 1.8s var(--ease-in-out) infinite; }
@keyframes hero-cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(42px); opacity: 0; } }
.hero__cue.is-off { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hero__cue i::after { animation: none; top: 15px; } }
