/* ============================================================
   ODÉA INGÉNIERIE — site vitrine
   Logo palette: ink / teal (#2a878f) / cyan (#44d9e6) on paper
   ============================================================ */

:root {
  --ink:        #0a0a0a;
  --ink-2:      #1a1a1a;
  --ink-mute:   #6a6a68;
  --paper:      #fafaf8;
  --paper-2:    #f1f0ec;
  --rule:       rgba(10,10,10,0.12);
  --rule-soft:  rgba(10,10,10,0.06);

  --teal:       #2a878f;
  --teal-deep:  #1e6b71;
  --cyan:       #44d9e6;

  --ff-display: "Inter", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ff-body:    "Inter", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --nav-h: 96px;
  --pad-x: clamp(20px, 3.5vw, 56px);
  --max-w: 1600px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

[data-theme="dark"] {
  --ink:        #f2f1ec;
  --ink-2:      #e6e5df;
  --ink-mute:   #b8b6b1;
  --paper:      #2e3133;
  --paper-2:    #3a3d3f;
  --rule:       rgba(242,241,236,0.14);
  --rule-soft:  rgba(242,241,236,0.07);
  --teal:       #5cc5b9;
  --teal-deep:  #2f9aa0;
  --cyan:       #6dd4ca;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

::selection { background: var(--teal); color: var(--paper); }

/* ---- Type scale ---- */
.display-1 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  
  
}
.display-2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  
}
.display-3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  max-width: 58ch;
  color: var(--ink-2);
  font-weight: 400;
}
.italic-serif {
  font-family: var(--ff-display);
  font-style: normal;
  font-weight: 300;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  padding-inline: var(--pad-x);
  margin-inline: auto;
}
section { position: relative; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding-inline: var(--pad-x);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav[data-scrolled="true"] { border-bottom-color: var(--rule); }
.nav__inner {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  line-height: 1;
}
.brand__logo {
  height: calc(var(--nav-h) - 20px);
  width: auto;
  display: block;
}
[data-theme="dark"] .brand__logo {
  filter: invert(1) hue-rotate(180deg);
}
.brand__sigle {
  width: 34px; height: 38px;
  flex: none;
  display: block;
}
.brand__wordmark {
  font-family: "Outfit", var(--ff-body);
  color: var(--ink);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 3px;
}
.brand__name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand__sub {
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 1px;
}
.brand__mark {
  width: 22px; height: 22px;
  display: inline-flex; flex-direction: column; gap: 2px;
  transform: translateY(1px);
}
.brand__mark span {
  display: block; height: 5px; border-radius: 1px;
  background: currentColor;
  transform-origin: left center;
}
.brand__mark span:nth-child(1) { width: 100%; background: var(--ink); }
.brand__mark span:nth-child(2) { width: 100%; background: var(--teal); }
.brand__mark span:nth-child(3) { width: 100%; background: var(--cyan); }

.nav__links {
  display: flex; gap: 36px; justify-content: center;
  font-size: 14px;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  color: var(--ink);
  opacity: .85;
  transition: opacity .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__links a[data-active="true"] {
  opacity: 1;
}
.nav__links a[data-active="true"]::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--teal);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent);
  animation: navDotPulse 2.2s ease-in-out infinite;
}
.nav__links a[data-active="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
  background: var(--teal);
  height: 1.5px;
}
@keyframes navDotPulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--teal) 0%, transparent); }
}

.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  transition: background .2s, color .2s;
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }
.nav__cta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 60%, transparent);
  animation: pulse 2.4s infinite var(--ease);
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 70%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in srgb, var(--teal) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 0%, transparent); }
}

.theme-toggle {
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  margin-left: 8px;
  transition: border-color .2s, transform .4s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(180deg); }
.theme-toggle svg { width: 14px; height: 14px; }

/* ============================================================
   SIDE CHROME (scroll counter)
   ============================================================ */
.chrome {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 40;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  display: flex; flex-direction: column; gap: 4px;
  pointer-events: none;
}
.chrome .count { color: var(--ink); font-size: 12px; }
.chrome .bar {
  width: 1px; height: 60px; background: var(--rule);
  position: relative; margin: 6px 0 0 4px;
}
.chrome .bar::after {
  content: ""; position: absolute; left: 0; top: 0;
  width: 1px; background: var(--teal);
  height: var(--progress, 0%);
  transition: height .1s linear;
}
.chrome--right {
  left: auto; right: 18px;
  align-items: flex-end;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ============================================================
   HERO SHOWCASE — vitrine défilante des références emblématiques
   ============================================================ */
.hero-showcase {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column;
  gap: 32px;
}
.hero-showcase__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 8px;
}
/* Full-bleed tagline variant overrides the grid */
.hero-showcase__top:has(.hero-showcase__meta--banner) {
  display: block;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero-showcase__top:has(.hero-showcase__meta--banner) .eyebrow { display: none; }
.hero-showcase__meta {
  display: flex; gap: 48px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-showcase__meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-showcase__meta b { color: var(--ink); font-weight: 500; letter-spacing: 0.04em; }

/* Tagline banner variant */
.hero-showcase__meta--banner {
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hero-showcase__tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  width: 100%;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.5;
  text-align: center;
}
.hero-showcase__tagline .sep {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--rule);
  transform: translateY(-2px);
}
.hero-showcase__tagline em {
  font-style: normal;
  color: inherit;
  font-weight: 500;
}

.hero-showcase__headline {
  display: grid;
  grid-template-columns: 1.7fr minmax(300px, 420px);
  align-items: stretch;
  gap: clamp(32px, 4vw, 72px);
}
.hero-showcase__headline h1 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  
  max-width: 14ch;
}
.hero-showcase__headline h1 em {
  font-style: normal;
  color: var(--teal);
  font-weight: 500;
}

/* Hero stats — compact card, stats as a rolling list to the right of the headline */
.hero-stats {
  align-self: stretch;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 26px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border: 1px solid var(--rule);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(10,10,10,0.02), 0 18px 40px -28px rgba(10,10,10,0.25);
}
.hero-stat {
  border-bottom: 1px solid var(--rule-soft);
}
.hero-stat__head {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr 16px;
  align-items: baseline;
  gap: 12px;
  padding-block: 10px;
}
.hero-stat__toggle {
  position: relative; width: 14px; height: 14px; align-self: center; flex: none;
}
.hero-stat__toggle::before, .hero-stat__toggle::after {
  content: ""; position: absolute; background: var(--teal-deep);
  transition: transform .3s var(--ease-out), opacity .3s;
}
.hero-stat__toggle::before { left: 0; top: 6px; width: 14px; height: 2px; }
.hero-stat__toggle::after { left: 6px; top: 0; width: 2px; height: 14px; }
.hero-stat[data-open="true"] .hero-stat__toggle::after { transform: scaleY(0); opacity: 0; }
.hero-stat__more {
  overflow: hidden; max-height: 0;
  transition: max-height .45s var(--ease-out);
}
.hero-stat[data-open="true"] .hero-stat__more { max-height: 240px; }
.hero-stat__more > p {
  margin: 0; padding: 0 0 14px 0;
  font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
}
.hero-stat:last-child { border-bottom: 0; }
.hero-stat[data-open="true"] .hero-stat__num { color: var(--teal-deep); }
.hero-stat__num {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(30px, 2.6vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 5.5ch;
}
.hero-stat__unit {
  font-family: var(--ff-display);
  font-size: 0.45em;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: 0;
}
.hero-stat__label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
  line-height: 1.3;
}
@media (max-width: 900px) {
  .hero-stats {
    justify-self: stretch;
    max-width: none;
    align-self: auto;
  }
}

/* Showcase rail */
.showcase {
  position: relative;
  width: 100%;
}
.showcase__rail {
  overflow: hidden;
  padding-inline: 0;
  cursor: grab;
}
.showcase__rail:active { cursor: grabbing; }
.showcase__track {
  display: flex;
  gap: 0;
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}
.showcase__card {
  flex: 0 0 100vw;
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
  position: relative;
  padding-inline: var(--pad-x);
  transition: opacity .9s ease, filter .9s ease;
  opacity: 0.35;
  filter: saturate(0.7);
}
.showcase__card[data-active="true"] {
  opacity: 1;
  filter: saturate(1);
}
.showcase__media {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.showcase__media .placeholder {
  transform: scale(1.08);
  transition: transform 6s ease-out;
}
.showcase__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 6s ease-out;
}
.showcase__card[data-active="true"] .showcase__media img {
  transform: scale(1);
}
.showcase__card[data-active="true"] .showcase__media .placeholder {
  transform: scale(1);
}
.showcase__media .placeholder {
  position: absolute; inset: 0;
  aspect-ratio: auto;
}
.showcase__info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding-top: 4px;
}
.showcase__code {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.showcase__title {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1;
}
.showcase__meta {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
}

/* Controls */
.showcase__controls {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
}
.showcase__progress {
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.showcase__progress-bar {
  position: absolute; left: 0; top: 0;
  height: 100%;
  width: 25%;
  background: var(--teal);
  transform-origin: left;
  transition: width .8s var(--ease-out);
}
.showcase__nav {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.showcase__btn {
  width: 36px; height: 36px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s, color .2s, border-color .2s;
}
.showcase__btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.showcase__counter { padding-inline: 8px; }
.showcase__counter .current { color: var(--ink); font-weight: 500; }

.hero-showcase__footer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 48px;
  padding-top: 8px;
}

/* ========================================================
   HERO — Showcase as backdrop mode
   cards sit behind the "Concevoir et piloter…" headline
   ======================================================== */
.hero-showcase { position: relative; }
.hero-showcase__top,
.hero-showcase__footer { position: relative; z-index: 3; }
.hero-showcase__headline {
  position: relative;
  z-index: 2;
  padding-block: clamp(40px, 6vw, 88px);
  min-height: clamp(420px, 52vw, 720px);
}
.hero-showcase .showcase {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-showcase .showcase__rail,
.hero-showcase .showcase__track { height: 100%; }
.hero-showcase .showcase__card {
  height: 100%;
  padding-block: 0;
  align-content: stretch;
  grid-template-rows: 1fr;
  opacity: 0.32;
  pointer-events: auto;
}
.hero-showcase .showcase__card[data-active="true"] { opacity: 1; }
.hero-showcase .showcase__media {
  aspect-ratio: auto;
  height: 100%;
}
/* Soft scrim so the headline stays readable on top of the media */
.hero-showcase .showcase::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 78%, transparent) 45%, color-mix(in srgb, var(--paper) 55%, transparent) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 85%, transparent) 0%, color-mix(in srgb, var(--paper) 45%, transparent) 60%, color-mix(in srgb, var(--paper) 20%, transparent) 100%);
  pointer-events: none;
  z-index: 2;
}
/* Force all backdrop cards to the light/teal tone — ink tone is too dark behind text */
.hero-showcase .placeholder[data-tone="ink"] {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--teal) 18%, transparent) 0,
      color-mix(in srgb, var(--teal) 18%, transparent) 1px,
      transparent 1px, transparent 9px),
    color-mix(in srgb, var(--teal) 8%, var(--paper));
  border-color: color-mix(in srgb, var(--teal) 30%, var(--rule));
}
.hero-showcase .placeholder[data-tone="ink"] .placeholder__badge,
.hero-showcase .placeholder[data-tone="ink"] .placeholder__caption { color: var(--ink-mute); mix-blend-mode: multiply; }
/* Project caption inside card: push to bottom-right so it doesn't clash with h1 */
.hero-showcase .showcase__caption {
  position: absolute;
  right: var(--pad-x);
  bottom: 24px;
  left: auto;
  max-width: 40ch;
  z-index: 3;
  text-align: right;
}
/* Hide the big centered placeholder label when card is backdrop */
.hero-showcase .placeholder__center { display: none; }

/* Stats sit on top of the scrim — make them pop */
.hero-showcase .hero-stats {
  position: relative;
  z-index: 3;
}
/* Move showcase controls into the footer row, right-aligned, on top of scrim */
.hero-showcase .showcase__controls {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 18px;
  padding-top: 0;
  z-index: 4;
}
.hero-showcase__kpi {
  display: flex; align-items: baseline; gap: 16px;
}
.hero-showcase__kpi .num {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.hero-showcase__kpi .label { color: var(--ink-mute); max-width: 22ch; }

@media (max-width: 960px) {
  .hero-showcase__top { grid-template-columns: 1fr; }
  .hero-showcase__meta { gap: 20px; flex-wrap: wrap; }
  .hero-showcase__headline { grid-template-columns: 1fr; }
  .hero-showcase__card { flex-basis: 85vw; }
  .hero-showcase__footer { grid-template-columns: 1fr; gap: 20px; }
}
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 80px;
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--rule);
}
.hero__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 40px;
}
.hero__meta {
  display: flex; gap: 48px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__meta div { display: flex; flex-direction: column; gap: 4px; }
.hero__meta b { color: var(--ink); font-weight: 500; letter-spacing: 0.04em; }

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: start;
}
.hero__title {
  grid-column: 1 / 9;
  position: relative;
}
.hero__title h1 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(56px, 9.6vw, 172px);
  line-height: 0.88;
  letter-spacing: -0.015em;
  
}
.hero__title h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--teal);
  
}
.hero__title h1 .arc {
  display: inline-block;
  position: relative;
}
.hero__title h1 .arc::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 0.5em;
  border: 1.5px solid var(--teal);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out) .4s, opacity .4s .4s;
}
.hero.is-in .hero__title h1 .arc::after { opacity: 1; transform: scaleX(1); }

.hero__tile {
  grid-column: 9 / 13;
  position: relative;
}
.hero__tile .placeholder { aspect-ratio: 3 / 4; }

.hero__bottom {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-top: 64px;
  align-items: end;
}
.hero__lede {
  grid-column: 1 / 6;
}
.hero__kpi {
  grid-column: 7 / 10;
  display: flex; flex-direction: column; gap: 8px;
}
.hero__kpi .num {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.hero__tile2 {
  grid-column: 10 / 13;
}
.hero__tile2 .placeholder { aspect-ratio: 4 / 3; }

.scroll-hint {
  margin-top: 56px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.scroll-hint .line {
  width: 48px; height: 1px; background: var(--ink);
  position: relative; overflow: hidden;
}
.scroll-hint .line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--teal);
  animation: slide 2.4s infinite var(--ease);
}
@keyframes slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   PLACEHOLDER (striped SVG)
   ============================================================ */
.placeholder {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--ink) 6%, transparent) 0,
      color-mix(in srgb, var(--ink) 6%, transparent) 1px,
      transparent 1px, transparent 9px
    ),
    var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  cursor: pointer;
}
.placeholder[data-tone="teal"] {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--teal) 18%, transparent) 0,
      color-mix(in srgb, var(--teal) 18%, transparent) 1px,
      transparent 1px, transparent 9px),
    color-mix(in srgb, var(--teal) 8%, var(--paper));
  border-color: color-mix(in srgb, var(--teal) 30%, var(--rule));
}
.placeholder[data-tone="ink"] {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--paper) 16%, transparent) 0,
      color-mix(in srgb, var(--paper) 16%, transparent) 1px,
      transparent 1px, transparent 9px),
    var(--ink);
  border-color: transparent;
}
.placeholder__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  mix-blend-mode: multiply;
}
.placeholder[data-tone="ink"] .placeholder__caption { color: var(--paper); mix-blend-mode: normal; }
.placeholder__caption b { font-weight: 500; letter-spacing: 0.04em; }
.placeholder__caption .meta { opacity: .6; }

.placeholder__badge {
  position: absolute;
  top: 14px; left: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.placeholder[data-tone="ink"] .placeholder__badge { color: var(--paper); }
.placeholder__badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
}

.placeholder__index {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--ink-mute);
}

.placeholder__center {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(20px, 2.6vw, 36px);
  color: var(--ink);
  letter-spacing: -0.015em;
  opacity: .85;
}
.placeholder[data-tone="ink"] .placeholder__center { color: var(--paper); }
.placeholder[data-tone="teal"] .placeholder__center { color: var(--teal-deep); }

/* ============================================================
   SECTION CHROME
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  padding-top: 120px;
  padding-bottom: 64px;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.section-head__num {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section-head__num b { color: var(--ink); font-weight: 400; font-size: 14px; }
.section-head h2 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(36px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.section-head h2 em {
  font-style: normal; color: var(--teal);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding-bottom: 120px;
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px 32px;
}
.about__text {
  grid-column: 2 / 8;
  display: flex; flex-direction: column; gap: 28px;
}
.about__text p {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  max-width: 54ch;
}
.about__text p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-style: normal;
  font-weight: 300;
  font-size: 4em;
  float: left;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--teal);
}

.about__values {
  grid-column: 9 / 13;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.value {
  border-bottom: 1px solid var(--rule);
}
.value__head {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 24px 1fr 20px;
  gap: 12px;
  align-items: start;
}
.value .n {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--ink-mute);
  padding-top: 6px;
  letter-spacing: 0.08em;
}
.value__head-text { min-width: 0; }
.value h4 {
  margin: 0 0 6px;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  transition: color .2s;
}
.value:hover h4, .value[data-open="true"] h4 { color: var(--teal-deep); }
.value p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.value__toggle {
  position: relative;
  width: 16px; height: 16px;
  margin-top: 8px;
  flex: none;
}
.value__toggle::before, .value__toggle::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .3s;
}
.value__toggle::before { left: 0; top: 7px; width: 16px; height: 2px; }
.value__toggle::after { left: 7px; top: 0; width: 2px; height: 16px; }
.value[data-open="true"] .value__toggle::after { transform: scaleY(0); opacity: 0; }
.value__more {
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s var(--ease-out);
}
.value[data-open="true"] .value__more { max-height: 360px; }
.value__more > p {
  margin: 0;
  padding: 0 0 22px 36px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}

.about__team {
  grid-column: 2 / 13;
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}
.team-quote {
  grid-column: 1 / 7;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.team-quote em { color: var(--teal); font-style: normal; }
.team-quote .sig {
  display: block;
  margin-top: 24px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.team-portrait {
  grid-column: 8 / 13;
}
.team-portrait .placeholder { aspect-ratio: 5 / 4; }

/* ============================================================
   SERVICES — accordion
   ============================================================ */
.services {
  padding-bottom: 120px;
}
.services__list {
  border-top: 1px solid var(--ink);
}
.service {
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.service__head {
  display: grid;
  grid-template-columns: 80px 1fr auto 48px;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: padding .6s var(--ease-out);
}
.service__num {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}
.service__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.015em;
  transition: color .3s, transform .6s var(--ease-out);
}
.service__tags {
  display: flex; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.service__tags span {
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.service__icon {
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .3s, color .3s, transform .5s var(--ease-out);
}
.service__icon svg { width: 12px; height: 12px; transition: transform .5s var(--ease-out); }

.service:hover .service__title { color: var(--teal); }
.service[data-open="true"] .service__title { color: var(--teal); }
.service[data-open="true"] .service__icon { background: var(--ink); color: var(--paper); }
.service[data-open="true"] .service__icon svg { transform: rotate(45deg); }

.service__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .7s var(--ease-out);
}
.service[data-open="true"] .service__body { max-height: 600px; }
.service__inner {
  display: grid;
  grid-template-columns: 80px 1fr 360px;
  gap: 36px;
  padding: 0 0 40px;
  align-items: stretch;
}
.service__inner .service__bullets { grid-column: 2; }
.service__preview { grid-column: 3; grid-row: 1 / span 3; }
.service__inner .col-label {
  grid-column: 1;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.service__desc {
  grid-column: 2;
  font-size: 17px;
  line-height: 1.55;
  max-width: 44ch;
  margin: 0;
}
.service__bullets {
  grid-column: 3;
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
}
.service__bullets li {
  display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start;
  color: var(--ink-2);
}
.service__bullets li::before {
  content: ""; display: block;
  width: 8px; height: 8px;
  margin-top: 6px;
  background: var(--teal);
}
.service__preview {
  grid-column: 4;
  width: 360px;
}
.service__preview .placeholder { aspect-ratio: 20 / 13; min-height: 240px; }

/* ============================================================
   REFERENCES — filter grid
   ============================================================ */
.refs {
  padding-bottom: 120px;
}
.refs__filters {
  display: flex;
  gap: 14px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.filter {
  flex: 1 1 0;
  justify-content: center;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: all .25s;
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[data-active="true"] {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.filter .count { opacity: .55; font-size: 10px; }

@media (max-width: 720px) {
  .refs__filters { flex-wrap: wrap; gap: 8px; }
  .filter { flex: 1 1 auto; padding: 12px 16px; }
}

.refs__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 300px;
  grid-auto-flow: dense;
  gap: 24px;
}
.project {
  position: relative;
  overflow: hidden;
}
.project .placeholder { height: 100%; width: 100%; aspect-ratio: auto; }

/* size variants create masonry rhythm */
.project[data-size="lg"]   { grid-column: span 8; grid-row: span 1; }
.project[data-size="md"]   { grid-column: span 4; grid-row: span 1; }
.project[data-size="sm"]   { grid-column: span 4; grid-row: span 1; }
.project[data-size="wide"] { grid-column: span 8; grid-row: span 1; }
.project[data-size="tall"] { grid-column: span 4; grid-row: span 1; }
@media (max-width: 720px) {
  .refs__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .project[data-size] { grid-column: span 2; grid-row: span 1; }
}

.project__info {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  pointer-events: none;
  color: var(--ink);
}
.project[data-tone="ink"] .project__info { color: var(--paper); }
.project__info h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.project__info .meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: .7;
  margin-top: 4px;
}
.project__info .arrow {
  width: 32px; height: 32px;
  border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .5s var(--ease-out), background .3s, color .3s;
}
.project:hover .project__info .arrow {
  transform: rotate(-45deg);
  background: var(--teal); color: var(--paper); border-color: var(--teal);
}

.project.is-hidden { display: none; }

/* ---------- Reference cards — accordion ---------- */
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.project__trigger {
  flex: 1 1 auto;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-align: left;
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
}
.project__trigger .placeholder {
  transition: transform .8s var(--ease-out);
}
.project__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.project:hover .project__media img { transform: scale(1.05); }
.project__info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,10,10,0.72) 100%);
  z-index: -1;
  pointer-events: none;
}
.project__info { color: #fafaf8; }
.pp-moa { display: inline-flex; align-items: center; gap: 7px; }
.pp-moa-ic { flex: none; color: var(--teal); }
.project:hover .project__trigger .placeholder {
  transform: scale(1.02);
}

/* Panel is hidden completely when closed */
.project__panel { display: none; }
.project[data-open="true"] .project__panel { display: block; }

/* When open, the project spans full row and lays out media + panel side-by-side */
.project[data-open="true"] {
  grid-column: 1 / -1 !important;
  grid-row: span 2 !important;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0;
  height: auto;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  overflow: hidden;
  animation: projectOpenFade .45s var(--ease-out);
}
@keyframes projectOpenFade {
  from { opacity: .4; }
  to   { opacity: 1; }
}
.project[data-open="true"] .project__trigger {
  min-height: 380px;
  height: 100%;
}
.project[data-open="true"] .project__trigger .placeholder {
  height: 100%;
}
.project__panel-inner {
  position: relative;
  padding: 44px clamp(28px, 3.5vw, 56px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.project__panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
.pp-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pp-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 400;
}
.pp-title {
  margin: 4px 0 8px;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--ink);
}
.pp-val { font-size: 15px; line-height: 1.5; color: var(--ink); }
.pp-desc {
  margin: 0;
  font-size: 27px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--ink) 80%, var(--paper));
  max-width: 40ch;
}
.pp-missions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.pp-missions span {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
}
.pp-mission-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.pp-mission-chips span {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  line-height: 1;
}
.project__close {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
  margin-top: auto;
}
.project__close:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.project__close svg { flex-shrink: 0; }

/* Arrow rotates when open */
.project[data-open="true"] .project__arrow {
  transform: rotate(-45deg);
  background: var(--teal);
  color: var(--paper);
  border-color: var(--teal);
}

@media (max-width: 960px) {
  .project[data-open="true"] { grid-template-columns: 1fr; }
  .project__panel-grid { grid-template-columns: 1fr; gap: 20px; }
  .project__panel-inner { padding: 32px 24px; }
}

.refs__more {
  margin-top: 48px;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.refs__more a {
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.refs__more a:hover { color: var(--teal); }

/* ============================================================
   CLIENTS — marquee
   ============================================================ */
.clients {
  padding: 80px 0 100px;
  border-top: 1px solid var(--rule);
  overflow: hidden;
}
.clients__head {
  padding-bottom: 48px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.clients__head h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.clients__head h3 em { color: var(--teal); font-style: normal; }

.marquee {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 60s linear infinite;
  padding-block: 24px;
  border-block: 1px solid var(--rule);
}
.marquee:hover { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; justify-content: center;
  flex: none;
  height: 90px;
  padding-inline: 48px;
}
.marquee__item img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.marquee__item--old { display: none; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 120px 0 80px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}
[data-theme="dark"] .contact {
  background: var(--paper-2);
  color: var(--ink);
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px 40px;
}
.contact h2 {
  grid-column: 1 / 8;
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.015em;
}
.contact h2 em { font-style: normal; color: var(--cyan); }

.contact__aside {
  grid-column: 9 / 13;
  display: flex; flex-direction: column; gap: 32px;
  padding-top: 12px;
}
.contact__aside .group { display: flex; flex-direction: column; gap: 6px; }
.contact__aside .group b {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.contact__aside .group span { font-size: 16px; line-height: 1.5; }
.contact__aside a { border-bottom: 1px solid currentColor; }
.contact__aside a:hover { color: var(--cyan); border-color: var(--cyan); }

.contact__form {
  grid-column: 1 / 8;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact__form .full { width: 100%; }
.field {
  display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  transition: border-color .3s;
}
.field:focus-within { border-color: var(--cyan); }


/* ============================================================
   Brief wizard — accordion à la Claude
   ============================================================ */
.brief__head {
  margin-bottom: 24px;
}
.brief__eyebrow {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.brief__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 10px 0 22px;
  color: var(--ink);
}
.brief__title em { font-style: italic; color: var(--teal); font-family: var(--ff-display); }

.brief__progress {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.brief__progress-bar {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--rule);
  overflow: visible;
}
.brief__progress-fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: var(--teal);
  height: 1px;
  transition: width .5s var(--ease-out);
}
.brief__progress-label b { color: var(--ink); font-weight: 500; }

/* Démarrer le brief — CTA shown when wizard is collapsed */
.brief__start {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 20px;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .3s var(--ease-out), background .25s;
}
.brief__start:hover { transform: translateY(-1px); background: var(--teal); border-color: var(--teal); }
.brief__start .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); flex: none;
}
.brief__start svg { transition: transform .3s var(--ease-out); }
.brief__start:hover svg { transform: translateX(2px); }

/* Closed state — hide steps + submit, show start CTA */
.contact__form[data-brief-open="false"] .step,
.contact__form[data-brief-open="false"] .submit,
.contact__form[data-brief-open="false"] .brief__submit-wrap,
.contact__form[data-brief-open="false"] .brief__progress {
  display: none;
}
.contact__form[data-brief-open="true"] .brief__start {
  display: none;
}

/* Step card */
.step {
  position: relative;
  border-top: 1px solid var(--rule);
  overflow: hidden;
}
.step:last-of-type { border-bottom: 1px solid var(--rule); }

/* Locked (not yet reached) OR closed after answering — completely hidden */
.step[data-locked="true"],
.step[data-open="false"] {
  max-height: 0;
  border-top-color: transparent;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: none;
}
.step[data-open="true"]:not([data-locked="true"]) {
  max-height: 1200px;
  opacity: 1;
  transform: none;
  transition:
    max-height .55s var(--ease-out),
    opacity .5s var(--ease-out) .05s,
    transform .5s var(--ease-out) .05s,
    border-color .3s;
}
.step[data-done="true"] .step__num::after {
  content: "✓";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--paper);
  font-family: var(--ff-mono); font-size: 11px;
  border-radius: 50%;
  width: 22px; height: 22px;
  top: 50%; left: -4px; transform: translateY(-50%);
}
.step__head {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  gap: 16px;
  width: 100%;
  padding: 22px 0;
  cursor: pointer;
  text-align: left;
  align-items: center;
  color: var(--ink);
  transition: color .2s;
}
.step__head:hover { color: var(--ink); }
.step__num {
  position: relative;
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.15em;
  color: var(--ink-mute);
  font-weight: 400;
}
.step[data-open="true"] .step__num { color: var(--teal); }
.step__meta {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.step__q {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.step__a {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.step[data-done="true"] .step__a { color: var(--ink-2); }
.step__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  color: var(--ink-mute);
  transition: transform .4s var(--ease-out), color .2s;
}
.step[data-open="true"] .step__toggle { transform: rotate(180deg); color: var(--ink); }

.step__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.step[data-open="true"] .step__body { grid-template-rows: 1fr; }
.step__body > * { overflow: hidden; min-height: 0; }
.step__inner {
  padding: 4px 0 28px 60px;
  display: flex; flex-direction: column; gap: 20px;
}
.step__hint {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.step__actions {
  display: flex; align-items: center; gap: 16px;
  margin-top: 4px;
}
.step__next {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 20px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}
.step__next:hover { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.step__next[disabled] { opacity: .35; cursor: not-allowed; }

/* Option radios */
.opts {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.opt {
  display: inline-flex; align-items: center;
  position: relative; cursor: pointer;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 18px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
  user-select: none;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
.opt:has(input:checked) {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* Chip multi-select */
.chips { border: 0; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  display: inline-flex; align-items: center; position: relative;
  cursor: pointer;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 14px; letter-spacing: 0.01em;
  padding: 12px 18px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
  user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
.chip:has(input:checked) {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.step__actions { display: flex; gap: 12px; align-items: center; }
.step__prev {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 11px 18px;
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.step__prev:hover { border-color: var(--ink); color: var(--ink); }

/* Autocomplete (city / postal code) */
.autocomplete { position: relative; }
.field__hint {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.85em;
  color: var(--ink-mute);
  text-transform: none;
  letter-spacing: 0;
}
.autocomplete__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  max-height: 260px;
  overflow-y: auto;
}
.autocomplete__list[hidden] { display: none; }
.autocomplete__list li {
  padding: 10px 14px;
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.autocomplete__list li:hover,
.autocomplete__list li[data-focus="true"] {
  background: rgba(0, 0, 0, 0.04);
}
.autocomplete__list li .ac-city { font-weight: 500; }
.autocomplete__list li .ac-meta {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* Row of 2 fields inside a step */
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 720px) {
  .row2 { grid-template-columns: 1fr; gap: 18px; }
  .step__inner { padding-left: 0; }
}

/* Date inputs */
.field input[type="date"] { color-scheme: light dark; color: var(--ink); }

/* Submit */
.brief__submit[disabled] {
  opacity: .35; cursor: not-allowed;
}
.brief__submit[disabled]:hover { background: var(--ink); color: var(--paper); }

.field label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field textarea, .field select {
  background: transparent; border: 0; outline: 0;
  color: var(--ink);
  font: inherit; font-size: 18px;
  padding: 4px 0;
  font-family: var(--ff-body);
  resize: vertical;
}
.field textarea { min-height: 80px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }

.contact__map {
  grid-column: 9 / 13;
  margin-top: 64px;
  height: 360px;
  position: relative;
  border: 1px solid var(--rule);
  overflow: hidden;
  border-radius: 4px;
}
.odea-map { position: absolute; inset: 0; z-index: 1; background: var(--paper-2); }
.leaflet-container { font-family: var(--ff-body); background: var(--paper-2); }
[data-theme="dark"] .leaflet-tile { filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9); }
.odea-pin {
  width: 30px; height: 30px; position: relative;
}
.odea-pin span {
  position: absolute; inset: 0; border-radius: 50% 50% 50% 0;
  background: var(--teal); transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  border: 2px solid var(--paper);
}
.odea-pin::after {
  content: ""; position: absolute; left: 50%; top: 44%;
  width: 9px; height: 9px; border-radius: 50%; background: var(--paper);
  transform: translate(-50%,-50%); z-index: 2;
}
.map__transit {
  position: absolute; z-index: 2;
  left: 14px; bottom: 14px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px 14px;
  max-width: 240px;
}
.map__transit-title {
  font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 8px;
}
.map__transit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.map__transit-list li {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--ink); line-height: 1.2;
}
.tp {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 20px; padding: 0 6px;
  border-radius: 4px; font-family: var(--ff-mono); font-weight: 600;
  font-size: 10px; letter-spacing: 0.02em; color: #fff;
}
.tp--m9 { background: #d5c900; color: #1a1a1a; border-radius: 50%; width: 22px; min-width: 22px; }
.tp--t3b { background: #0064b0; border-radius: 999px; }
.tp--bus { background: var(--ink); border-radius: 3px; }
.map__itineraire {
  display: inline-block; margin-top: 11px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-deep); font-weight: 500;
}
.map__itineraire:hover { text-decoration: underline; }

.submit {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px;
}
.submit button {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  background: var(--cyan);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform .3s var(--ease-out);
}
.submit button:hover { transform: translateX(4px); }
.submit button .arrow {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--cyan);
  display: grid; place-items: center;
}
.submit .consent {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  max-width: 28ch;
  text-align: right;
}

/* Recap — shown after step 6 */
.recap {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition:
    max-height .6s var(--ease-out),
    opacity .5s var(--ease-out) .1s,
    border-color .3s;
}
.recap[data-recap-visible="true"] {
  max-height: 2000px;
  opacity: 1;
  border-top-color: var(--rule);
  padding-top: 32px;
  margin-top: 8px;
}
.contact__form[data-brief-open="false"] .recap { display: none; }
.recap__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.recap__head .step__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--teal);
  font-weight: 500;
  padding-top: 4px;
}
.recap__head .step__q {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: block;
}
.recap__head .step__a {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}
.recap__list {
  display: flex;
  flex-direction: column;
}
.recap__row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.recap__row:last-child { border-bottom: none; }
.recap__num {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.recap__qa { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.recap__q {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.recap__a {
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recap__edit {
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.recap__edit:hover { border-color: var(--teal); color: var(--teal); }

.recap .submit { padding-top: 32px; margin-top: 8px; border-top: 1px solid var(--rule); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 0 40px;
  --ink: #f2f1ec;
  --ink-mute: rgba(242,241,236,.45);
  --rule: rgba(242,241,236,.12);
  --paper: #0a0a0a;
}
[data-theme="dark"] .footer { background: #242728; color: var(--ink); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.footer__mega {
  grid-column: 1 / -1;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(80px, 16vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  padding-block: 40px 24px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
  overflow: hidden;
  
}
.footer__mega em { font-style: normal; color: var(--cyan); font-weight: 500; }

.footer__clients {
  grid-column: 1 / -1;
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--rule);
}
.footer__clients-label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.footer__clients-row {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 32px;
  align-items: center;
}
.foot-logo {
  display: block;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity .3s var(--ease-out);
}
.foot-logo:hover { opacity: 1; }
.foot-logo svg { width: 100%; height: auto; display: block; max-height: 48px; }
@media (max-width: 960px) {
  .footer__clients-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.footer__cols {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 40px;
}
.footer__col h5 {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer__col a { border-bottom: 1px solid transparent; }
.footer__col a:hover { border-color: currentColor; color: var(--cyan); }

.footer__bottom {
  grid-column: 1 / -1;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fafaf8;
  border-radius: 50%;
  transition: width .25s var(--ease-out), height .25s var(--ease-out);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid #fafaf8;
  border-radius: 50%;
  transition: width .3s var(--ease-out), height .3s var(--ease-out), border-color .3s;
}
body.cursor-hover .cursor-ring { width: 56px; height: 56px; }
body.cursor-hover .cursor-dot { width: 0; height: 0; }
body.cursor-text .cursor-ring { width: 2px; height: 24px; border-radius: 1px; }
body.cursor-text .cursor-dot { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"].is-in { transition-delay: .08s; }
.reveal[data-delay="2"].is-in { transition-delay: .16s; }
.reveal[data-delay="3"].is-in { transition-delay: .24s; }
.reveal[data-delay="4"].is-in { transition-delay: .32s; }
.reveal[data-delay="5"].is-in { transition-delay: .40s; }

.reveal-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.reveal-mask > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
.reveal-mask.is-in > span { transform: translateY(0); }
.reveal-mask[data-delay="1"] > span { transition-delay: .1s; }
.reveal-mask[data-delay="2"] > span { transition-delay: .2s; }
.reveal-mask[data-delay="3"] > span { transition-delay: .3s; }
.reveal-mask[data-delay="4"] > span { transition-delay: .4s; }

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 14px;
  min-width: 220px;
  font-family: var(--ff-mono);
  font-size: 11px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.tweaks-panel[data-on="true"] { display: flex; }
.tweaks-panel h6 {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.tweaks-panel .row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.tweaks-panel .switch {
  width: 36px; height: 20px;
  border-radius: 999px;
  background: var(--rule);
  position: relative;
  cursor: pointer;
  transition: background .3s;
}
.tweaks-panel .switch::after {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper);
  transition: transform .3s var(--ease-out);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.tweaks-panel .switch[data-on="true"] { background: var(--teal); }
.tweaks-panel .switch[data-on="true"]::after { transform: translateX(16px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__title, .hero__tile, .hero__bottom, .hero__lede, .hero__kpi, .hero__tile2 { grid-column: 1 / -1; }
  .hero__top { grid-template-columns: 1fr; }
  .hero__meta { gap: 20px; flex-wrap: wrap; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .about__text, .about__values, .about__team, .team-quote, .team-portrait { grid-column: 1 / -1; }
  .service__head { grid-template-columns: 40px 1fr 40px; }
  .service__tags { display: none; }
  .service__inner { grid-template-columns: 1fr; }
  .service__preview { display: none; }
  .refs__grid { grid-auto-rows: minmax(220px, auto); }
  .project[data-size="lg"], .project[data-size="md"], .project[data-size="wide"], .project[data-size="tall"], .project[data-size="sm"] {
    grid-column: 1 / -1;
  }
  .contact h2, .contact__aside, .contact__form, .contact__map { grid-column: 1 / -1; }
  .contact__form { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* Service preview vignettes */
.placeholder .svc-vis { position:absolute; inset:0; width:100%; height:100%; color: var(--teal-deep); opacity:1; }
[data-tone="teal"] .svc-vis { color: var(--teal-deep); }
[data-tone="ink"] .svc-vis { color: var(--paper); }


/* ============================================================
   Reference panel — canonical structure + 3 layout variants
   Switch via #refs[data-reflayout="a|b|c"]
   ============================================================ */
.project__panel-inner {
  position: relative;
  padding: clamp(28px, 3vw, 52px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pp-head { display: flex; flex-direction: column; gap: 10px; }
.pp-title {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}
.pp-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 46ch;
}
.pp-specs { margin: 0; display: grid; gap: 0; }
.pp-spec { display: grid; }
.pp-spec dt {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pp-spec dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
}
.pp-moa { display: inline-flex; align-items: center; gap: 8px; }
.pp-moa-ic { flex: none; color: var(--teal); }
.pp-missions { display: flex; flex-wrap: wrap; gap: 7px; }
.pp-missions span {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.project__close {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 9px 15px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
  margin-top: auto;
}
.project__close:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* ---- Variant A · Éditorial (default): airy single column, specs as inline row ---- */
#refs[data-reflayout="a"] .pp-specs {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 0 40px;
  padding: 18px 0;
  border-block: 1px solid var(--rule);
}
#refs[data-reflayout="a"] .pp-spec { gap: 5px; }

/* ---- Variant B · Fiche technique: definition list with hairline rows ---- */
#refs[data-reflayout="b"] .pp-specs {
  border-top: 1px solid var(--rule);
}
#refs[data-reflayout="b"] .pp-spec {
  grid-template-columns: 0.9fr 1.4fr;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-soft);
}
#refs[data-reflayout="b"] .pp-spec dt { padding-top: 2px; }
#refs[data-reflayout="b"] .pp-title { font-weight: 400; }

/* ---- Variant C · Signature: teal index, stacked specs, accent title ---- */
#refs[data-reflayout="c"] .project__panel-inner { gap: 26px; }
#refs[data-reflayout="c"] .pp-title {
  font-weight: 600;
  font-size: clamp(30px, 3vw, 46px);
}
#refs[data-reflayout="c"] .pp-specs {
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
#refs[data-reflayout="c"] .pp-spec {
  gap: 6px;
  padding-left: 14px;
  border-left: 2px solid var(--teal);
}
#refs[data-reflayout="c"] .pp-spec dd { font-weight: 500; }
#refs[data-reflayout="c"] .pp-missions span {
  border-color: color-mix(in srgb, var(--teal) 35%, var(--rule));
  color: var(--teal-deep);
}

/* Layout switcher control */
.refs__layouts {
  display: inline-flex; gap: 4px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.refs__layouts button {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--ink-mute);
  transition: background .2s, color .2s;
}
.refs__layouts button[data-active="true"] { background: var(--ink); color: var(--paper); }

/* MOA logo badge on reference cards */
.project__logo {
  position: absolute; z-index: 3; top: 12px; left: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; min-width: 38px; padding: 6px 10px;
  background: rgba(255,255,255,.92);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.project__logo img { height: 100%; width: auto; max-width: 110px; object-fit: contain; display: block; }

/* Clickable client logos (mix-blend removes white backgrounds over light bg) */
.marquee__item { background: none; border: 0; cursor: pointer; }
.marquee__item img { mix-blend-mode: multiply; }
[data-theme="dark"] .marquee__item img { mix-blend-mode: normal; }

/* MOA filter chip */
.refs__moa[hidden] { display: none; }
.refs__moa {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 6%, transparent);
  font-family: var(--ff-mono); font-size: 12px;
}
.refs__moa-label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.refs__moa-name { font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.refs__moa-count { color: var(--teal-deep); }
.refs__moa[data-empty="true"] .refs__moa-count::after { content: " — bientôt en ligne"; color: var(--ink-mute); }
.refs__moa-clear { margin-left: auto; color: var(--ink-mute); cursor: pointer; letter-spacing: 0.06em; }
.refs__moa-clear:hover { color: var(--ink); }

/* Métier illustrations (raster) */
.placeholder .svc-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; transition: transform .6s var(--ease-out); }
.service__preview .placeholder:hover .svc-photo { transform: scale(1.04); }
.service__preview .placeholder { overflow:hidden; }

/* uppercase ref titles */
.project__info h3 { text-transform: uppercase; }
.pp-title { text-transform: uppercase; }


/* ============================================================
   MOBILE — passe responsive consolidée (≤ 760px)
   ============================================================ */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; max-width: 100%; }

  /* FIX-OPEN-CARD-MOBILE : carte ouverte = image puis panneau, pleine hauteur, rien coupé */
  .project[data-open="true"] {
    display: flex !important;
    flex-direction: column !important;
    grid-row: auto !important;
    grid-column: 1 / -1 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .project[data-open="true"] .project__trigger {
    position: relative !important;
    height: 200px !important;
    flex: 0 0 200px !important;
    width: 100% !important;
  }
  .project[data-open="true"] .project__media { position: absolute !important; inset: 0 !important; }
  .project[data-open="true"] .project__media img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
  .project[data-open="true"] .project__logo { z-index: 5 !important; }
  /* le bandeau nom+localisation chevauche le logo : masqué à l'ouverture */
  .project[data-open="true"] .project__info { display: none !important; }
  .project[data-open="true"] .project__panel { display: block !important; width: 100% !important; }
  .project[data-open="true"] .project__panel-inner {
    padding: 26px 16px 22px !important;
    height: auto !important;
    overflow: visible !important;
  }
  .project[data-open="true"] .pp-specs {
    display: flex !important; flex-direction: column !important; gap: 12px !important;
  }
  .project[data-open="true"] .pp-spec { display: block !important; }
  .project[data-open="true"] .pp-desc { font-size: 16px !important; line-height: 1.5 !important; max-width: 100% !important; }
  .project[data-open="true"] .pp-title { font-size: 22px !important; }


  /* Nav + logo compacts sur mobile */
  :root { --nav-h: 64px; }
  .brand__logo { height: 40px !important; }

  /* CTA header plus compact */
  .nav__cta {
    padding: 8px 13px;
    font-size: 11px;
    gap: 7px;
    letter-spacing: 0;
  }
  .nav__cta .dot { width: 6px; height: 6px; }

  /* Compteur latéral 01/06 + coordonnées : masqués (gênent la lecture) */
  .chrome, .chrome--right { display: none !important; }

  /* Vitrine en fond : figée et stable (plus de glissement gauche/droite) */
  .hero-showcase { overflow: hidden; }
  .hero-showcase .showcase__controls { display: none; }
  .hero-showcase .showcase__track { transform: none !important; }
  .hero-showcase .showcase__card { opacity: .14 !important; }
  .hero-showcase .showcase__card:first-child { opacity: .22 !important; }

  /* Titre contact bien plus petit */
  .contact h2 { font-size: clamp(28px, 7.5vw, 40px); line-height: 1.02; grid-column: 1 / -1; width: 100%; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; }

  /* FIX-MOBILE-PANEL : forcer empilement flex (image puis panneau) */
  .project[data-open="true"] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-row: auto !important;
    overflow: visible !important;
  }
  .project[data-open="true"] .project__trigger { order: 0; width: 100%; }
  .project[data-open="true"] .project__panel {
    order: 1;
    display: block !important;
    position: static !important;
    width: 100%;
  }
  .project[data-open="true"] .project__panel-inner {
    position: static !important;
    height: auto !important;
    padding: 20px 18px 24px !important;
    gap: 16px !important;
  }

  /* FIX-MOBILE-SPECS : forcer le contenu du panneau en colonne unique */
  #refs[data-reflayout] .project[data-open="true"] .pp-specs,
  .project[data-open="true"] .pp-specs {
    display: flex !important;
    flex-direction: column !important;
    grid-auto-flow: row !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 14px 0 !important;
  }
  .project[data-open="true"] .pp-spec {
    grid-template-columns: 1fr !important;
    display: block !important;
    border-left: 0 !important;
    padding-left: 0 !important;
  }
  .project[data-open="true"] .pp-head,
  .project[data-open="true"] .pp-desc,
  .project[data-open="true"] .pp-missions {
    width: 100% !important;
    max-width: 100% !important;
  }
  .project[data-open="true"] .pp-desc { font-size: 15px !important; }
  .project[data-open="true"] .pp-missions { display: flex !important; flex-wrap: wrap !important; }

  /* ---- Référence ouverte : empilée, image cadrée, texte visible ---- */
  .project[data-open="true"] {
    grid-template-columns: 1fr !important;
    grid-row: auto !important;
  }
  .project[data-open="true"] .project__trigger {
    min-height: 0;
    height: auto;
  }
  .project[data-open="true"] .project__trigger .placeholder,
  .project[data-open="true"] .project__media,
  .project[data-open="true"] .project__media > img {
    height: 220px !important;
    min-height: 220px;
    object-fit: cover;
  }
  /* Le logo MOA ne doit jamais être agrandi */
  .project__logo { width: 56px !important; height: 56px !important; top: 12px; left: 12px; }
  .project__logo img { width: 100% !important; height: 100% !important; min-height: 0 !important; object-fit: contain !important; }
  /* Overlay titre lisible (ne tombe pas sur l'image) */
  .project[data-open="true"] .project__info { position: static; padding: 14px 16px 0; color: var(--ink); }
  .project[data-open="true"] .project__info .arrow { display: none; }
  .project[data-open="true"] .project__panel-inner {
    height: auto;
    padding: 24px 20px 28px;
    gap: 18px;
  }
  .project__panel-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .pp-specs { grid-template-columns: 1fr !important; }
  .pp-title { font-size: clamp(22px, 6vw, 30px) !important; }
  .pp-desc { font-size: 15px !important; }
}

/* ============================================================
   REFS — MOBILE NETFLIX LAYOUT
   ============================================================ */
.refs__mobile { display: none; }

@media (max-width: 768px) {
  /* Masquer grille desktop, afficher layout mobile */
  .refs__filters, .refs__grid { display: none !important; }
  .refs__mobile { display: block; }

  /* Onglets typologie */
  .refs__tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-bottom: 32px;
  }
  .refs__tabs::-webkit-scrollbar { display: none; }

  .refs__tab {
    flex-shrink: 0;
    padding: 8px 18px;
    border: 1px solid var(--rule);
    border-radius: 100px;
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-mute);
    background: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
  }
  .refs__tab[data-active="true"] {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }

  /* Panels */
  .refs__panel { display: none; }
  .refs__panel[data-active="true"] { display: block; }

  /* Ligne MOA */
  .moa-row {
    border-top: 1px solid var(--rule);
    padding: 22px 0;
  }
  .moa-row:last-child { border-bottom: 1px solid var(--rule); }

  .moa-row__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    padding-inline: var(--pad-x);
  }
  .moa-row__name {
    font-family: var(--ff-display);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
  }
  .moa-row__count { display: none; }

  /* Bande de défilement horizontal */
  .moa-row__strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-inline: var(--pad-x);
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .moa-row__strip::-webkit-scrollbar { display: none; }

  /* Carte projet */
  .mref-card {
    flex-shrink: 0;
    width: 300px;
    cursor: default;
  }

  /* Logo client dans l'en-tête MOA */
  .moa-row__logo {
    display: block;
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    object-position: left center;
    filter: grayscale(1);
    opacity: .75;
  }

  /* Vignette */
  .mref-card__thumb {
    width: 300px;
    height: 225px;
    position: relative;
    border: 1px solid var(--rule);
    overflow: hidden;
    margin-bottom: 10px;
    background:
      repeating-linear-gradient(135deg,
        var(--rule-soft) 0px, var(--rule-soft) 1px,
        transparent 1px, transparent 10px);
    background-color: var(--paper-2);
  }
  .mref-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .mref-card__thumb--teal {
    background:
      repeating-linear-gradient(135deg,
        color-mix(in srgb, var(--teal) 14%, transparent) 0px,
        color-mix(in srgb, var(--teal) 14%, transparent) 1px,
        transparent 1px, transparent 10px);
    background-color: color-mix(in srgb, var(--teal) 9%, var(--paper));
    border-color: color-mix(in srgb, var(--teal) 28%, var(--rule));
  }
  .mref-card__thumb--ink {
    background:
      repeating-linear-gradient(135deg,
        rgba(255,255,255,.07) 0px,
        rgba(255,255,255,.07) 1px,
        transparent 1px, transparent 10px);
    background-color: var(--ink-2);
    border-color: transparent;
  }

  /* Point de couleur en haut à gauche */
  .mref-card__dot {
    position: absolute;
    top: 10px; left: 12px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--teal);
  }
  .mref-card__thumb--ink .mref-card__dot { background: var(--cyan); }

  /* Nom du projet centré dans la vignette */
  .mref-card__center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-family: var(--ff-display);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: var(--ink);
    line-height: 1.2;
    opacity: .7;
  }
  .mref-card__thumb--ink .mref-card__center { color: var(--paper); }
  .mref-card__thumb--teal .mref-card__center { color: var(--teal-deep); }

  /* Légende sous la vignette */
  .mref-card__name {
    display: block;
    font-family: var(--ff-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 3px;
    color: var(--ink);
  }
  .mref-card__meta {
    display: block;
    font-family: var(--ff-mono);
    font-size: 9px;
    letter-spacing: 0.05em;
    color: var(--ink-mute);
    line-height: 1.5;
  }
}
