/* ==========================================================================
   Logiciel ZRJ Inc — site styles
   Palette taken from the existing brand: logo navy + lime, the original
   site's green / emerald / teal accents, gray neutrals, and the indigo / sky
   project accents.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand (logo) */
  --ink: #1c232b;
  --ink-deep: #111827;
  --lime: #95c838;

  /* Original site accents */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --emerald: #34d399;
  --teal: #2dd4bf;
  --mint: #a8e6a1;
  --mint-2: #7bd389;
  --indigo: #6366f1;
  --indigo-700: #4338ca;
  --sky: #0ea5e9;
  --sky-700: #0369a1;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;

  /* Derived */
  --grad-primary: linear-gradient(90deg, var(--teal), var(--emerald));
  --grad-accent: linear-gradient(90deg, var(--mint), var(--mint-2));
  --line: var(--gray-200);
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(17, 24, 39, 0.18), 0 4px 10px -6px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(17, 24, 39, 0.35);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-deep);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

h1 { font-size: clamp(2.35rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; letter-spacing: -0.005em; }

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.on-dark .eyebrow,
.eyebrow.on-dark { color: var(--lime); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--gray-600);
}
.section--dark .lead,
.on-dark .lead { color: rgba(255, 255, 255, 0.74); }

.text-accent { color: var(--green-600); }
.section--dark .text-accent,
.hero .text-accent,
.page-hero .text-accent,
.on-dark .text-accent { color: var(--lime); }
.hero .lead,
.page-hero .lead { color: rgba(255, 255, 255, 0.74); }

.muted { color: var(--gray-500); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  background: var(--btn-bg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--grad-primary);
  color: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(45, 212, 191, 0.7);
}
.btn-primary:hover {
  box-shadow: 0 14px 28px -10px rgba(52, 211, 153, 0.75);
  background: linear-gradient(90deg, #26c6b2, #2bc98d);
}

.btn-outline {
  border-color: var(--gray-300);
  color: var(--ink-deep);
  background: var(--white);
}
.btn-outline:hover {
  border-color: var(--green-600);
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}
.btn-ghost-light:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(255, 255, 255, 0.04);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-700);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow .arrow { transition: transform 0.25s var(--ease); }
.link-arrow:hover { border-color: currentColor; }
.link-arrow:hover .arrow { transform: translateX(4px); }
.on-dark .link-arrow,
.section--dark .link-arrow { color: var(--lime); }

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar-group { display: flex; align-items: center; gap: 22px; }
.topbar a:hover { color: var(--lime); }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 14px; height: 14px; color: var(--lime); flex: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--gray-200);
  box-shadow: 0 8px 24px -18px rgba(17, 24, 39, 0.4);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink-deep);
  letter-spacing: -0.01em;
}
.brand-name small {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.nav-link:hover {
  background: var(--gray-100);
  color: var(--ink-deep);
}
.nav-link[aria-current="page"] {
  background: var(--green-50);
  border-color: var(--green-100);
  color: var(--green-800);
}
.nav-cta { margin-left: 8px; min-height: 42px; padding: 10px 18px; font-size: 0.8125rem; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}
.menu-toggle-lines { position: relative; width: 20px; height: 14px; }
.menu-toggle-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-deep);
}
.menu-toggle-lines span:nth-child(1) { top: 0; }
.menu-toggle-lines span:nth-child(2) { top: 6px; }
.menu-toggle-lines span:nth-child(3) { top: 12px; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--white);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
}
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu .brand-name { color: var(--white); }
.mobile-menu .brand-name small { color: rgba(255, 255, 255, 0.55); }
.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.menu-close svg { width: 20px; height: 20px; }
.mobile-menu nav { padding-block: 24px 16px; }
.mobile-links { list-style: none; display: grid; gap: 6px; }
.mobile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  opacity: 0;
  transform: translateY(10px);
}
.mobile-menu.is-open .mobile-links a {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease) calc(0.05s * var(--i, 0) + 0.1s),
    transform 0.4s var(--ease) calc(0.05s * var(--i, 0) + 0.1s),
    background-color 0.2s, border-color 0.2s;
}
.mobile-links a:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--lime); }
.mobile-links a[aria-current="page"] { border-color: var(--lime); color: var(--lime); }
.mobile-links a span { color: var(--lime); font-size: 1rem; }
.mobile-menu-foot {
  margin-top: auto;
  padding-block: 20px 32px;
  display: grid;
  gap: 18px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
}
.mobile-menu-foot .btn { width: 100%; }

@media (max-width: 1199px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 767px) {
  .topbar-hide-sm { display: none; }
  .topbar .container { justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--muted { background: var(--gray-50); }
.section--dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }

.section-head {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px 48px;
}
.section-head--split > div { display: grid; gap: 18px; max-width: 720px; }
@media (max-width: 767px) {
  .section-head--split { grid-template-columns: 1fr; }
}

/* Subtle data-grid backdrop used on dark sections */
.grid-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  pointer-events: none;
}
.grid-backdrop > * { position: relative; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 120px) clamp(72px, 10vw, 132px);
}
.hero h1 { color: var(--white); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy .lead { max-width: 560px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.66);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.hero-visual { position: relative; }
.hero-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-dark);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(28, 35, 43, 0) 40%, rgba(28, 35, 43, 0.55));
}

.data-card {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.97);
  color: var(--gray-800);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.data-card-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.data-card--flow { left: -28px; bottom: 34px; width: 250px; }
.data-card--bars { right: -22px; top: 28px; width: 200px; }

.flow-steps { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.flow-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
}
.flow-steps .dot {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-700);
}
.flow-steps .dot svg { width: 11px; height: 11px; }
.flow-steps li.is-active .dot { background: var(--grad-primary); border-color: transparent; color: var(--ink); }

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  margin-top: 12px;
}
.mini-bars span {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: var(--gray-200);
  height: var(--h);
  transform-origin: bottom;
}
.mini-bars span.is-hi { background: var(--grad-primary); }
.is-visible .mini-bars span { animation: grow 0.9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 0.4s); }
@keyframes grow { from { transform: scaleY(0.1); } to { transform: scaleY(1); } }

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .data-card--flow { left: 12px; bottom: 12px; }
  .data-card--bars { right: 12px; top: 12px; }
}
@media (max-width: 479px) {
  .data-card--bars { display: none; }
  .data-card--flow { width: auto; right: 12px; padding: 12px 14px; }
  .hero-copy .btn-row, .hero-copy .btn-row .btn { width: 100%; }
}

/* ---------- Problem → Solution ---------- */
.ps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}
.ps-panel {
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  display: grid;
  gap: 20px;
  align-content: start;
}
.ps-panel--problem { background: var(--white); border: 1px solid var(--line); }
.ps-panel--solution {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
}
.ps-panel--solution h3 { color: var(--white); }
.ps-panel--solution::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 100%;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) 0.5s;
}
.ps-panel--solution.is-visible::after { transform: scaleX(1); }
.ps-tag {
  justify-self: start;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--gray-600);
}
.ps-panel--solution .ps-tag { background: rgba(149, 200, 56, 0.14); color: var(--lime); }
.ps-list { list-style: none; display: grid; gap: 14px; }
.ps-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.975rem;
}
.ps-list svg { width: 22px; height: 22px; margin-top: 2px; }
.ps-panel--problem .ps-list svg { color: var(--gray-400); }
.ps-panel--solution .ps-list svg { color: var(--lime); }
.ps-list strong { color: var(--ink-deep); font-weight: 700; }
.ps-panel--solution .ps-list strong { color: var(--white); }
.ps-arrow {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.ps-arrow svg { width: 22px; height: 22px; }
@media (max-width: 899px) {
  .ps-grid { grid-template-columns: 1fr; }
  .ps-arrow { justify-self: center; transform: rotate(90deg); }
}

.ps-media {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.ps-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.ps-media figure img { width: 100%; height: 100%; object-fit: cover; }
.ps-quote {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-deep);
  letter-spacing: -0.015em;
}
@media (max-width: 899px) { .ps-media { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}
.service-card:hover::after,
.service-card:focus-within::after { transform: scaleX(1); }
.service-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-100); }
.service-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.service-card:hover .service-media img { transform: scale(1.04); }
.service-body { display: grid; gap: 12px; padding: 24px 24px 28px; flex: 1; align-content: start; }
.service-num {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: 0.06em;
  transition: transform 0.35s var(--ease);
}
.service-card:hover .service-num { transform: translateX(6px); }
.service-body p { color: var(--gray-600); font-size: 0.9625rem; }
.service-body .link-arrow { margin-top: 6px; justify-self: start; }
.service-body .link-arrow::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 1023px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 679px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Why section ---------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.why-statement {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
}
.why-statement em { font-style: normal; color: var(--lime); }
.why-list { list-style: none; display: grid; margin-top: 36px; border-top: 1px solid var(--line-dark); }
.why-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line-dark);
}
.why-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  color: var(--lime);
}
.why-icon svg { width: 22px; height: 22px; }
.why-list h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.why-list p { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.66); }
.why-media { position: relative; }
.why-media figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.why-media figure img { width: 100%; height: 110%; object-fit: cover; }
.why-quote {
  position: absolute;
  left: -32px; bottom: 32px;
  max-width: 320px;
  background: var(--white);
  color: var(--ink-deep);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.35;
}
.why-quote small {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
}
@media (max-width: 899px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-media figure { aspect-ratio: 16 / 11; }
  .why-quote { position: relative; left: auto; bottom: auto; margin: -48px 16px 0; max-width: none; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 28px 24px 0 0; display: grid; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat .stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.03em;
}
.stat-num span { color: var(--lime); }
.stat p { font-size: 0.875rem; color: rgba(255, 255, 255, 0.62); }
@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-dark); margin-top: 24px; }
}

/* ---------- Project preview (home) ---------- */
.project-preview-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.pp-card {
  --accent: var(--green-600);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pp-card:hover,
.pp-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pp-card--a { grid-column: span 7; grid-row: span 2; }
.pp-card--b, .pp-card--c { grid-column: span 5; flex-direction: row; }
.pp-card--b { --accent: var(--indigo); }
.pp-card--c { --accent: var(--sky); }
.pp-media { position: relative; overflow: hidden; background: var(--gray-100); }
.pp-card--a .pp-media { aspect-ratio: 16 / 10; }
.pp-card--b .pp-media, .pp-card--c .pp-media { flex: 0 0 42%; }
.pp-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.pp-card:hover .pp-media img { transform: scale(1.04); }
.pp-body { display: grid; gap: 10px; padding: 26px; align-content: start; flex: 1; }
.pp-body::before {
  content: "";
  width: 36px; height: 3px;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.pp-card:hover .pp-body::before { width: 64px; }
.pp-meta {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.pp-body h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.pp-sub { font-size: 0.875rem; font-weight: 600; color: var(--gray-600); }
.pp-body p:not(.pp-meta):not(.pp-sub) { color: var(--gray-600); font-size: 0.9375rem; }
.pp-body .link-arrow { margin-top: 8px; justify-self: start; }
.pp-body .link-arrow::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 1023px) {
  .pp-card--a, .pp-card--b, .pp-card--c { grid-column: span 12; grid-row: auto; }
}
@media (max-width: 599px) {
  .pp-card--b, .pp-card--c { flex-direction: column; }
  .pp-card--b .pp-media, .pp-card--c .pp-media { flex: none; aspect-ratio: 16 / 10; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(72px, 9vw, 112px);
}
.cta-band-bg { position: absolute; inset: 0; }
.cta-band-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.cta-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 25%, rgba(28, 35, 43, 0.7));
}
.cta-band .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 56px;
  align-items: end;
}
.cta-band h2 { color: var(--white); max-width: 760px; }
.cta-band p { margin-top: 18px; max-width: 620px; }
@media (max-width: 899px) { .cta-band .container { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  overflow: hidden;
  padding-block: clamp(72px, 10vw, 136px) clamp(64px, 8vw, 104px);
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--ink) 30%, rgba(28, 35, 43, 0.55) 75%, rgba(28, 35, 43, 0.35));
}
.page-hero .container { position: relative; display: grid; gap: 22px; justify-items: start; }
.page-hero h1 { color: var(--white); max-width: 900px; font-size: clamp(2.2rem, 5.2vw, 4rem); }
.page-hero .lead { max-width: 680px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.breadcrumb a:hover { color: var(--lime); }

/* ---------- About ---------- */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.story-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 18px; }
.story-body { display: grid; gap: 22px; font-size: 1.0625rem; color: var(--gray-600); }
.story-body .story-lede {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: -0.015em;
}
.story-body figure { margin: 12px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.story-body figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-aside { position: static; }
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  overflow: hidden;
}
.mv-item { padding: clamp(28px, 4vw, 56px); display: grid; gap: 16px; align-content: start; }
.mv-item + .mv-item { border-left: 1px solid var(--line-dark); }
.mv-item blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.02em;
}
.mv-item p { color: rgba(255, 255, 255, 0.68); }
@media (max-width: 767px) {
  .mv-grid { grid-template-columns: 1fr; }
  .mv-item + .mv-item { border-left: 0; border-top: 1px solid var(--line-dark); }
}

.values-list { list-style: none; border-top: 1px solid var(--line); }
.value-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  padding-block: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background-color 0.3s;
}
.value-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--green-700);
}
.value-row h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.value-row p { color: var(--gray-600); }
@media (max-width: 767px) {
  .value-row { grid-template-columns: 1fr; gap: 8px; }
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-split figure { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.about-split figure img { width: 100%; height: 100%; object-fit: cover; }
.about-split .copy { display: grid; gap: 18px; }
@media (max-width: 899px) { .about-split { grid-template-columns: 1fr; } }

.pillars { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.pillars li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink-deep);
  background: var(--white);
}
.pillars svg { width: 22px; height: 22px; color: var(--green-600); flex: none; }

/* ---------- Services page ---------- */
.svc-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.svc-index a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.svc-index a span { color: var(--lime); font-weight: 800; }
.svc-index a:hover { border-color: var(--lime); background: rgba(255, 255, 255, 0.04); }

.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.svc-row + .svc-row { margin-top: clamp(80px, 11vw, 144px); }
.svc-row--reverse .svc-media { order: 2; }
.svc-media { position: relative; }
.svc-media figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
}
.svc-media figure img { width: 100%; height: 100%; object-fit: cover; }
.svc-media .svc-bignum {
  position: absolute;
  top: -28px;
  left: -10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--green-600);
  letter-spacing: -0.04em;
  pointer-events: none;
}
.svc-row--reverse .svc-bignum { left: auto; right: -10px; }
.svc-copy { display: grid; gap: 20px; align-content: start; }
.svc-copy > p { color: var(--gray-600); font-size: 1.0625rem; }
.svc-blocks { display: grid; gap: 14px; margin-top: 4px; }
.svc-block {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
}
.svc-block--solution { border-color: var(--green-100); background: var(--green-50); }
.svc-block-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--gray-600);
}
.svc-block--solution .svc-block-icon { background: var(--white); color: var(--green-700); }
.svc-block-icon svg { width: 20px; height: 20px; }
.svc-block h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.svc-block--solution h3 { color: var(--green-700); }
.svc-block p { font-size: 0.9625rem; color: var(--gray-700); }
.svc-copy .btn-row { margin-top: 6px; }
@media (max-width: 899px) {
  .svc-row { grid-template-columns: 1fr; }
  .svc-row--reverse .svc-media { order: 0; }
  .svc-media .svc-bignum { top: -20px; }
}

.approach {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: step;
}
.approach-step {
  position: relative;
  padding: 32px 28px 8px 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.approach-step + .approach-step { padding-left: 28px; border-left: 1px solid var(--line); }
.approach-step::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 0; height: 3px;
  background: var(--grad-primary);
  transition: width 0.9s var(--ease) calc(var(--i, 0) * 0.15s + 0.2s);
}
.approach-step.is-visible::before { width: 100%; }
.approach-step .step-num { font-family: var(--font-head); font-weight: 800; color: var(--green-700); }
.approach-step p { color: var(--gray-600); font-size: 0.9625rem; }
@media (max-width: 767px) {
  .approach { grid-template-columns: 1fr; }
  .approach-step, .approach-step + .approach-step { padding: 28px 0 24px; border-left: 0; }
  .approach-step + .approach-step { border-top: 1px solid var(--line); }
}

/* ---------- Projects page ---------- */
.project-rail {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  display: grid;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.project-rail.is-active { opacity: 1; pointer-events: auto; }
.project-rail a {
  display: grid;
  grid-template-columns: auto 3px;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  justify-items: end;
}
.project-rail .rail-track {
  width: 3px;
  height: 44px;
  border-radius: 3px;
  background: var(--gray-200);
  overflow: hidden;
  position: relative;
}
.project-rail .rail-fill {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: calc(var(--p, 0) * 100%);
  background: var(--green-600);
  border-radius: 3px;
}
.project-rail a.is-current { color: var(--ink-deep); }
.project-rail a:hover { color: var(--green-700); }
@media (max-width: 1279px) {
  .project-rail {
    top: auto;
    bottom: 16px;
    right: 50%;
    transform: translateX(50%);
    grid-auto-flow: column;
    gap: 16px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
  }
  .project-rail a { grid-template-columns: auto 40px; }
  .project-rail .rail-track { width: 40px; height: 3px; }
  .project-rail .rail-fill { height: 100%; width: calc(var(--p, 0) * 100%); }
}

.project-chapter { padding-block: clamp(80px, 11vw, 140px); position: relative; }
.project-chapter + .project-chapter { border-top: 1px solid var(--line); }
.project-chapter--dark { background: var(--ink); border-top: 0 !important; }
.project-chapter--dark + .project-chapter { border-top: 0; }

.chapter-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px clamp(20px, 3vw, 40px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.chapter-num {
  grid-row: span 3;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4.5rem, 12vw, 10rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent, var(--green-600));
}
.chapter-head h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -0.035em; }
.chapter-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; color: var(--gray-600); }
.project-chapter--dark .chapter-sub { color: rgba(255, 255, 255, 0.7); }
.chapter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  color: var(--gray-600);
  background: var(--white);
}
.chip--accent { border-color: transparent; background: var(--accent-soft, var(--green-50)); color: var(--accent-text, var(--green-800)); }
.chip--status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}
.project-chapter--dark .chip { background: transparent; border-color: var(--line-dark); color: rgba(255, 255, 255, 0.75); }
.project-chapter--dark .chip--accent { background: rgba(99, 102, 241, 0.18); color: #c7d2fe; border-color: transparent; }

.mask-reveal { overflow: hidden; border-radius: 18px; }
.mask-reveal img { width: 100%; height: 100%; object-fit: cover; }

/* Composition A — wide image then 2-column brief */
.comp-a .comp-media { aspect-ratio: 21 / 9; }
.comp-a .comp-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(36px, 5vw, 64px);
}

/* Composition B — text left, tall image right (dark) */
.comp-b {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.comp-b .comp-media { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 32px); }

/* Composition C — image with overlapping card */
.comp-c { position: relative; }
.comp-c .comp-media { aspect-ratio: 16 / 8; width: 78%; margin-left: auto; }
.comp-c .comp-card {
  position: relative;
  width: min(620px, 92%);
  margin-top: clamp(-220px, -16vw, -120px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(26px, 4vw, 48px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 18px;
}
.comp-c .comp-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(40px, 5vw, 64px);
}

.brief { display: grid; gap: 16px; color: var(--gray-600); font-size: 1.0625rem; }
.brief-lede {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-deep);
  letter-spacing: -0.01em;
}
.project-chapter--dark .brief { color: rgba(255, 255, 255, 0.72); }
.project-chapter--dark .brief-lede { color: var(--white); }

.feature-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9625rem;
  color: var(--gray-600);
}
.feature-list svg { width: 18px; height: 18px; margin-top: 4px; color: var(--accent, var(--green-600)); }
.feature-list strong { color: var(--ink-deep); }
.project-chapter--dark .feature-list { border-color: var(--line-dark); }
.project-chapter--dark .feature-list li { border-color: var(--line-dark); color: rgba(255, 255, 255, 0.7); }
.project-chapter--dark .feature-list strong { color: var(--white); }
.feature-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.project-chapter--dark .feature-title { color: rgba(255, 255, 255, 0.55); }

.objective {
  border-left: 3px solid var(--accent, var(--green-600));
  padding: 6px 0 6px 20px;
  display: grid;
  gap: 6px;
}
.objective h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text, var(--green-700));
}
.objective p { color: var(--gray-700); font-size: 1rem; }
.project-chapter--dark .objective h3 { color: #c7d2fe; }
.project-chapter--dark .objective p { color: rgba(255, 255, 255, 0.82); }

.proj-a { --accent: var(--green-600); --accent-soft: var(--green-50); --accent-text: var(--green-800); }
.proj-b { --accent: var(--indigo); --accent-text: var(--indigo-700); }
.proj-c { --accent: var(--sky); --accent-soft: #e0f2fe; --accent-text: var(--sky-700); }

@media (max-width: 899px) {
  .comp-a .comp-media { aspect-ratio: 16 / 10; }
  .comp-a .comp-body, .comp-b, .comp-c .comp-extra { grid-template-columns: 1fr; }
  .comp-b .comp-media { position: relative; top: 0; aspect-ratio: 16 / 11; order: -1; }
  .comp-c .comp-media { width: 100%; aspect-ratio: 16 / 10; }
  .comp-c .comp-card { margin-top: -48px; width: auto; margin-inline: 12px; }
  .chapter-num { grid-row: auto; }
  .chapter-head { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 18px; }
.notice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--green-50);
  border: 1px dashed var(--mint-2);
  font-size: 0.875rem;
  color: var(--green-800);
}
.notice svg { width: 20px; height: 20px; margin-top: 2px; }
.faq-list { list-style: none; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); position: relative; }
.faq-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.faq-item.is-open::before { transform: scaleY(1); }
.faq-q { margin: 0; font-size: inherit; }
.faq-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr 36px;
  gap: 14px;
  align-items: center;
  padding: 24px 8px 24px 16px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.faq-trigger:hover { color: var(--green-700); }
.faq-num { font-size: 0.8125rem; font-weight: 800; color: var(--gray-400); }
.faq-item.is-open .faq-num { color: var(--green-700); }
.faq-icon {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--ink-deep);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--grad-primary);
  border-color: transparent;
}
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; }
.faq-answer {
  padding: 0 52px 26px 70px;
  color: var(--gray-600);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.faq-item.is-open .faq-answer { opacity: 1; transform: none; transition-delay: 0.12s; }
.faq-answer p + p { margin-top: 10px; }
.faq-answer a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
}
@media (max-width: 599px) {
  .faq-trigger { grid-template-columns: 1fr 36px; padding-left: 14px; }
  .faq-num { display: none; }
  .faq-answer { padding: 0 14px 24px; }
}

/* ---------- Insights ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.insight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.insight-card:hover,
.insight-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.insight-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--gray-100); }
.insight-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.insight-card:hover .insight-media img { transform: scale(1.04); }
.sample-badge {
  position: absolute;
  left: 14px; top: 14px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.insight-body { display: grid; gap: 12px; padding: 24px; flex: 1; align-content: start; }
.insight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.insight-meta .cat { color: var(--green-700); }
.insight-body h3 { font-size: 1.3rem; }
.insight-body p { color: var(--gray-600); font-size: 0.9375rem; }
.insight-body .link-arrow { margin-top: 4px; justify-self: start; }
.insight-body .link-arrow::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 1023px) { .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 679px) { .insight-grid { grid-template-columns: 1fr; } }

.insight-feature { grid-column: 1 / -1; flex-direction: row; }
.insight-feature .insight-media { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
.insight-feature .insight-body { padding: clamp(28px, 4vw, 48px); align-content: center; }
.insight-feature h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
@media (max-width: 899px) {
  .insight-feature { flex-direction: column; }
  .insight-feature .insight-media { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
}

.article {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 720px);
  gap: clamp(32px, 6vw, 96px);
  justify-content: center;
  padding-block: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--line);
}
.article-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 14px; }
.article-aside .insight-meta { flex-direction: column; gap: 6px; }
.article-body { display: grid; gap: 20px; font-size: 1.0625rem; color: var(--gray-700); }
.article-body h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.article-body h3 { font-size: 1.25rem; margin-top: 12px; }
.article-body ul { padding-left: 1.2rem; display: grid; gap: 8px; }
.article-body .article-lede { font-size: 1.2rem; color: var(--gray-600); }
.article-body .back-link { margin-top: 12px; }
@media (max-width: 899px) {
  .article { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

/* ---------- Contact ---------- */
.contact-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.office-card {
  position: relative;
  border-radius: 18px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  display: grid;
  gap: 22px;
}
.office-card h2 { color: var(--white); font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.office-card::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(149, 200, 56, 0.25);
  box-shadow: 0 0 0 40px rgba(149, 200, 56, 0.04), 0 0 0 80px rgba(149, 200, 56, 0.03);
  pointer-events: none;
}
.contact-lines { list-style: none; display: grid; gap: 18px; }
.contact-lines li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-lines .ci {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  color: var(--lime);
}
.contact-lines .ci svg { width: 20px; height: 20px; }
.contact-lines .lbl {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.contact-lines .val { color: var(--white); font-size: 1.0625rem; font-weight: 600; }
.contact-lines a.val:hover { color: var(--lime); }

/* Form */
.form-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.form-card > p { margin-top: 10px; color: var(--gray-600); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 28px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-700);
}
.field label .req { color: var(--green-700); }
.field label .opt { font-weight: 500; color: var(--gray-500); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--ink-deep);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234b5563' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gray-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #b91c1c; }
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.15); }
.field-error {
  display: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #b91c1c;
}
.field.has-error .field-error { display: block; }
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}
.form-foot small { color: var(--gray-500); font-size: 0.8125rem; }
.form-status {
  display: none;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--green-100);
  background: var(--green-50);
  color: var(--green-800);
  gap: 6px;
}
.form-status.is-shown { display: grid; }
.form-status strong { font-size: 1rem; }
.form-status p { font-size: 0.9375rem; }
.form-status a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (max-width: 1023px) { .contact-top { grid-template-columns: 1fr; } }
@media (max-width: 599px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* Locations */
.locations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 48px);
}
.world-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 414;
  border-radius: 18px;
  border: 1px solid var(--line-dark);
  background: radial-gradient(ellipse at 30% 40%, rgba(149, 200, 56, 0.08), transparent 60%), #18202a;
  overflow: hidden;
}
.world-map > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-map svg.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-lines path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
  opacity: 0.25;
  transition: opacity 0.3s, stroke-width 0.3s;
}
.map-lines path.is-hot { opacity: 0.9; stroke-width: 2; }
.map-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  z-index: 2;
}
.map-marker::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(28, 35, 43, 0.9);
  transition: transform 0.3s var(--ease);
}
.map-marker::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  opacity: 0;
  animation: ping 2.6s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * 0.35s);
}
.map-marker--hq::before { background: var(--emerald); inset: 7px; }
.map-marker:hover::before,
.map-marker:focus-visible::before,
.map-marker.is-hot::before { transform: scale(1.45); }
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.8; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}
.map-tip {
  position: absolute;
  z-index: 3;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, calc(-100% - 20px));
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink-deep);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.25s var(--ease);
  white-space: nowrap;
}
.map-tip.is-shown { opacity: 1; transform: translate(-50%, calc(-100% - 14px)); }
.map-tip strong { display: block; font-family: var(--font-head); font-size: 0.9375rem; }
.map-tip span { color: var(--gray-500); }

.loc-region { display: grid; gap: 14px; }
.loc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.loc-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.3s, background-color 0.3s, transform 0.3s var(--ease);
}
.loc-card:hover,
.loc-card.is-hot { border-color: var(--lime); background: rgba(149, 200, 56, 0.06); transform: translateY(-3px); }
.loc-pin {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(149, 200, 56, 0.12);
  color: var(--lime);
}
.loc-pin svg { width: 20px; height: 20px; }
.loc-region-name {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.loc-city { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; color: var(--white); }
.loc-country { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }
.loc-card--hq { border-color: rgba(52, 211, 153, 0.45); }
.loc-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--grad-primary);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}
@media (max-width: 1023px) { .loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) {
  .loc-grid { gap: 10px; }
  .loc-card { grid-template-columns: 1fr; padding: 14px; gap: 6px; }
  .loc-pin { display: none; }
  .loc-badge { margin: 4px 0 0; }
}
@media (max-width: 599px) {
  .map-marker { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  .map-marker::before { inset: 7px; }
  .map-tip { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9375rem;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: min(1100px, 120%);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(149, 200, 56, 0.12), transparent 65%);
  pointer-events: none;
}
.site-footer > * { position: relative; }

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--line-dark);
}
.footer-cta > div:first-child { display: grid; gap: 14px; }
.footer-cta h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 720px; }

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr) minmax(0, 0.9fr) minmax(0, 2fr);
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 72px);
}
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-name small { color: rgba(255, 255, 255, 0.5); display: block; }
.footer-brand p { max-width: 300px; line-height: 1.6; }
.footer-quick { display: grid; gap: 10px; margin-top: 4px; }
.quick-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  transition: border-color 0.3s, background-color 0.3s, transform 0.3s var(--ease);
  min-width: 0;
}
.quick-chip span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.quick-chip small {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.quick-chip svg { width: 18px; height: 18px; color: var(--lime); flex: none; }
.quick-chip:hover { border-color: var(--lime); background: rgba(149, 200, 56, 0.06); transform: translateX(4px); }

.footer-col h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-links ul { list-style: none; display: grid; gap: 4px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 4px;
  transition: color 0.25s, transform 0.3s var(--ease);
}
.footer-links a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width 0.3s var(--ease);
}
.footer-links a:hover { color: var(--white); }
.footer-links a:hover::before { width: 12px; }

.footer-office address {
  font-style: normal;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--white);
  line-height: 1.55;
}
.office-pin svg { width: 20px; height: 20px; color: var(--lime); margin-top: 2px; }
.footer-demo-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
}
.footer-demo-link span { transition: transform 0.3s var(--ease); }
.footer-demo-link:hover span { transform: translateX(4px); }

.presence-count {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
.presence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
}
.presence-group h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.presence-group h4::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(149, 200, 56, 0.15);
}
.presence-group ul { list-style: none; display: grid; gap: 10px; }
.presence-group li { display: grid; gap: 1px; padding-left: 15px; border-left: 1px solid var(--line-dark); }
.pc-city { color: rgba(255, 255, 255, 0.9); font-weight: 600; font-size: 0.9rem; }
.pc-country { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-lang,
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  transition: border-color 0.25s, color 0.25s;
}
.footer-lang svg { width: 15px; height: 15px; color: var(--lime); }
.footer-lang:hover,
.footer-top:hover { border-color: var(--lime); color: var(--white); }

@media (max-width: 1199px) {
  .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-presence { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .footer-cta { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 767px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; }
  .footer-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  .footer-quick { grid-template-columns: 1fr; }
  .footer-cta .btn-row, .footer-cta .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Floating back-to-top with scroll progress ring */
.to-top {
  position: fixed;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 90;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink-deep); }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 3; stroke: rgba(255, 255, 255, 0.12); }
.to-top-ring .to-top-progress {
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: calc(132 - 132 * var(--progress, 0));
}
body.rail-on .to-top { opacity: 0; pointer-events: none; }

/* ---------- Small layout helpers ---------- */
.ps-quote-src { margin-top: 14px; color: var(--gray-500); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.sample-badge--inline { position: static; justify-self: start; }
.contact-lines address.val { font-style: normal; display: block; }
.comp-c .brief-lede { margin: 0; }
.project-chapter--dark { color: rgba(255, 255, 255, 0.78); }
.project-chapter--dark h2,
.project-chapter--dark h3:not(.objective h3):not(.feature-title) { color: var(--white); }
.insight-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 679px) { .insight-grid--featured { grid-template-columns: 1fr; } }

/* ==========================================================================
   MOTION SYSTEM
   ========================================================================== */


/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.18s ease-in both; }
::view-transition-new(root) { animation: vt-in 0.32s ease-out both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@supports not (view-transition-name: none) {
  .js main { animation: page-in 0.4s ease-out both; }
}
@keyframes page-in { from { opacity: 0; } }

/* ---------- Scroll reveals ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal="left"] { transform: translate3d(-48px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(48px, 0, 0); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* The frame itself stays unclipped (so IntersectionObserver can see it);
   only the image inside is masked, then unmasked + settled from a zoom. */
.js [data-reveal="mask"],
.js [data-reveal="mask-x"] {
  opacity: 1;
  transform: none;
  overflow: hidden;
  border-radius: 18px;
  background: var(--gray-100);
}
.section--dark [data-reveal="mask"],
.section--dark [data-reveal="mask-x"],
.project-chapter--dark [data-reveal="mask-x"] { background: rgba(255, 255, 255, 0.04); }
.js [data-reveal="mask"] img,
.js [data-reveal="mask-x"] img {
  transform: scale(1.18);
  transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal="mask"] img { clip-path: inset(100% 0 0 0); }
.js [data-reveal="mask-x"] img { clip-path: inset(0 100% 0 0); }
.js [data-reveal="mask"].is-visible img,
.js [data-reveal="mask-x"].is-visible img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* Masked heading lines (hero titles) */
.reveal-lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.reveal-lines .line > span { display: inline-block; }
.js .reveal-lines .line > span {
  transform: translate3d(0, 110%, 0) rotate(2deg);
  transform-origin: left bottom;
  transition: transform 0.85s var(--ease);
  transition-delay: calc(var(--l, 0) * 100ms + 60ms);
}
.js .reveal-lines.is-visible .line > span { transform: none; }

/* Word-by-word heading reveals (added by JS to [data-split]) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split-word > span { display: inline-block; }
.js [data-split] .split-word > span {
  transform: translate3d(0, 105%, 0);
  transition: transform 0.75s var(--ease);
  transition-delay: calc(var(--w, 0) * 35ms);
}
.js [data-split].is-visible .split-word > span { transform: none; }


/* ==========================================================================
   DESIGN ENHANCEMENTS
   ========================================================================== */

/* Scroll progress line under the header */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--grad-primary);
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
}

/* Header actions + language switch */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .nav-cta { margin-left: 0; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray-700);
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.lang-switch svg { width: 16px; height: 16px; color: var(--green-600); transition: transform 0.6s var(--ease); }
.lang-switch:hover { border-color: var(--green-600); color: var(--green-800); background: var(--green-50); }
.lang-switch:hover svg { transform: rotate(180deg); }
.topbar-lang { font-weight: 700; color: var(--lime); }
.mobile-menu-foot .btn-ghost-light svg { width: 18px; height: 18px; }
@media (max-width: 1199px) {
  .nav-actions .lang-switch { min-height: 46px; }
}
@media (max-width: 1360px) and (min-width: 1200px) {
  .nav-link { padding: 8px 10px; font-size: 0.8125rem; }
  .brand-name small { display: none; }
}

/* Nav links: sliding pill */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"]::after { display: none; }

/* Primary button light sweep */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.55) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease);
}
.btn-primary:hover::before { transform: translateX(130%); }

/* Cursor spotlight on cards */
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(52, 211, 153, 0.13), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }
.loc-card.spotlight { position: relative; }
.loc-card.spotlight::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(149, 200, 56, 0.16), transparent 50%); }

/* Hero: glow, Ken Burns, floating cards, tilt, sparkline */
.hero::after {
  content: "";
  position: absolute;
  width: 760px; height: 760px;
  right: -220px; top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149, 200, 56, 0.16), rgba(45, 212, 191, 0.06) 40%, transparent 68%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-tilt { position: relative; }
.hero-media img { animation: kenburns 2.6s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.data-card { will-change: translate; }
.data-card--flow { animation: float-a 7s ease-in-out 1.6s infinite; }
.data-card--bars { animation: float-b 8s ease-in-out 1.6s infinite; }
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes float-b { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
.flow-steps li { opacity: 0; transform: translateX(-8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 180ms + 0.9s); }
.is-visible .flow-steps li, .no-js .flow-steps li { opacity: 1; transform: none; }
.flow-steps li.is-active .dot { animation: pulse-dot 2.4s ease-out 2.2s infinite; }
.flow-steps li.is-active .dot { position: relative; animation: none; }
.flow-steps li.is-active .dot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.45);
  animation: pulse-dot 2.4s ease-out 2.2s infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes pulse-dot { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(2); opacity: 0; } }
.spark { display: block; width: 100%; height: 34px; margin-top: 10px; overflow: visible; }
.spark path { fill: none; stroke: var(--green-600); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 240; stroke-dashoffset: 240; }
.spark circle { fill: var(--emerald); opacity: 0; }
.is-visible .spark path { animation: draw 1.8s var(--ease) 1s forwards; }
.is-visible .spark circle { animation: pop 0.5s var(--ease) 2.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.spark circle { transform-box: fill-box; transform-origin: center; }

/* Inner page heroes: visible imagery, slow zoom + parallax */
.page-hero-bg { overflow: hidden; }
.page-hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  opacity: 0.55;
}
.page-hero-bg img { animation: hero-bg-in 2.4s var(--ease) both; }
@keyframes hero-bg-in { from { opacity: 0; scale: 1.15; } to { opacity: 0.55; scale: 1; } }
.page-hero-bg::after {
  background:
    linear-gradient(100deg, var(--ink) 22%, rgba(28, 35, 43, 0.72) 52%, rgba(28, 35, 43, 0.2) 100%),
    linear-gradient(0deg, rgba(28, 35, 43, 0.65), transparent 40%);
}
.page-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(149, 200, 56, 0.5), transparent);
}
.page-hero .container { z-index: 2; }
.cta-band-bg img { opacity: 0.38; height: 100%; position: relative; }

/* Footer wordmark */
.footer-wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3.4rem, 14.5vw, 12.5rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, var(--lime), var(--emerald)) no-repeat;
  background-size: 0% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 1.4s var(--ease);
  overflow: hidden;
  padding-block: 8px 24px;
  user-select: none;
}
.site-footer:hover .footer-wordmark { background-size: 100% 100%; }

/* Smoother hover depth on all cards */
.service-card:hover, .pp-card:hover, .insight-card:hover { box-shadow: 0 30px 50px -28px rgba(17, 24, 39, 0.35), 0 10px 20px -12px rgba(17, 24, 39, 0.12); }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@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;
    transition-delay: 0s !important;
  }
  .js [data-reveal],
  .js [data-reveal="mask"],
  .js [data-reveal="mask-x"] { opacity: 1; transform: none; clip-path: none; filter: none; }
  .js [data-reveal] img { transform: none !important; clip-path: none !important; }
  .js .reveal-lines .line > span,
  .js [data-split] .split-word > span { transform: none; }
  [data-parallax], .page-hero-bg img, .cta-band-bg img { transform: none !important; }
  .flow-steps li { opacity: 1; transform: none; }
  .spark path { stroke-dashoffset: 0; }
  .spark circle { opacity: 1; }
  .hero-tilt { transform: none; }
  .map-marker::after, .hero::after { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
.svc-block { position: relative; overflow: hidden; }

/* ---------- French layout tuning (longer labels and words) ---------- */
:lang(fr) .hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.7rem); }
:lang(fr) .page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
:lang(fr) .btn { letter-spacing: 0.04em; }
@media (min-width: 1200px) {
  .nav-bar .brand-name small { display: none; }
}
@media (max-width: 1399px) {
  :is(:lang(fr), :lang(it), :lang(es), :lang(ar)) .nav-links,
  :is(:lang(fr), :lang(it), :lang(es), :lang(ar)) .nav-cta { display: none; }
  :is(:lang(fr), :lang(it), :lang(es), :lang(ar)) .menu-toggle { display: inline-flex; }
}
@media (max-width: 599px) {
  .nav-actions .lang-menu { display: none; }
  .brand { gap: 10px; min-width: 0; }
  .brand-name { font-size: 1rem; }
  .brand-name small { font-size: 0.625rem; letter-spacing: 0.1em; }
}
@media (max-width: 374px) {
  .nav-bar .brand-name small { display: none; }
}

/* ==========================================================================
   PROJECTS — COLLAPSIBLE FEATURES + RAIL LABELS (all sizes)
   ========================================================================== */
.features > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.features > summary::-webkit-details-marker { display: none; }
.features-count { display: none; }
.rail-name { display: none; }
@media (min-width: 768px) {
  .features > summary { pointer-events: none; cursor: default; }
}

/* ==========================================================================
   MOBILE PROJECT FORMATS
   ========================================================================== */
@media (max-width: 767px) {
  /* --- Home: swipeable project carousel --- */
  .project-preview-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 22px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .project-preview-grid::-webkit-scrollbar { display: none; }
  .pp-card,
  .pp-card--b,
  .pp-card--c {
    flex: 0 0 86%;
    flex-direction: column;
    scroll-snap-align: start;
    border-radius: 22px;
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), box-shadow 0.5s var(--ease);
  }
  .pp-card .pp-media,
  .pp-card--b .pp-media,
  .pp-card--c .pp-media { flex: none; aspect-ratio: 4 / 3; }
  .pp-card.is-dimmed { transform: scale(0.94); opacity: 0.6; }
  .pp-card.is-current { box-shadow: 0 24px 40px -24px rgba(17, 24, 39, 0.45); }
  .pp-media::after {
    content: attr(data-num);
    position: absolute;
    left: 14px; bottom: 12px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--white);
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  }
  .pp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
  }
  .pp-counter { font-family: var(--font-head); font-weight: 800; color: var(--ink-deep); font-size: 0.9375rem; }
  .pp-counter span { color: var(--gray-400); }
  .pp-dots { display: flex; gap: 8px; }
  .pp-dot {
    width: 9px; height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--gray-300);
    cursor: pointer;
    transition: width 0.45s var(--ease), background-color 0.3s;
  }
  .pp-dot[aria-current="true"] { width: 30px; background: var(--green-600); }
  .pp-swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
  }
  .pp-swipe-hint i { display: inline-block; width: 18px; height: 2px; background: currentColor; animation: swipe-hint 1.8s var(--ease) infinite; }
  @keyframes swipe-hint { 0%, 100% { transform: translateX(-4px); opacity: 0.4; } 50% { transform: translateX(6px); opacity: 1; } }

  /* --- Projects page: stacked "sheet" cards --- */
  .project-chapter,
  .project-chapter--dark { padding: 10px 12px; background: var(--gray-50); border-top: 0 !important; }
  .project-chapter:first-of-type { padding-top: 22px; }
  .project-chapter > .container {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 18px 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 24px 48px -32px rgba(17, 24, 39, 0.45);
    overflow: hidden;
  }
  .project-chapter--dark > .container { background: var(--ink); border-color: transparent; }
  .comp-a, .comp-c { display: contents; }
  .project-chapter .comp-media,
  .comp-b .comp-media {
    order: -1;
    position: relative;
    top: 0;
    width: auto;
    margin: 0 -18px 20px;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }
  .project-chapter .mask-reveal,
  .js .project-chapter [data-reveal^="mask"] { border-radius: 0; }
  .chapter-head { grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
  .chapter-num {
    position: absolute;
    z-index: 3;
    top: 14px; left: 14px;
    padding: 10px 14px 8px;
    border-radius: 14px;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--white);
    -webkit-text-stroke: 0;
    background: rgba(28, 35, 43, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }
  .chapter-head h2 { font-size: 2.1rem; }
  .chip { font-size: 0.6875rem; }
  .comp-a .comp-body, .comp-c .comp-extra { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 0; }
  .comp-c .comp-extra { margin-top: 16px; }
  .comp-c .comp-card { margin: 0; width: auto; padding: 0; border: 0; box-shadow: none; background: none; }
  .comp-b { gap: 0; }
  .brief { font-size: 1rem; }
  .brief-lede { font-size: 1.125rem; }
  .objective {
    border-left: 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--accent-soft, var(--green-50));
  }
  .project-chapter--dark .objective { background: rgba(99, 102, 241, 0.14); }
  .proj-b { --accent-soft: #eef2ff; }

  /* Collapsible features */
  .features > summary {
    padding: 14px 16px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--gray-50);
    color: var(--ink-deep);
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
  }
  .project-chapter--dark .features > summary { background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); color: var(--white); }
  .features-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px; height: 24px;
    margin-left: auto;
    border-radius: 999px;
    background: var(--accent, var(--green-600));
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 0;
  }
  .features > summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.45s var(--ease);
  }
  .features[open] > summary::after { transform: rotate(45deg); }
  .features[open] > summary { border-color: var(--accent, var(--green-600)); }
  .features .feature-list { border-top: 0; margin-top: 6px; }
  .features[open] .feature-list li { animation: feature-in 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
  @keyframes feature-in { from { opacity: 0; transform: translateY(10px); } }

  /* Mobile dock that tracks the current project */
  .project-rail {
    left: 10px; right: 10px; bottom: 10px; top: auto;
    transform: none;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(28, 35, 43, 0.97);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  }
  .project-rail.is-active { animation: dock-in 0.6s var(--ease) both; }
  @keyframes dock-in { from { transform: translateY(120%); } }
  .project-rail a {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.55);
    transition: background-color 0.3s, color 0.3s;
  }
  .project-rail a.is-current { background: rgba(149, 200, 56, 0.16); color: var(--white); }
  .rail-num { font-size: 0.6875rem; color: var(--lime); }
  .rail-name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.6875rem; letter-spacing: 0.04em; }
  .project-rail .rail-track { width: 100%; height: 3px; background: rgba(255, 255, 255, 0.14); }
  .project-rail .rail-fill { height: 100%; width: calc(var(--p, 0) * 100%); background: var(--lime); }
  body.rail-on main > .cta-band:last-child { padding-bottom: 120px; }
}

/* ==========================================================================
   UNIQUE MOTION CONCEPTS (tuned for touch / mobile, safe on desktop)
   ========================================================================== */

/* 1 · Iris menu: opens as a circle growing out of the hamburger */
.mobile-menu {
  opacity: 1;
  transform: none;
  clip-path: circle(0px at var(--ox, calc(100% - 40px)) var(--oy, 40px));
  transition: clip-path 0.6s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 0.6s;
}
.mobile-menu.is-open {
  clip-path: circle(160% at var(--ox, calc(100% - 40px)) var(--oy, 40px));
  transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s;
}
.mobile-links a { transform: translateX(48px) skewX(-10deg); }
.mobile-menu.is-open .mobile-links a {
  transition: opacity 0.5s var(--ease) calc(0.06s * var(--i, 0) + 0.25s),
    transform 0.7s var(--ease) calc(0.06s * var(--i, 0) + 0.25s),
    background-color 0.2s, border-color 0.2s;
}
.mobile-menu-foot > * { opacity: 0; transform: translateY(14px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.mobile-menu.is-open .mobile-menu-foot > * { opacity: 1; transform: none; transition: opacity 0.6s var(--ease) 0.65s, transform 0.6s var(--ease) 0.65s; }

/* 2 · Tap ripple (buttons, cards, chips) */
.ripple-host { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149, 200, 56, 0.45), rgba(52, 211, 153, 0.12) 60%, transparent 70%);
  pointer-events: none;
  animation: ripple 0.75s var(--ease) forwards;
  z-index: 5;
}
@keyframes ripple { to { transform: scale(var(--rs, 40)); opacity: 0; } }

/* 3 · Rolling odometer counters */
.odo { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; vertical-align: bottom; }
.odo-reel { display: flex; flex-direction: column; transition: transform 1.8s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.odo-reel > span { height: 1em; line-height: 1; }

/* 4 · Highlighter sweep under accent words */
h1 .text-accent,
h2 .text-accent {
  background-image: linear-gradient(90deg, rgba(149, 200, 56, 0.28), rgba(52, 211, 153, 0.22));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% 0.24em;
  transition: background-size 1.2s var(--ease) 0.7s;
}
.is-visible .text-accent,
.no-js .text-accent { background-size: 100% 0.24em; }

/* 5 · Eyebrow rule draws in */
.js .eyebrow[data-reveal]::before { width: 0; transition: width 0.9s var(--ease) 0.3s; }
.js .eyebrow[data-reveal].is-visible::before { width: 22px; }

/* 6 · Map markers pop in one after another */
.js .world-map .map-marker { scale: 0; }
.world-map.is-visible .map-marker { scale: 1; transition: scale 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i, 0) * 130ms + 0.4s); }
.js .map-lines path { opacity: 0; }
.world-map.is-visible .map-lines path { opacity: 0.25; transition: opacity 1s var(--ease) 1.4s; }
.world-map.is-visible .map-lines path.is-hot { opacity: 0.9; transition-delay: 0s; }

/* 7 · Card images open like blinds (mobile) */
@property --blind { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .js .service-card .service-media img,
  .js .pp-card .pp-media img {
    -webkit-mask-image: repeating-linear-gradient(180deg, #000 0, #000 var(--blind), transparent var(--blind), transparent 12.5%);
    mask-image: repeating-linear-gradient(180deg, #000 0, #000 var(--blind), transparent var(--blind), transparent 12.5%);
    transition: --blind 1.2s var(--ease) 0.25s, transform 1.6s var(--ease);
    transform: scale(1.08);
  }
  .js .insight-card .insight-media img {
    -webkit-mask-image: repeating-linear-gradient(135deg, #000 0, #000 var(--blind), transparent var(--blind), transparent 10%);
    mask-image: repeating-linear-gradient(135deg, #000 0, #000 var(--blind), transparent var(--blind), transparent 10%);
    transition: --blind 1.2s var(--ease) 0.25s, transform 1.6s var(--ease);
    transform: scale(1.08);
  }
  .js .service-card.is-visible .service-media img,
  .js .pp-card.is-visible .pp-media img { --blind: 13%; transform: none; }
  .js .insight-card.is-visible .insight-media img { --blind: 10.5%; transform: none; }

  /* 8 · Service cards stack like a deck while scrolling */
  .service-grid { gap: 18px; }
  .service-card {
    position: sticky;
    top: calc(var(--header-h) + 14px + var(--i, 0) * 14px);
    scale: var(--deck-s, 1);
    filter: brightness(var(--deck-b, 1));
    transform-origin: 50% 0;
    box-shadow: 0 -10px 30px -20px rgba(17, 24, 39, 0.35);
  }
}

/* 9 · Scroll-linked motion where supported */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-copy,
    .page-hero .container {
      animation: hero-exit linear both;
      animation-timeline: scroll(root);
      animation-range: 0 75vh;
    }
    @keyframes hero-exit { to { opacity: 0.1; transform: translateY(-70px); } }
  }
}
@supports (animation-timeline: view()) {
  @media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    .project-chapter > .container {
      animation: sheet-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes sheet-rise { from { transform: translateY(70px) scale(0.9); opacity: 0.35; } }
    .value-row,
    .why-list li {
      animation: slide-row linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 70%;
    }
    @keyframes slide-row { from { transform: translateX(-36px); opacity: 0; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { clip-path: none; transition: none; }
  .mobile-links a, .mobile-menu-foot > * { transform: none; opacity: 1; }
  .js .world-map .map-marker { scale: 1; }
  .js .map-lines path { opacity: 0.25; }
  .ripple { display: none; }
  .service-card { position: static; scale: 1; filter: none; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .js .service-grid .service-card.is-visible { filter: brightness(var(--deck-b, 1)); }
}
/* Footer presence: North America on its own row, then Europe · Africa · Asia */
.presence-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.presence-group:first-child { grid-column: 1 / -1; }
.presence-group:first-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 479px) {
  .presence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presence-group:first-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   INTRO BANNER — flashes, then slides up on open / refresh
   ========================================================================== */
.intro { display: none; }
html.show-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  border-radius: 0 0 0 0;
  animation: intro-up 0.85s cubic-bezier(0.76, 0, 0.24, 1) 1.5s forwards;
}
html.show-intro body { overflow: hidden; }
html.show-intro.intro-done body { overflow: auto; }
html.intro-done .intro { pointer-events: none; }
@keyframes intro-up {
  0% { transform: translateY(0); border-radius: 0; }
  100% { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 12vh 12vh; }
}
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 65%);
  mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 65%);
}
/* Bright flash that sweeps across the banner */
.intro-flash {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(149, 200, 56, 0.35) 48%, rgba(255, 255, 255, 0.5) 50%, rgba(52, 211, 153, 0.3) 52%, transparent 65%);
  transform: translateX(-100%);
  animation: intro-flash 0.9s ease-in-out 0.55s both;
  pointer-events: none;
}
@keyframes intro-flash { to { transform: translateX(100%); } }
.intro-inner { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.intro-mark {
  width: 84px; height: 84px;
  border-radius: 20px;
  animation: intro-mark 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both, intro-glow 0.5s ease-in-out 0.55s 2 alternate;
}
@keyframes intro-mark { from { opacity: 0; transform: scale(0.4) rotate(-30deg); } }
@keyframes intro-glow { to { box-shadow: 0 0 0 10px rgba(149, 200, 56, 0.25), 0 0 60px 10px rgba(149, 200, 56, 0.55); } }
.intro-word {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  overflow: hidden;
}
.intro-word span { display: inline-block; animation: intro-word 0.7s var(--ease) both; }
.intro-word span:nth-child(1) { animation-delay: 0.15s; }
.intro-word span:nth-child(2) { animation-delay: 0.25s; color: var(--lime); }
@keyframes intro-word { from { transform: translateY(110%); } }
.intro-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  animation: intro-tag 0.6s ease-out 0.45s both, intro-blink 0.18s steps(1) 0.9s 3;
}
@keyframes intro-tag { from { opacity: 0; letter-spacing: 0.6em; } }
@keyframes intro-blink { 50% { color: var(--lime); } }
.intro-bar { width: 180px; height: 2px; margin-top: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.intro-bar span { display: block; height: 100%; background: var(--grad-primary); transform-origin: left; animation: intro-bar 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.15s both; }
@keyframes intro-bar { from { transform: scaleX(0); } }

/* ==========================================================================
   FOOTER BRAND BLOCK — clean spacing
   ========================================================================== */
.footer-brand { gap: 0; }
.footer-brand .brand { gap: 14px; align-items: center; }
.footer-brand .brand img { width: 52px; height: 52px; border-radius: 12px; }
.footer-brand .brand-name { font-size: 1.25rem; line-height: 1.15; gap: 0; }
.footer-brand .brand-name small { display: block; margin-top: 6px; font-size: 0.6875rem; letter-spacing: 0.16em; line-height: 1.3; }
.footer-brand p {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.66);
  max-width: 320px;
}
.footer-brand .footer-quick { margin-top: 22px; }
@media (max-width: 767px) {
  .footer-brand p { max-width: none; }
}

/* ==========================================================================
   MORE MOBILE ANIMATIONS (transform / opacity only — cheap on phones)
   ========================================================================== */

/* Capability ticker under the hero (mobile) */
.ticker { display: none; }
@media (max-width: 767px) {
  .ticker {
    display: block;
    overflow: hidden;
    background: var(--ink-deep);
    border-block: 1px solid var(--line-dark);
    padding-block: 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .ticker-track { display: flex; width: max-content; animation: ticker 22s linear infinite; will-change: transform; }
  .ticker-track span {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-right: 14px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
  }
  .ticker-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
  @keyframes ticker { to { transform: translateX(-50%); } }
}

/* Scroll cue at the bottom of the hero (mobile) */
.scroll-cue { display: none; }
@media (max-width: 767px) {
  .scroll-cue {
    display: block;
    position: relative;
    width: 24px; height: 38px;
    margin: 36px auto 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
  }
  .scroll-cue::before {
    content: "";
    position: absolute;
    left: 50%; top: 7px;
    width: 4px; height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--lime);
    animation: cue 1.6s ease-in-out infinite;
  }
  @keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  /* Hero picture drops in like a photo onto a desk */
  .js .hero-visual[data-reveal] { transform: translateY(60px) rotate(-5deg) scale(0.92); transition-duration: 0.9s, 1.1s; }
  .js .hero-visual[data-reveal].is-visible { transform: none; }
  .js .hero-visual .data-card--flow { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s var(--ease) 0.6s, transform 0.8s var(--ease) 0.6s; }
  .js .hero-visual.is-visible .data-card--flow { opacity: 1; transform: none; }

  /* Hero CTA: soft pulse ring to invite the tap */
  .hero .btn-primary { overflow: visible; }
  .hero .btn-primary::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    border: 2px solid var(--emerald);
    opacity: 0;
    animation: cta-pulse 2.8s ease-out 2.2s infinite;
    pointer-events: none;
  }
  @keyframes cta-pulse { 0% { opacity: 0.8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.12, 1.35); } }

  /* Hero bullet points become chips that pop in one by one */
  .hero-points li { opacity: 0; transform: translateY(12px) scale(0.9); transition: opacity 0.5s var(--ease), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .hero-points.is-visible li { opacity: 1; transform: none; }
  .hero-points.is-visible li:nth-child(2) { transition-delay: 0.12s; }
  .hero-points.is-visible li:nth-child(3) { transition-delay: 0.24s; }

  /* Problem / solution panels slide in from opposite sides with a tilt */
  .js .ps-panel--problem[data-reveal] { transform: translateX(-60px) rotate(-3deg); }
  .js .ps-panel--solution[data-reveal] { transform: translateX(60px) rotate(3deg); }
  .js .ps-panel[data-reveal].is-visible { transform: none; }
  .ps-arrow { transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s; }

  /* Insight cards flip up in 3D */
  .insight-grid { perspective: 900px; }
  .js .insight-card[data-reveal] { transform: rotateX(28deg) translateY(50px); transform-origin: 50% 100%; }
  .js .insight-card[data-reveal].is-visible { transform: none; }

  /* FAQ items, value rows, why-list: cascade */
  .faq-list.is-visible .faq-item { animation: cascade 0.6s var(--ease) both; }
  .faq-list.is-visible .faq-item:nth-child(2) { animation-delay: 0.06s; }
  .faq-list.is-visible .faq-item:nth-child(3) { animation-delay: 0.12s; }
  .faq-list.is-visible .faq-item:nth-child(4) { animation-delay: 0.18s; }
  .faq-list.is-visible .faq-item:nth-child(5) { animation-delay: 0.24s; }
  .faq-list.is-visible .faq-item:nth-child(6) { animation-delay: 0.3s; }
  .faq-list.is-visible .faq-item:nth-child(7) { animation-delay: 0.36s; }
  .faq-list.is-visible .faq-item:nth-child(8) { animation-delay: 0.42s; }
  @keyframes cascade { from { opacity: 0; transform: translateX(30px); } }

  /* Contact form fields slide in field by field */
  .form-card.is-visible .field { animation: cascade-up 0.55s var(--ease) both; }
  .form-card.is-visible .field:nth-child(2) { animation-delay: 0.06s; }
  .form-card.is-visible .field:nth-child(3) { animation-delay: 0.12s; }
  .form-card.is-visible .field:nth-child(4) { animation-delay: 0.18s; }
  .form-card.is-visible .field:nth-child(5) { animation-delay: 0.24s; }
  .form-card.is-visible .field:nth-child(6) { animation-delay: 0.3s; }
  .form-card.is-visible .field:nth-child(7) { animation-delay: 0.36s; }
  @keyframes cascade-up { from { opacity: 0; transform: translateY(18px); } }

  /* Location cards pop like map pins */
  .js .loc-card[data-reveal] { transform: scale(0.85) translateY(20px); transition-timing-function: var(--ease), cubic-bezier(0.34, 1.56, 0.64, 1); }
  .js .loc-card[data-reveal].is-visible { transform: none; }

  /* Footer continents cascade in */
  .footer-main.is-visible .presence-group { animation: cascade-up 0.6s var(--ease) both; }
  .footer-main.is-visible .presence-group:nth-child(2) { animation-delay: 0.1s; }
  .footer-main.is-visible .presence-group:nth-child(3) { animation-delay: 0.2s; }
  .footer-main.is-visible .presence-group:nth-child(4) { animation-delay: 0.3s; }

  /* Stat numbers: underline grows after the reel stops */
  .stat .stat-num { position: relative; display: inline-block; }
  .stat .stat-num::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 3px; border-radius: 3px; background: var(--grad-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease) 1.2s; }
  .stat.is-visible .stat-num::after { transform: scaleX(1); }
}

/* Tactile press feedback on touch screens */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .btn:active, .service-card:active, .pp-card:active, .insight-card:active, .loc-card:active, .quick-chip:active { scale: 0.97; transition: scale 0.15s; }
}

@media (prefers-reduced-motion: reduce) {
  html.show-intro .intro { animation: intro-fade 0.3s ease 0.3s forwards; }
  @keyframes intro-fade { to { opacity: 0; visibility: hidden; } }
  .ticker-track, .scroll-cue::before, .hero .btn-primary::after { animation: none; }
  .hero-points li { opacity: 1; transform: none; }
}
.footer-brand .brand-name small { white-space: nowrap; letter-spacing: 0.12em; }

/* ---------- Project carousel controls (mobile layout) ---------- */
.pp-nav { display: none; }
@media (max-width: 767px) {
  .pp-nav { display: flex; }
  .pp-swipe-hint { display: none; }
  .project-preview-grid { cursor: grab; }
  .project-preview-grid:focus-visible { outline: 3px solid var(--emerald); outline-offset: 4px; }
  .project-preview-grid.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
  .project-preview-grid.is-dragging .pp-card { pointer-events: none; }
  .pp-arrows { display: flex; gap: 8px; }
  .pp-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    background: var(--white);
    color: var(--ink-deep);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s, opacity 0.25s;
  }
  .pp-arrow:hover:not(:disabled) { border-color: var(--green-600); color: var(--green-700); }
  .pp-next:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .pp-next:hover:not(:disabled) { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
  .pp-arrow:disabled { opacity: 0.35; cursor: default; }
  .pp-arrow span { transition: transform 0.3s var(--ease); }
  .pp-next:hover:not(:disabled) span { transform: translateX(3px); }
  .pp-prev:hover:not(:disabled) span { transform: translateX(-3px); }
}


/* ==========================================================================
   LANGUAGES — 5-language menus (EN, FR, AR, IT, ES)
   ========================================================================== */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu .lang-chevron { width: 14px; height: 14px; color: currentColor; transition: transform 0.25s var(--ease); }
.lang-menu[open] .lang-chevron { transform: rotate(180deg); }
.lang-menu:hover .lang-switch svg:not(.lang-chevron) { transform: rotate(180deg); }
.lang-menu[open] > .lang-switch { border-color: var(--green-600); color: var(--green-800); background: var(--green-50); }
.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white, #fff);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(15, 23, 32, 0.28);
  animation: lang-pop 0.18s var(--ease) both;
}
@keyframes lang-pop { from { opacity: 0; transform: translateY(-6px); } }
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  text-align: start;
}
.lang-list a:hover, .lang-list a:focus-visible { background: var(--green-50); color: var(--green-800); }
.lang-list a[aria-current="true"] { color: var(--green-800); }
.lang-list a[aria-current="true"]::after { content: "✓"; color: var(--green-600); font-weight: 800; }

.topbar-langs { gap: 2px; }
.topbar-langs a {
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}
.topbar-langs a[aria-current="true"] { color: var(--lime); background: rgba(149, 200, 56, 0.12); }

.lang-pills, .footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lang-pills a, .footer-langs a {
  padding: 7px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.lang-pills a:hover, .footer-langs a:hover { border-color: var(--lime); color: var(--white); }
.lang-pills a[aria-current="true"], .footer-langs a[aria-current="true"] {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(149, 200, 56, 0.1);
}
.footer-langs { gap: 6px; }
.footer-langs a { padding: 6px 11px; font-size: 0.8125rem; }
.footer-langs > svg { width: 15px; height: 15px; color: var(--lime); margin-inline-end: 2px; }

/* Arabic: system fonts with good Arabic glyphs, a little more line height */
:root:lang(ar) {
  --font-body: "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", "Inter", system-ui, sans-serif;
  --font-head: "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", "Manrope", system-ui, sans-serif;
}
:lang(ar) body { line-height: 1.75; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { line-height: 1.35; letter-spacing: 0; }
:lang(ar) * { letter-spacing: 0 !important; }

/* ==========================================================================
   RIGHT-TO-LEFT (Arabic) — mirror direction-dependent rules
   ========================================================================== */
[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .nav-cta { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .nav-actions .nav-cta { margin-right: 0; }
[dir="rtl"] .btn:hover .arrow,
[dir="rtl"] .link-arrow:hover .arrow,
[dir="rtl"] .footer-demo-link:hover span { transform: translateX(-4px); }
[dir="rtl"] .service-card:hover .service-num { transform: translateX(-6px); }
[dir="rtl"] .quick-chip:hover { transform: translateX(-4px); }
[dir="rtl"] .data-card--flow { left: auto; right: -28px; }
[dir="rtl"] .data-card--bars { right: auto; left: -22px; }
@media (max-width: 1023px) {
  [dir="rtl"] .data-card--flow { right: 12px; left: auto; }
  [dir="rtl"] .data-card--bars { left: 12px; right: auto; }
}
[dir="rtl"] .why-quote { left: auto; right: -32px; }
@media (max-width: 899px) { [dir="rtl"] .why-quote { right: auto; } }
[dir="rtl"] .stat + .stat { padding-left: 0; border-left: 0; padding-right: 24px; border-right: 1px solid var(--line-dark); }
[dir="rtl"] .breadcrumb li + li::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .mv-item + .mv-item { border-left: 0; border-right: 1px solid var(--line-dark); }
[dir="rtl"] .svc-media .svc-bignum { left: auto; right: -10px; }
[dir="rtl"] .svc-row--reverse .svc-bignum { right: auto; left: -10px; }
[dir="rtl"] .approach-step + .approach-step { padding-left: 0; border-left: 0; padding-right: 28px; border-right: 1px solid var(--line); }
[dir="rtl"] .approach-step::before { left: auto; right: 0; }
[dir="rtl"] .comp-c .comp-media { margin-left: 0; margin-right: auto; }
[dir="rtl"] .objective { border-left: 0; border-right: 3px solid var(--accent, var(--green-600)); padding: 6px 20px 6px 0; }
[dir="rtl"] .faq-item::before { left: auto; right: 0; }
[dir="rtl"] .faq-trigger { text-align: right; padding: 24px 16px 24px 8px; }
[dir="rtl"] .sample-badge { left: auto; right: 14px; }
[dir="rtl"] .article-body ul { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .field select { background-position: left 14px center; padding-right: 14px; padding-left: 40px; }
[dir="rtl"] .loc-badge { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .presence-group li { padding-left: 0; border-left: 0; padding-right: 15px; border-right: 1px solid var(--line-dark); }
[dir="rtl"] .mobile-links a { transform: translateX(-48px) skewX(10deg); }
[dir="rtl"] .mobile-menu { --ox: 40px; }
[dir="rtl"] .scroll-progress { transform-origin: right center; }
/* Scrolling strips keep their left-to-right mechanics; their text stays RTL */
[dir="rtl"] .ticker, [dir="rtl"] .project-preview-grid { direction: ltr; }
[dir="rtl"] .ticker-track > span, [dir="rtl"] .project-preview-grid > * { direction: rtl; }
/* Phone numbers and emails stay left-to-right inside Arabic text */
[dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"] { unicode-bidi: isolate; direction: ltr; }
@media (max-width: 479px) { [dir="rtl"] .data-card--flow { left: 12px; right: 12px; } }
/* Keep the Arabic name aligned with the others inside language lists */
.lang-list a[dir], .lang-pills a[dir], .footer-langs a[dir], .topbar-langs a[dir] { direction: inherit; }
/* Problem → solution arrow points the reading direction (desktop only; it turns downward on small screens) */
[dir="rtl"] .ps-arrow svg { transform: scaleX(-1); }
@media (max-width: 899px) { [dir="rtl"] .ps-arrow svg { transform: none; } }

/* Performance: pause endless animations while they are off screen */
.hero:not(.is-onscreen) .data-card,
.hero:not(.is-onscreen) .flow-steps .dot::after,
.ticker:not(.is-onscreen) .ticker-track { animation-play-state: paused; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Own layer, so the scroll fade doesn't repaint the hero background */
    .hero-copy, .page-hero .container { will-change: transform, opacity; }
  }
}

/* ==========================================================================
   CUSTOM CURSOR — glowing dot with a fading green trail (mouse devices only)
   ========================================================================== */
.cursor-dot, .cursor-halo, .cursor-trail {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.cursor-trail { z-index: 1998; }
.cursor-halo { z-index: 1999; transition: opacity 0.3s; }
.cursor-dot { z-index: 2000; transition: opacity 0.2s; }
.has-cursor .cursor-dot, .has-cursor .cursor-halo { opacity: 1; }
/* Trail opacity is set by the script: it shows while moving and fades when you stop */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea) { cursor: text !important; }

/* Precise dot */
.cursor-dot::before {
  content: "";
  position: absolute;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--green-600), 0 0 10px 2px rgba(149, 200, 56, 0.85);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Soft glow around it */
.cursor-halo::before {
  content: "";
  position: absolute;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149, 200, 56, 0.35), rgba(52, 211, 153, 0.12) 45%, transparent 70%);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
/* Trail of glows */
.cursor-trail::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149, 200, 56, 0.7), rgba(52, 211, 153, 0.25) 50%, transparent 72%);
  transform: scale(var(--s, 1));
}
/* Over links and buttons: the glow brightens and grows */
.cursor-hover .cursor-halo::before {
  transform: scale(1.9);
  background: radial-gradient(circle, rgba(149, 200, 56, 0.5), rgba(52, 211, 153, 0.2) 45%, transparent 70%);
}
.cursor-hover .cursor-dot::before { transform: scale(1.35); }
/* Click: quick press and flash */
.cursor-down .cursor-dot::before { transform: scale(0.7); }
.cursor-down .cursor-halo::before { transform: scale(2.4); opacity: 0.6; }
/* Typing: hand back the normal text cursor */
.cursor-text :is(.cursor-dot, .cursor-halo, .cursor-trail) { opacity: 0 !important; }
/* Pointer left the window */
.cursor-hidden :is(.cursor-dot, .cursor-halo, .cursor-trail) { opacity: 0 !important; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-halo, .cursor-trail { display: none; }
}
