/* ─────────────────────────────────────────────
   M.O.BOIS — base + variables + responsive grid
   ───────────────────────────────────────────── */

:root {
  /* Defaults injected by JS based on tweaks. */
  --bg: #f4ede1;
  --bg-soft: #ebe1cf;
  --surface: #fcf8f2;
  --surface-2: #f4ede1;
  --ink: #2a1f17;
  --ink-2: #5b4a3c;
  --muted: #8a7a68;
  --line: rgba(42, 31, 23, 0.14);
  --line-strong: rgba(42, 31, 23, 0.32);
  --primary: #8b5a2b;
  --primary-2: #6b3f1d;
  --primary-ink: #fcf8f2;
  --accent: #c8632b;

  --display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --italic: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --rad: 4px;
  --rad-lg: 14px;
  --container: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--primary); color: var(--primary-ink); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(15px, 0.4vw + 13.5px, 16.5px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
  transition: background 360ms ease, color 360ms ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }

/* tiny noise texture for warmth */
.noise {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
[data-tone="dark"] .noise { mix-blend-mode: screen; opacity: 0.3; }

/* ── Type ────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.5;
}
.italic-accent {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: -0.01em;
}

/* ── Direction A — editorial / atelier ──────── */
[data-direction="A"] {
  --display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --italic: 'Space Grotesk', system-ui, sans-serif;
}
[data-direction="A"] h1 { font-size: clamp(2.6rem, 6.8vw, 5.6rem); font-weight: 350; }
[data-direction="A"] h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 350; }
[data-direction="A"] h3 { font-size: clamp(1.25rem, 1.4vw + 0.8rem, 1.7rem); font-weight: 500; font-family: var(--body); letter-spacing: -0.01em; }
[data-direction="A"] .italic-accent { font-style: italic; font-weight: 350; }

/* ── Direction B — display condensed / blueprint ── */
[data-direction="B"] {
  --display: 'Space Grotesk', system-ui, sans-serif;
  --italic: 'Space Grotesk', system-ui, sans-serif;
}
[data-direction="B"] h1 {
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  font-weight: 600;
  font-stretch: 75%;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}
[data-direction="B"] h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 500;
  font-stretch: 80%;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
[data-direction="B"] h3 { font-size: clamp(1.15rem, 1.2vw + 0.85rem, 1.5rem); font-weight: 600; font-family: var(--body); letter-spacing: 0.02em; text-transform: uppercase; }
[data-direction="B"] .italic-accent {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-style: italic;
  font-weight: 300;
  font-stretch: normal;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn .arrow {
  width: 18px; height: 12px; flex-shrink: 0;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--primary); color: var(--primary-ink); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-direction="B"] .btn { border-radius: 2px; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.08em; padding: 16px 26px; }

/* ── Header ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink) center / cover no-repeat;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
[data-direction="B"] .brand-name { font-stretch: 80%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.brand-tag {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
[data-direction="B"] .site-nav a { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; border-radius: 2px; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.phone-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 0.94rem;
}
.phone-link svg { width: 14px; height: 14px; color: var(--primary); }

.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 980px) {
  .site-nav { display: none; }
  .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg);
  padding: 24px var(--pad-x) 32px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(.6,.05,.2,.95);
}
.mobile-drawer[data-open="true"] { transform: translateY(0); }
.mobile-drawer .top { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 0; margin-top: 24px; }
.mobile-drawer nav a {
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 400;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.02em;
}
[data-direction="B"] .mobile-drawer nav a { font-stretch: 80%; font-weight: 500; text-transform: uppercase; }
.mobile-drawer .foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(36px, 4vw, 56px);
  padding-bottom: clamp(40px, 6vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.hero-eyebrow { margin-bottom: 24px; }
.hero h1 { margin-bottom: 28px; }
.hero p.lead {
  max-width: 50ch;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.18rem);
  color: var(--ink-2);
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero image placeholder */
.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--rad-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
[data-direction="B"] .hero-media { border-radius: 2px; }
.hero-media .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in srgb, var(--ink) 4%, transparent) 18px 19px),
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface));
  color: var(--muted);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero-media > img,
.about-image > img,
.gal-item > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.gal-item > img { transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.gal-item:hover > img { transform: scale(1.04); }
[data-tone="dark"] .hero-media > img,
[data-tone="dark"] .about-image > img { filter: brightness(0.95) contrast(1.02); }
.atelier-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1vw, 16px);
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 720px) { .atelier-strip { grid-template-columns: 1fr; } }
.atelier-strip .item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--rad-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
[data-direction="B"] .atelier-strip .item { border-radius: 2px; }
.atelier-strip .item img { width: 100%; height: 100%; object-fit: cover; }
.atelier-strip .item .cap {
  position: absolute; left: 14px; bottom: 14px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
}
[data-direction="B"] .atelier-strip .item .cap { border-radius: 2px; }
.hero-media .badge {
  position: absolute;
  bottom: 16px; left: 16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 12px;
  display: flex; align-items: center; gap: 10px;
}
.hero-media .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent); }
[data-direction="B"] .hero-media .badge { border-radius: 2px; }

/* tag chip on hero */
.tag-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.tag-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
[data-direction="B"] .tag-chip { border-radius: 2px; }

/* stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 80px);
}
.stat {
  padding: 28px clamp(16px, 2vw, 28px);
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
[data-direction="B"] .stat .num { font-stretch: 75%; font-weight: 600; }
.stat .lbl { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ── Section spacing ─────────────────────────── */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 140px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 72px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { max-width: 22ch; }
.section-head p { max-width: 56ch; color: var(--ink-2); margin-top: 18px; font-size: clamp(1rem, 0.3vw + 0.95rem, 1.12rem); }

/* ── About ──────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-image {
  aspect-ratio: 4/5;
  border-radius: var(--rad-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
[data-direction="B"] .about-image { border-radius: 2px; }
.about-image .placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, color-mix(in srgb, var(--ink) 4%, transparent) 22px 23px),
    var(--surface);
  color: var(--muted); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
}
.about-text p { color: var(--ink-2); margin-bottom: 1em; font-size: clamp(1rem, 0.3vw + 0.95rem, 1.1rem); }
.about-text p strong { color: var(--ink); font-weight: 600; }

.values {
  margin-top: clamp(28px, 3vw, 44px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  overflow: hidden;
}
[data-direction="B"] .values { border-radius: 2px; }
.value {
  padding: 22px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
}
.value .v-title {
  font-weight: 600;
  font-size: 0.98rem;
  display: flex; align-items: center; gap: 10px;
}
.value .v-title svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.value .v-desc { font-size: 0.88rem; color: var(--muted); }
[data-direction="B"] .value .v-title { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.84rem; }

/* ── Services ────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  overflow: hidden;
}
[data-direction="B"] .services-grid { border-radius: 2px; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service {
  background: var(--surface);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  min-height: 260px;
  transition: background 0.25s;
}
.service:hover { background: var(--surface-2); }
.service .num {
  font-family: var(--display);
  font-size: 0.94rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
[data-direction="B"] .service .num { font-stretch: 80%; }
.service .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}
.service .icon svg { width: 22px; height: 22px; }
[data-direction="B"] .service .icon { border-radius: 2px; }
.service h3 { margin-top: auto; }
.service p { color: var(--ink-2); font-size: 0.94rem; line-height: 1.55; }
.service .arrow-cta {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.86rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.service .arrow-cta svg { width: 14px; height: 10px; transition: transform 0.2s; }
.service:hover .arrow-cta svg { transform: translateX(4px); }

/* ── Method ──────────────────────────────────── */
.method-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2vw, 32px);
  position: relative;
}
@media (max-width: 880px) { .method-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .method-list { grid-template-columns: 1fr; } }
.method-step {
  position: relative;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}
.method-step .step-num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}
[data-direction="B"] .method-step .step-num { font-stretch: 75%; font-weight: 600; }
.method-step h3 { font-size: clamp(1.05rem, 1vw + 0.75rem, 1.3rem); margin-bottom: 10px; }
.method-step p { color: var(--ink-2); font-size: 0.92rem; }

/* ── Gallery ─────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: clamp(10px, 1vw, 16px);
}
.gal-item {
  position: relative;
  border-radius: var(--rad-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
[data-direction="B"] .gal-item { border-radius: 2px; }
.gal-item:hover { transform: translateY(-3px); }
.gal-item .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: end; padding: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, var(--surface)) 0%, color-mix(in srgb, var(--accent) 8%, var(--surface)) 100%),
    repeating-linear-gradient(45deg, transparent 0 20px, color-mix(in srgb, var(--ink) 4%, transparent) 20px 21px);
  background-blend-mode: multiply;
}
.gal-item .meta {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid var(--line);
}
[data-direction="B"] .gal-item .meta { border-radius: 2px; }
.gal-item .meta .cat { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.gal-item .meta .name { font-weight: 500; font-size: 0.95rem; }

.gal-1 { grid-column: span 7; grid-row: span 3; }
.gal-2 { grid-column: span 5; grid-row: span 2; }
.gal-3 { grid-column: span 5; grid-row: span 2; }
.gal-4 { grid-column: span 7; grid-row: span 2; }

@media (max-width: 880px) {
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 110px; }
  .gal-1 { grid-column: span 6; grid-row: span 2; }
  .gal-2 { grid-column: span 3; grid-row: span 2; }
  .gal-3 { grid-column: span 3; grid-row: span 2; }
  .gal-4 { grid-column: span 6; grid-row: span 2; }
}

.gal-cta { margin-top: 28px; display: flex; justify-content: center; }

/* ── Testimonials ────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  padding: clamp(28px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  display: flex; flex-direction: column; gap: 18px;
}
[data-direction="B"] .testimonial { border-radius: 2px; }
.testimonial .quote-mark {
  font-family: var(--italic);
  font-style: italic;
  font-size: 4rem;
  line-height: 0.4;
  color: var(--primary);
  height: 28px;
}
.testimonial .stars {
  display: flex; gap: 2px; color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.testimonial .body {
  flex: 1;
  font-family: var(--italic);
  font-style: italic;
  font-size: clamp(1.02rem, 0.4vw + 0.92rem, 1.15rem);
  line-height: 1.5;
  color: var(--ink);
}
[data-direction="B"] .testimonial .body { font-weight: 300; }
.testimonial .author { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.testimonial .author .name { font-weight: 600; font-size: 0.96rem; }
.testimonial .author .place { font-size: 0.85rem; color: var(--muted); }

/* ── CTA Phone ───────────────────────────────── */
.cta-banner {
  margin: clamp(40px, 6vw, 80px) 0;
  position: relative;
  border-radius: var(--rad-lg);
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
}
[data-direction="B"] .cta-banner { border-radius: 2px; background: var(--primary); color: var(--primary-ink); }
.cta-banner .inner {
  padding: clamp(40px, 6vw, 80px) clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 32px;
  position: relative;
}
@media (max-width: 800px) { .cta-banner .inner { grid-template-columns: 1fr; } }
.cta-banner h2 { color: inherit; }
.cta-banner p { color: color-mix(in srgb, currentColor 75%, transparent); margin-top: 18px; max-width: 50ch; }
.cta-banner .phone-cta {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.cta-banner .phone-cta .label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }
.cta-banner .phone-cta .num {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
[data-direction="B"] .cta-banner .phone-cta .num { font-stretch: 75%; font-weight: 600; }
.cta-banner .deco {
  position: absolute; right: -40px; top: -40px; bottom: -40px;
  width: 50%;
  background: repeating-linear-gradient(45deg, transparent 0 30px, color-mix(in srgb, currentColor 8%, transparent) 30px 31px);
  pointer-events: none;
  opacity: 0.7;
}
@media (max-width: 800px) { .cta-banner .deco { display: none; } }

/* ── Contact ─────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-block { display: flex; flex-direction: column; gap: 4px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.info-block:last-of-type { border-bottom: 0; }
.info-block .lbl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.info-block .val { font-size: 1.05rem; font-weight: 500; }
.info-block .val.big { font-family: var(--display); font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 400; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
[data-direction="B"] .info-block .val.big { font-stretch: 80%; font-weight: 600; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: clamp(28px, 3vw, 44px);
}
[data-direction="B"] .contact-form { border-radius: 2px; }
.contact-form h3 { margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
[data-direction="B"] .field input,
[data-direction="B"] .field select,
[data-direction="B"] .field textarea { border-radius: 2px; background: color-mix(in srgb, var(--bg) 92%, var(--surface)); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
}
.field textarea { min-height: 130px; resize: vertical; font-family: var(--body); }
.form-grid .submit-row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.form-grid .submit-row .note { font-size: 12px; color: var(--muted); }

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--bg) 75%, transparent);
  padding: clamp(56px, 7vw, 96px) 0 28px;
}
[data-direction="B"] .site-footer { background: color-mix(in srgb, var(--bg) 50%, var(--ink)); border-top: 1px solid color-mix(in srgb, var(--ink-2) 40%, transparent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 56px);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 90%, transparent); margin-bottom: 16px; font-family: var(--body); font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.94rem; color: color-mix(in srgb, var(--bg) 70%, transparent); transition: color 0.2s; }
.footer-col a:hover { color: var(--bg); }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-brand .brand-mark { background-color: var(--bg); border-color: rgba(255,255,255,0.08); }
.footer-brand p { font-size: 0.94rem; line-height: 1.55; }
.footer-bottom {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.84rem;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
}

/* ── Direction B specific blueprint accent ───── */
[data-direction="B"] body {
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink-2) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink-2) 4%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
  background-attachment: fixed;
}

/* tiny helpers */
.split-line { height: 1px; background: var(--line); margin: 0; border: 0; }
.muted { color: var(--muted); }

/* keyboard focus */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }


/* ========================================================================
   Book des réalisations — cards + modal + masonry + lightbox
   ======================================================================== */
.book-section {
  background: var(--bg-soft);
  padding-top: 0;
}
.book-intro {
  margin-top: 16px;
  color: var(--ink-2);
  max-width: 620px;
}

.chantier-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .chantier-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .chantier-cards { grid-template-columns: 1fr; } }

.chantier-card {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.chantier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  border-color: var(--line-strong);
}
.chantier-card:hover .chantier-cover img { transform: scale(1.04); }
.chantier-cover {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-soft);
}
.chantier-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.chantier-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chantier-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chantier-card-title {
  margin: 4px 0 12px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.chantier-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Chantier modal (overlay plein écran) */
.chantier-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 900;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.chantier-modal-inner {
  background: var(--bg);
  border-radius: 14px;
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 28px 32px 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.chantier-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.chantier-modal-header h3 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.chantier-modal-header span {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.modal-close {
  appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--line); }

/* Masonry (utilisé dans le modal) */
.masonry {
  column-count: 4;
  column-gap: 12px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 12px;
  cursor: zoom-in;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .25s;
}
.masonry-item:hover img { transform: scale(1.03); }

@media (max-width: 1100px) { .masonry { column-count: 3; } }
@media (max-width: 720px)  { .masonry { column-count: 2; } }
@media (max-width: 480px)  { .masonry { column-count: 1; } }
@media (max-width: 600px) {
  .chantier-modal { padding: 0; }
  .chantier-modal-inner { border-radius: 0; padding: 20px; }
}

/* Lightbox plein écran (depuis modal) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .96);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
  box-shadow: 0 0 40px rgba(0,0,0,.5);
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, sans-serif;
  transition: background .15s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 24px; right: 24px; font-size: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); padding-bottom: 4px; }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); padding-bottom: 4px; }
.lb-caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  background: rgba(0,0,0,.5);
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
@media (max-width: 600px) {
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-close { top: 12px; right: 12px; }
}

/* ========================================================================
   Hero refondu — photo dominante plein écran, text overlay
   ======================================================================== */
.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  padding: 0 0 clamp(40px, 5vw, 64px) 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Gradient overlay pour lisibilité du texte */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 92%, transparent) 22%,
    color-mix(in srgb, var(--bg) 65%, transparent) 42%,
    color-mix(in srgb, var(--bg) 25%, transparent) 60%,
    transparent 80%
  );
}
.hero-container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(40px, 5vw, 80px);
}
.hero-content {
  max-width: 580px;
  width: 100%;
}
.hero-badge {
  position: absolute;
  bottom: 24px;
  right: clamp(16px, 4vw, 48px);
  z-index: 2;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent);
}
[data-direction="B"] .hero-badge { border-radius: 2px; }

/* Mobile : photo en haut, text dessous, gradient bas->haut */
@media (max-width: 880px) {
  .hero { min-height: 100vh; }
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      transparent 0%,
      color-mix(in srgb, var(--bg) 30%, transparent) 35%,
      color-mix(in srgb, var(--bg) 80%, transparent) 55%,
      var(--bg) 70%
    );
  }
  .hero-container {
    align-items: flex-end;
    min-height: 100vh;
    padding-top: 50vh;
  }
  .hero-content { max-width: 100%; }
  .hero-badge {
    top: 80px;
    bottom: auto;
    right: 16px;
  }
}

/* Stats sous le hero, pas dans le hero photo */
.hero .stats {
  margin-top: clamp(24px, 3vw, 40px);
}

/* ========================================================================
   Mobile fixes : phone icon-only + hero compact + photo position
   ======================================================================== */

/* Mobile: phone link devient bouton icone uniquement */
@media (max-width: 980px) {
  .phone-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    justify-content: center;
    gap: 0;
    padding: 0;
  }
  .phone-link svg { width: 18px; height: 18px; }
  .phone-num { display: none; }
}

/* Mobile: hero plus compact, photo "remontee" (focal point top-center) */
@media (max-width: 880px) {
  .hero {
    min-height: 78svh;
    min-height: 78vh; /* fallback */
  }
  .hero-bg img {
    object-position: center 25%;
  }
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      transparent 0%,
      color-mix(in srgb, var(--bg) 20%, transparent) 30%,
      color-mix(in srgb, var(--bg) 70%, transparent) 48%,
      var(--bg) 62%
    );
  }
  .hero-container {
    align-items: flex-end;
    min-height: 78svh;
    min-height: 78vh;
    padding-top: 38vh;
    padding-bottom: 16px;
  }
  .hero-content { max-width: 100%; }
  .hero h1 { margin-bottom: 16px; }
  .hero p.lead { margin-bottom: 20px; }
}

/* Stats: grille 2x2 en mobile au lieu de 4 colonnes ecrasees */
@media (max-width: 720px) {
  .hero .stats {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top: 16px;
    gap: 12px 16px;
  }
}
