@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --noir: #1B1C1E;
  --graphite: #2B2C2F;
  --enduit: #F1F0EC;
  --damier: #FFFFFF;
  --beton: #76777A;
  --filament: #E3A14A;
  --on-dark-muted: #A9AAAD;
  --wrap: 1400px;
  --gutter: 16px;
  --bar: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--enduit);
  color: var(--noir);
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  padding-bottom: var(--bar);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
blockquote { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* the display voice: condensed caps-free, tight */
.display {
  font-stretch: 72%;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.lines { white-space: pre-line; max-width: none !important; }
.num {
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}

/* buttons: one radius, no shadow */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: 2px;
  font-weight: 600; font-size: 17px; text-decoration: none;
  transition: background-color 300ms, color 300ms;
}
.btn--call { background: var(--filament); color: var(--noir); }
.btn--ghost { color: var(--damier); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.btn--ghost-dark { color: var(--noir); box-shadow: inset 0 0 0 1px rgba(27,28,30,.35); }
@media (hover: hover) and (pointer: fine) {
  .btn--call:hover { background: #F0B666; }
  .btn--ghost:hover { background: rgba(255,255,255,.08); }
  .btn--ghost-dark:hover { background: rgba(27,28,30,.06); }
  .link:hover { text-decoration-color: var(--filament); }
}
.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: rgba(27,28,30,.3);
  transition: text-decoration-color 300ms;
}
.on-dark .link { text-decoration-color: var(--filament); }

/* ---------- header ---------- */
.top { position: relative; z-index: 20; background: var(--noir); color: var(--damier); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-stretch: 72%; font-weight: 800; font-size: 24px; letter-spacing: .06em; }
.brand__line { font-size: 12px; letter-spacing: .04em; color: var(--on-dark-muted); margin-top: 4px; }
.nav { display: none; }
.top__call { display: none; }
.menu-btn {
  appearance: none; border: 0; background: transparent; color: inherit; font: inherit;
  font-weight: 600; font-size: 15px; min-height: 44px; padding: 0 4px; cursor: pointer;
}
.drawer { display: none; background: var(--noir); color: var(--damier); }
.drawer.is-open { display: block; }
.drawer a { display: block; padding: 16px 0; font-stretch: 72%; font-weight: 700; font-size: 30px; text-decoration: none; }
.drawer ul { padding-top: 8px; padding-bottom: 24px; }

/* phone: the call pinned under the thumb */
.callbar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 16px calc(env(safe-area-inset-bottom, 0px));
  background: var(--filament); color: var(--noir);
  font-weight: 700; font-size: 17px; text-decoration: none;
}
.callbar { font-weight: 400; }
.callbar::before { content: 'Appeler Baptiste'; font-weight: 700; }
body { --bar: 60px; }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100vh - 72px); min-height: calc(100svh - 72px);
  display: grid; grid-template-rows: 38svh auto;
  background: var(--noir); color: var(--damier);
}
.hero__photo { position: relative; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.hero__cap {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  font-size: 12px; padding: 4px 8px; background: rgba(27,28,30,.7); color: var(--damier);
}
.hero__text { padding: 24px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: 41px; }
.hero__call { display: none; }
.hero__proof { margin: 20px 0 0; font-size: 16px; color: var(--on-dark-muted); max-width: 34ch; }
.hero__proof strong { color: var(--damier); font-weight: 600; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- comparison ---------- */
.compare-sec { background: var(--noir); color: var(--damier); padding: 0 0 64px; }
.compare {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  --pos: 50%; user-select: none; touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--damier); pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: var(--damier); color: var(--noir);
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.compare__tag {
  position: absolute; top: 12px; z-index: 2; pointer-events: none;
  font-size: 13px; font-weight: 600; padding: 4px 10px; background: rgba(27,28,30,.75); color: var(--damier);
}
.compare__tag--l { left: 12px; }
.compare__tag--r { right: 12px; }
.compare input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 3;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare-sec__cap { padding: 24px var(--gutter) 0; }
.compare-sec__cap h2 { font-size: 30px; }
.compare-sec__cap p { margin: 12px 0 0; color: var(--on-dark-muted); font-size: 16px; max-width: 32ch; }

/* ---------- pairs (avant / après), shared by both pages ---------- */
.pair { display: grid; gap: 12px; align-items: end; }
.pair figure { position: relative; }
.pair img { width: 100%; }
.pair__before { width: 64%; }
.tag {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 8px; margin-bottom: 6px; background: var(--noir); color: var(--damier);
}
.tag--after { background: var(--filament); color: var(--noir); }
.pair figcaption, .solo figcaption { font-size: 14px; color: var(--beton); margin-top: 6px; }
.on-dark .pair figcaption, .on-dark .solo figcaption { color: var(--on-dark-muted); }
.on-dark .tag { background: var(--damier); color: var(--noir); }
.on-dark .tag--after { background: var(--filament); }

/* ---------- houses ---------- */
.houses { padding: 72px 0 32px; }
.house { display: grid; gap: 24px; padding-bottom: 72px; }
.house__body > p { margin-bottom: 24px; max-width: 52ch; }
.house__head .num { font-size: 88px; display: block; }
.house__kind { font-size: 19px; font-weight: 600; margin: 12px 0 4px; }
.house__meta { color: var(--beton); font-size: 15px; margin: 0; }
.quote { font-size: 20px; line-height: 1.45; }
.quote p { margin: 0 0 12px; }
.quote footer { font-size: 14px; color: var(--beton); }
.on-dark .quote footer { color: var(--on-dark-muted); }
.house__go { margin-top: 24px; }

/* ---------- services ---------- */
.services { background: var(--damier); padding: 72px 0; }
.services h2 { font-size: 40px; max-width: 13ch; }
.services__intro { color: var(--beton); max-width: 44ch; margin: 16px 0 40px; }
.svc { display: grid; gap: 28px; }
.svc li { display: grid; gap: 2px; }
.svc h3 { font-size: 22px; font-stretch: 85%; }
.svc p { margin: 0; color: var(--beton); }

/* ---------- baptiste ---------- */
.who { background: var(--graphite); color: var(--damier); }
.who__grid { display: grid; }
.who__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 30%; max-height: 78svh; }
.who__text { padding: 48px var(--gutter) 64px; }
.who__name { font-size: 15px; color: var(--on-dark-muted); margin: 0 0 16px; }
.who__name strong { color: var(--damier); font-size: 17px; }
.who blockquote { font-size: 26px; line-height: 1.12; }
.steps { counter-reset: s; margin-top: 48px; display: grid; gap: 24px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  font-stretch: 62%; font-weight: 800; font-size: 34px; line-height: 1; color: var(--filament);
  grid-row: span 2;
}
.steps h3 { font-size: 19px; font-stretch: 85%; }
.steps p { margin: 4px 0 0; color: var(--on-dark-muted); font-size: 16px; }
.steps-title { font-size: 15px; font-weight: 600; color: var(--on-dark-muted); margin: 48px 0 0; }

/* ---------- contact ---------- */
.contact { background: var(--noir); color: var(--damier); padding: 72px 0; }
.contact__phone { font-size: 56px; text-decoration: none; display: inline-block; }
.contact__lead { color: var(--on-dark-muted); margin: 16px 0 40px; max-width: 40ch; }
.contact__grid { display: grid; gap: 32px; }
.contact h3 { font-size: 15px; font-weight: 600; color: var(--on-dark-muted); margin-bottom: 8px; }
.contact address { font-style: normal; font-size: 18px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; font-size: 16px; margin: 0; }
.hours dt { color: var(--on-dark-muted); }
.hours dd { margin: 0; }
.hours .off { color: var(--on-dark-muted); }
.hours__src { font-size: 13px; color: var(--on-dark-muted); margin: 8px 0 0; }
.contact__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }

/* ---------- footer ---------- */
.foot { background: var(--noir); color: var(--on-dark-muted); font-size: 14px; padding: 32px 0 40px; }
.foot__in { display: grid; gap: 16px; padding-top: 32px; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.foot strong { color: var(--damier); font-stretch: 72%; font-size: 20px; letter-spacing: .06em; }
.foot p { margin: 0; }
.foot a { color: var(--damier); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- réalisations page ---------- */
.page-intro { background: var(--noir); color: var(--damier); padding: 48px 0 56px; }
.page-intro h1 { font-size: 48px; max-width: 11ch; }
.page-intro p { color: var(--on-dark-muted); max-width: 44ch; margin: 16px 0 0; }
.jump { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.project { padding: 64px 0 24px; }
.project--dark { background: var(--noir); color: var(--damier); }
.project__head .num { font-size: 104px; display: block; }
.project__title { font-size: 24px; font-stretch: 85%; margin: 16px 0 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 24px; font-size: 15px; }
.facts dt { color: var(--beton); }
.on-dark .facts dt { color: var(--on-dark-muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts div { display: flex; gap: 8px; }
.project__about { max-width: 60ch; }
.rooms { display: grid; gap: 56px; margin: 48px 0; }
.room h3 { font-size: 24px; font-stretch: 85%; margin-bottom: 16px; }
.solo { display: grid; gap: 12px; }
.solo > *, .pair > *, .room > *, .house > *, .who__grid > *, .services__grid > *, .project__top > *, .compare-sec__grid > * { min-width: 0; }
.solo img { width: 100%; }
.works { display: grid; gap: 40px; margin: 24px 0 48px; }
.works h3 { font-size: 22px; font-stretch: 85%; margin-bottom: 16px; }
.works li { padding: 8px 0; }
.works li strong { display: block; font-weight: 600; }
.works li span { color: var(--beton); }
.on-dark .works li span { color: var(--on-dark-muted); }
.works__more { margin-top: 24px; }
.project .quote { max-width: 34ch; font-size: 24px; padding: 8px 0 48px; }
.close { padding: 72px 0; }
.close h2 { font-size: 40px; max-width: 16ch; }
.close p { color: var(--beton); margin: 16px 0 32px; max-width: 40ch; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal [data-stagger] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in [data-stagger] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal [data-stagger] { opacity: 1; transform: none; transition: none; }
  .btn, .link { transition: none; }
}

/* ---------- tablet ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero h1 { font-size: 60px; }
  .hero__call { display: inline-flex; }
  .house__head .num { font-size: 120px; }
  .svc { grid-template-columns: 1fr 1fr; gap: 32px 48px; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .pair { grid-template-columns: 2fr 3fr; gap: 16px; }
  .pair__before { width: 100%; }
  .works { grid-template-columns: 1fr 1fr; }
  .solo { grid-template-columns: 1fr 1fr; align-items: end; }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  body { --bar: 0px; }
  .callbar { display: none; }
  .menu-btn, .drawer, .drawer.is-open { display: none; }
  .top__in { height: 88px; }
  .nav { display: flex; gap: 32px; }
  .nav a { text-decoration: none; font-weight: 500; font-size: 16px; }
  .nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--filament); text-underline-offset: 6px; text-decoration-thickness: 2px; }
  .top__call { display: inline-flex; min-height: 44px; padding: 0 18px; font-size: 16px; }
  .top__right { display: flex; align-items: center; gap: 40px; }

  .hero { grid-template-rows: none; grid-template-columns: 5fr 7fr; height: calc(100vh - 88px); min-height: 600px; max-height: 960px; }
  .hero__photo { order: 2; }
  .hero__text { order: 1; padding: 64px 56px 64px max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); }
  .hero h1 { font-size: 84px; }
  .hero__proof { font-size: 18px; margin-top: 28px; }
  .hero__acts { margin-top: 40px; }

  .compare-sec { padding: 96px 0; }
  .compare-sec__grid { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 8fr 4fr; gap: 56px; align-items: end; }
  .compare { max-height: calc(100vh - 160px); aspect-ratio: 4 / 3; }
  .compare-sec__cap { padding: 0 0 8px; }
  .compare-sec__cap h2 { font-size: 56px; }
  .compare-sec__cap p { font-size: 18px; margin-top: 24px; }

  .houses { padding: 128px 0 32px; }
  .house { grid-template-columns: 5fr 7fr; gap: 48px 64px; align-items: end; padding-bottom: 128px; }
  .house .pair { grid-column: 1 / -1; grid-template-columns: 5fr 7fr; gap: 24px; }
  .house--flip .house__head { order: 2; }
  .house--flip .house__body { order: 1; }
  .house--flip .pair { order: 3; }
  .house__head .num { font-size: 152px; }
  .house__kind { font-size: 22px; }
  .quote { font-size: 22px; }

  .services { padding: 128px 0; }
  .services__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
  .services h2 { font-size: 60px; }
  .svc { gap: 40px 64px; }

  .who__grid { grid-template-columns: 5fr 7fr; max-width: var(--wrap); margin: 0 auto; }
  .who__photo img { max-height: none; height: 100%; }
  .who__text { padding: 96px 32px 96px 64px; }
  .who blockquote { font-size: 44px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 48px; }

  .contact { padding: 128px 0 96px; }
  .contact__phone { font-size: 128px; }
  .contact__grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }

  .foot__in { grid-template-columns: 1fr 1fr auto; align-items: end; }

  .page-intro { padding: 72px 0 96px; }
  .page-intro h1 { font-size: 104px; }
  .project { padding: 112px 0 48px; }
  .project__top { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; }
  .project__head .num { font-size: 176px; }
  .project__title { font-size: 30px; }
  .rooms { gap: 96px; margin: 96px 0; }
  .room h3 { font-size: 32px; margin-bottom: 24px; }
  .room .pair, .room .solo { grid-template-columns: 5fr 7fr; gap: 24px; }
  .works { grid-template-columns: 1fr 1fr; gap: 64px; }
  .close { padding: 128px 0; }
  .close h2 { font-size: 64px; }
}
