/* Jenko — concept « Monographie d'atelier ». One family (Archivo, width axis), paper grey from the cabinet enclosure,
   graphite from the annexe cladding, Jenko yellow on the devis endpaper and the primary button only. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-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;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-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;
}

:root {
  --paper: #ecedea;
  --paper-hi: #f5f6f3;
  --stone: #d9dcd7;
  --ink: #16181b;
  --ink-2: #454b52;
  --fill-rest: #646a70; /* words of a filling paragraph not yet read: 4.6:1 on paper, so a half-read paragraph stays legible */
  --graphite: #23272b;
  --graphite-2: #31363b;
  --on-graphite: #e9eae6;
  --on-graphite-2: #a9afb5;
  --jaune: #ffcf2b;
  --jaune-deep: #f2bf12;
  --on-photo: #fff;
  --shade: 12 14 16;
  --rule: rgb(22 24 27 / 0.16);
  --rule-strong: rgb(22 24 27 / 0.55);

  --font: "Archivo", "Helvetica Neue", sans-serif;
  --display-stretch: 70%;
  /* Width axis per role; the Russian version remaps them for Roboto Flex. */
  --w-title: 70;
  --w-text: 100;
  --w-fill: 86;
  --w-note: 62;

  --step--2: 12px;                                   /* the rail chapter name only (uppercase, vertical) */
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.1875rem, 1.08rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.625rem, 1.35rem + 1.2vw, 2.5rem);
  --step-3: clamp(2.25rem, 1.6rem + 2.9vw, 4.25rem);
  --step-4: clamp(2.875rem, 1.9rem + 4.4vw, 6rem);
  --step-5: clamp(2.875rem, max(1.9rem + 4.4vw, 1rem + 7vw), 8rem); /* film: every headline on footage; equals step 4 on phones */
  --step-6: clamp(min(3.4rem, 15vw), 1rem + 8.6vw, 9.75rem); /* film title: the opening claim only; below 363 px it shrinks so « промышленного » fits */
  --step-fill: clamp(1.6rem, 1rem + 2.2vw, 3.2rem); /* big read-along paragraph and the testimonial quote */
  /* Every font-size in the build is one of these steps; no component sets its own. */

  --gutter: clamp(16px, 2vw, 32px);
  --margin: clamp(16px, 4vw, 64px);
  --section: clamp(96px, 12vw, 200px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-s: 180ms;
  --dur-m: 420ms;
  --dur-l: 900ms;

  color-scheme: light;
}

/* Russian: Roboto Flex; its width 78 matches Archivo width 70 optically. */
:root:lang(ru) {
  --font: "Roboto Flex", "Helvetica Neue", Arial, sans-serif;
  --w-title: 78;
  --w-fill: 90;
  --w-note: 75;
}
/* Russian text is swapped in by i18n.js before first paint; the safety reveal covers a failed script. */
html.i18n-wait body { visibility: hidden; animation: i18n-reveal 0s 2.5s forwards; }
@keyframes i18n-reveal { to { visibility: visible; } }

@media (max-width: 760px) {
  :root { --header-h: 60px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: var(--header-h); }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--graphite-2) var(--paper);
}
html.lenis, html.lenis body { height: auto; }
/* Roboto Flex — Cyrillic companion for the Russian version (Archivo has no Cyrillic).
   Self-hosted, instanced to wght 400–640, wdth 75–100, opsz 8–144 and subset. */
@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-weight: 400 640;
  font-stretch: 25% 151%;
  font-display: swap;
  src: url("fonts/roboto-flex-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
}
@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-weight: 400 640;
  font-stretch: 25% 151%;
  font-display: swap;
  src: url("fonts/roboto-flex-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F, U+20AC, U+2192, U+2212;
}

.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-variation-settings: "wdth" var(--w-text);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--stone); color: var(--ink); } /* owner rule: yellow only on the primary button */
input { caret-color: var(--ink); }

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-dark :focus-visible, .footer :focus-visible { outline-color: var(--jaune); }

/* Images filled on demand by script (menu preview, macro note) stay invisible until they have a source. */
img:not([src]):not([srcset]) { visibility: hidden; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--margin); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ——— Type ——— */

.display, h1, h2, .h3 {
  font-family: var(--font);
  font-stretch: var(--display-stretch);
  font-variation-settings: "wdth" var(--w-title);
  font-weight: 480;
  letter-spacing: -0.012em;
  line-height: 0.96;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); line-height: 1.02; }

p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.lead { font-size: var(--step-1); line-height: 1.42; color: var(--ink); max-width: 36ch; }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums lining-nums; }
sub { font-size: 0.7em; line-height: 0; vertical-align: -0.2em; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.wi { display: inline-block; }

.caption {
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--ink-2);
}

/* ——— Layout ——— */

.wrap {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--margin);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.section { padding-block: var(--section); }

/* ——— Buttons & links ——— */

.btn {
  --btn-bg: var(--jaune);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 22px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 560; font-size: var(--step-0);
  letter-spacing: 0.005em;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color var(--dur-s) ease, color var(--dur-s) ease;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur-m) var(--ease-out); }
.btn:hover { --btn-bg: var(--jaune-deep); }
.btn:hover svg { transform: translateX(4px); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper-hi); }
.btn--ink:hover { --btn-bg: var(--graphite-2); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: var(--step--1); gap: 10px; }
.btn[disabled] { opacity: 0.5; cursor: progress; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-weight: 520; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size var(--dur-m) var(--ease-out);
}
.link:hover { background-size: 0% 1px; background-position: 100% calc(100% - 10px); }
.link svg { width: 16px; height: 16px; }

/* ——— Header ——— */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: transform var(--dur-m) var(--ease-out), border-color var(--dur-s) ease;
}
.header.is-scrolled { border-bottom-color: var(--rule); }
.header.is-hidden { transform: translateY(-100%); }
.header__in {
  height: 100%;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; color: var(--ink); min-height: 44px; }
.brand svg { width: 118px; height: auto; aspect-ratio: 891 / 108; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: var(--step--1); font-weight: 480;
  min-height: 44px; display: inline-flex; align-items: center;
  color: var(--ink-2);
  transition: color var(--dur-s) ease;
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { text-decoration: underline; }
.header__tel {
  font-size: var(--step--1); text-decoration: none; font-variant-numeric: tabular-nums;
  min-height: 44px; display: inline-flex; align-items: center; color: var(--ink);
}
.menu-btn {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--ink); cursor: pointer; padding: 10px;
}
.menu-btn svg { width: 24px; height: 24px; }
.btn__short { display: none; }

@media (max-width: 1100px) {
  .nav, .header__tel { display: none; }
  .menu-btn { display: inline-flex; }
  .header .btn { margin-left: auto; }
}
@media (max-width: 480px) {
  .btn__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .btn__short { display: inline; }
  .brand svg { width: 96px; }
}

.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--margin) 32px;
  display: flex; flex-direction: column; gap: 32px;
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur-m) var(--ease-out), visibility 0s linear var(--dur-m);
}
.drawer.is-open { visibility: visible; opacity: 1; transition: opacity var(--dur-m) var(--ease-out); }
.drawer__close { position: absolute; top: 8px; right: calc(var(--margin) - 10px); }
.drawer nav { display: grid; }
.drawer nav a {
  font-stretch: var(--display-stretch); font-variation-settings: "wdth" var(--w-title);
  font-size: var(--step-3); line-height: 1.1; font-weight: 460; text-decoration: none;
  padding-block: 6px; border-bottom: 1px solid var(--rule);
}
.drawer__foot { margin-top: auto; display: grid; gap: 8px; color: var(--ink-2); }

/* ——— Plates (photographs) ——— */

.plate { margin: 0; }
.plate__frame { position: relative; overflow: hidden; background: var(--stone); }
.plate__frame img, .plate__frame video { width: 100%; height: 100%; object-fit: cover; }
.plate figcaption { margin-top: 12px; }

/* ——— Cover (home) ——— */

.cover { position: relative; }
.cover__stage {
  position: relative;
  min-height: 100svh;
  padding-top: var(--header-h);
}
.cover__grid {
  min-height: calc(100svh - var(--header-h));
  align-items: stretch;
  padding-bottom: var(--margin);
}
.cover__text {
  grid-column: 1 / span 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 28px;
  padding-block: 40px 8px;
  position: relative; z-index: 2;
}
.cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.cover__facts {
  display: flex; flex-wrap: wrap; gap: 4px 20px;
  margin: 8px 0 0; padding: 18px 0 0; list-style: none;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1); color: var(--ink-2);
}
.cover__facts li { white-space: nowrap; }
.cover__facts strong { color: var(--ink); font-weight: 600; }
.cover__slot { grid-column: 6 / span 7; position: relative; min-height: 420px; }

/* the plate sits in the slot; when motion is on, JS lifts it to the stage and opens it to full bleed */
.cover__plate { position: absolute; inset: 0; margin: 0; }
.cover__plate .plate__frame { height: 100%; }
.cover__plate img { object-position: 12% 60%; }
.cover__cap {
  position: absolute; right: 0; bottom: -28px;
  font-size: var(--step--1); color: var(--ink-2);
}

.cover__site {
  position: absolute; z-index: 3;
  right: var(--margin); bottom: var(--margin);
  width: min(460px, calc(100% - 2 * var(--margin)));
  background: var(--paper);
  padding: 24px 28px 26px;
  border-top: 3px solid var(--ink);
  display: none;
}
.cover__site h2 { font-size: var(--step-2); line-height: 1.02; margin-bottom: 14px; }
.cover__site p { color: var(--ink-2); }

html.motion .cover { height: 230vh; }
html.motion .cover__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
html.motion .cover__plate { position: absolute; inset: 0; z-index: 1; }
html.motion .cover__plate .plate__frame { position: absolute; inset: 0; height: auto; }
html.motion .cover__cap { z-index: 2; }
html.motion .cover__site { display: block; visibility: hidden; }

@media (max-width: 900px) {
  .cover__text { grid-column: 1 / -1; padding-top: 32px; }
  .cover__slot { grid-column: 1 / -1; min-height: 0; aspect-ratio: 4 / 5; margin-top: 32px; }
  .cover__cap { bottom: -26px; left: 0; right: auto; }
  .cover__grid { padding-bottom: 72px; }
}

/* ——— Statement & chapter heads ——— */

.chapter-head { row-gap: 28px; align-items: end; }
.chapter-head h2 { grid-column: 1 / span 7; }
.chapter-head p { grid-column: 9 / span 4; color: var(--ink-2); }
@media (max-width: 900px) {
  .chapter-head h2, .chapter-head p { grid-column: 1 / -1; }
}

.statement {
  font-stretch: var(--display-stretch); font-variation-settings: "wdth" var(--w-title);
  font-size: var(--step-3); line-height: 1.02; font-weight: 440;
  letter-spacing: -0.01em; max-width: 22ch; text-wrap: balance;
}
.statement .muted { color: #7a8087; }

/* ——— Atelier ——— */

.atelier__plate { margin-top: clamp(56px, 7vw, 112px); }
.atelier__plate .plate__frame { aspect-ratio: 16 / 9; max-height: 100svh; width: 100%; }
.atelier__plate figcaption { margin-top: 12px; }
.push img { transform-origin: 50% 50%; will-change: auto; }
.atelier__pair { margin-top: clamp(72px, 9vw, 144px); row-gap: 28px; align-items: end; }
.atelier__pair .plate { grid-column: 1 / span 7; }
.atelier__pair .plate__frame { aspect-ratio: 16 / 9; }
.atelier__pair .copy { grid-column: 9 / span 4; display: grid; gap: 18px; padding-bottom: 32px; }
@media (max-width: 900px) {
  .atelier__pair .plate, .atelier__pair .copy { grid-column: 1 / -1; }
  .atelier__plate .plate__frame { aspect-ratio: 4 / 3; }
}

/* ——— Hotspot plate (signature) ——— */

.anatomy { padding-top: var(--section); }
.anatomy__plate { margin-top: clamp(40px, 5vw, 72px); position: relative; }
.anatomy__scroller { position: relative; }
.anatomy__canvas {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--stone);
}
.anatomy__canvas img { width: 100%; height: 100%; object-fit: cover; }

.spot {
  position: absolute; left: var(--x); top: var(--y);
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border: 0; padding: 0; background: none; cursor: pointer; color: #fff;
  border-radius: 50%;
  z-index: 2;
}
.spot::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  border: 1.5px solid currentColor;
  background: rgb(22 24 27 / 0.42);
  transition: transform var(--dur-m) var(--ease-out), background-color var(--dur-s) ease;
}
.spot::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: currentColor;
  transition: transform var(--dur-m) var(--ease-out), background-color var(--dur-s) ease;
}
.spot:hover::before, .spot.is-hint::before { transform: scale(1.18); }
.spot[aria-expanded="true"] { color: var(--ink); }
.spot[aria-expanded="true"]::before { background: var(--jaune); border-color: var(--ink); transform: scale(1.12); }
.spot[aria-expanded="true"]::after { transform: scale(0.9); }
.spot:focus-visible { outline: 2px solid var(--jaune); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .spot.is-pulse::before { animation: pulse 1100ms var(--ease-out) 1; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.7); transform: scale(1); }
  40% { transform: scale(1.22); }
  100% { box-shadow: 0 0 0 14px rgb(255 255 255 / 0); transform: scale(1); }
}

.note {
  position: absolute; z-index: 4;
  width: min(380px, calc(100% - 32px));
  background: var(--paper-hi); color: var(--ink);
  padding: 30px 30px 22px;
  outline: 1px solid var(--rule-strong); outline-offset: -9px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  clip-path: inset(0 0 100% 0);
  transition: opacity var(--dur-m) var(--ease-out), transform var(--dur-m) var(--ease-out),
              clip-path var(--dur-l) var(--ease-out), visibility 0s linear var(--dur-l);
}
.note.is-open {
  opacity: 1; visibility: visible; transform: none; clip-path: inset(0 0 0 0);
  transition: opacity var(--dur-m) var(--ease-out), transform var(--dur-m) var(--ease-out), clip-path var(--dur-l) var(--ease-out);
}
.note__title {
  font-stretch: 62%; font-variation-settings: "wdth" var(--w-note);
  font-weight: 540; text-transform: uppercase;
  font-size: var(--step-2); line-height: 0.95; letter-spacing: 0;
  margin: 0 40px 20px 0;
}
.note__text { font-size: var(--step-0); line-height: 1.5; }
.note__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--rule);
}
.note__count { font-size: var(--step--1); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.note__nav { display: flex; gap: 4px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 0; background: none; color: inherit; cursor: pointer; padding: 0;
  transition: background-color var(--dur-s) ease;
}
.icon-btn:hover { background: rgb(22 24 27 / 0.07); }
.icon-btn svg { width: 20px; height: 20px; }
.note__close { position: absolute; top: 14px; right: 14px; }

.anatomy__index {
  display: flex; flex-wrap: wrap; gap: 0 28px;
  margin: 20px 0 0; padding: 0; list-style: none;
}
.anatomy__index button {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: var(--step--1); color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.anatomy__index button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor;
  transition: background-color var(--dur-s) ease;
}
.anatomy__index button:hover, .anatomy__index button[aria-pressed="true"] { color: var(--ink); }
.anatomy__index button[aria-pressed="true"]::before { background: var(--jaune); border-color: var(--ink); }

@media (max-width: 760px) {
  .anatomy__scroller {
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .anatomy__scroller::-webkit-scrollbar { display: none; }
  .anatomy__canvas { width: auto; height: 64svh; max-height: 520px; aspect-ratio: 16 / 9; }
  .note {
    position: relative; left: auto !important; top: auto !important;
    width: auto; margin: 16px var(--margin) 0;
    display: none;
  }
  .note.is-open { display: block; }
  .anatomy__hint { display: block; }
}
.anatomy__hint { display: none; margin-top: 12px; }

/* ——— Solutions index ——— */

.index { border-top: 1px solid var(--rule-strong); margin-top: clamp(48px, 6vw, 96px); }
.index__row {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: baseline;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--rule-strong);
  text-decoration: none; color: var(--ink);
}
.index__title {
  grid-column: 1 / span 5; grid-row: 1;
  font-stretch: var(--display-stretch); font-variation-settings: "wdth" var(--w-title);
  font-size: var(--step-2); line-height: 1; font-weight: 470;
  transition: transform var(--dur-m) var(--ease-out);
}
.index__sector { grid-column: 1 / span 5; grid-row: 2; margin-top: 8px; font-size: var(--step--1); color: var(--ink-2); }
.index__short { grid-column: 8 / span 4; grid-row: 1 / span 2; align-self: center; color: var(--ink-2); }
.index__go {
  grid-column: 12; grid-row: 1 / span 2; justify-self: end; align-self: center;
  width: 44px; height: 44px; display: grid; place-items: center;
  transition: transform var(--dur-m) var(--ease-out);
}
.index__go svg { width: 22px; height: 22px; }
.index__thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .index__row:hover .index__title, .index__row:hover .index__sector { transform: translateX(14px); }
  .index__sector { transition: transform var(--dur-m) var(--ease-out); }
  .index__row:hover .index__go { transform: translateX(6px); }
  .index__list:hover .index__row:not(:hover) .index__title { color: #737980; }
  .index__title { transition: color var(--dur-s) ease, transform var(--dur-m) var(--ease-out); }
}
.index__peek {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: var(--peek-w, 220px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone);
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path 520ms var(--ease-out);
}
.index__peek.is-on { clip-path: inset(0 0 0 0); }
.index__peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 260ms ease; }
.index__peek img.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse), (max-width: 900px) {
  .index__peek { display: none; }
  .index__row { grid-template-columns: 72px minmax(0, 1fr) 44px; column-gap: 16px; row-gap: 4px; align-items: center; }
  .index__thumb { display: block; grid-row: 1 / span 2; grid-column: 1; width: 72px; aspect-ratio: 1; object-fit: cover; background: var(--stone); }
  .index__title { grid-column: 2; grid-row: 1; font-size: var(--step-1); font-weight: 520; }
  .index__sector { display: none; }
  .index__short { grid-column: 2; grid-row: 2; font-size: var(--step--1); }
  .index__go { grid-column: 3; grid-row: 1 / span 2; }
}

/* ——— Précision spread ——— */

.spread { row-gap: 40px; align-items: start; }
.spread__a { grid-column: 1 / span 4; }
.spread__a .plate__frame { aspect-ratio: 3 / 4; }
.spread__text { grid-column: 6 / span 3; display: grid; gap: 24px; padding-top: clamp(48px, 10vw, 180px); }
.spread__text h2 { font-size: var(--step-3); }
.spread__b { grid-column: 10 / span 3; margin-top: clamp(120px, 18vw, 320px); }
.spread__b .plate__frame { aspect-ratio: 9 / 16; }
@media (max-width: 1100px) {
  .spread__a { grid-column: 1 / span 6; }
  .spread__text { grid-column: 7 / span 6; padding-top: 24px; }
  .spread__b { grid-column: 7 / span 6; margin-top: 0; }
}
@media (max-width: 760px) {
  .spread__a, .spread__text, .spread__b { grid-column: 1 / -1; }
  .spread__b .plate__frame { aspect-ratio: 4 / 5; }
}

/* ——— Maison ——— */

.maison { row-gap: 32px; align-items: end; }
.maison .plate { grid-column: 1 / span 7; }
.maison .plate__frame { aspect-ratio: 16 / 10; }
.maison__copy { grid-column: 9 / span 4; display: grid; gap: 22px; padding-bottom: 36px; }
.maison__links { display: grid; gap: 4px; margin-top: 8px; border-top: 1px solid var(--rule); padding-top: 12px; }
.maison__links .link { justify-content: space-between; width: 100%; }
@media (max-width: 900px) {
  .maison .plate, .maison__copy { grid-column: 1 / -1; }
}

/* ——— Devis endpaper ——— */

.devis {
  background: var(--jaune); color: var(--ink);
  padding-block: clamp(80px, 10vw, 168px);
}
.devis__grid { row-gap: 40px; align-items: start; }
.devis__head { grid-column: 1 / span 6; display: grid; gap: 24px; }
.devis__head h2 { font-size: var(--step-4); }
.devis__head p { max-width: 34ch; font-size: var(--step-1); line-height: 1.4; }
.devis__tel { font-variant-numeric: tabular-nums; }
.devis__form { grid-column: 8 / span 5; display: grid; gap: 26px; padding-top: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step--1); font-weight: 560; }
.field input {
  width: 100%; min-height: 56px;
  font: inherit; font-size: var(--step-1); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  padding: 8px 0;
}
.field input::placeholder { color: rgb(22 24 27 / 0.62); }
.field input:focus-visible { outline: none; border-bottom-width: 3px; padding-bottom: 6.5px; }
.field input[aria-invalid="true"] { border-bottom-color: #8c1c0c; }
.field__err { font-size: var(--step--1); color: #7a1708; font-weight: 560; min-height: 1.2em; }
.devis__need { font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.devis__need strong { font-weight: 620; }
.devis__need button {
  font: inherit; font-size: var(--step--1); background: none; border: 0; padding: 0; min-height: 24px;
  text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; color: var(--ink);
}
.devis__send { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.devis__legal { font-size: var(--step--1); color: rgb(22 24 27 / 0.78); max-width: 46ch; }
.devis__done { display: none; gap: 14px; }
.devis__done.is-on { display: grid; }
.devis__done p:first-child {
  font-stretch: var(--display-stretch); font-variation-settings: "wdth" var(--w-title);
  font-size: var(--step-2); line-height: 1.05; font-weight: 480;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
  .devis__head, .devis__form { grid-column: 1 / -1; }
}

/* ——— Footer ——— */

.footer { background: var(--graphite); color: var(--on-graphite); padding-block: 72px 40px; }
.footer a { color: var(--on-graphite); }
.footer__grid { row-gap: 40px; }
.footer__brand { grid-column: 1 / span 4; display: grid; gap: 18px; align-content: start; }
.footer__brand svg { width: 200px; height: auto; aspect-ratio: 891 / 161; color: var(--on-graphite); }
.footer__col { grid-column: span 2; display: grid; gap: 6px; align-content: start; font-size: var(--step--1); }
.footer__col a, .footer__col span { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.footer__col a:hover { text-decoration: underline; }
.footer__col h2 {
  font-size: var(--step--1); font-stretch: 100%; font-variation-settings: "wdth" var(--w-text);
  font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--on-graphite-2); margin-bottom: 8px;
}
.footer__legal {
  grid-column: 1 / -1; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgb(233 234 230 / 0.16);
  display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--step--1); color: var(--on-graphite-2);
}
@media (max-width: 900px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col { grid-column: span 6; }
}

/* ——— Product page ——— */

.crumbs { font-size: var(--step--1); color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; }

.pcover { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px)); }
.pcover__grid { row-gap: 32px; align-items: end; }
.pcover__text { grid-column: 1 / span 6; display: grid; gap: 28px; padding-bottom: 8px; }
.pcover__plate { grid-column: 8 / span 5; }
.pcover__plate .plate__frame { aspect-ratio: 4 / 5; }
.pcover__plate img { object-position: 50% 30%; }
@media (max-width: 900px) {
  .pcover__text, .pcover__plate { grid-column: 1 / -1; }
}

.fiche { margin-top: clamp(72px, 9vw, 144px); }
.fiche__grid { row-gap: 32px; }
.fiche__lead { grid-column: 1 / span 6; }
.fiche dl { grid-column: 8 / span 5; margin: 0; border-top: 1px solid var(--rule-strong); }
.fiche dl div {
  display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.fiche dt { font-size: var(--step--1); color: var(--ink-2); padding-top: 2px; }
.fiche dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .fiche__lead, .fiche dl { grid-column: 1 / -1; }
  .fiche dl div { grid-template-columns: 1fr; gap: 2px; }
}

.film { margin-top: clamp(72px, 9vw, 144px); }
.film .plate__frame { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .film .plate__frame { aspect-ratio: 4 / 3; } }

.formats { row-gap: 40px; align-items: start; }
.formats__pick { grid-column: 1 / span 5; display: grid; align-content: start; border-top: 1px solid var(--rule-strong); }
.formats__group { display: grid; grid-template-columns: 5rem 1fr; border-bottom: 1px solid var(--rule-strong); }
.formats__h { font-size: var(--step--1); color: var(--ink-2); font-variant-numeric: tabular-nums; padding: 14px 0; }
.formats__chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.formats__chips .chip:nth-child(n+4) { border-top: 1px solid var(--rule); }
.chip {
  min-height: 48px; padding: 0 12px; text-align: left;
  font: inherit; font-size: var(--step--1); font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--ink); background: transparent; border: 0; border-left: 1px solid var(--rule); border-radius: 0; cursor: pointer;
  transition: background-color var(--dur-s) ease, color var(--dur-s) ease;
}
.chip:hover { background: var(--paper-hi); }
.chip[aria-checked="true"] { background: var(--ink); color: var(--paper-hi); }
.formats__pick > .caption { padding-top: 14px; }
.formats__draw { grid-column: 7 / span 6; position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.drawing { width: 100%; height: auto; aspect-ratio: 5 / 4; background: var(--paper-hi); }
.drawing .d-body { fill: var(--stone); stroke: var(--ink); stroke-width: 2; transition: all var(--dur-l) var(--ease-out); }
.drawing .d-side { fill: #cfd3cd; stroke: var(--ink); stroke-width: 2; transition: all var(--dur-l) var(--ease-out); }
.drawing .d-line { stroke: var(--ink); stroke-width: 1; fill: none; }
.drawing .d-ghost { fill: none; stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 4 5; }
.drawing text { font-family: var(--font); font-size: 22px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.drawing .d-label { fill: var(--ink-2); font-size: 20px; }
.formats__readout { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; align-items: center; }
.formats__value {
  font-stretch: var(--display-stretch); font-variation-settings: "wdth" var(--w-title);
  font-size: var(--step-2); font-weight: 480; font-variant-numeric: tabular-nums; line-height: 1;
}
@media (max-width: 900px) {
  .formats__pick, .formats__draw { grid-column: 1 / -1; position: static; }
  .formats__draw { order: -1; }
}

.case { row-gap: 32px; }
.case__head { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; }
.case__list { grid-column: 7 / span 6; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-strong); counter-reset: p; }
.case__list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) { .case__head, .case__list { grid-column: 1 / -1; } }

.strip { margin-top: clamp(56px, 7vw, 112px); }
.strip__track {
  display: flex; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--margin); scroll-padding-inline: var(--margin); padding-bottom: 16px; scrollbar-width: thin;
  scrollbar-color: var(--ink-2) transparent;
}
.strip__track .plate { flex: 0 0 auto; scroll-snap-align: start; }
.strip__track .plate__frame { height: clamp(320px, 56svh, 620px); }
.strip__track .plate__frame img { width: auto; height: 100%; }
.strip__track figcaption { max-width: 36ch; }

.faq { row-gap: 24px; }
.faq h2 { grid-column: 1 / span 5; font-size: var(--step-3); }
.faq__list { grid-column: 7 / span 6; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 64px; padding: 18px 56px 18px 0; position: relative;
  font-size: var(--step-1); font-weight: 500; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { position: absolute; right: 8px; top: 22px; width: 22px; height: 22px; transition: transform var(--dur-m) var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); }
@media (max-width: 900px) { .faq h2, .faq__list { grid-column: 1 / -1; } }

/* ——— Prototype toast (concept only) ——— */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--paper-hi); padding: 14px 20px; font-size: var(--step--1);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-m) var(--ease-out), transform var(--dur-m) var(--ease-out);
  max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
}

/* ——— Hero reel (v2, after the live read of the references) ——— */

.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100svh; min-height: 560px;
  color: #fff; overflow: hidden;
  background: var(--graphite);
}
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none; transition: opacity 800ms ease;
  background:
    linear-gradient(to top, rgb(14 16 18 / 0.72) 0%, rgb(14 16 18 / 0.28) 34%, rgb(14 16 18 / 0) 58%),
    linear-gradient(to bottom, rgb(14 16 18 / 0.38) 0%, rgb(14 16 18 / 0) 18%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 0; margin-inline: auto;
  padding-bottom: clamp(20px, 3vw, 40px);
  display: grid; gap: clamp(20px, 2.4vw, 36px);
}
.hero__title {
  font-size: var(--step-6);
  line-height: 0.9; letter-spacing: -0.02em; font-weight: 470;
  max-width: 11ch; color: #fff;
}
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr) auto;
  gap: 12px var(--gutter); align-items: end;
  padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 0.32);
  font-size: var(--step--1);
}
.hero__lead { font-size: var(--step-0); line-height: 1.45; max-width: 44ch; color: #fff; }
.hero__status, .hero__scene { color: rgb(255 255 255 / 0.86); display: flex; align-items: center; gap: 10px; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / 0.5); flex: none; }
.hero__status.is-open .hero__dot { background: var(--jaune); box-shadow: 0 0 0 4px rgb(255 207 43 / 0.25); }
.hero__scene { transition: opacity 400ms ease; }
.hero__scroll {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: #fff; text-decoration: none; justify-self: end;
}
.hero__scroll svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll svg { animation: nudge 2.4s var(--ease-out) infinite; }
}
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }
@media (max-width: 900px) {
  .hero__foot { grid-template-columns: 1fr auto; }
  .hero__status { grid-column: 1; }
  .hero__scene { display: none; }
  .hero__lead { grid-column: 1 / -1; }
}

/* the chapters slide up over the reel like a sheet of paper */
.sheet, .sheet ~ section, .sheet ~ .anatomy { position: relative; z-index: 1; background: var(--paper); }
.sheet ~ .devis { background: var(--jaune); }

/* header over the reel: light ink, nav in a paper plaque */
.header.is-over { background: transparent; border-bottom-color: transparent; }
.header.is-over .brand, .header.is-over .header__tel { color: #fff; }
.header .nav {
  margin-left: auto; margin-right: auto;
  background: var(--paper-hi); padding: 0 18px; gap: 22px;
}
.header .nav a { color: var(--ink-2); }
.header .nav a:hover { color: var(--ink); }
.header.is-over .menu-btn { color: #fff; }

/* intro: logo on graphite, then the reel opens from a centred frame */
.intro { display: none; }
html.is-intro { overflow: hidden; }
html.is-intro .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 70; background: var(--graphite); pointer-events: none;
}
html.is-intro .hero { z-index: 71; background: transparent; }
html.is-intro .hero__shade { opacity: 0; }
html.is-intro .hero__media { position: fixed; clip-path: inset(50% 50% 50% 50%); }
.intro__logo { display: none; width: min(280px, 48vw); height: auto; aspect-ratio: 891 / 161; color: var(--on-graphite); z-index: 72; }
html.is-intro .intro__logo { display: block; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); }
html.is-intro .header, html.is-intro .hero__content { opacity: 0; }
