/* =========================================================
   JoseMServices — refonte 2026
   Concept : « Un seul artisan, toute la maison »
   ========================================================= */

:root {
  --paper: #EEE8DD;
  --paper-2: #E5DDCF;
  --paper-3: #D9CFBD;
  --ink: #161411;
  --ink-2: #4A453E;
  --ink-3: #7A7268;
  --terra: #D4532A;
  --terra-2: #B8431F;
  --sun: #F0B23A;
  --sea: #1E4D5C;
  --night: #0E1A1F;
  --night-2: #142630;
  --blueprint: #7CC8DA;
  --line: rgba(22, 20, 17, .14);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  transition: background-color .9s var(--ease), color .9s var(--ease);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html, main { overflow-x: clip; }
body.is-dark { background: var(--night); color: var(--paper); }

img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--terra); color: var(--paper); }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

/* grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 900; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.is-dark::after { mix-blend-mode: screen; opacity: .05; }

/* ---------- Typography ---------- */
.h2 {
  font-size: clamp(42px, 7vw, 108px);
  line-height: .92;
  letter-spacing: -.045em;
  font-weight: 700;
  margin: 0;
  font-variation-settings: "opsz" 96;
}
.h2 em { color: var(--terra); font-size: 1.04em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--ink-3); }
body.is-dark .eyebrow { color: var(--blueprint); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 4px rgba(212, 83, 42, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(212, 83, 42, 0); } }

.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 58px; padding: 0 28px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--terra); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { --bg: var(--terra); }
.btn--primary::before { background: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transition: transform .5s var(--ease), color .4s var(--ease), box-shadow .4s; }
.btn--ghost svg { flex: none; }
.btn--ghost:hover { color: var(--paper); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light:hover { color: var(--paper); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; opacity: 0; transition: opacity .3s; inset: 0; pointer-events: none; z-index: 950; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--terra); }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.2px solid rgba(212, 83, 42, .55);
    display: grid; place-items: center;
    transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s, border-color .4s;
  }
  .cursor__label { font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--paper); opacity: 0; transition: opacity .3s; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(212, 83, 42, .12); }
  .cursor.has-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--terra); border-color: var(--terra); }
  .cursor.has-label .cursor__label { opacity: 1; }
  .cursor.is-on { opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Tape measure ---------- */
.tape { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 60; display: none; flex-direction: column; align-items: center; gap: 10px; mix-blend-mode: difference; color: #fff; }
@media (min-width: 1100px) { .tape { display: flex; } }
.tape__track {
  position: relative; width: 14px; height: 34vh; border-left: 1px solid rgba(255,255,255,.6);
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.7) 0 1px, transparent 1px 10px) left / 6px 100% no-repeat,
              repeating-linear-gradient(to bottom, rgba(255,255,255,.9) 0 1px, transparent 1px 50px) left / 12px 100% no-repeat;
}
.tape__fill { position: absolute; left: -2px; top: 0; width: 3px; height: 0; background: #fff; }
.tape__value { font-size: 10px; writing-mode: vertical-rl; }

/* ---------- Header ---------- */
.header {
  position: fixed; z-index: 80; top: 14px; left: var(--gutter); right: var(--gutter);
  height: 62px; padding: 0 10px 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px;
  background: rgba(238, 232, 221, .72);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--line), 0 10px 40px -20px rgba(0,0,0,.25);
  transition: transform .6s var(--ease), background .6s, color .6s, box-shadow .6s;
}
.header.is-hidden { transform: translateY(-130%); }
body.is-dark .header { background: rgba(20, 38, 48, .6); color: var(--paper); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -.02em; font-size: 17px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: contain; }
.brand b { font-weight: 800; }
.nav { display: none; gap: 4px; }
.nav__link { position: relative; padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background .3s; }
.nav__link:hover { background: rgba(22,20,17,.06); }
body.is-dark .nav__link:hover { background: rgba(255,255,255,.08); }
.nav__link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--terra); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px currentColor; transition: background .3s, color .3s; }
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.header .btn--sm { display: none; }
.burger { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 1.6px; background: var(--paper); transition: transform .5s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .burger { display: none; }
  .header .btn--sm { display: inline-flex; }
}

.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--ink); color: var(--paper);
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 50px) 45px); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 50px) 45px); visibility: visible; transition: clip-path .8s var(--ease); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(44px, 12vw, 80px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; border-bottom: 1px solid rgba(255,255,255,.1); padding: 8px 0; }
.menu__nav small { color: var(--terra); }
.menu__foot { display: flex; flex-direction: column; gap: 8px; color: var(--paper-3); }

/* ---------- Stage (3D canvas) ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity .6s; }
.stage.is-off { visibility: hidden; }
#scene { width: 100%; height: 100%; }
.stage__fallback { display: none; position: absolute; right: var(--gutter); bottom: 12vh; width: min(44vw, 560px); aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.4); }
.stage__fallback img { width: 100%; height: 100%; object-fit: cover; }
.no-webgl #scene { display: none; }
.no-webgl .stage__fallback { display: block; }
@media (max-width: 899px) { .no-webgl .stage__fallback { position: static; display: none; } }

.pin { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity .4s; will-change: transform; }
.pin.is-on { opacity: 1; }
.pin__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 5px rgba(212, 83, 42, .25), 0 0 0 12px rgba(212, 83, 42, .1); }
.pin__label { padding: 7px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); white-space: nowrap; box-shadow: 0 8px 24px -10px rgba(0,0,0,.4); }

main, .footer { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: calc(var(--header-h) + 8vh) var(--gutter) 40px;
  display: flex; flex-direction: column;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 55%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 55%, #000 0%, transparent 70%);
}
.hero__inner { max-width: 760px; position: relative; }
.hero__visual { display: none; }
.hero__title {
  margin: 0; font-weight: 750; letter-spacing: -.055em; line-height: .88;
  font-size: clamp(54px, 9.4vw, 150px);
  font-variation-settings: "opsz" 96;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line__in { display: inline-block; }
.hero__title em { color: var(--terra); font-size: 1.06em; letter-spacing: -.02em; }
.hero__lead { max-width: 500px; margin: 30px 0 34px; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts {
  list-style: none; margin: auto 0 0; padding: 26px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; max-width: 640px;
}
.hero__facts li { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 12px; }
.hero__facts b { font-size: 30px; letter-spacing: -.04em; line-height: 1; }
.hero__facts span { font-size: 13px; color: var(--ink-3); }
.hero, .hero__lead, .hero__facts span, .hero__title .line__in { transition: color .9s var(--ease); }
body.is-dark .hero { color: var(--paper); }
body.is-dark .hero__lead, body.is-dark .hero__facts span, body.is-dark .hero .eyebrow { color: rgba(238, 232, 221, .72); }
body.is-dark .hero__facts li { border-top-color: rgba(238, 232, 221, .18); }
body.is-dark .btn--ghost { --fg: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper); }
body.is-dark .hero__scroll { opacity: 0; }
.hero__scroll { transition: opacity .6s; display: none; position: absolute; right: var(--gutter); bottom: 36px; align-items: center; gap: 12px; color: var(--ink-3); }
.hero__scroll-bar { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-bar::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--terra); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

@media (max-width: 899px) {
  .hero { padding-top: calc(var(--header-h) + 28px); min-height: 0; padding-bottom: 56px; }
  .hero__title { font-size: clamp(44px, 13.5vw, 72px); }
  /* empty slot: the 3D house is drawn here and scrolls with the page */
  .hero__visual { display: block; position: relative; height: min(84vw, 48svh); margin: 4px calc(var(--gutter) * -1) 0; }
  .hero__lead { margin: 6px 0 22px; font-size: 16px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__facts { margin-top: 36px; }
  .hero__facts b { font-size: 26px; }
}
@media (min-width: 900px) {
  /* the whole first screen (title, text, quote + phone buttons) must fit above the fold:
     the title scales with the height too, and stays in the left column, clear of the house */
  .hero { padding-top: calc(var(--header-h) + 5vh); padding-bottom: 28px; }
  .hero__inner { max-width: min(880px, 46vw); }
  .hero__title { font-size: clamp(52px, min(6.4vw, 10.5vh), 118px); }
  .hero__lead { margin: min(3.2vh, 28px) 0 min(3.6vh, 32px); max-width: min(470px, 34vw); }
  .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 18px; }
  .hero__facts b { font-size: clamp(22px, 3.2vh, 30px); }
  .hero__scroll { display: flex; }
}

/* ---------- Services / chapters ---------- */
.services { position: relative; padding: 18vh var(--gutter) 10vh; }
.services__head { max-width: 760px; margin-bottom: 18vh; }
.services__head .h2 em { color: var(--sun); }
.services__intro { max-width: 460px; margin: 28px 0 0; color: rgba(238, 232, 221, .72); }
body:not(.is-dark) .services__intro { color: var(--ink-2); }

.chapters-index {
  position: fixed; right: 64px; bottom: 28px; z-index: 5; margin: 0; padding: 0; list-style: none;
  display: none; gap: 4px; opacity: 0; transition: opacity .5s;
}
.chapters-index.is-on { opacity: 1; }
.chapters-index li { padding: 6px 10px; border-radius: 999px; color: rgba(238,232,221,.4); font-size: 10.5px; transition: color .4s, background .4s; }
.chapters-index li.is-active { color: var(--night); background: var(--blueprint); }
@media (min-width: 1100px) { .chapters-index { display: flex; } }

.chapter { min-height: 120vh; display: flex; align-items: center; }
.chapter__card {
  width: min(460px, 100%);
  padding: 34px 32px 30px; border-radius: var(--radius);
  background: rgba(14, 26, 31, .84);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(124, 200, 218, .18), 0 40px 80px -40px rgba(0,0,0,.6);
  color: var(--paper);
  opacity: .25; transform: translateY(40px) scale(.97);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.chapter.is-active .chapter__card { opacity: 1; transform: none; }
.chapter__num { color: var(--blueprint); }
.chapter__num i { font-style: normal; opacity: .5; }
.chapter__title { margin: 14px 0 14px; font-size: clamp(36px, 4.4vw, 58px); line-height: .95; letter-spacing: -.045em; font-weight: 700; }
.chapter__title em { color: var(--sun); }
.chapter__card p { margin: 0 0 18px; color: rgba(238, 232, 221, .78); font-size: 16px; }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--terra) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.chapter__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--sun); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.chapter__link span { transition: transform .4s var(--ease); }
.chapter__link:hover span { transform: translateX(5px); }
.services__outro { min-height: 50vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; color: var(--blueprint); }

/* Mobile viewer (hidden on desktop, where the chapters scroll over the fixed maquette) */
.viewer, .chapters__dots { display: none; }

@media (max-width: 899px) {
  /* the canvas is docked in the page (hero slot / viewer) instead of a fixed layer */
  .stage { position: relative; inset: auto; width: 100%; height: 100%; display: none; }
  .hero__visual .stage, .viewer__slot .stage { display: block; }
  .stage__fallback { position: absolute; inset: 0; width: auto; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .no-webgl .stage__fallback { display: block; }

  .services { padding: 12vh var(--gutter) 6vh; }
  .services__head { margin-bottom: 28px; }

  .viewer { display: block; margin: 0 calc(var(--gutter) * -1); }
  .viewer__tabs {
    display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--gutter) 12px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .viewer__tabs::-webkit-scrollbar { display: none; }
  .viewer__tabs button {
    flex: none; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
    color: rgba(238,232,221,.7); box-shadow: inset 0 0 0 1px rgba(124,200,218,.25); transition: background .3s, color .3s;
  }
  .viewer__tabs button.is-active { background: var(--blueprint); color: var(--night); box-shadow: none; }
  .viewer__slot {
    position: relative; height: min(68vw, 36svh); margin: 0 var(--gutter); border-radius: 22px; overflow: hidden;
    background:
      linear-gradient(rgba(124,200,218,.08) 1px, transparent 1px) 0 0 / 28px 28px,
      linear-gradient(90deg, rgba(124,200,218,.08) 1px, transparent 1px) 0 0 / 28px 28px,
      var(--night-2);
    box-shadow: inset 0 0 0 1px rgba(124,200,218,.18);
  }

  /* trades: one swipeable row of cards under the maquette */
  .chapters {
    display: flex; gap: 12px; overflow-x: auto; margin: 14px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter);
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .chapters::-webkit-scrollbar { display: none; }
  .chapter { flex: 0 0 86%; min-height: 0; display: flex; scroll-snap-align: center; }
  .chapter__card {
    width: 100%; padding: 18px 18px 16px; border-radius: 18px; opacity: .45; transform: scale(.97);
    background: var(--night-2); backdrop-filter: none; -webkit-backdrop-filter: none;
    transition: opacity .4s var(--ease), transform .4s var(--ease);
  }
  .chapter.is-active .chapter__card { opacity: 1; transform: none; }
  .chapter__title { font-size: clamp(26px, 8vw, 34px); margin: 6px 0 8px; }
  .chapter__card p { font-size: 14.5px; line-height: 1.5; margin-bottom: 12px; }
  .chapter .ticks { display: none; }
  .chapters__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .chapters__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(238,232,221,.25); transition: width .3s var(--ease), background .3s; }
  .chapters__dots i.is-active { width: 20px; background: var(--blueprint); }
  .services__outro { min-height: 0; padding: 36px 0 12px; }

  /* lighter compositing while scrolling on phones */
  body::after { display: none; }
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(238, 232, 221, .96); }
  body.is-dark .header { background: rgba(20, 38, 48, .96); }
  .tile__cap { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(22,20,17,.8); }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 3; overflow: hidden; background: var(--terra); color: var(--paper);
  padding: 22px 0; transform: rotate(-2deg) scale(1.04); margin: 4vh 0 -2vh;
  box-shadow: 0 20px 60px -20px rgba(212, 83, 42, .5);
}
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-size: clamp(26px, 4vw, 56px); font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.marquee__track i { font-style: normal; font-size: 22px; color: var(--sun); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Why ---------- */
.why { background: var(--paper); color: var(--ink); padding: 20vh var(--gutter) 16vh; }
.why__head { margin-bottom: 64px; }
.why__cards { display: grid; gap: 18px; perspective: 1200px; }
@media (min-width: 900px) { .why__cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; min-height: 380px; padding: 30px; border-radius: var(--radius);
  background: var(--paper-2); display: flex; flex-direction: column; justify-content: flex-end;
  transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.card:hover { box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0,0,0,.35); }
.card__big {
  position: absolute; top: 10px; left: 24px;
  font-size: 180px; font-weight: 800; letter-spacing: -.07em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink-3);
  transform: translateZ(60px);
}
.card h3 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.035em; line-height: 1.05; transform: translateZ(40px); }
.card p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; transform: translateZ(25px); }
.card__tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; color: var(--ink-3); transform: translateZ(30px); }
.card--terra { background: var(--terra); color: var(--paper); }
.card--terra .card__big { -webkit-text-stroke-color: rgba(255,255,255,.7); }
.card--terra p, .card--terra .card__tag { color: rgba(255,255,255,.85); }
.card--ink { background: var(--ink); color: var(--paper); }
.card--ink .card__big { -webkit-text-stroke-color: var(--sun); }
.card--ink p, .card--ink .card__tag { color: rgba(238,232,221,.7); }

/* ---------- Work / gallery ---------- */
.work { background: var(--ink); color: var(--paper); padding: 18vh var(--gutter) 14vh; border-radius: 40px 40px 0 0; }
.work .h2 em { color: var(--sun); }
.work .eyebrow { color: var(--paper-3); }
.work__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.work__count { color: var(--paper-3); text-align: right; line-height: 1.7; }
.work__count b { color: var(--sun); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(238,232,221,.2); font-size: 14.5px; font-weight: 500;
  transition: background .35s, color .35s, box-shadow .35s;
}
.filter sup { font: 500 10px var(--f-mono); opacity: .55; }
.filter:hover { box-shadow: inset 0 0 0 1px rgba(238,232,221,.6); }
.filter.is-active { background: var(--paper); color: var(--ink); }
.grid { columns: 2 160px; column-gap: 12px; }
@media (min-width: 700px) { .grid { columns: 3 220px; column-gap: 16px; } }
@media (min-width: 1200px) { .grid { columns: 4 240px; } }
.tile {
  position: relative; display: block; width: 100%; margin: 0 0 12px; break-inside: avoid;
  border-radius: 16px; overflow: hidden; background: #24211d; cursor: pointer;
  clip-path: inset(0 0 0 0 round 16px);
}
@media (min-width: 700px) { .tile { margin-bottom: 16px; } }
.tile img, .tile video { width: 100%; height: auto; transform: scale(1.02); transition: transform 1s var(--ease), filter .6s; }
.tile:hover img, .tile:hover video { transform: scale(1.08); }
.tile__cap {
  position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; justify-content: space-between;
  padding: 7px 10px; border-radius: 10px; background: rgba(22,20,17,.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 10.5px var(--f-mono); letter-spacing: .04em; text-transform: uppercase;
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { transform: none; }
.tile__play { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--terra); display: grid; place-items: center; }
.work__more { display: flex; justify-content: center; margin-top: 40px; }
.work__more[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 990; background: rgba(14, 12, 10, .94); display: grid; place-items: center; color: var(--paper); }
.lightbox[hidden] { display: none; }
.lightbox__media { width: min(92vw, 1300px); height: 78vh; display: grid; place-items: center; }
.lightbox__media img, .lightbox__media video { max-width: 100%; max-height: 78vh; border-radius: 14px; object-fit: contain; }
.lightbox__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; display: flex; justify-content: space-between; color: var(--paper-3); }
.lightbox__btn, .lightbox__close {
  position: absolute; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 20px;
  transition: background .3s;
}
.lightbox__btn:hover, .lightbox__close:hover { background: var(--terra); }
.lightbox__prev { left: var(--gutter); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--gutter); top: 50%; transform: translateY(-50%); }
.lightbox__close { top: 20px; right: var(--gutter); }
@media (max-width: 700px) { .lightbox__btn { top: auto; bottom: 60px; transform: none; } }

/* ---------- Method ---------- */
.method { background: var(--ink); color: var(--paper); padding: 6vh var(--gutter) 18vh; display: grid; gap: 60px; }
.method .h2 em { color: var(--terra); }
.method .eyebrow { color: var(--paper-3); }
@media (min-width: 1000px) { .method { grid-template-columns: 1fr 1fr; align-items: start; } .method__head { position: sticky; top: 140px; } }
.method__steps { position: relative; display: grid; gap: 14px; padding-left: 34px; }
.method__line { position: absolute; left: 4px; top: 30px; bottom: 30px; width: 2px; background: rgba(255,255,255,.08); border-radius: 2px; }
.method__line span { position: absolute; inset: 0; background: linear-gradient(var(--sun), var(--terra)); transform-origin: top; transform: scaleY(0); border-radius: inherit; }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 10px; padding: 30px 28px; border-radius: var(--radius); background: #201d19; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.step__n { color: var(--sun); font-size: 14px; padding-top: 6px; }
.step h3 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.035em; line-height: 1.1; }
.step p { margin: 0; color: rgba(238,232,221,.68); font-size: 15.5px; }

/* ---------- Zone d'intervention (home) ---------- */
.zone {
  position: relative; z-index: 1; background: var(--paper); color: var(--ink);
  padding: 16vh var(--gutter) 6vh; border-radius: 40px 40px 0 0; margin-top: -40px;
  display: grid; gap: 48px;
}
@media (min-width: 1000px) { .zone { grid-template-columns: 1fr 1.2fr; gap: 6vw; align-items: end; } }
.zone__lead { margin: 26px 0 0; max-width: 460px; color: var(--ink-2); }
.zone-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.zone-card {
  display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 20px; border-radius: var(--radius);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s;
}
.zone-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.zone-card .mono { color: var(--terra); }
.zone-card strong { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.04em; line-height: 1; }
.zone-card__more { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.zone-card--all { background: var(--ink); color: var(--paper); box-shadow: none; }
.zone-card--all .zone-card__more { color: var(--sun); }
.zone__services { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 22px; font-size: 14.5px; }
.zone__services .mono { width: 100%; margin: 0 0 4px; color: var(--ink-3); }
.zone__services a { border-bottom: 1px solid var(--line); }
.zone__services a:hover { color: var(--terra); }

.chapter__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.chapter__link--muted { color: rgba(238,232,221,.75); }
.work__all { display: flex; justify-content: center; margin-top: 22px; }
.work__all .chapter__link { color: var(--paper-3); }
.footer__cols--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 699px) {
  .zone { border-radius: 28px 28px 0 0; padding-top: 12vh; }
  .zone-card { min-height: 120px; padding: 16px; }
  .footer__cols--3 { grid-template-columns: 1fr; }
}

/* ---------- FAQ / facts ---------- */
.faq {
  background: var(--paper); color: var(--ink); padding: 16vh var(--gutter) 12vh;
  display: grid; gap: 56px; border-radius: 40px 40px 0 0; margin-top: -40px; position: relative; z-index: 1;
}
@media (min-width: 1000px) { .faq { grid-template-columns: 1fr 1.2fr; gap: 6vw; align-items: start; } .faq__side { position: sticky; top: 120px; } }
.facts { margin-top: 40px; padding: 26px 26px 18px; border-radius: var(--radius); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.facts__title { margin: 0 0 14px; color: var(--terra); }
.facts dl { margin: 0; display: grid; }
.facts dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts dt { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding-top: 3px; }
.facts dd { margin: 0; }
.facts a { border-bottom: 1px solid var(--line); }
.faq__list { display: grid; gap: 10px; }
.faq__item { border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.faq__item[open] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.faq__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); transition: background .3s, transform .5s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: currentColor; }
.faq__icon::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq__item[open] .faq__icon { background: var(--terra); color: #fff; transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__item p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; max-width: 62ch; }
.faq__item p a { color: var(--terra); border-bottom: 1px solid currentColor; }

/* ---------- Contact ---------- */
.contact {
  background: var(--paper); color: var(--ink); padding: 18vh var(--gutter) 16vh;
  display: grid; gap: 56px; border-radius: 40px 40px 0 0; margin-top: -40px;
}
@media (min-width: 1000px) { .contact { grid-template-columns: 1fr 1fr; gap: 6vw; } }
.contact__lead { margin: 26px 0 8px; color: var(--ink-2); max-width: 420px; }
.contact__phone {
  display: inline-block; font-size: clamp(40px, 6vw, 84px); font-weight: 750; letter-spacing: -.05em; line-height: 1.05;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .6s var(--ease), color .4s;
}
.contact__phone:hover { color: var(--terra); background-size: 100% 3px; }
.contact__info { margin: 34px 0 0; display: grid; gap: 14px; }
.contact__info div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.contact__info dt { color: var(--ink-3); padding-top: 3px; }
.contact__info dd { margin: 0; }
.contact__info a { border-bottom: 1px solid var(--line); }
.map { margin-top: 30px; max-width: 420px; }
.map svg { width: 100%; overflow: visible; }
.map__coast { fill: none; stroke: var(--sea); stroke-width: 1.6; stroke-dasharray: 4 6; }
.map__city circle { fill: var(--terra); transform-box: fill-box; transform-origin: center; animation: ping 2.6s var(--d) infinite; }
.map__city text { font: 600 14px var(--f-display); fill: var(--ink); }
.map__sea { fill: var(--sea); font-size: 10px; }
@keyframes ping { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.6); } }

.form { align-self: start; background: #fff; border-radius: 28px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 50px 100px -60px rgba(0,0,0,.4), inset 0 0 0 1px var(--line); display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__chips { border: 0; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { color: var(--ink-3); margin-bottom: 12px; padding: 0; }
.form__chips label { position: relative; cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.form__chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.form__chips label:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.form__chips input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.form__chips input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 26px 18px 10px; border: 0; border-radius: 16px; background: var(--paper);
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s, background .3s; resize: vertical;
}
.field textarea { min-height: 130px; }
.field label { position: absolute; left: 18px; top: 18px; color: var(--ink-3); pointer-events: none; transition: transform .3s var(--ease), color .3s, font-size .3s; transform-origin: left top; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.75); color: var(--terra); }
.field.is-error input, .field.is-error textarea { box-shadow: inset 0 0 0 1.5px var(--terra); }
.form__status { margin: 0; min-height: 1.4em; font-size: 15px; }
.form__status.is-ok { color: #2f7a4b; }
.form__status.is-err { color: var(--terra-2); }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 14vh var(--gutter) 28px; overflow: hidden; }
.footer__top { display: grid; gap: 50px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr 1fr; } }
.footer__claim { margin: 0; font-size: clamp(36px, 5vw, 72px); font-weight: 700; letter-spacing: -.045em; line-height: .95; }
.footer__claim em { color: var(--terra); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer__cols div { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer__cols .mono { color: var(--paper-3); margin-bottom: 6px; }
.footer__cols a:hover { color: var(--terra); }
.footer__word {
  margin: 10vh 0 3vh; font-size: 14.2vw; font-weight: 800; letter-spacing: -.07em; line-height: .8; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(238, 232, 221, .35);
  background: linear-gradient(90deg, var(--terra), var(--sun)) 0 0 / 0% 100% no-repeat; -webkit-background-clip: text; background-clip: text;
  transition: background-size 1.4s var(--ease);
}
.footer__word:hover, .footer__word.is-filled { background-size: 100% 100%; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--paper-3); font-size: 11px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
.footer__bottom a { color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.3); }

/* ---------- Reveal helpers ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }

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

/* ---------- Phones ---------- */
@media (max-width: 699px) {
  .h2 { font-size: clamp(38px, 11.5vw, 56px); }
  .why, .work, .method, .faq, .contact { padding-top: 12vh; padding-bottom: 10vh; }
  .why__head { margin-bottom: 36px; }
  .card { min-height: 0; padding: 26px 22px 22px; }
  .card__big { position: static; font-size: 96px; margin-bottom: 14px; transform: none; }
  .card h3 { font-size: 24px; }

  .work { border-radius: 28px 28px 0 0; }
  .work__head { margin-bottom: 28px; }
  .work__count { text-align: left; }
  /* filters: one swipeable row instead of seven lines of chips */
  .filters {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 24px; padding: 2px var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; scroll-snap-align: start; height: 40px; }
  .grid { column-gap: 10px; }
  .tile { margin-bottom: 10px; border-radius: 12px; clip-path: inset(0 0 0 0 round 12px); }
  .tile__cap { transform: none; left: 6px; right: 6px; bottom: 6px; padding: 5px 7px; font-size: 9px; }
  .tile__cap span:first-child { display: none; }

  .method { gap: 36px; }
  .method__steps { padding-left: 22px; gap: 10px; }
  .method__line { left: 0; }
  .step { grid-template-columns: 1fr; gap: 6px; padding: 22px 20px; }
  .step__n { padding-top: 0; }
  .step h3 { font-size: 22px; }

  .faq { border-radius: 28px 28px 0 0; gap: 36px; }
  .facts { padding: 20px 18px 12px; }
  .facts dl div { grid-template-columns: 82px 1fr; font-size: 14.5px; }
  .faq__item summary { padding: 18px; }
  .faq__item h3 { font-size: 17px; }
  .faq__item p { padding: 0 18px 18px; font-size: 15px; }

  .contact { border-radius: 28px 28px 0 0; }
  .contact__phone { font-size: clamp(34px, 11vw, 48px); }
  .contact__info div { grid-template-columns: 56px 1fr; }
  .contact__info dd { overflow-wrap: anywhere; }
  .form { border-radius: 22px; }
  .form .btn { padding: 0 18px; font-size: 15px; white-space: nowrap; }

  .footer { padding-top: 10vh; }
  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
  .footer__cols a, .footer__cols span { overflow-wrap: anywhere; }
  .footer__bottom { flex-direction: column; }

  .header { top: 10px; height: 56px; }
  .brand img { width: 34px; height: 34px; }
  .icon-btn, .burger { width: 40px; height: 40px; }
  .pin__label { font-size: 10px; padding: 6px 10px; }
  .lightbox__media { height: 70vh; }
}
@media (max-width: 359px) {
  .brand span { font-size: 15px; }
  .hero__ctas .btn { padding: 0 18px; font-size: 15px; }
}
