/* ═══════════════════════════════════════════════════════════════════════
   MACHINA EX — single-page site
   Editorial-technical aesthetic: midnight ink + warm cream paper
   Fraunces (display serif) × Geist (body) × Geist Mono (data)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #0B0F14;
  --ink-2: #131922;
  --ink-3: #1E2633;
  --paper: #F4EEE0;
  --paper-2: #EBE3D0;
  --paper-dim: #D9CFB8;
  --saffron: #E5A347;
  --saffron-2: #F2B96B;
  --azur: #3F6BD9;
  --azur-2: #5A85EC;
  --cinnabar: #D2513E;
  --muted: #A29D8B; /* lightened for WCAG AA on small mono labels */
  --line: rgba(244, 238, 224, 0.10);
  --line-strong: rgba(244, 238, 224, 0.18);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --max: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ═══════════ a11y — global focus ring + skip link ═══════════ */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline-offset 0.15s var(--ease);
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 9999;
  padding: 12px 18px; border-radius: 10px;
  background: var(--saffron); color: var(--ink);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.5);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); outline-offset: 4px; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper);
  background: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

@media (hover: none), (max-width: 900px) {
  body { cursor: auto; }
  .cursor { display: none; }
}

img { max-width: 100%; display: block; }

::selection { background: var(--saffron); color: var(--ink); }

a { color: inherit; text-decoration: none; }

/* ═════════════ Background decorations ═════════════ */

.grid-bg {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  opacity: 0.8;
}

.mesh {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  filter: blur(80px); opacity: 0.55;
}
.blob {
  position: absolute; border-radius: 50%; mix-blend-mode: screen;
  animation: float 22s var(--ease) infinite alternate;
}
.blob-a { width: 60vmax; height: 60vmax; left: -15vmax; top: -20vmax; background: radial-gradient(closest-side, rgba(63,107,217,0.55), transparent 70%); }
.blob-b { width: 50vmax; height: 50vmax; right: -10vmax; top: 30vmax; background: radial-gradient(closest-side, rgba(229,163,71,0.45), transparent 70%); animation-duration: 28s; animation-delay: -8s; }
.blob-c { width: 45vmax; height: 45vmax; left: 10vmax; bottom: -15vmax; background: radial-gradient(closest-side, rgba(210,81,62,0.25), transparent 70%); animation-duration: 34s; animation-delay: -12s; }
@keyframes float {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(5vw,-3vw) scale(1.08); }
  100% { transform: translate(-4vw,4vw) scale(0.95); }
}

.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ═════════════ Custom cursor ═════════════ */

.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  transform: translate3d(-50%,-50%,0);
  mix-blend-mode: difference;
}
.cursor-dot {
  position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--paper); transform: translate(-50%,-50%);
  transition: transform 0.15s var(--ease);
}
.cursor-ring {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--paper); transform: translate(-50%,-50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cursor.is-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--saffron); }
.cursor.is-hover .cursor-dot { transform: translate(-50%,-50%) scale(0); }

/* ═════════════ Navigation ═════════════ */

.nav {
  position: fixed; inset: 24px var(--gutter) auto var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 40;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11,15,20,0.55);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; }
.brand-mark img { width: 40px; height: 40px; border-radius: 9px; display: block; filter: drop-shadow(0 2px 10px rgba(63,107,217,0.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-text em { font-family: var(--mono); font-size: 10px; font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }

.nav-links { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--paper); opacity: 0.75; transition: all 0.2s var(--ease); }
.nav-links a:hover { opacity: 1; background: rgba(244,238,224,0.08); }
.nav-links .cta-mini { background: var(--paper); color: var(--ink); opacity: 1; font-weight: 600; }
.nav-links .cta-mini:hover { background: var(--saffron); }

/* Language toggle */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 10px; padding: 4px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(11,15,20,0.4);
}
.lang-toggle button {
  background: transparent; border: none; padding: 4px 6px;
  font: inherit; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
  transition: color 0.2s var(--ease);
}
.lang-toggle button:hover { color: var(--paper); }
.lang-toggle button.is-active { color: var(--saffron); font-weight: 600; }
.lang-sep { color: var(--line-strong); font-size: 11px; }

@media (max-width: 820px) {
  .nav { inset: 12px 12px auto 12px; padding: 10px 14px; }
  .brand-text em { display: none; }
  .nav-links { gap: 2px; }
  .nav-links a:not(.cta-mini) { display: none; }
  .lang-toggle { margin-left: 6px; padding: 2px 8px; }
}

/* ═════════════ HERO ═════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(140px, 18vh, 200px) var(--gutter) 120px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 32px;
  overflow: hidden;
}

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("assets/hero.png") center/cover no-repeat;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse at 70% 40%, black 10%, transparent 75%);
}

.hero-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--paper);
  background: rgba(244,238,224,0.06); border: 1px solid var(--line-strong);
}
.tag.tag-ghost { background: transparent; color: var(--muted); }
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 10px var(--saffron); animation: pulse 7s ease-in-out infinite; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }

.hero-title {
  font-family: var(--serif); font-variation-settings: "opsz" 144, "SOFT" 70;
  font-weight: 300;
  font-size: clamp(56px, 12vw, 180px);
  line-height: 0.92; letter-spacing: -0.035em;
  max-width: 12ch;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, var(--saffron) 0%, var(--saffron-2) 40%, var(--azur-2) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-lede {
  font-family: var(--serif); font-variation-settings: "opsz" 14, "SOFT" 60;
  font-weight: 300; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55;
  max-width: 58ch; color: var(--paper-dim);
}
.hero-lede em { font-style: italic; color: var(--saffron); }

.hero-offer-block { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.hero-offer-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--saffron);
  display: inline-flex; align-items: center; gap: 12px;
  width: fit-content;
}
.hero-offer-label::before {
  content: ''; display: block; width: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--saffron));
}

.hero-pills { display: flex; gap: 14px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(244,238,224,0.08) 0%, rgba(244,238,224,0.02) 100%);
  border: 1px solid var(--line-strong);
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  color: var(--paper);
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  opacity: 0; transform: translateY(14px);
  animation: pillIn 0.75s var(--ease) forwards;
}
.pill:nth-child(1) { animation-delay: 0.55s; }
.pill:nth-child(2) { animation-delay: 0.7s; }
.pill:nth-child(3) { animation-delay: 0.85s; }
@keyframes pillIn { to { opacity: 1; transform: translateY(0); } }

.pill::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 0% 0%, rgba(229,163,71,0.18), transparent 55%);
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.pill::after {
  content: ''; position: absolute; top: 0; left: -60%; height: 100%; width: 50%;
  background: linear-gradient(100deg, transparent 0%, rgba(229,163,71,0.22) 50%, transparent 100%);
  pointer-events: none;
  transform: translateX(0); transition: transform 0.85s var(--ease);
}
.pill:hover {
  border-color: var(--saffron); transform: translateY(-3px);
  box-shadow: 0 22px 46px -22px rgba(229,163,71,0.45),
              0 0 0 1px rgba(229,163,71,0.18) inset;
}
.pill:hover::before { opacity: 1; }
.pill:hover::after { transform: translateX(420%); }

.pill b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--saffron) 0%, var(--saffron-2) 100%);
  color: var(--ink); font-family: var(--mono); font-size: 12px;
  font-weight: 600; letter-spacing: 0.04em;
  box-shadow: 0 6px 18px -6px rgba(229,163,71,0.55),
              0 0 0 4px rgba(229,163,71,0.12);
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.pill > span { position: relative; z-index: 1; }


.hero-scroll {
  position: absolute; bottom: 140px; right: var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted);
}
.hero-scroll svg { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

@media (max-width: 820px) {
  .hero-scroll { display: none; }
}

/* data-reveal staggered fade-up */
[data-reveal] { opacity: 0; transform: translateY(28px); animation: fadeUp 1s var(--ease) forwards; }
[data-reveal="1"] { animation-delay: 0.05s; }
[data-reveal="2"] { animation-delay: 0.15s; }
[data-reveal="3"] { animation-delay: 0.35s; }
[data-reveal="4"] { animation-delay: 0.5s; }
[data-reveal="5"] { animation-delay: 0.65s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Marquee ticker */
.ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  background: rgba(11,15,20,0.4);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.ticker-track {
  display: inline-flex; gap: 30px; white-space: nowrap;
  animation: ticker 60s linear infinite;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--muted);
}
.ticker-track span:nth-child(3n+1) { color: var(--saffron); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ═════════════ Sections — shared ═════════════ */

section { position: relative; padding: clamp(80px, 14vh, 140px) var(--gutter); }

.section-head { max-width: var(--max); margin: 0 auto 60px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--saffron);
  padding-bottom: 6px; border-bottom: 1px solid var(--saffron);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--serif); font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1; letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 24px;
}
.section-title em {
  font-style: italic; font-weight: 400;
  color: var(--saffron);
}

.section-lede {
  font-family: var(--serif); font-variation-settings: "opsz" 14;
  font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5;
  max-width: 60ch; color: var(--paper-dim);
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ═════════════ Manifesto ═════════════ */

.manifesto {
  max-width: 1100px; margin: 0 auto;
  padding-top: 80px; padding-bottom: 80px;
  text-align: left;
}
.manifesto .eyebrow { color: var(--saffron); border-color: var(--saffron); }
.manifesto-text {
  font-family: var(--serif); font-variation-settings: "opsz" 72, "SOFT" 80;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px); line-height: 1.2; letter-spacing: -0.018em;
  color: var(--paper);
}
.manifesto-text em {
  font-style: italic;
  background: linear-gradient(100deg, var(--saffron), var(--azur-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.manifesto-text mark {
  background: transparent; color: var(--paper);
  border-bottom: 3px solid var(--saffron); padding-bottom: 2px;
}

/* ═════════════ Offre 360° ═════════════ */

.offre-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .offre-grid { grid-template-columns: 1fr; } }

.offer-card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(170deg, rgba(244,238,224,0.04) 0%, rgba(244,238,224,0.01) 100%);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: all 0.45s var(--ease);
  min-height: 420px;
  display: flex; flex-direction: column; /* content aligned to top */
  gap: 22px;
}
.offer-card .offer-body { flex: 0 0 auto; }
.offer-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(229,163,71,0.18), transparent 40%);
  transition: opacity 0.35s var(--ease);
}
.offer-card:hover { border-color: var(--saffron); transform: translateY(-6px); }
.offer-card:hover::before { opacity: 1; }
.offer-card.featured { background: linear-gradient(170deg, rgba(229,163,71,0.10) 0%, rgba(63,107,217,0.08) 100%); border-color: rgba(229,163,71,0.35); }
.offer-card.featured::after {
  content: "⎯ phare"; position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--saffron);
}

.offer-num {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  padding-bottom: 4px; border-bottom: 1px solid var(--line-strong);
  margin-bottom: 22px; display: inline-block;
}

.offer-kicker {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--saffron); display: block; margin-bottom: 8px;
}
.offer-card h3 {
  font-family: var(--serif); font-variation-settings: "opsz" 72, "SOFT" 60;
  font-weight: 300; font-size: clamp(32px, 3vw, 44px); line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.offer-lede { font-family: var(--serif); font-size: 18px; color: var(--paper-dim); margin-bottom: 24px; font-variation-settings: "opsz" 14; }
.offer-lede em { font-style: italic; color: var(--saffron); }
.offer-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.offer-card li {
  font-family: var(--sans); font-size: 14px; color: var(--paper);
  padding-left: 20px; position: relative;
}
.offer-card li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 1px; background: var(--saffron);
}

/* ═════════════ Cas d'usage ═════════════ */

.usages-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden;
  background: var(--line-strong);
}
@media (max-width: 900px) { .usages-grid { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 899px) { .usages-grid { grid-template-columns: repeat(2, 1fr); } }

.usage {
  position: relative;
  padding: 36px 30px 30px;
  background: var(--ink);
  min-height: 280px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all 0.45s var(--ease);
  overflow: hidden;
}
.usage::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, rgba(229,163,71,0.0) 0%, rgba(63,107,217,0.14) 100%);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.usage > * { position: relative; z-index: 1; }
.usage:hover::before { opacity: 1; }
.usage:hover .usage-num { color: var(--saffron); }

.usage-num {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  transition: color 0.3s var(--ease);
}
.usage h3 {
  font-family: var(--serif); font-variation-settings: "opsz" 72, "SOFT" 50;
  font-weight: 400; font-size: 24px; line-height: 1.08; letter-spacing: -0.015em;
}
.usage p { font-size: 14.5px; color: var(--paper-dim); line-height: 1.55; flex: 1; }
.usage-tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
  padding: 5px 10px; border-radius: 4px;
  background: rgba(229,163,71,0.12); color: var(--saffron);
  border: 1px solid rgba(229,163,71,0.3);
}

/* ═════════════ Stats / Chiffres clés ═════════════ */

.stats { padding-top: clamp(60px, 10vh, 100px); padding-bottom: clamp(60px, 10vh, 100px); }
.stats-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden;
  background: var(--line-strong);
}
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .stats-grid { grid-template-columns: 1fr; } }

.stat {
  background: var(--ink);
  padding: 32px 24px 26px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.stat-icon {
  width: 72px; height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(229,163,71,0.35));
  opacity: 0.95;
  border-radius: 10px;
  background: rgba(229,163,71,0.03);
  padding: 2px;
}
.stat::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.stat:hover::before { opacity: 0.6; }

.stat-num {
  font-family: var(--serif); font-variation-settings: "opsz" 96, "SOFT" 40;
  font-weight: 300;
  font-size: clamp(34px, 3.6vw, 54px); line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--saffron) 0%, var(--saffron-2) 40%, var(--azur-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-label {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: auto;
}

/* ═════════════ Parcours ═════════════ */

.parcours-steps {
  max-width: var(--max); margin: 0 auto;
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  position: relative;
}
.parcours-steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 24px; height: 1px;
  background: linear-gradient(90deg, var(--saffron), var(--azur), var(--cinnabar));
  opacity: 0.5;
}
@media (max-width: 900px) {
  .parcours-steps { grid-template-columns: 1fr; }
  .parcours-steps::before { left: 24px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
}

.step {
  padding: 0 18px 40px 0;
  display: flex; flex-direction: column;
}
.step:not(:last-child) { border-right: 1px solid var(--line-strong); }
@media (max-width: 900px) {
  .step { padding: 0 0 40px 50px; }
  .step:not(:last-child) { border-right: none; }
}

.step-rail { position: relative; height: 48px; display: flex; align-items: center; }
.step-node {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--saffron);
  box-shadow: 0 0 0 4px var(--ink), 0 0 20px var(--saffron);
  z-index: 2;
}
.step:nth-child(2) .step-node { border-color: var(--azur); box-shadow: 0 0 0 4px var(--ink), 0 0 20px var(--azur); }
.step:nth-child(3) .step-node { border-color: var(--cinnabar); box-shadow: 0 0 0 4px var(--ink), 0 0 20px var(--cinnabar); }
@media (max-width: 900px) {
  .step-rail { position: absolute; left: 16px; top: 0; width: 16px; }
}

.step-body {
  padding-top: 20px;
  display: flex; flex-direction: column;
  flex: 1;                    /* fill the step's height so price can anchor */
}
.step-label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; }
.step-body h3 {
  font-family: var(--serif); font-variation-settings: "opsz" 72, "SOFT" 60;
  font-weight: 300; font-size: clamp(32px, 3.6vw, 52px); line-height: 1;
  margin: 8px 0 20px; letter-spacing: -0.02em;
}
.step-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.step-body li { font-size: 14.5px; color: var(--paper-dim); padding-left: 20px; position: relative; }
.step-body li::before { content: "→"; position: absolute; left: 0; color: var(--saffron); }

.step-price {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(244,238,224,0.04); border: 1px solid var(--line-strong);
  align-self: flex-start;
  margin-top: auto;           /* push to the bottom of the step-body */
}
.step-price b { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--saffron); font-style: italic; }
.step-price i { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.16em; font-style: normal; }

.parcours-note {
  max-width: var(--max); margin: 24px auto 0;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}

/* ═════════════ Pourquoi ═════════════ */

.pourquoi {
  background: var(--paper);
  color: var(--ink);
  padding-top: clamp(100px, 18vh, 180px);
  padding-bottom: clamp(100px, 18vh, 180px);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.pourquoi::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("assets/europe.png") center center / cover no-repeat;
  opacity: 0.22;
}
/* Soft fade at top & bottom so the image blends into the cream paper instead of hard-cutting */
.pourquoi::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--paper) 0%,
    transparent 12%,
    transparent 88%,
    var(--paper) 100%
  );
}
@media (max-width: 720px) {
  /* Narrow viewports become very tall — dial opacity down so content stays readable */
  .pourquoi::before { opacity: 0.16; }
}
.pourquoi > * { position: relative; z-index: 1; }
.pourquoi .eyebrow { color: var(--cinnabar); border-color: var(--cinnabar); }
.pourquoi .section-title { color: var(--ink); }
.pourquoi .section-title em { color: var(--cinnabar); }
.pourquoi .section-lede { color: #4a4538; }

.reasons {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr; gap: 48px; } }

.reason-col { border-top: 2px solid var(--ink); padding-top: 20px; }
.reason-pillar {
  font-family: var(--serif); font-variation-settings: "opsz" 72, "SOFT" 60;
  font-weight: 400; font-size: 28px; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 8px;
}
.reason-pillar span {
  font-family: var(--mono); font-size: 12px; color: var(--cinnabar); font-weight: 500;
}
.reason-sub {
  font-family: var(--serif); font-style: italic; font-size: 17px; color: #4a4538;
  margin-bottom: 28px;
  min-height: calc(1.4em * 2);   /* reserve space for two lines so all 3 columns align */
  line-height: 1.4;
}
@media (max-width: 900px) { .reason-sub { min-height: 0; } }
.reason-col ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.reason-col li {
  display: grid; grid-template-columns: 26px 1fr; gap: 6px 12px; align-items: start;
  padding-bottom: 18px; border-bottom: 1px solid rgba(11,15,20,0.1);
}
.reason-col li:last-child { border-bottom: none; }
.reason-col li span {
  grid-row: 1 / span 2;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
}
.reason-col li b {
  font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--ink);
}
.reason-col li i {
  font-style: normal; font-family: var(--sans); font-size: 13.5px; color: #4a4538; line-height: 1.5;
}

/* ═════════════ À propos ═════════════ */

.about { padding-bottom: clamp(80px, 12vh, 140px); }
.about-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-body p {
  font-family: var(--serif); font-variation-settings: "opsz" 24;
  font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55;
  color: var(--paper-dim); margin-bottom: 20px;
}
.about-body p em { font-style: italic; color: var(--saffron); }
.about-body p mark { background: transparent; color: var(--paper); border-bottom: 2px solid var(--saffron); padding-bottom: 1px; }

.about-values {
  padding: 28px 26px;
  border: 1px solid var(--line-strong); border-radius: 20px;
  background: rgba(244,238,224,0.03);
}
.about-values h3 {
  font-family: var(--serif); font-variation-settings: "opsz" 72, "SOFT" 50;
  font-weight: 400; font-style: italic; font-size: 22px; line-height: 1.2;
  margin-bottom: 20px; color: var(--paper);
}
.about-values dl { display: flex; flex-direction: column; gap: 18px; }
.about-values dt {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--saffron); margin-bottom: 4px;
}
.about-values dd {
  font-family: var(--serif); font-size: 16px; color: var(--paper); font-style: italic;
}
.about-values > dl > div + div { padding-top: 18px; border-top: 1px solid var(--line-strong); }

/* ═════════════ Contact ═════════════ */

.contact {
  padding-top: clamp(100px, 18vh, 180px);
  padding-bottom: clamp(80px, 12vh, 140px);
}
.contact-card {
  max-width: 960px; margin: 0 auto;
  padding: clamp(40px, 6vw, 80px);
  border-radius: 32px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(800px circle at 100% 0%, rgba(229,163,71,0.22), transparent 50%),
    radial-gradient(600px circle at 0% 100%, rgba(63,107,217,0.18), transparent 50%),
    linear-gradient(180deg, rgba(244,238,224,0.04), rgba(244,238,224,0.02));
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("assets/network.png") right center/contain no-repeat;
  opacity: 0.08;
}

.contact-name {
  font-family: var(--serif); font-variation-settings: "opsz" 144, "SOFT" 60;
  font-weight: 300; font-size: clamp(44px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.03em;
  margin: 16px 0 12px; max-width: 14ch;
}
.contact-name em { font-style: italic; color: var(--saffron); }
.contact-intro { font-family: var(--serif); font-size: 19px; color: var(--paper-dim); max-width: 52ch; margin-bottom: 40px; }

.contact-person {
  display: flex; align-items: center; gap: 20px;
  padding: 20px; border-radius: 18px;
  background: rgba(11,15,20,0.4);
  border: 1px solid var(--line-strong);
  margin-bottom: 32px;
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--saffron), var(--azur));
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); font-style: italic;
}
.contact-person strong { font-family: var(--serif); font-weight: 500; font-size: 20px; display: block; }
.contact-person span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.contact-person .email { font-family: var(--mono); font-size: 13px; color: var(--saffron); transition: color 0.2s var(--ease); }
.contact-person .email:hover { color: var(--saffron-2); }

.contact-note {
  margin-top: 24px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: 15px;
  transition: all 0.3s var(--ease);
  border: 1px solid var(--paper);
}
.cta:hover { background: var(--saffron); border-color: var(--saffron); transform: translateY(-2px); }
.cta-ghost { background: transparent; color: var(--paper); border-color: var(--line-strong); }
.cta-ghost:hover { background: transparent; color: var(--saffron); border-color: var(--saffron); }

/* ═════════════ Footer ═════════════ */

.foot { padding: 40px var(--gutter) 60px; border-top: 1px solid var(--line-strong); }
.foot-row {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em;
}
.foot-mono { color: var(--paper-dim); }
.dot-sep { color: var(--saffron); }

/* ═════════════ ROBOT COMPANION ═════════════ */

.bot {
  position: fixed;
  z-index: 35;
  left: 0; top: 0;
  pointer-events: none;
  transform: translate3d(var(--bot-x, calc(100vw - 160px)), var(--bot-y, calc(100vh - 160px)), 0);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.bot-body {
  pointer-events: auto; cursor: pointer;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,0.55)) drop-shadow(0 0 24px rgba(63,107,217,0.10));
  transition: filter 0.3s var(--ease);
}
.bot-body:hover {
  filter: drop-shadow(0 22px 28px rgba(0,0,0,0.6)) drop-shadow(0 0 32px rgba(229,163,71,0.35));
}

/* Single glowing eye — the only animation */
.bot-svg .eye-core,
.bot-svg .eye-halo {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
}
.bot-svg .eye-core { animation: eyePulse 6s ease-in-out infinite; }
.bot-svg .eye-halo { animation: eyeHaloPulse 6s ease-in-out infinite; }

@keyframes eyePulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.1); filter: brightness(1.1); }
}
@keyframes eyeHaloPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.65; }
  50%      { transform: scale(1.08); opacity: 0.9; }
}

.bot-bubble {
  position: absolute; bottom: 100%; right: 10px; margin-bottom: 12px;
  min-width: 180px; max-width: 230px;
  padding: 12px 15px;
  background: var(--paper); color: var(--ink);
  border-radius: 18px 18px 4px 18px;
  font-family: var(--serif); font-size: 13.5px; line-height: 1.35; font-style: italic;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  opacity: 0; transform: translateY(10px) scale(0.95);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: auto;
}
.bot-bubble::after {
  content: ""; position: absolute; bottom: -6px; right: 28px;
  width: 14px; height: 14px; background: var(--paper);
  transform: rotate(45deg); border-radius: 2px;
}
.bot.show-bubble .bot-bubble { opacity: 1; transform: none; }

.bot-bubble strong { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--saffron); display: block; margin-bottom: 4px; }

.bot-svg .bot-iris { transition: transform 0.35s var(--ease), opacity 0.2s var(--ease); }

/* LinkedIn badge — hidden by default, appears when MaX is hovered */
/* Placed to MaX's LEFT (toward the content) since he lives on the right edge. */
.bot-linkedin {
  position: absolute;
  top: 14px;
  left: -54px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #0A66C2;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0,0,0,0.45),
              0 0 0 2px rgba(244,238,224,0.14),
              0 0 30px rgba(10,102,194,0.45);
  /* initially hidden — tucked back toward MaX */
  opacity: 0;
  transform: scale(0.3) translate(26px, 10px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease),
              transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s var(--ease);
}
.bot-linkedin::after {
  content: "LinkedIn";
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);   /* tooltip to the LEFT now */
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper); background: rgba(11,15,20,0.9);
  padding: 5px 9px; border-radius: 4px;
  opacity: 0; pointer-events: none; white-space: nowrap;
  transition: opacity 0.2s var(--ease) 0.15s;
}

/* When MaX is hovered, pop the badge into view */
.bot.is-hovered .bot-linkedin {
  opacity: 1;
  transform: scale(1) translate(0, 0);
  pointer-events: auto;
}
.bot.is-hovered .bot-linkedin::after { opacity: 1; }

.bot-linkedin:hover {
  transform: scale(1.1) translate(0, -2px) rotate(-3deg);
  box-shadow: 0 16px 30px rgba(0,0,0,0.5),
              0 0 0 2px rgba(244,238,224,0.22),
              0 0 44px rgba(10,102,194,0.75);
}

/* Hide MaX on tablets and below — he eats too much screen real-estate. */
@media (max-width: 1024px) {
  .bot { display: none !important; }
}

/* ═════════════════════════════════════════════════════════════════════
   TRUST STRIP — sectors served (placeholder until real client logos)
   ═════════════════════════════════════════════════════════════════════ */
.trust {
  padding: 64px var(--gutter) 48px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust .eyebrow {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--saffron);
}
.trust-chips {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 14px;
}
.trust-chips li {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper-dim);
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(244,238,224,0.06) 0%, rgba(244,238,224,0.01) 100%);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.trust-chips li:hover {
  border-color: rgba(229,163,71,0.45);
  color: var(--paper);
}
.trust-note {
  margin-top: 28px;
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--muted);
  font-variation-settings: "opsz" 14;
}

/* ═════════════════════════════════════════════════════════════════════
   INLINE CTA blocks — mid-page conversion anchors after Parcours / Pourquoi
   ═════════════════════════════════════════════════════════════════════ */
.inline-cta {
  margin: 56px auto 0;
  max-width: 720px;
  padding: 36px 40px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(229,163,71,0.10) 0%, rgba(63,107,217,0.06) 100%);
  border: 1px solid rgba(229,163,71,0.28);
  text-align: center;
  position: relative; overflow: hidden;
}
.inline-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 0% 0%, rgba(229,163,71,0.10), transparent 60%);
  pointer-events: none;
}
.inline-cta-eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--saffron);
}
.inline-cta-text {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.3; color: var(--paper);
  font-variation-settings: "opsz" 60, "SOFT" 40;
  font-weight: 400;
  margin-bottom: 24px;
  position: relative;
}
.inline-cta-text em {
  font-style: italic;
  background: linear-gradient(100deg, var(--saffron) 0%, var(--saffron-2) 60%, var(--azur-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-inline {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px;
  background: var(--saffron); color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cta-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(229,163,71,0.55);
}
.inline-cta-ghost {
  background: linear-gradient(135deg, rgba(63,107,217,0.10) 0%, rgba(244,238,224,0.03) 100%);
  border-color: rgba(63,107,217,0.28);
}

/* Override for inline-CTA placed on the cream/paper Pourquoi section */
.pourquoi .inline-cta {
  background: linear-gradient(135deg, rgba(11,15,20,0.06) 0%, rgba(229,163,71,0.10) 100%);
  border-color: rgba(11,15,20,0.18);
}
.pourquoi .inline-cta::before {
  background: radial-gradient(120% 100% at 0% 0%, rgba(229,163,71,0.16), transparent 60%);
}
.pourquoi .inline-cta-eyebrow { color: var(--cinnabar); }
.pourquoi .inline-cta-text { color: var(--ink); }
.pourquoi .inline-cta-text em {
  background: linear-gradient(100deg, var(--cinnabar) 0%, var(--saffron) 60%, var(--azur) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (max-width: 720px) {
  .inline-cta { padding: 28px 22px; border-radius: 18px; }
  .trust-chips li { padding: 8px 14px; font-size: 11px; }
}

/* ═════════════ Responsive touch-ups ═════════════ */

@media (max-width: 820px) {
  .hero-title { font-size: clamp(48px, 16vw, 88px); }
  .contact-card { padding: 36px 24px; border-radius: 22px; }
  .contact-person { flex-direction: column; align-items: flex-start; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01s !important; transition-duration: 0.01s !important; }
  .blob, .bot-body, .ticker-track { animation: none !important; }
}

/* ═════════════════════════════════════════════════════════════════════
   LEGAL PAGE
   ═════════════════════════════════════════════════════════════════════ */
.legal-body { cursor: auto; }
.legal-body .cursor { display: none; }

.legal-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 140px var(--gutter) 80px;
}

.legal-hero { padding-block: 36px 64px; border-bottom: 1px solid var(--line); }
.legal-hero .eyebrow { color: var(--saffron); }
.legal-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 110, "SOFT" 30;
  font-weight: 380;
  margin: 18px 0 22px;
  color: var(--paper);
}
.legal-title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--saffron) 0%, var(--saffron-2) 60%, var(--azur-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legal-lede {
  font-family: var(--serif); font-variation-settings: "opsz" 14, "SOFT" 60;
  font-weight: 300; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55;
  color: var(--paper-dim); max-width: 60ch; margin-bottom: 36px;
}
.legal-toc {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  border-left: 1px solid var(--line-strong);
  padding-left: 22px;
}
.legal-toc a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper-dim);
  text-decoration: none; transition: color 0.25s var(--ease);
}
.legal-toc a:hover { color: var(--saffron); }

.legal-section {
  padding-block: 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.legal-section:last-child { border-bottom: none; }
.legal-num {
  position: absolute; top: 84px; right: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--saffron); opacity: 0.7;
}
.legal-section h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 80, "SOFT" 30;
  font-weight: 400; color: var(--paper);
  margin: 0 0 8px;
}
.legal-section h3 {
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  color: var(--paper); letter-spacing: 0.01em;
  margin: 36px 0 10px;
}
.legal-sub {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--paper-dim);
  margin: 0 0 28px;
}
.legal-section p {
  font-family: var(--sans); font-size: 15px; line-height: 1.7;
  color: var(--paper-dim); max-width: 70ch;
  margin: 0 0 14px;
}
.legal-section p strong { color: var(--paper); font-weight: 500; }
.legal-section p em { color: var(--saffron); font-style: italic; }
.legal-section a {
  color: var(--saffron); text-decoration: none;
  border-bottom: 1px dashed rgba(229,163,71,0.45);
  transition: border-color 0.2s var(--ease);
}
.legal-section a:hover { border-bottom-color: var(--saffron); }

.legal-meta {
  display: grid; grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 0; margin: 28px 0 36px;
  border-top: 1px solid var(--line-strong);
}
.legal-meta > div {
  display: contents;
}
.legal-meta dt,
.legal-meta dd {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.legal-meta dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--paper-dim);
}
.legal-meta dd {
  font-family: var(--sans); font-size: 15px; color: var(--paper);
}
.legal-meta dd a { color: var(--saffron); }

.legal-update {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper-dim);
  margin-top: 36px;
}

.foot-legal {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper-dim);
}
.foot-legal a {
  color: var(--paper-dim); text-decoration: none;
  transition: color 0.2s var(--ease);
}
.foot-legal a:hover { color: var(--saffron); }

@media (max-width: 720px) {
  .legal-main { padding-top: 110px; }
  .legal-num { display: none; }
  .legal-meta { grid-template-columns: 1fr; }
  .legal-meta dt { padding-bottom: 4px; border-bottom: none; }
  .legal-meta dd { padding-top: 0; }
}

/* ═════════════════════════════════════════════════════════════════════
   MaX CONTACT CHAT — conversational lead form
   ═════════════════════════════════════════════════════════════════════ */
.chat-overlay {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7, 10, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px;
  animation: chatFade 0.35s var(--ease);
}
@keyframes chatFade { from { opacity: 0; } to { opacity: 1; } }

.chat-window {
  width: 100%; max-width: 520px;
  height: min(680px, calc(100dvh - 48px));
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, var(--ink-2) 0%, var(--ink) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(229,163,71,0.08);
  overflow: hidden;
  animation: chatPop 0.45s var(--ease);
}
@keyframes chatPop { from { opacity: 0; transform: translateY(26px) scale(0.97); } to { opacity: 1; transform: none; } }

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(244,238,224,0.03);
}
.chat-avatar {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(140deg, rgba(229,163,71,0.18), rgba(63,107,217,0.12));
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}
.chat-id { flex: 1; min-width: 0; }
.chat-id strong {
  display: block;
  font-family: var(--serif); font-style: italic; font-size: 19px;
  color: var(--paper); line-height: 1.1;
}
.chat-status {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.chat-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5BBB6F; display: inline-block;
  box-shadow: 0 0 8px rgba(91,187,111,0.8);
}
.chat-end {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  color: var(--paper-dim);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}
.chat-end:hover { color: var(--ink); background: var(--saffron); border-color: var(--saffron); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.chat-msg {
  max-width: 82%;
  padding: 12px 16px;
  font-size: 14.5px; line-height: 1.5;
  animation: msgIn 0.3s var(--ease);
  word-wrap: break-word;
}
.chat-msg.no-anim { animation: none; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.from-bot {
  align-self: flex-start;
  background: rgba(244,238,224,0.07);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  color: var(--paper);
}
.from-bot b { color: var(--saffron); font-weight: 600; }
.from-user {
  align-self: flex-end;
  background: linear-gradient(140deg, var(--saffron) 0%, var(--saffron-2) 100%);
  color: var(--ink);
  border-radius: 16px 16px 4px 16px;
  font-weight: 500;
}
.chat-typing {
  display: inline-flex; gap: 5px; align-items: center;
  padding: 14px 18px;
}
.chat-typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper-dim);
  animation: typingBlink 1.2s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: 0.18s; }
.chat-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBlink { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 18px 6px;
}
.chat-chips:empty { display: none; }
.chat-chip {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--paper);
  background: rgba(244,238,224,0.06);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chat-chip:hover { border-color: var(--saffron); background: rgba(229,163,71,0.12); transform: translateY(-1px); }
.chat-chip.chip-ghost { color: var(--muted); }
.chat-chip.chip-end {
  background: var(--saffron); color: var(--ink); border-color: var(--saffron);
  font-weight: 600;
}
.chat-chip.chip-end:hover { background: var(--saffron-2); }

.chat-inputbar {
  display: flex; gap: 10px;
  padding: 14px 18px 10px;
  border-top: 1px solid var(--line);
}
.chat-inputbar input[type="text"]#chatInput {
  flex: 1;
  background: rgba(244,238,224,0.05);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--sans); font-size: 15px;
  color: var(--paper);
  transition: border-color 0.25s var(--ease);
}
.chat-inputbar input#chatInput::placeholder { color: var(--muted); }
.chat-inputbar input#chatInput:focus { border-color: rgba(229,163,71,0.55); outline: none; }
#chatHp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat-send {
  display: grid; place-items: center;
  width: 48px; border-radius: 12px;
  background: var(--saffron); color: var(--ink);
  border: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.chat-send:hover { background: var(--saffron-2); transform: translateY(-1px); }

.chat-consent {
  padding: 0 18px 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--muted); line-height: 1.5;
}
.chat-consent a { color: var(--saffron); text-decoration: none; border-bottom: 1px dashed rgba(229,163,71,0.45); }

/* hide the wandering companion while the chat IS MaX */
body.chat-open .bot { display: none !important; }
body.chat-open { overflow: hidden; }

@media (max-width: 600px) {
  .chat-overlay { padding: 0; }
  .chat-window {
    max-width: none; height: 100dvh; border-radius: 0; border: none;
  }
  .chat-msg { max-width: 88%; }
  .chat-end { padding: 8px 10px; font-size: 9.5px; }
}

/* hidden attr must beat the display:flex above — without this the popup shows on load */
.chat-overlay[hidden] { display: none !important; }
