/* =====================================================================
   INTRO « build-in » — portage de la maquette d’intro de référence (voir splash.js)
   Tout est scopé sous .build-in. Visible uniquement tant que html.intro-running.
   Deux compositions, ici et dans splash.js : large (ordinateur, téléphone ou tablette couchés) et haute (debout).
   ===================================================================== */
.build-in { display: none; }
.intro-running .build-in { display: block; }
html.intro-running { overflow: hidden; }

.build-in {
  position: fixed; top: 0; left: 0; z-index: 100; width: 100%; height: 100%;
  background: var(--bg); color: var(--text); font-family: var(--font);
  overflow: hidden; user-select: none; cursor: pointer;
  /* opaque dès le premier affichage : le site ne doit jamais apparaître avant l'intro ;
     « contain » isole les recalculs de mise en page des animations du reste de la page */
  contain: layout paint style;
}
.build-in *, .build-in *::before, .build-in *::after { box-sizing: border-box; }
.build-in .row { display: flex; flex-wrap: nowrap; padding: 0; margin: 0; }

/* les deux moitiés noires : leur bordure forme la ligne centrale qui s'ouvre */
.build-in__top-half, .build-in__bottom-half {
  width: 100%; height: 50%; background: var(--bg); position: absolute;
  left: 50%; margin-left: -50%; top: 0; will-change: transform, opacity;
}
.build-in__top-half { border-bottom: 1px solid #fff; }
.build-in__bottom-half { border-top: 1px solid #fff; bottom: 0; top: auto; }

.build-in__vertical-line { position: absolute; top: 0; width: 1px; height: 100%; background: #fff; left: 0; transform: scaleY(0); } /* repliée jusqu'à l'ouverture de la grille */
.build-in__vertical-line--right { left: auto; right: 0; }

/* L'intro vit dans la largeur du conteneur du site (.frame : 1840 px max, centré), pas plein écran :
   les lignes verticales tombent sur les filets du site, les moitiés noires et la grille restent
   dans ce cadre. En dessous de 1840 px, c'est la largeur de l'écran (responsive). */
.build-in .build-in__content {
  height: 100%; position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 1840px; margin: 0 auto;
}
@supports (margin-left: round(down, 10.5px, 1px)) {
  .build-in .build-in__content { margin-left: var(--frame-left); margin-right: 0; } /* mêmes pixels entiers que le cadre du site */
}

.build-in__line {
  width: 100%; position: absolute; border-bottom: 1px solid #fff; height: 33%; top: 0; background: var(--bg); /* opaque : en se repliant, il découvre le site */
  overflow: hidden; contain: layout paint;
}
/* filet du haut : la moitié haute (dont le bord faisait ce trait) sort de l'écran une fois déployée ;
   même pixel que le border-top de l'en-tête du site */
.build-in__line--1 { top: 0; border-top: 1px solid #fff; }
.build-in__line--2 { top: 33%; }
.build-in__line--3 { top: 66%; height: 34%; }
.build-in__line .row { height: 100%; }

/* phase de chargement : trait central + compteur 000 → 100 (avant l'ouverture de la grille) */
.build-in__hline { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #fff; transform: scaleX(0); z-index: 6; }
.build-in__counter {
  position: absolute; left: 24px; bottom: calc(50% + 14px); z-index: 6; display: flex; gap: 14px; align-items: baseline;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums; opacity: 0;
}
.build-in__counter b { color: var(--accent); font-weight: 500; font-size: 14px; min-width: 3ch; }

/* logo (rangée 1, à gauche) : la marque du site au-dessus du mot-symbole */
.build-in__logo { width: 75%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.6vh; }
.build-in__logo span {
  display: block; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  line-height: 0.92; font-size: clamp(34px, min(7vh, 13vw), 96px);
}

/* conteneurs d'images : sans fond de couleur (fond « cover » possible via data-src) ; chacun présente un produit */
.build-in__image {
  position: relative; top: 0; left: 0; width: 37%; height: 100%;
  background-position: center center; background-size: cover; overflow: hidden;
  font-size: 0; will-change: width;
}
.build-in__image--1 { border-left: 1px solid #fff; }
.build-in__image--2, .build-in__image--4 { top: 1px; left: auto; right: 0; }
.build-in__image--3 { top: 1px; left: 0; border-top: 1px solid #fff; }
.build-in__image--2 { border-bottom: 1px solid #fff; }
.build-in__image--4 { border-left: 1px solid #fff; border-top: 1px solid #fff; }
@media (min-width: 900px), (orientation: landscape) {
  .build-in__image--2 { border-right: 1px solid #fff; border-bottom: none; right: 1px; }
  .build-in__image--3 { left: 1px; border-top: none; border-left: 1px solid #fff; }
  .build-in__image--4 { right: 1px; border-top: none; }
}

/* titre (rangée 2, à droite) */
.build-in__title {
  position: relative; height: 100%; width: 80%; font-size: 15px; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 2px; font-weight: 400;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  will-change: transform; padding: 0 30px; text-align: center;
}
.build-in__title div { will-change: transform, opacity; }
.build-in__title--1 { width: 100%; }
/* Titre, comme la phrase de la référence (« All photography and film… ») : petites capitales espacées, graisse
   moyenne, CENTRÉES dans la case (une ligne sur grand écran, lignes équilibrées sinon) */
.build-in__title--1 {
  font-size: clamp(16px, min(1.25vw, 2.7vh), 26px); line-height: 1.6; letter-spacing: 0.11em;
  text-transform: uppercase; font-weight: 500; align-items: center; text-align: center; text-wrap: balance;
}
@media (min-width: 900px), (orientation: landscape) {
  .build-in__title { flex-direction: row; padding: 0 40px; }
  .build-in__title--1 { width: 65%; padding: 0 48px; align-items: center; justify-content: center; flex-wrap: wrap; align-content: center; }
}

/* mention (rangée 3, à gauche) : une SIGNATURE, comme « Google Pixel » dans la référence — en grand, en minuscules,
   sans espacement, graisse moyenne : se lit comme un logotype, pas comme une étiquette */
.build-in__tag { position: relative; width: 30%; order: 3; border-top: 1px solid #fff; z-index: 4; }
.build-in__tag b {
  font: 500 clamp(24px, 2.2vw, 38px) var(--font);
  letter-spacing: -0.01em; text-transform: none; color: var(--text); padding: 0 12px; white-space: nowrap;
}
@media (min-width: 900px), (orientation: landscape) { .build-in__tag { order: 0; border-top: none; } }
@media (max-width: 899px) and (orientation: portrait) {
  .build-in__line .row { flex-wrap: wrap; }
  .build-in__title--1 { font-size: clamp(13px, min(3.9vw, 2.2vh), 22px); line-height: 1.5; }   /* la phrase tient en 3 lignes dans sa case */
  .build-in__tag b { font-size: clamp(24px, 4.4vw, 38px); }
  .build-in__tag { padding-bottom: 22px; }   /* la mention reste au-dessus de « Toucher pour passer » */
}

.build-in__skip {
  position: absolute; right: 24px; bottom: 14px; z-index: 5; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}

/* téléphone couché : à gauche, sous « Depuis 2022 » (à droite, elle recouvrait une icône) */
@media (max-height: 500px) and (orientation: landscape) { .build-in__skip { right: auto; left: 24px; font-size: 11px; letter-spacing: 0.1em; } }

/* produit dans un conteneur : son logo seul (les noms et phrases sont dans les cartes de projet). Centré en absolu :
   le conteneur qui s'élargit le dévoile autour du centre. */
.build-in__pj { --logo: clamp(56px, min(8vw, 12vh), 140px); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 0; }
.build-in__pj img { position: relative; width: var(--logo); height: var(--logo); object-fit: contain; }
@media (max-width: 899px) and (orientation: portrait) { .build-in__pj { --logo: clamp(52px, min(17vw, 9.5vh), 120px); } }

