/* MTI AI SOLUTIONS — website stylesheet.
   Tokens follow the MTI Brand Identity & Design System (Release 1.0).
   Contrast rules: see docs/PLAN.md §3.2 — no blue text on off-white, gold and cyan text on navy only. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback so the swap to Inter does not shift layout. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Cairo is only downloaded if Arabic glyphs appear (none in this version). */
@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo-arabic-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- Tokens ---------- */
:root {
  --mti-navy: #0d1b3e;
  --mti-navy-2: #13254f;
  --mti-navy-3: #1a2f5f;
  --mti-blue: #1e6fd9;
  --mti-blue-hover: #185bb3;
  --mti-gold: #c8922a;
  --mti-cyan: #00c8ff;
  --mti-white: #ffffff;
  --mti-off-white: #f4f6fb;
  --mti-text: #0d1b3e;
  --mti-text-mid: #3a4468;
  --mti-on-dark: #ffffff;
  --mti-on-dark-muted: #c9d2e6;
  --mti-border: #dde3ef;
  --mti-error: #b42318;
  --mti-error-bg: #fef2f2;
  --mti-success: #065f46;
  --mti-success-bg: #ecfdf5;
  --mti-gradient: linear-gradient(90deg, var(--mti-gold), var(--mti-blue) 55%, var(--mti-cyan));

  --mti-radius-sm: 4px;
  --mti-radius-md: 8px;
  --mti-shadow-sm: 0 2px 8px rgba(13, 27, 62, 0.08);
  --mti-shadow-md: 0 10px 28px rgba(13, 27, 62, 0.12);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --font: "Inter", "Inter Fallback", "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 80px;
  --container: 1200px;
  --gutter: 16px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--mti-text);
  background: var(--mti-off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: inherit; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--mti-blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--mti-blue); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--mti-cyan); }

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

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--mti-white);
  color: var(--mti-navy);
  font-weight: 700;
  border-radius: var(--mti-radius-sm);
  box-shadow: var(--mti-shadow-md);
}
.skip-link:focus { top: 12px; }

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

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--mti-radius-sm);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn .icon { width: 20px; height: 20px; transition: transform 0.2s; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--mti-blue); color: var(--mti-white); }
.btn-primary:hover { background: var(--mti-blue-hover); }
.btn-outline-dark { border-color: rgba(255, 255, 255, 0.85); color: var(--mti-white); background: transparent; }
.btn-outline-dark:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--mti-white); }
.btn-outline-light { border-color: var(--mti-navy); color: var(--mti-navy); background: var(--mti-white); }
.btn-outline-light:hover { background: var(--mti-navy); color: var(--mti-white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mti-navy);
  color: var(--mti-on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header::before { content: ""; display: block; height: 5px; background: var(--mti-gradient); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: calc(var(--header-h) - 5px);
}
/* Clear space around the logo ≥ cap height of "M" (~12 px at this size). */
.brand-link { display: block; padding-block: 12px; padding-inline: 0 12px; flex: none; border-radius: 2px; }
.brand-link img { width: 150px; height: auto; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  position: relative;
  display: block;
  padding: 10px 12px;
  color: var(--mti-on-dark);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  inset-inline: 12px; bottom: 4px;
  height: 2px;
  background: var(--mti-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current]::after { transform: scaleX(1); }
.site-nav a[aria-current] { font-weight: 700; }
.site-nav .nav-cta { margin-inline-start: 12px; }
.site-nav .btn { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--mti-radius-sm);
  background: transparent;
  color: var(--mti-white);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1279.98px) {
  .brand-link img { width: 140px; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    inset-inline: 0; top: 100%;
    background: var(--mti-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    padding: 8px var(--gutter) 24px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a:not(.btn) { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-links a:not(.btn)::after { inset-inline: 4px auto; width: 32px; bottom: 8px; }
  .site-nav .nav-cta { margin: 20px 0 0; }
  .site-nav .btn { width: 100%; min-height: 48px; }
  /* Without JavaScript the links stay visible under the logo. */
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; padding-bottom: 12px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-6); }
@media (min-width: 1024px) { .section { padding-block: var(--space-7); } }
.section-light { background: var(--mti-off-white); }
.section-white { background: var(--mti-white); }
.section-dark {
  position: relative;
  background-color: var(--mti-navy);
  color: var(--mti-on-dark);
  isolation: isolate;
}
/* 20 px tech-matrix grid from the brand system, on dark navy canvases. */
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  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: 20px 20px;
  pointer-events: none;
}

.section-head { max-width: 780px; margin-bottom: var(--space-5); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-2);
  color: var(--mti-navy);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--mti-gradient); }
.on-dark .eyebrow { color: var(--mti-gold); }
.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--mti-navy);
  text-wrap: balance;
}
.on-dark .section-title { color: var(--mti-on-dark); }
.section-lead {
  margin-top: var(--space-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--mti-text-mid);
  text-wrap: pretty;
}
.on-dark .section-lead { color: var(--mti-on-dark-muted); }

.section-close {
  margin-top: var(--space-5);
  text-align: center;
}
.closing-statement {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--mti-navy);
  text-wrap: balance;
}
.closing-statement::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0 auto var(--space-3);
  border-radius: 2px;
  background: var(--mti-gradient);
}
.on-dark .closing-statement { color: var(--mti-on-dark); }
.section-close .btn { margin-top: var(--space-4); }

/* ---------- Cards ---------- */
.card-grid { list-style: none; display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  height: 100%;
  padding: var(--space-3);
  background: var(--mti-white);
  border: 1px solid var(--mti-border);
  border-radius: var(--mti-radius-md);
  box-shadow: var(--mti-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
@media (min-width: 1024px) { .card { padding: 28px; } }
.card::before {
  content: "";
  position: absolute;
  inset-inline: -1px; top: -1px;
  height: 3px;
  border-radius: var(--mti-radius-md) var(--mti-radius-md) 0 0;
  background: linear-gradient(90deg, var(--mti-blue), var(--mti-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.card:hover, .card:focus-within { transform: translateY(-3px); box-shadow: var(--mti-shadow-md); border-color: #c5d3ea; }
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card h3 { font-size: 1.1875rem; font-weight: 700; color: var(--mti-navy); }
.card p { margin-top: 10px; color: var(--mti-text-mid); font-size: 1rem; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-2);
  border-radius: var(--mti-radius-md);
  background: rgba(30, 111, 217, 0.09);
  color: var(--mti-blue);
  position: relative;
}
.icon-tile::after {
  content: "";
  position: absolute;
  inset-inline-end: -3px; top: -3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--mti-cyan);
  box-shadow: 0 0 0 3px var(--mti-white);
}
.icon-tile .icon { width: 26px; height: 26px; }

/* ---------- Hero (§01) ---------- */
.hero { padding-block: var(--space-6) var(--space-6); overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px; height: 900px;
  right: -300px; top: -260px;
  background: radial-gradient(closest-side, rgba(30, 111, 217, 0.28), transparent);
  pointer-events: none;
}
@media (min-width: 1024px) { .hero { padding-block: 112px 120px; } }
.hero-grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-6); } }
.brand-signature {
  display: grid;
  gap: 6px;
  margin-bottom: var(--space-4);
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--mti-gold);
}
.brand-signature .sig-name { font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.14em; color: var(--mti-white); }
.brand-signature .sig-tagline { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; color: var(--mti-gold); }
.hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.8vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
.hero-lead {
  max-width: 620px;
  margin-top: var(--space-3);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--mti-on-dark-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
@media (max-width: 639.98px) { .hero-actions .btn { width: 100%; } }

.hero-visual { width: 100%; max-width: 520px; margin-inline: auto; }
@media (max-width: 1023.98px) { .hero-visual { max-width: 340px; } }
.hero-visual svg { width: 100%; height: auto; overflow: visible; }
.hv-ring { stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.hv-link { stroke: rgba(0, 200, 255, 0.35); stroke-width: 1.25; stroke-dasharray: 3 5; }
.hv-arc { fill: none; stroke: rgba(30, 111, 217, 0.35); stroke-width: 1; }
.hv-halo { fill: rgba(30, 111, 217, 0.08); stroke: rgba(255, 255, 255, 0.08); }
.hv-core { fill: var(--mti-navy-2); stroke: url(#hv-gradient); stroke-width: 3; stroke-linejoin: round; }
.hv-core-inner { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; stroke-linejoin: round; }
.hv-node { fill: var(--mti-navy-2); stroke-width: 2; stroke-linejoin: round; }
.hv-cyan { stroke: var(--mti-cyan); }
.hv-blue { stroke: #4b8fe8; }
.hv-gold { stroke: var(--mti-gold); }
.hv-dot { fill: var(--mti-white); opacity: 0.8; }
@media (prefers-reduced-motion: no-preference) {
  .hv-pulse { animation: hv-pulse 4s ease-in-out infinite; }
  .hv-link { animation: hv-flow 6s linear infinite; }
}
@keyframes hv-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes hv-flow { to { stroke-dashoffset: -32; } }

/* ---------- Challenges (§02) ---------- */
@media (max-width: 639.98px) {
  .challenge-card { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-2); align-items: start; }
  .challenge-card .icon-tile { grid-row: span 2; margin-bottom: 0; width: 44px; height: 44px; }
  .challenge-card .icon-tile .icon { width: 22px; height: 22px; }
  .challenge-card p { margin-top: 6px; }
}

/* ---------- Solutions (§03) ---------- */
.solution-card { display: flex; flex-direction: column; }
.solution-top { display: flex; align-items: flex-start; justify-content: space-between; }
.solution-num { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; color: var(--mti-text-mid); }
.solution-card h3 { font-size: 1.125rem; line-height: 1.3; }
.highlights { list-style: none; display: grid; gap: 8px; margin: var(--space-2) 0 var(--space-3); }
.highlights li { display: flex; gap: 10px; font-size: 0.9375rem; color: var(--mti-navy); font-weight: 500; line-height: 1.4; }
.highlights .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--mti-blue); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--mti-blue);
  text-decoration: underline;
  text-decoration-color: rgba(30, 111, 217, 0.35);
  text-underline-offset: 5px;
}
.card-link:hover { text-decoration-color: currentColor; }
.card-link .icon { width: 18px; height: 18px; transition: transform 0.2s; }
.card-link:hover .icon { transform: translateX(3px); }
@media (min-width: 640px) and (max-width: 1199.98px) { .solutions-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Industries (§04) ---------- */
.icon-tile-navy { background: var(--mti-navy); color: var(--mti-cyan); }
.icon-tile-navy::after { background: var(--mti-blue); }
.industry-card h3 { font-size: 1.0625rem; line-height: 1.3; }
.focus-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.focus-tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mti-off-white);
  border: 1px solid var(--mti-border);
  color: var(--mti-text-mid);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}
.focus-tags li::first-letter { text-transform: uppercase; }
@media (max-width: 639.98px) {
  .industries-grid { gap: 12px; }
  .industry-card { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-2); align-items: center; padding: 16px; }
  .industry-card .icon-tile { grid-row: span 2; margin: 0; width: 44px; height: 44px; align-self: start; }
  .industry-card .icon-tile .icon { width: 22px; height: 22px; }
  .industry-card .focus-tags { margin-top: 8px; }
}

/* ---------- Why MTI (§05) ---------- */
.philosophy {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-3);
  border-radius: var(--mti-radius-md);
  background: var(--mti-navy);
  color: var(--mti-on-dark);
  position: relative;
  overflow: hidden;
}
.philosophy::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--mti-gradient); }
@media (min-width: 1024px) { .philosophy { padding: var(--space-5); } }
.philosophy-head { margin-bottom: var(--space-4); }
.philosophy .eyebrow { margin-bottom: 8px; }
.philosophy-title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 800; letter-spacing: -0.01em; }
.philosophy-steps { list-style: none; display: grid; gap: var(--space-3); }
@media (min-width: 560px) { .philosophy-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .philosophy-steps { grid-template-columns: repeat(4, 1fr); } }
.philosophy-steps li {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: start;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.16);
}
.philosophy-steps li::before { content: ""; position: absolute; inset-inline-start: 0; top: -2px; width: 40px; height: 2px; background: var(--mti-cyan); }
.step-num { color: var(--mti-gold); font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.08em; }
.step-name { font-size: 1.375rem; font-weight: 800; }
.step-desc { color: var(--mti-on-dark-muted); font-size: 1rem; }

/* ---------- How We Work (§06) ---------- */
.journey {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin: 0 auto var(--space-5);
  max-width: 980px;
  overflow-x: clip; /* a row-end arrow must never widen the page */
}
.journey li {
  position: relative;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mti-white);
  border: 1px solid var(--mti-border);
  color: var(--mti-navy);
  font-size: 0.875rem;
  font-weight: 600;
}
.journey li:not(:last-child)::after {
  content: "→";
  content: "→" / "";
  position: absolute;
  inset-inline-end: -23px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mti-blue);
  font-weight: 700;
}

.timeline { list-style: none; display: grid; gap: var(--space-4); }
.stage { position: relative; }
.stage-marker { position: relative; display: flex; align-items: center; margin-bottom: 20px; }
.stage-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 64px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--mti-navy);
  color: var(--mti-gold);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
/* Cyan detail on each badge */
.stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset-inline-start: 44px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mti-cyan);
  box-shadow: 0 0 0 3px var(--mti-off-white);
}
/* Navy connecting line ending in a blue connector */
.stage-marker::after { content: ""; flex: 1; height: 2px; margin-inline-start: 12px; background: var(--mti-navy); opacity: 0.85; }
.stage-marker::before {
  content: "";
  position: absolute;
  inset-inline-end: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--mti-blue);
  box-shadow: 0 0 0 3px var(--mti-off-white);
}
.stage:last-child .stage-marker::after, .stage:last-child .stage-marker::before { display: none; }
.stage h3 { font-size: 1.125rem; font-weight: 700; color: var(--mti-navy); line-height: 1.3; }
.stage p { margin-top: 8px; color: var(--mti-text-mid); font-size: 0.9688rem; }

@media (min-width: 768px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: var(--space-5) var(--space-3); }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .stage:nth-child(3n) .stage-marker::after, .stage:nth-child(3n) .stage-marker::before { display: none; }
}
@media (min-width: 1200px) { .timeline { grid-template-columns: repeat(6, 1fr); gap: var(--space-3); } }
@media (max-width: 767.98px) {
  .timeline { gap: 0; }
  .stage { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding-bottom: var(--space-4); }
  .stage-marker { flex-direction: column; margin: 0; align-self: stretch; }
  .stage-marker::after { width: 2px; height: auto; flex: 1; margin: 8px 0 calc(-1 * var(--space-4)); }
  .stage-marker::before { display: none; }
  .stage:last-child { padding-bottom: 0; }
  .stage-body { padding-top: 6px; }
  .journey { justify-content: flex-start; padding-inline-end: 28px; }
}

/* ---------- Technology & Innovation (§07) ---------- */
.technology { overflow: hidden; }
.technology::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1000px; height: 1000px;
  left: -420px; bottom: -520px;
  background: radial-gradient(closest-side, rgba(0, 200, 255, 0.12), transparent);
  pointer-events: none;
}
.tech-motif {
  position: absolute;
  z-index: -1;
  right: -90px;
  top: 40px;
  width: 420px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1.5;
}
@media (prefers-reduced-motion: no-preference) {
  .tech-motif { animation: motif-drift 24s ease-in-out infinite alternate; }
}
@keyframes motif-drift { to { transform: translateY(24px) rotate(6deg); } }
.tech-card {
  height: 100%;
  padding: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--mti-radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transition: border-color 0.2s, transform 0.2s;
}
.tech-card:hover { border-color: rgba(0, 200, 255, 0.45); transform: translateY(-3px); }
.tech-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-2); }
.tech-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--mti-radius-md);
  border: 1px solid rgba(0, 200, 255, 0.35);
  background: rgba(0, 200, 255, 0.08);
  color: var(--mti-cyan);
}
.tech-num { color: var(--mti-gold); font-weight: 800; font-size: 0.875rem; letter-spacing: 0.08em; }
.tech-card h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--mti-white); }
.tech-items { list-style: none; display: grid; gap: 6px; margin-top: 14px; }
.tech-items li { position: relative; padding-inline-start: 18px; color: var(--mti-on-dark-muted); font-size: 0.9375rem; line-height: 1.45; }
.tech-items li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 8px;
  height: 9px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--mti-cyan);
}

/* ---------- FAQ (§08) ---------- */
.container.narrow { max-width: calc(840px + 2 * var(--gutter)); }
.accordion { border-top: 1px solid var(--mti-border); }
.acc-item { border-bottom: 1px solid var(--mti-border); }
.acc-heading { font-size: inherit; }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  min-height: 64px;
  padding: 18px 4px;
  border: 0;
  background: none;
  color: var(--mti-navy);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: start;
  cursor: pointer;
}
.acc-trigger:hover { color: var(--mti-blue); }
.acc-icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 2px solid var(--mti-blue);
  border-radius: 50%;
  transition: background-color 0.2s;
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--mti-blue);
  transition: transform 0.25s;
}
/* Plus when closed, minus when open: the shape changes, not only the colour. */
.acc-icon::after { transform: rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon { background: var(--mti-blue); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }
.acc-trigger[aria-expanded="true"] .acc-icon::before,
.acc-trigger[aria-expanded="true"] .acc-icon::after { background: var(--mti-white); }
.acc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.3s ease, visibility 0.3s; }
.acc-item:has(.acc-trigger[aria-expanded="false"]) .acc-panel { grid-template-rows: 0fr; visibility: hidden; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-inner p { padding-block: 0 22px; padding-inline: 4px 52px; color: var(--mti-text-mid); }
@media (max-width: 639.98px) { .acc-inner p { padding-inline-end: 4px; } }

/* ---------- Contact (§09) ---------- */
.contact { overflow: hidden; }
.contact::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px; height: 900px;
  right: -380px; top: -300px;
  background: radial-gradient(closest-side, rgba(30, 111, 217, 0.22), transparent);
  pointer-events: none;
}
.contact-grid { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-6); } }
.contact-intro .section-lead { max-width: 560px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
@media (max-width: 639.98px) { .contact-actions .btn { width: 100%; } }
.contact-details-title {
  margin-top: var(--space-5);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mti-gold);
}
.contact-details { list-style: none; display: grid; gap: 18px; margin-top: var(--space-3); }
.contact-details li { display: flex; gap: 14px; align-items: flex-start; }
.contact-details .icon { margin-top: 2px; color: var(--mti-cyan); }
.detail-label { display: block; font-size: 0.8125rem; color: var(--mti-on-dark-muted); margin-bottom: 2px; }
.contact-details a { color: var(--mti-white); font-weight: 600; text-decoration-color: var(--mti-cyan); text-underline-offset: 4px; }
.contact-details a:hover { color: var(--mti-cyan); }
.contact-details address { font-style: normal; color: var(--mti-white); }

/* Form card is a light surface inside the dark section. */
.form-card {
  position: relative;
  padding: var(--space-3) 20px var(--space-4);
  border-radius: var(--mti-radius-md);
  background: var(--mti-white);
  color: var(--mti-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
@media (min-width: 640px) { .form-card { padding: var(--space-5) var(--space-5) var(--space-5); } }
.form-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: var(--mti-radius-md) var(--mti-radius-md) 0 0; background: var(--mti-gradient); }
.on-dark .form-card :focus-visible { outline-color: var(--mti-blue); }
.form-title { font-size: 1.5rem; font-weight: 800; color: var(--mti-navy); letter-spacing: -0.01em; }
.form-intro { margin-top: 6px; color: var(--mti-text-mid); font-size: 0.9375rem; }
.form-card.is-success .form-intro { display: none; }
.req { color: var(--mti-error); font-weight: 700; }

.booking-note, .error-summary, .form-alert.is-visible {
  display: flex;
  gap: 10px;
  margin-top: var(--space-3);
  padding: 14px 16px;
  border-radius: var(--mti-radius-sm);
  font-size: 0.9375rem;
}
.booking-note { background: #f0f9ff; border: 1px solid #bae6fd; border-inline-start: 4px solid #075985; color: #075985; }
.booking-note .icon { margin-top: 3px; }
.error-summary { display: block; background: var(--mti-error-bg); border: 1px solid #fecaca; border-inline-start: 4px solid var(--mti-error); color: var(--mti-navy); }
.error-summary[hidden] { display: none; }
.error-summary h4 { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--mti-error); }
.error-summary ul { margin-block: 8px 0; margin-inline: 26px 0; display: grid; gap: 4px; }
.error-summary a { color: var(--mti-error); font-weight: 600; }
.form-alert { display: none; }
.form-alert.is-visible { display: block; background: var(--mti-error-bg); border: 1px solid #fecaca; border-inline-start: 4px solid var(--mti-error); color: var(--mti-navy); }
.form-alert p { display: block; }
.form-alert .icon { display: inline-block; vertical-align: -3px; margin-inline-end: 6px; color: var(--mti-error); }
.form-alert a { color: var(--mti-error); font-weight: 600; }

.lead-form { margin-top: var(--space-3); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.lead-form > .field, .lead-form > .field-group { margin-top: 20px; }
.field label, .field legend { font-size: 0.9375rem; font-weight: 600; color: var(--mti-navy); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid #6e7891;
  border-radius: var(--mti-radius-sm);
  background: var(--mti-white);
  color: var(--mti-navy);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field select {
  appearance: none;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230D1B3E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field input:not([type="checkbox"]):hover, .field select:hover, .field textarea:hover { border-color: var(--mti-navy); }
.field input:not([type="checkbox"]):focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--mti-blue);
  outline-offset: 1px;
  border-color: var(--mti-blue);
}
.field.has-error input:not([type="checkbox"]), .field.has-error select, .field.has-error textarea { border-color: var(--mti-error); border-width: 2px; }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--mti-error); font-size: 0.875rem; font-weight: 600; }
.field-error[hidden] { display: none; }
.field-error .icon { margin-top: 1px; width: 16px; height: 16px; }
.char-count { font-size: 0.8125rem; color: var(--mti-text-mid); }

.field-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.field-group legend { padding: 0; margin-bottom: 10px; }
.hint { font-weight: 400; color: var(--mti-text-mid); font-size: 0.875rem; }
.check-grid { display: grid; gap: 4px 16px; }
@media (min-width: 560px) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--mti-border);
  border-radius: var(--mti-radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mti-navy);
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.check:hover { border-color: var(--mti-blue); }
.check:has(input:checked) { border-color: var(--mti-blue); background: rgba(30, 111, 217, 0.06); }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--mti-blue); cursor: pointer; }
.field-consent .check { border: 0; padding: 4px 0; font-weight: 400; color: var(--mti-text-mid); }
.field-consent .check:has(input:checked) { background: none; }
.field-consent a { color: var(--mti-blue); font-weight: 600; }
.field-consent.has-error .check { color: var(--mti-navy); }

.btn-submit { width: 100%; margin-top: var(--space-3); min-height: 52px; font-size: 1.0625rem; }
@media (min-width: 640px) { .btn-submit { width: auto; min-width: 220px; } }
.form-hint { margin-top: 12px; font-size: 0.9375rem; color: var(--mti-text-mid); }
.form-hint:empty { display: none; }

/* Spam trap: off-screen rather than display:none, so naive bots still fill it. */
.hp-field { position: absolute; inset-inline-start: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-success {
  margin-top: var(--space-3);
  padding: var(--space-4) var(--space-3);
  border-radius: var(--mti-radius-md);
  background: var(--mti-success-bg);
  border: 1px solid #a7f3d0;
  color: var(--mti-success);
  text-align: center;
}
.form-success .icon { width: 48px; height: 48px; margin: 0 auto var(--space-2); }
.form-success h4 { font-size: 1.25rem; color: var(--mti-success); }
.form-success p { margin-top: 8px; color: var(--mti-success); }
.form-success strong { font-size: 1.125rem; letter-spacing: 0.02em; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1632; color: var(--mti-on-dark); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-grid { display: grid; gap: var(--space-4) var(--space-3); padding-block: var(--space-6) var(--space-5); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.25fr 0.75fr 1.45fr 1.35fr 0.9fr; gap: var(--space-4); } }
.footer-brand img { width: 160px; height: auto; margin-block: -12px 0; margin-inline: -6px 0; padding: 12px 0; box-sizing: content-box; }
.footer-tagline { margin-top: var(--space-2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; color: var(--mti-gold); }
.footer-line { margin-top: 10px; color: var(--mti-on-dark-muted); font-size: 0.9375rem; max-width: 300px; }
.footer-side { display: grid; gap: var(--space-4); align-content: start; }
.footer-title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mti-white); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a {
  display: inline-block;
  padding: 3px 0;
  color: var(--mti-on-dark-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
}
.footer-col a:hover { color: var(--mti-white); text-decoration: underline; text-decoration-color: var(--mti-cyan); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom p { padding-block: 20px; font-size: 0.875rem; color: var(--mti-on-dark-muted); }

/* ---------- Placeholder pages ---------- */
.page-plain { padding-block: var(--space-6) var(--space-7); background: var(--mti-white); min-height: 60vh; }
.page-plain h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -0.015em; color: var(--mti-navy); }
.page-plain p { margin-top: var(--space-2); color: var(--mti-text-mid); max-width: 640px; }
.placeholder-note {
  display: flex;
  gap: 10px;
  margin-top: var(--space-3);
  padding: 16px 18px;
  border-radius: var(--mti-radius-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-inline-start: 4px solid #92400e;
  color: #92400e;
  font-weight: 600;
  max-width: 640px;
}
.placeholder-note .icon { margin-top: 2px; }
.page-plain .btn { margin-top: var(--space-4); }

/* ---------- Language switcher ---------- */
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav .lang-switch {
  flex-direction: row;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
}
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 4px;
  color: var(--mti-on-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.lang-switch a:hover { background: rgba(255, 255, 255, 0.12); }
/* Current language: filled and underlined, so the state is not shown by colour alone. */
.lang-switch a[aria-current="page"] {
  background: var(--mti-white);
  color: var(--mti-navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
/* The hidden "العربية" label on EN/DE pages uses a system font so Cairo is not downloaded for it. */
.lang-switch a:lang(ar) .visually-hidden { font-family: system-ui, sans-serif; }
@media (max-width: 1279.98px) {
  .site-nav { flex-direction: column; align-items: stretch; gap: 20px; }
  .site-nav .lang-switch { align-self: flex-start; }
  .lang-switch a { min-width: 52px; min-height: 44px; font-size: 0.9375rem; }
}

/* ---------- Offices (contact details and footer) ---------- */
.contact-offices .offices {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px 24px;
}
.footer-offices-title { margin-top: var(--space-4); margin-bottom: 10px; }
.footer-offices { display: grid; gap: 12px; }
.footer-offices .detail-label { display: block; font-size: 0.8125rem; color: var(--mti-white); font-weight: 600; margin-bottom: 2px; }
.footer-offices address { font-style: normal; color: var(--mti-on-dark-muted); font-size: 0.9375rem; line-height: 1.5; max-width: 300px; }

/* ---------- Long words (German) and Arabic typography ---------- */
h1, h2, h3, h4, p, li, label, legend, address { overflow-wrap: break-word; }
:lang(de) .card h3, :lang(de) .card p, :lang(de) .tech-card h3, :lang(de) .tech-items li, :lang(de) .focus-tags li,
:lang(de) .highlights li, :lang(de) .stage h3, :lang(de) .stage p, :lang(de) .check span, :lang(de) .footer-col a {
  -webkit-hyphens: auto;
  hyphens: auto;
}
html:lang(ar) { --font: "Cairo", "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif; }
/* Letter-spacing breaks Arabic letter joining. English fragments (lang="en") keep their tracking. */
*:lang(ar) { letter-spacing: 0 !important; }
:lang(ar) h1, :lang(ar) .section-title, :lang(ar) .closing-statement, :lang(ar) .philosophy-title { line-height: 1.4; }
:lang(ar) .card h3, :lang(ar) .tech-card h3, :lang(ar) .stage h3, :lang(ar) .acc-trigger { line-height: 1.5; }
:lang(ar) .eyebrow { font-size: 0.875rem; }

/* ---------- Right-to-left (Arabic) ---------- */
[dir="rtl"] .nav-links a:not(.btn)::after, [dir="rtl"] .card::before { transform-origin: right; }
[dir="rtl"] .icon-arrow, [dir="rtl"] .card-link .icon { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .icon-arrow, [dir="rtl"] .card-link:hover .icon { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .journey li:not(:last-child)::after { content: "←"; content: "←" / ""; }
[dir="rtl"] .field select { background-position: left 12px center; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .card:hover, .card:focus-within { transform: none; }
}
