/* =========================================================
   HORTENNS TCE — Design system
   Ink / Paper / Cuivre · Fraunces · Inter Tight · JetBrains Mono
   ========================================================= */

:root {
  --ink: #0E0F11;
  --ink-2: #16181C;
  --ink-3: #1F2731;
  --ink-4: #6B6E74;
  --paper: #F4F1EC;
  --paper-2: #ECE7DE;
  --copper: #B87333;
  --copper-light: #D89464;
  --copper-glow: rgba(184, 115, 51, 0.25);
  --line: rgba(255, 255, 255, 0.10);
  --line-dark: rgba(14, 15, 17, 0.12);
  --font-display: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 2px;
  --radius-lg: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 900ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; }
::selection { background: var(--copper); color: var(--paper); }

/* ---------- Typography ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h-display em {
  font-style: italic;
  color: var(--copper);
  font-weight: 340;
}
.h1 { font-size: clamp(52px, 9vw, 140px); }
.h2 { font-size: clamp(38px, 5vw, 76px); }
.h3 { font-size: clamp(26px, 3vw, 42px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--copper);
}

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: inherit;
  opacity: 0.88;
  max-width: 56ch;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(80px, 10vw, 160px) 0; }
.section.dark { background: var(--ink); color: var(--paper); }
.section.dark + .section.dark { padding-top: 0; }

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section-header .right { padding-bottom: 8px; }

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--copper);
  z-index: 1002;
  transition: width 80ms linear;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background 400ms ease, padding 400ms ease, box-shadow 400ms ease;
  color: var(--paper);
}
.nav.scrolled {
  background: rgba(14, 15, 17, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 12px var(--gutter);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-logo img {
  width: 40px;
  height: 46px;
  object-fit: contain;
  filter: invert(1);            /* nav sombre : logo blanc */
}
.nav.on-light:not(.scrolled) .nav-logo img { filter: none; }  /* nav claire : logo noir */
.nav-logo div div {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.nav-logo small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}
.nav-link {
  font-size: 13.5px;
  letter-spacing: 0.03em;
  opacity: 0.75;
  transition: opacity 200ms;
  position: relative;
  padding: 6px 0;
}
.nav-link:hover { opacity: 1; }
.nav-link.active { opacity: 1; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--copper);
}
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 11px 22px;
  background: var(--copper);
  color: var(--ink);
  border-radius: var(--radius);
  transition: background 200ms, transform 200ms;
}
.nav-cta:hover { background: var(--copper-light); }

/* Nav sur page claire (hero non sombre) */
.nav.on-light:not(.scrolled) { color: var(--ink); }
.nav.on-light:not(.scrolled) .nav-burger { border-color: var(--line-dark); }
.nav.on-light:not(.scrolled) .nav-burger span { background: var(--ink); }

/* Burger */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 1001;
}
.nav-burger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--paper);
  transition: transform 320ms var(--ease-out), opacity 200ms;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a.mm-link {
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 52px);
  font-weight: 300;
  line-height: 1.35;
  display: flex;
  align-items: baseline;
  gap: 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.mobile-menu.open a.mm-link { opacity: 1; transform: none; }
.mobile-menu a.mm-link.active { color: var(--copper); }
.mobile-menu a.mm-link .mm-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--copper);
  letter-spacing: 0.15em;
}
.mobile-menu .mm-foot {
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.5;
  line-height: 2;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 250ms, color 250ms, transform 250ms var(--ease-out);
  will-change: transform;
}
.btn-primary {
  background: var(--copper);
  color: var(--ink);
}
.btn-primary:hover { background: var(--copper-light); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }
.btn svg { transition: transform 250ms var(--ease-out); }
.btn:hover svg { transform: translateX(5px); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color 200ms, gap 250ms var(--ease-out);
}
.link:hover { color: var(--copper); gap: 16px; }
.link.copper { color: var(--copper); }

/* ---------- HERO VIDEO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Table à dessin : calque quadrillé + courbes de niveau */
.hero-drafting {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(14,15,17,0) 40%, rgba(14,15,17,0.55) 100%),
    linear-gradient(rgba(244,241,236,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,241,236,0.05) 1px, transparent 1px),
    linear-gradient(rgba(244,241,236,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,241,236,0.028) 1px, transparent 1px);
  background-size: 100% 100%, 280px 280px, 280px 280px, 56px 56px, 56px 56px;
}
.hero-drafting::before,
.hero-drafting::after {
  content: "";
  position: absolute;
  width: 44vmin;
  height: 44vmin;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23B87333' stroke-width='1'%3E%3Cpath d='M40 360C20 300 60 250 110 240s90 20 150-10 100-90 60-150S200 20 150 60 60 140 40 200s20 100 0 160z'/%3E%3Cpath d='M70 340c-14-48 22-88 66-97s78 16 130-9 84-74 50-124-92-52-134-19-78 68-94 118 -4 83-18 131z'/%3E%3Cpath d='M100 318c-10-38 18-70 55-77s65 12 108-8 68-59 41-99-75-42-110-15 -64 55-77 95 -7 66-17 104z'/%3E%3Cpath d='M130 296c-7-29 14-53 44-58s52 9 86-6 53-45 32-76 -59-32-87-11 -51 42-61 72 -7 50-14 79z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.07;
}
.hero-drafting::before { left: -6vmin; bottom: 8vmin; }
.hero-drafting::after { right: -8vmin; top: 4vmin; transform: rotate(160deg); }

/* La vidéo, traitée comme un document technique épinglé */
.hero-plan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 480 / 640;
  max-width: 100vw;
}
.hero-plan video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 500ms ease;
}
/* Croix de repérage géomètre aux quatre coins */
.plan-mark {
  position: absolute;
  width: 26px;
  height: 26px;
  opacity: 0.85;
}
.plan-mark::before,
.plan-mark::after {
  content: "";
  position: absolute;
  background: var(--copper);
}
.plan-mark::before { left: 0; right: 0; top: 50%; height: 1px; }
.plan-mark::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.plan-mark.m-tl { top: clamp(70px, 9vh, 110px); left: -13px; }
.plan-mark.m-tr { top: clamp(70px, 9vh, 110px); right: -13px; }
.plan-mark.m-bl { bottom: clamp(88px, 11vh, 130px); left: -13px; }
.plan-mark.m-br { bottom: clamp(88px, 11vh, 130px); right: -13px; }

/* Règle de profondeur graduée — l'aiguille suit le terrassement */
.plan-rule {
  position: absolute;
  top: clamp(100px, 13vh, 150px);
  height: 30vh;
  left: -58px;
  width: 12px;
  border-right: 1px solid rgba(244,241,236,0.28);
  background-image:
    repeating-linear-gradient(to bottom,
      rgba(244,241,236,0.28) 0, rgba(244,241,236,0.28) 1px, transparent 1px, transparent 10%);
  background-position: right 0 top 0;
  background-size: 12px 100%;
  background-repeat: no-repeat;
}
.plan-rule::before,
.plan-rule::after {
  position: absolute;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(244,241,236,0.45);
}
.plan-rule::after { content: "−2,80"; bottom: -5px; }
.rule-needle {
  position: absolute;
  top: 0;
  right: -7px;
  width: 14px;
  height: 1px;
  background: var(--copper);
  box-shadow: 0 0 8px rgba(184,115,51,0.8);
  transition: top 300ms linear;
}
.rule-needle::before {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
}
.rule-depth {
  position: absolute;
  right: 24px;
  top: -7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--copper);
}

/* Échelle des niveaux — le sous-sol se creuse sous vos yeux */
.plan-levels {
  position: absolute;
  top: 21vh;
  height: 23vh;
  left: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.plan-levels .lvl {
  position: relative;
  padding-left: 34px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.42);
  white-space: nowrap;
}
.plan-levels .lvl::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: rgba(244,241,236,0.28);
}
.plan-levels .lvl.active {
  color: var(--copper);
}
.plan-levels .lvl.active::before {
  background: var(--copper);
  box-shadow: 0 0 8px rgba(184,115,51,0.7);
}
.plan-levels .lvl.active::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(0, -50%);
  border-radius: 50%;
  background: var(--copper);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* Cartouche du document */
.plan-ref {
  position: absolute;
  right: calc(100% + 22px);
  bottom: calc(clamp(88px, 11vh, 130px) - 5px);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.35);
}

@media (max-width: 1180px) {
  .plan-rule, .plan-levels, .plan-ref, .plan-mark { display: none; }
}
@media (max-width: 760px) {
  .hero-plan { left: 0; transform: none; aspect-ratio: auto; width: 100%; }
  .hero-drafting::before, .hero-drafting::after { display: none; }
}
@keyframes hero-drift {
  from { transform: scale(1.06) translateX(-0.6%); }
  to   { transform: scale(1.06) translateX(0.6%); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14,15,17,0.94) 0%, rgba(14,15,17,0.42) 38%, rgba(14,15,17,0.30) 60%, rgba(14,15,17,0.55) 100%);
}
.hero-grain::before {
  content: "";
  position: absolute;
  inset: -100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-3%,2%); }
  50% { transform: translate(2%,-3%); }
  75% { transform: translate(-2%,-2%); }
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  padding-bottom: clamp(90px, 12vh, 150px);
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.hero-coord {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  line-height: 2;
  color: rgba(244,241,236,0.55);
}

/* Phase chip — synced with the video */
.hero-phase {
  position: absolute;
  z-index: 3;
  top: clamp(90px, 14vh, 140px);
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(14,15,17,0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-phase .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}
.hero-phase .phase-label { min-width: 9ch; }

/* Video timeline hairline */
.hero-timeline {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.12);
}
.hero-timeline i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--copper);
}

/* Headline word reveal */
.reveal-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.reveal-words .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.reveal-words.visible .w > span { transform: none; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--copper), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Marquee */
.hero-marquee {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  background: rgba(14,15,17,0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.6);
  padding-right: 12px;
}
.marquee-track .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--copper);
  border-radius: 50%;
  margin: 0 20px 2px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- TRANSFORMATION (cinema section) ---------- */
.cinema { background: var(--ink); color: var(--paper); overflow: clip; }
.cinema-stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0.85;
  transition: transform 200ms linear, opacity 200ms linear, border-radius 200ms linear;
  will-change: transform;
  box-shadow: 0 40px 120px rgba(0,0,0,0.55);
}
.cinema-stage video {
  width: 100%;
  aspect-ratio: 1040 / 576;
  object-fit: cover;
}
.cinema-hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 36px);
  background: linear-gradient(to top, rgba(14,15,17,0.55), transparent 34%);
  pointer-events: none;
}
.cinema-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cinema-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(14,15,17,0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cinema-phases {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: auto;
}
.cinema-steps { display: flex; gap: clamp(8px, 2vw, 20px); flex-wrap: wrap; }
.cinema-step {
  font-family: var(--font-mono);
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.45);
  background: none;
  border: none;
  border-top: 2px solid rgba(255,255,255,0.18);
  padding: 10px 4px 0;
  cursor: pointer;
  transition: color 250ms, border-color 250ms;
}
.cinema-step.active { color: var(--paper); border-top-color: var(--copper); }
.cinema-mute {
  pointer-events: auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(14,15,17,0.5);
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 200ms;
}
.cinema-mute:hover { border-color: var(--copper); }
.cinema-caption {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.5);
}

/* ---------- Estimateur (vitrine accueil) ---------- */
.estimator-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: stretch;
}
.estimator-panel {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(26px, 3vw, 40px);
  position: relative;
  overflow: hidden;
}
.estimator-panel::before {
  content: "";
  position: absolute;
  right: -30%;
  top: -50%;
  width: 80%;
  height: 200%;
  background: radial-gradient(closest-side, rgba(184,115,51,0.16), transparent);
  pointer-events: none;
}
.estimator-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.55);
  margin-bottom: 18px;
}
.estimator-topline strong { color: var(--copper); font-weight: 500; }
.estimator-price {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 3.6vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.estimator-price em { font-style: normal; color: var(--copper); padding: 0 6px; }
.estimator-price span { font-size: 0.5em; color: rgba(244,241,236,0.55); }
.estimator-bars { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.estimator-bars > div {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr auto;
  gap: 14px;
  align-items: center;
  font-size: 12.5px;
}
.estimator-bars i {
  display: block;
  height: 7px;
  border-radius: 100px;
  background: rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}
.estimator-bars i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  transition: width 1.2s var(--ease-out);
}
.reveal-stagger.visible .estimator-bars i::after,
.visible .estimator-bars i::after { width: var(--w, 50%); }
.estimator-bars strong { font-family: var(--font-mono); font-size: 10.5px; color: var(--copper); font-weight: 500; }
.estimator-side { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 20px); }
.estimator-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 1;
  min-height: 110px;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  transition: transform 400ms var(--ease-out);
}
.estimator-card:hover { transform: translateY(-4px); }
.estimator-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.estimator-card:hover img { transform: scale(1.06); }
.estimator-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,15,17,0.8), rgba(14,15,17,0.1) 60%);
}
.estimator-card > div {
  position: relative;
  z-index: 1;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.estimator-card .t { font-family: var(--font-display); font-size: 19px; font-weight: 340; }
.estimator-card .s { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,241,236,0.65); margin-top: 4px; }
.estimator-card svg { color: var(--copper); flex-shrink: 0; transition: transform 300ms var(--ease-out); }
.estimator-card:hover svg { transform: translateX(5px); }
.estimator-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.estimator-badges span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  color: rgba(244,241,236,0.7);
}

@media (max-width: 1080px) {
  .estimator-grid { grid-template-columns: 1fr; }
}

/* ---------- Villa (vitrine Airbnb) ---------- */
.villa-ba {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(14px, 1.6vw, 24px);
  align-items: stretch;
}
.villa-before, .villa-after {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
}
.villa-before svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.villa-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.villa-after:hover img { transform: scale(1.04); }
.villa-tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(14,15,17,0.7);
  color: var(--paper);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 2;
}
.villa-tag.after { background: rgba(184,115,51,0.9); color: var(--ink); }
.villa-meta {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}
.villa-stars {
  color: var(--copper);
  font-size: 22px;
  letter-spacing: 4px;
}
.villa-rating-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 300;
  line-height: 1;
  margin-top: 4px;
}
.villa-rating-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.55);
  margin-top: 8px;
}
.villa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.villa-chips span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: rgba(244,241,236,0.75);
}
.villa-gallery {
  margin-top: clamp(20px, 2.4vw, 32px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
}
.villa-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform 700ms var(--ease-out);
}
.villa-gallery img:hover { transform: translateY(-4px); }
@media (max-width: 900px) {
  .villa-ba { grid-template-columns: 1fr; }
  .villa-before { min-height: 240px; }
  .villa-meta { grid-template-columns: 1fr; gap: 20px; }
  .villa-gallery { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
  margin-top: clamp(48px, 6vw, 96px);
}
.section.dark .stats, .stats.on-dark { border-color: var(--line); }
.stat {
  padding: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px) 0;
  border-right: 1px solid var(--line-dark);
}
.section.dark .stat { border-color: var(--line); }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 84px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--copper);
}
.stat-label {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.section:not(.dark) .services {
  border-color: var(--line-dark);
}
.service {
  position: relative;
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 280px;
  overflow: hidden;
  transition: background 350ms ease;
}
.section:not(.dark) .service { border-color: var(--line-dark); }
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,115,51,0.14), transparent 60%);
  opacity: 0;
  transition: opacity 350ms ease;
}
.service:hover::before { opacity: 1; }
.service-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 20px;
}
.service-title {
  font-family: var(--font-display);
  font-size: clamp(21px, 1.8vw, 27px);
  font-weight: 340;
  line-height: 1.15;
  margin-bottom: 14px;
}
.service-desc {
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.65;
}
.service-arrow {
  align-self: flex-end;
  color: var(--copper);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 300ms, transform 300ms var(--ease-out);
}
.service:hover .service-arrow { opacity: 1; transform: none; }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.project { grid-column: span 6; }
.project.large { grid-column: span 8; }
.project.small { grid-column: span 4; }
.project.medium { grid-column: span 6; }
.project-img {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}
.project-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(184,115,51,0.35), transparent 45%);
  opacity: 0;
  transition: opacity 400ms ease;
}
.project:hover .project-img::after { opacity: 1; }
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 900ms var(--ease-out);
}
.project.large .project-img img { aspect-ratio: 16 / 10; }
.project:hover .project-img img { transform: scale(1.045); }
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 4px 0;
}
.project-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 340;
}
.project-loc {
  font-size: 13px;
  opacity: 0.55;
  margin-top: 4px;
}
.project-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  white-space: nowrap;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.filter-chip {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 220ms;
}
.filter-chip:hover { border-color: var(--copper); color: var(--copper); }
.filter-chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  counter-reset: step;
}
.process-step {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  position: relative;
}
.process-step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 1.2s var(--ease-out) 200ms;
}
.process-step.visible::before { width: 100%; }
.process-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}
.process-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 340;
  margin-bottom: 12px;
}
.process-desc { font-size: 14px; line-height: 1.7; opacity: 0.65; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
.testimonial {
  padding: clamp(28px, 3vw, 44px);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}
.testimonial::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.6;
  color: var(--copper);
  display: block;
  height: 30px;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 300;
  line-height: 1.55;
  flex: 1;
}
.testimonial-name { font-size: 14px; font-weight: 500; }
.testimonial-role { font-size: 12px; opacity: 0.55; margin-top: 4px; }

/* ---------- Zone ---------- */
.zone-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 4vw, 80px);
  align-items: center;
}
.zone-map {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-2);
}
.zone-cities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(20px, 3vw, 48px);
}
.zone-city {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  transition: padding-left 250ms var(--ease-out), color 200ms;
}
.zone-city:hover { padding-left: 12px; color: var(--copper); }
.zone-city .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--copper);
  letter-spacing: 0.1em;
}

/* ---------- Avant / Après slider ---------- */
.ba-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ba-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid var(--line-dark);
  background: transparent;
  border-radius: 100px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 220ms;
  color: var(--ink);
}
.section.dark .ba-tab { border-color: var(--line); color: var(--paper); }
.ba-tab-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--copper);
  letter-spacing: 0.1em;
}
.ba-tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.section.dark .ba-tab.active { background: var(--copper); color: var(--ink); border-color: var(--copper); }

.ba-card { position: relative; }
.ba-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ba-trade {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}
.ba-title { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 26px); font-weight: 340; }
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  background: var(--ink-2);
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ba-label {
  position: absolute;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(14,15,17,0.65);
  color: var(--paper);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ba-label-before { left: 16px; }
.ba-label-after { right: 16px; background: rgba(184,115,51,0.85); color: var(--ink); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ba-handle-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1.5px;
  background: var(--paper);
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}
.ba-handle-knob {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

/* ---------- Jobs ---------- */
.job {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr) 40px;
  gap: 20px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line-dark);
  transition: padding-left 250ms var(--ease-out), background 250ms;
  cursor: pointer;
}
.job:first-child { border-top: 1px solid var(--line-dark); }
.job:hover { padding-left: 20px; background: rgba(184,115,51,0.05); }
.job-title { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 26px); font-weight: 340; }
.job-meta { font-size: 13.5px; opacity: 0.6; }
.job-arrow { color: var(--copper); opacity: 0; transition: opacity 250ms; }
.job:hover .job-arrow { opacity: 1; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.field {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 10px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 300;
  color: inherit;
  padding: 0;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: currentColor; opacity: 0.25; }
.field-row { grid-column: 1 / -1; padding: 24px 0; border-bottom: 1px solid var(--line); }
.field-row > label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 16px;
}
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 100px;
  font-size: 13px;
  cursor: pointer;
  transition: all 200ms;
}
.chip:hover { border-color: var(--copper); color: var(--copper); }
.chip.active {
  background: var(--copper);
  color: var(--ink);
  border-color: var(--copper);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 8vw, 100px) var(--gutter) 32px;
  overflow: hidden;
}
.footer-mega {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(72px, 14vw, 240px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: clamp(48px, 6vw, 90px);
  opacity: 0.98;
}
.footer-mega em { font-style: normal; color: var(--copper); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: var(--container);
  margin: 0 auto;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col p, .footer-col li { font-size: 14px; line-height: 1.9; opacity: 0.72; }
.footer-col ul { list-style: none; }
.footer-col a:hover { color: var(--copper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(150px, 20vh, 220px) 0 clamp(40px, 6vh, 80px);
}
.page-hero.dark { background: var(--ink); color: var(--paper); }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 2fr);
  gap: 24px;
  align-items: end;
}
.page-hero-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.4;
  text-align: right;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 8vw, 120px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -20%;
  top: -40%;
  width: 70%;
  height: 180%;
  background: radial-gradient(closest-side, rgba(184,115,51,0.22), transparent);
  pointer-events: none;
}
.cta-banner .cta-left { grid-column: 1 / 9; }
.cta-banner .cta-right { grid-column: 9 / 13; text-align: right; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 450ms; }
.reveal-img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease-out);
}
.reveal-img.visible { clip-path: inset(0 0 0% 0); }

/* Page curtain (first paint) */
#curtain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 500ms ease 150ms, visibility 0s linear 700ms;
}
#curtain.done { opacity: 0; visibility: hidden; pointer-events: none; }
#curtain img { width: 68px; height: 84px; object-fit: contain; animation: curtain-logo 900ms var(--ease-out); }
@keyframes curtain-logo {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .zone-grid { grid-template-columns: 1fr; }
  .cta-banner .cta-left { grid-column: 1 / -1; }
  .cta-banner .cta-right { grid-column: 1 / -1; text-align: left; margin-top: 24px; }
}

@media (max-width: 760px) {
  .section-header { grid-template-columns: 1fr; align-items: start; }
  .hero-content { grid-template-columns: 1fr; padding-bottom: 110px; }
  .hero-phase { top: 84px; right: var(--gutter); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px 0; }
  .stat:nth-child(2n) { border-right: none; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; gap: 24px; }
  .projects-grid > .project,
  .projects-grid > .project.large,
  .projects-grid > .project.medium,
  .projects-grid > .project.small { grid-column: 1 / -1; }
  .process-list { grid-template-columns: 1fr; }
  .zone-cities { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr auto; }
  .job .job-meta:nth-child(3) { display: none; }
  .job-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cinema-stage { border-radius: 12px; }
  .ba-slider { aspect-ratio: 4 / 3; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-meta { text-align: left; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .reveal-stagger > *, .reveal-words .w > span, .reveal-img {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
