/* ==========================================================================
   MB Affaires v2 — Design tokens
   ========================================================================== */
:root {
  --bg: #0B0A09;
  --heading: #F7F3EE;
  --text: #DFD4D3;
  --text-muted: #B9B3A6;
  --text-muted-2: #ADA79A;
  --text-muted-3: #A49F8F;
  --chip-text: #E2DCCE;
  --chip-text-2: #E4DFD4;
  --dim: #5C584F;

  --accent: #4FA8FF;
  --accent-light: #6FBBFF;
  --accent-dark: #1E7BE8;
  --accent-hover: #A6D4FF;
  --on-accent: #03121F;

  --border: rgba(164, 159, 143, 0.2);
  --border-strong: rgba(164, 159, 143, 0.35);
  --border-soft: rgba(196, 190, 187, 0.12);
  --border-accent: rgba(79, 168, 255, 0.35);

  --card-top: rgba(117, 121, 118, 0.2);
  --card-bottom: rgba(16, 15, 13, 0.92);
  --chip-bg: rgba(117, 121, 118, 0.28);

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;

  --container: 1400px;
  --gutter: clamp(20px, 3.4vw, 34px);
  --header-h: 76px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; }

html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  position: relative;
  z-index: 1;
  padding: 100px var(--gutter);
}
@media (max-width: 640px) {
  .section { padding: 72px var(--gutter); }
}

.eyebrow-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card-top);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--chip-text);
}

.section-head { text-align: center; margin-bottom: 56px; }

.section-title {
  margin: 26px 0 0;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--heading);
}
.section-title em {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  text-shadow: 0 0 50px rgba(79, 168, 255, 0.4);
}

.about-desc {
  margin: 28px 0 0;
  max-width: 520px;
  font-size: 16.5px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--text-muted);
  text-wrap: pretty;
}

.services-desc {
  margin: 26px 0 0;
  max-width: 400px;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  color: var(--text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  padding: 19px 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-glow {
  background: linear-gradient(180deg, var(--accent-light), var(--accent-dark));
  color: var(--on-accent);
  box-shadow: 0 0 60px rgba(79, 168, 255, 0.45);
}
.btn-glow:hover { background: var(--accent-hover); }

.btn-outline {
  border: 1px solid rgba(196, 190, 187, 0.22);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Starfield canvas
   ========================================================================== */
#mb-stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 20px var(--gutter);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand img { height: 28px; width: auto; }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--heading);
  white-space: nowrap;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 28, 24, 0.55);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
@media (min-width: 1000px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav-link:hover { background: rgba(164, 159, 143, 0.16); }

.nav-cta {
  display: none;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-light), var(--accent-dark));
  box-shadow: 0 0 34px rgba(79, 168, 255, 0.45);
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--accent-hover); }
@media (min-width: 1000px) {
  .nav-cta { display: inline-flex; align-items: center; }
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.mobile-toggle {
  background: rgba(30, 28, 24, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
@media (min-width: 1000px) {
  .mobile-toggle { display: none; }
}
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
}

/* ==========================================================================
   Mobile menu overlay
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
@media (min-width: 1000px) {
  .mobile-menu { display: none; }
}

.mobile-menu-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
}

.mobile-menu-close {
  background: none;
  border: 0;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.mobile-menu-body {
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-menu-eyebrow { font-size: 10px; letter-spacing: 0.2em; color: var(--text-muted-3); }

.mobile-link {
  font-family: var(--serif);
  font-size: 27px;
}

.mobile-divider {
  height: 1px;
  background: rgba(196, 190, 187, 0.14);
  margin: 6px 0;
}

.mobile-sub-link {
  font-size: 14px;
  color: var(--accent);
}

.mobile-cta {
  margin-top: 12px;
  text-align: center;
  background: linear-gradient(180deg, var(--accent-light), var(--accent-dark));
  color: var(--on-accent);
  padding: 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  padding: 176px var(--gutter) 90px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  max-width: 180vw;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(79, 168, 255, 0.2) 0%, rgba(164, 159, 143, 0.1) 42%, rgba(11, 10, 9, 0) 72%);
  animation: mbBreathe 7s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(117, 121, 118, 0.22);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--chip-text);
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  box-shadow: 0 0 12px rgba(79, 168, 255, 0.9);
}

.hero-title {
  margin: 30px 0 0;
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--heading);
  text-wrap: balance;
}
.hero-title em {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(79, 168, 255, 0.45);
}

.hero-desc {
  margin: 34px auto 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stat-cards {
  max-width: var(--container);
  margin: 88px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 999px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
}

.stat-card {
  border-radius: 22px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--border);
  padding: 34px 24px;
  animation: mbFloat 6s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-duration: 6.6s; animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-duration: 7.2s; animation-delay: 0.8s; }
.stat-card:nth-child(4) { animation-duration: 7.8s; animation-delay: 1.2s; }

.stat-value { font-size: 38px; font-weight: 600; letter-spacing: -0.02em; color: var(--heading); }
.stat-label { margin: 10px 0 0; font-size: 13.5px; color: var(--text-muted-2); }

/* ==========================================================================
   About section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 999px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-cta { margin-top: 36px; }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.glass-card {
  border-radius: 22px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--border);
  padding: 26px;
}

.chart-card p { margin: 0 0 22px; font-size: 14px; color: var(--chip-text); }
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 110px;
}
.chart-bars .bar {
  flex: 1;
  border-radius: 6px;
  background: rgba(196, 190, 187, 0.18);
  transform-origin: bottom;
  animation: mbBar 3.4s ease-in-out infinite;
}
.chart-bars .bar:nth-child(1) { height: 44%; }
.chart-bars .bar:nth-child(2) { height: 66%; background: rgba(196, 190, 187, 0.22); animation-delay: 0.25s; }
.chart-bars .bar:nth-child(3) { height: 34%; background: rgba(196, 190, 187, 0.16); animation-delay: 0.5s; }
.chart-bars .bar:nth-child(4) { height: 58%; background: rgba(196, 190, 187, 0.2); animation-delay: 0.75s; }
.chart-bars .bar:nth-child(5) {
  height: 100%;
  background: linear-gradient(180deg, var(--accent-light), var(--accent-dark));
  box-shadow: 0 0 24px rgba(79, 168, 255, 0.5);
  animation-delay: 1s;
}

.stat-highlight-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.stat-highlight-value { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--heading); }
.stat-highlight-label { margin: 0; font-size: 14px; color: var(--text-muted-2); }

.wide-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px;
}
.icon-circle {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--text-muted-3), #757976);
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 26px rgba(164, 159, 143, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #12110E;
}
.icon-circle.nudge { animation: mbNudge 2.6s ease-in-out infinite; }
.wide-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--chip-text); }

/* ==========================================================================
   Services (sticky stacking cards)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
@media (max-width: 999px) {
  .services-grid { grid-template-columns: 1fr; }
}

.services-sticky-head {
  position: sticky;
  top: 120px;
}
@media (max-width: 999px) {
  .services-sticky-head { position: static; }
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.service-card {
  scroll-margin-top: 110px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(117, 121, 118, 0.2), rgba(16, 15, 13, 0.985)), var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.65);
  padding: 36px 34px;
  display: flex;
  gap: 26px;
  align-items: flex-start;
  transition: border-color 0.25s ease;
}
.service-card:hover { border-color: var(--border-accent); }

.service-card { position: sticky; }
.service-card:nth-of-type(1) { top: 90px; }
.service-card:nth-of-type(2) { top: 104px; }
.service-card:nth-of-type(3) { top: 118px; }
.service-card:nth-of-type(4) { top: 132px; }
.service-card:nth-of-type(5) { top: 146px; }
.service-card:nth-of-type(6) { top: 160px; }

.service-number {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--text-muted-3), #757976);
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 26px rgba(164, 159, 143, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 19px;
  color: #12110E;
}

.service-body { flex: 1; min-width: 0; }
.service-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.service-title { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--heading); }
.service-tag { font-size: 11px; letter-spacing: 0.16em; color: var(--text-muted-3); white-space: nowrap; }
.service-desc { margin: 13px 0 0; font-size: 15px; line-height: 1.7; font-weight: 300; color: var(--text-muted); }

.service-chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-chips span {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid rgba(164, 159, 143, 0.25);
  font-size: 12.5px;
  color: var(--chip-text-2);
}

.service-link {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--accent);
  transition: gap 0.2s ease, color 0.2s ease;
}
.service-link span { font-size: 15px; }
.service-link:hover { gap: 16px; color: var(--accent-hover); }

/* ==========================================================================
   Expertise — horizontal loop
   ========================================================================== */
.expertise-section { overflow: hidden; }

.expertise-marquee {
  margin-top: 56px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.expertise-track {
  display: flex;
  width: max-content;
  animation: mbMarqueeX 42s linear infinite;
}
.expertise-track:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .expertise-track { animation: none; }
}

.expertise-set {
  display: flex;
  gap: 18px;
  padding: 0 9px;
}

.expertise-card {
  flex: none;
  width: 300px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--card-top), rgba(16, 15, 13, 0.92));
  border: 1px solid var(--border);
  padding: 40px 30px;
  text-align: center;
}
@media (max-width: 640px) {
  .expertise-card { width: 78vw; padding: 34px 24px; }
}

.pulse-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(164, 159, 143, 0.55), rgba(117, 121, 118, 0.3));
  box-shadow: 0 0 30px rgba(164, 159, 143, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mbPulse 5s ease-in-out infinite;
}

.expertise-icon {
  width: 24px;
  height: 24px;
  color: var(--heading);
}

.expertise-card h3 { margin: 26px 0 0; font-size: 19px; font-weight: 600; color: var(--heading); }
.expertise-card p { margin: 13px 0 0; font-size: 14.5px; line-height: 1.7; font-weight: 300; color: var(--text-muted-2); }

@keyframes mbMarqueeX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Approche steps
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 999px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
}

.step-card {
  border-radius: 24px;
  background: linear-gradient(180deg, var(--card-top), rgba(16, 15, 13, 0.92));
  border: 1px solid var(--border);
  padding: 34px 28px;
}
.step-number {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(79, 168, 255, 0.4);
}
.step-card h3 { margin: 20px 0 10px; font-size: 18px; font-weight: 600; color: var(--heading); }
.step-card p { margin: 0; font-size: 14.5px; line-height: 1.7; font-weight: 300; color: var(--text-muted-2); }

.approche-cta { margin-top: 44px; text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 40px var(--gutter) 46px;
}

.footer-eyebrow {
  background: rgba(196, 190, 187, 0.08);
  border-color: rgba(196, 190, 187, 0.1);
}

.footer-glow-card {
  border-radius: 34px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(79, 168, 255, 0.16) 0%, rgba(117, 121, 118, 0.24) 38%, rgba(14, 13, 11, 0.96) 100%);
  border: 1px solid var(--border-accent);
  padding: 84px 40px;
  text-align: center;
}
@media (max-width: 640px) {
  .footer-glow-card { padding: 56px 24px; }
}

.footer-title {
  margin: 28px auto 0;
  max-width: 820px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--heading);
  text-wrap: balance;
}
.footer-title em {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  text-shadow: 0 0 50px rgba(79, 168, 255, 0.4);
}

.footer-desc {
  margin: 26px auto 0;
  max-width: 620px;
  font-size: 16.5px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--text-muted);
  text-wrap: pretty;
}

.footer-cta-row { margin-top: 40px; display: flex; justify-content: center; }
.footer-cta-row .btn { padding: 20px 42px; box-shadow: 0 0 70px rgba(79, 168, 255, 0.5); }

.footer-note { margin: 24px 0 0; font-size: 13px; color: var(--text-muted-3); }

.footer-bottom-row {
  max-width: var(--container);
  margin: 44px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { height: 26px; width: auto; }
.footer-tagline { margin: 0; font-size: 13.5px; color: var(--text-muted-3); }
.footer-copy { font-size: 12px; color: var(--dim); }

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.float-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1C1A16;
  border: 1px solid rgba(164, 159, 143, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s ease;
}
.float-wa.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.float-wa:hover { background: var(--accent-hover); }
.float-wa svg { fill: var(--text); }

@media (max-width: 480px) {
  .float-wa { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

/* ==========================================================================
   Service detail modal
   ========================================================================== */
.service-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 5, 4, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(28, 26, 22, 0.98), rgba(14, 13, 11, 0.99));
  border: 1px solid var(--border-accent);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  padding: 40px 36px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }

@media (max-width: 640px) {
  .modal-card { padding: 30px 24px; max-height: 88vh; }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(196, 190, 187, 0.1);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.modal-close:hover { background: rgba(196, 190, 187, 0.2); }

.modal-tag { margin-bottom: 6px; }

.modal-title {
  margin: 16px 0 0;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--heading);
  padding-right: 30px;
}

.modal-intro {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-muted);
}

.modal-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--chip-text-2);
}
.modal-list li::before {
  content: "✓";
  flex: none;
  color: var(--accent);
  font-size: 13px;
  margin-top: 2px;
}

.modal-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted-2);
}

.modal-cta { margin-top: 26px; width: 100%; justify-content: center; padding: 17px 30px; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-hero {
  padding: 170px var(--gutter) 30px;
  max-width: 760px;
  margin: 0 auto;
}
.legal-hero .section-title { margin-top: 22px; font-size: clamp(32px, 4vw, 48px); }
.legal-updated {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--text-muted-2);
}
@media (max-width: 640px) {
  .legal-hero { padding-top: 132px; }
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px var(--gutter) 100px;
}
.legal-content h2 {
  margin: 52px 0 16px;
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--heading);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--text-muted);
  text-wrap: pretty;
}
.legal-content ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
}
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--accent-hover); }
.legal-content strong { color: var(--chip-text-2); font-weight: 600; }

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
}
.footer-policy-links a {
  font-size: 13px;
  color: var(--text-muted-2);
}
.footer-policy-links a:hover { color: var(--accent); }

/* ==========================================================================
   Scroll reveal & keyframe animations
   ========================================================================== */
[data-reveal] { opacity: 0; }
[data-reveal].revealed {
  animation: mbFade 0.85s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; animation: none; }
}

@keyframes mbFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes mbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes mbPulse { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
@keyframes mbBreathe { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes mbBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.82); } }
@keyframes mbNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .stat-card, .chart-bars .bar, .icon-circle.nudge, .pulse-icon { animation: none !important; }
}
