/* =========================================================
   ANOTHER DESIGN — Lumière & Matière
   Cinematic dark "night gallery". Vanilla CSS.
   Palette is justified by the studio's craft: interiors that
   emerge from shadow through warm light.
   ========================================================= */

/* ---- animatable custom props (hero spotlight) ---- */
@property --mx { syntax: '<length-percentage>'; inherits: true; initial-value: 50%; }
@property --my { syntax: '<length-percentage>'; inherits: true; initial-value: 44%; }

:root {
  /* palette — night gallery + warm glow */
  --void:        #0B0B0D;
  --void-2:      #0E0E12;
  --char:        #15151A;
  --char-2:      #1C1C22;
  --line:        rgba(239, 233, 221, 0.12);
  --line-soft:   rgba(239, 233, 221, 0.07);
  --smoke:       #B0AAA0;
  --smoke-dim:   #807B73;
  --bone:        #EFE9DD;
  --brass:       #C49A52;
  --brass-glow:  #E7C079;

  /* type */
  --font-display: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --font-body:    'Mulish', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  /* rhythm */
  --pad:    clamp(1.25rem, 5vw, 5rem);
  --gut:    clamp(1rem, 2vw, 2rem);
  --maxw:   1500px;
  --sect:   clamp(5rem, 12vh, 11rem);
  --r:      0px;             /* architectural: sharp by default */

  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --slow:   cubic-bezier(0.65, 0, 0.35, 1);
}

/* ===================== RESET / BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--bone);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--brass); color: var(--void); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.02em; }

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 200;
  background: var(--brass); color: var(--void); padding: 0.7rem 1.1rem;
  font: 600 0.85rem var(--font-body);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--brass-glow); outline-offset: 3px; }

/* ===================== FILM GRAIN ===================== */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: 0.03; mix-blend-mode: overlay;
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  html.js .grain { animation: grainShift 0.7s steps(3) infinite; }
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-3%, 2%); }
  66%  { transform: translate(2%, -2%); }
  100% { transform: translate(-1%, 1%); }
}

/* ===================== CUSTOM CURSOR ===================== */
.cursor, .cursor__ring, .cursor__label { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.js.cursor-on, html.js.cursor-on a, html.js.cursor-on button, html.js.cursor-on [data-cursor] { cursor: none; }

  .cursor {
    position: fixed; top: 0; left: 0; z-index: 151; pointer-events: none;
    display: block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--brass-glow);
    transform: translate3d(-50%, -50%, 0);
    mix-blend-mode: difference;
    transition: width .28s var(--ease), height .28s var(--ease), opacity .25s;
  }
  .cursor__ring {
    position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(231, 192, 121, 0.5);
    transform: translate3d(-50%, -50%, 0);
    transition: width .32s var(--ease), height .32s var(--ease), border-color .3s, background .3s, opacity .25s;
  }
  .cursor__label {
    display: block; font: 700 0.58rem var(--font-mono); letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--void); opacity: 0; transition: opacity .2s;
  }
  /* zone states (set via JS on <html>) */
  html.cursor-link  .cursor__ring { width: 52px; height: 52px; border-color: var(--brass-glow); }
  html.cursor-cta   .cursor { opacity: 0; }
  html.cursor-cta   .cursor__ring { width: 64px; height: 64px; background: rgba(231,192,121,0.18); border-color: var(--brass-glow); }
  html.cursor-view  .cursor { opacity: 0; }
  html.cursor-view  .cursor__ring { width: 92px; height: 92px; background: rgba(231,192,121,0.92); border-color: transparent; }
  html.cursor-view  .cursor__label { opacity: 1; }
  html.cursor-drag  .cursor { opacity: 0; }
  html.cursor-drag  .cursor__ring { width: 84px; height: 84px; background: rgba(231,192,121,0.92); border-color: transparent; }
  html.cursor-drag  .cursor__label { opacity: 1; }
}

/* ===================== NAV ===================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .5s var(--ease), backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
/* permanent soft scrim so nav stays legible over the bright hero; fades once scrolled */
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 11, 13, 0.82), rgba(11, 11, 13, 0.15) 70%, transparent);
  transition: opacity .5s var(--ease);
}
.nav.is-scrolled::before { opacity: 0; }
.nav.is-scrolled {
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(0.85rem, 1.6vh, 1.25rem) var(--pad);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; display: block; }
.brand__img--footer { width: 72px; height: 72px; border-radius: 50%; }
.brand__mark { color: var(--brass); display: inline-flex; }
.brand__type { display: inline-flex; align-items: baseline; gap: 0.4rem; line-height: 1; }
.brand__name { font: 600 0.92rem var(--font-body); letter-spacing: 0.34em; color: var(--bone); }
.brand__script { font: italic 500 1.25rem var(--font-display); color: var(--brass-glow); }

.nav__links { display: flex; gap: clamp(1rem, 2vw, 2.1rem); }
.nav__links a {
  position: relative; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--bone);
  padding: 0.3rem 0; transition: color .3s;
}
.nav.is-scrolled .nav__links a { color: var(--smoke); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--brass-glow); transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { width: 100%; }

.nav__burger { display: none; width: 38px; height: 38px; position: relative; }
.nav__burger span {
  position: absolute; left: 9px; right: 9px; height: 1.4px; background: var(--bone);
  transition: transform .35s var(--ease), opacity .25s;
}
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { bottom: 15px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font: 600 0.82rem var(--font-body); letter-spacing: 0.06em;
  padding: 0.95rem 1.7rem; border-radius: var(--r); position: relative;
  transition: transform .35s var(--ease), background .35s, color .35s, border-color .35s;
  white-space: nowrap;
}
.btn--brass { background: var(--brass-glow); color: #1a1206; }
.btn--brass:hover { background: var(--bone); }
.btn--ghost { color: var(--bone); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--brass-glow); color: var(--brass-glow); }
.btn--block { width: 100%; }
.btn--whatsapp {
  background: transparent; color: var(--bone); border: 1px solid var(--line);
  align-self: center;
}
.contact__intro .btn--whatsapp { margin-inline: auto; }
.btn--whatsapp:hover { border-color: #25D366; color: #25D366; }

/* ===================== HEADINGS / KICKERS ===================== */
.kicker {
  font: 700 0.7rem var(--font-mono); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1.1rem;
}
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 6.2vw, 5rem); line-height: 0.98;
  letter-spacing: -0.015em; color: var(--bone); text-align: center;
}
.section-title em { font-style: italic; color: var(--brass-glow); }
.kicker { text-align: center; }
.atelier__head, .works__head, .services__head, .matiere__head, .contact__intro { text-align: center; }
.atelier__intro, .services__intro, .contact__lede { margin-inline: auto; text-align: center; }

/* word-split kinetic reveal */
.word { display: inline-block; overflow: hidden; padding-bottom: 0.12em; vertical-align: top; }
.word > i { display: inline-block; font-style: inherit; will-change: transform; }
html.js [data-words] .word > i { transform: translateY(110%); }
html.js [data-fade] { opacity: 0; }
html.js [data-lines] { opacity: 0; }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100svh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; isolation: isolate;
  padding: 0 var(--pad) clamp(2.5rem, 7vh, 5rem);
}
.hero__stage { position: absolute; inset: 0; z-index: -2; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img--dim { filter: brightness(0.26) saturate(0.7) contrast(1.05); }
.hero__lit {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my),
      #000 0%, rgba(0,0,0,0.92) 18%, rgba(0,0,0,0.35) 42%, transparent 62%);
          mask-image: radial-gradient(circle at var(--mx) var(--my),
      #000 0%, rgba(0,0,0,0.92) 18%, rgba(0,0,0,0.35) 42%, transparent 62%);
}
.hero__img--lit { filter: brightness(1.04) saturate(1.06) contrast(1.02); }
/* warm bloom that sits where the light "lives" */
.hero__bloom {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my),
      rgba(231, 192, 121, 0.20) 0%, rgba(231, 192, 121, 0.06) 22%, transparent 50%);
  mix-blend-mode: screen;
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--void) 2%, transparent 38%),
    linear-gradient(to right, rgba(11,11,13,0.55), transparent 45%, transparent 70%, rgba(11,11,13,0.4));
}
/* ambient drift on touch / reduced-motion (no cursor tracking) */
@media (prefers-reduced-motion: no-preference) {
  .hero.is-ambient .hero__lit,
  .hero.is-ambient .hero__bloom { animation: drift 14s ease-in-out infinite alternate; }
}
@keyframes drift {
  0%   { --mx: 38%; --my: 40%; }
  100% { --mx: 64%; --my: 52%; }
}

.hero__content {
  position: relative; max-width: min(720px, 92vw); width: 100%;
  margin-inline: auto; padding: 2rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: radial-gradient(ellipse at center, rgba(11,11,13,0.55) 0%, rgba(11,11,13,0.25) 60%, transparent 100%);
  border-radius: 12px;
}
.hero__content h1, .hero__content p, .hero__content a { text-shadow: 0 2px 12px rgba(11,11,13,0.6); }
.hero__eyebrow {
  font: 700 0.72rem var(--font-mono); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass-glow); margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.5rem, 5.8vw, 5.6rem); line-height: 0.98;
  letter-spacing: -0.02em; color: var(--bone);
  max-width: 16ch; text-wrap: balance;
}
.hero__lede {
  margin-top: 1.6rem; max-width: 52ch; color: var(--smoke);
  font-size: clamp(0.98rem, 1.3vw, 1.15rem); line-height: 1.65;
}
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.hero__meta {
  position: absolute; right: var(--pad); bottom: clamp(2.5rem, 7vh, 5rem);
  font-size: 0.66rem; color: var(--smoke-dim); letter-spacing: 0.12em;
}

/* ===================== MANIFESTO ===================== */
.manifesto { padding: calc(var(--sect) * 1.1) 0; border-top: 1px solid var(--line-soft); background: var(--void-2); }
.manifesto .wrap { display: flex; flex-direction: column; align-items: center; }
.manifesto__lead {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.28;
  letter-spacing: -0.005em; color: var(--bone);
  max-width: 20ch; text-align: center; text-wrap: balance;
}
.manifesto__lead em { font-style: italic; color: var(--brass-glow); }
.line { display: block; overflow: hidden; }
.line > i { display: block; font-style: inherit; will-change: transform; }
html.js [data-lines] .line > i { transform: translateY(105%); }
.manifesto__sign {
  margin-top: 2.8rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem;
  font-size: 0.68rem; color: var(--smoke-dim); text-transform: uppercase; letter-spacing: 0.18em;
}

/* ===================== ATELIER : plan → réel ===================== */
.atelier { padding: var(--sect) 0; background: var(--void-2); border-top: 1px solid var(--line-soft); }
.atelier__head { max-width: 64ch; margin-inline: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.atelier__head .kicker { margin-bottom: 1rem; }
.atelier__intro { margin-top: 1.5rem; color: var(--smoke); max-width: 52ch; }

.compare {
  position: relative; width: 100%; max-width: 1020px; margin-inline: auto;
  aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--char); border: 1px solid var(--line-soft);
  --pos: 50%; user-select: none; touch-action: pan-y;
}
.compare + .compare { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.compare img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__real { position: absolute; inset: 0; }
.compare__real img { filter: brightness(1.08) contrast(1.05) saturate(1.08); }
.compare__plan {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  background: #0a0e14;
}
.compare__plan img { filter: grayscale(1) brightness(0.52) contrast(1.45) opacity(0.55); }
.compare__plan::after { /* ink + brass tint */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,18,28,0.55), rgba(196,154,82,0.16));
  mix-blend-mode: screen;
}
.compare__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(231,192,121,0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,192,121,0.28) 1px, transparent 1px),
    linear-gradient(rgba(231,192,121,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,192,121,0.13) 1px, transparent 1px);
  background-size: 88px 88px, 88px 88px, 22px 22px, 22px 22px;
}
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 48px; transform: translateX(-50%); z-index: 4;
  display: grid; place-items: center; touch-action: none;
}
.compare__line { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--brass-glow); box-shadow: 0 0 18px rgba(231,192,121,0.6); }
.compare__knob {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--brass-glow); background: rgba(11,11,13,0.55);
  backdrop-filter: blur(6px); position: relative;
  transition: transform .3s var(--ease), background .3s;
}
.compare__knob::before, .compare__knob::after {
  content: ''; position: absolute; top: 50%; width: 0; height: 0;
  border-block: 5px solid transparent; transform: translateY(-50%);
}
.compare__knob::before { border-right: 7px solid var(--brass-glow); left: 11px; }
.compare__knob::after  { border-left: 7px solid var(--brass-glow); right: 11px; }
.compare__handle:hover .compare__knob { transform: scale(1.08); background: rgba(231,192,121,0.18); }
.compare__caps { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 1rem 1.2rem; z-index: 3; pointer-events: none; }
.compare__cap { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone); }
.compare__cap--l { color: var(--brass-glow); }

/* ===================== RÉALISATIONS : galerie ===================== */
.works { padding: var(--sect) 0; border-top: 1px solid var(--line-soft); background: var(--void-2); }
.works__head {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.works__titles { text-align: center; }
.works__head .kicker { margin-bottom: 0.7rem; }
.works__filters { justify-content: center; }
.works__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter {
  font: 400 0.78rem var(--font-mono); letter-spacing: 0.04em; color: var(--smoke);
  padding: 0.45rem 0.95rem; border: 1px solid var(--line-soft); border-radius: 999px;
  transition: color .3s, border-color .3s, background .3s;
}
.filter:hover { color: var(--bone); border-color: var(--line); }
.filter.is-active { color: var(--void); background: var(--brass-glow); border-color: var(--brass-glow); }

.gallery {
  display: flex; flex-wrap: wrap; gap: clamp(0.8rem, 1.6vw, 1.6rem);
  justify-content: center;
}
.plate {
  margin: 0; display: flex; flex-direction: column; gap: 0.8rem;
  flex: 0 0 calc((100% - clamp(0.8rem, 1.6vw, 1.6rem) * 2) / 3);
}

.plate__frame {
  position: relative; display: block; overflow: hidden; background: var(--char);
  aspect-ratio: 4 / 3; border: 1px solid var(--line-soft);
}
.plate__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.82) saturate(0.95);
  transition: transform .9s var(--ease), filter .6s var(--ease), opacity .4s;
  will-change: transform;
}
/* CSS fallback (no WebGL): soft zoom + warm-up on hover */
.plate__frame:hover img { transform: scale(1.06); filter: brightness(1) saturate(1.08); }
/* shader canvas cross-fades over the image so leaving the tile never flashes */
.plate__frame canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.plate__frame.gl-on canvas { opacity: 1; }
.plate__frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(to top, rgba(11,11,13,0.55), transparent 55%);
  opacity: 0.8; transition: opacity .5s;
}
.plate__frame:hover::after { opacity: 0.35; }
.plate__cap { display: flex; align-items: baseline; gap: 0.8rem; }
.plate__no { font-size: 0.7rem; color: var(--brass); letter-spacing: 0.08em; }
.plate__meta { font-size: 0.78rem; color: var(--smoke); letter-spacing: 0.02em; }
.works__empty { margin-top: 2rem; color: var(--smoke-dim); font-family: var(--font-mono); }

/* ===================== MATIÈRE : scroll horizontal ===================== */
.matiere { padding: var(--sect) 0; background: var(--char); border-top: 1px solid var(--line-soft); overflow: hidden; }
.matiere__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.matiere__title {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1; color: var(--bone); letter-spacing: -0.01em;
}
.matiere__wrap { position: relative; display: flex; align-items: center; }
.matiere__track {
  display: flex; gap: clamp(0.8rem, 1.6vw, 1.5rem);
  padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab; flex: 1;
}
.matiere__track::-webkit-scrollbar { display: none; }
.matiere__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.matiere__arrow {
  position: absolute; z-index: 5; width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(11, 11, 13, 0.7); border: 1px solid var(--line);
  color: var(--bone); cursor: pointer;
  transition: background .3s, border-color .3s;
}
.matiere__arrow:hover { background: var(--char-2); border-color: var(--brass-glow); color: var(--brass-glow); }
.matiere__arrow--prev { left: 0.5rem; }
.matiere__arrow--next { right: 0.5rem; }
.swatch {
  position: relative; flex: 0 0 auto; width: clamp(220px, 30vw, 420px); aspect-ratio: 3 / 4;
  margin: 0; overflow: hidden; scroll-snap-align: center; border: 1px solid var(--line-soft);
}
.swatch img {
  width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8) saturate(0.95) contrast(1.05);
  transform: scale(1.18); transition: transform 1s var(--ease), filter .6s;
}
.swatch:hover img { transform: scale(1.24); filter: brightness(1) saturate(1.1); }
.swatch figcaption {
  position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 2;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone);
  background: rgba(11,11,13,0.5); backdrop-filter: blur(4px); padding: 0.35rem 0.6rem;
}
.swatch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,11,13,0.6), transparent 60%); pointer-events: none; }

/* ===================== SERVICES : index éditorial ===================== */
.services { padding: var(--sect) 0; border-top: 1px solid var(--line-soft); position: relative; }
.services__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.services__intro { margin-top: 1.2rem; color: var(--smoke); max-width: 44ch; }
.index { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.index__row {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem; align-items: baseline; padding: clamp(1.4rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line); transition: padding-left .45s var(--ease), color .4s;
}
.index__no { color: var(--brass); font-size: 0.8rem; }
.index__name {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1.05; color: var(--bone);
  transition: color .4s;
}
.index__val { color: var(--smoke); font-size: 0.95rem; max-width: 40ch; }
@media (hover: hover) and (pointer: fine) {
  .index__row:hover { padding-left: clamp(0.5rem, 2vw, 2rem); }
  .index__row:hover .index__name { color: var(--brass-glow); }
}
.index__preview {
  position: fixed; top: 0; left: 0; z-index: 80; width: 230px; aspect-ratio: 4/5; margin: 0;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.9);
  transition: opacity .4s var(--ease), transform .5s var(--ease); overflow: hidden;
  border: 1px solid var(--line); display: none;
}
.index__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .index__preview { display: block; } }

/* ===================== PREUVE ===================== */
.proof {
  padding: var(--sect) 0; background: var(--char);
  border-top: 1px solid var(--line-soft); position: relative;
}
.proof::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-glow), transparent);
  opacity: 0.5;
}
.proof__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; }
.stat__num {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1; color: var(--brass-glow); letter-spacing: -0.02em;
}
.stat__star { font-size: 0.5em; vertical-align: super; }
.stat__lbl { font-size: 0.8rem; color: var(--smoke); letter-spacing: 0.04em; }
.proof__quotes {
  margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
}
.quote p {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.85rem); line-height: 1.4; color: var(--bone);
}
.quote cite {
  display: block; margin-top: 1.4rem; font-style: normal; font-weight: 600; font-size: 0.9rem; color: var(--bone);
}
.quote cite span { display: block; font-weight: 300; color: var(--smoke); font-size: 0.82rem; margin-top: 0.2rem; }

/* ===================== CONTACT ===================== */
.contact { padding: var(--sect) 0; background: var(--char-2); border-top: 1px solid var(--line-soft); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__lede { margin-top: 1.4rem; color: var(--smoke); max-width: 42ch; }
.contact__coords { list-style: none; padding: 0; margin: 2rem 0 2.4rem; display: grid; gap: 1.3rem; }
.contact__coords li { display: grid; gap: 0.2rem; text-align: center; }
.contact__k { font-size: 0.66rem; color: var(--brass); text-transform: uppercase; letter-spacing: 0.16em; }
.contact__coords a { color: var(--bone); transition: color .3s; }
.contact__coords a:hover { color: var(--brass-glow); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.form label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--smoke); }
.form input, .form select, .form textarea {
  font: 300 0.98rem var(--font-body); color: var(--bone);
  background: var(--char); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0.85rem 1rem; transition: border-color .3s, background .3s; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input::placeholder, .form textarea::placeholder { color: var(--smoke-dim); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brass-glow); background: var(--char-2); box-shadow: 0 0 0 1px var(--brass-glow); }
.form select { cursor: pointer; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C8553D; box-shadow: 0 0 0 1px #C8553D; }
.field__err { color: #E08163; font-size: 0.74rem; min-height: 1em; }
.form .btn--block { grid-column: 1 / -1; margin-top: 0.6rem; padding: 1.05rem 1.7rem; }
.form__status { grid-column: 1 / -1; font-size: 0.85rem; min-height: 1.2em; }
.form__status.is-ok { color: var(--brass-glow); }
.form__status.is-err { color: #E08163; }

/* ===================== FOOTER ===================== */
.footer { padding: var(--sect) 0 2.5rem; border-top: 1px solid var(--line-soft); }
.footer__top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 2rem; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line);
}
.footer__big {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 6vw, 5rem);
  line-height: 0.98; letter-spacing: -0.02em; color: var(--bone); max-width: 14ch;
}
.footer__cta {
  font: 600 0.82rem var(--font-body); letter-spacing: 0.06em; color: var(--void);
  background: var(--brass-glow); padding: 1rem 1.9rem; white-space: nowrap;
  transition: background .35s, transform .35s var(--ease);
}
.footer__cta:hover { background: var(--bone); }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad);
}
.footer__brand p { margin-top: 1rem; color: var(--smoke); max-width: 34ch; font-size: 0.9rem; }
.footer__nav, .footer__social { display: grid; gap: 0.7rem; align-content: start; }
.footer__nav a, .footer__social a { color: var(--smoke); font-size: 0.88rem; transition: color .3s; width: fit-content; }
.footer__nav a:hover, .footer__social a:hover { color: var(--brass-glow); }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.74rem; color: var(--smoke-dim); padding-top: 2rem; border-top: 1px solid var(--line-soft);
}

/* ===================== CHAT ===================== */
.chat { position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 120; }
.chat__toggle {
  width: 60px; height: 60px; border-radius: 50%; background: var(--brass-glow); color: var(--void);
  display: grid; place-items: center; position: relative; margin-left: auto;
  box-shadow: 0 10px 40px rgba(231,192,121,0.3), 0 0 0 1px rgba(231,192,121,0.4);
  transition: transform .4s var(--ease), background .3s;
}
.chat__toggle:hover { transform: scale(1.06); }
.chat__icon-close { position: absolute; opacity: 0; transform: scale(0.5) rotate(-45deg); transition: opacity .3s, transform .3s var(--ease); }
.chat__icon-open { transition: opacity .3s, transform .3s var(--ease); }
.chat.is-open .chat__icon-open { opacity: 0; transform: scale(0.5) rotate(45deg); }
.chat.is-open .chat__icon-close { opacity: 1; transform: scale(1) rotate(0); }
.chat__panel {
  position: absolute; right: 0; bottom: 74px; width: min(370px, calc(100vw - 2rem));
  background: var(--char); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; height: min(70vh, 520px); min-height: 0;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  transform-origin: bottom right; animation: chatIn .4s var(--ease);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
.chat__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(231,192,121,0.07), transparent);
}
.chat__brand { font-size: 0.78rem; letter-spacing: 0.06em; }
.chat__brand .brand__name { letter-spacing: 0.2em; }
.chat__brand .brand__script { font: italic 500 1rem var(--font-display); color: var(--brass-glow); }
.chat__status { font-size: 0.66rem; color: #76C97E; display: inline-flex; align-items: center; gap: 0.4rem; }
.chat__status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #76C97E; box-shadow: 0 0 8px #76C97E; }
.chat__log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; min-height: 0; }
.bubble {
  max-width: 85%; padding: 0.7rem 0.95rem; font-size: 0.88rem; line-height: 1.45; border-radius: 13px;
}
.bubble--bot { background: var(--char-2); color: var(--bone); align-self: flex-start; border-bottom-left-radius: 3px; }
.bubble--user { background: var(--brass-glow); color: #1a1206; align-self: flex-end; border-bottom-right-radius: 3px; }
.bubble--typing { display: inline-flex; gap: 4px; }
.bubble--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--smoke); animation: blink 1.2s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: .2s; }
.bubble--typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.chat__log .btn--whatsapp { margin-top: 0.3rem; font-size: 0.78rem; padding: 0.6rem 1rem; }
.chat__form { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid var(--line-soft); }
.chat__form input {
  flex: 1; background: var(--void); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.7rem 0.9rem; color: var(--bone); font: 300 0.9rem var(--font-body);
}
.chat__form input:focus { outline: none; border-color: var(--brass-glow); }
.chat__form button { width: 42px; height: 42px; border-radius: 10px; background: var(--brass-glow); color: var(--void); display: grid; place-items: center; flex: 0 0 auto; transition: transform .3s; }
.chat__form button:hover { transform: scale(1.05); }

/* ===================== REVEAL DEFAULTS (JS-gated) ===================== */
html.js [data-reveal] { opacity: 0; transform: translateY(34px); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .nav__cta { display: none; }
  .nav__burger { display: block; z-index: 102; position: relative; }

  .nav__links {
    display: flex;
    position: fixed; inset: 0 0 0 auto; z-index: 101;
    flex-direction: column; gap: 1.6rem;
    padding: 5.5rem var(--pad) 2rem;
    background: var(--void-2);
    border-left: 1px solid var(--line);
    width: min(320px, 75vw);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }
  .nav.is-open .nav__links {
    transform: translateX(0);
  }
  .nav.is-open .nav__links a { font-size: 1.1rem; color: var(--bone); letter-spacing: 0.06em; }

  .nav.is-open { background: var(--void); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.is-open::before { opacity: 0; }
  .nav.is-open .nav__links a::after { bottom: -4px; }

  .nav__overlay {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0; pointer-events: none;
  }
  .nav.is-open ~ .nav__overlay { opacity: 1; pointer-events: auto; transition: none; }
  .nav:not(.is-open) ~ .nav__overlay { transition: opacity .35s var(--ease); }

  .nav.is-open .nav__burger span:nth-child(1) { top: 18px; transform: rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { bottom: 18px; transform: rotate(-45deg); }

  .plate { flex: 0 0 calc((100% - 1rem) / 2); }
}

@media (max-width: 720px) {
  :root {
    --sect: clamp(3.5rem, 10vh, 6rem);
    --pad: clamp(1rem, 4vw, 1.5rem);
  }
  .hero {
    min-height: 100svh;
    justify-content: center;
  }
  .hero__content { max-width: 100%; background: radial-gradient(ellipse at center, rgba(11,11,13,0.8) 0%, rgba(11,11,13,0.4) 70%, transparent 100%); }
  .hero__content h1, .hero__content p, .hero__content a { text-shadow: 0 2px 16px rgba(11,11,13,0.9); }
  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
    max-width: 100%;
  }
  .hero__eyebrow { font-size: 0.65rem; margin-bottom: 1rem; }
  .hero__lede { font-size: 0.92rem; margin-top: 1.2rem; max-width: 100%; }
  .hero__actions { margin-top: 1.5rem; flex-direction: column; align-items: center; }
  .hero__meta { display: none; }

  .manifesto { padding: calc(var(--sect) * 0.8) 0; }
  .manifesto__lead { font-size: clamp(1.25rem, 4.5vw, 1.6rem); max-width: 100%; }

  .atelier__head { max-width: 100%; }
  .atelier__intro { font-size: 0.92rem; }

  .gallery { gap: 0.8rem; }
  .plate { flex: 0 0 100%; max-width: 460px; }

  .works__head { flex-direction: column; align-items: center; gap: 1rem; }
  .works__filters { gap: 0.4rem; }
  .filter { font-size: 0.72rem; padding: 0.35rem 0.75rem; }

  .index__row { grid-template-columns: 2.2rem 1fr; padding: 1.2rem 0; }
  .index__val { grid-column: 2; font-size: 0.85rem; }
  .index__row { text-align: left; }

  .proof__stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .proof__quotes { grid-template-columns: 1fr; gap: 1.5rem; }

  .contact__grid { grid-template-columns: 1fr; gap: clamp(1.5rem, 5vw, 2.5rem); }
  .contact__lede { max-width: 100%; }
  .contact__coords li { gap: 0.2rem; }
  .form { grid-template-columns: 1fr; gap: 0.9rem; }
  .form input, .form select, .form textarea { padding: 0.95rem 1rem; font-size: 1rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .footer__top { flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
  .footer__big { font-size: clamp(1.6rem, 8vw, 2.6rem); max-width: 100%; }
  .footer__brand { display: flex; flex-direction: column; align-items: center; }
  .footer__nav a, .footer__social a { margin-inline: auto; }

  .compare { aspect-ratio: 4/5; }

  .matiere__head { text-align: center; }
  .matiere__track { gap: 0.6rem; }
  .swatch { width: clamp(180px, 50vw, 260px); }
}

/* ===================== SMALL PHONES ===================== */
@media (max-width: 400px) {
  .hero__title { font-size: 2rem; }
  .hero__lede { font-size: 0.85rem; }
  .section-title { font-size: 1.8rem; }
  .compare { aspect-ratio: 3/4; }
  .chat__panel { width: calc(100vw - 1rem); height: 80vh; }
  .nav.is-open .nav__links { padding: 1.5rem var(--pad); gap: 1rem; }
  .nav.is-open .nav__links a { font-size: 1rem; }
  .form input, .form select, .form textarea { font-size: 1rem; padding: 0.85rem 0.8rem; }
  .contact__coords a { font-size: 0.92rem; word-break: break-word; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  html.js [data-words] .word > i,
  html.js [data-lines] .line > i { transform: none !important; }
  html.js [data-fade], html.js [data-lines], html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .grain { animation: none !important; }
  .hero.is-ambient .hero__lit, .hero.is-ambient .hero__bloom { animation: none !important; }
  * { scroll-behavior: auto !important; }
  .swatch img { transform: scale(1.05); }
}
