/* ==========================================================================
   GEO-SCALE — Landing Page
   Palette derived from the official 2026 portfolio deck.
   ========================================================================== */

:root {
  --ink: #0e1a2e;
  --ink-deep: #08111f;
  --ink-soft: #2a3649;
  --navy: #2c5cac;
  --navy-600: #24509a;
  --navy-700: #1b3c74;
  --sky: #b4d4ec;
  --sky-2: #8db4e0;
  --sky-3: #dbe9f7;
  --mist: #eaf0fa;
  --paper: #f2f7fc;
  --white: #ffffff;
  --slate: #586578;
  --slate-light: #7a8798;
  --line: #dbe5f1;
  --line-strong: #c9d6ea;

  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Manrope", "Segoe UI", Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 18px rgba(14, 26, 46, 0.06);
  --shadow-md: 0 18px 50px rgba(14, 26, 46, 0.1);
  --shadow-lg: 0 30px 80px rgba(8, 17, 31, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

html.i18n-pending body { visibility: hidden; }

body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: var(--font-en);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 24px;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  transition: inset-block-start 0.2s;
}
.skip-link:focus { inset-block-start: 0; }

/* ==========================================================================
   Buttons & shared bits
   ========================================================================== */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  box-shadow: 0 12px 28px rgba(44, 92, 172, 0.28);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #356bc4 0%, var(--navy) 100%);
  box-shadow: 0 16px 36px rgba(44, 92, 172, 0.36);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--paper);
}

.btn--whatsapp {
  background: #1faa53;
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 170, 83, 0.24);
}
.btn--whatsapp:hover { background: #199247; }

.btn--sm { padding: 11px 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }

.arrow { flex: 0 0 auto; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pill--dark {
  background: rgba(180, 212, 236, 0.09);
  border: 1px solid rgba(180, 212, 236, 0.22);
  color: #d6e6f6;
}
.pill--ghost {
  color: #93a9c4;
  border: 1px solid transparent;
  padding-inline: 4px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14);
  flex: 0 0 auto;
}
.dot--blue {
  background: var(--sky-2);
  box-shadow: 0 0 0 4px rgba(141, 180, 224, 0.16);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.eyebrow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding-inline: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--slate);
  font-family: var(--font-en);
}
.eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { display: none; }
.eyebrow--light { color: #9dc0e4; }
.eyebrow--light .eyebrow__num { border-color: rgba(180, 212, 236, 0.3); color: #c8ddf1; }

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
html[lang="en"] .section-title { line-height: 1.15; letter-spacing: -0.025em; }

.section-lead {
  font-size: 1.03rem;
  color: var(--slate);
  line-height: 1.9;
  max-width: 62ch;
  margin-top: 18px;
}
html[lang="en"] .section-lead { line-height: 1.75; }

.section { padding-block: clamp(72px, 9vw, 116px); }

.section-head {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(38px, 5vw, 56px);
}
.section-head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 760px;
  margin-inline: auto;
}
.section-head--center .section-lead { margin-inline: auto; }
.section-head--center .section-title { margin-inline: auto; }
.section-lead--side { margin-top: 0; padding-bottom: 6px; font-size: 0.98rem; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Cards settle in with a soft grow instead of a plain slide. */
.service-card.reveal,
.client-card.reveal,
.direction-card.reveal,
.contact-card.reveal,
.metrics__card.reveal,
.request__form-wrap.reveal,
.about__visual.reveal,
.map-wrap.reveal {
  transform: translateY(30px) scale(0.975);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 12px 0;
  padding-inline: var(--gutter);
  background: transparent;
  border: 0;
  pointer-events: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  min-height: 64px;
  padding: 8px 12px 8px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 10px 34px rgba(8, 17, 31, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  pointer-events: auto;
  transition: min-height 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}
html[dir="rtl"] .header-inner { padding: 8px 20px 8px 12px; }
.site-header.is-scrolled .header-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow:
    0 16px 44px rgba(8, 17, 31, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 40px; width: auto; }
html[lang="en"] .brand img { height: 40px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: auto;
}
.main-nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--navy); background: rgba(44, 92, 172, 0.07); }
.main-nav a.is-active {
  color: var(--navy);
  font-weight: 600;
  background: var(--mist);
}

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--slate);
  font-family: var(--font-en);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.lang-toggle:hover { border-color: var(--sky-2); color: var(--navy); background: #fff; }
.lang-toggle > svg { width: 14px; height: 14px; opacity: 0.75; }
.lang-options {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(14, 26, 46, 0.05);
}
.lang-opt {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--slate-light);
  line-height: 1.4;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.lang-opt.is-active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(14, 26, 46, 0.14);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  width: 100%;
  max-width: var(--container);
  margin: 8px auto 0;
  padding: 12px 20px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(8, 17, 31, 0.22);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
.mobile-nav nav { display: flex; flex-direction: column; gap: 3px; }
.mobile-nav a:not(.btn) {
  padding: 11px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:not(.btn):hover { background: var(--mist); color: var(--navy); }
.mobile-nav .btn { margin-top: 12px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/topo-dark.jpg") center / cover no-repeat;
  opacity: 0.55;
  z-index: -3;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 60% at 15% 20%, rgba(44, 92, 172, 0.28), transparent 65%),
    linear-gradient(90deg, rgba(8, 17, 31, 0.94) 0%, rgba(10, 21, 38, 0.72) 45%, rgba(10, 21, 38, 0.42) 100%);
}
html[dir="rtl"] .hero::before {
  background:
    radial-gradient(ellipse 60% 60% at 85% 20%, rgba(44, 92, 172, 0.28), transparent 65%),
    linear-gradient(270deg, rgba(8, 17, 31, 0.94) 0%, rgba(10, 21, 38, 0.72) 45%, rgba(10, 21, 38, 0.42) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 140px;
  background: linear-gradient(to top, rgba(8, 17, 31, 0.9), transparent);
  z-index: -1;
  pointer-events: none;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(180, 212, 236, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 212, 236, 0.055) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  padding-block: clamp(150px, 12vw, 190px) clamp(96px, 10vw, 140px);
}

.hero__copy { max-width: 640px; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(2rem, 4.1vw, 3.55rem);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.012em;
  color: #fff;
  text-wrap: balance;
}
html[lang="en"] .hero__title { line-height: 1.1; letter-spacing: -0.03em; }
html[lang="en"] .hero { font-family: var(--font-en); }

.hero__sub {
  margin-top: 22px;
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.95;
  color: #b9c8da;
}
html[lang="en"] .hero__sub { line-height: 1.78; color: #b0c0d3; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__coords {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  color: #6d829c;
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
}
.coords-text { direction: ltr; unicode-bidi: isolate; }
.coord-line { height: 1px; width: 42px; background: currentColor; opacity: 0.45; }

/* Hero visual */
.hero__visual { position: relative; }

.map-card {
  position: relative;
  aspect-ratio: 4 / 4.5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(180, 212, 236, 0.2);
  box-shadow: var(--shadow-lg);
  background: #1a3355;
}
.map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 17, 31, 0.78) 0%, transparent 38%),
    linear-gradient(135deg, rgba(44, 92, 172, 0.12), transparent 50%);
  pointer-events: none;
}
.map-card--mosaic::after {
  background: linear-gradient(135deg, rgba(44, 92, 172, 0.14), transparent 52%);
}

/* Industry mosaic */
.hero-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: rgba(8, 17, 31, 0.88);
}
.hero-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #10203a;
}
.hero-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06) brightness(0.88);
  transform: scale(1.03);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.9s ease;
}
.hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 14, 26, 0.92) 0%, rgba(6, 14, 26, 0.4) 32%, transparent 62%),
    linear-gradient(140deg, rgba(44, 92, 172, 0.16), transparent 55%);
  pointer-events: none;
}
.hero-tile:hover img {
  transform: scale(1.09);
  filter: saturate(1) contrast(1.08) brightness(0.96);
}
.hero-tile__caption {
  position: absolute;
  inset-inline: 15px;
  inset-block-end: 13px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-tile__index {
  font-family: var(--font-en);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--sky-2);
  opacity: 0.88;
}
.hero-tile__label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f2f8ff;
  text-shadow: 0 1px 14px rgba(3, 10, 20, 0.65);
}
.map-card--mosaic .map-card__grid { opacity: 0.22; }

.map-card__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(180, 212, 236, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 212, 236, 0.18) 1px, transparent 1px);
  background-size: 56px 56px;
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
}

.map-card__scan {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, rgba(141, 180, 224, 0.85), transparent);
  box-shadow: 0 0 18px 2px rgba(141, 180, 224, 0.45);
  animation: scan 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan {
  0%, 100% { top: 8%; opacity: 0.2; }
  50% { top: 82%; opacity: 1; }
}

.map-card__corners i {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(180, 212, 236, 0.8);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.map-card__corners i:nth-child(1) { inset-block-start: 16px; inset-inline-start: 16px; border-width: 1px 0 0 1px; }
.map-card__corners i:nth-child(2) { inset-block-start: 16px; inset-inline-end: 16px; border-width: 1px 1px 0 0; }
.map-card__corners i:nth-child(3) { inset-block-end: 16px; inset-inline-start: 16px; border-width: 0 0 1px 1px; }
.map-card__corners i:nth-child(4) { inset-block-end: 16px; inset-inline-end: 16px; border-width: 0 1px 1px 0; }

.map-card__tag {
  position: absolute;
  inset-block-start: 24px;
  inset-inline-start: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.68);
  border: 1px solid rgba(180, 212, 236, 0.22);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  color: #cfe2f3;
  letter-spacing: 0.04em;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(5, 12, 24, 0.35);
  backdrop-filter: blur(8px);
  z-index: 3;
  animation: floaty 7s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: 0.8rem; font-weight: 700; line-height: 1.35; }
.float-chip small { display: block; font-size: 0.68rem; color: var(--slate); line-height: 1.4; }
.chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mist);
  color: var(--navy);
  flex: 0 0 auto;
}
.float-chip--top {
  inset-block-start: 26%;
  inset-inline-end: -22px;
  animation-delay: -2s;
}
.float-chip--bottom {
  inset-block-end: 16%;
  inset-inline-start: -26px;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.72rem;
  color: #7d92ab;
}
.caption-index {
  font-family: var(--font-en);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--sky-2);
}
.caption-en {
  margin-inline-start: auto;
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: #5e7590;
}

/* ==========================================================================
   Metrics
   ========================================================================== */

.metrics {
  position: relative;
  z-index: 5;
  margin-top: -58px;
  padding-bottom: 8px;
}
.metrics__card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.metric {
  position: relative;
  padding: 30px 26px 26px;
  text-align: center;
  transition: background-color 0.45s var(--ease);
}
.metric + .metric::before {
  content: "";
  position: absolute;
  inset-block: 22px;
  inset-inline-start: 0;
  width: 1px;
  background: var(--line);
}
.metric__value {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-en);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.03em;
  direction: ltr;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.metric__suffix { font-size: 0.62em; color: var(--sky-2); margin-top: 0.08em; }
.metric__label {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.metric__note {
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--slate-light);
  line-height: 1.5;
}
@media (hover: hover) and (pointer: fine) {
  .metric:hover { background: linear-gradient(to bottom, rgba(234, 240, 250, 0.85), rgba(255, 255, 255, 0) 88%); }
  .metric:hover .metric__value { transform: translateY(-3px); }
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  background:
    linear-gradient(to bottom, #fff 0%, #fff 55%, var(--paper) 100%);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 52%;
  height: 70%;
  background: url("../img/topo-light.jpg") center / cover no-repeat;
  opacity: 0.55;
  mask-image: linear-gradient(200deg, #000 0%, transparent 68%);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 68%);
  pointer-events: none;
}

.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.about__visual { position: relative; }
.about__frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 4.4;
}
.about__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .about__frame:hover img { transform: scale(1.035); }
}
.about__frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 17, 31, 0.72) 0%, transparent 48%);
}
.about__since {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-start: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px rgba(8, 17, 31, 0.2);
}
.about__since span { font-size: 0.6rem; color: var(--slate); letter-spacing: 0.04em; }
.about__since strong {
  font-family: var(--font-en);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.about__frame-tag {
  position: absolute;
  inset-block-end: 20px;
  inset-inline: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(8, 17, 31, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  color: #dce9f6;
  font-size: 0.72rem;
}
.about__frame-tag svg { color: var(--sky-2); flex: 0 0 auto; }

.about__exp {
  position: absolute;
  inset-block-end: -26px;
  inset-inline-end: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 18px 44px rgba(44, 92, 172, 0.35);
}
.about__exp strong {
  font-family: var(--font-en);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}
.about__exp span { font-size: 0.7rem; line-height: 1.45; max-width: 90px; color: #dbe8f7; }

.about__copy .section-title { max-width: 20ch; }
html[lang="en"] .about__copy .section-title { max-width: 24ch; }

.about__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.about__mini-stats {
  display: flex;
  gap: 34px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.about__mini-stats div { display: flex; flex-direction: column; gap: 2px; }
.about__mini-stats strong {
  font-family: var(--font-en);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.about__mini-stats span { font-size: 0.72rem; color: var(--slate-light); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
html[dir="rtl"] .link-arrow:hover svg { transform: translateX(-4px); }

/* Vision & mission */
.direction { margin-top: clamp(72px, 9vw, 110px); }
.direction__head { max-width: 640px; margin-bottom: 34px; }
.direction__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.direction-card {
  position: relative;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s var(--ease),
    border-color 0.4s var(--ease);
}
.direction-card--dark {
  background: linear-gradient(145deg, #12233c 0%, var(--ink) 60%, #0a1729 100%);
  color: #dce8f4;
  box-shadow: 0 24px 60px rgba(14, 26, 46, 0.22);
}
.direction-card--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/topo-light.jpg") center / cover;
  opacity: 0.07;
  mix-blend-mode: screen;
  transition: transform 1.1s var(--ease);
  pointer-events: none;
}
.direction-card--light {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.direction-card--light::before {
  content: "“";
  position: absolute;
  inset-block-start: -34px;
  inset-inline-end: 22px;
  font-family: Georgia, serif;
  font-size: 170px;
  line-height: 1;
  color: var(--mist);
  pointer-events: none;
}
.direction-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  position: relative;
}
.direction-card__label { font-size: 1.05rem; font-weight: 700; }
.direction-card--dark .direction-card__label { color: #fff; }
.direction-card__en {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--slate-light);
}
.direction-card--dark .direction-card__en { color: #7f9ab7; }
.direction-card blockquote {
  position: relative;
  font-size: 0.97rem;
  line-height: 1.95;
  color: var(--slate);
}
html[lang="en"] .direction-card blockquote { line-height: 1.8; }
.direction-card--dark blockquote { color: #b9c9db; }
.direction-card__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
  font-family: var(--font-en);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--slate-light);
}
.direction-card__foot .line {
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transition: width 0.45s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .direction-card:hover { transform: translateY(-5px); }
  .direction-card--dark:hover { box-shadow: 0 34px 78px rgba(14, 26, 46, 0.3); }
  .direction-card--dark:hover::before { transform: scale(1.06); }
  .direction-card--light:hover {
    border-color: var(--sky-2);
    box-shadow: 0 24px 54px rgba(14, 26, 46, 0.11);
  }
  .direction-card:hover .direction-card__foot .line { width: 48px; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  background: var(--paper);
  position: relative;
}
.services::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.service-card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(14, 26, 46, 0.02);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:nth-child(4),
.service-card:nth-child(5) { grid-column: span 3; }
.service-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--sky-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
html[dir="rtl"] .service-card::before { transform-origin: right; }

/* Light sheen that glides across the card on hover. */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(180, 212, 236, 0.16) 46%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(180, 212, 236, 0.16) 54%,
    transparent 68%
  );
  transform: translateX(-115%);
  transition: transform 0.95s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
html[dir="rtl"] .service-card::after { transform: translateX(115%); }

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-6px);
    border-color: var(--sky-2);
    box-shadow: 0 24px 52px rgba(14, 26, 46, 0.11);
  }
  .service-card:hover::before { transform: scaleX(1); }
  .service-card:hover::after { transform: translateX(115%); }
  html[dir="rtl"] .service-card:hover::after { transform: translateX(-115%); }
}

.service-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.service-card__num {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--slate-light);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--mist);
  color: var(--navy);
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s var(--ease);
}
.service-card__icon svg { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-card__icon {
    background: var(--navy);
    color: #fff;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 10px 22px rgba(44, 92, 172, 0.28);
  }
  .service-card:hover .service-card__icon svg { transform: rotate(-6deg) scale(1.05); }
  .service-card:hover .service-card__num {
    color: var(--navy);
    border-color: var(--sky-2);
    background: var(--mist);
  }
}

.service-card h3 {
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  max-width: 30ch;
}
.service-card__en {
  display: block;
  margin-top: 6px;
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--slate-light);
  line-height: 1.5;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.service-list li {
  position: relative;
  padding-inline-start: 16px;
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--slate);
}
.service-list li::before {
  content: "";
  position: absolute;
  inset-block-start: 0.68em;
  inset-inline-start: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky-2);
}
.service-list strong {
  display: block;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* ==========================================================================
   Clients
   ========================================================================== */

.clients {
  background: #fff;
  position: relative;
  overflow: hidden;
}
.clients::before {
  content: "";
  position: absolute;
  inset-block-start: -60px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 212, 236, 0.22), transparent 70%);
  pointer-events: none;
}

.clients-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.client-card {
  flex: 0 0 calc(25% - 12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 26px 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s var(--ease),
    border-color 0.4s var(--ease);
}
.client-card::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 50%;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--navy), var(--sky-2));
  transition: width 0.45s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .client-card:hover {
    transform: translateY(-6px);
    border-color: var(--sky-2);
    box-shadow: 0 20px 44px rgba(14, 26, 46, 0.1);
  }
  .client-card:hover::after { width: 58%; }
}
.client-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 92px;
  margin-bottom: 14px;
}
.client-card__logo img {
  max-width: 152px;
  max-height: 84px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.25);
  opacity: 0.88;
  transition:
    filter 0.4s var(--ease),
    opacity 0.4s var(--ease),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .client-card:hover .client-card__logo img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.07) translateY(-2px);
  }
}
.client-card h3 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
}
.client-card > span {
  font-family: var(--font-en);
  font-size: 0.6rem;
  color: var(--slate-light);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* In English mode the headline already carries the English name. */
html[lang="en"] .service-card__en,
html[lang="en"] .client-card > span { display: none; }

/* ==========================================================================
   Service request
   ========================================================================== */

.request {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.request__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/topo-dark.jpg") center / cover no-repeat;
  opacity: 0.3;
}
.request::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 10% 10%, rgba(44, 92, 172, 0.32), transparent 65%),
    linear-gradient(105deg, rgba(8, 17, 31, 0.92), rgba(8, 17, 31, 0.72));
  pointer-events: none;
}
html[dir="rtl"] .request::before {
  background:
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(44, 92, 172, 0.32), transparent 65%),
    linear-gradient(255deg, rgba(8, 17, 31, 0.92), rgba(8, 17, 31, 0.72));
}

.request__grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.request__copy { padding-top: 12px; position: sticky; top: 110px; }
.request__copy .section-title { color: #fff; }
.request__copy .section-lead { color: #aebfd2; }

.request__points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}
.request__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #c6d5e5;
}
.point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(141, 180, 224, 0.14);
  border: 1px solid rgba(141, 180, 224, 0.28);
  color: var(--sky-2);
  flex: 0 0 auto;
}

.request__direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(180, 212, 236, 0.16);
  font-size: 0.86rem;
  color: #9db2c8;
}

.request__form-wrap {
  background: #fff;
  border-radius: 22px;
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: 0 40px 90px rgba(3, 8, 16, 0.45);
  transition: box-shadow 0.5s var(--ease);
}
.request__form-wrap:focus-within { box-shadow: 0 46px 104px rgba(3, 8, 16, 0.56); }
.request-form { color: var(--ink); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  background: #f7faff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
}
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
html[lang="en"] .field input,
html[lang="en"] .field select,
html[lang="en"] .field textarea { font-family: var(--font-en); }
.field input::placeholder,
.field textarea::placeholder { color: #98a6b8; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(44, 92, 172, 0.1);
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.6; }

.select-wrap { position: relative; }
.select-wrap select { padding-inline-end: 40px; cursor: pointer; }
.select-chevron {
  position: absolute;
  inset-inline-end: 14px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  color: var(--slate);
  pointer-events: none;
}

.field--other { animation: fadeIn 0.3s var(--ease); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #d64545;
  background: #fff7f7;
}
.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12); }

.form-submit { margin-top: 8px; padding-block: 16px; }
.form-note {
  margin-top: 14px;
  font-size: 0.7rem;
  line-height: 1.65;
  color: var(--slate-light);
  text-align: center;
}
.form-status {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.6;
  background: #eefaf3;
  border: 1px solid #b7e6cb;
  color: #166534;
}
.form-status.is-error {
  background: #fdf2f2;
  border-color: #f2c7c7;
  color: #b42318;
}
.form-status a { font-weight: 700; text-decoration: underline; }

/* ==========================================================================
   Contact / map
   ========================================================================== */

.contact { background: var(--paper); }

.contact__grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 22px;
  align-items: stretch;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s var(--ease),
    border-color 0.4s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
  }
}
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--navy);
  flex: 0 0 auto;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .contact-item:hover .contact-item__icon {
    background: var(--navy);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
  }
}
.contact-item__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 2px;
}
.contact-item p { font-size: 0.9rem; line-height: 1.7; color: var(--ink-soft); }
.contact-item p a { transition: color 0.2s; }
.contact-item p a:hover { color: var(--navy); }
.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 420px;
  background: var(--sky-3);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.map-wrap:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: saturate(0.92) contrast(1.02);
}
.map-wrap__badge {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-start: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(14, 26, 46, 0.14);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink-deep);
  color: #92a6bc;
  padding-top: clamp(54px, 7vw, 80px);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 180, 224, 0.35), transparent);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 1.1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(180, 212, 236, 0.12);
}
.footer__logo { display: inline-block; }
.footer__logo img { height: 54px; width: auto; }
.footer__brand p {
  margin-top: 18px;
  font-size: 0.86rem;
  line-height: 1.8;
  max-width: 34ch;
  color: #8ca1b8;
}
.footer__social { display: flex; gap: 8px; margin-top: 20px; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(180, 212, 236, 0.16);
  color: #b6c8da;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer__social a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e3edf7;
  margin-bottom: 6px;
}
.footer__col a,
.footer__col p {
  font-size: 0.83rem;
  color: #8ca1b8;
  line-height: 1.7;
  transition: color 0.2s;
}
.footer__col a:hover { color: #fff; }
.footer__col--contact { gap: 8px; }
.footer__col--contact p { max-width: 30ch; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  font-size: 0.72rem;
  color: #6b8098;
}
.footer__legal { display: flex; align-items: center; gap: 10px; }
.privacy-link {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.72rem;
  color: #8ca1b8;
  cursor: pointer;
  transition: color 0.2s;
}
.privacy-link:hover { color: #fff; }
.footer__dot { opacity: 0.4; }

/* ==========================================================================
   Modal
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 31, 0.66);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s;
}
.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: clamp(28px, 4vw, 42px);
  box-shadow: 0 40px 100px rgba(3, 8, 16, 0.5);
  animation: modalIn 0.35s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal__dialog h2 { font-size: 1.4rem; margin-bottom: 14px; }
.modal__dialog p { font-size: 0.92rem; line-height: 1.9; color: var(--slate); }
.modal__close {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modal__close:hover { background: var(--paper); color: var(--ink); }
body.no-scroll { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .main-nav { gap: 22px; }
  .main-nav a { font-size: 0.88rem; }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 36px; }
  .float-chip--top { inset-block-start: 22%; inset-inline-end: -10px; }
  .float-chip--bottom { inset-block-end: 22%; inset-inline-start: -12px; }
  .client-card { flex-basis: calc(33.333% - 11px); }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }

  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav:not([hidden]) { display: block; }
  .header-cta { display: none; }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-block: 130px 108px;
  }
  .hero__copy { max-width: 100%; }
  .hero__visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .map-card { aspect-ratio: 4 / 3.6; }
  .hero__title { font-size: clamp(2rem, 7vw, 2.9rem); }
  .hero__coords { margin-top: 30px; }

  .metrics { margin-top: -50px; }
  .metrics__card { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3)::before { display: none; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .about__grid { grid-template-columns: 1fr; gap: 54px; }
  .about__visual { max-width: 480px; }
  .about__copy .section-title { max-width: none; }

  .section-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .section-lead--side { padding-bottom: 0; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: span 1; }
  .service-card:last-child { grid-column: span 2; }

  .direction__grid { grid-template-columns: 1fr; }

  .request__grid { grid-template-columns: 1fr; }
  .request__copy { position: static; }

  .contact__grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 380px; }
  .map-wrap iframe { min-height: 380px; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .footer__brand p { max-width: 52ch; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }

  .header-inner { min-height: 68px; }
  .brand img { height: 34px; }
  .lang-toggle { padding: 7px 10px; }
  .nav-toggle { width: 40px; height: 40px; }

  .hero__inner { padding-block: 118px 96px; }
  .hero__title { font-size: clamp(1.75rem, 8.4vw, 2.4rem); }
  .hero__sub { font-size: 0.94rem; line-height: 1.85; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 auto; padding-inline: 18px; }
  .float-chip { display: none; }
  .map-card { aspect-ratio: 1 / 1.05; }
  .map-card__tag { inset-block-start: 14px; inset-inline-start: 14px; }
  .map-card__corners i { width: 14px; height: 14px; }
  .hero-tile__caption { inset-inline: 11px; inset-block-end: 10px; gap: 3px; }
  .hero-tile__label { font-size: 0.7rem; line-height: 1.3; }
  .hero-tile__index { font-size: 0.52rem; }

  .metrics__card { grid-template-columns: 1fr 1fr; }
  .metric { padding: 22px 14px 20px; }
  .metric__value { font-size: 1.75rem; }
  .metric__label { font-size: 0.8rem; }
  .metric__note { font-size: 0.66rem; }
  .metric:nth-child(odd)::before { display: none; }

  .about__exp { inset-block-end: -18px; inset-inline-end: 6px; padding: 12px 16px; }
  .about__mini-stats { gap: 20px; flex-wrap: wrap; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card:last-child { grid-column: span 1; }
  .service-card h3 { font-size: 1.06rem; }

  .clients-grid { gap: 12px; }
  .client-card { flex-basis: calc(50% - 6px); padding: 18px 12px 16px; }
  .client-card__logo { height: 64px; margin-bottom: 10px; }
  .client-card__logo img { max-width: 104px; max-height: 58px; }
  .client-card h3 { font-size: 0.75rem; }
  .client-card > span { font-size: 0.55rem; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .request__form-wrap { padding: 22px 18px; border-radius: 18px; }
  .request__direct { flex-direction: column; align-items: flex-start; }
  .request__direct .btn { width: 100%; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .footer__brand { grid-column: span 2; }
  .footer__col--contact { grid-column: span 2; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 380px) {
  .client-card { flex-basis: 100%; }
  .metrics__card { grid-template-columns: 1fr; }
  .metric + .metric::before { display: none; }
  .metric { border-top: 1px solid var(--line); }
  .metric:first-child { border-top: 0; }
}

/* ==========================================================================
   Motion preferences & print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal,
  .service-card.reveal,
  .client-card.reveal,
  .direction-card.reveal,
  .contact-card.reveal,
  .metrics__card.reveal,
  .request__form-wrap.reveal,
  .about__visual.reveal,
  .map-wrap.reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero__visual, .request__bg, .map-wrap, .footer__social { display: none; }
  body { color: #000; }
  .hero, .request, .site-footer { background: #fff !important; color: #000 !important; }
}
