/* =========================================================
   CABINET NADIF D'AVOCATS — Casablanca
   Palette : cramoisi & bordeaux de la charte CNA, ivoire, noir chaud, or
   ========================================================= */
:root {
  --ink: #120c0c;
  --ink-2: #1b1212;
  --ink-3: #2a1b1b;
  --red: #b01c22;
  --red-2: #8f1419;
  --wine: #5c0a0e;
  --red-hi: #e0333b;
  --gold: #d6b25e;
  --gold-2: #b8923c;
  --ivory: #f7f2ec;
  --paper: #fffdfa;
  --line: #e8dfd6;
  --text: #241b1b;
  --muted: #6f6464;
  --on-dark: #f5eded;
  --on-dark-2: rgba(245, 237, 237, .68);

  --f-display: "Bodoni Moda", Didot, Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ds: 1; /* échelle des titres (réduite en arabe) */

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 20px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 78px;
}
html[dir="rtl"] {
  --f-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Noto Kufi Arabic", Tahoma, sans-serif;
  --ds: .86;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font: 400 17px/1.72 var(--f-body);
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
html[dir="rtl"] body { line-height: 1.9; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 200; background: var(--gold); color: var(--ink); padding: 10px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- Barre de progression ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; background: linear-gradient(90deg, var(--gold), var(--red-hi)); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }
html[dir="rtl"] .progress { transform-origin: right; }

/* ---------- Marque CNA ---------- */
.mark { display: inline-flex; align-items: center; height: 38px; flex: none; direction: ltr; }
.mark i {
  display: grid; place-items: center; width: 26px; height: 30px;
  background: var(--red); color: #fff;
  font: italic 300 22px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  direction: ltr;
}
.mark i:nth-child(2) { height: 38px; background: var(--wine); }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--red);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--f-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--bg); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn--red { background: linear-gradient(135deg, var(--red-hi), var(--red) 45%, var(--red-2)); box-shadow: 0 10px 30px -10px rgba(224, 51, 59, .7); }
.btn--red::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn--red:hover::after { transform: translateX(120%); }
.btn--red:hover { box-shadow: 0 16px 40px -12px rgba(224, 51, 59, .85); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .28); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--line { background: transparent; border-color: var(--line); color: var(--text); }
.btn--line:hover { border-color: var(--red); color: var(--red); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- En-tête ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--on-dark); transition: background .4s, box-shadow .4s, height .4s; }
.header.scrolled { background: rgba(18, 12, 12, .94); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); --header-h: 68px; }
.header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand__txt b { font: 600 17px/1.1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
html[dir="rtl"] .brand__txt b { font-size: 17px; letter-spacing: 0; }
.brand__txt small { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
html[dir="rtl"] .brand__txt small { letter-spacing: 0; font-size: 12.5px; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav > a { position: relative; white-space: nowrap; padding: 10px 13px; font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--on-dark-2); transition: color .25s; }
.nav > a::after { content: ""; position: absolute; inset: auto 13px 4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav > a:hover, .nav > a.active { color: #fff; }
.nav > a.active::after, .nav > a:hover::after { transform: scaleX(1); }
.header__end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 3px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; }
.lang a { min-width: 34px; padding: 5px 9px; border-radius: 999px; text-align: center; font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--on-dark-2); transition: background .25s, color .25s; }
.lang a:hover { color: #fff; }
.lang a.on { background: var(--on-dark); color: var(--ink); }
.nav .lang { display: none; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger.open span:first-child { top: 22px; transform: rotate(45deg); }
.burger.open span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Typo commune ---------- */
.kicker { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 22px; font: 700 12px/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
html[dir="rtl"] .kicker { letter-spacing: 0; font-size: 14px; }
.kicker--gold { color: var(--gold); }
.h2 { font: 500 calc(clamp(32px, 3.9vw, 56px) * var(--ds))/1.12 var(--f-display); letter-spacing: -.012em; color: var(--ink); }
html[dir="rtl"] .h2 { line-height: 1.45; font-weight: 600; letter-spacing: 0; }
.h2 em, .hero__title em, .expertise__title em, .quote-band__txt em { font-style: italic; color: var(--red); }
html[dir="rtl"] em { font-style: normal; }
.section { padding: clamp(84px, 11vw, 150px) 0; position: relative; }
.section--ivory { background: var(--ivory); }
.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .kicker { justify-content: center; }
.sec-head__lead { margin-top: 22px; font-size: 18px; color: var(--muted); }
.lead { font-size: 19px; color: var(--text); }

/* =========================================================
   ACCUEIL — scène 3D
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  color: var(--on-dark); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55% 60% at 74% 44%, rgba(176, 28, 34, .38), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(92, 10, 14, .55), transparent 70%),
    var(--ink);
}
html[dir="rtl"] .hero { background: radial-gradient(55% 60% at 26% 44%, rgba(176, 28, 34, .38), transparent 70%), radial-gradient(40% 40% at 90% 90%, rgba(92, 10, 14, .55), transparent 70%), var(--ink); }
.hero__grid { position: absolute; inset: 0; z-index: -2; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent 75%); }
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero.is-3d .hero__canvas { opacity: 1; }

/* Repli sans WebGL : monogramme CNA en CSS 3D */
.hero__fallback { position: absolute; z-index: -1; top: 50%; inset-inline-end: 9%; transform: translateY(-50%); perspective: 1000px; transition: opacity .9s var(--ease); }
.hero.is-3d .hero__fallback { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility 0s .25s; }
.cube3d { direction: ltr; display: flex; align-items: center; transform: rotateY(-22deg) rotateX(12deg); transform-style: preserve-3d; animation: float 7s ease-in-out infinite; }
.cube3d i { display: grid; place-items: center; width: clamp(90px, 10vw, 150px); aspect-ratio: 1; background: linear-gradient(145deg, var(--red-hi), var(--red) 50%, var(--red-2)); color: #fff; font: italic 200 clamp(60px, 7vw, 110px)/1 "Helvetica Neue", Helvetica, Arial, sans-serif; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.cube3d i:nth-child(2) { aspect-ratio: auto; height: calc(clamp(90px, 10vw, 150px) * 1.24); background: linear-gradient(145deg, #7a1015, var(--wine)); transform: translateZ(30px); }
@keyframes float { 50% { transform: rotateY(-14deg) rotateX(6deg) translateY(-16px); } }

.hero__in { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 48px; padding-top: calc(var(--header-h) + 4vh); padding-bottom: 64px; }
.hero__copy { max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 28px; padding: 8px 16px 8px 12px; border: 1px solid rgba(214, 178, 94, .35); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: rgba(214, 178, 94, .06); }
html[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; padding: 8px 12px 8px 16px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(214,178,94,.6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(214,178,94,0); } 100% { box-shadow: 0 0 0 0 rgba(214,178,94,0); } }
.hero__title { font: 500 calc(clamp(36px, 4.5vw, 70px) * var(--ds))/1.08 var(--f-display); letter-spacing: -.02em; color: #fff; text-wrap: balance; }
html[dir="rtl"] .hero__title { line-height: 1.4; letter-spacing: 0; font-weight: 700; }
.hero__title em { color: var(--gold); }
.hero__lead { max-width: 560px; margin: 28px 0 0; font-size: clamp(16px, 1.3vw, 18.5px); color: var(--on-dark-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 860px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__stats li { padding: 22px 22px 0 0; }
html[dir="rtl"] .hero__stats li { padding: 22px 0 0 22px; }
.hero__stats li + li { padding-inline-start: 22px; border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.hero__stats b { display: block; font: 500 clamp(34px, 3.4vw, 50px)/1 var(--f-display); color: #fff; }
.hero__stats b sup { font-size: .45em; color: var(--gold); margin-inline-start: 2px; }
.hero__stats span { display: block; margin-top: 8px; font-size: 13px; color: var(--on-dark-2); }
.hero__scroll { position: absolute; bottom: 26px; inset-inline-end: var(--gut); display: flex; align-items: center; gap: 12px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--on-dark-2); }
.hero__scroll i { position: relative; width: 1px; height: 52px; background: rgba(255,255,255,.2); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Entrée de l'accueil */
html.js .hero__copy > *, html.js .hero__stats { opacity: 0; transform: translateY(28px); animation: rise 1.1s var(--ease) forwards; }
html.js .hero__copy > :nth-child(2) { animation-delay: .12s; }
html.js .hero__copy > :nth-child(3) { animation-delay: .26s; }
html.js .hero__copy > :nth-child(4) { animation-delay: .38s; }
html.js .hero__stats { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Bandeau défilant des domaines ---------- */
.band { position: relative; z-index: 3; margin: -34px -2% 0; padding: 20px 0; background: linear-gradient(90deg, var(--wine), var(--red) 30%, var(--red) 70%, var(--wine)); color: #fff; transform: rotate(-1.6deg); box-shadow: 0 20px 50px -20px rgba(92,10,14,.6); overflow: hidden; }
.band__track { display: flex; width: max-content; gap: 38px; animation: marquee 48s linear infinite; }
.band__track span { display: inline-flex; align-items: center; gap: 38px; white-space: nowrap; font: italic 500 clamp(19px, 2vw, 28px)/1 "Bodoni Moda", Didot, Georgia, serif; }
.band__track span::after { content: "✦"; font-style: normal; font-size: .55em; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
html[dir="rtl"] .band__track span { font: 600 clamp(17px, 1.7vw, 24px)/1.4 var(--f-display); }

/* =========================================================
   LE CABINET
   ========================================================= */
.about__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.about__media { position: relative; aspect-ratio: 4 / 4.6; perspective: 1200px; }
.about__shape { position: absolute; inset: 9% -7% -5% 12%; border-radius: 32px 32px 180px 32px; background: linear-gradient(150deg, var(--red-hi), var(--red) 45%, var(--wine)); }
html[dir="rtl"] .about__shape { inset: 9% 12% -5% -7%; border-radius: 32px 32px 32px 180px; }
.about__img { position: absolute; inset: 0 8% 8% 0; margin: 0; border-radius: 28px 28px 28px 120px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(18, 12, 12, .65); transform-style: preserve-3d; transition: transform .6s var(--ease); }
html[dir="rtl"] .about__img { inset: 0 0 8% 8%; border-radius: 28px 28px 120px 28px; }
.about__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.about__badge { position: absolute; bottom: -4%; inset-inline-start: -5%; display: grid; gap: 2px; padding: 22px 28px; background: var(--paper); border-radius: 22px; box-shadow: 0 30px 60px -28px rgba(18,12,12,.45); }
.about__badge b { font: 600 54px/1 var(--f-display); color: var(--red); }
html[dir="rtl"] .about__badge b { font-family: "Bodoni Moda", Didot, Georgia, serif; }
.about__badge span { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .about__badge span { letter-spacing: 0; font-size: 14px; }
.about__copy .h2 { margin-bottom: 30px; }
.about__copy p { color: var(--muted); }
.about__copy p strong { color: var(--red); font-weight: 600; }
.about__copy .lead { color: var(--text); }
.about__quote { margin: 34px 0 0; padding: 6px 0 6px 26px; border-inline-start: 3px solid var(--red); font: italic 500 calc(21px * var(--ds))/1.5 var(--f-display); color: var(--ink); }
html[dir="rtl"] .about__quote { padding: 6px 26px 6px 0; font-style: normal; }

/* =========================================================
   ENGAGEMENTS
   ========================================================= */
.values__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; perspective: 1400px; }
.value { position: relative; padding: 36px 32px 34px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; transform-style: preserve-3d; }
.value::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
html[dir="rtl"] .value::before { transform-origin: right; }
.value:hover { box-shadow: 0 30px 60px -34px rgba(92, 10, 14, .45); border-color: transparent; }
.value:hover::before { transform: scaleX(1); }
.value__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.value__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(145deg, #fbe9e9, #f4dcdc); color: var(--red); }
.value__ic svg { width: 26px; height: 26px; }
.value__n { font: italic 500 40px/1 "Bodoni Moda", Didot, Georgia, serif; color: var(--line); transition: color .4s; }
.value:hover .value__n { color: var(--gold); }
.value h3 { font: 600 calc(22px * var(--ds))/1.25 var(--f-display); color: var(--ink); margin-bottom: 12px; }
html[dir="rtl"] .value h3 { font-size: 19px; }
.value p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* =========================================================
   COMPÉTENCES (fond cramoisi)
   ========================================================= */
.expertise { position: relative; overflow: hidden; isolation: isolate; padding: clamp(96px, 12vw, 170px) 0; color: #fff; background: linear-gradient(140deg, #6e0c11 0%, var(--red) 48%, var(--wine) 100%); }
.expertise__bg { position: absolute; inset: -15% 0; z-index: -1; opacity: .22; mix-blend-mode: luminosity; }
.expertise__bg img { width: 100%; height: 100%; object-fit: cover; }
.expertise::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 100% 0%, rgba(214,178,94,.18), transparent 60%), linear-gradient(180deg, rgba(92,10,14,.2), rgba(92,10,14,.55)); }
.expertise .kicker { color: var(--gold); }
.expertise__title { max-width: 19ch; font: 500 calc(clamp(30px, 3.8vw, 54px) * var(--ds))/1.14 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
html[dir="rtl"] .expertise__title { line-height: 1.5; font-weight: 600; letter-spacing: 0; max-width: 24ch; }
.expertise__title em { color: var(--gold); }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 80px); perspective: 1400px; }
.pillar { position: relative; padding: clamp(30px, 3.4vw, 46px); border-radius: 26px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform-style: preserve-3d; transition: transform .6s var(--ease), border-color .4s; }
.pillar:hover { border-color: rgba(214, 178, 94, .5); }
.pillar__n { position: absolute; top: 18px; inset-inline-end: 28px; font: italic 600 110px/1 "Bodoni Moda", Didot, Georgia, serif; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22); pointer-events: none; }
.pillar h3 { font: 600 calc(27px * var(--ds))/1.2 var(--f-display); color: var(--gold); margin-bottom: 18px; transform: translateZ(30px); }
.pillar p { color: rgba(255, 255, 255, .82); font-size: 16px; }
.pillar ul { display: grid; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.pillar li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; font-weight: 500; }
.pillar li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--gold); }
.expertise__note { display: inline-flex; align-items: center; gap: 12px; margin: 40px 0 0; padding: 12px 20px; border-radius: 999px; background: rgba(18, 12, 12, .28); font-size: 15px; font-weight: 500; }
.expertise__note svg { width: 20px; height: 20px; color: var(--gold); }

/* =========================================================
   DOMAINES — anneau 3D piloté par le défilement
   ========================================================= */
.domains { position: relative; background: var(--ink); color: var(--on-dark); padding: clamp(84px, 10vw, 130px) 0; overflow: hidden; }
.domains::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 45% at 50% 62%, rgba(176, 28, 34, .35), transparent 70%); pointer-events: none; }
.domains__sticky { position: relative; }
.domains__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.domains__head .h2 { color: #fff; }
.domains__head .h2 em { color: var(--gold); }
.domains__lead { max-width: 440px; margin: 0; color: var(--on-dark-2); }
.ring-stage { position: relative; margin-top: 56px; }
.ring { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.dcard { position: relative; display: flex; flex-direction: column; padding: 28px 26px; border-radius: 22px; background: linear-gradient(165deg, #fffdfa, #f3ebe4); color: var(--text); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.dcard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.dcard__ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(145deg, var(--red-hi), var(--red) 50%, var(--red-2)); color: #fff; box-shadow: 0 12px 24px -10px rgba(176,28,34,.7); }
.dcard__ic svg { width: 26px; height: 26px; }
.dcard__n { font: italic 600 34px/1 "Bodoni Moda", Didot, Georgia, serif; color: rgba(176, 28, 34, .25); }
.dcard h3 { font: 600 calc(23px * var(--ds))/1.2 var(--f-display); color: var(--ink); margin-bottom: 10px; }
html[dir="rtl"] .dcard h3 { font-size: 20px; line-height: 1.5; }
.dcard p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.dcard ul { display: grid; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.dcard li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.dcard li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--red); }
.domains__ctrl { display: none; }

/* Mode 3D (JS actif, mouvement autorisé) */
.domains.is-3d { height: 400vh; padding: 0; overflow: visible; }
.domains.is-3d .domains__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 0; padding-top: var(--header-h); overflow: hidden; }
.domains.is-3d .domains__sticky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 45% at 50% 62%, rgba(176, 28, 34, .38), transparent 70%); }
.domains.is-3d::before { display: none; }
.domains.is-3d .ring-stage { --w: min(330px, 74vw); --h: 440px; height: calc(var(--h) + 40px); margin-top: clamp(20px, 4vh, 48px); perspective: 1700px; perspective-origin: 50% 40%; }
.domains.is-3d .ring { position: absolute; top: 20px; left: 50%; display: block; width: var(--w); height: var(--h); max-width: none; margin-left: calc(var(--w) / -2); padding: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--R, 420px) * -1)) rotateY(var(--rot, 0deg)); }
.domains.is-3d .dcard { position: absolute; inset: 0; transform: rotateY(calc(var(--i) * var(--step, 45deg))) translateZ(var(--R, 420px)); -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: box-shadow .4s; cursor: pointer; will-change: transform, opacity; }
.domains.is-3d .dcard.on { box-shadow: 0 40px 90px -30px rgba(224, 51, 59, .55), 0 0 0 1px rgba(214,178,94,.55); cursor: default; }
.domains.is-3d .domains__ctrl { display: flex; align-items: center; gap: 18px; margin-top: clamp(20px, 3vh, 36px); }
.ring-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; cursor: pointer; transition: border-color .3s, color .3s, background .3s; }
.ring-btn:hover { border-color: var(--gold); color: var(--gold); }
.ring-btn svg { width: 18px; height: 18px; }
.ring-btn--prev svg { transform: scaleX(-1); }
html[dir="rtl"] .ring-btn--prev svg { transform: none; }
html[dir="rtl"] .ring-btn--next svg { transform: scaleX(-1); }
.ring-count { font: 500 22px/1 "Bodoni Moda", Didot, Georgia, serif; color: var(--on-dark-2); direction: ltr; }
.ring-count b { font-size: 34px; color: #fff; font-weight: 600; }
.ring-bar { flex: 1; max-width: 280px; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.ring-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--red-hi)); transform-origin: left; transform: scaleX(var(--p, 0)); }
html[dir="rtl"] .ring-bar i { transform-origin: right; }
.ring-hint { margin-inline-start: auto; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-2); }
html[dir="rtl"] .ring-hint { letter-spacing: 0; font-size: 13px; }

/* =========================================================
   MÉTHODE
   ========================================================= */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps__line { position: absolute; top: 31px; inset-inline: 32px; height: 2px; background: var(--line); }
.steps__line i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); transform-origin: left; transform: scaleX(var(--p, 0)); }
html[dir="rtl"] .steps__line i { transform-origin: right; }
.step { position: relative; }
.step__n { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 26px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); font: italic 600 26px/1 "Bodoni Moda", Didot, Georgia, serif; color: var(--muted); transition: background .5s, border-color .5s, color .5s, transform .5s var(--ease); }
.step.lit .step__n { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.06); box-shadow: 0 0 0 8px rgba(176, 28, 34, .1); }
.step h3 { font: 600 calc(22px * var(--ds))/1.25 var(--f-display); color: var(--ink); margin-bottom: 10px; }
html[dir="rtl"] .step h3 { font-size: 19px; }
.step p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Bandeau citation ---------- */
.quote-band { position: relative; display: grid; place-items: center; min-height: clamp(440px, 78vh, 720px); padding: 90px 0; overflow: hidden; isolation: isolate; color: #fff; text-align: center; }
.quote-band__img { position: absolute; inset: -18% 0; z-index: -2; }
.quote-band__img img { width: 100%; height: 100%; object-fit: cover; }
.quote-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,12,12,.72), rgba(18,12,12,.55) 50%, rgba(18,12,12,.82)); }
.quote-band__mark { display: block; margin: 0 auto 14px; font: italic 600 120px/.6 "Bodoni Moda", Didot, Georgia, serif; color: var(--red-hi); }
.quote-band__txt { max-width: 24ch; margin: 0 auto; font: italic 500 calc(clamp(26px, 3.2vw, 46px) * var(--ds))/1.3 var(--f-display); text-wrap: balance; }
html[dir="rtl"] .quote-band__txt { font-style: normal; line-height: 1.6; font-weight: 600; }
.quote-band__txt em { color: var(--gold); }
.quote-band__sig { margin-top: 26px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.7); }
html[dir="rtl"] .quote-band__sig { letter-spacing: 0; font-size: 14px; }

/* =========================================================
   ÉQUIPE
   ========================================================= */
.team__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.team__copy .h2 { margin-bottom: 24px; }
.team__copy > p { color: var(--muted); font-size: 18px; }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); }
.counts li { padding: 26px 18px 0 0; }
html[dir="rtl"] .counts li { padding: 26px 0 0 18px; }
.counts li + li { padding-inline-start: 22px; border-inline-start: 1px solid var(--line); }
.counts b { display: block; font: 500 clamp(50px, 5.2vw, 76px)/1 "Bodoni Moda", Didot, Georgia, serif; color: var(--red); }
.counts span { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .counts span { letter-spacing: 0; font-size: 15px; }
.people { display: grid; gap: 22px; perspective: 1400px; }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; padding: 26px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .5s; }
.person:hover { box-shadow: 0 34px 70px -40px rgba(92,10,14,.5); }
.person__mono { position: relative; display: grid; place-items: center; width: 118px; aspect-ratio: 1; border-radius: 22px; background: linear-gradient(150deg, var(--red-hi), var(--red) 45%, var(--wine)); color: #fff; font: italic 300 50px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .02em; box-shadow: 0 22px 40px -18px rgba(176, 28, 34, .7), inset 0 1px 0 rgba(255,255,255,.3); direction: ltr; }
.person__mono::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 16px; }
.person h3 { font: 600 calc(24px * var(--ds))/1.2 var(--f-display); color: var(--ink); }
html[dir="rtl"] .person h3 { font-size: 21px; line-height: 1.5; }
.person__role { margin: 6px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
html[dir="rtl"] .person__role { letter-spacing: 0; font-size: 14px; }
.person ul { display: grid; gap: 6px; }
.person li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.person li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--gold-2); }

/* =========================================================
   RÉFÉRENCES — logos défilants
   ========================================================= */
.clients { overflow: hidden; }
.logos { display: grid; gap: 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__track { display: flex; gap: 20px; width: max-content; animation: marquee 55s linear infinite; }
.logos__row--rev .logos__track { animation-direction: reverse; animation-duration: 62s; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__track li { display: grid; place-items: center; width: 210px; height: 120px; padding: 18px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.logos__track li:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 24px 50px -30px rgba(18,12,12,.45); }
.logos__track img { max-width: 100%; max-height: 76px; width: auto; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05) brightness(1.04); opacity: .8; transition: filter .4s, opacity .4s; }
.logos__track li:hover img { filter: none; opacity: 1; }

/* =========================================================
   FAQ
   ========================================================= */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 30px); }
.faq__head p { color: var(--muted); margin-top: 22px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font: 600 calc(20px * var(--ds))/1.35 var(--f-display); color: var(--ink); transition: color .3s; }
html[dir="rtl"] .qa h3 { font-size: 18px; line-height: 1.6; }
.qa summary:hover h3 { color: var(--red); }
.qa__x { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, border-color .3s, transform .45s var(--ease); }
.qa__x::before, .qa__x::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 1.6px; margin: -.8px 0 0 -7px; background: var(--ink); transition: transform .45s var(--ease), background .3s; }
.qa__x::after { transform: rotate(90deg); }
.qa[open] .qa__x { background: var(--red); border-color: var(--red); transform: rotate(180deg); }
.qa[open] .qa__x::before, .qa[open] .qa__x::after { background: #fff; }
.qa[open] .qa__x::after { transform: rotate(0); }
.qa p { margin: -6px 0 0; padding: 0 60px 28px 0; color: var(--muted); }
html[dir="rtl"] .qa p { padding: 0 0 28px 60px; }
.qa[open] p { animation: fadein .5s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 50% at 0% 0%, rgba(176,28,34,.3), transparent 70%), radial-gradient(40% 50% at 100% 100%, rgba(92,10,14,.4), transparent 70%); pointer-events: none; }
.contact .h2 { color: #fff; }
.contact .h2 em { color: var(--gold); }
.contact .kicker { color: var(--gold); }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__lead { color: var(--on-dark-2); margin: 24px 0 36px; font-size: 18px; }
.cinfo { display: grid; gap: 14px; }
.cinfo li a, .cinfo li > div { display: flex; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); text-decoration: none; transition: border-color .3s, background .3s, transform .4s var(--ease); }
.cinfo li a:hover { border-color: rgba(214,178,94,.5); background: rgba(255,255,255,.06); transform: translateX(4px); }
html[dir="rtl"] .cinfo li a:hover { transform: translateX(-4px); }
.cinfo__ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg, var(--red), var(--wine)); color: #fff; }
.cinfo__ic svg { width: 22px; height: 22px; }
.cinfo small { display: block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
html[dir="rtl"] .cinfo small { letter-spacing: 0; font-size: 13px; }
.cinfo span { font-weight: 500; line-height: 1.5; }
.cinfo .wa { color: #25d366; }
.form { padding: clamp(28px, 3.5vw, 44px); border-radius: 28px; background: var(--paper); color: var(--text); box-shadow: 0 50px 100px -50px rgba(0,0,0,.8); }
.form h3 { font: 600 calc(28px * var(--ds))/1.2 var(--f-display); color: var(--ink); margin-bottom: 6px; }
.form__note { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: 400 16px/1.4 var(--f-body); color: var(--text); transition: border-color .25s, box-shadow .25s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%236f6464' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; padding-inline-end: 42px; }
html[dir="rtl"] .field select { background-position: left 14px center; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(176, 28, 34, .1); }
.field .invalid { border-color: var(--red-hi); background: #fff6f6; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex: none; }
.form__msg { min-height: 1.4em; margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.form__msg.err { color: var(--red); }
.form__msg.ok { color: #1f7a4a; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.map { position: relative; margin-top: clamp(56px, 7vw, 90px); border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: var(--ink-3); aspect-ratio: 21 / 8; min-height: 320px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.map__card { position: absolute; top: 20px; inset-inline-start: 20px; z-index: 1; display: flex; flex-direction: column; gap: 10px; max-width: 320px; padding: 20px 22px; border-radius: 18px; background: rgba(18,12,12,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--on-dark); }
.map__card b { font: 600 20px/1.2 var(--f-display); }
.map__card span { font-size: 14px; color: var(--on-dark-2); }
.map__card a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--gold); text-decoration: none; }
.map__card a svg { width: 16px; height: 16px; }

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.footer { background: #0c0707; color: var(--on-dark-2); padding: 80px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.footer .brand { color: var(--on-dark); margin-bottom: 22px; }
.footer h2 { font: 700 12px/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
html[dir="rtl"] .footer h2 { letter-spacing: 0; font-size: 14px; }
.footer ul { display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .25s; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 24px 0 30px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; }
.footer__bottom .lang { border-color: rgba(255,255,255,.12); }
.to-top { display: inline-flex; align-items: center; gap: 8px; }
.to-top svg { width: 16px; height: 16px; transform: rotate(-90deg); }

/* ---------- Barre d'action mobile ---------- */
.mbar { display: none; }

/* =========================================================
   ANIMATIONS AU DÉFILEMENT
   ========================================================= */
html.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
html.js .reveal-3d { opacity: 0; transform: translateY(50px) rotateX(-22deg) scale(.96); transform-origin: 50% 100%; transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 100ms); }
html.js .reveal.in, html.js .reveal-3d.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }
html.js [data-speed] { will-change: transform; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1140px) {
  .nav > a { padding: 10px 9px; font-size: 14px; }
  .header__end .btn { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .burger { display: block; }
  .header__end .lang { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
    padding: 100px var(--gut) 40px; margin: 0; background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav > a { padding: 8px 0; font: 500 calc(34px * var(--ds))/1.3 var(--f-display); color: var(--on-dark); transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease), opacity .6s, color .25s; }
  .nav.open > a { transform: none; opacity: 1; }
  .nav.open > a:nth-child(2) { transition-delay: .04s; } .nav.open > a:nth-child(3) { transition-delay: .08s; }
  .nav.open > a:nth-child(4) { transition-delay: .12s; } .nav.open > a:nth-child(5) { transition-delay: .16s; }
  .nav.open > a:nth-child(6) { transition-delay: .2s; } .nav.open > a:nth-child(7) { transition-delay: .24s; }
  .nav > a::after { display: none; }
  .nav .lang { display: flex; margin-top: 28px; }
  .nav .lang a { font-size: 15px; padding: 8px 16px; }
  body.menu-open { overflow: hidden; }
  .header.menu { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .hero__fallback { top: 215px; inset-inline-end: 50%; transform: translate(50%, -50%) scale(.6); }
  html[dir="rtl"] .hero__fallback { transform: translate(-50%, -50%) scale(.6); }
  .hero__in { justify-content: flex-start; padding-top: calc(var(--header-h) + 270px); padding-bottom: 60px; gap: 40px; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stats li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .hero__scroll { display: none; }

  .about__grid, .team__grid, .faq__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .about__media { max-width: 520px; width: 88%; margin-inline: auto; }
  .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .ring { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domains__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .domains.is-3d .ring-stage { --h: 420px; }
  .ring-hint { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps__line { display: none; }
  .faq__head { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__txt small { display: none; }
  .brand__txt b { font-size: 18px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats li { padding-top: 16px; }
  .hero__stats span { font-size: 12px; }
  .band { margin-top: -24px; padding: 15px 0; }
  .values__grid, .ring, .steps { grid-template-columns: minmax(0, 1fr); }
  .value { padding: 28px 24px; }
  .domains.is-3d .ring-stage { --w: min(290px, 76vw); --h: 390px; perspective: 1100px; margin-top: 18px; }
  .domains.is-3d .domains__lead { display: none; }
  .domains.is-3d .h2 { font-size: calc(32px * var(--ds)); }
  .domains.is-3d .kicker { margin-bottom: 12px; }
  .domains.is-3d .dcard p { font-size: 14px; margin-bottom: 12px; }
  .domains.is-3d .dcard__top { margin-bottom: 18px; }
  .dcard { padding: 24px 22px; }
  .person { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .person__mono { width: 92px; font-size: 40px; }
  .counts b { font-size: 54px; }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .qa p { padding-inline-end: 0 !important; padding-inline-start: 0 !important; }
  .map { aspect-ratio: auto; height: 420px; }
  .map__card { inset-inline: 14px; top: 14px; max-width: none; }
  .logos__track li { width: 160px; height: 96px; padding: 14px 18px; }
  .logos__track img { max-height: 60px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .footer { padding-bottom: 76px; }
  .mbar { position: fixed; inset: auto 0 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(18, 12, 12, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: translateY(110%); transition: transform .5s var(--ease); }
  body.past-hero .mbar { transform: none; }
  body.menu-open .mbar { transform: translateY(110%); }
  .mbar .btn { padding: 13px 12px; font-size: 14.5px; }
}

@media (max-height: 780px) and (min-width: 641px) {
  .domains.is-3d .ring-stage { --h: 400px; margin-top: 16px; }
  .domains.is-3d .domains__lead { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js .reveal, html.js .reveal-3d, .split .w > span, html.js .hero__copy > *, html.js .hero__stats { opacity: 1 !important; transform: none !important; }
}
@media print {
  .header, .hero__canvas, .band, .mbar, .map, .form, .progress { display: none !important; }
  .hero, .domains, .contact, .expertise { background: none !important; color: #000 !important; }
}
