/* ===== SELF-HOSTED FONTS — V1 ===== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/space-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-grotesk-700.woff2') format('woff2'); }

/* =========================================================
   BITWIN US — Main stylesheet
   Corporate IT services firm
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette */
  --navy: #152B43;
  --navy-deep: #0D1D2E;
  --navy-soft: #1E3A57;
  --royal: #428FDF;
  --royal-dark: #2A6BB5;
  --terracotta: #C65D3B;
  --terracotta-soft: #E8896A;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --grey-50: #EEF1F5;
  --grey-100: #D9DFE6;
  --grey-300: #9AA5B1;
  --grey-500: #5A6876;
  --grey-700: #334152;
  --grey-900: #1A2330;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--off-white);
  --bg-dark: var(--navy);
  --text: var(--grey-900);
  --text-muted: var(--grey-500);
  --text-invert: var(--white);
  --border: var(--grey-100);
  --accent: var(--royal);
  --accent-warm: var(--terracotta);

  /* Typography */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;
  --space-20: 9rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(21, 43, 67, 0.06);
  --shadow-md: 0 6px 20px rgba(21, 43, 67, 0.08);
  --shadow-lg: 0 20px 50px rgba(21, 43, 67, 0.12);
  --shadow-accent: 0 10px 30px rgba(66, 143, 223, 0.25);

  /* Transition */
  --t-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 520ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 1240px;
  --container-narrow: 960px;
  --header-h: 80px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: var(--space-16) 0;
  position: relative;
}
.section--dark { background: var(--bg-dark); color: var(--text-invert); }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.section--dark .eyebrow { color: var(--terracotta-soft); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-5);
  max-width: 780px;
}
.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: var(--space-10);
}
.section--dark .section-lead { color: rgba(255, 255, 255, 0.72); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--r-md);
  transition: all var(--t-base);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--royal);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--royal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn--outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--terracotta);
  background: rgba(198, 93, 59, 0.1);
}
.btn--terracotta {
  background: var(--terracotta);
  color: var(--white);
}
.btn--terracotta:hover {
  background: #A94A2D;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(198, 93, 59, 0.3);
}
.btn--ghost {
  color: var(--accent);
  padding: 10px 0;
}
.btn--ghost:hover { color: var(--terracotta); gap: var(--space-3); }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 5. Header & Navigation ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(21, 43, 67, 0.0);
  transition: background var(--t-base), box-shadow var(--t-base);
}
.header.is-scrolled {
  background: rgba(21, 43, 67, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.header__logo img {
  height: 44px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__list {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--t-fast);
  position: relative;
}
.nav__link:hover { color: var(--white); }
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width var(--t-base);
}
.nav__link:hover::after { width: 100%; }

.lang-switch {
  display: flex;
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  padding: 3px;
}
.lang-switch a {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  transition: all var(--t-fast);
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a.is-active {
  background: var(--royal);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  color: var(--white);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px auto;
  transition: all var(--t-fast);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(66, 143, 223, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(198, 93, 59, 0.12), transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-12);
  align-items: center;
  width: 100%;
  padding: var(--space-12) 0;
}
.hero__content { max-width: 680px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.hero__eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(198, 93, 59, 0.2);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(198, 93, 59, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(198, 93, 59, 0); }
}
.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.05;
  font-weight: 600;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}
.hero__title .accent {
  color: var(--royal);
  font-style: italic;
  font-weight: 500;
}
.hero__lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-8);
  max-width: 600px;
}
.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-2);
}
.hero__visual {
  position: relative;
  height: 520px;
}
.hero__visual svg { width: 100%; height: 100%; }
.hero__scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollIndicator 2s infinite;
}
@keyframes scrollIndicator {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 7. Capabilities (services) ---------- */
.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.cap {
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.cap::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--terracotta);
  transition: height var(--t-base);
}
.cap:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.cap:hover::before { height: 100%; }
.cap__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: rgba(66, 143, 223, 0.1);
  color: var(--royal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  transition: all var(--t-base);
}
.cap:hover .cap__icon {
  background: var(--royal);
  color: var(--white);
  transform: scale(1.05);
}
.cap__title {
  font-size: 1.3rem;
  margin-bottom: var(--space-3);
}
.cap__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-5);
}
.cap__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--grey-700);
}
.cap__list li {
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
}
.cap__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 12px; height: 2px;
  background: var(--royal);
}

/* ---------- 8. Industries ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}
.industry {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  transition: all var(--t-base);
  cursor: default;
}
.industry:hover {
  background: rgba(66, 143, 223, 0.12);
  border-color: var(--royal);
  transform: translateY(-4px);
}
.industry__icon {
  width: 40px; height: 40px;
  color: var(--royal);
  margin-bottom: var(--space-4);
}
.industry:hover .industry__icon { color: var(--terracotta-soft); }
.industry__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--white);
}
.industry__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* ---------- 9. Approach ---------- */
.approach {
  position: relative;
  padding: var(--space-8) 0;
}
.approach__line {
  position: absolute;
  top: 56px;
  left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--border) 10%, var(--border) 90%, transparent);
  z-index: 0;
}
.approach__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}
.step {
  text-align: left;
  padding: 0 var(--space-2);
}
.step__num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--royal);
  color: var(--royal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-5);
  transition: all var(--t-base);
  box-shadow: 0 0 0 8px var(--bg-alt);
}
.step:hover .step__num {
  background: var(--royal);
  color: var(--white);
  transform: scale(1.08);
}
.step__title {
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
}
.step__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- 10. Proof / Case studies ---------- */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--border);
}
.case:last-child { border-bottom: 0; }
.case:nth-child(even) .case__text { order: 2; }
.case__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}
.case__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(66, 143, 223, 0.3), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(198, 93, 59, 0.15), transparent 50%);
}
.case__metric {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}
.case__metric-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--royal);
  margin-bottom: var(--space-3);
}
.case__metric-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 280px;
  margin: 0 auto;
}
.case__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(66, 143, 223, 0.1);
  color: var(--royal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.case__title {
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
}
.case__challenge {
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  font-size: 1rem;
}
.case__results {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.case__result {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
}
.case__result-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--terracotta);
  min-width: 90px;
}
.case__result-text {
  font-size: 0.95rem;
  color: var(--grey-700);
}

/* ---------- 11. Bridge Africa section ---------- */
.bridge {
  position: relative;
  background: linear-gradient(135deg, #8B3A1F 0%, #C65D3B 60%, #E8896A 100%);
  color: var(--white);
  overflow: hidden;
}
.bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 85% 50%, rgba(21, 43, 67, 0.25), transparent 50%);
}
.bridge__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.bridge__eyebrow { color: rgba(255, 255, 255, 0.85); }
.bridge__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: var(--space-5);
}
.bridge__text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
}
.bridge__offers {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.bridge__offer {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  backdrop-filter: blur(8px);
}
.bridge__offer-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  min-width: 32px;
}
.bridge__offer-text { font-size: 0.95rem; }
.bridge__visual {
  aspect-ratio: 1;
  max-width: 440px;
  margin-left: auto;
}

/* ---------- 12. Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: start;
}
.contact__info-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.contact__info-item:last-child { border-bottom: 0; }
.contact__info-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: rgba(66, 143, 223, 0.1);
  color: var(--royal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__info-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.contact__info-value {
  font-weight: 500;
  color: var(--text);
}
.contact__info-value a:hover { color: var(--accent); }

.form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.field { position: relative; margin-bottom: var(--space-4); }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-700);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  transition: all var(--t-fast);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(66, 143, 223, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--check {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--grey-700);
}
.field--check input { width: auto; margin-top: 3px; }
.form__msg {
  padding: var(--space-4);
  border-radius: var(--r-sm);
  margin-bottom: var(--space-4);
  display: none;
  font-size: 0.92rem;
}
.form__msg.is-visible { display: block; }
.form__msg--ok { background: #E8F5ED; color: #1E6B3A; border: 1px solid #B8DBC6; }
.form__msg--error { background: #FCE8E8; color: #8B2323; border: 1px solid #E8B8B8; }

/* ---------- 13. Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-12) 0 var(--space-6);
  font-size: 0.92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}
.footer__about { max-width: 360px; }
.footer__logo {
  height: 52px;
  margin-bottom: var(--space-5);
}
.footer__tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-5);
}
.footer__social {
  display: flex;
  gap: var(--space-3);
}
.footer__social a {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--t-fast);
}
.footer__social a:hover {
  background: var(--royal);
  color: var(--white);
  transform: translateY(-2px);
}
.footer__col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}
.footer__col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--terracotta-soft); }
.footer__bottom {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer__bottom-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- 14. Scroll animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal[data-delay="2"] { transition-delay: 200ms; }
.reveal[data-delay="3"] { transition-delay: 300ms; }
.reveal[data-delay="4"] { transition-delay: 400ms; }
.reveal[data-delay="5"] { transition-delay: 500ms; }

/* ---------- 15. Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  max-width: 540px;
  margin: 0 auto;
  background: var(--navy);
  color: var(--white);
  padding: var(--space-5);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  display: none;
  font-size: 0.9rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin-bottom: var(--space-4); color: rgba(255, 255, 255, 0.85); }
.cookie-banner a { color: var(--terracotta-soft); text-decoration: underline; }
.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}
.cookie-banner button {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.cookie-banner .btn-refuse {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}
.cookie-banner .btn-refuse:hover { color: var(--white); }
.cookie-banner .btn-accept {
  background: var(--royal);
  color: var(--white);
}
.cookie-banner .btn-accept:hover { background: var(--royal-dark); }

/* ---------- 16. Legal pages ---------- */
.legal-page {
  padding-top: calc(var(--header-h) + var(--space-10));
  padding-bottom: var(--space-16);
  background: var(--bg-alt);
  min-height: 100vh;
}
.legal-page .container { max-width: 820px; }
.legal-page h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-4);
}
.legal-page h2 {
  font-size: 1.4rem;
  margin: var(--space-8) 0 var(--space-4);
  color: var(--navy);
}
.legal-page p, .legal-page li {
  color: var(--grey-700);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.legal-page ul { padding-left: var(--space-6); }
.legal-page a { color: var(--royal); }
.legal-page a:hover { color: var(--terracotta); }
.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--grey-500);
  font-size: 0.9rem;
  margin-bottom: var(--space-6);
  transition: color var(--t-fast);
}
.legal-page__back:hover { color: var(--royal); }
.legal-page__updated {
  display: inline-block;
  padding: 4px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--grey-500);
  margin-bottom: var(--space-6);
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .section { padding: var(--space-12) 0; }
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero__visual { height: 320px; max-width: 440px; margin: 0 auto; }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .approach__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .approach__line { display: none; }
  .case { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-8) 0; }
  .case:nth-child(even) .case__text { order: 1; }
  .bridge__inner { grid-template-columns: 1fr; }
  .bridge__visual { max-width: 280px; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .footer__about { grid-column: 1 / -1; }

  .nav__list {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav__list.is-open { display: flex; }
  .nav-toggle { display: block; }
  .header.is-scrolled,
  .nav__list.is-open ~ * .header { background: var(--navy); }
  body:has(.nav__list.is-open) .header { background: var(--navy); }
}

@media (max-width: 640px) {
  .section { padding: var(--space-10) 0; }
  .section-title { font-size: 1.75rem; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .hero__stat-num { font-size: 1.75rem; }
  .caps, .industries { grid-template-columns: 1fr; }
  .approach__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: var(--space-5); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. Print ---------- */
@media print {
  .header, .footer, .cookie-banner, .hero__scroll, .nav-toggle { display: none; }
  .hero { min-height: auto; color: var(--text); background: none; }
  .section--dark { background: none; color: var(--text); }
}

/* ========================================================= 
   LENIS SMOOTH SCROLL + FIL CONDUCTEUR — V1
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---- Fil conducteur (desktop) ---- */
.thread {
  position: fixed;
  left: clamp(14px, 2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  height: min(60vh, 540px);
  width: 40px;
  z-index: 60;
  pointer-events: none;
  --thread-accent: #428FDF;
}
.thread__line {
  position: absolute;
  left: 6px; top: 0;
  width: 1.5px; height: 100%;
  background: rgba(21, 43, 67, 0.14);
  overflow: hidden;
}
.thread__fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 0%;
  background: var(--thread-accent);
  box-shadow: 0 0 7px rgba(66, 143, 223, 0.5);
  transition: height 0.1s linear, background 0.6s ease, box-shadow 0.6s ease;
}
.thread__nodes { position: absolute; left: 0; top: 0; height: 100%; width: 100%; }
.thread__node {
  position: absolute;
  left: 6px;
  transform: translate(-50%, -50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid rgba(21, 43, 67, 0.28);
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: width 0.35s cubic-bezier(.2,.7,.2,1), height 0.35s cubic-bezier(.2,.7,.2,1),
              border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.thread__node:hover { border-color: var(--thread-accent); }
.thread__node.is-past {
  border-color: var(--thread-accent);
  background: var(--thread-accent);
}
.thread__node.is-active {
  width: 13px; height: 13px;
  border-color: var(--thread-accent);
  background: var(--thread-accent);
  box-shadow: 0 0 0 4px rgba(66, 143, 223, 0.14), 0 0 12px rgba(66, 143, 223, 0.5);
}
/* ripple ring emitted when a node becomes active */
.thread__ripple {
  position: absolute;
  left: 6px; top: 50%;
  width: 13px; height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  border: 1.5px solid var(--thread-accent);
  pointer-events: none;
  animation: threadRipple 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes threadRipple {
  from { transform: scale(1); opacity: 0.85; }
  to   { transform: scale(4.2); opacity: 0; }
}
.thread__label {
  position: absolute;
  left: 20px;
  transform: translateY(-50%);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 1px;
  /* frosted pill — keeps the label legible over any section background */
  background: rgba(11, 25, 41, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 7px 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.thread__label-num {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--thread-accent);
  transition: color 0.5s ease;
}
.thread__label-text {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #EAF1F8;
}
@media (max-width: 767px) { .thread { display: none; } }

/* ---- Mobile top progress bar ---- */
.thread-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  z-index: 60;
  background: rgba(21, 43, 67, 0.1);
}
.thread-bar__fill {
  height: 100%; width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, #428FDF, #C65D3B);
}
@media (min-width: 768px) { .thread-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .thread__node, .thread__label, .thread__fill { transition: none; }
}

/* ========================================================= 
   CONSENT MANAGER — V1
   ========================================================= */
.consent__banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, calc(100% + 40px));
  width: min(680px, calc(100vw - 32px));
  background: var(--navy-deep, #0D1D2E);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 1.6rem 1.7rem;
  z-index: 200;
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), opacity 0.45s ease;
}
.consent__banner.is-visible { transform: translate(-50%, 0); opacity: 1; }
.consent__title {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1.05rem; font-weight: 600; color: #fff; margin: 0 0 0.5rem;
}
.consent__text {
  font-size: 0.86rem; line-height: 1.6; color: rgba(255, 255, 255, 0.72); margin: 0 0 1.2rem;
}
.consent__text a { color: var(--royal, #428FDF); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions, .consent__modal-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.consent__btn {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 0.82rem; font-weight: 500; padding: 0.62rem 1.1rem;
  border-radius: 8px; cursor: pointer; border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex: 1; min-width: 120px;
}
.consent__btn--ghost {
  background: transparent; border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.85);
}
.consent__btn--ghost:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.consent__btn--primary { background: var(--royal, #428FDF); color: #fff; }
.consent__btn--primary:hover { background: var(--royal-dark, #2A6BB5); }
.consent__btn:focus-visible { outline: 2px solid var(--royal, #428FDF); outline-offset: 2px; }

.consent__modal[hidden] { display: none; }
.consent__modal {
  position: fixed; inset: 0; z-index: 210;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; transition: opacity 0.26s ease;
}
.consent__modal.is-visible { opacity: 1; }
.consent__overlay { position: absolute; inset: 0; background: rgba(5, 12, 20, 0.7); backdrop-filter: blur(2px); }
.consent__modal-inner {
  position: relative;
  width: min(560px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--navy-deep, #0D1D2E);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px; padding: 1.8rem;
  transform: translateY(12px); transition: transform 0.26s cubic-bezier(.2,.7,.2,1);
}
.consent__modal.is-visible .consent__modal-inner { transform: translateY(0); }
.consent__modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.consent__modal-head h2 {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1.2rem; font-weight: 600; color: #fff; margin: 0;
}
.consent__close {
  background: transparent; border: none; color: rgba(255, 255, 255, 0.6);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.5rem; border-radius: 6px;
}
.consent__close:hover { color: #fff; }
.consent__close:focus-visible { outline: 2px solid var(--royal, #428FDF); outline-offset: 2px; }
.consent__modal-intro { font-size: 0.85rem; line-height: 1.6; color: rgba(255, 255, 255, 0.65); margin: 0 0 1.4rem; }
.consent__cats { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.6rem; }
.consent__cat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px; padding: 1rem 1.1rem;
}
.consent__cat-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.4rem; }
.consent__cat-name {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 0.92rem; font-weight: 600; color: #fff;
}
.consent__cat-desc { font-size: 0.8rem; line-height: 1.55; color: rgba(255, 255, 255, 0.58); margin: 0; }
.consent__locked {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--royal, #428FDF); white-space: nowrap;
}
.consent__switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.consent__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.consent__switch-track {
  position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  background: rgba(255, 255, 255, 0.18); transition: background 0.2s ease;
}
.consent__switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform 0.2s cubic-bezier(.2,.7,.2,1);
}
.consent__switch input:checked + .consent__switch-track { background: var(--royal, #428FDF); }
.consent__switch input:checked + .consent__switch-track::after { transform: translateX(18px); }
.consent__switch input:focus-visible + .consent__switch-track { outline: 2px solid var(--royal, #428FDF); outline-offset: 2px; }

.consent-link { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.consent-link:hover { color: var(--royal, #428FDF); }

@media (max-width: 560px) {
  .consent__banner { padding: 1.3rem; bottom: 12px; }
  .consent__btn { flex: 1 1 100%; }
  .consent__modal-inner { padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .consent__banner, .consent__modal, .consent__modal-inner, .consent__switch-track::after { transition: none; }
}
